/* ==========================================================================
   Busco Tu Coche — identidad
   Idea: el nombre es una frase («Busco ▭ tu coche») y el hueco es el coche.
   Tipos: Imbue (titulares, mayúsculas estrechas) + Albert Sans (texto).
   Color: tres piedras (asfalto, hormigón, tiza), tinta carbón y verde carreras.
   ========================================================================== */

@font-face {
  font-family: "Imbue";
  src: url("../fonts/imbue.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --field: #cdc3b6;
  --ink: #2b2a29;
  --muted: #4a4743;
  --accent: #4f5e48;
  --accent-strong: #3d4a37;
  --on-dark: #f2f2f0;
  --on-dark-muted: #c9c4bd;
  --wa: #1f7a4a;

  --display: "Imbue", "Times New Roman", serif;
  --text: "Albert Sans", system-ui, sans-serif;
  --step-small: clamp(1rem, 0.97rem + 0.1vw, 1.0625rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  --step-display: clamp(4rem, 1rem + 11vw, 11.5rem);

  --margin: clamp(16px, 2.2vw, 28px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --gap-section: clamp(96px, 9vw, 168px);
  --radius: 14px;
  --header-h: 64px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-press: 120ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--margin); top: -80px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; padding: 0 var(--margin); margin: 0 auto; max-width: 1600px; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: -.01em; line-height: .9; margin: 0; text-wrap: balance;
}
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 var(--step-body)/1 var(--text); text-decoration: none; text-align: center;
  background: var(--accent); color: #fff;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.link { font-weight: 500; text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .btn-ink:hover { background: #000; }
  .btn-light:hover { background: #fff; }
  .btn-wa:hover { background: #17633b; }
  .link:hover { text-decoration-thickness: .14em; }
}

/* ---------- Marca: BUSCO ▭ TU COCHE ---------- */
.mark {
  display: inline-flex; align-items: center; gap: .3em; text-decoration: none; color: var(--ink);
  font: 500 var(--step-lead)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
}
.mark i { display: block; width: 1.5em; height: .64em; border-radius: .2em; background: var(--accent); }
.footer .mark { color: #fff; }
.footer .mark i { background: #fff; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.nav a { font-size: var(--step-small); font-weight: 500; padding: 8px 0; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; } }
.nav .btn { min-height: 44px; padding: 0 1.2em; }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; background: var(--ink); color: var(--on-dark); font: 500 var(--step-small)/1 var(--text); cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 8px var(--margin) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s var(--ease-out); }
  .nav a { font: 500 clamp(2.25rem, 10vw, 3rem)/1 var(--display); text-transform: uppercase; padding: 10px 0; }
  .nav .btn { margin-top: 24px; font: 500 var(--step-body)/1 var(--text); text-transform: none; min-height: 56px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- La frase (portada y cabeceras) ---------- */
.sentence {
  display: flex; align-items: center; gap: .14em; width: 100%;
  font: 500 var(--step-display)/.86 var(--display); text-transform: uppercase; letter-spacing: -.015em; margin: 0;
}
.sentence .w { flex: none; }
.sentence .slot { flex: 1 1 auto; height: .72em; min-width: 1.4em; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
.slot img:not(.is-on) { opacity: 0; }

.hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: 4vh 0 7vh; }
.hero-foot { row-gap: 28px; align-items: end; margin-top: clamp(36px, 7vh, 80px); }
.hero-foot .lead { grid-column: 1 / span 5; margin: 0; }
.finder { grid-column: 7 / span 6; }
.finder label { display: block; font-weight: 500; margin-bottom: 10px; }
.finder-row { display: flex; gap: 10px; }
.finder input {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px;
  background: #faf9f8; color: var(--ink); font: 400 var(--step-body)/1 var(--text);
}
.finder input::placeholder { color: var(--muted); }
.finder input:focus { outline: none; box-shadow: 0 0 0 4px rgba(79, 94, 72, .35); }
.finder .btn { min-height: 56px; }
.finder-out { min-height: 1.6em; margin: 12px 0 0; color: var(--muted); }
.finder-out a { color: var(--ink); }

@media (max-width: 760px) {
  .sentence { flex-wrap: wrap; font-size: 21vw; gap: 0; }
  .sentence .w { width: 100%; }
  .sentence .slot { flex: 0 0 100%; height: auto; aspect-ratio: 2 / 1; margin: .1em 0 .12em; }
  .hero-foot .lead, .finder { grid-column: 1 / -1; }
  .finder-row { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .shutter { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-out), opacity .6s ease; }
  .js .shutter.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js .shutter.is-in img { transform: none; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--gap-section) 0; }
.surface { background: var(--surface); }
.head { row-gap: 20px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.head h2 { grid-column: 1 / span 7; }
.head p { grid-column: 8 / span 5; margin: 0; }
@media (max-width: 760px) { .head h2, .head p { grid-column: 1 / -1; } }

/* ---------- Los más buscados: índice con vista previa ---------- */
.index-list { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; }
.index-list li + li { margin-top: clamp(10px, 1.4vw, 20px); }
.index-row { display: grid; grid-template-columns: 1fr; gap: 6px; text-decoration: none; padding: 4px 0; }
.index-row .name { font: 500 var(--step-head)/.92 var(--display); text-transform: uppercase; letter-spacing: -.01em; transition: color var(--t-hover) ease; }
.index-row .meta { color: var(--muted); font-size: var(--step-small); }
.index-row .thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .index-list:hover .index-row .name { color: var(--muted); }
  .index-list .index-row:hover .name { color: var(--ink); }
}
.index-preview { grid-column: 8 / span 5; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; margin: 0; }
.index-preview .frame { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--surface); }
.index-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.index-preview img:not(.is-on) { opacity: 0; }
.index-preview figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.index-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) {
  .index-list { grid-column: 1 / -1; }
  .index-preview { display: none; }
  .index-row { grid-template-columns: 88px 1fr; align-items: center; column-gap: 16px; }
  .index-row .thumb { display: block; grid-row: span 2; width: 88px; height: 88px; object-fit: cover; }
  .index-row .meta { text-align: left; }
  .index-row .name { font-size: clamp(1.75rem, 8vw, 2.5rem); align-self: end; }
}

/* ---------- Lo revisamos: un encuadre, tres distancias ---------- */
.zoom { position: relative; height: 300vh; }
.zoom-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: grid; place-items: center; overflow: hidden; }
.zoom-inner { display: grid; justify-items: center; position: relative; width: 100%; }
.zoom-h { font: 500 var(--step-head)/.9 var(--display); text-transform: uppercase; text-align: center; margin: 0; }
.zoom-h .a { display: block; }
.zoom-frame { width: min(28vw, 40svh); aspect-ratio: 4 / 5; overflow: hidden; position: relative; margin: .2em 0 0; background: var(--surface); }
.zoom-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), transform-origin .8s var(--ease-out); }
.zoom-b { display: block; position: relative; z-index: 2; margin-top: -.3em; font: 500 var(--step-head)/.9 var(--display); text-transform: uppercase; text-align: center; transition: opacity .6s ease, transform .6s var(--ease-out); }
.zoom-cap { position: absolute; left: calc(50% + min(14vw, 20svh) + 32px); top: 34%; width: 28ch; margin: 0; transition: opacity .6s ease, transform .6s var(--ease-out); }
.js .zoom[data-stage="0"] .zoom-b, .js .zoom[data-stage="0"] .zoom-cap, .js .zoom[data-stage="1"] .zoom-cap { opacity: 0; transform: translateY(16px); }
.zoom[data-stage="1"] .zoom-frame img { transform: scale(1.8); transform-origin: var(--o1, 50% 50%); }
.zoom[data-stage="2"] .zoom-frame img { transform: scale(3.2); transform-origin: var(--o2, 50% 50%); }
.zoom-mark { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
@media (max-width: 860px) {
  .zoom-frame { width: min(64vw, 38svh); }
  .zoom-h, .zoom-b { font-size: 13vw; }
  .zoom-cap { position: static; width: auto; max-width: 34ch; text-align: center; margin-top: 16px; padding: 0 var(--margin); }
}
@media (prefers-reduced-motion: reduce) {
  .zoom { height: auto; }
  .zoom-stage { position: static; height: auto; padding: var(--gap-section) 0; }
}
html:not(.js) .zoom { height: auto; }
html:not(.js) .zoom-stage { position: static; height: auto; padding: var(--gap-section) 0; }

/* ---------- Así lo traemos: un verbo cada vez ---------- */
.verbs { position: relative; }
.verb { position: relative; display: flow-root; height: 100svh; overflow: clip; color: #fff; background: var(--ink); }
.verb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb::before { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 18, .45); z-index: 1; }
.verb-word { position: sticky; z-index: 2; text-align: center; padding: 0 var(--margin);
  font: 500 clamp(4rem, 9vw, 9.5rem)/.9 var(--display);
  top: calc(50svh - .45em); margin-top: calc(50svh - .45em); }
.verb-word h3 { font-size: 1em; line-height: .9; }
.verb-text { position: absolute; left: var(--margin); top: calc(var(--header-h) + 16px); z-index: 2; max-width: 46ch; margin: 0; padding: 16px 20px; background: rgba(20, 19, 18, .78); border-radius: var(--radius); }
.verb-text h2 { font-size: var(--step-lead); margin-bottom: 8px; }
.verb-text p { margin: 0; }
@media (max-width: 760px) {
  .verb-word { font-size: 21vw; }
  .verb-text { right: var(--margin); max-width: none; font-size: 1rem; }
}

/* ---------- Campos de color con una afirmación ---------- */
.fieldx { min-height: 72svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); grid-template-rows: auto 1fr auto; padding: clamp(28px, 4vw, 56px) var(--margin); }
.fieldx p { grid-column: 8 / span 4; grid-row: 1; margin: 0; max-width: 32ch; }
.fieldx h2, .fieldx h3 { grid-column: 1 / span 9; grid-row: 3; font: 500 clamp(3.5rem, 9vw, 9.5rem)/.88 var(--display); }
.fieldx.alt p { grid-column: 2 / span 4; }
.fieldx.alt h2, .fieldx.alt h3 { grid-column: 4 / span 9; text-align: right; }
.f-surface { background: var(--surface); }
.f-field { background: var(--field); }
.f-ink { background: var(--ink); color: var(--on-dark); }
.f-accent { background: var(--accent); color: #fff; }
.f-ink a, .f-accent a { color: inherit; }
@media (max-width: 760px) {
  .fieldx { min-height: 64svh; }
  .fieldx p, .fieldx.alt p { grid-column: 1 / -1; }
  .fieldx h2, .fieldx h3, .fieldx.alt h2, .fieldx.alt h3 { grid-column: 1 / -1; text-align: left; font-size: 14vw; }
}

/* ---------- Preguntas: grandes, respuestas al lado ---------- */
.faq-row + .faq-row { margin-top: clamp(48px, 5vw, 80px); }
.faq-row h2, .faq-row h3 { grid-column: 1 / span 6; font: 500 clamp(1.75rem, 1rem + 1.8vw, 2.5rem)/1.02 var(--display); text-transform: uppercase; }
.faq-row h2 { color: var(--muted); }
.faq-row p { grid-column: 8 / span 5; margin: .15em 0 0; max-width: 42ch; }
@media (max-width: 760px) {
  .faq-row h2, .faq-row h3, .faq-row p { grid-column: 1 / -1; }
  .faq-row p { margin-top: 12px; }
}

/* ---------- Pregunta en los dos bordes ---------- */
.ask { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; text-align: center; padding: 32px var(--margin) 24px; background: var(--ink); color: var(--on-dark); }
.ask-q { font: 500 clamp(4rem, 9vw, 9.5rem)/.95 var(--display); text-transform: uppercase; margin: 0; max-width: none; }
.ask-mid { display: grid; justify-items: center; gap: 16px; }
.ask-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
.ask-row .btn { min-width: 220px; min-height: 58px; }
.ask-or, .ask-mid p { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 760px) {
  .ask-q { font-size: 18vw; }
  .ask-row { flex-direction: column; width: 100%; gap: 12px; }
  .ask-row .btn { width: 80%; }
}

/* ---------- Pie: el contacto es el titular ---------- */
.footer { background: var(--accent); color: #fff; min-height: 90svh; display: flex; flex-direction: column; padding: 40px 0 28px; }
.footer .wrap { flex: 1; display: flex; flex-direction: column; }
.footer-top { row-gap: 20px; font-size: var(--step-small); align-items: start; }
.footer-top .notes { grid-column: 1 / span 9; display: flex; flex-wrap: wrap; gap: 16px 44px; }
.footer-top .notes p { margin: 0; max-width: 30ch; }
.footer-top .up { grid-column: 10 / span 3; justify-self: end; }
.footer-big { margin-top: auto; padding-top: 64px; }
.footer-big .tel { display: inline-block; font: 500 clamp(3.4rem, 9vw, 9.5rem)/.9 var(--display); text-decoration: none; letter-spacing: -.01em; }
.footer-big .alt { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: var(--step-lead); }
.footer-meta { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; margin-top: 44px; font-size: var(--step-small); }
.footer-meta ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-meta .c { text-align: center; }
.footer-meta .r { text-align: right; }
.footer a { color: #fff; }
@media (max-width: 760px) {
  .footer-top .notes, .footer-top .up { grid-column: 1 / -1; justify-self: start; }
  .footer-big .tel { font-size: 14.5vw; }
  .footer-meta { grid-template-columns: 1fr; }
  .footer-meta .c, .footer-meta .r { text-align: left; }
}

/* ---------- Cabecera de página interior ---------- */
.page-head { padding: clamp(36px, 6vw, 88px) 0 clamp(80px, 7vw, 112px); }
.page-head .sentence { font-size: clamp(3.5rem, 1rem + 7.4vw, 8rem); }
.page-head .sentence.long { font-size: clamp(3rem, 1rem + 5.2vw, 6rem); }
.crumbs { font-size: var(--step-small); color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--ink); }
.page-head .intro { margin-top: clamp(28px, 4vw, 48px); row-gap: 20px; }
.page-head .intro .lead { grid-column: 1 / span 6; margin: 0; }
.page-head .intro .side { grid-column: 8 / span 5; align-self: end; }
@media (max-width: 760px) {
  .page-head .sentence, .page-head .sentence.long { font-size: 15vw; }
  .page-head .intro .lead, .page-head .intro .side { grid-column: 1 / -1; }
}

/* ---------- Catálogo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.chip { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 var(--step-small)/1 var(--text); cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]) { background: var(--field); } }
.cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 4vw, 64px) var(--gutter); }
@media (max-width: 1020px) { .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cars { grid-template-columns: 1fr; } }
.car[hidden] { display: none; }
.car-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); margin: 0 0 18px; }
.car-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .car:hover .car-media img { transform: scale(1.03); } }
.car h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: .95; }
.car-meta { margin: 8px 0 14px; }
.spec { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 0 18px; }
.spec dt { font-size: var(--step-small); color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; }
.car-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.empty { padding: clamp(28px, 5vw, 64px); background: var(--surface); border-radius: var(--radius); }
.empty p { font-size: var(--step-lead); max-width: 36ch; }

.level + .level { margin-top: var(--gap-section); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: var(--step-small); font-weight: 500; }

/* ---------- Proceso, valores, banda ---------- */
.steps { list-style: none; margin: 0; padding: 0; row-gap: clamp(32px, 3vw, 48px); }
.steps li { grid-column: span 4; }
.steps h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); margin-bottom: 10px; }
.steps p { margin: 0; }
@media (max-width: 1020px) { .steps li { grid-column: span 6; } }
@media (max-width: 640px) { .steps li { grid-column: 1 / -1; } }
.split { row-gap: 40px; align-items: start; }
.split > :first-child { grid-column: 1 / span 6; }
.split > :last-child { grid-column: 8 / span 5; }
@media (max-width: 860px) { .split > :first-child, .split > :last-child { grid-column: 1 / -1; } }
.statement { font: 500 clamp(1.75rem, 1rem + 2vw, 2.25rem)/1.1 var(--display); text-transform: uppercase; max-width: 24ch; margin: 0; }
.values { list-style: none; padding: 0; margin: 0; }
.values li { padding: 16px 20px; background: var(--surface); border-radius: var(--radius); }
.values li + li { margin-top: 8px; }
.banner { margin: 0 0 clamp(40px, 5vw, 72px); aspect-ratio: 21 / 8; overflow: hidden; background: var(--surface); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .banner { aspect-ratio: 4 / 3; } }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid #8f8a84; border-radius: 10px;
  background: #faf9f8; color: var(--ink); font: 400 max(16px, var(--step-body))/1.4 var(--text);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 94, 72, .3); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #a3341f; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form-note { color: var(--muted); font-size: var(--step-small); margin: 16px 0 0; }
.form-status { margin-top: 16px; padding: 16px 18px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #dfe6da; color: #23301e; }
.form-status.err { display: block; background: #f1dcd6; color: #6e2414; }
.panel { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 44px); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li + li { margin-top: 20px; }
.contact-list a, .contact-list div { display: block; text-decoration: none; }
.contact-list small { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 6px; }
.contact-list b { font: 500 clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }

/* origen: de dónde los traemos */
.origins { list-style: none; margin: 0; padding: 0; row-gap: clamp(36px, 4vw, 56px); }
.origins li { grid-column: span 3; }
.origins .car-media { aspect-ratio: 4 / 5; }
.origins h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); margin-bottom: 8px; }
.origins p { margin: 0; }
@media (max-width: 1020px) { .origins li { grid-column: span 6; } }
/* coches a elegir en el configurador */
.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 10px; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color var(--t-hover) ease; }
.pick span { display: block; margin-top: 8px; font-weight: 500; line-height: 1.25; }
.pick input:checked ~ img { outline-color: var(--accent); }
.pick input:checked ~ span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pick input:focus-visible ~ img { outline-color: var(--ink); }
.summary-photo { margin: 0 0 20px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--field); }
.summary-photo img { width: 100%; height: 100%; object-fit: cover; }

/* guía de fotos */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.shots .car-media { margin-bottom: 8px; }
.shots p { margin: 0; font-size: var(--step-small); }
@media (max-width: 860px) { .c-side[style] { grid-column: 1 / -1 !important; } .c-form[style] { grid-column: 1 / -1 !important; } }

/* créditos con su foto */
.credits { list-style: none; margin: 0; padding: 0; row-gap: 28px; }
.credits li { grid-column: span 6; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.credits img { width: 120px; height: 80px; object-fit: cover; }
.credits p { margin: 0; }
@media (max-width: 860px) { .credits li { grid-column: 1 / -1; grid-template-columns: 96px 1fr; } .credits img { width: 96px; height: 64px; } }

/* contacto y cierres */
.c-form { grid-column: 1 / span 7; }
.c-form.wide { grid-column: 1 / span 8; }
.c-side { grid-column: 9 / span 4; }
.close-side { grid-column: 8 / span 5; }
.contact-grid { row-gap: 48px; align-items: start; }
@media (max-width: 860px) { .c-form, .c-form.wide, .c-side, .close-side { grid-column: 1 / -1; } }

/* ---------- Configurador ---------- */
.config { row-gap: 40px; align-items: start; }
.config-main { grid-column: 1 / span 7; }
.summary { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1020px) { .config-main, .summary { grid-column: 1 / -1; position: static; } }
.config fieldset { border: 0; margin: 0 0 96px; padding: 0; min-width: 0; }
.config legend { font: 500 clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem)/1 var(--display); text-transform: uppercase; margin-bottom: 16px; padding: 0; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }
.opt-card { position: relative; display: block; }
.opt-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-card span { display: block; height: 100%; padding: 16px 18px; border-radius: 10px; background: var(--surface); font-weight: 500; transition: background-color var(--t-hover) ease; }
.opt-card span small { display: block; font-weight: 400; font-size: var(--step-small); margin-top: 2px; }
.opt-card input:checked + span { background: var(--ink); color: var(--on-dark); }
.opt-card input:checked + span small { color: var(--on-dark-muted); }
.opt-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.summary h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); margin-bottom: 16px; }
.summary dl { margin: 0 0 20px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; text-align: right; }
.meter { height: 10px; border-radius: 999px; background: var(--field); overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease-out); }
.meter-label { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--step-small); margin-bottom: 20px; }
.meter-label b { color: var(--ink); }

/* ---------- Textos legales ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.fill { background: #f3e2a8; padding: 0 4px; font-weight: 500; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; transition: transform var(--t-press) var(--ease-out);
}
.wa-float:active { transform: scale(.94); }
.wa-float svg { width: 30px; height: 30px; }
.menu-open .wa-float { display: none; }

/* ---------- Entradas (nunca esconden contenido si falla el JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .js .rv.is-in > * { opacity: 1; transform: none; }
  .js .rv.is-in > :nth-child(2) { transition-delay: 80ms; }
  .js .rv.is-in > :nth-child(3) { transition-delay: 160ms; }
  .js .rv.is-in > :nth-child(4) { transition-delay: 240ms; }
  .js .rv.is-in > :nth-child(n+5) { transition-delay: 300ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
