/* =========================================================
   Nuevo T‑Roc · Web concept de Millet Studio — estilos
   ========================================================= */

/* Plus Jakarta Sans (OFL), servida desde la propia web: sin llamadas a Google */
@font-face { font-family: "Plus Jakarta Sans"; src: url(../fonts/plus-jakarta-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(../fonts/plus-jakarta-latin-ext.woff2) format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #070b14;
  --panel: #ecedf0;
  --card: #ffffff;
  --ink: #0d1117;
  --muted: #5d6571;
  --line: rgba(13, 17, 23, .08);
  --vw: #001e50;
  --vw-2: #0040c5;
  --paint: #b4471f;      /* color de carrocería seleccionado (lo cambia JS) */
  --accent: #b4471f;     /* versión legible del color sobre fondo claro */
  --shadow-w: .6;        /* ancho de la sombra del coche según el fotograma */
  --radius-xl: 32px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--vw-2); outline-offset: 3px; }

/* Fondo oscuro con resplandor del color elegido */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(90% 70% at 50% 120%, #0d1a35 0%, transparent 60%), var(--bg); }
.backdrop .glow {
  position: absolute; left: 10vw; top: -30vh; width: 80vw; height: 80vh; border-radius: 50%;
  background: var(--paint); filter: blur(140px); opacity: .42;
  transition: background-color 1s var(--ease);
}

main { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.panel {
  width: 100%; max-width: 1680px; margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden; overflow: clip;
}

/* ---------- Botones genéricos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s, transform .25s var(--ease), border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--vw); color: #fff; }
.btn-dark:hover { background: var(--vw-2); }
.btn-light { background: #fff; color: var(--vw); }
.btn-light:hover { background: #dfe8ff; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .32); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.icon-btn {
  width: 52px; height: 52px; border-radius: 50%; background: #fff;
  display: inline-grid; place-items: center; text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: #f4f5f7; transform: translateY(-1px); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg { width: 22px; height: 22px; }

.eyebrow {
  margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.muted { color: var(--muted); }
.accent { color: var(--accent); transition: color .6s var(--ease); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: calc(100svh - 32px);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  background: radial-gradient(70% 55% at 50% 58%, #f7f7f8 0%, #edeef1 55%, #e4e6ea 100%);
}

.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px 40px 0; position: relative; z-index: 6;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
/* Logo MM de Millet Studio (relleno con degradado, no trazo) */
.logo, .credits-logo { stroke: none; stroke-linecap: butt; flex: none; }
.logo { width: 46px; height: 46px; filter: drop-shadow(0 6px 14px rgba(31, 82, 48, .25)); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.brand-name b { font-weight: 700; color: #2f7a47; }

.pills { display: flex; gap: 12px; }
.pill {
  height: 52px; padding: 0 30px; border-radius: 999px; background: #fff;
  display: inline-flex; align-items: center; text-decoration: none;
  font-size: 17px; font-weight: 500;
  transition: background-color .25s var(--ease), color .25s;
}
.pill:hover { background: #f5f6f8; }
.pill.is-active { background: var(--vw); color: #fff; }

.actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.mobile-menu {
  position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
  display: none; flex-direction: column; padding: 8px;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 14px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.mobile-menu a:hover { background: #f2f3f5; }

/* ---------- Showroom: título, precio, escenario, raíl ---------- */
.showroom {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  padding: 0 48px; min-height: 0;
}

.hero-title, .hero-price { position: relative; z-index: 3; grid-row: 1; padding-top: clamp(20px, 4vh, 48px); pointer-events: none; }
.hero-title { grid-column: 1; }
.hero-price { grid-column: 2; }
.hero-title > *, .hero-price > * { pointer-events: auto; }
.hero-price { text-align: right; }

.eco {
  display: inline-grid; place-items: center; height: 24px; padding: 0 9px; border-radius: 6px;
  background: linear-gradient(90deg, #2c9f48 0 50%, #2f6fd6 50% 100%);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em;
}

h1 {
  margin: 0; font-size: clamp(46px, 5.6vw, 96px); line-height: .98; font-weight: 800; letter-spacing: -.045em;
}
.hero .lead { margin: 14px 0 0; font-size: clamp(15px, 1.25vw, 20px); color: #3e4550; font-weight: 400; }

.price {
  margin: 0; font-size: clamp(42px, 5.2vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.price .cur { color: #9aa0a8; margin-left: .14em; }

/* Escenario: ocupa las filas 1‑2 y queda detrás del título */
.stage {
  grid-column: 1 / -1; grid-row: 1 / 3;
  position: relative; margin: 0 -48px; min-height: 360px;
  --car-max: .62;
}

.car-wrap {
  position: absolute; left: 50%; bottom: 0;
  width: 62%; /* JS lo ajusta a min(--car-max × ancho, alto × 2,07) */
  aspect-ratio: 1440 / 640;
  transform: translateX(-50%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.car {
  position: relative; z-index: 2; width: 100%; height: 100%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.car:active { cursor: grabbing; }
.car:focus-visible { outline: none; }
.car-wrap:has(.car:focus-visible) .floor { border-color: rgba(0, 64, 197, .35); }
.car-ghost { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; opacity: 0; }

.floor {
  position: absolute; left: -14%; right: -14%; bottom: -3%; height: 30%;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 17, 23, .07);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 100%);
  transition: border-color .3s;
}
.shadow {
  position: absolute; left: 50%; bottom: 3.4%; height: 10%;
  width: calc(var(--shadow-w) * 100%);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .16) 62%, transparent);
  filter: blur(7px);
  transition: width .18s linear;
}

/* Flechas de giro */
.rotate { position: absolute; right: 0; bottom: -3%; z-index: 4; display: flex; align-items: center; gap: 6px; }
.rotate-label { margin-right: 4px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.rotate button {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 18px rgba(13, 17, 23, .12);
  transition: transform .2s var(--ease), background-color .2s;
}
.rotate button:hover { background: #f4f5f7; }
.rotate button:active { transform: scale(.92); }
.rotate svg { width: 20px; height: 20px; stroke-width: 1.9; }
.stage[data-view="estudio"] .car { cursor: default; }

.loader {
  position: absolute; left: 50%; top: 55%; z-index: 3; width: 34px; height: 34px; margin: -17px;
  border-radius: 50%; border: 3px solid rgba(13, 17, 23, .12); border-top-color: var(--vw);
  opacity: 0; transition: opacity .3s; animation: spin 0.8s linear infinite;
}
.car-wrap.is-loading .loader { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Versiones vecinas asomando por los lados */
.peek {
  position: absolute; bottom: 9%; z-index: 1;
  width: 25%; aspect-ratio: 1440 / 640;
  transition: transform .5s var(--ease), opacity .5s var(--ease), filter .4s;
  filter: saturate(.92);
}
.peek img { width: 100%; height: 100%; }
.peek-prev { left: -9%; }
.peek-next { right: -9%; }
.peek:hover { filter: saturate(1.05); }
.peek-prev:hover { transform: translateX(14px); }
.peek-next:hover { transform: translateX(-14px); }
.peek-label {
  position: absolute; top: 4%; z-index: 2;
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease);
}
.peek-prev .peek-label { right: 6%; }
.peek-next .peek-label { left: 6%; }
.peek:hover .peek-label, .peek:focus-visible .peek-label { opacity: 1; transform: none; }

/* Vista interior */
/* La foto ocupa todo el escenario y se funde por arriba para dejar limpio el título. */
.interior-view {
  position: absolute; top: 0; bottom: 2%; left: 1.5%; right: 1.5%; z-index: 2;
  opacity: 0; pointer-events: none; transform: translateY(16px) scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.int-figure {
  position: relative; margin: 0; width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, .55) 38%, #000 56%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, rgba(0, 0, 0, .55) 38%, #000 56%);
}
.int-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: opacity .35s var(--ease); }
.showroom:has(.stage[data-mode="interior"]) :is(.hero-title .lead, .hero-title .eyebrow, .hero-price .lead) { opacity: 0; }
.hero-title .lead, .hero-title .eyebrow, .hero-price .lead { transition: opacity .4s var(--ease); }
.int-caption {
  position: absolute; left: 18px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(13, 17, 23, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 13px; font-weight: 600;
}
.int-thumbs { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.int-thumbs button {
  width: 84px; height: 54px; border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .5); opacity: .75;
  transition: opacity .2s, border-color .2s, transform .2s var(--ease);
}
.int-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.int-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.int-thumbs button[aria-pressed="true"] { opacity: 1; border-color: #fff; }

.stage[data-mode="interior"] .car-wrap,
.stage[data-mode="interior"] .peek { opacity: 0; pointer-events: none; }
.stage[data-mode="interior"] .car-wrap { transform: translateX(-50%) translateY(24px) scale(.96); }

/* Giro con paisaje: ventana redondeada con la escena original; las versiones vecinas asoman por detrás. */
.stage[data-view="paisaje"] .car-wrap {
  top: clamp(26px, 4.5vh, 48px); bottom: 3%; z-index: 2;   /* aire bajo el menú; ancho calculado en JS: ~1,9:1 */
  aspect-ratio: auto;
  border-radius: 28px; overflow: hidden; background: #c9ccd2;
  box-shadow: 0 40px 70px -40px rgba(13, 17, 23, .55);
}
.stage[data-view="paisaje"] :is(.car, .car-ghost) { object-fit: cover; object-position: 50% 58%; }
.stage[data-view="paisaje"] :is(.floor, .shadow) { display: none; }
/* Funde las esquinas superiores con el panel para que título y precio se lean. */
.stage[data-view="paisaje"] .car-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(52% 72% at 0% 0%, rgba(236, 237, 240, .97) 34%, rgba(236, 237, 240, 0) 100%),
    radial-gradient(40% 60% at 100% 0%, rgba(236, 237, 240, .97) 32%, rgba(236, 237, 240, 0) 100%);
}
.showroom:has(.stage[data-view="paisaje"]) :is(.hero-title, .hero-price) .lead,
.showroom:has(.stage[data-view="paisaje"]) .hero-title .eyebrow { text-shadow: 0 0 14px rgba(236, 237, 240, .95), 0 0 3px rgba(236, 237, 240, .9); }
.stage[data-view="paisaje"] .rotate { right: 14px; bottom: 12px; }
.stage[data-view="paisaje"] .rotate-label { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.stage[data-view="paisaje"] .rotate button { background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stage[data-view="paisaje"] .peek { z-index: 1; bottom: 12%; }
.stage[data-mode="interior"][data-view="paisaje"] .car-wrap { transform: translateX(-50%) translateY(24px) scale(.98); }

.view-switch {
  position: absolute; left: 0; bottom: -2%; z-index: 4; display: flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(13, 17, 23, .1);
}
.view-switch button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #4b525d; transition: background-color .25s, color .25s; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stage[data-view="paisaje"] .view-switch { left: 16px; bottom: 14px; }
.stage[data-mode="interior"] .interior-view { opacity: 1; pointer-events: auto; transform: none; }

/* Raíl inferior: acabado · controles · motor */
.rail {
  grid-column: 1 / -1; grid-row: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px 0 16px; position: relative; z-index: 4;
}
.trims { justify-self: start; display: flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.trims button {
  height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #3e4550;
  transition: background-color .25s var(--ease), color .25s;
}
.trims button:hover { color: var(--ink); }
.trims button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.engines { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.engines button {
  height: 40px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .7); border: 1.5px solid transparent; color: #3e4550;
  transition: border-color .2s, background-color .2s, color .2s;
}
.engines button:hover { background: #fff; color: var(--ink); }
.engines button[aria-pressed="true"] { background: #fff; border-color: var(--ink); color: var(--ink); }
.engines .leaf { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; color: #2c9f48; stroke-width: 2; }

.controls {
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 10px 30px rgba(13, 17, 23, .08);
}
.arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.arrow svg { width: 22px; height: 22px; stroke-width: 1.8; }
.arrow:hover { background: #f1f2f4; }
.arrow[data-dir="-1"]:active { transform: translateX(-3px); }
.arrow[data-dir="1"]:active { transform: translateX(3px); }
.mode { display: flex; background: #f1f2f4; border-radius: 999px; padding: 3px; }
.mode button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #4b525d; transition: background-color .25s, color .25s; }
.mode button[aria-pressed="true"] { background: var(--vw); color: #fff; }

/* ---------- Dock de tarjetas ---------- */
.dock {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 3fr) minmax(0, 1.6fr); gap: 6px; padding: 6px;
  height: clamp(232px, 30vh, 296px);
}
.card, .tile { background: var(--card); border-radius: var(--radius); }

.card-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 8px; padding: 26px 22px 26px 28px; min-height: 0; }
.feature-text { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 0; }
.feature-text .muted { margin: 0; font-size: 15px; line-height: 1.4; }
.big { margin: 0; font-size: clamp(34px, 3vw, 50px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rim {
  align-self: center; justify-self: center; width: 100%; height: 100%; min-height: 0; object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .2));
  transition: transform 1.6s var(--ease);
}
.card-feature:hover .rim { transform: rotate(-120deg); }

.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: 6px; min-height: 0; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-align: center; padding: 12px 8px;
}
.tile svg { width: 26px; height: 26px; margin-bottom: 6px; color: var(--ink); }
.tile strong { font-size: clamp(17px, 1.45vw, 22px); font-weight: 700; letter-spacing: -.02em; }
.tile span { font-size: 13px; color: var(--muted); }
.tile.is-updating strong { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card-colors {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) auto; grid-template-rows: minmax(0, 1fr); gap: 12px; align-items: stretch;
  padding: 24px 20px 24px 28px; min-height: 0; overflow: hidden;
}
.colors-text { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.colors-title { margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.colors-title strong { color: var(--ink); font-weight: 600; }
.colors-name { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.card-colors .big { font-size: clamp(28px, 2.3vw, 42px); white-space: nowrap; }
.card-colors[data-mode="interior"] .big { white-space: normal; line-height: 1.05; }
.colors-thumb { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 62%; transition: opacity .3s var(--ease); }
.card-colors[data-mode="interior"] .colors-thumb { border-radius: 14px; object-position: 50% 50%; }

.dots { display: grid; grid-template-columns: repeat(2, 30px); grid-auto-rows: 30px; gap: 8px; align-content: center; }
.dots button {
  width: 30px; height: 30px; border-radius: 50%; position: relative;
  background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.dots button:hover { transform: scale(1.1); }
.card-colors[data-mode="interior"] .dots { grid-template-columns: repeat(2, 38px); grid-auto-rows: 38px; }
.card-colors[data-mode="interior"] .dots button { width: 38px; height: 38px; }
.dots button[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.dots button[aria-checked="true"]::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 9px; height: 5px;
  border-left: 2px solid var(--check, #fff); border-bottom: 2px solid var(--check, #fff);
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: clamp(56px, 7vw, 112px) clamp(20px, 5vw, 80px); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .muted { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; margin: 18px 0 0; }
h2 { margin: 0; font-size: clamp(34px, 4.4vw, 70px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; }
h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Bento de diseño */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(84px, 8.6vw, 138px); gap: 10px; }
.b { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #d9dce1; }
.b img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.b:hover img { transform: scale(1.05); }
.b figcaption {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  padding: 10px 14px; border-radius: 14px; font-size: 13px; color: var(--muted);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.b figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.b-a { grid-column: 1 / 8; grid-row: span 4; }
.b-b { grid-column: 8 / 13; grid-row: span 2; }
.b-c { grid-column: 8 / 10; grid-row: span 2; }
.b-d { grid-column: 10 / 13; grid-row: span 2; }
.b-e { grid-column: 1 / 6; grid-row: span 3; }
.b-f { grid-column: 6 / 13; grid-row: span 3; }

/* Día / noche */
.section-dark { background: #0b1020; color: #fff; }
.section-dark .eyebrow, .section-dark .muted { color: rgba(255, 255, 255, .64); }
.accent-light { color: #8fb8ff; }

.compare {
  position: relative; aspect-ratio: 16 / 7.6; border-radius: 28px; overflow: hidden;
  background: #000; user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-day { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, .9); box-shadow: 0 0 18px rgba(255, 255, 255, .6); pointer-events: none;
}
.compare-handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: #fff; color: var(--vw); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: none; transition: transform .2s var(--ease);
}
.compare-handle svg { width: 24px; height: 24px; stroke-width: 2; }
.compare:has(.compare-range:focus-visible) .compare-handle { box-shadow: 0 0 0 4px var(--vw-2), 0 10px 30px rgba(0, 0, 0, .35); }
.compare:hover .compare-handle { transform: scale(1.06); }
.compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-tag {
  position: absolute; top: 18px; z-index: 2; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tag-day { left: 18px; background: rgba(255, 255, 255, .85); color: var(--ink); }
.tag-night { right: 18px; background: rgba(0, 0, 0, .45); color: #fff; }

/* Versiones */
.versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trim-card { background: #fff; border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.trim-card header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.trim-card h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.04em; }
.trim-card .from { margin: 0; text-align: right; font-size: 13px; color: var(--muted); }
.trim-card .from strong { display: block; color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.trim-card > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.engine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.engine-row {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: #f4f5f7; text-align: left;
  border: 1.5px solid transparent; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.engine-row:hover { background: #eceef2; transform: translateX(2px); }
.engine-row[aria-pressed="true"] { background: #fff; border-color: var(--ink); }
.engine-row .name { font-weight: 700; font-size: 15px; }
.engine-row .meta { grid-column: 1; font-size: 13px; color: var(--muted); }
.engine-row .eur { grid-row: 1 / 3; grid-column: 2; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.trim-card .ext { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--vw-2); text-decoration: none; }
.trim-card .ext:hover { text-decoration: underline; }

/* Tecnología */
.tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 10px; }
.tech-hero { display: flex; flex-direction: column; background: #0b1020; color: #fff; border-radius: 26px; overflow: hidden; }
.tech-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tech-hero > div { padding: 26px 28px 30px; }
.tech-hero .eyebrow, .tech-hero .muted { color: rgba(255, 255, 255, .66); }
.tech-hero h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; margin-bottom: 10px; }
.tech-hero .muted { margin: 0; line-height: 1.55; }
.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tech-grid li { background: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.tech-grid .ico { width: 46px; height: 46px; border-radius: 14px; background: #f1f2f5; display: grid; place-items: center; margin-bottom: 6px; color: var(--vw); }
.tech-grid .ico svg { width: 24px; height: 24px; }
.tech-grid p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Contacto · Millet Studio */
.section-studio { background: radial-gradient(80% 120% at 0% 0%, #3a8752 0%, #1f5230 55%, #15391f 100%); color: #fff; }
.section-studio .eyebrow, .section-studio .muted { color: rgba(255, 255, 255, .76); }
.section-studio .btn-light { color: #1f5230; }
.section-studio .btn-light:hover { background: #e3f1e7; }
.eyebrow-logo { width: 26px; height: 26px; stroke: none; }
.studio-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.studio-cta h2 { max-width: 14ch; }
.studio-cta .muted { margin: 20px 0 0; max-width: 560px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; }
.studio-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts { margin: 0; padding: 10px 24px; border-radius: 24px; background: rgba(255, 255, 255, .08); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: rgba(255, 255, 255, .72); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.footer { max-width: 1680px; margin: 0 auto; padding: 8px 40px 48px; color: rgba(255, 255, 255, .5); font-size: 12.5px; line-height: 1.6; }
.footer p { margin: 0 0 6px; }
.credits { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.credits-logo { width: 34px; height: 34px; }
.credits p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); max-width: 900px; }
.credits strong, .credits a { color: #fff; }
.credits a { text-underline-offset: 3px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .pill { padding: 0 22px; font-size: 16px; }
}

@media (max-width: 1400px) {
  .rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .engines { justify-content: center; }
  .controls { order: -1; flex-basis: 100%; justify-content: center; background: none; box-shadow: none; padding: 0; }
  .controls .arrow, .controls .mode { background: #fff; box-shadow: 0 10px 30px rgba(13, 17, 23, .08); }
  .controls .mode { padding: 4px; }
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; padding: 18px 20px 0; }
  .pills { display: none; }
  .menu-btn { display: inline-grid; }
  .logo { width: 44px; height: 44px; }
  .icon-btn { width: 46px; height: 46px; }
  .actions .btn { height: 46px; padding: 0 20px; font-size: 15px; }

  .dock { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .specs { grid-column: 1 / -1; grid-row: 1; }
  .tile { min-height: 112px; }
  .card-feature, .card-colors { min-height: 230px; }

  .bento { grid-auto-rows: 120px; }
  .versions { grid-template-columns: minmax(0, 1fr); }
  .tech { grid-template-columns: minmax(0, 1fr); }
  .tech-hero { flex-direction: row; }
  .tech-hero img { width: 45%; aspect-ratio: auto; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-cta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  main { padding: 8px; gap: 8px; }
  .panel { border-radius: 24px; }
  .hero { min-height: auto; }
  .actions .btn, .actions .icon-btn:not(.menu-btn) { display: none; }

  .showroom { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; padding: 0 16px; }
  .hero-title { padding-top: 22px; }
  .hero-price { grid-row: 2; grid-column: 1; text-align: left; padding-top: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .hero-price .lead { margin: 0; font-size: 13px; }
  .stage { grid-row: 3; margin: 0 -16px; min-height: 0; height: clamp(210px, 56vw, 420px); }
  .stage { --car-max: 1.08; }
  .peek { width: 32%; bottom: 16%; opacity: .55; }
  .peek-prev { left: -20%; }
  .peek-next { right: -20%; }
  .rotate-label { display: none; }
  .rotate { bottom: -6%; }
  /* En estudio el coche desborda un 4 % por cada lado: los controles van hacia dentro. */
  .stage[data-view="estudio"] .rotate { right: 6%; }
  .stage[data-view="estudio"] .view-switch { left: 6%; bottom: -6%; }
  .rotate button { width: 36px; height: 36px; }
  .interior-view { top: 4%; left: 0; right: 0; }
  .stage[data-view="paisaje"] .car-wrap { border-radius: 20px; top: 0; }
  .stage[data-view="paisaje"] .car-wrap::after { display: none; }
  .stage[data-view="paisaje"] .rotate { right: 10px; bottom: 10px; }
  .stage[data-view="paisaje"] .view-switch { left: 10px; bottom: 10px; }
  .view-switch button { height: 28px; padding: 0 12px; font-size: 12px; }
  .int-figure { border-radius: 18px; -webkit-mask-image: none; mask-image: none; }
  .int-caption { top: 10px; bottom: auto; left: 10px; font-size: 12px; }
  .int-thumbs button { width: 64px; height: 42px; }
  .rail { grid-row: 4; padding-top: 22px; }
  .trims, .engines { max-width: 100%; min-width: 0; }
  .engines { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 2px; }
  .engines::-webkit-scrollbar { display: none; }
  .engines button { flex: 0 0 auto; }

  .dock { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .tile { min-height: 104px; padding: 10px 4px; }
  .tile span { font-size: 12px; }
  .card-feature { grid-template-columns: 1.2fr 1fr; min-height: 200px; padding: 22px; }
  .card-colors { grid-template-columns: minmax(0, 1fr) 96px auto; min-height: 190px; padding: 20px; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .b-a, .b-b, .b-e, .b-f { grid-column: 1 / -1; }
  .b-a { grid-row: span 2; }
  .b-b, .b-e, .b-f { grid-row: span 2; }
  .b-c, .b-d { grid-column: auto; grid-row: span 1; }
  .b-c figcaption, .b-d figcaption { font-size: 12px; padding: 8px 10px; }
  .compare { aspect-ratio: 4 / 3.4; border-radius: 20px; }
  .tech-hero { flex-direction: column; }
  .tech-hero img { width: 100%; aspect-ratio: 16 / 10; }
  .tech-grid { grid-template-columns: 1fr; }
  .trim-card { padding: 22px; }
  .studio-buttons .btn { flex: 1 1 100%; }
  .footer { padding: 8px 18px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
