/* =========================================================
   Geely Monjaro EM-i · Rich Article Pro
   Paleta: #000000 #184bff #ffffff #1d1d27 #f0ece9 #ededf2 #d8d8dc
   ========================================================= */
:root {
  --ink: #000000;
  --blue: #184bff;
  --paper: #ffffff;
  --charcoal: #1d1d27;
  --warm: #f0ece9;
  --soft: #ededf2;
  --line: #d8d8dc;
  --muted: #5e5e68;
  --muted-light: rgba(255, 255, 255, .72);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 67px;
  --nav-h: 62px;
  --bs-font-sans-serif: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 8px);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: var(--bs-font-sans-serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
button { font-family: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }

h1, h2, h3, p { overflow-wrap: break-word; }
h2 {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.04;
}
h3 { margin: 0 0 14px; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
h2 em, h3 em, h1 em { color: var(--blue); font-style: normal; }
p { line-height: 1.85; }

.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .7rem; font-weight: 700; letter-spacing: .18em; line-height: 1.6; }
.eyebrow-light { color: var(--paper); opacity: .9; }
.kicker { display: flex; margin: 0 0 22px; align-items: center; gap: 12px; color: #7a7a84; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kicker span { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: .7rem; letter-spacing: 0; }
.kicker-light { color: rgba(255, 255, 255, .6); }
.kicker-light span { border-color: rgba(255, 255, 255, .5); color: var(--paper); }

/* ---------- Botones estilo Geely (rectangulares, sin mayúsculas) ---------- */
.btn-geely {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  padding: 0 30px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s var(--ease);
}
.btn-geely::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn-geely:hover::before, .btn-geely:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn-geely svg { transition: transform .3s var(--ease); }
.btn-geely:hover svg { transform: translateX(5px); }
.btn-geely:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-geely-primary { color: var(--paper); background: var(--blue); border-color: var(--blue); }
.btn-geely-primary::before { background: var(--paper); }
.btn-geely-primary:hover { color: var(--blue); }
.btn-geely-ghost-light { color: var(--paper); background: transparent; border-color: rgba(255, 255, 255, .55); }
.btn-geely-ghost-light::before { background: var(--paper); }
.btn-geely-ghost-light:hover { color: var(--charcoal); border-color: var(--paper); }
.btn-sm-geely { min-height: 42px; padding: 0 20px; font-size: .8rem; }

.round-btn { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--charcoal); background: var(--paper); cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.round-btn:hover { color: var(--paper); background: var(--blue); border-color: var(--blue); }
.round-btn-light { border-color: rgba(255, 255, 255, .5); color: var(--paper); background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); }

/* ---------- Header de Life & Style: intacto ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.site-header .header-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  align-items: center;
  justify-content: center;
}
.site-header .header-logo { display: block; width: auto; height: 38px; max-height: 40px; transition: opacity .2s ease; }
.site-header .header-logo:hover { opacity: .85; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  min-height: max(640px, calc(100svh - var(--header-h)));
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
  background: var(--ink);
}
.hero-media { position: absolute; inset: -8% 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; animation: kenburns 18s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 48%, rgba(0,0,0,0) 100%), linear-gradient(0deg, rgba(0,0,0,.7), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 80px clamp(20px, 5vw, 60px) 170px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--paper); animation: rise 1s .1s var(--ease) both; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(24,75,255,.7); animation: pulse 2s infinite; }
.hero h1 { max-width: 1000px; margin: 0; font-size: clamp(2.9rem, 6vw, 5.6rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.hero h1 em { color: var(--paper); background: linear-gradient(90deg, #6f90ff, var(--paper)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero-summary { max-width: 560px; margin: 30px 0 0; color: rgba(255,255,255,.88); font-size: clamp(.95rem, 1.3vw, 1.08rem); animation: rise 1s .45s var(--ease) both; }
.hero-credit { display: flex; margin: 30px 0 0; align-items: center; gap: 14px; flex-wrap: wrap; animation: rise 1s .55s var(--ease) both; }
.hero-credit .credit-line { width: 44px; height: 2px; background: linear-gradient(90deg, var(--blue), #6f90ff); transform-origin: left; animation: credit-line .9s .9s var(--ease) both; }
.hero-credit .credit-label { color: rgba(255,255,255,.65); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.hero-credit strong { position: relative; padding-bottom: 3px; color: var(--paper); font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.hero-credit strong::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: #6f90ff; content: ""; transform: scaleX(0); transform-origin: left; animation: credit-line .7s 1.3s var(--ease) forwards; }
@keyframes credit-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-credit .credit-line, .hero-credit strong::after { animation: none; transform: none; } }
.hero-stats {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) 34px;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: clamp(16px, 4vw, 56px);
  animation: rise 1s .7s var(--ease) both;
}
.hero-stats div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.35); }
.hero-stats strong { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: .68rem; line-height: 1.5; }
.hero-scroll { position: absolute; right: clamp(20px, 5vw, 60px); bottom: 38px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--paper); font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; }
.hero-scroll-road { position: relative; width: 2px; height: 74px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.7) 0 8px, transparent 8px 14px); animation: road 1s linear infinite; }
.hero-scroll-road svg { position: absolute; top: 0; left: 50%; width: 30px; height: 13px; color: var(--paper); transform: translateX(-50%) rotate(90deg); animation: car-down 2.4s var(--ease) infinite; }

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(24,75,255,.7); } 70% { box-shadow: 0 0 0 12px rgba(24,75,255,0); } 100% { box-shadow: 0 0 0 0 rgba(24,75,255,0); } }
@keyframes road { from { background-position: 0 0; } to { background-position: 0 14px; } }
@keyframes car-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 62px; opacity: 0; } }

/* ---------- MENÚ DE SECCIONES ---------- */
.story-nav { position: sticky; top: var(--header-h); z-index: 1020; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.story-nav-inner { display: flex; max-width: 1240px; min-height: var(--nav-h); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); align-items: center; gap: 28px; }
.nav-label { flex: none; color: #92929b; font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.story-nav-links { display: flex; flex: 1; overflow-x: auto; gap: clamp(18px, 2.6vw, 38px); scrollbar-width: none; scroll-behavior: smooth; }
.story-nav-links::-webkit-scrollbar { display: none; }
.story-nav-links a { position: relative; display: inline-flex; flex: none; height: var(--nav-h); align-items: center; gap: 7px; color: #66666f; font-size: .76rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.story-nav-links a small { color: #a5a5ae; font-size: .6rem; font-weight: 700; transition: color .2s ease; }
.story-nav-links a:hover, .story-nav-links a.is-active, .story-nav-links a.is-active small { color: var(--blue); }
.story-nav-links a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--blue); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.story-nav-links a.is-active::after { transform: scaleX(1); }
.nav-road { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; pointer-events: none; }
.nav-road-fill { width: 100%; height: 100%; background: linear-gradient(90deg, rgba(24,75,255,.25), var(--blue)); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.nav-road-car { position: absolute; bottom: 2px; left: calc(var(--progress, 0) * 100%); width: 26px; height: 11px; color: var(--blue); transform: translateX(-100%); transition: opacity .3s ease; opacity: var(--car-op, 0); }

/* ---------- 01 INTRO ---------- */
.intro { padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 7vw, 100px); }
.intro-copy > p:not(.eyebrow):not(.kicker) { color: var(--muted); font-size: .96rem; }
.intro-copy .lead { color: var(--charcoal); font-size: 1.12rem; font-weight: 500; line-height: 1.75; }
.versions { display: flex; margin-top: 30px; align-items: center; flex-wrap: wrap; gap: 10px; }
.versions-label { margin-right: 8px; color: #7a7a84; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.version-chip { display: inline-grid; min-width: 60px; height: 40px; padding: 0 16px; place-items: center; border: 1px solid var(--charcoal); border-radius: 4px; color: var(--charcoal); font-size: .86rem; font-weight: 700; letter-spacing: .08em; transition: background .25s ease, color .25s ease; }
.version-chip:hover { color: var(--paper); background: var(--charcoal); }
.intro-visual { position: relative; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, #cfdbef, var(--soft)); }
.intro-visual img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.intro-visual figcaption { position: absolute; bottom: 16px; left: 18px; z-index: 3; padding: 7px 12px; border-radius: 3px; color: var(--paper); background: rgba(29,29,39,.72); backdrop-filter: blur(6px); font-size: .66rem; font-weight: 600; }
.light-sweep { position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
/* Animación "drive-in": el auto entra al cuadro */
.js .drive-in img { opacity: 0; transform: translateX(-14%) scale(1.04); transition: opacity 1s ease, transform 1.6s var(--ease); }
.js .drive-in.is-in img { opacity: 1; transform: none; }
.drive-in.is-in .light-sweep { animation: sweep 1.6s 1s ease both; }
.intro-visual:hover .light-sweep { animation: sweep 1.2s ease both; }
@keyframes sweep { to { transform: translateX(120%); } }

/* ---------- 02 AUTONOMÍA ---------- */
.range { padding: clamp(80px, 10vw, 130px) 0; color: var(--paper); background: var(--charcoal); }
.range h2 { margin-bottom: clamp(36px, 5vw, 56px); color: var(--paper); }
.range h2 em { color: var(--paper); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.ev-card { display: flex; overflow: hidden; flex-direction: column; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.03); transition: border-color .35s ease, transform .5s var(--ease); }
.ev-card:hover { border-color: rgba(24,75,255,.7); transform: translateY(-4px); }
.ev-visual { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #14141c; }
.ev-visual > svg { display: block; width: 100%; height: 100%; }
.ev-text { position: relative; margin: 0; padding: 22px 26px 26px 46px; color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.7; }
.ev-text::before { position: absolute; top: 33px; left: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); content: ""; box-shadow: 0 0 0 4px rgba(24,75,255,.25); }
.ev-text strong { color: var(--paper); font-weight: 700; }
.ev-readout { position: absolute; top: 16px; left: 20px; z-index: 2; display: flex; align-items: baseline; gap: 6px; color: var(--paper); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.ev-readout strong { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-readout small { font-size: .85rem; font-weight: 600; opacity: .8; }

/* 1 · Ciudad */
.skyline rect { fill: rgba(255,255,255,.07); }
.windows rect { fill: #f0ece9; opacity: .08; transition: opacity .6s ease; }
.windows rect.on { opacity: .75; }
.city-lane { stroke: rgba(255,255,255,.25); stroke-width: 2; stroke-dasharray: 10 8; }
.city-trail { stroke: var(--blue); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(24,75,255,.9)); }
.city-stop circle { fill: #14141c; stroke: rgba(255,255,255,.45); stroke-width: 2; transition: fill .4s ease, stroke .4s ease; }
.city-stop text { fill: rgba(255,255,255,.55); font-family: var(--bs-font-sans-serif); font-size: 12px; font-weight: 600; text-anchor: middle; transition: fill .4s ease; }
.city-stop.is-reached circle { fill: var(--blue); stroke: var(--paper); }
.city-stop.is-reached text { fill: var(--paper); }
.city-stop.is-reached circle { animation: stop-pop .5s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes stop-pop { 50% { transform: scale(1.6); } }
.city-car use { color: var(--paper); }
.ev-spark { fill: var(--blue); animation: spark .5s ease-in-out infinite alternate; }
@keyframes spark { from { opacity: .25; } to { opacity: 1; } }

/* 2 · Carretera */
.road-sun { fill: #f0ece9; opacity: .9; animation: sun 6s ease-in-out infinite alternate; }
@keyframes sun { to { transform: translateY(-10px); } }
.hill-back { fill: #184bff; opacity: .35; }
.hill-front { fill: #1d1d27; opacity: .55; }
.road-hills { animation: hills 14s linear infinite alternate; }
@keyframes hills { to { transform: translateX(-30px); } }
.road-dash { stroke: var(--paper); stroke-width: 3; stroke-dasharray: 10 12; animation: dash .45s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.road-edge { stroke: rgba(255,255,255,.55); stroke-width: 2; }
.road-car { color: var(--paper); animation: bob .6s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-1.5px); } }
.road-visual .ev-readout { color: var(--paper); }
.road-visual .odometer strong { padding: 2px 10px; border-radius: 4px; background: rgba(0,0,0,.45); }

/* 3 · Carga */
.charge-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: transform 1.2s var(--ease); }
.ev-card:hover .charge-visual img { transform: scale(1.05); }
.charge-visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,29,39,.1), rgba(29,29,39,.85) 70%); content: ""; }
.charge-hud { position: absolute; top: 50%; right: 8%; z-index: 2; width: min(44%, 190px); aspect-ratio: 1; transform: translateY(-50%); }
.charge-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track, .ring-fill { fill: none; stroke-width: 8; }
.ring-track { stroke: rgba(255,255,255,.15); }
.ring-fill { stroke: var(--blue); stroke-dasharray: 100; stroke-dashoffset: 70; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(24,75,255,.9)); }
.charge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--paper); }
.charge-center strong { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.charge-center > span { margin-top: 4px; font-size: .78rem; font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.bolt { width: 20px; height: 20px; margin-bottom: 4px; fill: var(--blue); }
.ev-card.is-charging .bolt { animation: bolt .6s ease-in-out infinite alternate; }
@keyframes bolt { to { fill: var(--paper); transform: scale(1.2); } }
.charge-cable { position: absolute; top: 50%; right: calc(8% + min(44%, 190px)); left: 32%; z-index: 2; height: 2px; background: rgba(255,255,255,.18); }
.charge-cable span { position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); opacity: 0; }
.ev-card.is-charging .charge-cable span { animation: current 1.2s linear infinite; }
.charge-cable span:nth-child(2) { animation-delay: .4s !important; } .charge-cable span:nth-child(3) { animation-delay: .8s !important; }
@keyframes current { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* 4 · Regeneración */
.tire { fill: #0d0d12; stroke: #2d2d3a; stroke-width: 4; }
.rim { fill: #2a2a36; stroke: #d8d8dc; stroke-width: 2; }
.spokes line { stroke: #d8d8dc; stroke-width: 3; stroke-linecap: round; }
.hub { fill: var(--blue); stroke: var(--paper); stroke-width: 2; }
.regen-path { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 4 6; }
.regen-particles circle { fill: var(--blue); filter: drop-shadow(0 0 5px rgba(24,75,255,1)); }
.regen-batt { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 2.5; }
.regen-batt-tip { fill: rgba(255,255,255,.7); }
.regen-batt-fill { fill: var(--blue); }
.brake-light rect { fill: #ff3b3b; opacity: 0; transition: opacity .2s ease; filter: drop-shadow(0 0 6px #ff3b3b); }
.regen-visual.is-braking .brake-light rect { opacity: .9; }
.regen-levels { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.regen-levels button { width: 38px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; color: var(--paper); background: rgba(0,0,0,.3); font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .25s ease, border-color .25s ease; }
.regen-levels button:hover { border-color: var(--paper); }
.regen-levels button[aria-checked="true"] { border-color: var(--blue); background: var(--blue); }
.regen-levels button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

@media (max-width: 760px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-text { font-size: .9rem; }
}

/* ---------- 03 DESEMPEÑO ---------- */
.performance { background: var(--paper); }
.perf-band { position: relative; padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; color: var(--paper); background: var(--ink); }
.perf-bg { position: absolute; inset: -10% 0; }
.perf-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.perf-band::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.35) 100%); content: ""; }
.perf-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(40px, 6vw, 90px); }
.perf-copy h2 { color: var(--paper); }
.perf-copy h2 em { color: var(--paper); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.perf-copy > p:not(.eyebrow):not(.kicker) { color: var(--muted-light); font-size: .95rem; }
.gauge-card { position: relative; display: flex; padding: 30px 28px 32px; flex-direction: column; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(29,29,39,.6); backdrop-filter: blur(10px); }
.gauge { width: 100%; max-width: 360px; overflow: visible; }
.gauge-track, .gauge-fill { fill: none; stroke-linecap: round; stroke-width: 10; }
.gauge-track { stroke: rgba(255,255,255,.12); }
.gauge-fill { stroke: var(--blue); stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px rgba(24,75,255,.9)); }
.gauge-tick { stroke: rgba(255,255,255,.55); stroke-width: 2; }
.gauge-tick.major { stroke: var(--paper); stroke-width: 3; }
.gauge-label { fill: rgba(255,255,255,.7); font-family: var(--bs-font-sans-serif); font-size: 11px; font-weight: 600; text-anchor: middle; }
.gauge-needle { transform: rotate(-120deg); transform-origin: 150px 130px; }
.gauge-needle line { stroke: var(--paper); stroke-linecap: round; stroke-width: 4; }
.gauge-needle circle { fill: var(--blue); stroke: var(--paper); stroke-width: 3; }
.gauge-readout { display: flex; margin: -28px 0 22px; flex-direction: column; align-items: center; }
.gauge-readout strong { display: flex; align-items: baseline; gap: 6px; font-size: 3.2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-readout strong small { color: rgba(255,255,255,.6); font-size: .9rem; letter-spacing: 0; }
.gauge-time { margin-top: 6px; color: var(--paper); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.perf-stats { display: grid; padding-top: clamp(60px, 7vw, 90px); padding-bottom: clamp(50px, 6vw, 80px); grid-template-columns: repeat(4, 1fr); gap: 24px; }
.perf-stats > div { padding-top: 22px; border-top: 2px solid var(--charcoal); }
.perf-stats strong { display: block; color: var(--ink); font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.perf-stats span { display: block; margin-top: 8px; color: var(--blue); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.perf-stats p { margin: 10px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }

.platform { display: grid; padding-bottom: clamp(60px, 7vw, 90px); grid-template-columns: .7fr 1.6fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.platform-copy p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.platform-visual { position: relative; overflow: hidden; border-radius: 6px; background: #3a3a3e; }
.platform-visual img { width: 100%; }
.axle-flow { position: absolute; top: 50%; left: 18%; width: 64%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 40% 100%; background-repeat: no-repeat; opacity: .9; animation: flow 2.2s linear infinite; mix-blend-mode: screen; }
@keyframes flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.hotspot { position: absolute; z-index: 2; width: 26px; height: 26px; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: var(--blue); cursor: pointer; transform: translate(-50%, -50%); }
.hotspot::before { position: absolute; inset: -8px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; content: ""; animation: ring 2s ease-out infinite; }
.hotspot::after { position: absolute; inset: 0; color: var(--paper); content: "+"; font-size: 17px; font-weight: 500; line-height: 21px; transition: transform .3s ease; }
.hotspot[aria-expanded="true"]::after { transform: rotate(45deg); }
@keyframes ring { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.5); } }
.hotspot-tip { position: absolute; z-index: 3; width: min(240px, 60vw); padding: 14px 16px; border-radius: 4px; color: var(--charcoal); background: var(--paper); box-shadow: 0 12px 30px rgba(0,0,0,.3); font-size: .76rem; line-height: 1.55; opacity: 0; pointer-events: none; transform: translate(22px, -50%) scale(.96); transition: opacity .25s ease, transform .25s ease; }
.hotspot-tip.tip-left { transform: translate(calc(-100% - 22px), -50%) scale(.96); }
.hotspot-tip strong { display: block; margin-bottom: 4px; color: var(--blue); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.hotspot[aria-expanded="true"] + .hotspot-tip { opacity: 1; transform: translate(22px, -50%); }
.hotspot[aria-expanded="true"] + .hotspot-tip.tip-left { transform: translate(calc(-100% - 22px), -50%); }

.record { display: grid; margin-bottom: clamp(70px, 8vw, 110px); padding-top: 34px; padding-bottom: 34px; grid-template-columns: auto 1fr; align-items: center; gap: clamp(22px, 4vw, 50px); }
.record { border-radius: 6px; background: var(--soft); max-width: calc(1240px - 2 * clamp(20px, 5vw, 60px)); width: calc(100% - 2 * clamp(20px, 5vw, 60px)); padding-left: clamp(20px, 4vw, 50px); padding-right: clamp(20px, 4vw, 50px); }
.record p { margin: 0; color: var(--charcoal); font-size: clamp(1rem, 1.6vw, 1.22rem); font-weight: 500; line-height: 1.65; }
.record strong { color: var(--blue); font-weight: 700; }
.record-badge { position: relative; width: 120px; height: 120px; }
.record-badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.record-badge text { fill: var(--charcoal); font-size: 9.6px; font-weight: 700; letter-spacing: 1.6px; }
.record-badge > span { position: absolute; inset: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--blue); font-size: 1.4rem; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

.gallery { padding-bottom: clamp(70px, 8vw, 110px); }
.gallery-head { display: grid; margin-bottom: 28px; grid-template-columns: 1fr auto; justify-items: end; align-items: end; column-gap: 20px; }
.gallery-head .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
.gallery-head h3 { margin: 0; }
.gallery-controls { display: flex; gap: 10px; }
.gallery-track { display: flex; padding: 0 max(clamp(20px, 5vw, 60px), calc((100vw - 1240px) / 2 + 60px)) 6px; overflow-x: auto; gap: 18px; scroll-snap-type: x mandatory; scroll-padding: 0 max(clamp(20px, 5vw, 60px), calc((100vw - 1240px) / 2 + 60px)); scrollbar-width: none; cursor: grab; outline: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track.is-dragging .g-card { pointer-events: none; }
.g-card { position: relative; flex: 0 0 min(380px, 78vw); height: clamp(320px, 42vw, 480px); overflow: hidden; border-radius: 6px; scroll-snap-align: start; user-select: none; }
.g-card.g-wide { flex-basis: min(720px, 86vw); }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-card:hover img { transform: scale(1.06); }
.g-card::after { position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); content: ""; }
.g-card figcaption { position: absolute; bottom: 20px; left: 22px; z-index: 1; color: var(--paper); font-size: 1rem; font-weight: 600; }
.g-card figcaption span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.7); font-size: .64rem; letter-spacing: .14em; }
.gallery-progress { height: 2px; margin-top: 24px; background: var(--line); }
.gallery-progress span { display: block; width: 20%; height: 100%; background: var(--blue); transition: width .2s ease; }

/* ---------- 04 INTERIOR ---------- */
.interior { padding: clamp(80px, 10vw, 130px) 0; background: var(--warm); }
.interior-head { max-width: 760px; margin-bottom: 44px; }
.interior-carousel { overflow: hidden; border-radius: 8px; background: var(--charcoal); }
.interior-carousel .carousel-item { height: clamp(340px, 56vw, 640px); }
.interior-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.interior-carousel .carousel-item.active img { animation: kenburns 7s ease-out both; }
.interior-carousel .carousel-item::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); content: ""; }
.interior-carousel .carousel-caption { z-index: 2; right: auto; bottom: clamp(22px, 4vw, 44px); left: clamp(22px, 4vw, 48px); max-width: 560px; padding: 0; text-align: left; }
.interior-carousel .carousel-caption span { color: var(--paper); font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .8; }
.interior-carousel .carousel-caption p { margin: 8px 0 0; font-size: clamp(1.15rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.interior-carousel .carousel-item.active .carousel-caption { animation: rise .9s .25s var(--ease) both; }
.interior-carousel .carousel-control-prev, .interior-carousel .carousel-control-next { z-index: 3; width: auto; padding: 0 clamp(12px, 2vw, 24px); opacity: 1; }
.carousel-thumbs { display: grid; margin-top: 14px; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.carousel-thumbs button { position: relative; height: clamp(54px, 8vw, 92px); padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: var(--charcoal); cursor: pointer; }
.carousel-thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .3s ease, transform .5s var(--ease); }
.carousel-thumbs button:hover img { opacity: .85; transform: scale(1.05); }
.carousel-thumbs button.active img { opacity: 1; }
.carousel-thumbs i { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.carousel-thumbs button.active i { animation: thumb-progress 5.5s linear both; }
.interior-carousel:hover ~ .carousel-thumbs button.active i { animation-play-state: paused; }
@keyframes thumb-progress { to { transform: scaleX(1); } }

.space-specs { display: grid; margin: 56px 0; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #cfc9c5; border-bottom: 1px solid #cfc9c5; }
.space-specs > div { padding: 28px 22px; border-right: 1px solid #cfc9c5; }
.space-specs > div:last-child { border-right: 0; }
.space-specs strong { display: block; color: var(--ink); font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.space-specs strong small { color: var(--blue); font-size: .45em; letter-spacing: 0; }
.space-specs > div > span { display: block; margin-top: 10px; color: #6b6b73; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toggle { display: inline-flex; margin-top: 14px; align-items: center; gap: 10px; color: var(--charcoal); font-size: .76rem; font-weight: 600; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { position: relative; width: 40px; height: 22px; border-radius: 22px; background: #bdb7b3; transition: background .3s ease; }
.toggle-ui::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); content: ""; transition: transform .3s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--blue); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--blue); outline-offset: 2px; }

.ambient { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.ambient-visual { --ambient: #184bff; position: relative; overflow: hidden; border-radius: 8px; }
.ambient-visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ambient-tint { position: absolute; inset: 0; background: var(--ambient); mix-blend-mode: color; opacity: .28; transition: background .6s ease; }
.ambient-glow { position: absolute; inset: 0; background: radial-gradient(60% 40% at 15% 40%, var(--ambient), transparent 70%), radial-gradient(50% 30% at 80% 70%, var(--ambient), transparent 70%); mix-blend-mode: screen; opacity: .35; transition: background .6s ease; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .2; } }
.swatches { display: flex; margin: 8px 0 30px; flex-wrap: wrap; gap: 12px; }
.swatches button { width: 38px; height: 38px; padding: 0; border: 3px solid var(--paper); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s ease; }
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--c), 0 6px 18px color-mix(in srgb, var(--c) 50%, transparent); transform: scale(1.12); }
.comfort-list { display: grid; margin: 0; padding: 0; list-style: none; }
.comfort-list li { display: flex; padding: 14px 0; gap: 14px; border-top: 1px solid #cfc9c5; color: #4f4f58; font-size: .84rem; line-height: 1.65; }
.comfort-list span { flex: none; color: var(--blue); font-size: .68rem; font-weight: 700; line-height: 2; }

/* ---------- 05 TECNOLOGÍA ---------- */
.tech { padding: clamp(80px, 10vw, 130px) 0; background: var(--paper); }
.tech-head { max-width: 760px; margin-bottom: 44px; }
.tech-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 4vw, 56px); }

/* Pantalla */
.tech-stage { position: relative; min-height: 420px; overflow: hidden; border-radius: 8px; background: var(--charcoal); }
.tech-panel { position: absolute; inset: 0; }
.tech-panel[hidden] { display: block !important; z-index: 0; visibility: hidden; opacity: 0; transition: visibility 0s .85s, opacity 0s .85s; }
.tech-panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.tech-panel.is-active { z-index: 1; visibility: visible; opacity: 1; animation: panel-wipe .8s var(--ease) both; }
.tech-panel.is-active img { transform: scale(1); }
.tech-panel::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); content: ""; pointer-events: none; }
@keyframes panel-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.tech-overlay { position: absolute; right: 22px; bottom: 22px; left: 22px; z-index: 2; color: var(--paper); }
.tech-panel.is-active .tech-overlay > * { animation: rise .7s .35s var(--ease) both; }

/* Pantallas: chips con la forma de cada pantalla */
.screens-overlay { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-panel.is-active .screens-overlay .screen-chip { animation: rise .6s calc(.35s + var(--d)) var(--ease) both; }
.screen-chip { display: flex; padding: 12px 16px; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; background: rgba(29,29,39,.6); backdrop-filter: blur(8px); }
.screen-chip strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.screen-shape { display: block; border: 2px solid var(--paper); border-radius: 3px; animation: screen-glow 2.4s ease-in-out infinite; }
.s-center { width: 26px; height: 18px; }
.s-cluster { width: 26px; height: 12px; }
.s-hud { width: 30px; height: 14px; border-style: dashed; border-color: #8ca6ff; transform: skewX(-12deg); }
@keyframes screen-glow { 50% { box-shadow: 0 0 10px rgba(24,75,255,.9); background: rgba(24,75,255,.35); } }
.hud-scan { position: absolute; top: 0; bottom: 0; left: -30%; z-index: 1; width: 30%; background: linear-gradient(90deg, transparent, rgba(140,166,255,.22), transparent); pointer-events: none; }
.tech-panel.is-active .hud-scan { animation: scan 3.2s ease-in-out .6s infinite; }
@keyframes scan { to { left: 110%; } }

/* Conectividad: burbuja de voz y enlace celular ↔ pantalla */
.voice-overlay { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.voice-bubble { display: inline-flex; padding: 14px 22px; align-items: center; gap: 16px; border-radius: 40px; background: rgba(29,29,39,.75); backdrop-filter: blur(8px); }
.voice-wave { display: flex; height: 24px; align-items: center; gap: 3px; }
.voice-wave i { width: 3px; height: 30%; border-radius: 3px; background: var(--blue); animation: wave 1s ease-in-out infinite; }
.voice-wave i:nth-child(2) { animation-delay: .1s; } .voice-wave i:nth-child(3) { animation-delay: .2s; } .voice-wave i:nth-child(4) { animation-delay: .3s; }
.voice-wave i:nth-child(5) { animation-delay: .4s; } .voice-wave i:nth-child(6) { animation-delay: .5s; } .voice-wave i:nth-child(7) { animation-delay: .6s; }
.voice-text { font-size: 1rem; font-weight: 600; }
.phone-link { display: flex; padding: 12px 16px; align-items: center; gap: 10px; border-radius: 8px; background: rgba(29,29,39,.75); backdrop-filter: blur(8px); }
.phone { width: 14px; height: 24px; border: 2px solid var(--paper); border-radius: 4px; }
.car-screen { width: 34px; height: 22px; border: 2px solid var(--paper); border-radius: 4px; background: rgba(24,75,255,.4); }
.link-dots { display: flex; gap: 4px; }
.link-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: link 1.2s ease-in-out infinite; }
.link-dots i:nth-child(2) { animation-delay: .2s; } .link-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes link { 0%, 100% { opacity: .2; } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes wave { 50% { height: 100%; } }

/* Flyme Sound: ondas y ecualizador */
.sound-overlay { display: flex; height: 90px; align-items: flex-end; }
.sound-ring { position: absolute; top: -180px; left: 50%; width: 120px; height: 120px; margin-left: -60px; border: 2px solid rgba(140,166,255,.7); border-radius: 50%; opacity: 0; }
.tech-panel.is-active .sound-ring { animation: ring-out 2.4s ease-out infinite; }
.sound-ring:nth-child(2) { animation-delay: .8s !important; } .sound-ring:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes ring-out { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(2.4); } }
.sound-overlay .eq { display: flex; width: 100%; height: 70px; align-items: flex-end; gap: 4px; }
.sound-overlay .eq i { flex: 1; height: 20%; border-radius: 2px 2px 0 0; background: linear-gradient(0deg, var(--blue), #8ca6ff); animation: eq 1.2s ease-in-out infinite; }
.sound-overlay .eq i:nth-child(odd) { animation-duration: .9s; } .sound-overlay .eq i:nth-child(3n) { animation-duration: 1.4s; }
.sound-overlay .eq i:nth-child(4n) { animation-delay: .2s; } .sound-overlay .eq i:nth-child(5n) { animation-delay: .35s; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }

/* Geely App: tarjeta tipo celular */
.app-overlay { display: flex; justify-content: flex-end; }
.app-phone { display: grid; width: min(260px, 100%); padding: 16px; gap: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: rgba(29,29,39,.8); backdrop-filter: blur(10px); }
.app-row { display: flex; padding: 10px 12px; align-items: center; gap: 10px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: .82rem; font-weight: 600; }
.tech-panel.is-active .app-row { animation: rise .55s calc(.4s + var(--d)) var(--ease) both; }
.app-row svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #8ca6ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-batt { width: 46px; height: 8px; margin-left: auto; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.2); }
.app-batt i { display: block; width: 30%; height: 100%; background: var(--blue); }
.tech-panel.is-active .app-batt i { animation: app-charge 2.6s ease-in-out .8s infinite; }
@keyframes app-charge { 0% { width: 30%; } 70%, 100% { width: 80%; } }

/* Viñetas */
.tech-list { display: flex; margin: 0; padding: 0; flex-direction: column; justify-content: center; gap: 10px; list-style: none; }
.tech-list button { position: relative; display: block; width: 100%; padding: 20px 22px 22px 46px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: #5e5e68; background: var(--paper); font-size: .95rem; line-height: 1.65; text-align: left; cursor: pointer; transition: color .3s ease, border-color .3s ease, background .3s ease, transform .4s var(--ease); }
.tech-list button::before { position: absolute; top: 30px; left: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); content: ""; transition: background .3s ease, box-shadow .3s ease; }
.tech-list button:hover { border-color: #b9b9c2; transform: translateX(4px); }
.tech-list button[aria-selected="true"] { border-color: var(--blue); color: var(--ink); background: var(--soft); }
.tech-list button[aria-selected="true"]::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(24,75,255,.2); }
.tech-list button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tab-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.tech-list button[aria-selected="true"] .tab-progress { animation: tab-progress var(--tech-interval, 6s) linear both; }
.tech-layout.is-paused .tab-progress { animation-play-state: paused !important; }
@keyframes tab-progress { to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .tech-layout { grid-template-columns: 1fr; }
  .tech-stage { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .tech-stage { aspect-ratio: 4 / 4.2; }
  .tech-list button { padding: 16px 18px 18px 40px; font-size: .88rem; }
  .tech-list button::before { top: 25px; left: 18px; }
  .screen-chip { padding: 10px 12px; }
  .screen-chip strong { font-size: 1.1rem; }
}

/* ---------- 06 DOS RITMOS ---------- */
.rhythm { padding: clamp(80px, 10vw, 130px) 0; color: var(--paper); background: var(--charcoal); }
.rhythm-grid { display: grid; grid-template-columns: .9fr 1.2fr; align-items: center; gap: clamp(36px, 6vw, 80px); }
.rhythm h2 { color: var(--paper); }
.rhythm h2 em { color: var(--paper); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.rhythm-copy > p:not(.eyebrow):not(.kicker) { color: var(--muted-light); font-size: .94rem; }
.compare { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 3.3; user-select: none; touch-action: pan-y; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-before .compare-img { object-position: 40% center; }
.compare-tag { position: absolute; top: 18px; z-index: 2; padding: 7px 12px; border-radius: 3px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tag-left { left: 18px; } .tag-right { right: 18px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; background: var(--paper); transform: translateX(-50%); pointer-events: none; }
.compare-handle > span { position: absolute; top: 50%; left: 50%; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(24,75,255,.3); transform: translate(-50%, -50%); }
.compare-handle svg { width: 24px; height: 24px; fill: none; stroke: var(--paper); stroke-width: 2; }
.compare-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible ~ .compare-handle > span, .compare:focus-within .compare-handle > span { box-shadow: 0 0 0 6px rgba(255,255,255,.6); }

/* ---------- 07 EL LUJO ---------- */
.closing { padding: clamp(80px, 10vw, 130px) 0 0; background: var(--paper); }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 100px); }
.closing-visual { overflow: hidden; border-radius: 8px; }
.closing-visual img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 30% center; transition: transform 1.4s var(--ease); }
.closing-visual:hover img { transform: scale(1.04); }
.closing-copy > p:not(.eyebrow):not(.kicker) { color: var(--muted); font-size: .95rem; }
.closing-quote { max-width: 1040px; margin: clamp(70px, 9vw, 120px) auto 0; padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 60px); border-top: 1px solid var(--line); text-align: center; }
.closing-quote p { margin: 0; color: var(--ink); font-size: clamp(1.5rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; }
.closing-quote em { color: var(--blue); font-style: normal; }

/* ---------- FOOTER ---------- */
.article-footer { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.footer-bg { position: absolute; inset: 0; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: .45; }
.article-footer::before { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.35)); content: ""; }
.footer-content { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: clamp(90px, 12vw, 160px) clamp(20px, 5vw, 60px); text-align: center; }
.footer-content h2 { margin-bottom: 38px; color: var(--paper); font-size: clamp(2.6rem, 6vw, 5.2rem); }
.footer-content h2 em { color: var(--paper); }
.footer-cta { min-width: 220px; min-height: 56px; font-size: 1rem; }
.footer-bottom { position: relative; z-index: 2; display: flex; max-width: 1240px; margin: 0 auto; padding: 20px clamp(20px, 5vw, 60px); justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); font-size: .72rem; }
.footer-bottom a { color: var(--paper); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .range-grid { grid-template-columns: 1fr 1fr; }
  .range-photo { grid-column: 1 / -1; }
  .range-photo img { min-height: 0; aspect-ratio: 16 / 8; }
  .perf-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .tech-tabs { grid-template-columns: 1fr; }
  .tech-tablist { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--line); border-left: 0; scrollbar-width: none; }
  .tech-tablist button { flex: none; padding: 16px 18px; }
  .tech-tablist button[aria-selected="true"] { padding-left: 18px; }
  .tech-tablist button::before { top: auto; right: 0; bottom: -1px; left: 0; width: auto; height: 3px; transform: scaleX(0); }
  .tech-tablist button[aria-selected="true"]::before { transform: scaleX(1); }
}

@media (max-width: 860px) {
  .intro-grid, .perf-grid, .platform, .ambient, .rhythm-grid, .closing-grid, .tech-panel { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; }
  .space-specs { grid-template-columns: repeat(2, 1fr); }
  .space-specs > div:nth-child(2) { border-right: 0; }
  .space-specs > div:nth-child(-n+2) { border-bottom: 1px solid #cfc9c5; }
  .gauge-card { max-width: 440px; width: 100%; justify-self: center; }
  .closing-visual img { aspect-ratio: 16 / 11; }
  .hero-scroll { display: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 59px; --nav-h: 52px; }
  .site-header .header-inner { padding: 11px 16px; }
  .site-header .header-logo { height: 34px; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 720px; }
  .hero-media img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55) 45%, rgba(0,0,0,.9) 100%); }
  .hero-content { padding: 60px 16px 190px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 3.6rem); }
  .hero-summary { font-size: .9rem; }
  .hero-stats { padding: 0 16px 26px; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats strong { font-size: 1.45rem; }
  .hero-stats span { font-size: .6rem; }
  .nav-label { display: none; }
  .story-nav-inner { padding: 0 16px; }
  .story-nav-links a { font-size: .72rem; }
  h2 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .mode-switch { width: 100%; }
  .mode-switch button { padding: 0 10px; font-size: .76rem; }
  .route { margin: 36px 0 28px; padding: 26px 18px; }
  .route-stops li { font-size: .6rem; }
  .range-grid { grid-template-columns: 1fr; }
  .perf-stats { gap: 26px 16px; }
  .perf-stats p { font-size: .74rem; }
  .gauge-card { padding: 24px 16px 26px; }
  .record { grid-template-columns: 1fr; justify-items: start; }
  .record-badge { width: 96px; height: 96px; }
  .record-badge > span { inset: 24px; font-size: 1.1rem; }
  .gallery-head { grid-template-columns: 1fr; row-gap: 16px; }
  .gallery-track { padding: 0 16px 6px; gap: 12px; scroll-padding: 0 16px; }
  .g-card, .g-card.g-wide { flex-basis: 84vw; height: 340px; }
  .hotspot-tip, .hotspot-tip.tip-left { position: absolute; top: auto !important; right: 10px; bottom: 10px; left: 10px !important; width: auto; transform: translateY(8px); }
  .hotspot[aria-expanded="true"] + .hotspot-tip, .hotspot[aria-expanded="true"] + .hotspot-tip.tip-left { transform: none; }
  .carousel-thumbs { gap: 6px; }
  .interior-carousel .round-btn { width: 40px; height: 40px; }
  .space-specs > div { padding: 22px 14px; }
  .space-specs > div > span { font-size: .6rem; }
  .tech-panel figure img { aspect-ratio: 16 / 11; }
  .screens strong { font-size: 1.2rem; }
  .compare { aspect-ratio: 4 / 4.6; }
  .footer-cta { width: 100%; max-width: 340px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .drive-in img { opacity: 1; transform: none; }
}

/* Ajustes: títulos de sección oficiales, sin numeración */
.gallery-head .gallery-controls { grid-column: 1 / -1; }
.record-badge svg { animation-duration: 24s; }
.carousel-caption p { margin-top: 0 !important; }
.story-nav-inner { gap: 0; }
.platform { grid-template-columns: 1fr; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.story-nav-links a { font-size: .72rem; }

/* Footer: solo el botón "Conoce más" */
.article-footer { display: flex; margin-top: clamp(64px, 8vw, 110px); padding: 20px 16px; justify-content: center; background: var(--ink); }
.article-footer::before { content: none; }

/* 04: Un salón con vista al camino · información (estilo lista, sin animaciones) */
.interior-head { margin-bottom: 28px; }
.info-list { display: grid; margin: 0 0 40px; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.info-list li { position: relative; padding: 20px 22px 22px 46px; border: 1px solid #d9d3cf; border-radius: 8px; color: var(--charcoal); background: var(--paper); font-size: .95rem; line-height: 1.65; }
.info-list li::before { position: absolute; top: 30px; left: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(24,75,255,.2); content: ""; }
@media (max-width: 760px) {
  .info-list { grid-template-columns: 1fr; }
  .info-list li { padding: 16px 18px 18px 40px; font-size: .88rem; }
  .info-list li::before { top: 25px; left: 18px; }
}

/* =========================================================
   02 · OPCIÓN B "Ciudad eléctrica, carretera sin límites"
   Fondo claro + mosaico. Para volver a la opción A, quitar
   la clase "range-alt" de <section id="autonomia">.
   ========================================================= */
.range.range-alt { position: relative; overflow: hidden; color: var(--charcoal); background: var(--soft); }
.range.range-alt::before { position: absolute; top: -20%; right: -10%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(24,75,255,.14), transparent); content: ""; pointer-events: none; }
.range.range-alt::after { position: absolute; right: 0; bottom: 38px; left: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 28px, transparent 28px 46px); content: ""; animation: road-move 2.5s linear infinite; pointer-events: none; }
@keyframes road-move { to { background-position: 46px 0; } }
.range.range-alt .wrap { position: relative; z-index: 1; }
.range.range-alt h2 { color: var(--ink); }
.range.range-alt h2 em { color: var(--blue); text-decoration: none; }

.range-alt .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.range-alt .ev-card[data-ev="city"] { grid-column: 1 / span 2; }
.range-alt .ev-card[data-ev="charge"] { grid-column: 3; }
.range-alt .ev-card[data-ev="regen"] { grid-column: 1; grid-row: 2; }
.range-alt .ev-card[data-ev="road"] { grid-column: 2 / span 2; grid-row: 2; }
.range-alt .ev-card { border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 30px rgba(29,29,39,.06); }
.range-alt .ev-card:hover { border-color: var(--blue); box-shadow: 0 18px 40px rgba(24,75,255,.14); }
.range-alt .ev-visual { aspect-ratio: auto; height: 270px; }
.range-alt .regen-visual { background: #1d1d27; }
.range-alt .ev-text { color: var(--muted); }
.range-alt .ev-text strong { color: var(--ink); }
.range-alt .charge-hud { width: min(52%, 170px); }
.range-alt .charge-cable { display: none; }
.range-alt .regen-levels button { width: 32px; height: 30px; font-size: .78rem; }

@media (max-width: 1024px) {
  .range-alt .ev-grid { grid-template-columns: 1fr 1fr; }
  .range-alt .ev-card[data-ev] { grid-column: auto; grid-row: auto; }
  .range-alt .ev-card[data-ev="city"], .range-alt .ev-card[data-ev="road"] { grid-column: 1 / -1; }
  .range-alt .ev-card[data-ev="road"] { order: 1; }
  .range-alt .ev-card[data-ev="charge"], .range-alt .ev-card[data-ev="regen"] { order: 2; }
}
@media (max-width: 600px) {
  .range-alt .ev-grid { grid-template-columns: 1fr; }
  .range-alt .ev-visual { height: auto; aspect-ratio: 16 / 9; }
}

/* =========================================================
   03 · "Potencia con buenos modales" — sección homogénea
   Un solo fondo oscuro; récord y galería con el mismo
   lenguaje de tarjetas que el velocímetro.
   ========================================================= */
.performance { position: relative; padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; color: var(--paper); background: var(--ink); }
.performance .perf-band { padding-bottom: clamp(56px, 6vw, 80px); background: transparent; }
.performance .perf-band::after { background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.35) 100%), linear-gradient(180deg, rgba(0,0,0,0) 55%, var(--ink) 100%); }
.performance .perf-copy > p { font-size: 1rem; }
.performance .gauge-card { background: rgba(29,29,39,.7); }

/* Récord Guinness: tarjeta oscura como el velocímetro */
.performance .record { position: relative; z-index: 1; margin-top: 0; margin-bottom: clamp(56px, 6vw, 80px); padding-top: 30px; padding-bottom: 30px; border: 1px solid rgba(255,255,255,.16); background: var(--charcoal); }
.performance .record p { color: rgba(255,255,255,.88); }
.performance .record strong { color: var(--paper); }
.performance .record-badge text { fill: rgba(255,255,255,.85); }
.record-icon { position: absolute; inset: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(24,75,255,.2); }
.record-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Galería sobre fondo oscuro */
.performance .gallery { position: relative; z-index: 1; padding-bottom: 0; }
.performance .gallery-head { margin-bottom: 20px; }
.performance .round-btn { border-color: rgba(255,255,255,.3); color: var(--paper); background: transparent; }
.performance .round-btn:hover { border-color: var(--blue); background: var(--blue); }
.performance .gallery-progress { background: rgba(255,255,255,.18); }
.performance .g-card { border: 1px solid rgba(255,255,255,.1); }

@media (max-width: 600px) {
  .record-icon { inset: 24px; }
  .record-icon svg { width: 24px; height: 24px; }
}

/* =========================================================
   02 · OPCIÓN C — animaciones sencillas
   Activa con la clase "range-simple" en <section id="autonomia">.
   Quitarla regresa a las escenas animadas (opción B/A).
   ========================================================= */
.evs-grid { display: none; }
.range-simple .ev-grid { display: none; }
.range-simple .evs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.evs-card { display: flex; padding: 28px 26px 30px; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 10px 30px rgba(29,29,39,.06); transition: border-color .3s ease, box-shadow .3s ease; }
.evs-card:hover { border-color: var(--blue); box-shadow: 0 16px 36px rgba(24,75,255,.12); }
.evs-icon { width: 40px; height: 40px; padding: 8px; border-radius: 8px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgba(24,75,255,.08); }
.evs-stat { display: flex; margin: 22px 0 14px; align-items: baseline; gap: 6px; color: var(--ink); font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.evs-stat small { color: var(--blue); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.evs-bar { position: relative; height: 6px; overflow: hidden; border-radius: 6px; background: var(--soft); }
.evs-bar span { position: absolute; top: 0; bottom: 0; left: var(--x, 0); width: var(--w); border-radius: 6px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2,.7,.2,1) .2s; }
.evs-card.is-in .evs-bar span { transform: scaleX(1); }
.evs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.evs-steps span { height: 6px; border-radius: 6px; background: var(--soft); transition: background .4s ease; }
.evs-card.is-in .evs-steps span { background: var(--blue); }
.evs-card.is-in .evs-steps span:nth-child(1) { transition-delay: .3s; }
.evs-card.is-in .evs-steps span:nth-child(2) { transition-delay: .7s; }
.evs-card.is-in .evs-steps span:nth-child(3) { transition-delay: 1.1s; }
.evs-text { margin: 22px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.evs-text strong { color: var(--ink); }
@media (max-width: 1024px) { .range-simple .evs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .range-simple .evs-grid { grid-template-columns: 1fr; } }
.evs-icon + .evs-bar, .evs-icon + .evs-steps { margin-top: 22px; }
