@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2'), url('../fonts/inter-400.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2'), url('../fonts/inter-500.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2'), url('../fonts/inter-600.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2'), url('../fonts/inter-700.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800.woff2') format('woff2'), url('../fonts/inter-800.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/inter-900.woff2') format('woff2'), url('../fonts/inter-900.woff') format('woff');
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  background: #000;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilidades de accesibilidad ── */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 100px;
  background: #ffffff;
  color: #0b0f14;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Foco visible y consistente (teclado) */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.planta-section :focus-visible {
  outline-color: var(--gold-ink);
}

.plant-calc-container :focus-visible {
  outline-color: #3FB4E6;
}

/* ── Scroll container ── */
#scroll-container {
  /* Recorrido del hero + una pantalla. Debe coincidir con HERO_TRAVEL en main.js */
  /* --hero-pre: tramo del logo IMMAC antes del video (INTRO + BLEND + HOLD en main.js) */
  height: calc(var(--hero-pre) + var(--hero-travel) + 100vh);
}

/* Cargador claro (inicio): mismo rodillo y vía, sobre el blanco con el que abre el hero */
#loader.loader--light { background: #fff; }
#loader.loader--light .ld-road { box-shadow: 0 6px 18px rgba(10, 30, 50, 0.12); }
#loader.loader--light .ld-cap { color: rgba(10, 30, 50, 0.55); }

/* Hero · tramo del logo sobre blanco (html.hero-on-light lo pone main.js):
   indicador de scroll y barra en tinta oscura; la sombra superior aparece con la planta */
#sticky-wrap::after { opacity: var(--hero-shade, 1); }
.scroll-label-main,
.scroll-label-sub,
.scroll-track-line,
#progress-bar { transition: color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, text-shadow 0.4s ease; }
.hero-on-light .scroll-track-line { background: rgba(10, 30, 50, 0.14); }
.hero-on-light .scroll-label-main { color: #0A1E32; text-shadow: none; }
.hero-on-light .scroll-label-sub { color: rgba(10, 30, 50, 0.6); text-shadow: none; }
.hero-on-light #progress-bar {
  background: linear-gradient(90deg, rgba(10, 95, 154, 0.12), #0A5F9A 60%, rgba(10, 95, 154, 0.12));
  box-shadow: none;
}

/* Portada blanca: "Desliza para descubrir" centrado; el indicador de la esquina espera a la planta */
.hero-on-light #scroll-hint { opacity: 0; }
#intro-cue {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(40px, 9vh, 92px);
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
#intro-cue .ic-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: ic-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.ic-text {
  font: 700 12px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* compensa el espaciado final para centrar */
  text-transform: uppercase;
  color: rgba(10, 30, 50, 0.78);
}
.ic-line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(10, 30, 50, 0.16);
}
.ic-line span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 24px;
  background: linear-gradient(180deg, rgba(10, 95, 154, 0), #0A5F9A 70%, #B6CD20);
  animation: luxuryScrollSlide 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes ic-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  #intro-cue .ic-inner, .ic-line span { animation: none; }
}

/* La portada sube suavemente mientras aparece sobre la planta (--hero-in: 0 → 1 desde main.js) */
#hero-overlay { opacity: 0; }
#hero-overlay .hero-headline-block,
#hero-overlay .hero-stats-strip { translate: 0 calc((1 - var(--hero-in, 1)) * 34px); }

/* ── Sticky canvas wrapper ── */
#sticky-wrap {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sombra fija arriba durante todo el video: el menú blanco se lee en las tomas claras
   (la de la portada se va con ella al bajar) */
#sticky-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 190px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 11, 0.62) 0%, rgba(4, 7, 11, 0.38) 45%, rgba(4, 7, 11, 0) 100%);
}

canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
}

/* ── Progress bar ── */
#progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(90deg, #ffffff22, #fff 60%, #ffffff22);
  z-index: 100;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.35);
}

/* ── Loading overlay ── */
#loader {
  position: fixed;
  inset: 0;
  background: #05080C;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Cargador IMMAC: un rodillo recorre un tramo de vía y deja detrás asfalto recién extendido,
   con la línea central blanca y los bordes en verde lima de la marca */
#loader { gap: 34px; }
.ld-logo { display: block; width: 180px; height: auto; }
.ld-road {
  position: relative;
  width: min(360px, 74vw);
  height: 34px;
  border-radius: 4px;
  overflow: hidden;
  background: #15191E;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ld-road::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 1px, transparent 1.5px) 0 0 / 6px 6px; } /* textura del agregado */
.ld-road > span { position: absolute; display: block; }
.ld-mat { inset: 0; transform-origin: left center; transform: scaleX(0); background: linear-gradient(180deg, #23282E, #101317); animation: ld-pave 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.ld-lane { left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, #F2F2F2 0 22px, transparent 22px 40px); clip-path: inset(0 100% 0 0); animation: ld-line 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.ld-edge { left: 0; right: 0; height: 2px; background: #B6CD20; opacity: 0.8; clip-path: inset(0 100% 0 0); animation: ld-line 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.ld-edge--t { top: 3px; }
.ld-edge--b { bottom: 3px; }
.ld-roller { top: 50%; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9AA5B0 55%, #3D454D); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); animation: ld-roll 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.ld-cap { margin: 0; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
@keyframes ld-pave { 0% { transform: scaleX(0); } 75%, 100% { transform: scaleX(1); } }
@keyframes ld-line { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 75% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes ld-roll { 0% { left: 0; opacity: 1; } 75% { left: 100%; opacity: 1; } 76%, 100% { left: 100%; opacity: 0; } }


/* ═══════════════════════════════════════════════════════════════
   ULTRA-PREMIUM CINEMATIC SCROLL INDICATOR (BOTTOM-LEFT)
═══════════════════════════════════════════════════════════════ */
#scroll-hint {
  position: fixed;
  bottom: 44px;
  left: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 40;
  opacity: 1;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1), transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

#scroll-hint.hidden {
  opacity: 0;
  transform: translateY(12px);
}

/* Elegante línea vertical con destello deslizante */
.scroll-track-line {
  width: 2px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-pulse-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  background: linear-gradient(180deg, transparent 0%, #B6CD20 60%, #FFFFFF 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(182, 205, 32, 0.8);
  animation: luxuryScrollSlide 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes luxuryScrollSlide {
  0% {
    transform: translateY(-26px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(52px);
    opacity: 0;
  }
}

/* Tipografía editorial de lujo */
.scroll-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scroll-label-main {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.scroll-label-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════════
   HERO OVERLAY
═══════════════════════════════════════════════════════════════ */

/* Accent colour token */
:root {
  /* Acentos (antes dorados) → azules del logo IMMAC */
  --gold: #3FB4E6;
  --gold-light: #6CC6EE;
  --gold-dim: rgba(63, 180, 230, 0.18);
  --white: #ffffff;
  --white-60: rgba(255, 255, 255, 0.60);
  --white-30: rgba(255, 255, 255, 0.30);
  --white-10: rgba(255, 255, 255, 0.10);
  --dark-80: rgba(0, 0, 0, 0.80);
  --dark-50: rgba(0, 0, 0, 0.50);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --white-40: rgba(255, 255, 255, 0.40);
  /* Dorados legibles sobre fondos claros (WCAG AA) */
  --gold-ink: #0A5F9A;      /* acento sobre fondo claro (azul del logo) */
  --gold-ink-lg: #0A5F9A;
  --muted-ink: #5A6778;
  --font-mono: 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --hero-travel: 10870px;   /* hero anterior (frames-opt): 1912px */
  --hero-pre: 3650px; /* tramo del logo IMMAC antes del video (= HERO_PRE en main.js) */
  /* Colores del logo IMMAC */
  --immac-lime: #B6CD20;
  --immac-cyan: #138AB7;
  --immac-cyan-light: #3FB4E6;
  --immac-blue: #0A5F9A;
  --immac-navy: #134371;
  --immac-ink: #101828;

  /* ── Palabras destacadas (antes en dorado): azul del logo ──
     El resto del texto sigue en negro (fondo claro) o blanco (fondo oscuro). */
  --accent-on-light: #0A5F9A; /* 5,8–6,7:1 sobre los fondos claros */
  --accent-on-dark: #3FB4E6;  /* 5,8–8,3:1 sobre el video y la calculadora */
}

#hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  /* canvas scrolling still works */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   HERO STATEMENT (MID-SCROLL CINEMATIC ASYMMETRICAL REVEAL)
═══════════════════════════════════════════════════════════════ */
.hero-statement-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 0 clamp(32px, 7vw, 110px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  transition: opacity 0.08s linear;
}

.statement-backdrop-glow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(850px, 80vw);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.statement-inner {
  will-change: transform;
  text-align: left;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 2px solid var(--gold);
  padding-left: clamp(20px, 2.4vw, 36px);
  position: relative;
}

.statement-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 15px;
  border-radius: 100px;
  border: 1px solid rgba(63, 180, 230, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.statement-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(63, 180, 230, 0.85);
}

.statement-h2 {
  font-size: clamp(26px, 3.6vw, 50px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 35px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.95);
  margin: 0;
  text-align: left;
}

.statement-accent {
  color: var(--accent-on-dark);
  display: inline-block;
  text-shadow: 0 0 30px rgba(63, 180, 230, 0.35);
}

.statement-sub {
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 18px;
  font-weight: 400;
  max-width: 520px;
  text-align: left;
}

/* Tablet ≤1024px */
@media (max-width: 1024px) {
  #hero-body {
    top: 130px;
  }

  .hero-stats-strip {
    bottom: 32px;
    right: 32px;
    padding: 12px 18px;
  }
}

/* ── Main content ── */
#hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 160px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: 0 48px 48px;
  gap: 0;
}

/* Headline block */
.hero-headline-block {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding-top: 36px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Pulso de los puntos: un aro aparte que solo usa transform y opacidad
   (antes animaba box-shadow, que se redibuja en cada fotograma) */
.statement-dot, .eyebrow-dot, .status-pulse { position: relative; }
.statement-dot::after, .eyebrow-dot::after, .status-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(63, 180, 230, 0.6);
  animation: pulseRing 2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(3.6); opacity: 0; }
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}

.hero-h1 {
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-h1 .accent {
  color: var(--accent-on-dark);
  display: inline;
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--white-60);
  max-width: 420px;
  margin-bottom: 36px;
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    border-color: var(--white-30);
    background: var(--white-10);
    transform: translateY(-2px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM HERO STATS COUNTERS (ARCHITECTURAL LUXURY DESIGN)
   Totalmente fluido y balanceado para Desktop, Tablet y Móvil
═══════════════════════════════════════════════════════════════ */
.hero-stats-strip {
  position: absolute;
  bottom: clamp(24px, 4.5vh, 48px);
  right: clamp(24px, 3.8vw, 56px);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 25;
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: clamp(14px, 1.5vw, 20px);
  padding: clamp(10px, 1.4vh, 16px) clamp(14px, 1.8vw, 24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease, box-shadow 200ms ease;
  max-width: 90vw;
}

@media (hover: hover) and (pointer: fine) {
  .hero-stats-strip:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 89, 146, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(10px, 1.4vw, 24px);
  min-width: clamp(85px, 8vw, 130px);
  position: relative;
}

.hero-stat-num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-stat-plus {
  font-size: clamp(16px, 1.4vw, 24px);
  font-weight: 700;
  color: #B6CD20;
  line-height: 1;
  text-shadow: 0 0 14px rgba(182, 205, 32, 0.45);
}

.hero-stat-count {
  font-size: clamp(26px, 2.5vw, 46px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.hero-stat-label {
  font-size: clamp(10px, 0.72vw, 11.5px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  margin-top: clamp(4px, 0.7vh, 8px);
  line-height: 1.35;
}

.hero-stat-divider {
  width: 1px;
  height: clamp(30px, 4vh, 44px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 25%,
    rgba(255, 255, 255, 0.22) 75%,
    transparent 100%
  );
  flex-shrink: 0;
}

/* Social icons (bottom-center) */
.social-row {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--white-60);
}

@media (hover: hover) and (pointer: fine) {
  .social-btn:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--accent-on-dark);
    transform: translateY(-3px);
  }
}

/* ── Thin top gradient to darken under navbar ── */
#hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Bottom vignette ── */
#hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #hero-body {
    top: 110px;
    padding: 0 24px 36px;
  }

  .hero-h1 {
    font-size: clamp(28px, 6.5vw, 42px);
  }

  .hero-stats-strip {
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: calc(100vw - 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    box-sizing: border-box;
    z-index: 30;
  }

  .hero-stat {
    align-items: center;
    padding: 0 4px;
    min-width: 0;
    flex: 1 1 0;
  }

  .hero-stat-num {
    gap: 1px;
  }

  .hero-stat-count {
    font-size: clamp(18px, 5.2vw, 24px);
  }

  .hero-stat-plus {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  .hero-stat-label {
    font-size: 9.5px;
    text-align: center;
    margin-top: 3px;
    letter-spacing: 0.03em;
    line-height: 1.2;
  }

  .hero-stat-divider {
    height: 28px;
  }

  /* Reubicamos scroll-hint y social-row para no colisionar en móvil */
  #scroll-hint {
    display: none;
  }

  /* En móvil las redes viven dentro del menú */
  .social-row {
    display: none;
  }



  .hero-statement-overlay {
    padding: 0 24px;
  }

  .statement-inner {
    padding-left: 18px;
    max-width: 100%;
  }

  .statement-h2 {
    font-size: clamp(23px, 6.4vw, 36px);
  }

}


/* ═══════════════════════════════════════════════════════════════
   PLANTA DE PRODUCCIÓN — CINEMATIC SCROLL EXPERIENCE (LIGHT THEME)
═══════════════════════════════════════════════════════════════ */

/* La sección sube --hero-feather px sobre el final del video y esa franja
   funde el video con el azul de la introducción (sin corte ni línea) */
.planta-section {
  --hero-feather: 240px;
  position: relative;
  z-index: 15;
  margin-top: calc(-1 * var(--hero-feather));
  padding-top: var(--hero-feather);
  background: transparent;
  color: #11161B;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── PHASE 1: CINEMATIC INTRODUCTION ── */
.plant-intro-container {
  position: relative;
  min-height: 100vh;
  padding: 140px 6vw 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(63, 180, 230, 0.1) 0%, transparent 60%), #F4F6F8;
}

.plant-intro-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 360px;
  background: linear-gradient(180deg,
      #001429 0%,
      rgba(0, 20, 41, 0.86) 18%,
      rgba(0, 62, 112, 0.34) 46%,
      rgba(244, 246, 248, 0.78) 76%,
      #F4F6F8 100%);
  pointer-events: none;
}

.plant-intro-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.plant-eyebrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.plant-tech-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  border: 1px solid rgba(10, 95, 154, 0.35);
  padding: 5px 14px;
  border-radius: 4px;
  background: rgba(63, 180, 230, 0.1);
}

.plant-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.plant-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0A5F9A;
  box-shadow: 0 0 10px rgba(10, 95, 154, 0.6);
}

.plant-eyebrow-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4A5568;
}

.plant-h2 {
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0E1318;
  margin: 10px 0 20px;
}

.plant-h2 .line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}

.plant-h2 .line-inner {
  display: inline-block;
}

.plant-accent {
  color: var(--accent-on-light);
}

.plant-desc {
  max-width: 680px;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.7;
  color: #4A5568;
  margin: 0 auto 56px;
  font-weight: 400;
}

/* Showcase frame with cinematic mask */
.plant-showcase-frame {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.plant-showcase-clip {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.14);
  background: #111417;
}

.plant-showcase-img {
  width: 100%;
  height: 520px;
  max-height: 60vh;
  object-fit: cover;
  object-position: center 85%; /* la planta y el mixer están abajo en la foto */
  display: block;
  transform-origin: center center;
}

.plant-showcase-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 13, 0.88) 0%, rgba(9, 11, 13, 0.15) 50%, transparent 100%);
  pointer-events: none;
}

.plant-showcase-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}

.hud-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.hud-tag {
  font-weight: 700;
  color: var(--accent-on-dark);
}

.hud-spec {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}

.hud-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.hud-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.hud-batch {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}


/* ── PHASE 2 & 3: PINNED STORYTELLING SEQUENCE ── */
.plant-story-pin {
  position: relative;
  width: 100%;
  background: #ECEFF3;
}

.plant-story-viewport {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 5vw 28px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Story Top Bar */
.story-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5A6778;
}

.story-brand-tag .tag-accent {
  color: var(--accent-on-light);
  font-weight: 700;
}

.story-progress-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-step-current {
  font-weight: 800;
  color: #0E1318;
  font-size: 13px;
  min-width: 20px;
}

.story-progress-track {
  width: 140px;
  height: 3px;
  background: rgba(0, 0, 0, 0.09);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.story-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #0A5F9A, #0E1318);
  border-radius: 3px;
  transition: transform 0.12s ease-out;
  box-shadow: 0 0 10px rgba(10, 95, 154, 0.4);
}

.story-step-total {
  font-weight: 600;
  color: var(--muted-ink);
  font-size: 13px;
}

/* Story Main Stage */
.story-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 4.5vw;
  align-items: center;
  position: relative;
  min-height: 0;
  padding: 10px 0;
}

/* Left Column: Product Content Panels */
.story-content-col {
  position: relative;
  height: 100%;
  max-height: 540px;
  display: flex;
  align-items: center;
}

.product-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.45s;
}

.product-panel.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s 0s;
}

.prod-num-bg {
  position: absolute;
  top: -25px;
  left: -20px;
  font-size: clamp(110px, 14vw, 210px);
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.045);
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.prod-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.prod-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-on-light);
  letter-spacing: 0.16em;
}

.prod-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2D3748;
  padding: 4px 12px;
  border-radius: 100px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.prod-title {
  font-size: clamp(34px, 4.3vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #0E1318;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.prod-type {
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  color: var(--accent-on-light);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.prod-detail {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.68;
  color: #4A5568;
  margin-bottom: 24px;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.prod-mobile-thumb {
  display: none;
}

.prod-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A5568;
  font-family: var(--font-mono);
}

.spec-v {
  font-size: 11px;
  font-weight: 700;
  color: #0E1318;
}

/* Right Column: Visual Stage */
.story-visual-col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-visual-window {
  position: relative;
  width: 100%;
  height: min(520px, 66vh);
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.visual-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.5s;
}

.visual-layer.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s 0s;
}

.visual-layer picture,
.prod-mobile-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-badge {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #0E1318;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.visual-badge span {
  color: var(--accent-on-light);
  font-weight: 800;
}

.visual-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.visual-corner-brackets {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}

.c-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(10, 95, 154, 0.6);
  border-style: solid;
}

.c-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.c-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.c-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.c-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Story Bottom Bar */
.story-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
}

.story-nav-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dot-btn {
  position: relative;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: width 200ms cubic-bezier(0.23, 1, 0.32, 1); /* solo los 7 puntos del catálogo; cambio de ancho mínimo */
  padding: 0;
}

.dot-btn::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dot-btn:hover::before {
    background: rgba(0, 0, 0, 0.65);
  }
}

.dot-btn.active {
  width: 50px;
}

.dot-btn.active::before {
  background: var(--gold-ink-lg);
  box-shadow: 0 0 10px rgba(10, 95, 154, 0.4);
}

.story-scroll-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4A5568;
}

.guide-line {
  width: 34px;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}


/* ── PHASE 4: FINAL CLOSING TRANSITION ── */
.plant-closing-container {
  position: relative;
  min-height: auto;
  padding: 120px 4vw 140px;
  overflow-x: clip; /* evita que los resplandores ensanchen la página en móvil */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* el tono crema aparece gradualmente: el borde superior coincide con el catálogo */
  background:
    linear-gradient(180deg, #F4F6F8 0px, rgba(244, 246, 248, 0) 260px),
    radial-gradient(circle at 50% 35%, rgba(63, 180, 230, 0.12) 0%, transparent 65%),
    #F4F6F8;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 100%);
  height: 300px;
  background: radial-gradient(ellipse, rgba(63, 180, 230, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.closing-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 20px;
  display: block;
}

.closing-h2 {
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #0E1318;
  margin: 0 0 24px;
}

.closing-accent {
  color: var(--accent-on-light);
}

.closing-sub {
  font-size: clamp(15px, 1.25vw, 18px);
  color: #4A5568;
  max-width: 640px;
  line-height: 1.65;
  margin: 0 auto 40px;
  font-weight: 400;
}

.closing-cta-wrap {
  display: flex;
  justify-content: center;
}

.btn-closing-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 38px;
  border-radius: 100px;
  background: #0A5F9A;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 26px -6px rgba(10, 95, 154, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .btn-closing-primary:hover {
    background: #0B6BAD;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px -8px rgba(10, 95, 154, 0.7);
  }
}

.btn-closing-primary svg {
  transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-closing-primary:hover svg {
    transform: translateX(4px);
  }
}


/* ── RESPONSIVE DESIGN (TABLET & MOBILE) ── */
@media (max-width: 1024px) {
  .story-stage {
    grid-template-columns: 48% 52%;
    gap: 3vw;
  }

  .plant-showcase-img {
    height: 420px;
  }
}

@media (max-width: 900px) {
  .plant-intro-container {
    padding: 100px 24px 70px;
  }

  .plant-showcase-img {
    height: 320px;
  }

  .plant-showcase-hud {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hud-right {
    align-items: flex-start;
  }

  .plant-story-viewport {
    height: auto;
    min-height: auto;
    padding: 60px 24px 40px;
    overflow: visible;
  }

  .story-top-bar {
    margin-bottom: 30px;
  }

  .story-stage {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .story-content-col {
    max-height: none;
    height: auto;
    display: block;
    position: static;
  }

  .product-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-bottom: 50px;
    padding: 28px 24px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  }

  .product-panel:last-child {
    margin-bottom: 0;
  }

  .prod-num-bg {
    top: -15px;
    left: 10px;
    font-size: 90px;
  }

  .prod-mobile-thumb {
    display: block;
    margin: 18px 0 20px;
    border-radius: 14px;
    overflow: hidden;
    height: 220px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }

  .prod-mobile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .prod-specs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-visual-col {
    display: none;
  }

  .story-bottom-bar {
    display: none;
  }

  .plant-closing-container {
    padding: 80px 24px 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Movimiento reducido: sin desplazamientos ni escalas, pero con fundidos cortos
     (los cambios de estado no aparecen de golpe) */
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, visibility, fill, stroke !important;
    transition-duration: 150ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  /* sin movimiento: la vía aparece ya pavimentada */
  .ld-mat { animation: none; transform: none; }
  .ld-lane, .ld-edge { animation: none; clip-path: none; }
  .ld-roller { animation: none; left: 100%; opacity: 0; }
}


/* ═════════════════════════════════════════════════════════════════
   HERO CALCULATOR (Scroll-driven — Antes de terminar la primera sección)
═════════════════════════════════════════════════════════════════ */
.btn-primary-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  background: linear-gradient(135deg, #1373B3 0%, #0A5F9A 100%);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(10, 95, 154, 0.45);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 95, 154, 0.6);
    filter: brightness(1.08);
  }
}

.calc-backdrop-glow {
  position: absolute;
  width: min(750px, 100%);
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 180, 230, 0.12) 0%, rgba(182, 205, 32, 0.08) 45%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}

.calc-modal-card {
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(16, 22, 28, 0.82) 0%, rgba(10, 14, 18, 0.90) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 28px 32px 26px;
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  pointer-events: auto;
}

.calc-modal-card::-webkit-scrollbar {
  width: 6px;
}
.calc-modal-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.calc-modal-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.calc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.calc-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-on-dark);
  background: rgba(63, 180, 230, 0.12);
  border: 1px solid rgba(63, 180, 230, 0.28);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.calc-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.calc-card-title {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}

.calc-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  max-width: 580px;
  margin: 0;
}

.calc-norm-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 8px 14px;
}

.chip-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.chip-val {
  font-size: 12px;
  font-weight: 700;
  color: #B6CD20;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.calc-grid-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.calc-inputs-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-field-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s, background 0.2s;
}

.calc-field-group:focus-within {
  border-color: rgba(63, 180, 230, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.calc-icon-tag {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(63, 180, 230, 0.15);
  color: var(--accent-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.calc-val-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px 10px;
}

.calc-num-input {
  width: 70px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  font-family: 'Inter', sans-serif;
}

.calc-num-input::-webkit-outer-spin-button,
.calc-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-num-input[type=number] {
  -moz-appearance: textfield;
}

.calc-unit {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.calc-slider-wrap {
  width: 100%;
}

/* Deslizador: área táctil de 24 px, pista visual de 6 px */
.calc-range-slider {
  width: 100%;
  height: 24px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  margin: 2px 0 0;
}

.calc-range-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

.calc-range-slider::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

.calc-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3FB4E6;
  border: 2px solid #000;
  box-shadow: 0 0 10px rgba(63, 180, 230, 0.7);
  cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3FB4E6;
  border: 2px solid #000;
  box-shadow: 0 0 10px rgba(63, 180, 230, 0.7);
  cursor: pointer;
  transition: transform 0.15s;
}

@media (hover: hover) and (pointer: fine) {
  .calc-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }
}

.calc-range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}

.calc-presets-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.calc-preset-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-preset-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  min-height: 32px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}


.preset-btn.active {
  background: rgba(63, 180, 230, 0.18);
  border-color: rgba(63, 180, 230, 0.5);
  color: #FFFFFF;
}
@media (hover: hover) and (pointer: fine) {
  .preset-btn:hover {
    background: rgba(63, 180, 230, 0.18);
    border-color: rgba(63, 180, 230, 0.5);
    color: #FFFFFF;
  }
}

.calc-results-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-metric-card.highlighted {
  background: linear-gradient(145deg, rgba(63, 180, 230, 0.14) 0%, rgba(20, 25, 30, 0.5) 100%);
  border-color: rgba(63, 180, 230, 0.38);
  box-shadow: 0 8px 24px rgba(63, 180, 230, 0.08);
}

.calc-metric-card.col-span-2 {
  grid-column: span 2;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.metric-tag {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.metric-indicator {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.metric-mini-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-on-dark);
  background: rgba(63, 180, 230, 0.2);
  border: 1px solid rgba(63, 180, 230, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 2px;
}

.metric-big-num {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-big-num.accent {
  color: var(--accent-on-dark);
  text-shadow: 0 0 20px rgba(63, 180, 230, 0.3);
}

.metric-unit-tag {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

.metric-subtext {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.volquetas-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-detail-tag {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
}

.truck-icon-badge {
  color: #B6CD20;
  background: rgba(182, 205, 32, 0.12);
  border: 1px solid rgba(182, 205, 32, 0.28);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volquetas-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.volquetas-big-readout {
  display: flex;
  align-items: center;
  gap: 12px;
}

.volquetas-num {
  font-size: 38px;
  font-weight: 900;
  color: #B6CD20;
  line-height: 1;
  text-shadow: 0 0 24px rgba(182, 205, 32, 0.4);
}

.volquetas-meta {
  display: flex;
  flex-direction: column;
}

.volquetas-label {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

.volquetas-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
}

.volquetas-fleet-visual {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 140px;
  justify-content: flex-end;
}

.truck-more {
  font-size: 10px;
  color: #B6CD20;
  font-family: var(--font-mono);
  font-weight: 700;
}

.truck-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #B6CD20;
  box-shadow: 0 0 6px rgba(182, 205, 32, 0.6);
}

/* WhatsApp Order Action */
.calc-action-card {
  margin-top: 4px;
}

.btn-whatsapp-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5A 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  color: #06281A;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
    filter: brightness(1.08);
  }
}

.wa-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-icon-glow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.wa-action-title {
  font-size: 15px;
  font-weight: 800;
  color: #06281A;
  line-height: 1.2;
}

.wa-action-sub {
  font-size: 11px;
  font-weight: 600;
  color: #0B3A24;
}

.wa-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 40, 26, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06281A;
}

.calc-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .calc-grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calc-inputs-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 28px;
    margin-bottom: 8px;
  }

  .calc-modal-card {
    padding: 22px 20px;
  }
}

@media (max-width: 600px) {
  .calc-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-norm-chip {
    align-items: flex-start;
  }

  .calc-results-grid {
    grid-template-columns: 1fr;
  }

  .calc-metric-card.col-span-2 {
    grid-column: span 1;
  }

  .volquetas-content {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ═════════════════════════════════════════════════════════════════
   CALCULADORA DE MEZCLA ASFÁLTICA — SECCIÓN FINAL
═════════════════════════════════════════════════════════════════ */
.plant-calc-container {
  width: 100%;
  max-width: 1020px;
  margin: 50px auto 40px;
  padding-top: 50px;
  position: relative;
  z-index: 10;
  text-align: left;
}

.plant-calc-container .calc-modal-card {
  max-height: none;
  overflow: visible;
  background: linear-gradient(145deg, #131922 0%, #0c1015 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.30),
    0 35px 95px rgba(0, 15, 30, 0.85),
    0 0 60px rgba(0, 89, 146, 0.18),
    0 0 35px rgba(182, 205, 32, 0.12);
}


/* ═════════════════════════════════════════════════════════════════
   TRANSICIONES Y DIVISIONES VISUALES ULTRA-PREMIUM (USD 10,000 ARCHITECTURAL LUXURY)
   Estilo Apple / Awwwards: Haz de luz, micro-degradados, sombras de oclusión y refinamiento óptico
═════════════════════════════════════════════════════════════════ */

/* 1. Transición Hero Canvas -> Planta de Producción (Línea de horizonte láser) */
.planta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-feather);
  background: linear-gradient(180deg,
      rgba(0, 20, 41, 0) 0%,
      rgba(0, 20, 41, 0.18) 25%,
      rgba(0, 20, 41, 0.55) 55%,
      rgba(0, 20, 41, 0.88) 82%,
      #001429 100%);
  pointer-events: none;
}

/* 2. Divisor editorial y halo luminoso en la Planta de Producción
   (sustituye a la definición base anterior) */
.plant-divider-line {
  position: relative;
  width: min(100%, 720px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 89, 146, 0.15) 15%,
    rgba(182, 205, 32, 0.65) 50%,
    rgba(0, 89, 146, 0.15) 85%,
    transparent 100%
  );
  margin: 32px auto 40px;
  overflow: visible;
}

.plant-divider-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: radial-gradient(ellipse at center, rgba(182, 205, 32, 0.9) 0%, transparent 80%);
  filter: blur(1px);
}

/* 3. Transición entre Introducción y Catálogo Pinneado (Story Sequence) */
.plant-intro-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  /* termina en el mismo tono del catálogo (#ECEFF3): sin escalón.
     Va DETRÁS del contenido (z-index 0) para no aclarar la foto de la planta */
  background: linear-gradient(to bottom, rgba(236, 239, 243, 0) 0%, rgba(236, 239, 243, 0.55) 55%, #ECEFF3 100%);
  pointer-events: none;
  z-index: 0;
}

/* 4. Transición Catálogo Story -> Cierre Industrial & Calculadora */
.plant-story-pin::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, rgba(244, 246, 248, 0.9) 80%, #F4F6F8 100%);
  pointer-events: none;
  z-index: 5;
}

/* 5. Separador y marco de alta gama para la Calculadora Asfáltica */
.plant-calc-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(85%, 800px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 89, 146, 0.12) 20%,
    rgba(182, 205, 32, 0.45) 50%,
    rgba(0, 89, 146, 0.12) 80%,
    transparent 100%
  );
  box-shadow: 0 0 24px rgba(182, 205, 32, 0.35);
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════════
   AJUSTES RESPONSIVE DEL HERO (van al final para prevalecer)
═════════════════════════════════════════════════════════════════ */

/* Tablet 769–1024px: redes sociales sobre los contadores */
@media (min-width: 769px) and (max-width: 1024px) {
  .social-row {
    left: auto;
    right: 32px;
    bottom: 150px;
    transform: none;
  }
}

/* Móvil: el bloque del titular deja espacio a la franja de contadores */
@media (max-width: 768px) {
  #hero-body {
    padding-bottom: 118px;
  }

  .hero-ctas {
    flex-wrap: wrap;
  }

  .hero-ctas button {
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .hero-eyebrow {
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .btn-secondary,
  .btn-primary-calc {
    padding: 11px 18px;
    font-size: 13px;
  }
}


/* ═════════════════════════════════════════════════════════════════
   MENÚ PRINCIPAL — vidrio premium adaptable (oscuro / claro)
   · Se compacta al hacer scroll (.is-scrolled)
   · Cambia de tema según el fondo (data-theme="light")
   · Se oculta al bajar y reaparece al subir (.is-hidden)
═════════════════════════════════════════════════════════════════ */
.site-header {
  --nav-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-text: rgba(255, 255, 255, 0.72);
  --nav-text-strong: #ffffff;
  --nav-chip: rgba(255, 255, 255, 0.09);
  --nav-chip-edge: rgba(255, 255, 255, 0.08);
  --nav-field: rgba(255, 255, 255, 0.07);
  --nav-field-edge: rgba(255, 255, 255, 0.10);
  --nav-placeholder: rgba(255, 255, 255, 0.6);
  --nav-line: rgba(255, 255, 255, 0.34);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0;
  pointer-events: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: transform 240ms var(--nav-ease), opacity 240ms var(--nav-ease);
}

.site-header[data-theme="light"] {
  --nav-text: rgba(14, 19, 24, 0.68);
  --nav-text-strong: #0E1318;
  --nav-chip: rgba(14, 19, 24, 0.06);
  --nav-chip-edge: rgba(14, 19, 24, 0.05);
  --nav-field: rgba(14, 19, 24, 0.045);
  --nav-field-edge: rgba(14, 19, 24, 0.08);
  --nav-placeholder: rgba(14, 19, 24, 0.55);
  --nav-line: rgba(14, 19, 24, 0.16);
}

/* Al ocultarse responde más rápido de lo que reaparece */
.site-header.is-hidden {
  transition-duration: 200ms;
  transform: translateY(calc(-100% - 30px));
  opacity: 0;
}

/* ── Barra transparente con línea inferior de lado a lado ── */
.site-header__bar {
  position: relative;
  pointer-events: auto;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(24px, 4vw, 64px);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--nav-line);
  transition: height 240ms var(--nav-ease), box-shadow 240ms ease; /* solo al cruzar el umbral; la barra es fija y no mueve la página */
}

.site-header__bar > * {
  position: relative;
  z-index: 2;
}

.site-header.is-scrolled .site-header__bar {
  height: 64px;
}

/* Sobre las secciones claras el contenido pasa por detrás: un velo
   translúcido mantiene el menú legible sin volver a la barra */
.site-header[data-theme="light"] .site-header__bar {
  background: rgba(244, 246, 248, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ── Marca (logo claro/oscuro con fundido) ── */
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 30px;
  border-radius: 8px;
  transition: height 240ms var(--nav-ease);
}

.brand__logo,
.brand__logo img {
  display: block;
  height: 100%;
  width: auto;
}

.brand__logo--on-dark img { aspect-ratio: 709 / 119; }
.brand__logo--on-light img { aspect-ratio: 941 / 153; }

.brand__logo {
  transition: opacity 240ms ease;
}

.brand__logo--on-light {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.site-header[data-theme="light"] .brand__logo--on-dark { opacity: 0; }
.site-header[data-theme="light"] .brand__logo--on-light { opacity: 1; }

.site-header.is-scrolled .brand {
  height: 27px;
}

/* ── Panel: enlaces + acciones ── */
.site-header__panel {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.site-nav {
  position: relative;
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav__list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

/* Línea activa: se apoya sobre la línea inferior, sigue al cursor
   y vuelve a la sección activa */
.site-nav__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100px;                 /* el ancho real lo da scaleX desde js/header.js */
  transform-origin: left center;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(63, 180, 230, 0.55);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 260ms var(--nav-ease),
    opacity 200ms ease,
    background 200ms ease;
}

.site-nav__list a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}


.site-nav__list a:focus-visible,
.site-nav__list a[aria-current="true"] {
  color: var(--nav-text-strong);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav__list a:hover {
    color: var(--nav-text-strong);
  }
}

@media (min-width: 1025px) {
  .site-nav__list a[aria-current="true"]::after {
    display: none; /* en escritorio la identifica la línea inferior */
  }
}

.site-nav__list a[aria-current="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(63, 180, 230, 0.8);
}

/* ── Acciones: buscador + CTA ── */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-search {
  position: relative;
}

.site-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 196px;
  height: 46px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  color: var(--nav-text);
  background: var(--nav-field);
  box-shadow: inset 0 0 0 1px var(--nav-field-edge);
  transition: width 240ms var(--nav-ease), background 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.site-header.is-scrolled .site-search__field {
  height: 42px;
  width: 178px;
}

@media (hover: hover) and (pointer: fine) {
  .site-search__field:hover {
    color: var(--nav-text-strong);
  }
}

.site-search__field:focus-within {
  width: 252px;
  color: var(--nav-text-strong);
  box-shadow: inset 0 0 0 1px rgba(63, 180, 230, 0.85), 0 0 0 4px rgba(19, 138, 183, 0.22);
}

.site-search__field svg {
  flex-shrink: 0;
}

.site-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none; /* el anillo visible lo pinta .site-search__field:focus-within */
  background: transparent;
  color: var(--nav-text-strong);
  font: 500 14px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.site-search__input::placeholder {
  color: var(--nav-placeholder);
}

.site-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.site-search__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  font: 600 11px/1 var(--font-mono);
  color: var(--nav-text);
  background: var(--nav-field);
  box-shadow: inset 0 0 0 1px var(--nav-field-edge), 0 1px 0 var(--nav-field-edge);
  transition: opacity 0.2s ease;
}

.site-search__field:focus-within .site-search__kbd {
  opacity: 0;
}

/* ── Resultados del buscador (panel premium con los colores del logo) ── */
.site-search__results {
  --res-bg: rgba(11, 16, 26, 0.90);
  --res-text: #ffffff;
  --res-muted: rgba(255, 255, 255, 0.58);
  --res-faint: rgba(255, 255, 255, 0.10);
  --res-active: linear-gradient(90deg, rgba(19, 138, 183, 0.22) 0%, rgba(19, 138, 183, 0.06) 70%, transparent 100%);
  --res-mark: var(--accent-on-dark);

  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 420px;
  max-height: min(560px, 72vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  padding: 8px;
  border-radius: 22px;
  background: var(--res-bg);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 70px -20px rgba(0, 0, 0, 0.65),
    0 10px 24px -12px rgba(0, 0, 0, 0.5);
  transform-origin: top right;
  animation: searchPanelIn 150ms var(--nav-ease); /* se abre con el teclado (/): casi inmediato */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Borde degradado azul → cian → lima del logo */
.site-search__results::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(63, 180, 230, 0.55) 0%, rgba(19, 67, 113, 0.35) 45%, rgba(182, 205, 32, 0.45) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.site-search__results::-webkit-scrollbar { width: 6px; }
.site-search__results::-webkit-scrollbar-track { background: transparent; }
.site-search__results::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 6px; }

@keyframes searchPanelIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes searchItemIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.site-search__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--res-muted);
}

.site-search__count {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  color: var(--immac-ink);
  background: linear-gradient(135deg, var(--immac-cyan-light), var(--immac-lime));
}

.site-search__option {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 120ms ease;  /* los resultados aparecen juntos, sin entrada escalonada */
}

.site-search__option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--immac-cyan-light), var(--immac-lime));
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.site-search__option[aria-selected="true"] {
  background: var(--res-active);
}

.site-search__option[aria-selected="true"]::before {
  opacity: 1;
  transform: scaleY(1);
}

@media (hover: hover) and (pointer: fine) {
  .site-search__option:hover {
    background: var(--res-active);
  }
}

.site-search__thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--res-faint);
}

.site-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-search__thumb--icon {
  color: #ffffff;
  background: linear-gradient(135deg, var(--immac-blue) 0%, var(--immac-cyan) 55%, #7DB33A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-search__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.site-search__option-title {
  color: var(--res-text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-search__option-title mark {
  background: none;
  color: var(--res-mark);
  box-shadow: inset 0 -2px 0 rgba(63, 180, 230, 0.45);
}

.site-search__option-meta {
  color: var(--res-muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-search__go {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--res-muted);
  box-shadow: inset 0 0 0 1px var(--res-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.site-search__option[aria-selected="true"] .site-search__go {
  opacity: 1;
  transform: none;
  color: var(--res-text);
}

.site-search__empty {
  padding: 22px 14px 16px;
  text-align: center;
  color: var(--res-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.site-search__empty strong {
  color: var(--res-text);
  font-weight: 600;
}

.site-search__suggest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.site-search__suggest button {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font: 600 12.5px/1 'Inter', sans-serif;
  color: var(--res-text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--res-faint);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-search__suggest button:hover {
    background: rgba(19, 138, 183, 0.22);
    box-shadow: inset 0 0 0 1px rgba(63, 180, 230, 0.6);
  }
}

.site-search__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 4px 2px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--res-faint);
  font-size: 11.5px;
  color: var(--res-muted);
}

.site-search__footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-search__footer kbd {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 10.5px/1 var(--font-mono);
  color: var(--res-text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--res-faint), 0 1px 0 var(--res-faint);
}

/* Tema claro */
.site-header[data-theme="light"] .site-search__results {
  --res-bg: rgba(255, 255, 255, 0.94);
  --res-text: #101828;
  --res-muted: rgba(16, 24, 40, 0.58);
  --res-faint: rgba(16, 24, 40, 0.08);
  --res-active: linear-gradient(90deg, rgba(19, 138, 183, 0.12) 0%, rgba(19, 138, 183, 0.03) 70%, transparent 100%);
  --res-mark: var(--accent-on-light);
  box-shadow:
    0 30px 70px -24px rgba(16, 24, 40, 0.30),
    0 10px 24px -14px rgba(16, 24, 40, 0.22);
  scrollbar-color: rgba(16, 24, 40, 0.2) transparent;
}

.site-header[data-theme="light"] .site-search__option-title mark {
  box-shadow: inset 0 -2px 0 rgba(10, 95, 154, 0.3);
}

.site-header[data-theme="light"] .site-search__thumb {
  background: rgba(16, 24, 40, 0.04);
}

.site-header[data-theme="light"] .site-search__suggest button,
.site-header[data-theme="light"] .site-search__footer kbd {
  background: rgba(16, 24, 40, 0.04);
}

/* Redes y hamburguesa: solo en móvil */
.site-header__social {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--nav-text-strong);
  background: var(--nav-field);
  box-shadow: inset 0 0 0 1px var(--nav-field-edge);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--nav-ease), background 200ms ease;
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }

.site-header.is-open .menu-toggle__bars { background: transparent; }
.site-header.is-open .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Destinos de los enlaces: no quedan tapados por el menú */
#calculadora-asfaltica,
#contacto {
  scroll-margin-top: 96px;
}

#planta-produccion {
  scroll-margin-top: calc(96px - var(--hero-feather));
}

#contenido:focus,
#contacto:focus,
#planta-produccion:focus,
#plant-story-pin:focus,
#calculadora-asfaltica:focus {
  outline: none;
}

/* Laptops angostos */
@media (max-width: 1240px) {
  .site-header__bar { gap: 20px; padding-left: 24px; }
  .site-nav__list a { padding: 0 13px; }
  .site-search__field { width: 168px; }
  .site-header.is-scrolled .site-search__field { width: 160px; }
  .site-search__field:focus-within { width: 220px; }
}

/* Tablet y móvil: menú desplegable */
@media (max-width: 1024px) {
  .site-header__bar,
  .site-header.is-scrolled .site-header__bar {
    height: 64px;
    padding: 0 12px 0 20px;
    justify-content: space-between;
  }

  .site-header.is-scrolled .site-header__bar {
    height: 56px;
  }

  .brand,
  .site-header.is-scrolled .brand {
    height: 25px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(14, 16, 20, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 28px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .site-header[data-theme="light"] .site-header__panel {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: inset 0 0 0 1px rgba(14, 19, 24, 0.07), 0 28px 60px rgba(14, 19, 24, 0.2);
  }

  .site-header.is-open .site-header__panel {
    display: flex;
    animation: navPanelIn 220ms var(--nav-ease);
  }

  .site-nav {
    justify-content: stretch;
  }

  .site-nav__indicator {
    display: none;
  }

  .site-nav__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__list a {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 16px;
  }

  .site-nav__list a[aria-current="true"] {
    background: var(--nav-chip);
  }

  .site-nav__list a[aria-current="true"]::after {
    left: auto;
    right: 18px;
    bottom: 50%;
    margin: 0 0 -2px;
  }

  .site-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-search__field,
  .site-header.is-scrolled .site-search__field,
  .site-search__field:focus-within {
    width: 100%;
    height: 48px;
  }

  .site-search__kbd {
    display: none;
  }

  .site-search__results {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-search__footer {
    display: none;
  }

  .site-header__social {
    display: flex;
    gap: 10px;
    padding: 2px;
  }

  .site-header__social .social-btn {
    width: 44px;
    height: 44px;
  }

  .site-header[data-theme="light"] .site-header__social .social-btn {
    color: #4A5568;
    background: rgba(14, 19, 24, 0.04);
    border-color: rgba(14, 19, 24, 0.10);
  }

  #hero-body {
    top: 96px;
  }
}

@keyframes navPanelIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}


/* ═════════════════════════════════════════════════════════════════
   LEGIBILIDAD DEL HERO — velo degradado detrás del texto
   (el fondo de grava tiene zonas claras; el velo solo cubre la zona del texto)
═════════════════════════════════════════════════════════════════ */
#hero-body {
  isolation: isolate;
}

#hero-body::before {
  content: '';
  position: absolute;
  inset: -160px 0 -48px 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 18% 55%, rgba(5, 6, 8, 0.72) 0%, rgba(5, 6, 8, 0.5) 45%, transparent 78%),
    linear-gradient(90deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0.62) 34%, rgba(5, 6, 8, 0.3) 58%, transparent 78%);
}

.hero-h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 4px 32px rgba(0, 0, 0, 0.55);
}

.eyebrow-text {
  color: var(--accent-on-dark);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

.hero-sub b {
  color: #ffffff;
}

/* Celular y tablet vertical: el texto ocupa todo el ancho → velo vertical */
@media (max-width: 1024px) and (max-aspect-ratio: 1/1) {
  #hero-body::before {
    inset: -120px 0 0 0;
    background:
      linear-gradient(180deg, transparent 0%, rgba(5, 6, 8, 0.55) 20%, rgba(5, 6, 8, 0.8) 42%, rgba(5, 6, 8, 0.8) 70%, rgba(5, 6, 8, 0.6) 88%, rgba(5, 6, 8, 0.45) 100%);
  }
}


/* ═════════════════════════════════════════════════════════════════
   TRANSICIÓN PLANTA → PRODUCTOS — barrido de luz con los colores del logo
   (azul → cian → lima, como el degradado de la gota de IMMAC)
   Una línea de luz cruza la pantalla con el scroll, acompañada de un
   brillo cálido, y luego se desvanece (no deja raya fija).
═════════════════════════════════════════════════════════════════ */
.plant-sweep {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

/* Halo de color que sigue a la luz */
.sweep-haze {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Capa del doble de ancho con el halo fijo; se desplaza con transform (sin redibujar) */
  inset: 0 auto 0 -50%;
  width: 200%;
  will-change: transform, opacity;
  background:
    radial-gradient(9% 46% at 25% 79%, rgba(182, 205, 32, 0.07) 0%, rgba(19, 138, 183, 0.045) 40%, transparent 72%),
    radial-gradient(17% 60% at 19% 82%, rgba(10, 95, 154, 0.045) 0%, transparent 70%);
}

/* Estela de la línea: más intensa cerca de la luz */
.sweep-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  height: 1.5px;
  background: linear-gradient(90deg,
      rgba(19, 67, 113, 0) 0%,
      rgba(10, 95, 154, 0.35) 30%,
      rgba(19, 138, 183, 0.75) 72%,
      #B6CD20 100%);
  box-shadow: 0 0 5px rgba(19, 138, 183, 0.22);
}

/* Punto de luz */
.sweep-spark {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 240px;
  will-change: transform, opacity;
  height: 14px;
  margin: 0 0 -7px -120px;
  opacity: 0;
  background: radial-gradient(closest-side, rgba(246, 252, 226, 0.85) 0%, rgba(182, 205, 32, 0.55) 26%, rgba(19, 138, 183, 0.22) 58%, rgba(19, 138, 183, 0) 100%);
  filter: blur(0.6px);
}

.sweep-spark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #FBFFEC;
  box-shadow:
    0 0 0 2px rgba(182, 205, 32, 0.25),
    0 0 8px 2px rgba(182, 205, 32, 0.40),
    0 0 22px 6px rgba(19, 138, 183, 0.16);
}

@media (max-width: 760px) {
  .sweep-line,
  .sweep-spark {
    bottom: 40px;
  }

  .sweep-spark {
    width: 160px;
    margin-left: -80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plant-sweep {
    display: none;
  }
}

/* Fundido de reemplazo para contenido que entra con movimiento reducido */
@keyframes rm-fade { from { opacity: 0; } }


/* Al seguir escribiendo no se repite la animación de entrada (evita parpadeo) */
.site-search__results.is-updating,
.site-search__results.is-updating .site-search__option {
  animation: none;
  opacity: 1;
}


/* ═════════════════════════════════════════════════════════════════
   SISTEMA TIPOGRÁFICO PREMIUM (auditoría 4 nov 2026)
   Una sola escala fluida (celular 360 px → escritorio 1440 px),
   5 pesos, 3 interlineados y 2 espaciados de mayúsculas.
   Va al final para unificar todas las reglas anteriores.
═════════════════════════════════════════════════════════════════ */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Escala fluida */
  --fs-display: clamp(2.125rem, 1.16rem + 4.28vw, 4.5rem);   /* 34 → 72  cierre */
  --fs-hero:    clamp(2.125rem, 1.4rem + 3.2vw, 4rem);        /* 34 → 64  titular del hero */
  --fs-h2:      clamp(1.75rem, 1.2rem + 2.45vw, 3.125rem);    /* 28 → 50  títulos de sección */
  --fs-h3:      clamp(2rem, 1.37rem + 2.8vw, 3.75rem);        /* 32 → 60  nombre del producto */
  --fs-h4:      clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);    /* 22 → 28  título de la calculadora */
  --fs-lead:    clamp(1rem, 0.93rem + 0.3vw, 1.1875rem);      /* 16 → 19  párrafos de introducción */
  --fs-body:    clamp(0.9375rem, 0.91rem + 0.12vw, 1rem);     /* 15 → 16  párrafos */
  --fs-sm:      0.8125rem;                                    /* 13       notas y subtítulos */
  --fs-xs:      0.75rem;                                      /* 12       datos secundarios */
  --fs-label:   0.6875rem;                                    /* 11       etiquetas en mayúsculas */

  /* Pesos */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  /* Interlineados */
  --lh-tight: 1.04;
  --lh-heading: 1.12;
  --lh-copy: 1.65;

  /* Espaciado de letras */
  --ls-display: -0.03em;
  --ls-heading: -0.02em;
  --ls-label: 0.18em;
}

body {
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'calt';
  -moz-osx-font-smoothing: grayscale;
}

/* Botones y campos heredan Inter (antes salían en Arial) */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* ── Titulares ── */
.hero-h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  margin-bottom: 22px;
}

.statement-h2,
.plant-h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

.prod-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}

.closing-h2 {
  font-size: var(--fs-display);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}

.calc-card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

.hero-stat-count {
  font-weight: var(--fw-heavy);
  letter-spacing: -0.035em;
}

/* ── Textos de lectura: medida cómoda (45–75 caracteres) ── */
.hero-sub {
  font-size: var(--fs-body);
  line-height: var(--lh-copy);
  max-width: 42ch;
  margin-bottom: 34px;
}

.statement-sub {
  font-size: var(--fs-body);
  line-height: var(--lh-copy);
  color: rgba(255, 255, 255, 0.82);
}

.plant-desc,
.closing-sub {
  font-size: var(--fs-lead);
  line-height: var(--lh-copy);
  max-width: 60ch;
}

.prod-type {
  font-size: clamp(1rem, 0.93rem + 0.32vw, 1.1875rem);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.prod-detail {
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 54ch;
}

.calc-card-desc {
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ── Etiquetas en mayúsculas: un solo tamaño, peso y espaciado ── */
.eyebrow-text,
.statement-eyebrow,
.plant-tech-badge,
.plant-eyebrow-text,
.closing-kicker,
.story-top-bar,
.prod-tag,
.spec-k,
.hud-tag,
.hud-spec,
.hud-batch,
.hud-status,
.visual-badge,
.calc-pill-badge,
.chip-label,
.metric-tag,
.metric-detail-tag,
.metric-mini-badge,
.story-scroll-guide {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  line-height: 1.35;
}

.eyebrow-text,
.statement-eyebrow,
.plant-tech-badge,
.plant-eyebrow-text,
.closing-kicker,
.hud-tag,
.hud-status,
.calc-pill-badge,
.metric-mini-badge {
  font-weight: var(--fw-bold);
}

.story-top-bar,
.prod-tag,
.spec-k,
.hud-spec,
.hud-batch,
.visual-badge,
.chip-label,
.metric-tag,
.metric-detail-tag,
.story-scroll-guide {
  font-weight: var(--fw-semibold);
}

.prod-idx {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
}

.spec-v {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.hero-stat-label {
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
}

.scroll-label-sub {
  font-size: 10px;
}

/* ── Calculadora: datos secundarios legibles (mín. 11–12 px) ── */
.calc-label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.calc-unit,
.calc-disclaimer,
.metric-subtext,
.volquetas-sub,
.wa-action-sub { font-size: var(--fs-xs); }
.metric-indicator,
.calc-preset-lbl { font-size: var(--fs-label); }
.preset-btn { font-size: var(--fs-xs); }
.calc-range-ticks { font-size: var(--fs-label); letter-spacing: 0.02em; }
.volquetas-label { font-size: var(--fs-sm); }

/* Números alineados (no "bailan" al cambiar) */
.metric-big-num,
.volquetas-num,
.calc-num-input,
.prod-idx,
.story-step-current,
.story-step-total {
  font-variant-numeric: tabular-nums;
}

/* Botones del hero: nunca se parten en dos líneas */
.btn-secondary,
.btn-primary-calc {
  white-space: nowrap;
}

/* ═══ Contraste (fallos detectados por la auditoría) ═══ */

/* Pie de la foto de la planta: degradado más firme bajo las etiquetas */
.plant-showcase-gradient {
  background: linear-gradient(to top,
      rgba(8, 10, 12, 0.94) 0%,
      rgba(8, 10, 12, 0.72) 22%,
      rgba(8, 10, 12, 0.22) 52%,
      transparent 78%);
}

.hud-tag,
.hud-status,
.hud-spec,
.hud-batch {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hud-spec,
.hud-batch {
  color: rgba(255, 255, 255, 0.82);
}

/* Insignia "UNIDAD INDUSTRIAL": fondo propio, legible sobre cualquier fondo */
.plant-tech-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 95, 154, 0.22);
  box-shadow: 0 6px 18px -10px rgba(10, 37, 64, 0.5);
}

/* Insignias de la calculadora sobre fondo oscuro: tinte azul en vez de dorado */
.metric-mini-badge,
.calc-pill-badge {
  background: rgba(63, 180, 230, 0.12);
  border-color: rgba(63, 180, 230, 0.35);
}

/* Frase intermedia: en tableta y celular el texto ocupa todo el ancho,
   así que el velo también */
@media (max-width: 1024px) {
  .statement-backdrop-glow {
    width: 100%;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.66) 60%,
        rgba(0, 0, 0, 0.5) 100%);
  }
}

/* ═══ Ajustes por dispositivo ═══ */

/* Tableta */
@media (max-width: 1024px) {
  .plant-desc,
  .closing-sub {
    max-width: 56ch;
  }
}

/* Celular */
@media (max-width: 760px) {
  /* la franja azul de la introducción no queda detrás de las etiquetas */
  .plant-intro-ambient {
    height: 220px;
  }

  .plant-intro-container {
    padding-top: 128px;
  }

  .hero-stat-label {
    font-size: 10.5px;
    letter-spacing: 0.05em;
  }

  .calc-range-ticks {
    font-size: 10px;
    letter-spacing: 0;
  }

  .hero-sub {
    margin-bottom: 26px;
  }

  .prod-detail {
    max-width: none;
  }
}

/* La franja azul de la introducción termina antes de las etiquetas */
.plant-intro-ambient {
  height: 250px;
}

.plant-intro-container {
  padding-top: 160px;
}

@media (max-width: 760px) {
  .plant-intro-ambient { height: 210px; }
  .plant-intro-container { padding-top: 128px; }
}

/* Botones: mismo tamaño y peso en toda la página */
.btn-secondary,
.btn-primary-calc,
.btn-closing-primary {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
}

.btn-secondary,
.btn-primary-calc {
  letter-spacing: 0.01em;
}

/* Cifras de la calculadora: mismo peso que los demás números grandes */
.metric-big-num,
.volquetas-num {
  font-weight: var(--fw-heavy);
  letter-spacing: -0.02em;
}

/* Titulares con líneas equilibradas (sin palabras huérfanas) y párrafos sin viudas */
.hero-h1,
.statement-h2,
.plant-h2,
.prod-title,
.closing-h2,
.calc-card-title {
  text-wrap: balance;
}

.hero-sub,
.plant-desc,
.prod-detail,
.closing-sub,
.statement-sub,
.calc-card-desc {
  text-wrap: pretty;
}

/* Celular: los dos botones del hero caben en una fila */
@media (max-width: 480px) {
  .btn-secondary,
  .btn-primary-calc {
    font-size: 0.8125rem;
    padding: 11px 16px;
    gap: 6px;
  }

  .hero-ctas {
    gap: 8px;
  }

  /* Marcas de los deslizadores: solo los extremos (las intermedias se superponían) */
  .calc-range-ticks span:nth-child(2),
  .calc-range-ticks span:nth-child(3) {
    display: none;
  }
}

/* Tableta: "SOLUCIONES ASFÁLTICAS PARA" cabe en una línea (sin "PARA" huérfano) */
@media (min-width: 761px) and (max-width: 1024px) {
  .closing-h2 {
    font-size: min(5.4vw, 3rem);
  }
}

/* ═════════════════════════════════════════════════════════════════
   Inicio: Mezclas → Planta con el mismo fundido que Hero → Mezclas
   Antes: la sección de la planta pintaba una franja azul marino (de cuando iba justo
   después del video). Ahora la introducción de la planta sube sobre el final de Mezclas
   y aparece con una máscara transparente → opaca, sin color intermedio.
═════════════════════════════════════════════════════════════════ */
.planta-section::before { content: none; }
.plant-intro-ambient { display: none; }
.plant-intro-container {
  --pi-pad: 160px;
  margin-top: calc(-1 * var(--hero-feather));
  padding-top: calc(var(--pi-pad) + var(--hero-feather));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) calc(var(--hero-feather) * 0.22), rgba(0, 0, 0, 0.4) calc(var(--hero-feather) * 0.48), rgba(0, 0, 0, 0.75) calc(var(--hero-feather) * 0.74), #000 var(--hero-feather));
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) calc(var(--hero-feather) * 0.22), rgba(0, 0, 0, 0.4) calc(var(--hero-feather) * 0.48), rgba(0, 0, 0, 0.75) calc(var(--hero-feather) * 0.74), #000 var(--hero-feather));
}
@media (max-width: 760px) {
  .plant-intro-container { --pi-pad: 128px; padding-top: calc(var(--pi-pad) + var(--hero-feather)); }
}

/* ─────────────────────────────────────────────────────────────────
   Pie de página compartido (portada y páginas interiores)
───────────────────────────────────────────────────────────────── */
.pg-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

.pg-footer {
  padding: 72px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  background: #060B11;
  scroll-margin-top: 0;
}

.pg-footer:focus { outline: none; }

.pg-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 48px;
}

.pg-footer__brand img { width: 180px; height: auto; }
.pg-footer__brand p { max-width: 340px; margin-top: 18px; font-size: 15px; line-height: 1.65; }
.pg-footer__social { display: flex; gap: 18px; margin-top: 20px; }

.pg-footer a { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .pg-footer a:hover { color: var(--accent-on-dark); }
}
.pg-footer a:focus-visible { outline: 2px solid #3FB4E6; outline-offset: 3px; border-radius: 4px; }

.pg-footer__h {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.pg-footer__col ul { list-style: none; display: grid; gap: 12px; font-size: 15px; }
.pg-footer__contact li { line-height: 1.5; }
.pg-footer__contact strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-dark); }

.pg-footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

/* Crédito del estudio que hizo el sitio: discreto, al centro de la franja inferior */
.pg-footer .pg-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}
.pg-footer__credit b {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.3s ease;
}
.pg-footer__credit b i { font-style: normal; font-weight: 500; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.55); }
.pg-footer__credit b::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, #3FB4E6, #B6CD20);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pg-footer__credit svg { opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .pg-footer .pg-footer__credit:hover { color: rgba(255, 255, 255, 0.75); }
  .pg-footer__credit:hover b { color: #fff; }
  .pg-footer__credit:hover b::after { transform: none; }
  .pg-footer__credit:hover svg { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-footer__credit b::after, .pg-footer__credit svg { transition: none; }
}

.pg-footer__cta { font-weight: 700; color: #3FB4E6 !important; }

@media (max-width: 900px) {
  .pg-footer__grid { grid-template-columns: 1fr 1fr; }
  .pg-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pg-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .pg-footer__base { flex-direction: column; }
  .pg-footer__credit svg { opacity: 0.7; transform: none; }
}

/* Portada → pie: el mismo fundido de 240px que Contáctenos ("Para cotizar" → pie) */
.plant-closing-container {
  isolation: isolate;
  padding-bottom: calc(140px + 60px);
}
.plant-closing-container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 240px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 11, 17, 0) 0%, rgba(6, 11, 17, 0.45) 50%, #060B11 100%);
}
@media (max-width: 900px) {
  .plant-closing-container { padding-bottom: calc(100px + 60px); }
}

/* Etiqueta del hero de Inicio (texto largo): en pantallas medianas y grandes puede salir
   del ancho de 620px del bloque para quedar en una sola línea */
@media (min-width: 1024px) {
  .hero-headline-block .hero-eyebrow { width: max-content; max-width: calc(100vw - 96px); }
}

/* ═════════════════════════════════════════════════════════════════
   CALCULADORA · HOJA TÉCNICA EN VIDRIO LÍQUIDO
   Tarjeta de vidrio esmerilado sobre luces difusas de la marca; a la izquierda
   los datos, a la derecha el resultado en un panel de vidrio más denso.
   (Los id de los campos y resultados los usa js/main.js)
═════════════════════════════════════════════════════════════════ */
.lgc {
  --lgc-ink: #0E1318;
  --lgc-txt: #4A5562;
  --lgc-mut: #5F6B78;
  --lgc-line: rgba(14, 19, 24, 0.09);
  --lgc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 1080px;
  padding: 72px 0 24px;
  isolation: isolate;
  color: var(--lgc-ink);
}
.lgc::before { display: none; }

/* Luces difusas detrás del vidrio (azul IMMAC, celeste y lima) */
.lgc-field { position: absolute; inset: 20px -6% -40px; z-index: -1; pointer-events: none; }
.lgc-field i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; }
.lgc-field i:nth-child(1) { left: 2%; top: 12%; width: 46%; height: 62%; background: radial-gradient(closest-side, rgba(10, 95, 154, 0.55), rgba(10, 95, 154, 0)); animation: lgc-drift 18s ease-in-out infinite alternate; }
.lgc-field i:nth-child(2) { right: 4%; top: 4%; width: 40%; height: 58%; background: radial-gradient(closest-side, rgba(63, 180, 230, 0.6), rgba(63, 180, 230, 0)); animation: lgc-drift 22s ease-in-out infinite alternate-reverse; }
.lgc-field i:nth-child(3) { left: 38%; bottom: 0; width: 38%; height: 50%; background: radial-gradient(closest-side, rgba(182, 205, 32, 0.5), rgba(182, 205, 32, 0)); animation: lgc-drift 26s ease-in-out infinite alternate; }
@keyframes lgc-drift { to { transform: translate3d(6%, -5%, 0) scale(1.08); } }

/* Tarjeta de vidrio */
.lgc-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.46) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  backdrop-filter: blur(30px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(14, 19, 24, 0.05),
    0 50px 100px -50px rgba(10, 40, 70, 0.45);
}
/* reflejo especular arriba a la izquierda */
.lgc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 18%);
  pointer-events: none;
}

.lgc-in { position: relative; padding: 44px 48px 40px; }
.lgc-k { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lgc-mut); }
.lgc-k--accent { color: #0A5F9A; }
.lgc-title { margin: 10px 0 8px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--lgc-ink); }
.lgc-desc { max-width: 46ch; line-height: 1.6; color: var(--lgc-txt); }

/* Cada dato es una ficha numerada: valor editable en su propio campo + deslizador */
.lgc-fields { display: grid; gap: 10px; margin-top: 28px; counter-reset: lgcf; }
.lgc-f {
  padding: 18px 20px 14px;
  border-radius: 20px;
  counter-increment: lgcf;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(14, 19, 24, 0.06);
  transition: background 0.25s ease, box-shadow 0.3s var(--lgc-ease);
}
.lgc-f:focus-within {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(10, 95, 154, 0.25), 0 16px 32px -20px rgba(10, 40, 70, 0.4);
}
.lgc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lgc-row label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--lgc-ink); }
.lgc-row label::before {
  content: counter(lgcf, decimal-leading-zero);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font: 700 11px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  color: #0A5F9A; background: rgba(10, 95, 154, 0.09);
}
.lgc-val {
  display: inline-flex; align-items: center; height: 44px; padding: 0 4px 0 12px;
  border-radius: 12px; cursor: text;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(14, 19, 24, 0.12), 0 1px 2px rgba(14, 19, 24, 0.05);
  transition: box-shadow 0.2s ease;
}
.lgc-val:hover { box-shadow: inset 0 0 0 1px rgba(14, 19, 24, 0.24), 0 1px 2px rgba(14, 19, 24, 0.05); }
.lgc-val:focus-within { box-shadow: inset 0 0 0 1.5px #0A5F9A, 0 0 0 4px rgba(10, 95, 154, 0.14); }
.lgc-val input { width: 5.5ch; border: 0; padding: 0; background: none; outline: 0; text-align: right; font: 700 19px/1 'Inter', sans-serif; letter-spacing: -0.02em; color: var(--lgc-ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.lgc-val input::-webkit-outer-spin-button, .lgc-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lgc-val > span { align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 58px; margin-left: 10px; padding: 0 8px; border-left: 1px solid rgba(14, 19, 24, 0.09); font-size: 12.5px; font-weight: 600; color: var(--lgc-mut); }

/* Deslizador: pista con relleno azul IMMAC → celeste y perilla con punto azul */
.lgc-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; }
.lgc-range:focus { outline: none; }
.lgc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #0A5F9A 0, #3FB4E6 var(--p, 50%), rgba(14, 19, 24, 0.09) var(--p, 50%)); }
.lgc-range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(14, 19, 24, 0.09); }
.lgc-range::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #0A5F9A, #3FB4E6); }
.lgc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(circle, #0A5F9A 0 4px, #fff 4.5px);
  box-shadow: 0 0 0 1px rgba(14, 19, 24, 0.1), 0 6px 14px -4px rgba(10, 40, 70, 0.5);
  transition: transform 0.2s var(--lgc-ease), box-shadow 0.2s ease;
}
.lgc-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: radial-gradient(circle, #0A5F9A 0 4px, #fff 4.5px); box-shadow: 0 0 0 1px rgba(14, 19, 24, 0.1), 0 6px 14px -4px rgba(10, 40, 70, 0.5); }
.lgc-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.lgc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgba(14, 19, 24, 0.1), 0 0 0 6px rgba(10, 95, 154, 0.2); }
.lgc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px rgba(14, 19, 24, 0.1), 0 0 0 6px rgba(10, 95, 154, 0.2); }
.lgc-ticks { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; font-weight: 500; color: #6B7684; font-variant-numeric: tabular-nums; }

/* Valores sugeridos: control segmentado */
.lgc-pre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; padding: 5px; border-radius: 16px; background: rgba(14, 19, 24, 0.05); box-shadow: inset 0 0 0 1px rgba(14, 19, 24, 0.04); }
.lgc-pre__k { width: 100%; padding: 6px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lgc-mut); }
.lgc-chip {
  flex: 1 1 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 12px; white-space: nowrap;
  font: 600 13px/1.15 'Inter', sans-serif; color: #4A5562; cursor: pointer;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.lgc-chip:hover { color: var(--lgc-ink); background: rgba(255, 255, 255, 0.55); }
.lgc-chip[aria-pressed="true"] { color: var(--lgc-ink); background: #fff; box-shadow: 0 1px 2px rgba(14, 19, 24, 0.08), 0 6px 16px -8px rgba(10, 40, 70, 0.35); }
.lgc-chip:focus-visible { outline: 2px solid #0A5F9A; outline-offset: 1px; }

/* Resultado: panel oscuro (tinta IMMAC) con luces de la marca */
.lgc-out {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 12px;
  padding: 34px 34px 28px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(63, 180, 230, 0.24) 0%, rgba(63, 180, 230, 0) 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(182, 205, 32, 0.12) 0%, rgba(182, 205, 32, 0) 60%),
    linear-gradient(160deg, #142233 0%, #0A121B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 34px 60px -32px rgba(5, 15, 30, 0.75);
}
.lgc-out .lgc-k { color: rgba(255, 255, 255, 0.6); }
.lgc-out .lgc-k--accent { display: inline-flex; align-items: center; gap: 8px; color: #C9DD3C; }
.lgc-out .lgc-k--accent::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(201, 221, 60, 0.16); }
.lgc-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
.lgc-big span { font-size: clamp(56px, 6vw, 80px); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.lgc-big small { font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.lgc-note { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.lgc-list { margin: 24px 0 auto; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.lgc-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.lgc-list dt { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.lgc-list dd { margin: 0; font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lgc-pips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.lgc-pips i { width: 14px; height: 4px; border-radius: 2px; background: #C9DD3C; }
.lgc-pips em { margin-left: 4px; font-size: 11px; font-style: normal; font-weight: 700; color: rgba(255, 255, 255, 0.6); }

/* Datos de quien hace el pedido (van en el mensaje de WhatsApp) */
.lgc-who { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.lgc-who legend { padding: 0; margin-bottom: 10px; }
.lgc-who__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lgc-field2 { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 11px; border-radius: 14px; cursor: text;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease; }
.lgc-field2:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.lgc-field2 span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.6); }
.lgc-field2 input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font: 600 16px/1.3 'Inter', sans-serif; color: #fff; caret-color: #3FB4E6; }
.lgc-field2 input::placeholder { color: rgba(255, 255, 255, 0.36); font-weight: 500; }
.lgc-field2:focus-within { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px #3FB4E6, 0 0 0 4px rgba(63, 180, 230, 0.16); }
.lgc-field2:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px #FF8A66; background: rgba(255, 138, 102, 0.08); }
.lgc-err { min-height: 0; margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #FFB199; }
.lgc-err:empty { display: none; }
.lgc-action { margin-top: 16px; outline: none; }
.lgc-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 15px 15px 15px 22px; border: 0; border-radius: 18px;
  text-align: left; color: #0E1318; cursor: pointer;
  background: linear-gradient(180deg, #C9DD3C 0%, #AFC51C 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 18px 34px -18px rgba(182, 205, 32, 0.7);
  transition: transform 0.35s var(--lgc-ease), box-shadow 0.35s ease, filter 0.3s ease;
}
.lgc-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 70%); transform: translateX(-100%); transition: transform 0.9s var(--lgc-ease); pointer-events: none; }
.lgc-cta b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.lgc-cta small { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: rgba(14, 19, 24, 0.72); }
.lgc-cta small i { width: 7px; height: 7px; border-radius: 50%; background: #0E7A3C; }
.lgc-cta__go { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: #0E1318; transition: transform 0.35s var(--lgc-ease); }
.lgc-cta:focus-visible { outline: 2px solid #C9DD3C; outline-offset: 3px; }
.lgc-cta:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .lgc-cta:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 24px 40px -18px rgba(182, 205, 32, 0.8); }
  .lgc-cta:hover::before { transform: translateX(100%); }
  .lgc-cta:hover .lgc-cta__go { transform: translateX(3px); }
}
.lgc-fine { margin-top: 12px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.5); text-align: center; }

@media (max-width: 900px) {
  .lgc { padding-top: 48px; }
  .lgc-card { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .lgc-in { padding: 28px 18px 22px; }
  .lgc-f { padding: 16px 16px 12px; }
  .lgc-out { margin: 0 10px 10px; padding: 28px 22px 22px; }
  .lgc-who__row { grid-template-columns: 1fr; }
  .lgc-ticks span:nth-child(2), .lgc-ticks span:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .lgc-chip { min-height: 40px; padding: 0 8px; font-size: 12.5px; }
  .lgc-row label { font-size: 14px; }
  .lgc-val { height: 42px; padding-left: 10px; }
  .lgc-val input { width: 4.6ch; font-size: 18px; }
  .lgc-val > span { min-width: 46px; margin-left: 8px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lgc-field i { animation: none; }
  .lgc-cta, .lgc-cta::before, .lgc-cta__go, .lgc-range::-webkit-slider-thumb, .lgc-f { transition: none; }
}

/* ═════════════════════════════════════════════════════════════════
   HERO · CAPÍTULOS DEL VIDEO (lo esencial de IMMAC, ligado al scroll)
   Cada capítulo aparece en su toma: planta → laboratorio → obra.
   La lógica (opacidad por tramo) está en js/main.js
═════════════════════════════════════════════════════════════════ */
.hero-chapters {
  position: fixed;
  inset: 0;
  z-index: 21;
  pointer-events: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hero-chapter {
  --v: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(24px, 7vw, 110px) clamp(64px, 12vh, 120px);
  opacity: var(--v);
  visibility: hidden;
  color: #fff;
}
.hero-chapter.is-on { visibility: visible; }
/* velo desde abajo a la izquierda: el texto se lee sobre cualquier toma */
.hero-chapter::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(95% 85% at 10% 100%, rgba(4, 7, 11, 0.9) 0%, rgba(4, 7, 11, 0.72) 42%, rgba(4, 7, 11, 0) 78%),
    linear-gradient(0deg, rgba(4, 7, 11, 0.65) 0%, rgba(4, 7, 11, 0) 50%);
}
.hero-chapter__in {
  max-width: 640px;
  transform: translate3d(0, calc((1 - var(--v)) * 24px), 0);
}
.hero-chapter__n {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3FB4E6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.hero-chapter__n::after { content: ''; width: 56px; height: 1px; background: linear-gradient(90deg, #3FB4E6, rgba(63, 180, 230, 0)); }
.hero-chapter__t {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 4px 32px rgba(0, 0, 0, 0.55);
}
.hero-chapter__t span { color: #B6CD20; }
.hero-chapter__p {
  max-width: 48ch;
  margin: 16px 0 0;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
@media (max-width: 768px) {
  .hero-chapter { padding: 0 22px 96px; }
  .hero-chapter::before {
    background: linear-gradient(0deg, rgba(4, 7, 11, 0.9) 0%, rgba(4, 7, 11, 0.72) 32%, rgba(4, 7, 11, 0.3) 55%, rgba(4, 7, 11, 0) 70%);
  }
  .hero-chapter__t { font-size: 34px; }
  .hero-chapter__p { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chapter__in { transform: none; }
}

/* Cierre del hero sobre la bandera de IMMAC: solo el lema, más grande */
.hero-chapter--end .hero-chapter__t { font-size: clamp(38px, 5vw, 76px); }

/* ═══ Fichas técnicas en PDF (Ver / Descargar): sección de mezclas y catálogo ═══ */
.ft-docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.ft-doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.ft-doc__name {
  margin-right: auto;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0E1318;
}
.ft-doc__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 95, 154, 0.45);
  background: rgba(255, 255, 255, 0.7);
  color: #0A5F9A;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ft-doc__btn--solid { background: #0A5F9A; border-color: #0A5F9A; color: #FFFFFF; }
@media (hover: hover) {
  .ft-doc__btn:hover { background: #E6F0F7; }
  .ft-doc__btn--solid:hover { background: #084C7B; border-color: #084C7B; }
}
.ft-doc__btn:focus-visible { outline: 2px solid #0A5F9A; outline-offset: 2px; }

/* En el catálogo: separada de las especificaciones y en fila en pantallas anchas */
.ft-docs--panel {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Sección de mezclas: los textos van por encima del video y no reciben clics,
   solo los botones del texto que está a la vista (lo marca js/mezclas-scroll.js) */
.mx-copy .ft-docs { max-width: 420px; }
.mx-copy .ft-doc__name { width: 100%; margin-right: 0; }
.mx-copy .ft-doc__btn { visibility: hidden; }
.mx-copy.is-shown .ft-doc__btn { visibility: visible; pointer-events: auto; }
@media (max-aspect-ratio: 4/5) {
  .mx-copy .ft-docs { margin-top: 14px; }
}
/* Pantallas de escritorio bajas: el panel del catálogo es fijo, se compacta el bloque */
@media (min-width: 901px) and (max-height: 780px) {
  .ft-docs--panel { gap: 4px; margin-top: 12px; padding-top: 10px; }
  .ft-docs--panel .ft-doc__btn { min-height: 30px; padding: 0 12px; font-size: 12px; }
}
/* Panel angosto: nombre arriba, botones debajo */
@media (max-width: 1100px) {
  .ft-docs--panel .ft-doc__name { width: 100%; margin-right: 0; }
}
