/* ==================================================================
   ECOBATERÍAS · ecobaterias.org — v2 (tema claro)
   Paleta del logo: lima #8CC63F · verde #3E7C3E
   Serie de datos validada (CVD): #3e7c3e · #8cc63f · #1e88b8 · #b5562d
   ================================================================== */

:root {
  /* superficies claras */
  --fondo: #fdfefa;
  --crema: #f3f8ea;
  --blanco: #ffffff;
  --borde: #e2ead4;
  --borde-suave: #ecf1e2;

  /* tinta */
  --tinta: #14241a;
  --tinta-2: #4a5c46;
  --tinta-3: #7c8b76;

  /* banda oscura (cifras / CTA, como la v1) */
  --banda: #1d3a20;
  --banda-2: #16301d;

  /* marca */
  --lima: #8cc63f;
  --lima-luz: #a8d95e;
  --verde: #3e7c3e;
  --verde-hondo: #244f28;
  --cobre: #b5562d;
  --azul: #1e88b8;

  --grad-marca: linear-gradient(120deg, #8cc63f 0%, #3e7c3e 100%);
  --grad-texto: linear-gradient(100deg, #2e6b33, #5fa845 60%, #7ab52f);

  --f-display: "Space Grotesk", "Inter", sans-serif;
  --f-texto: "Inter", "Helvetica Neue", sans-serif;

  --radio: 18px;
  --radio-s: 12px;
  --sombra-suave: 0 6px 24px rgba(24, 44, 28, 0.08);
  --sombra-media: 0 18px 44px rgba(24, 44, 28, 0.14);
  --transicion: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-texto);
  background: var(--fondo);
  color: var(--tinta);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lima); color: var(--tinta); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f4e8; }
::-webkit-scrollbar-thumb { background: #c3d4a8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--verde); }

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

a { color: var(--verde); }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.01em; color: var(--tinta); }

.contenedor { width: min(1180px, 92%); margin: 0 auto; }

.solo-lector {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ============================ HEADER ============================ */
.cabecera {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: rgba(253, 254, 250, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--transicion), background var(--transicion);
}

.cabecera.compacta {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--borde), 0 8px 30px rgba(24, 44, 28, 0.06);
}

.cabecera-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.8rem 0;
  transition: padding var(--transicion);
}

.cabecera.compacta .cabecera-inner { padding: 0.5rem 0; }

/* logo oficial, idéntico a la v1: solo la imagen, sin recrear */
.marca { display: flex; align-items: center; text-decoration: none; }

.marca img { height: 54px; width: auto; display: block; transition: height var(--transicion); }

.cabecera.compacta .marca img { height: 44px; }

.menu { display: flex; align-items: center; gap: 1.5rem; }

.menu a {
  color: var(--tinta-2);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transicion);
}

.menu a:hover { color: var(--verde); }

.menu a.activo { color: var(--verde-hondo); font-weight: 700; }

.menu a.activo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-marca);
}

.menu .accion-nav {
  background: var(--grad-marca);
  color: var(--blanco);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.52rem 1.25rem;
  box-shadow: 0 6px 20px rgba(62, 124, 62, 0.3);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.menu .accion-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(62, 124, 62, 0.42); color: var(--blanco); }

.menu .idioma-nav {
  border: 1.5px solid var(--verde);
  color: var(--verde);
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  font-weight: 600;
}

.menu .idioma-nav:hover { background: var(--crema); }

.alternar-menu {
  display: none;
  background: var(--blanco);
  border: 1px solid var(--borde);
  color: var(--verde);
  border-radius: 10px;
  font-size: 1.25rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

/* ============================ HERO INICIO ============================ */
.heroe {
  position: relative;
  min-height: 96svh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 12% -6%, rgba(140, 198, 63, 0.18), transparent 60%),
    radial-gradient(46rem 30rem at 96% 16%, rgba(62, 124, 62, 0.12), transparent 62%),
    linear-gradient(180deg, #f6faee 0%, var(--fondo) 85%);
}

.heroe::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 44, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 44, 28, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70rem 46rem at 40% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

.orbe {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: flotar 13s ease-in-out infinite alternate;
}

.orbe-a { width: 380px; height: 380px; background: rgba(140, 198, 63, 0.3); top: -90px; left: -110px; }
.orbe-b { width: 320px; height: 320px; background: rgba(30, 136, 184, 0.12); bottom: -60px; right: 8%; animation-delay: -5s; }

@keyframes flotar {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 34px, 0) scale(1.12); }
}

.heroe-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 4rem;
  align-items: center;
}

.gorjal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--borde);
  background: var(--blanco);
  border-radius: 999px;
  padding: 0.42rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 1.5rem;
  box-shadow: var(--sombra-suave);
}

.gorjal .punto {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lima);
  box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.7);
  animation: pulso 2.2s infinite;
}

@keyframes pulso {
  70% { box-shadow: 0 0 0 9px rgba(140, 198, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); }
}

.heroe h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.texto-grad {
  background: var(--grad-texto);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rotador { display: inline-block; min-width: 5.2ch; color: var(--verde); }

.rotador span { display: inline-block; animation: entrar-palabra 0.5s ease; }

@keyframes entrar-palabra {
  from { opacity: 0; transform: translateY(0.5em); }
  to { opacity: 1; transform: none; }
}

.heroe .bajada {
  font-size: 1.16rem;
  color: var(--tinta-2);
  max-width: 33rem;
  margin-bottom: 2.2rem;
}

.botones { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  transition: transform var(--transicion), box-shadow var(--transicion), background var(--transicion), color var(--transicion);
  border: 0;
  cursor: pointer;
  font-family: var(--f-texto);
}

.boton-primario {
  background: var(--grad-marca);
  color: var(--blanco);
  box-shadow: 0 10px 26px rgba(62, 124, 62, 0.32);
}

.boton-primario:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(62, 124, 62, 0.45); }

.boton-fantasma {
  border: 1.5px solid var(--verde);
  color: var(--verde-hondo);
  background: var(--blanco);
}

.boton-fantasma:hover { background: var(--crema); transform: translateY(-2px); }

.boton-claro { border: 1.5px solid var(--verde); color: var(--verde-hondo); background: transparent; }

.boton-claro:hover { background: rgba(140, 198, 63, 0.14); transform: translateY(-2px); }

.heroe-sellos { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; margin-top: 2.6rem; }

.sello { font-size: 0.86rem; color: var(--tinta-2); }

.sello strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: var(--tinta);
  letter-spacing: -0.01em;
}

/* composición visual con parallax */
.heroe-visual { position: relative; min-height: 520px; }

.lamina {
  position: absolute;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-media);
  border: 1px solid rgba(24, 44, 28, 0.08);
  background: var(--blanco);
  will-change: transform;
}

.lamina img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lamina figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7rem 1rem 0.8rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, transparent, rgba(5, 12, 7, 0.8));
}

.lamina-a { width: 62%; height: 66%; top: 0; right: 4%; z-index: 2; }
.lamina-b { width: 46%; height: 46%; bottom: 4%; left: 0; z-index: 3; }
.lamina-c { width: 34%; height: 36%; bottom: 0; right: 0; z-index: 1; opacity: 0.96; }

.tarjeta-flotante {
  position: absolute;
  z-index: 4;
  top: 56%;
  left: 6%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(140, 198, 63, 0.55);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 18px 40px rgba(24, 44, 28, 0.2);
  animation: levitar 5.5s ease-in-out infinite alternate;
}

.tarjeta-flotante .dato {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--verde);
}

.tarjeta-flotante .leyenda { font-size: 0.76rem; color: var(--tinta-2); max-width: 13rem; }

@keyframes levitar { from { transform: translateY(0); } to { transform: translateY(-14px); } }

.indicador-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  color: var(--tinta-3);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.indicador-scroll .rueda {
  width: 22px; height: 34px;
  border: 1.5px solid var(--tinta-3);
  border-radius: 12px;
  position: relative;
}

.indicador-scroll .rueda::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--verde);
  animation: rodar 1.6s ease infinite;
}

@keyframes rodar {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(11px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================ MARQUESINA ============================ */
.marquesina {
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  background: var(--crema);
  overflow: hidden;
  padding: 0.95rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquesina .pista {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: desfilar 30s linear infinite;
}

.marquesina:hover .pista { animation-play-state: paused; }

.marquesina .item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--tinta-2);
  text-transform: uppercase;
}

.marquesina .item::before { content: "◆"; color: var(--lima); font-size: 0.6rem; }

@keyframes desfilar { to { transform: translateX(-50%); } }

/* ============================ SECCIONES ============================ */
.seccion { padding: 6.2rem 0; position: relative; }

.seccion-clara { background: var(--crema); }

.encabezado { max-width: 47rem; margin-bottom: 3rem; }

.encabezado .kicker, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 0.9rem;
}

.encabezado .kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad-marca); border-radius: 2px; }

.encabezado h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; margin-bottom: 0.9rem; }

.encabezado p { font-size: 1.08rem; color: var(--tinta-2); }

.encabezado.centrado { margin-left: auto; margin-right: auto; text-align: center; }

.encabezado.centrado .kicker { justify-content: center; }
.encabezado.centrado .kicker::before { display: none; }

/* ============================ CIFRAS (banda oscura, como v1) ============================ */
.cifras-banda {
  padding: 3.6rem 0;
  background: linear-gradient(135deg, var(--banda-2), var(--banda));
  color: var(--blanco);
}

.cifras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cifra { position: relative; padding-left: 1.3rem; }

.cifra::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-marca);
}

.cifra .numero {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--lima-luz);
  letter-spacing: -0.02em;
}

.cifra .detalle { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); max-width: 15rem; }

/* ============================ VIDEO DESTACADO ============================ */
.video-envoltorio {
  position: relative;
  border-radius: calc(var(--radio) + 6px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--sombra-media), 0 0 0 1px var(--borde);
}

.video-envoltorio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-halo { position: relative; }

.video-halo::before {
  content: "";
  position: absolute;
  inset: -34px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(140, 198, 63, 0.22), transparent 70%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

/* ============================ TARJETAS ============================ */
.rejilla-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }

.tarjeta-lujo {
  position: relative;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.9rem;
  transition: transform var(--transicion), border-color var(--transicion), box-shadow var(--transicion);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.tarjeta-lujo:hover { transform: translateY(-5px); border-color: rgba(140, 198, 63, 0.6); box-shadow: var(--sombra-media); }

.tarjeta-lujo .icono {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(140, 198, 63, 0.16);
  border: 1px solid rgba(140, 198, 63, 0.35);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.tarjeta-lujo h3 { font-size: 1.13rem; margin-bottom: 0.55rem; }

.tarjeta-lujo p { color: var(--tinta-2); font-size: 0.95rem; }

.tarjeta-lujo .enlace { display: inline-block; margin-top: 0.9rem; font-weight: 700; text-decoration: none; font-size: 0.93rem; }

/* tarjetas con foto */
.tarjeta-vista {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--sombra-media);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--borde);
  text-decoration: none;
}

.tarjeta-vista:hover { transform: translateY(-5px); }

.tarjeta-vista img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tarjeta-vista:hover img { transform: scale(1.06); }

.tarjeta-vista .velo {
  position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(8, 18, 11, 0.04) 30%, rgba(8, 18, 11, 0.9) 88%);
}

.tarjeta-vista .contenido { position: relative; padding: 1.7rem; width: 100%; }

.tarjeta-vista .etiqueta-mini {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lima-luz);
  background: rgba(140, 198, 63, 0.18);
  border: 1px solid rgba(140, 198, 63, 0.4);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  margin-bottom: 0.7rem;
}

.tarjeta-vista h3 { color: #ffffff; font-size: 1.35rem; margin-bottom: 0.4rem; }

.tarjeta-vista p { color: rgba(238, 245, 230, 0.82); font-size: 0.93rem; }

.tarjeta-vista .enlace { display: inline-flex; gap: 0.4rem; margin-top: 0.8rem; font-weight: 700; text-decoration: none; font-size: 0.92rem; color: var(--lima-luz); }

/* ============================ CHIPS ============================ */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  background: rgba(140, 198, 63, 0.14);
  border: 1px solid rgba(62, 124, 62, 0.32);
  color: var(--verde-hondo);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.chip.azul { background: rgba(30, 136, 184, 0.1); border-color: rgba(30, 136, 184, 0.35); color: #145d80; }
.chip.cobre { background: rgba(181, 86, 45, 0.1); border-color: rgba(181, 86, 45, 0.38); color: #8f421f; }

/* ============================ CITA GRANDE ============================ */
.cita-gran {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  color: var(--tinta);
  line-height: 1.42;
  position: relative;
  padding-left: 1.6rem;
  border-left: 3px solid var(--lima);
}

.cita-gran cite {
  display: block;
  font-family: var(--f-texto);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--tinta-2);
  margin-top: 1.1rem;
}

/* ============================ PÁGINA HERO (interiores) ============================ */
.pagina-heroe {
  position: relative;
  padding: 10rem 0 4.2rem;
  overflow: hidden;
  background:
    radial-gradient(46rem 26rem at 88% -10%, rgba(140, 198, 63, 0.18), transparent 62%),
    radial-gradient(40rem 24rem at 0% 0%, rgba(30, 136, 184, 0.06), transparent 60%),
    linear-gradient(180deg, #f5f9ec 0%, var(--fondo) 90%);
  border-bottom: 1px solid var(--borde);
}

.miga {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinta-3);
  margin-bottom: 1.1rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.miga a { color: var(--tinta-3); text-decoration: none; }
.miga a:hover { color: var(--verde); }
.miga .sep { color: var(--lima); }

.pagina-heroe h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 1rem; max-width: 22ch; }

.pagina-heroe .bajada { font-size: 1.12rem; color: var(--tinta-2); max-width: 44rem; }

/* ============================ MAPA / DIAGRAMAS SVG ============================ */
.mapa-envoltorio {
  overflow-x: auto;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background:
    radial-gradient(30rem 16rem at 80% 0%, rgba(140, 198, 63, 0.1), transparent 60%),
    var(--blanco);
  padding: 1.4rem 1rem;
  box-shadow: var(--sombra-suave);
}

.mapa-planta { min-width: 1040px; width: 100%; height: auto; display: block; }

.mapa-planta .tubo { stroke: #dbe5c9; stroke-width: 3; fill: none; }

.mapa-planta .tubo-flujo {
  stroke: var(--verde);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 5 14;
  animation: fluir 1.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(140, 198, 63, 0.8));
}

@keyframes fluir { to { stroke-dashoffset: -19; } }

.mapa-planta .nodo { cursor: pointer; }

.mapa-planta .nodo rect {
  fill: var(--blanco);
  stroke: #d5e0c2;
  stroke-width: 1.4;
  transition: fill var(--transicion), stroke var(--transicion);
}

.mapa-planta .nodo:hover rect { fill: rgba(140, 198, 63, 0.12); stroke: var(--lima); }

.mapa-planta .nodo.encendido rect {
  fill: rgba(140, 198, 63, 0.18);
  stroke: var(--verde);
  filter: drop-shadow(0 6px 14px rgba(62, 124, 62, 0.3));
}

.mapa-planta .nodo text { fill: var(--tinta); font-family: var(--f-texto); }

.mapa-planta .nodo .titulo-nodo { font-size: 14.5px; font-weight: 700; }
.mapa-planta .nodo .icono-nodo { font-size: 21px; }
.mapa-planta .nodo .paso-nodo { font-size: 10.5px; fill: var(--verde); font-weight: 700; letter-spacing: 0.12em; }

.mapa-planta .texto-borde { fill: var(--tinta-3); font-size: 12.5px; font-family: var(--f-texto); }

/* ============================ SCROLLYTELLING ============================ */
.scrolly { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 3.4rem; align-items: start; }

.scrolly-figura {
  position: sticky;
  top: 110px;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--borde);
  background: var(--blanco);
  box-shadow: var(--sombra-media);
}

.scrolly-figura img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.scrolly-figura .pie { padding: 1.3rem 1.5rem 1.5rem; }

.scrolly-figura .progreso {
  height: 4px;
  background: #e9efdd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.scrolly-figura .progreso i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-marca);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.scrolly-figura h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }

.scrolly-figura p { color: var(--tinta-2); font-size: 0.92rem; margin-bottom: 0.9rem; }

.scrolly-pasos { display: flex; flex-direction: column; gap: 1.2rem; }

.scrolly-paso {
  border: 1px solid var(--borde);
  border-left: 3px solid transparent;
  border-radius: var(--radio-s);
  background: var(--blanco);
  padding: 1.7rem 1.8rem;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color var(--transicion), background var(--transicion), opacity var(--transicion);
  opacity: 0.45;
  box-shadow: var(--sombra-suave);
}

.scrolly-paso.encendido {
  opacity: 1;
  border-left-color: var(--lima);
  background: #fbfdf6;
}

.scrolly-paso .num-paso {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--verde);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

.scrolly-paso h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

.scrolly-paso p { color: var(--tinta-2); font-size: 0.98rem; margin-bottom: 0.9rem; }

/* ============================ PANEL GRÁFICO ============================ */
.panel-grafico {
  background: var(--blanco);
  color: var(--tinta);
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  padding: 1.8rem;
  box-shadow: var(--sombra-suave);
}

.controles-grafico { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }

.tab-boton {
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  color: var(--tinta-2);
  border-radius: 999px;
  padding: 0.42rem 1.15rem;
  font-family: var(--f-texto);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transicion);
}

.tab-boton:hover { border-color: var(--lima); color: var(--verde-hondo); }

.tab-boton.encendido { background: var(--verde); border-color: var(--verde); color: var(--blanco); }

.tab-boton.al-final { margin-left: auto; }

.titulo-grafico { font-size: 1.05rem; margin: 0.7rem 0 0.15rem; }

.sub-grafico { font-size: 0.86rem; color: var(--tinta-2); margin-bottom: 0.9rem; }

.lienzo-grafico { position: relative; }

.lienzo-grafico svg { width: 100%; height: auto; display: block; }

.tooltip-grafico {
  position: absolute;
  pointer-events: none;
  background: var(--banda);
  color: var(--blanco);
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  transform: translate(-50%, -112%);
  transition: opacity 0.12s;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 10px 26px rgba(10, 20, 12, 0.25);
}

.tooltip-grafico.visible { opacity: 1; }

.leyenda-grafico { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0.4rem 0 0.8rem; font-size: 0.85rem; color: var(--tinta-2); }

.leyenda-grafico .clave { display: inline-flex; align-items: center; gap: 0.45rem; }

.leyenda-grafico .clave i { width: 14px; height: 3px; border-radius: 3px; display: inline-block; }

.tabla-datos { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 1rem; }

.tabla-datos th {
  text-align: right;
  padding: 0.55rem 0.85rem;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--f-display);
  font-weight: 600;
}

.tabla-datos th:first-child, .tabla-datos td:first-child { text-align: left; }

.tabla-datos td {
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--borde);
  color: var(--tinta-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.oculto { display: none !important; }

.nota { font-size: 0.84rem; color: var(--tinta-3); }

/* ============================ KPI ============================ */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }

.kpi {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.kpi::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--grad-marca);
  opacity: 0.9;
}

.kpi .etiqueta-kpi { font-size: 0.82rem; color: var(--tinta-2); }

.kpi .valor { font-family: var(--f-display); font-weight: 700; font-size: 2.1rem; color: var(--tinta); letter-spacing: -0.02em; }

.kpi .detalle-kpi { font-size: 0.79rem; color: var(--tinta-3); }

/* dentro de la banda oscura, las tarjetas KPI siguen siendo blancas y funcionan bien */

/* ============================ SIMULADOR ============================ */
.simulador {
  background: linear-gradient(160deg, rgba(140, 198, 63, 0.14), var(--blanco) 55%);
  border: 1px solid rgba(140, 198, 63, 0.45);
  border-radius: var(--radio);
  padding: 2.1rem;
  box-shadow: var(--sombra-suave);
}

.simulador h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }

.simulador .instruccion { color: var(--tinta-2); font-size: 0.94rem; margin-bottom: 1.6rem; }

.deslizador-fila { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.7rem; flex-wrap: wrap; }

.deslizador-valor {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--verde);
  min-width: 7.5ch;
}

input[type="range"].deslizador {
  flex: 1 1 260px;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--lima) var(--lleno, 30%), #e2ead4 var(--lleno, 30%));
  outline: none;
  cursor: pointer;
}

input[type="range"].deslizador::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blanco);
  border: 5px solid var(--verde);
  box-shadow: 0 4px 14px rgba(62, 124, 62, 0.4);
  transition: transform 0.15s;
}

input[type="range"].deslizador::-webkit-slider-thumb:hover { transform: scale(1.12); }

input[type="range"].deslizador::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blanco);
  border: 5px solid var(--verde);
  box-shadow: 0 4px 14px rgba(62, 124, 62, 0.4);
}

.simulador-salidas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.salida {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-s);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--sombra-suave);
}

.salida .etiqueta-kpi { font-size: 0.8rem; color: var(--tinta-2); }

.salida .valor { font-family: var(--f-display); font-weight: 700; font-size: 1.65rem; color: var(--tinta); }

.salida .valor.negativo { color: var(--cobre); }

.salida .detalle-kpi { font-size: 0.76rem; color: var(--tinta-3); }

/* ============================ LÍNEA DE TIEMPO ============================ */
.linea-tiempo {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.1rem;
  overflow-x: auto;
  padding: 1.6rem 0.2rem 1rem;
  scroll-snap-type: x proximity;
}

.hito {
  position: relative;
  scroll-snap-align: start;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-s);
  padding: 2.1rem 1.4rem 1.4rem;
  transition: transform var(--transicion), border-color var(--transicion), box-shadow var(--transicion);
  box-shadow: var(--sombra-suave);
}

.hito:hover { transform: translateY(-4px); border-color: rgba(140, 198, 63, 0.6); box-shadow: var(--sombra-media); }

.hito::before {
  content: "";
  position: absolute;
  top: -1px; left: 1.4rem;
  width: 40px; height: 3px;
  background: var(--grad-marca);
  border-radius: 3px;
}

.hito .cuando {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.hito h3 { font-size: 1.03rem; margin-bottom: 0.4rem; }

.hito p { color: var(--tinta-2); font-size: 0.86rem; }

/* ============================ ACORDEÓN ============================ */
.acordeon { border: 1px solid var(--borde); border-radius: var(--radio-s); overflow: hidden; background: var(--blanco); }

.acordeon + .acordeon { margin-top: 0.8rem; }

.acordeon summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--tinta);
  transition: background var(--transicion);
}

.acordeon summary::-webkit-details-marker { display: none; }

.acordeon summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--verde);
  transition: transform var(--transicion);
  flex: 0 0 auto;
}

.acordeon[open] summary::after { transform: rotate(45deg); }

.acordeon summary:hover { background: var(--crema); }

.acordeon .cuerpo-acordeon { padding: 0.4rem 1.4rem 1.3rem; color: var(--tinta-2); font-size: 0.95rem; }

/* ============================ LISTA CHECK ============================ */
.lista-check { list-style: none; }

.lista-check li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--tinta);
}

.lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: rgba(140, 198, 63, 0.18);
  border: 1px solid rgba(62, 124, 62, 0.4);
  color: var(--verde);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================ GALERÍA + LIGHTBOX ============================ */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.galeria figure {
  position: relative;
  border-radius: var(--radio-s);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--borde);
  aspect-ratio: 4 / 3;
  box-shadow: var(--sombra-suave);
}

.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.galeria figure:hover img { transform: scale(1.07); }

.galeria figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, transparent, rgba(5, 12, 7, 0.85));
  opacity: 0;
  transition: opacity var(--transicion);
}

.galeria figure:hover figcaption { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 12, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  cursor: zoom-out;
}

.lightbox.abierto { display: flex; }

.lightbox img {
  max-width: min(1080px, 94vw);
  max-height: 82vh;
  border-radius: var(--radio-s);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox .pie-luz {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(238, 245, 230, 0.9);
  font-size: 0.9rem;
  text-align: center;
  max-width: 46rem;
}

.lightbox .cerrar-luz {
  position: absolute;
  top: 1.3rem; right: 1.6rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

/* ============================ FORMULARIO ============================ */
.formulario {
  display: grid;
  gap: 1.15rem;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 2.2rem;
  box-shadow: var(--sombra-suave);
}

.formulario label { font-weight: 600; font-size: 0.88rem; color: var(--tinta); }

.formulario input, .formulario textarea, .formulario select {
  width: 100%;
  border: 1.5px solid var(--borde);
  background: var(--fondo);
  color: var(--tinta);
  border-radius: 11px;
  padding: 0.8rem 1rem;
  font-family: var(--f-texto);
  font-size: 0.96rem;
  margin-top: 0.35rem;
  transition: border-color var(--transicion), box-shadow var(--transicion);
}

.formulario input::placeholder, .formulario textarea::placeholder { color: var(--tinta-3); }

.formulario input:focus, .formulario textarea:focus, .formulario select:focus {
  outline: none;
  border-color: var(--lima);
  box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.2);
}

.aviso-nota {
  background: rgba(140, 198, 63, 0.1);
  border: 1px solid rgba(62, 124, 62, 0.32);
  border-radius: var(--radio-s);
  padding: 0.95rem 1.2rem;
  font-size: 0.88rem;
  color: var(--verde-hondo);
}

/* ============================ CTA FINAL (banda verde, como v1) ============================ */
.cta-final {
  position: relative;
  border-radius: calc(var(--radio) + 8px);
  overflow: hidden;
  padding: 4rem 3.4rem;
  background:
    radial-gradient(40rem 22rem at 90% -20%, rgba(140, 198, 63, 0.35), transparent 60%),
    linear-gradient(135deg, var(--banda-2), var(--banda));
  border: 1px solid rgba(140, 198, 63, 0.3);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.4rem;
  align-items: center;
}

.cta-final h2 { color: #ffffff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 0.8rem; }

.cta-final p { color: rgba(238, 245, 230, 0.8); max-width: 34rem; }

.cta-final .derecha { display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem; }

.cta-final .correo { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--lima-luz); text-decoration: none; }

.cta-final .boton-primario { color: var(--banda-2); background: linear-gradient(120deg, #a8d95e, #8cc63f); }

/* ============================ FOOTER (claro, como v1) ============================ */
.pie {
  border-top: 1px solid var(--borde);
  padding: 3.6rem 0 2rem;
  background: var(--blanco);
}

.pie-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  margin-bottom: 2.6rem;
}

.pie .sello-logo { display: inline-block; margin-bottom: 1rem; }

.pie .sello-logo img { height: 46px; width: auto; }

.pie .descripcion { color: var(--tinta-2); font-size: 0.9rem; max-width: 21rem; }

.pie h4 {
  color: var(--tinta);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pie ul { list-style: none; }

.pie li { margin-bottom: 0.55rem; color: var(--tinta-2); font-size: 0.92rem; }

.pie a { color: var(--tinta-2); text-decoration: none; font-size: 0.92rem; transition: color var(--transicion); }

.pie a:hover { color: var(--verde); }

.pie-bajo {
  border-top: 1px solid var(--borde);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--tinta-3);
}

/* ============================ REVEAL / UTILIDADES ============================ */
.js-listo .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-listo .reveal.visible { opacity: 1; transform: none; }

.js-listo .reveal.retraso-1 { transition-delay: 0.1s; }
.js-listo .reveal.retraso-2 { transition-delay: 0.2s; }
.js-listo .reveal.retraso-3 { transition-delay: 0.3s; }

.volver-arriba {
  position: fixed;
  right: 1.55rem;
  bottom: 6.6rem;
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--verde);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--verde);
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transicion), transform var(--transicion);
  box-shadow: var(--sombra-suave);
}

.volver-arriba.visible { opacity: 1; pointer-events: auto; }

.volver-arriba:hover { transform: translateY(-3px); }

.progreso-pagina {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-marca);
  z-index: 100;
  box-shadow: 0 0 10px rgba(140, 198, 63, 0.6);
}

/* ============================ BOTÓN WHATSAPP (escudo oficial) ============================ */
.btn-wsp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 85;
  width: 68px;
  height: 70px;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(24, 44, 28, 0.32));
  transition: transform var(--transicion);
}

.btn-wsp:hover { transform: translateY(-4px) scale(1.05); }

.btn-wsp svg { width: 100%; height: 100%; display: block; }

.btn-wsp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.55);
  animation: pulso 2.4s infinite;
  z-index: -1;
}

.btn-wsp .globito {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--blanco);
  border: 1px solid var(--borde);
  color: var(--tinta);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  white-space: nowrap;
  box-shadow: var(--sombra-suave);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transicion);
}

.btn-wsp:hover .globito { opacity: 1; }

/* ============================ BLOG ============================ */
.rejilla-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.tarjeta-blog {
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}

.tarjeta-blog:hover { transform: translateY(-5px); box-shadow: var(--sombra-media); border-color: rgba(140, 198, 63, 0.55); }

.tarjeta-blog .portada { height: 190px; overflow: hidden; }

.tarjeta-blog .portada img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.tarjeta-blog:hover .portada img { transform: scale(1.06); }

.tarjeta-blog .cuerpo { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }

.tarjeta-blog .meta-blog {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--verde);
}

.tarjeta-blog .meta-blog .fecha { color: var(--tinta-3); font-weight: 500; letter-spacing: 0.03em; text-transform: none; font-size: 0.8rem; }

.tarjeta-blog h3 { font-size: 1.12rem; color: var(--tinta); line-height: 1.32; }

.tarjeta-blog p { color: var(--tinta-2); font-size: 0.92rem; flex: 1; }

.tarjeta-blog .leer { color: var(--verde); font-weight: 700; font-size: 0.9rem; }

/* artículo */
.prosa { max-width: 46rem; margin: 0 auto; font-size: 1.05rem; }

.prosa .meta-articulo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  font-size: 0.85rem;
  color: var(--tinta-3);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--borde);
}

.prosa h2 { font-size: 1.55rem; margin: 2.4rem 0 0.9rem; }

.prosa h3 { font-size: 1.2rem; margin: 1.8rem 0 0.7rem; }

.prosa p { color: #33422f; margin-bottom: 1.15rem; }

.prosa ul, .prosa ol { margin: 0 0 1.15rem 1.4rem; color: #33422f; }

.prosa li { margin-bottom: 0.45rem; }

.prosa figure { margin: 1.8rem 0; border-radius: var(--radio-s); overflow: hidden; border: 1px solid var(--borde); box-shadow: var(--sombra-suave); }

.prosa figure img { width: 100%; max-height: 420px; object-fit: cover; }

.prosa figcaption { font-size: 0.82rem; color: var(--tinta-3); padding: 0.6rem 1rem; background: var(--blanco); }

.prosa blockquote {
  border-left: 3px solid var(--lima);
  padding: 0.4rem 0 0.4rem 1.2rem;
  font-style: italic;
  color: var(--tinta-2);
  margin: 1.5rem 0;
}

.prosa .destacado {
  background: rgba(140, 198, 63, 0.1);
  border: 1px solid rgba(62, 124, 62, 0.3);
  border-radius: var(--radio-s);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  color: var(--verde-hondo);
  font-size: 0.97rem;
}

/* ============================ LOGIN ============================ */
.login-envoltorio {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 9rem 0 5rem;
  background:
    radial-gradient(44rem 26rem at 85% 0%, rgba(140, 198, 63, 0.16), transparent 60%),
    linear-gradient(180deg, #f5f9ec 0%, var(--fondo) 90%);
}

.login-caja {
  width: min(480px, 92vw);
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: calc(var(--radio) + 4px);
  box-shadow: var(--sombra-media);
  padding: 2.4rem 2.4rem 2rem;
}

.login-caja .logo-login { display: flex; justify-content: center; margin-bottom: 1.4rem; }

.login-caja .logo-login img { height: 52px; width: auto; }

.login-caja h1 { font-size: 1.45rem; text-align: center; margin-bottom: 0.4rem; }

.login-caja .sub-login { text-align: center; color: var(--tinta-2); font-size: 0.92rem; margin-bottom: 1.6rem; }

.login-pestanas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
}

.login-pestanas button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 0.6rem;
  font-family: var(--f-texto);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tinta-2);
  cursor: pointer;
  transition: all var(--transicion);
}

.login-pestanas button.encendido {
  background: var(--blanco);
  color: var(--verde-hondo);
  box-shadow: var(--sombra-suave);
}

.login-caja label { font-weight: 600; font-size: 0.86rem; color: var(--tinta); display: block; margin-bottom: 0.9rem; }

.login-caja input {
  width: 100%;
  border: 1.5px solid var(--borde);
  background: var(--fondo);
  color: var(--tinta);
  border-radius: 11px;
  padding: 0.75rem 1rem;
  font-family: var(--f-texto);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.login-caja input:focus { outline: none; border-color: var(--lima); box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.18); }

.login-caja .boton { width: 100%; justify-content: center; margin-top: 0.4rem; }

.login-demo {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--tinta-3);
  background: var(--crema);
  border-radius: 10px;
  padding: 0.7rem 1rem;
}

/* ============================ DASHBOARD ============================ */
.tablero-cabecera {
  padding: 8.6rem 0 1.8rem;
  background:
    radial-gradient(44rem 24rem at 90% -10%, rgba(140, 198, 63, 0.18), transparent 60%),
    linear-gradient(180deg, #f5f9ec 0%, var(--fondo) 92%);
  border-bottom: 1px solid var(--borde);
}

.tablero-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.tablero-fila h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.tablero-fila .quien { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

.tablero-controles { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.selector {
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  color: var(--tinta);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--f-texto);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.tablero-cuerpo { padding: 2.6rem 0 4.5rem; }

.tablero-seccion { margin-bottom: 2.4rem; }

.tablero-seccion h2 { font-size: 1.25rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }

.eco-tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.eco-tarjeta {
  background: linear-gradient(160deg, rgba(140, 198, 63, 0.13), var(--blanco) 60%);
  border: 1px solid rgba(140, 198, 63, 0.4);
  border-radius: var(--radio);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--sombra-suave);
}

.eco-tarjeta .emoji { font-size: 1.7rem; }

.eco-tarjeta .valor { font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; color: var(--tinta); margin: 0.2rem 0 0.1rem; }

.eco-tarjeta .detalle-kpi { font-size: 0.82rem; color: var(--tinta-2); }

.estado {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.estado.ok { background: rgba(62, 124, 62, 0.13); color: var(--verde-hondo); border: 1px solid rgba(62, 124, 62, 0.35); }
.estado.proceso { background: rgba(30, 136, 184, 0.11); color: #145d80; border: 1px solid rgba(30, 136, 184, 0.32); }
.estado.agendado { background: rgba(181, 86, 45, 0.1); color: #8f421f; border: 1px solid rgba(181, 86, 45, 0.32); }

.boton-mini {
  border: 1.5px solid var(--verde);
  background: var(--blanco);
  color: var(--verde-hondo);
  border-radius: 999px;
  padding: 0.32rem 0.95rem;
  font-family: var(--f-texto);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transicion);
}

.boton-mini:hover { background: var(--crema); }

.barra-compuesta { display: flex; height: 30px; border-radius: 10px; overflow: hidden; gap: 2px; background: var(--fondo); }

.barra-compuesta span { display: block; height: 100%; }

.aviso-flotante {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--banda);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(10, 20, 12, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 150;
}

.aviso-flotante.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .pie-grid { grid-template-columns: 1fr 1fr; }
  .rejilla-3, .rejilla-blog { grid-template-columns: 1fr 1fr; }
  .kpis, .cifras-grid, .eco-tarjetas { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .heroe-grid, .rejilla-2, .cta-final, .scrolly { grid-template-columns: 1fr; }
  .heroe-visual { min-height: 430px; margin-top: 1rem; }
  .scrolly-figura { position: relative; top: 0; }
  .scrolly-paso { min-height: 0; }
  .cta-final .derecha { align-items: flex-start; }
  .galeria { grid-template-columns: 1fr 1fr; }
  .simulador-salidas { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .alternar-menu { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--borde);
    box-shadow: 0 20px 40px rgba(24, 44, 28, 0.1);
    padding: 1.2rem 5%;
    gap: 1.05rem;
  }
  .menu.abierto { display: flex; }
}

@media (max-width: 760px) {
  .rejilla-3, .rejilla-blog { grid-template-columns: 1fr; }
  .cifras-grid, .kpis, .eco-tarjetas { grid-template-columns: 1fr; }
  .btn-wsp { width: 58px; height: 60px; right: 1rem; bottom: 1rem; }
  .volver-arriba { right: 1.15rem; bottom: 5.6rem; }
  .seccion { padding: 4.4rem 0; }
  .cta-final { padding: 2.6rem 1.8rem; }
  .galeria { grid-template-columns: 1fr; }
  .heroe { padding-top: 7.2rem; }
  .marca img { height: 44px; }
}

/* ============================ MOVIMIENTO REDUCIDO ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .js-listo .reveal { opacity: 1; transform: none; }
}
