/* ============================================================
   MD CAPITAL — Estilos compartidos (Manual PCL / MD Capital)
   Paleta: #111111 / #0A0A0A / #C7A45A / #2F2F2F / #F5F5F5 / #FFFFFF
============================================================ */

:root { --gold: #C7A45A; }

body { background: #FFFFFF; color: #111111; font-family: 'Inter', sans-serif; overflow-x: hidden; }
::selection { background: rgba(199,164,90,.35); color: #111; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F5F5F5; }
::-webkit-scrollbar-thumb { background: #d6d6d6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #C7A45A; }

/* ---------- Intro con video del logo ---------- */
#logo-intro {
  position: fixed; inset: 0; z-index: 100; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .7s cubic-bezier(.4,0,.2,1), visibility .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
#logo-intro video {
  width: 100%; height: 100%; object-fit: cover; object-position: center; background: #FFFFFF;
  animation: introFade .5s ease both;
}
#logo-intro.done { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.02); }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   SISTEMA DE SCROLL: revelados, parallax y progreso
============================================================ */
:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-soft:     cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reveal base ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .95s var(--ease-out-expo), transform .95s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ---------- Revelado con máscara (titulares) ---------- */
.rv-mask { overflow: hidden; padding-bottom: .12em; }
.rv-mask > * {
  display: block; transform: translateY(108%);
  transition: transform 1.15s var(--ease-out-expo);
  will-change: transform;
}
.rv-mask.is-visible > * { transform: translateY(0); }

/* ---------- Entrada con escala (tarjetas y bloques) ---------- */
.rv-zoom {
  opacity: 0; transform: translateY(28px) scale(.965);
  transition: opacity 1s var(--ease-out-expo), transform 1.15s var(--ease-out-expo);
  will-change: opacity, transform;
}
.rv-zoom.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Filete que se dibuja ---------- */
.rv-line { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease-out-expo); }
.rv-line.is-visible { transform: scaleX(1); }

/* ---------- Parallax del hero al salir de pantalla ---------- */
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-parallax { will-change: transform, opacity; }

/* ---------- Barra de progreso de lectura ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, rgba(199,164,90,.55), #C7A45A, #e2c88d);
  z-index: 60; pointer-events: none;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(47,47,47,.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
}
.glass-nav {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17,17,17,.07);
}

/* ---------- Botones ---------- */
.btn-gold {
  background: #C7A45A; color: #111111;
  transition: box-shadow .35s ease, transform .35s ease, background .35s ease;
}
.btn-gold:hover { box-shadow: 0 0 32px rgba(199,164,90,.45), 0 0 64px rgba(199,164,90,.18); transform: translateY(-2px); background: #d4b26b; }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.25); color: #FFFFFF;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease, color .35s ease;
}
.btn-ghost:hover { border-color: #C7A45A; color: #C7A45A; box-shadow: 0 0 26px rgba(199,164,90,.25); transform: translateY(-2px); }

.btn-ghost-dark {
  border: 1px solid rgba(17,17,17,.3); color: #111111;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease, color .35s ease;
}
.btn-ghost-dark:hover { border-color: #C7A45A; color: #C7A45A; box-shadow: 0 0 26px rgba(199,164,90,.3); transform: translateY(-2px); }

/* Secundario sobre video: vidrio claro para no perderse sobre la imagen */
.btn-ghost-glass {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(17,17,17,.12); color: #111111;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease, color .35s ease;
}
.btn-ghost-glass:hover {
  background: rgba(255,255,255,.85); border-color: #C7A45A; color: #9a7b35;
  box-shadow: 0 0 26px rgba(199,164,90,.28); transform: translateY(-2px);
}

/* ---------- Tarjetas premium (dark glass) ---------- */
.card-premium {
  position: relative;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, border-color .5s ease;
  will-change: transform;
}
.card-premium:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(199,164,90,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(199,164,90,.12);
}
.card-premium .card-icon { transition: transform .5s ease, filter .5s ease; }
.card-premium:hover .card-icon { transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(199,164,90,.55)); }
.card-premium::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(199,164,90,.10), transparent 45%);
  opacity: 0; transition: opacity .4s ease;
}
.card-premium:hover::after { opacity: 1; }

/* ---------- Secciones claras (transiciones en blanco) ---------- */
.section-light { background: #F5F5F5; color: #111111; }
.section-light .text-muted { color: rgba(17,17,17,.6); }

.card-white {
  background: #FFFFFF;
  border: 1px solid rgba(17,17,17,.07);
  box-shadow: 0 12px 34px rgba(17,17,17,.06);
}
.card-white:hover {
  border-color: rgba(199,164,90,.65);
  box-shadow: 0 26px 60px rgba(17,17,17,.12), 0 0 44px rgba(199,164,90,.18);
}
.card-white::after {
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(199,164,90,.08), transparent 45%);
}

/* ---------- Logo: microinteracciones y marcas de agua ---------- */
.logo-hover { transition: transform .4s ease, filter .4s ease; }
.logo-hover:hover { transform: scale(1.05); filter: drop-shadow(0 0 14px rgba(199,164,90,.55)); }

.watermark {
  position: absolute; pointer-events: none; user-select: none;
  animation: wmFloat 16s ease-in-out infinite alternate;
}
@keyframes wmFloat { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-24px) rotate(1.5deg); } }

/* ---------- Nav ---------- */
.nav-link { position: relative; transition: color .3s ease; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: #C7A45A; transition: width .35s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover { color: #C7A45A; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #C7A45A; }

/* ============================================================
   HERO CON VIDEO (estilo cinematográfico full-bleed)
============================================================ */
.hero-video {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(160deg, #1a1512 0%, #0A0A0A 100%);
  overflow: hidden;
}
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}

/* Velo de legibilidad: oscurece arriba (navbar) y abajo (texto), deja respirar el centro */
.hero-video-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10,10,10,.62) 0%,
      rgba(10,10,10,.20) 26%,
      rgba(10,10,10,.28) 52%,
      rgba(10,10,10,.82) 88%,
      rgba(10,10,10,.94) 100%);
}
/* Refuerzo lateral para el bloque de texto (izquierda) */
.hero-video-scrim-side {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.34) 40%, transparent 70%),
    radial-gradient(ellipse 62% 55% at 22% 78%, rgba(10,10,10,.60), transparent 70%);
}
/* Grano sutil de cine */
.hero-video-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .30; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
/* Filete dorado al pie del hero */
.hero-video::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(199,164,90,.75), transparent);
}

.hero-video-title { text-shadow: 0 2px 30px rgba(0,0,0,.45); }

/* ---------- Variante clara: material luminoso (showroom) ---------- */
.hero-video--light { background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%); }
/* El texto vive al pie: solo un velo oscuro que sube. Arriba apenas un
   apoyo mínimo para el navbar, dejando el vehículo totalmente a la vista. */
.hero-video--light .hero-video-scrim {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.58) 0%,
      rgba(255,255,255,.20) 8%,
      rgba(255,255,255,0) 16%),
    linear-gradient(0deg,
      rgba(10,10,10,.92) 0%,
      rgba(10,10,10,.82) 14%,
      rgba(10,10,10,.60) 26%,
      rgba(10,10,10,.32) 38%,
      rgba(10,10,10,.10) 48%,
      rgba(10,10,10,0) 58%);
}
/* Refuerzo acotado al pie izquierdo, donde vive el bloque de texto */
.hero-video--light .hero-video-scrim-side {
  background: radial-gradient(ellipse 60% 46% at 20% 86%, rgba(10,10,10,.60), transparent 74%);
}
.hero-video--light .hero-video-grain { opacity: .14; mix-blend-mode: multiply; }
.hero-video--light .hero-video-title { text-shadow: 0 2px 26px rgba(255,255,255,.75); }

/* Indicador sobre píldora de vidrio: legible tanto si el piso sale
   claro (inicio del loop) como negro (resto del ciclo) */
.scroll-pill {
  background: rgba(17,17,17,.34);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9999px;
  padding: .55rem 1.1rem .55rem 1.4rem;
  transition: background .35s ease, border-color .35s ease;
}
.scroll-pill:hover { background: rgba(17,17,17,.5); border-color: rgba(199,164,90,.5); }
.scroll-cue--onGlass { border-color: rgba(255,255,255,.55); }

/* Entrada escalonada del contenido del hero */
.hero-rise { opacity: 0; transform: translateY(26px); animation: heroRise 1.1s cubic-bezier(.22,1,.36,1) forwards; }
.hero-rise-1 { animation-delay: .15s; }
.hero-rise-2 { animation-delay: .32s; }
.hero-rise-3 { animation-delay: .49s; }
.hero-rise-4 { animation-delay: .66s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

/* Indicador de scroll */
.scroll-cue {
  width: 26px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 14px;
  position: relative;
}
.scroll-cue::after {
  content: ''; position: absolute; left: 50%; top: 9px; width: 3px; height: 7px; border-radius: 3px;
  background: #C7A45A; transform: translateX(-50%);
  animation: cueDrop 2s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes cueDrop {
  0% { opacity: 0; transform: translate(-50%, 0); }
  25% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; }
}

/* ---------- Navbar transparente sobre el video ---------- */
.nav-overlay {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.nav-overlay .nav-link,
.nav-overlay #menu-btn { color: #FFFFFF; }
.nav-overlay .nav-link.active { color: #C7A45A; }
.nav-overlay ul { color: rgba(255,255,255,.92) !important; }
.logo-swap { position: relative; display: inline-block; }
.logo-swap .logo-neg { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.nav-overlay .logo-swap .logo-neg { opacity: 1; }
.nav-overlay .logo-swap .logo-pos { opacity: 0; }
.logo-swap .logo-pos { transition: opacity .4s ease; }

/* ---------- Hero cinemático (claro) ---------- */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(199,164,90,.16), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 80%, rgba(199,164,90,.10), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(17,17,17,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 75%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 72px 72px, 72px 72px; } }
.hero-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.55); }

.float-orb {
  position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
@keyframes orbFloat { from { transform: translateY(0) translateX(0); } to { transform: translateY(-40px) translateX(30px); } }

.headline-gradient {
  background: linear-gradient(120deg, #FFFFFF 30%, #C7A45A 55%, #FFFFFF 80%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

/* ---------- Sliders ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none; background: #2F2F2F; cursor: pointer; touch-action: manipulation; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #C7A45A; border: 3px solid #111111;
  box-shadow: 0 0 0 1.5px #C7A45A, 0 0 18px rgba(199,164,90,.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); box-shadow: 0 0 0 1.5px #C7A45A, 0 0 28px rgba(199,164,90,.8); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #C7A45A; border: 3px solid #111111;
  box-shadow: 0 0 0 1.5px #C7A45A, 0 0 18px rgba(199,164,90,.55); cursor: pointer;
}

/* ---------- Selectores segmentados ---------- */
.seg-btn { transition: all .35s ease; border: 1px solid rgba(255,255,255,.12); color: #F5F5F5; }
.seg-btn:hover { border-color: rgba(199,164,90,.5); }
.seg-btn.active { background: rgba(199,164,90,.12); border-color: #C7A45A; color: #C7A45A; box-shadow: 0 0 22px rgba(199,164,90,.15); }

/* ---------- Inputs ---------- */
.input-premium {
  background: rgba(17,17,17,.6); border: 1px solid rgba(255,255,255,.10); color: #fff;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.input-premium:focus { outline: none; border-color: #C7A45A; box-shadow: 0 0 0 3px rgba(199,164,90,.15); }
.input-premium::placeholder { color: rgba(245,245,245,.35); }

/* ---------- Variantes claras (inputs y selectores sobre blanco) ---------- */
.section-light .input-premium {
  background: #FFFFFF; border-color: rgba(17,17,17,.14); color: #111111;
}
.section-light .input-premium::placeholder { color: rgba(17,17,17,.35); }
.section-light .seg-btn { border-color: rgba(17,17,17,.16); color: rgba(17,17,17,.72); }
.section-light .seg-btn:hover { border-color: rgba(199,164,90,.6); }
.section-light .seg-btn.active {
  background: rgba(199,164,90,.14); border-color: #C7A45A; color: #9a7b35;
}

/* ---------- Divisores ---------- */
.gold-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(199,164,90,.6), transparent); }

.parallax-slow { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .rv-zoom { opacity: 1; transform: none; }
  .rv-mask > * { transform: none; }
  .rv-line { transform: scaleX(1); }
  .hero-media, .hero-parallax { transform: none !important; opacity: 1 !important; }
  #scroll-progress { display: none; }
  #logo-intro { display: none; }
}

/* ============================================================
   TEMAS POR SCROLL
   Cada sección declara su par fondo/texto; el documento transiciona
   de forma global para que el contraste cambie al desplazarse.
============================================================ */
:root {
  --bg:       #FFFFFF;
  --fg:       #111111;
  --fg-soft:  rgba(17,17,17,.62);
  --fg-mute:  rgba(17,17,17,.45);
  --line:     rgba(17,17,17,.10);
  --surface:  #FFFFFF;
  --surface-line: rgba(17,17,17,.08);
}
html[data-theme="paper"] {
  --bg: #F5F5F5; --fg: #111111;
  --fg-soft: rgba(17,17,17,.62); --fg-mute: rgba(17,17,17,.45);
  --line: rgba(17,17,17,.10); --surface: #FFFFFF; --surface-line: rgba(17,17,17,.08);
}
html[data-theme="dark"] {
  --bg: #111111; --fg: #FFFFFF;
  --fg-soft: rgba(245,245,245,.66); --fg-mute: rgba(245,245,245,.45);
  --line: rgba(255,255,255,.12); --surface: rgba(47,47,47,.38); --surface-line: rgba(255,255,255,.08);
}
html[data-theme="deep"] {
  --bg: #0A0A0A; --fg: #FFFFFF;
  --fg-soft: rgba(245,245,245,.66); --fg-mute: rgba(245,245,245,.45);
  --line: rgba(255,255,255,.12); --surface: rgba(47,47,47,.38); --surface-line: rgba(255,255,255,.08);
}

html { background: var(--bg); }
body {
  background: var(--bg); color: var(--fg);
  transition: background-color .75s cubic-bezier(.4,0,.2,1), color .75s cubic-bezier(.4,0,.2,1);
}

/* Las secciones con tema ceden el fondo al documento */
[data-theme-section] { background: transparent !important; }

/* El texto sigue el tema activo */
[data-theme-section] .text-white,
[data-theme-section] .text-md-black { color: var(--fg) !important; }
[data-theme-section] .text-md-black\/60,
[data-theme-section] .text-md-black\/65,
[data-theme-section] .text-md-black\/70,
[data-theme-section] .text-md-black\/80,
[data-theme-section] .text-md-light\/55,
[data-theme-section] .text-md-light\/60,
[data-theme-section] .text-md-light\/65,
[data-theme-section] .text-md-light\/70,
[data-theme-section] .text-md-light\/75,
[data-theme-section] .text-white\/75,
[data-theme-section] .text-muted { color: var(--fg-soft) !important; }
[data-theme-section] .text-md-black\/40,
[data-theme-section] .text-md-black\/50,
[data-theme-section] .text-md-light\/40,
[data-theme-section] .text-md-light\/50 { color: var(--fg-mute) !important; }

/* Superficies y divisores */
[data-theme-section] .card-white {
  background: var(--surface); border-color: var(--surface-line);
  box-shadow: 0 12px 34px rgba(17,17,17,.05);
  transition: background-color .75s cubic-bezier(.4,0,.2,1), border-color .75s cubic-bezier(.4,0,.2,1);
}
html[data-theme="dark"] [data-theme-section] .card-white,
html[data-theme="deep"] [data-theme-section] .card-white {
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: none;
}
[data-theme-section] .glass {
  background: var(--surface); border-color: var(--surface-line);
  transition: background-color .75s cubic-bezier(.4,0,.2,1), border-color .75s cubic-bezier(.4,0,.2,1);
}

/* Barra de navegación acorde al tema */
#navbar.glass-nav {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  transition: background-color .75s cubic-bezier(.4,0,.2,1), border-color .75s cubic-bezier(.4,0,.2,1);
}
html[data-theme="dark"] #navbar:not(.nav-overlay) .nav-link,
html[data-theme="deep"] #navbar:not(.nav-overlay) .nav-link,
html[data-theme="dark"] #navbar:not(.nav-overlay) ul,
html[data-theme="deep"] #navbar:not(.nav-overlay) ul { color: rgba(255,255,255,.85); }
html[data-theme="dark"] #navbar:not(.nav-overlay) #menu-btn,
html[data-theme="deep"] #navbar:not(.nav-overlay) #menu-btn { color: #FFFFFF; }
/* Sobre fondo oscuro el logo cambia a su versión clara */
#navbar .logo-theme { position: relative; display: inline-block; }
#navbar .logo-theme .on-light,
#navbar .logo-theme .on-dark { transition: opacity .6s cubic-bezier(.4,0,.2,1); }
#navbar .logo-theme .on-dark { position: absolute; inset: 0; opacity: 0; }
html[data-theme="dark"] #navbar .logo-theme .on-dark,
html[data-theme="deep"] #navbar .logo-theme .on-dark { opacity: 1; }
html[data-theme="dark"] #navbar .logo-theme .on-light,
html[data-theme="deep"] #navbar .logo-theme .on-light { opacity: 0; }

/* ---------- Menú móvil abierto (garantiza alto contraste y cristal oscuro) ---------- */
#navbar.mobile-menu-open {
  background: rgba(10,10,10,.96) !important;
  border-bottom-color: rgba(255,255,255,.14) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,.65) !important;
}
#navbar.mobile-menu-open .nav-link,
#navbar.mobile-menu-open #menu-btn {
  color: #FFFFFF !important;
}
#navbar.mobile-menu-open .logo-swap .logo-neg,
#navbar.mobile-menu-open .logo-theme .on-dark {
  opacity: 1 !important;
}
#navbar.mobile-menu-open .logo-swap .logo-pos,
#navbar.mobile-menu-open .logo-theme .on-light {
  opacity: 0 !important;
}
#navbar.mobile-menu-open #mobile-menu {
  background: transparent !important;
  border-top-color: rgba(255,255,255,.10) !important;
}
#navbar.mobile-menu-open #mobile-menu .mobile-link:not(.btnx) {
  color: rgba(255,255,255,.92) !important;
}
#navbar.mobile-menu-open #mobile-menu .mobile-link:not(.btnx):hover {
  color: #C7A45A !important;
}

/* El botón de contorno también sigue el tema */
[data-theme-section] .btn-ghost-dark,
html[data-theme="dark"] .btn-ghost-dark,
html[data-theme="deep"] .btn-ghost-dark {
  border-color: var(--line); color: var(--fg);
  transition: border-color .6s ease, color .6s ease, box-shadow .35s ease, transform .35s ease;
}
[data-theme-section] .gold-divider { opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  body, #navbar.glass-nav, [data-theme-section] .card-white, [data-theme-section] .glass { transition: none !important; }
}

/* El hero de las secciones con tema deja ver el fondo del documento:
   conserva los destellos dorados pero suelta la capa opaca que
   impedía percibir el cambio de color al desplazarse. */
[data-theme-section] .hero-bg {
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(199,164,90,.16), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 80%, rgba(199,164,90,.10), transparent 55%);
}
[data-theme-section] .hero-overlay { background: transparent; }

/* Sobre tema oscuro los destellos se refuerzan un punto */
html[data-theme="dark"] [data-theme-section] .hero-bg,
html[data-theme="deep"] [data-theme-section] .hero-bg {
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(199,164,90,.20), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 80%, rgba(199,164,90,.12), transparent 55%);
}

/* La marca de agua se adapta: oscura sobre claro, clara sobre oscuro */
[data-theme-section] .watermark { transition: opacity .75s cubic-bezier(.4,0,.2,1), filter .75s cubic-bezier(.4,0,.2,1); }
html[data-theme="dark"] [data-theme-section] .watermark,
html[data-theme="deep"] [data-theme-section] .watermark { filter: invert(1) brightness(1.6); opacity: .06; }

/* El panel de resultados del simulador sigue el tema */
[data-theme-section] .bg-md-black\/60 {
  background-color: color-mix(in srgb, var(--fg) 6%, transparent) !important;
  transition: background-color .75s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   BOTÓN MD — esquinas animadas, barrido de luz y pulsación
============================================================ */
.btnx {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; padding: 1rem 2rem; border: 0; border-radius: .5rem;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color .35s ease, color .35s ease, transform .12s ease, box-shadow .35s ease;
}
.btnx:active { transform: scale(.965); }
.btnx:focus-visible { outline: 2px solid #C7A45A; outline-offset: 4px; }

.btnx__t { position: relative; z-index: 20; display: inline-flex; align-items: center; gap: .5rem; }
.btnx__t svg { width: 1rem; height: 1rem; }

/* Barrido de luz al pasar el cursor */
.btnx__shine {
  position: absolute; top: 0; left: -75%; height: 100%; width: 50%; z-index: 10;
  transform: rotate(12deg); filter: blur(14px); pointer-events: none;
  transition: left 1s ease-in-out;
}
.btnx:hover .btnx__shine { left: 125%; }

/* Las cuatro esquinas: dos crecen al pasar el cursor */
.btnx__c {
  position: absolute; display: block; width: 50%; z-index: 15; pointer-events: none;
  transition: height .35s ease, border-color .35s ease;
}
.btnx__c--tl { top: 0; left: 0;  height: 20%; border-left: 2px solid; border-top: 2px solid;    border-top-left-radius: .5rem; }
.btnx__c--tr { top: 0; right: 0; height: 60%; border-right: 2px solid; border-top: 2px solid;   border-top-right-radius: .5rem; }
.btnx__c--bl { bottom: 0; left: 0;  height: 60%; border-left: 2px solid; border-bottom: 2px solid;  border-bottom-left-radius: .5rem; }
.btnx__c--br { bottom: 0; right: 0; height: 20%; border-right: 2px solid; border-bottom: 2px solid; border-bottom-right-radius: .5rem; }
.btnx:hover .btnx__c--tr,
.btnx:hover .btnx__c--bl { height: 90%; }

/* Onda al hacer clic */
.btnx__ripple {
  position: absolute; z-index: 5; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%) scale(0); animation: btnxRipple .6s ease-out forwards;
}
@keyframes btnxRipple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---- Variante dorada: acción principal ---- */
.btnx--gold { background: #C7A45A; color: #FFFFFF; }
/* Al pasar el cursor el dorado se profundiza (no se aclara) para que
   el texto blanco gane contraste en lugar de perderlo */
.btnx--gold:hover { background: #B8934A; }
.btnx--gold .btnx__c { border-color: rgba(255,255,255,.65); }
.btnx--gold:hover .btnx__c { border-color: #FFFFFF; }
.btnx--gold .btnx__shine { background: rgba(255,255,255,.5); }
.btnx--gold .btnx__ripple { background: rgba(255,255,255,.35); }
/* Sombra sutil bajo el texto: lo despega del dorado sin ensuciarlo */
.btnx--gold .btnx__t { text-shadow: 0 1px 2px rgba(90,66,15,.45); }

/* ---- Variante de contorno: sigue el tema activo ---- */
.btnx--line { background: transparent; color: var(--fg, #111111); }
.btnx--line .btnx__c { border-color: rgba(199,164,90,.55); }
.btnx--line:hover { color: #C7A45A; }
.btnx--line:hover .btnx__c { border-color: #C7A45A; }
.btnx--line .btnx__shine { background: rgba(199,164,90,.35); }
.btnx--line .btnx__ripple { background: rgba(199,164,90,.25); }

/* Sobre medio a pantalla completa el contorno va en blanco */
.btnx--onmedia { color: #FFFFFF; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btnx--onmedia .btnx__c { border-color: rgba(255,255,255,.6); }
.btnx--onmedia:hover { color: #C7A45A; background: rgba(255,255,255,.10); }
.btnx--onmedia:hover .btnx__c { border-color: #C7A45A; }
.btnx--onmedia .btnx__shine { background: rgba(255,255,255,.35); }
.btnx--onmedia .btnx__ripple { background: rgba(255,255,255,.3); }

.btnx--block { width: 100%; }
/* El botón de bloque cierra un panel de resultados: necesita aire
   para no pegarse a la última fila de cifras */
.btnx--block { margin-top: 2.25rem; }

@media (prefers-reduced-motion: reduce) {
  .btnx, .btnx__c, .btnx__shine { transition: none !important; }
  .btnx__ripple { display: none; }
}

/* ============================================================
   HERO FOTOGRÁFICO — arquitectura, movilidad e inversión
   Fotografía protagonista con movimiento de cámara casi imperceptible.
============================================================ */
.hero-photo {
  position: relative; width: 100%;
  min-height: 100svh; min-height: max(700px, 100svh);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #EDE6DA;            /* tono base mientras carga la foto */
}

.hero-photo__media { position: absolute; inset: 0; }
.hero-photo__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  will-change: transform;
  transform: translate3d(0,0,0) scale(1.01);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
/* Movimiento de cámara: 1 → 1.035 con deriva mínima */
@keyframes heroDrift {
  from { transform: translate3d(0, 0, 0) scale(1.005); }
  to   { transform: translate3d(-0.9%, -0.7%, 0) scale(1.035); }
}

/* Velo: sostiene el texto en el centro y deja los laterales intactos */
.hero-photo__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 44% 64% at 50% 50%,
      rgba(252,250,246,.90) 0%, rgba(252,250,246,.74) 40%,
      rgba(252,250,246,.34) 66%, rgba(252,250,246,.08) 82%, transparent 92%),
    linear-gradient(180deg, rgba(250,248,243,.62) 0%, rgba(250,248,243,.10) 16%, transparent 30%);
}

/* Luz ambiental: recorrido lentísimo, casi imperceptible */
.hero-photo__light {
  position: absolute; inset: -25%; pointer-events: none;
  mix-blend-mode: soft-light; opacity: .85;
  background: radial-gradient(ellipse 38% 46% at 28% 38%, rgba(255,244,214,.55), transparent 68%);
  animation: heroLight 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroLight {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(14%, 6%, 0); }
}

/* Contenido: acotado a la franja limpia de la composición */
.hero-photo__content {
  position: relative; z-index: 3;
  width: 100%; max-width: 45rem; margin-inline: auto;
  padding: 7rem 1.5rem 4rem; text-align: center;
  will-change: transform;
}
.hero-photo__content .eyebrow {
  font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: #7A5F22;  /* 6,02:1 */
  text-shadow: none;
}
.hero-photo__title {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.95rem);
  line-height: 1.18;              /* más aire: las líneas son largas */
  letter-spacing: -.022em;        /* cierra el gris en cuerpos grandes */
  color: #0F0F0F;
  text-wrap: balance;             /* reparte las líneas de forma pareja */
  text-shadow: none;              /* el halo restaba nitidez a los bordes */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
.hero-photo__title em { font-style: normal; color: #8A6D2F; }
.hero-photo__sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;               /* el Light se deshacía sobre la textura */
  font-size: clamp(1rem, 1.25vw, 1.0625rem);
  line-height: 1.68;
  letter-spacing: .002em;
  color: rgba(17,17,17,.80);
  max-width: 31rem;               /* ~60 caracteres por línea */
  margin-inline: auto;
  text-shadow: none;
  text-wrap: pretty;
}
.hero-photo__facts {
  position: relative; isolation: isolate;
  font-family: 'Inter', sans-serif; font-size: .875rem; font-weight: 400;
  letter-spacing: .01em; color: rgba(17,17,17,.74); text-shadow: none;
}
.hero-photo__facts b { font-weight: 600; color: rgba(17,17,17,.88); }
/* Apoyo local: halo elíptico que acompaña la línea, sin caja visible.
   Cae sobre el escritorio, donde la fotografía tiene más detalle. */
.hero-photo__facts::before {
  content: ''; position: absolute; inset: -.85rem -3rem; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 58% 100% at 50% 50%,
    rgba(252,250,246,.86) 0%, rgba(252,250,246,.55) 45%, transparent 78%);
}

/* Barra transparente mientras la foto ocupa la pantalla */
.nav-photo {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.nav-photo .nav-link { color: rgba(17,17,17,.82); text-shadow: 0 1px 6px rgba(255,255,255,.6); }
.nav-photo .nav-link:hover, .nav-photo .nav-link.active { color: #8A6D2F; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero-photo__img { object-position: 46% center; }
  .hero-photo__veil {
    background:
      radial-gradient(ellipse 62% 50% at 50% 42%,
        rgba(252,250,246,.86) 0%, rgba(252,250,246,.58) 45%, transparent 80%),
      linear-gradient(180deg, rgba(250,248,243,.66) 0%, transparent 26%);
  }
}

/* ---------- Móvil: la foto se encuadra en la zona útil ---------- */
@media (max-width: 640px) {
  .hero-photo { min-height: max(620px, 100svh); }
  .hero-photo__img { object-position: 42% center; }
  .hero-photo__content { padding: 6rem 1.25rem 3rem; max-width: 32rem; }
  .hero-photo__sub { font-size: .95rem; line-height: 1.58; }
  /* Más apoyo bajo el texto porque el encuadre móvil tiene más detalle */
  .hero-photo__veil {
    background:
      linear-gradient(180deg,
        rgba(250,248,243,.80) 0%, rgba(250,248,243,.72) 34%,
        rgba(250,248,243,.42) 62%, rgba(250,248,243,.20) 100%);
  }
  .hero-photo__light { display: none; }   /* menos trabajo de composición en móvil */
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo__img, .hero-photo__light { animation: none !important; transform: none !important; }
  .hero-photo__content { transform: none !important; }
}

/* ============================================================
   ACORDEÓN DE SERVICIOS — paneles que se expanden
============================================================ */
.svc { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 900px) {
  .svc { flex-direction: row; gap: 1rem; height: 30rem; }
}

.svc__panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 1.25rem; cursor: pointer;
  min-height: 8.5rem;
  border: 1px solid rgba(17,17,17,.08);
  transition: flex-grow .8s cubic-bezier(.22,1,.36,1),
              min-height .8s cubic-bezier(.22,1,.36,1),
              border-color .5s ease;
}
@media (min-width: 900px) {
  .svc__panel { flex: 1 1 0; min-height: 0; }
  .svc__panel.is-open { flex-grow: 3.2; }
}
@media (max-width: 899px) {
  .svc__panel.is-open { min-height: 24rem; }
}
.svc__panel.is-open { border-color: rgba(199,164,90,.45); }

/* Fotografía de fondo con deriva lenta */
.svc__media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(.22,1,.36,1), filter .8s ease;
  filter: grayscale(.35) brightness(.92);
}
.svc__panel.is-open .svc__media { transform: scale(1); filter: grayscale(0) brightness(1); }

/* Velo: intenso mientras está cerrado, se abre con el panel */
.svc__veil {
  position: absolute; inset: 0; z-index: -1; transition: background .8s ease;
  background: linear-gradient(180deg, rgba(14,14,14,.30) 0%, rgba(14,14,14,.78) 55%, rgba(14,14,14,.92) 100%);
}
.svc__panel.is-open .svc__veil {
  background: linear-gradient(180deg, rgba(14,14,14,.12) 0%, rgba(14,14,14,.55) 48%, rgba(14,14,14,.90) 100%);
}

.svc__body {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff;
}
@media (min-width: 900px) { .svc__body { padding: 1.75rem; } }

.svc__index {
  font-family: 'Inter', sans-serif; font-size: .6875rem; font-weight: 600;
  letter-spacing: .22em; color: #C7A45A; margin-bottom: .625rem;
}
.svc__name {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.15; color: #fff;
}
/* El detalle aparece solo cuando el panel se abre */
.svc__detail {
  display: grid; grid-template-rows: 0fr;
  opacity: 0; transform: translateY(10px);
  transition: grid-template-rows .7s cubic-bezier(.22,1,.36,1),
              opacity .5s ease .12s, transform .6s cubic-bezier(.22,1,.36,1) .12s;
}
.svc__panel.is-open .svc__detail { grid-template-rows: 1fr; opacity: 1; transform: none; }
.svc__detail > div { overflow: hidden; }

.svc__text {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: .9375rem;
  line-height: 1.62; color: rgba(255,255,255,.82); max-width: 26rem;
  margin-top: .875rem;
}
.svc__link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .875rem; color: #C7A45A;
}
.svc__link svg { transition: transform .35s cubic-bezier(.22,1,.36,1); }
.svc__panel:hover .svc__link svg { transform: translateX(4px); }

.svc__tag {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-family: 'Inter', sans-serif; font-size: .625rem; font-weight: 600;
  letter-spacing: .18em; color: #C7A45A;
  padding: .3125rem .625rem; border: 1px solid rgba(199,164,90,.55); border-radius: 9999px;
  background: rgba(14,14,14,.45); backdrop-filter: blur(6px);
}

/* Barra de progreso del ciclo automático */
.svc__timer {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left; background: #C7A45A; opacity: 0;
}
.svc__panel.is-open .svc__timer { opacity: 1; }
.svc__panel.is-open.is-timing .svc__timer { transform: scaleX(1); transition: transform 5s linear; }

@media (prefers-reduced-motion: reduce) {
  .svc__panel, .svc__media, .svc__veil, .svc__detail { transition: none !important; }
  .svc__detail { grid-template-rows: 1fr; opacity: 1; transform: none; }
  .svc__timer { display: none; }
}

/* ============================================================
   LISTA EDITORIAL — se dibuja al entrar en pantalla
============================================================ */
.edl { display: grid; }

.edl__row {
  position: relative; display: grid; gap: .5rem 2rem;
  grid-template-columns: 1fr;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  transition: background-color .45s ease;
}
@media (min-width: 800px) {
  .edl__row { grid-template-columns: 7rem minmax(0, 20rem) 1fr; align-items: baseline; gap: 2.5rem; }
}
.edl__row:hover { background-color: rgba(199,164,90,.05); }

/* Regla superior que se dibuja de izquierda a derecha */
.edl__row::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,.13);
}
.edl__row::after {
  content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, #C7A45A, rgba(199,164,90,.25));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}
.edl__row.is-in::after { transform: scaleX(1); }
.edl__row:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }

/* Número en contorno que se rellena al pasar el cursor */
.edl__num {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(199,164,90,.55);
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease .15s, transform .8s cubic-bezier(.22,1,.36,1) .15s,
              color .45s ease, -webkit-text-stroke-color .45s ease;
}
.edl__row.is-in .edl__num { opacity: 1; transform: none; }
.edl__row:hover .edl__num { color: #C7A45A; -webkit-text-stroke-color: #C7A45A; }

.edl__title {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.2; color: #fff;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease .26s, transform .8s cubic-bezier(.22,1,.36,1) .26s;
}
.edl__row.is-in .edl__title { opacity: 1; transform: none; }

.edl__text {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: .9375rem;
  line-height: 1.66; color: rgba(245,245,245,.6); max-width: 32rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease .38s, transform .8s cubic-bezier(.22,1,.36,1) .38s;
}
.edl__row.is-in .edl__text { opacity: 1; transform: none; }

/* Marca dorada que asoma al pasar el cursor */
.edl__mark {
  position: absolute; left: -1.25rem; top: 50%; width: 3px; height: 0;
  background: #C7A45A; border-radius: 3px; transform: translateY(-50%);
  transition: height .45s cubic-bezier(.22,1,.36,1);
}
.edl__row:hover .edl__mark { height: 58%; }

@media (prefers-reduced-motion: reduce) {
  .edl__row::after { transform: scaleX(1); }
  .edl__num, .edl__title, .edl__text { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   FRANJA DE ESPECIFICACIONES — cifras que cuentan
============================================================ */
.spec-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .spec-row { grid-template-columns: repeat(3, 1fr); } }

.spec-col {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line, rgba(17,17,17,.10));
}
@media (min-width: 860px) {
  .spec-col { padding: .5rem clamp(1.75rem, 3vw, 3rem); border-top: 0; }
  .spec-col:first-child { padding-left: 0; }
  .spec-col:last-child  { padding-right: 0; }
  /* Divisor vertical que se dibuja de arriba abajo */
  .spec-col + .spec-col::before {
    content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 100%;
    background: linear-gradient(180deg, rgba(199,164,90,.55), rgba(199,164,90,.08));
    transform: scaleY(0); transform-origin: top;
    transition: transform 1s cubic-bezier(.22,1,.36,1) .2s;
  }
  .spec-row.is-in .spec-col + .spec-col::before { transform: scaleY(1); }
}

.spec-col__value {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.75rem); line-height: 1;
  color: #C7A45A; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: .125rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.22,1,.36,1);
}
.spec-col__unit { font-size: .42em; font-weight: 600; letter-spacing: 0; }

.spec-col__key {
  font-family: 'Inter', sans-serif; font-size: .6875rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-soft, rgba(17,17,17,.62)); margin-top: 1rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease .12s, transform .8s cubic-bezier(.22,1,.36,1) .12s;
}
.spec-col__desc {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: .9375rem;
  line-height: 1.62; color: var(--fg-soft, rgba(17,17,17,.6));
  margin-top: .625rem; max-width: 22rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease .24s, transform .8s cubic-bezier(.22,1,.36,1) .24s;
}

.spec-row.is-in .spec-col__value,
.spec-row.is-in .spec-col__key,
.spec-row.is-in .spec-col__desc { opacity: 1; transform: none; }

/* Escalonado por columna */
.spec-col:nth-child(2) .spec-col__value { transition-delay: .12s; }
.spec-col:nth-child(2) .spec-col__key   { transition-delay: .24s; }
.spec-col:nth-child(2) .spec-col__desc  { transition-delay: .36s; }
.spec-col:nth-child(3) .spec-col__value { transition-delay: .24s; }
.spec-col:nth-child(3) .spec-col__key   { transition-delay: .36s; }
.spec-col:nth-child(3) .spec-col__desc  { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .spec-col__value, .spec-col__key, .spec-col__desc { opacity: 1; transform: none; transition: none; }
  .spec-col + .spec-col::before { transform: scaleY(1); }
}

/* ============================================================
   RUTA DE PROCESO — línea que se traza y nodos que se encienden
============================================================ */
.route { position: relative; }

/* ---- Escritorio: recorrido horizontal ---- */
@media (min-width: 860px) {
  .route__track {
    position: absolute; left: 0; right: 0; top: 1.125rem; height: 2px;
    background: var(--line, rgba(17,17,17,.12)); border-radius: 2px;
  }
  .route__track::after {
    content: ''; position: absolute; inset: 0; border-radius: 2px;
    background: linear-gradient(90deg, #C7A45A, rgba(199,164,90,.45));
    transform: scaleX(0); transform-origin: left;
    transition: transform 2s cubic-bezier(.32,.72,.35,1);
  }
  .route.is-in .route__track::after { transform: scaleX(1); }

  .route__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .route__step { padding-right: 2rem; }
}

/* ---- Móvil: recorrido vertical ---- */
@media (max-width: 859px) {
  .route__track {
    position: absolute; left: 1.0625rem; top: 0; bottom: 0; width: 2px;
    background: var(--line, rgba(17,17,17,.12)); border-radius: 2px;
  }
  .route__track::after {
    content: ''; position: absolute; inset: 0; border-radius: 2px;
    background: linear-gradient(180deg, #C7A45A, rgba(199,164,90,.45));
    transform: scaleY(0); transform-origin: top;
    transition: transform 2s cubic-bezier(.32,.72,.35,1);
  }
  .route.is-in .route__track::after { transform: scaleY(1); }

  .route__steps { display: grid; gap: 2.25rem; }
  .route__step { padding-left: 3.25rem; }
}

.route__step { position: relative; }

/* Nodo */
.route__dot {
  position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg, #fff);
  border: 2px solid var(--line, rgba(17,17,17,.16));
  font-family: 'Inter', sans-serif; font-size: .6875rem; font-weight: 700;
  color: var(--fg-mute, rgba(17,17,17,.42));
  transition: border-color .5s ease, color .5s ease, background-color .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
  z-index: 1;
}
@media (max-width: 859px) { .route__dot { position: absolute; left: 0; top: 0; } }

.route__step.is-on .route__dot {
  border-color: #C7A45A; color: #111; background: #C7A45A; transform: scale(1.06);
}
/* Halo que late una sola vez al encenderse */
.route__step.is-on .route__dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(199,164,90,.5);
  animation: routePing .9s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes routePing {
  from { transform: scale(.85); opacity: .9; }
  to   { transform: scale(1.5);  opacity: 0; }
}

.route__name {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 1.125rem; line-height: 1.25; color: var(--fg, #111);
  margin-top: 1.25rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.route__text {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: .9375rem;
  line-height: 1.62; color: var(--fg-soft, rgba(17,17,17,.6));
  margin-top: .625rem; max-width: 22rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s ease .1s, transform .7s cubic-bezier(.22,1,.36,1) .1s;
}
.route__step.is-on .route__name,
.route__step.is-on .route__text { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .route__track::after { transform: none !important; }
  .route__dot::after { animation: none; }
  .route__name, .route__text { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PESTAÑAS VERTICALES — indicador que se desliza + panel
============================================================ */
.tabs { display: grid; gap: 2rem; }
@media (min-width: 900px) { .tabs { grid-template-columns: 19rem 1fr; gap: 3.5rem; align-items: start; } }

/* ---- Columna de etapas ---- */
.tabs__list { position: relative; display: grid; gap: .25rem; }

/* Riel y pastilla que viaja entre etapas */
.tabs__rail {
  position: absolute; left: 0; top: 0; width: 2px; height: 100%;
  background: var(--line, rgba(17,17,17,.12)); border-radius: 2px;
}
.tabs__thumb {
  position: absolute; left: 0; width: 2px; border-radius: 2px; background: #C7A45A;
  transition: transform .55s cubic-bezier(.22,1,.36,1), height .55s cubic-bezier(.22,1,.36,1);
}

.tabs__item {
  position: relative; display: flex; align-items: baseline; gap: .875rem;
  padding: 1rem 0 1rem 1.5rem; background: none; border: 0; cursor: pointer;
  text-align: left; width: 100%; font-family: inherit;
  color: var(--fg-mute, rgba(17,17,17,.45));
  transition: color .4s ease;
}
.tabs__item:hover { color: var(--fg-soft, rgba(17,17,17,.68)); }
.tabs__item.is-on { color: var(--fg, #111); }

.tabs__num {
  font-family: 'Inter', sans-serif; font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; color: #C7A45A; opacity: .55;
  transition: opacity .4s ease;
}
.tabs__item.is-on .tabs__num { opacity: 1; }
.tabs__name {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.0625rem;
  line-height: 1.3; transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.tabs__item.is-on .tabs__name { transform: translateX(3px); }

/* ---- Panel ---- */
.tabs__panels { position: relative; min-height: 15rem; }
.tabs__panel {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.tabs__panel.is-on { opacity: 1; transform: none; pointer-events: auto; }

.tabs__figure {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: .85; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(199,164,90,.45);
}
.tabs__title {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.2;
  color: var(--fg, #111); margin-top: 1.25rem;
}
.tabs__text {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 1rem;
  line-height: 1.68; color: var(--fg-soft, rgba(17,17,17,.62));
  margin-top: .875rem; max-width: 32rem;
}

/* Barra de tiempo del ciclo automático */
.tabs__timer {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(199,164,90,.18); border-radius: 2px; overflow: hidden;
}
.tabs__timer::after {
  content: ''; display: block; height: 100%; width: 100%;
  background: #C7A45A; transform: scaleX(0); transform-origin: left;
}
.tabs.is-timing .tabs__timer::after { transform: scaleX(1); transition: transform 6s linear; }

@media (prefers-reduced-motion: reduce) {
  .tabs__thumb, .tabs__panel, .tabs__name { transition: none !important; }
  .tabs__timer { display: none; }
}
