/* =========================================================
   Solarenergy-UL • CSS base
   (Versión corregida y unificada)
   ========================================================= */

:root {
  --bg: #0f172a;
  --bg-soft: #0f172a08;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --radius-lg: 1.2rem;
  --radius-md: .8rem;
  --shadow: 0 20px 40px rgba(15,23,42,.05);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Variables para Landing de Producto */
  --green: #00884a;
  --product-accent: #00884a;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: #f6f6f6;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

/* ... (Tus estilos base 2-5 se mantienen igual) ... */
/* He resumido esta parte para no hacer el mensaje eterno, 
   pero asegúrate de mantener tu CSS base aquí. */

/* 6. Landings de producto (CORREGIDO) */
body.solarblank {
  background: #ffffff;
  color: var(--text);
}

body.solarblank .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.soft { background: #f5f7f8; }

/* Header específico */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e9eef0;
  z-index: 20;
  padding-top: 12px;
}

.site-header .topbar {
  width: min(1120px, 100% - 2.6rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.brand { display: flex; gap: 12px; align-items: center; }
.logo-box { width: clamp(160px, 32vw, 250px); height: clamp(32px, 7.5vw, 48px); line-height: 0; display: inline-block; margin-top: 6px; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-ghost {
  background: #ffffff;
  color: var(--product-accent);
  border: 1px solid var(--product-accent);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--product-accent);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* HERO CORREGIDO para Solarblank */
body.solarblank .hero {
  background: #ffffff;
  color: var(--text);
  padding: 36px 0 20px;
  margin-bottom: 24px;
  display: grid; /* Recuperamos el grid que tenías en el HTML */
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}

body.solarblank .hero .lead {
  font-size: clamp(16px, 1.4vw, 20px);
  color: #5b6b73;
  margin: 10px 0 18px;
}

/* Componentes de producto */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pill { padding: 6px 10px; border: 1px solid #e9eef0; border-radius: 999px; font-size: 13px; color: #4b5563; background: #ffffff; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: #ffffff; border: 1px solid #e9eef0; border-radius: 14px; padding: 16px; text-align: center; }
.kpi .v { font-size: 26px; color: var(--product-accent); font-weight: 800; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card { background: #fff; border: 1px solid #e9eef0; border-radius: 16px; padding: 18px; }
.list { display: grid; gap: 8px; padding-left: 18px; }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.specs .card h3 { margin-top: 4px; font-size: 16px; color: var(--product-accent); }

/* Badge específico */
body.solarblank .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #00884a;
  background: #e6f4ef;
  color: #006838;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 920px) {
  body.solarblank .hero { grid-template-columns: 1fr; gap: 16px; }
  .kpis, .grid-3, .specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body.solarblank .topbar { position: static; }
  body.solarblank .cta-row .btn { padding: .35rem .7rem .4rem; font-size: .78rem; }
  body.solarblank header.site-header .cta-row .btn-ghost { display: none !important; }
}

@media (max-width: 520px) {
  .grid-3, .specs, .kpis { grid-template-columns: 1fr; }
}
/* =========================================
   AJUSTES MÓVIL (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
  
  /* 1. Ocultar botón WhatsApp (ghost) SOLO en la cabecera para ahorrar espacio */
  body.solarblank header.site-header .cta-row .btn-ghost {
    display: none !important;
  }

  /* 2. Ajustes de tamaño para el botón que queda (Llamar) */
  body.solarblank .cta-row .btn {
    padding: .35rem .7rem .4rem;
    font-size: .78rem;
    white-space: nowrap;
  }

  /* 3. La cabecera deja de ser sticky en móvil si lo prefieres */
  body.solarblank .topbar {
    position: static;
  }
}