/* Werner Bernheim — layout basado en volkswagen.de, contenido Volkswagen Uruguay.
   Fuentes: VW Head / VW Text son propietarias. Si Volkswagen Uruguay las provee,
   agregarlas con @font-face y quedan primeras en la pila. */
:root {
  --navy: #001e50;        /* azul VW */
  --ink: #1b2236;         /* títulos (DE) */
  --ink-2: #293043;       /* botón primario (DE) */
  --text: #3c4352;
  --muted: #6a7180;
  --bg: #f5f4f1;          /* fondo cálido (DE) */
  --card: #ffffff;
  --line: #dfe1e5;
  --accent: #0040c5;
  --radius: 16px;
  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --font-head: "VW Head", "vw-head", "Inter", system-ui, sans-serif;
  --font-text: "VW Text", "vw-text", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 32px; border-radius: 100px;
  font: 600 15px/1 var(--font-text); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--ink-2); color: #fff; }
.btn--dark:hover { background: var(--navy); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8ebf0; }
.btn--outline { border-color: var(--ink-2); color: var(--ink-2); }
.btn--outline:hover { background: var(--ink-2); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.link {
  display: inline-block; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.link:hover { color: var(--accent); }
.link--light { color: #fff; }
.link--light:hover { color: #cfe0ff; }

/* ---------- Header (transparente sobre el stage, blanco al scrollear) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50; color: #fff;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0));
  transition: background .25s, color .25s, box-shadow .25s;
}
.topbar.is-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.topbar__inner {
  max-width: 1440px; width: 100%; margin: 0 auto; height: 72px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.vw-logo { width: 36px; height: 36px; }
.brand__name { font: 700 15px/1.1 var(--font-head); letter-spacing: .02em; white-space: nowrap; }
.mainnav { display: flex; align-items: center; gap: 22px; }
.mainnav a, .mainnav button {
  font: 600 15px/1 var(--font-text); color: inherit; text-decoration: none;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.mainnav a:hover, .mainnav button:hover { text-decoration: underline; text-underline-offset: 6px; }
.topbar__right { margin-left: auto; }
.topbar__dealer { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(0,10,30,.5); }
.drawer[hidden] { display: none; }
.drawer__panel {
  background: #fff; max-height: 100vh; overflow: auto;
  padding: 72px var(--gutter) 48px; position: relative;
  animation: drop .25s ease-out;
}
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.drawer__close { position: absolute; top: 22px; right: var(--gutter); background: none; border: 0; cursor: pointer; color: var(--ink); }
.drawer__cols { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.drawer h3 { font-size: 20px; margin-bottom: 16px; }
.drawer a { display: block; padding: 7px 0; text-decoration: none; color: var(--text); }
.drawer a:hover { color: var(--accent); }

/* ---------- Stage slider ---------- */
.stage { position: relative; background: #000; overflow: hidden; }
.stage__track { position: relative; aspect-ratio: 16 / 9; max-height: 100vh; width: 100%; }
.stage__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.stage__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.stage__slide img, .stage__slide picture { width: 100%; height: 100%; object-fit: cover; }
.stage__cta { position: absolute; left: var(--gutter); bottom: calc(64px + clamp(20px, 5%, 64px)); }
.stage__controls {
  position: absolute; right: var(--gutter); bottom: calc(64px + clamp(20px, 5%, 64px));
  display: flex; align-items: center; gap: 12px;
}
.stage__pause {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8);
  background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.stage__pause .i-play { display: none; }
.stage.is-paused .i-play { display: block; }
.stage.is-paused .i-pause { display: none; }
.stage__dots { display: flex; gap: 10px; padding: 14px 16px; border-radius: 100px; background: rgba(0,0,0,.35); }
.stage__dot { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s, background .3s; }
.stage__dot[aria-selected="true"] { width: 36px; background: #fff; }

/* ---------- Quick cards (se superponen al stage) ---------- */
.quick { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick__card { background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 6px 24px rgba(0,20,60,.08); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.quick__card h2 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.quick__card p { margin: 4px 0 10px; }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; text-align: center; line-height: 1.2; }
.section-lead { text-align: center; max-width: 640px; margin: 16px auto 0; font-size: 18px; }

/* ---------- Models carousel ---------- */
.models { padding: 112px 0 32px; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 32px 0 8px; }
.chip {
  height: 40px; padding: 0 20px; border-radius: 100px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font: 600 14px/1 var(--font-text); cursor: pointer;
}
.chip[aria-selected="true"] { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.models__viewport { contain: paint; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 24px 0 8px; }
.models__viewport::-webkit-scrollbar { display: none; }
.models__track {
  display: flex; gap: 20px; width: max-content;
  padding: 0 max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
}
.models { overflow-x: clip; }
.mcard {
  scroll-snap-align: start; width: clamp(260px, 26vw, 320px);
  background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.mcard:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,20,60,.12); }
.mcard__img { background: linear-gradient(#eef0f3, #fff); aspect-ratio: 1 / 1; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mcard__body { padding: 4px 24px 24px; }
.mcard__type { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mcard h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* el nombre ya viene en la imagen */
.mcard__price { font-size: 16px; color: var(--text); }
.mcard__price strong { color: var(--ink); }
.mcard__actions { display: flex; gap: 16px; margin-top: 16px; }
.models__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.models__count { color: var(--muted); font-size: 14px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: transparent; color: var(--ink-2); cursor: pointer; margin-left: 8px; display: inline-grid; place-items: center; }
.round:hover { background: var(--ink-2); color: #fff; }
.round:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink-2); }

/* ---------- Editorial ---------- */
.editorial { padding: 112px var(--gutter) 0; }
.editorial__row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: 56px; }
.editorial--rev .editorial__row { grid-template-columns: 7fr 5fr; margin-top: 0; }
.editorial--rev .editorial__text { order: 2; }
.editorial__text h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 300; line-height: 1.2; }
.editorial__text h3 strong { font-weight: 700; }
.editorial__text p { font-size: 17px; margin: 20px 0 0; }
.editorial__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }

/* ---------- Power teaser (imagen + panel navy) ---------- */
.power { padding: 112px var(--gutter) 0; }
.power__box { position: relative; display: grid; grid-template-columns: 7fr 5fr; margin-top: 56px; align-items: center; }
.power__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; position: relative; z-index: 1; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.power__media img { width: 100%; height: 100%; object-fit: cover; }
.power__panel {
  background: var(--ink); color: #dfe4ee; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 56px 48px 56px 80px; margin-left: -40px; min-height: 85%;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.power__panel h3 { color: #fff; font-size: 26px; font-weight: 700; line-height: 1.25; }
.power__panel p { margin: 0 0 8px; }

/* ---------- Teasers ---------- */
.teasers { padding: 112px var(--gutter) 120px; }
.teasers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.teaser { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.teaser__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 3; margin-bottom: 14px; }
.teaser__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.teaser:hover .teaser__img img { transform: scale(1.04); }
.teaser h3 { font-size: 24px; line-height: 1.25; }
.teaser p { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 72px 0 120px; font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer h3 { font-size: 16px; margin-bottom: 16px; }
.footer__cols a { display: block; text-decoration: none; padding: 5px 0; color: var(--text); }
.footer__cols a:hover { text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0; margin-top: 48px; }
.footer__legal a { text-decoration: none; padding: 0 14px; border-left: 1px solid var(--line); }
.footer__legal a:first-child { padding-left: 0; border-left: 0; }
.footer__copy { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); max-width: 280px; }
.footer__disclaimer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__disclaimer h4 { font-size: 15px; margin-bottom: 8px; }

/* ---------- Sticky bar (mobile) ---------- */
.stickybar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mainnav a { display: none; }
  .quick, .teasers__grid { grid-template-columns: 1fr; }
  .quick { margin-top: -32px; }
  .editorial__row, .editorial--rev .editorial__row { grid-template-columns: 1fr; }
  .editorial--rev .editorial__text { order: 0; }
  .power__box { grid-template-columns: 1fr; }
  .power__panel { margin: -32px 16px 0; border-radius: var(--radius); padding: 64px 28px 36px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .drawer__cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .brand__name { font-size: 13px; }
  .topbar__dealer span, .topbar__dealer { font-size: 0; }
  .stage__track { aspect-ratio: 1 / 1; }
  .stage__slide img { object-position: 30% center; }
  .stage__cta { bottom: 20px; }
  .stage__cta .btn { height: 40px; padding: 0 22px; }
  .stage__controls { bottom: 20px; }
  .stage__slide img { object-fit: contain; background: #000; }
  .stage__dots { padding: 12px; }
  .quick { margin-top: 24px; }
  .models, .editorial, .power, .teasers { padding-top: 72px; }
  .editorial__row, .power__box, .teasers__grid { margin-top: 32px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .stickybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.08); padding: 10px 12px; gap: 8px;
  }
  .stickybar a { flex: 1; text-align: center; font: 600 13px/40px var(--font-text); text-decoration: none; color: var(--ink); border-radius: 100px; }
  .stickybar__primary { background: var(--ink-2); color: #fff !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
