/* ==========================================================================
   Ayala Autos | VCMM — «Estudio de arcilla»
   Dos superficies: la pared oscura del estudio y el tablero marfil de dibujo.
   La maqueta es arcilla con cinta; la cinta esmeralda es la línea del logo.
   Sin build. Orden: tokens · fuentes · base · componentes · secciones · estados.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-vf.woff2") format("woff2-variations"),
       url("../fonts/archivo-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Respaldos métricos (aproximados) para reducir el salto al cargar */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 106%;
  ascent-override: 86%;
  descent-override: 21%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Atkinson Fallback";
  src: local("Verdana"), local("Arial"), local("Roboto");
  size-adjust: 92%;
  ascent-override: 98%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
@property --gx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 38%;
}
@property --gy {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 40%;
}

:root {
  /* pared de estudio */
  --wall: #121516;
  --wall-2: #1a1e1f;
  --wall-3: #232829;
  --wall-deep: #0c0f10;
  /* película / tablero */
  --film: #ecebe4;
  --film-2: #e2e1d8;
  --paper: #fbfaf6;
  --photo-bg: #e4e3da;
  --ivory: #f3f1ea;
  --ivory-soft: #bcc6bf;      /* secundario sobre pared, teñido verdoso */
  /* arcilla */
  --clay: #9a9d96;
  --clay-dark: #6c706a;
  --clay-light: #b9bcb4;
  /* cinta y verdes */
  --tape: #101312;
  --green: #1f4d3a;
  --green-h: #2a6a4e;
  --emerald: #2fb066;
  --emerald-h: #47c47c;
  --on-emerald: #0b1a12;
  /* tinta sobre marfil */
  --ink: #1a211d;
  --ink-soft: #4c5a51;
  --ink-hint: #5b675f;
  --line: rgba(16, 19, 18, .14);
  --line-dark: rgba(243, 241, 234, .12);
  --error-dark: #ff9e94;
  --error-light: #a3271c;

  /* cuadrícula de medición */
  --grid-ink: rgba(16, 19, 18, .06);
  --grid-ink-major: rgba(16, 19, 18, .1);
  --grid-ivory: rgba(243, 241, 234, .05);
  --grid-ivory-major: rgba(243, 241, 234, .085);

  /* tipografía */
  --f-display: "Archivo", "Archivo Fallback", "Arial Narrow", sans-serif;
  --f-body: "Atkinson Next", "Atkinson Fallback", system-ui, sans-serif;
  --h-stretch: 120%;

  /* forma y movimiento */
  --r-card: 14px;
  --r-ctl: 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shell: min(1240px, 100% - 48px);
  /* margen exterior del .shell respecto a la ventana (para sangrar tableros) */
  --gutter: max(24px, (100vw - 1240px) / 2);
  --header-h: 72px;
  --focus: var(--green);

  color-scheme: dark light;
  accent-color: var(--green);
  scrollbar-color: var(--clay-dark) var(--wall);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--wall);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wall);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--emerald);
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
table { border-collapse: collapse; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: var(--h-stretch);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
h3 { font-size: 1.25rem; font-stretch: 110%; font-weight: 700; letter-spacing: -0.01em; }

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--emerald); color: var(--tape); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::placeholder { color: var(--ink-hint); opacity: 1; }

/* superficies oscuras: foco y cursor esmeralda */
.site-header, .hero, .compare, .promo, .site-footer, .dock, .guide-stage {
  --focus: var(--emerald);
}
/* superficies claras */
.catalog, .guide, .about, .dialog, .board-note {
  --focus: var(--green);
  caret-color: var(--green);
}
.guide-stage { caret-color: var(--emerald); }

.tabular, .vehicle-price, .lane-price, #compare-table, #sim-output, .sim input, [data-count], #compare-count {
  font-variant-numeric: tabular-nums;
}

/* ---------- Utilidades ---------- */
.shell { width: var(--shell); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--emerald);
  color: var(--on-emerald);
  font-family: var(--f-display);
  font-weight: 700;
  border-radius: var(--r-ctl);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip:focus-visible { transform: none; outline-color: var(--ivory); }

[hidden] { display: none !important; }

.needs-js-note {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--ink-soft);
  border: 1px dashed rgba(16, 19, 18, .3);
  border-radius: var(--r-card);
  text-align: center;
}

.ico { width: 1.25em; height: 1.25em; flex: none; }

.hint { font-size: .875rem; color: var(--ink-soft); min-height: 1.4em; }

/* Secciones marfil: marfil liso. La cuadrícula de medición queda solo en los tableros. */
.catalog, .guide, .about {
  background-color: var(--film);
  color: var(--ink);
}
.studio-board, .lane, .guide-stage, .promo {
  background-image:
    linear-gradient(var(--grid-ivory-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ivory-major) 1px, transparent 1px),
    linear-gradient(var(--grid-ivory) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ivory) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
}

/* ---------- Rótulo de cinta ---------- */
.tape-label {
  display: inline-block;
  padding: 6px 10px;
  background: var(--tape);
  color: var(--ivory);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: rotate(-.4deg);
  white-space: nowrap;
}
.tape-label:nth-child(2n) { transform: rotate(.5deg); }
.tape-label:nth-child(3n) { transform: rotate(-.6deg); }
li:nth-child(2n) > .tape-label { transform: rotate(.6deg); }
li:nth-child(3n) > .tape-label { transform: rotate(-.3deg); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-ctl);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { border-radius: var(--r-ctl); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn--wa { --btn-bg: var(--emerald); --btn-fg: var(--on-emerald); --btn-bd: var(--emerald); }
.btn--wa:hover:not(:disabled):not([aria-disabled="true"]) { --btn-bg: var(--emerald-h); --btn-bd: var(--emerald-h); }

.btn--green { --btn-bg: var(--green); --btn-fg: var(--ivory); --btn-bd: var(--green); }
.btn--green:hover:not(:disabled) { --btn-bg: var(--green-h); --btn-bd: var(--green-h); }

.btn--dark { --btn-bg: var(--tape); --btn-fg: var(--ivory); --btn-bd: var(--tape); }
.btn--dark:hover:not(:disabled) { --btn-bg: var(--wall-3); --btn-bd: var(--wall-3); }

.btn--ghost { --btn-fg: var(--ivory); --btn-bd: rgba(243, 241, 234, .4); }
.btn--ghost:hover:not(:disabled) { --btn-bg: rgba(243, 241, 234, .08); --btn-bd: rgba(243, 241, 234, .75); }

.btn--outline { --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover:not(:disabled) { --btn-bg: rgba(26, 33, 29, .07); }

.btn--sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

.link-btn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.link-btn:hover { text-decoration-thickness: 2px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  padding: 0;
  border: 1.5px solid #7a7f78;
  border-radius: var(--r-ctl);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s var(--ease-out);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ivory); }

.close {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.close:hover { background: rgba(26, 33, 29, .07); }

/* ---------- Campos ---------- */
.field { display: block; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #7a7f78;
  border-radius: var(--r-ctl);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  transition: border-color .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--clay-dark); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--green);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-radius: var(--r-ctl);
}
select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231a211d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--wall);
  border-bottom: 1px solid rgba(243, 241, 234, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ivory);
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .8125rem;
  color: var(--ivory-soft);
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ivory);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  transition: background-color .16s ease;
}
.nav a:hover { background: rgba(243, 241, 234, .07); }
.header-wa { min-height: 44px; padding: 0 16px; flex: none; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(243, 241, 234, .25);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ivory);
  flex: none;
}
.menu-toggle[aria-expanded="true"] { background: rgba(243, 241, 234, .1); }

/* ==========================================================================
   Hero — el estudio: la maqueta manda, el texto acompaña
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 80% 40%, rgba(31, 77, 58, .26), transparent 72%),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, .35), transparent 60%),
    var(--wall);
  color: var(--ivory);
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  grid-template-areas:
    "copy studio"
    "note note";
  align-items: center;
  column-gap: clamp(32px, 3.4vw, 48px);
  row-gap: clamp(20px, 2.4vw, 32px);
  padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.hero-copy { grid-area: copy; display: grid; gap: 24px; align-content: center; }
.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  font-stretch: 118%;
}
.hero-lede {
  max-width: 40ch;
  color: var(--ivory-soft);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* Tablero: sin aspecto de tarjeta, sangra hasta el borde derecho de la ventana */
.studio {
  grid-area: studio;
  display: grid;
  min-width: 0;
  margin-right: calc(-1 * var(--gutter));
}
.studio-board {
  position: relative;
  padding: clamp(48px, 4.4vw, 64px) clamp(20px, 3vw, 44px) clamp(20px, 2vw, 28px) clamp(36px, 3.6vw, 56px);
  background-color: var(--wall-2);
  border-radius: 2px 0 0 0;
  overflow: hidden;
}
.reg {
  position: absolute;
  width: 18px; height: 18px;
  background:
    linear-gradient(rgba(243, 241, 234, .45), rgba(243, 241, 234, .45)) center / 1.5px 100% no-repeat,
    linear-gradient(rgba(243, 241, 234, .45), rgba(243, 241, 234, .45)) center / 100% 1.5px no-repeat;
  pointer-events: none;
}
.reg--tl { top: 12px; left: 12px; }
.reg--tr { top: 12px; right: 12px; }
.reg--bl { bottom: 12px; left: 12px; }
.reg--br { bottom: 12px; right: 12px; }

.clay-frame { position: relative; }
.clay-stage {
  position: relative;
  aspect-ratio: 600 / 260;
  color: var(--clay-light);
}
.clay-stage > svg {
  width: 100%;
  height: auto;
  overflow: visible;
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
/* repintado: un fotograma en .is-entering y luego reposo */
.clay-stage.is-entering > svg,
.clay-stage > svg.is-entering {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}
.studio-label {
  position: absolute;
  left: 42px; /* a la derecha de la marca de registro superior */
  top: 10px;
}

/* Cotas decorativas (sin cifras): trazo marfil fino */
.clay-dims {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.dim-line, .dim-tick {
  fill: none;
  stroke: rgba(243, 241, 234, .42);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.dim-line { stroke-dasharray: 6 4; }

/* ---------- Arcilla (SVG en modo «arcilla») ---------- */
.clay-body { fill: var(--clay); stroke: none; }
.clay-glass { fill: var(--clay-dark); stroke: none; }
.clay-wheel { fill: var(--wall); stroke: none; }
.clay-hub { fill: var(--clay-dark); stroke: none; }
.clay-tape {
  fill: none;
  stroke: var(--tape);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tape-draw 1.1s var(--ease-out) .9s forwards;
}
.clay-tape--main {
  stroke: var(--emerald);
  stroke-width: 4px;
  animation-duration: 1.5s;
  animation-delay: .35s;
}
.clay-tape:nth-child(2 of .clay-tape:not(.clay-tape--main)) { animation-delay: 1s; }
.clay-tape:nth-child(3 of .clay-tape:not(.clay-tape--main)) { animation-delay: 1.1s; }
.clay-tape:nth-child(4 of .clay-tape:not(.clay-tape--main)) { animation-delay: 1.2s; }
.clay-tape:nth-child(n+5 of .clay-tape:not(.clay-tape--main)) { animation-delay: 1.3s; }

/* Luz rasante: franja ancha y clara que barre la arcilla */
.clay-light {
  fill: #fff;
  fill-opacity: .85;
  stroke: none;
  mix-blend-mode: soft-light;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent calc(var(--gx, 38%) - 30%), rgba(0, 0, 0, .55) calc(var(--gx, 38%) - 12%), #000 var(--gx, 38%), rgba(0, 0, 0, .55) calc(var(--gx, 38%) + 12%), transparent calc(var(--gx, 38%) + 30%));
  mask-image: linear-gradient(100deg, transparent calc(var(--gx, 38%) - 30%), rgba(0, 0, 0, .55) calc(var(--gx, 38%) - 12%), #000 var(--gx, 38%), rgba(0, 0, 0, .55) calc(var(--gx, 38%) + 12%), transparent calc(var(--gx, 38%) + 30%));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.studio .clay-light { mix-blend-mode: overlay; }

@keyframes tape-draw { to { stroke-dashoffset: 0; } }

/* Luz rasante: en táctil se mueve sola */
@media (hover: none) {
  [data-glint] { animation: glint-sweep 7s ease-in-out infinite alternate; }
}
@keyframes glint-sweep {
  from { --gx: 25%; }
  to { --gx: 75%; }
}

/* Barra de pestañas de cinta, pegada al borde inferior del tablero */
.studio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 6px clamp(20px, 3vw, 44px) 6px 6px;
  background: var(--tape);
  border-top: 1px solid rgba(243, 241, 234, .12);
}
.body-picker {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 2px;
}
.body-picker button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.body-picker button:hover { background: rgba(243, 241, 234, .1); }
.body-picker button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.body-picker button:focus-visible { outline-offset: -3px; border-radius: 2px; }

/* Enlace con flecha (el texto lo reescribe JS; la flecha va en CSS) */
.clay-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ivory);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  text-decoration-color: rgba(243, 241, 234, .55);
  transition: text-decoration-color .16s ease;
}
.clay-go::after {
  content: "";
  width: 20px; height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease-out);
}
.clay-go:hover { text-decoration-color: var(--ivory); text-decoration-thickness: 2px; }
.clay-go:hover::after { transform: translateX(3px); }
.clay-go:active::after { transform: translateX(6px); }

/* Aviso de independencia: rótulo de cinta grande, legible */
.independence-strip {
  grid-area: note;
  justify-self: start;
  max-width: 100%;
  margin: 0;
  padding: 12px 18px;
  background: var(--tape);
  border: 1px solid rgba(243, 241, 234, .16);
  border-radius: 2px;
  color: var(--ivory);
  font-size: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.section {
  padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.section-head > div { display: grid; gap: 14px; max-width: 760px; }
.section-head p { max-width: 62ch; color: var(--ink-soft); }
.compare .section-head p { color: var(--ivory-soft); }

/* ==========================================================================
   Catálogo
   ========================================================================== */
.catalog-controls {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  border-bottom: 1px solid rgba(16, 19, 18, .16);
}
.tabs button {
  position: relative;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color .16s ease;
}
.tabs button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.tabs button:hover { color: var(--ink); }
.tabs button.active, .tabs button[aria-pressed="true"] { color: var(--green); }
.tabs button.active::after, .tabs button[aria-pressed="true"]::after { transform: none; }

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: .9375rem;
}
.catalog-meta strong { color: var(--ink); font-family: var(--f-display); font-size: 1.0625rem; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}

/* Tarjeta: la foto va directo sobre el marfil del tablero, con marcas de registro */
.vehicle {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vehicle-photo {
  --reg: rgba(26, 33, 29, .5);
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  background: transparent;
}
/* cuatro cruces finas en las esquinas de la foto */
.vehicle-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--reg), var(--reg)) left 0 top 7px / 15px 1px no-repeat,
    linear-gradient(var(--reg), var(--reg)) left 7px top 0 / 1px 15px no-repeat,
    linear-gradient(var(--reg), var(--reg)) right 0 top 7px / 15px 1px no-repeat,
    linear-gradient(var(--reg), var(--reg)) right 7px top 0 / 1px 15px no-repeat,
    linear-gradient(var(--reg), var(--reg)) left 0 bottom 7px / 15px 1px no-repeat,
    linear-gradient(var(--reg), var(--reg)) left 7px bottom 0 / 1px 15px no-repeat,
    linear-gradient(var(--reg), var(--reg)) right 0 bottom 7px / 15px 1px no-repeat,
    linear-gradient(var(--reg), var(--reg)) right 7px bottom 0 / 1px 15px no-repeat;
  transition: opacity .2s ease;
}
.vehicle:hover .vehicle-photo, .vehicle:focus-within .vehicle-photo { --reg: var(--ink); }
.vehicle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px 22px 14px;
  mix-blend-mode: multiply;
  transition: transform .3s var(--ease-out);
}
@media (hover: hover) {
  .vehicle:hover .vehicle-img { transform: translateY(-3px); }
}
.vehicle-sil {
  width: 84%;
  height: auto;
  color: var(--clay-dark);
}
.vehicle-tag {
  position: absolute;
  top: 20px; left: 20px;
  padding: 5px 8px;
  background: var(--tape);
  color: var(--ivory);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: rotate(-.6deg);
}
.vehicle:nth-child(2n) .vehicle-tag { transform: rotate(.5deg); }

.vehicle-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 16px 4px 0;
}
.vehicle-make {
  color: var(--ink-soft);
  font-size: .875rem;
  letter-spacing: .02em;
}
.vehicle-name {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.vehicle-version { font-family: var(--f-display); font-stretch: 100%; font-weight: 500; color: var(--ink-soft); }
.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  list-style: none;
  color: var(--ink-soft);
  font-size: .9375rem;
}
.vehicle-specs li + li { position: relative; padding-left: 12px; }
.vehicle-specs li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--clay-dark);
}
/* Precio como cota: cifra + línea fina con remates */
.vehicle-price {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ink);
}
.vehicle-price::after {
  content: "";
  flex: 1;
  min-width: 24px;
  height: 11px;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink-soft), var(--ink-soft)) left center / 1px 100% no-repeat,
    linear-gradient(var(--ink-soft), var(--ink-soft)) right center / 1px 100% no-repeat;
}
.vehicle-price.is-missing { font-size: 1.125rem; font-weight: 700; color: var(--ink-soft); }
/* Referencia: texto discreto; la cinta queda solo para el estado de la unidad */
.vehicle-ref {
  align-self: flex-start;
  margin: 0;
  color: var(--ink-soft);
  font-size: .8125rem;
  line-height: 1.4;
}
.vehicle-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}
/* CTA compacto: contorno de tinta con icono de WhatsApp */
.btn--xs { min-height: 40px; padding: 0 12px; font-size: .875rem; gap: 7px; }
.btn--xs .ico { width: 18px; height: 18px; flex: none; }
.vehicle-actions .btn[data-contact] {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  flex: 0 1 auto;
  justify-content: center;
}
.vehicle-actions .btn[data-contact] .ico { color: var(--green); transition: color .16s ease; }
.vehicle-actions .btn[data-contact]:hover:not(:disabled) { --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-bd: var(--ink); }
.vehicle-actions .btn[data-contact]:hover .ico { color: currentColor; }
.vehicle .icon-btn { background: transparent; border-color: #6f746d; }
.vehicle .icon-btn:hover { background: rgba(26, 33, 29, .07); border-color: var(--ink); }
.vehicle .icon-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ivory); }

.empty {
  grid-column: 1 / -1;
  padding: 40px 24px;
  border: 1px dashed rgba(16, 19, 18, .3);
  border-radius: var(--r-card);
  background: rgba(251, 250, 246, .6);
  color: var(--ink-soft);
  text-align: center;
}
.catalog-more { display: flex; margin: 32px auto 0; }
.catalog-note {
  margin-top: 28px;
  max-width: 80ch;
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.55;
}
.catalog-note a { color: var(--green); font-weight: 700; }

/* ==========================================================================
   Comparar — peanas
   ========================================================================== */
.compare { background: var(--wall); color: var(--ivory); }
.lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lane {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 200px;
  padding: 20px 20px 22px;
  background-color: var(--wall-2);
  border: 1px solid rgba(243, 241, 234, .1);
  border-radius: 12px;
  container-type: inline-size;
}
/* peana: barra bajo las ruedas de la maqueta (piso del SVG en y≈212/260) */
.lane::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: calc(28px + (100cqw - 40px) * .9 * (260 / 600) * (212 / 260) - 2px);
  height: 10px;
  border-radius: 999px;
  background: var(--wall-3);
}
.lane:not(:has(.lane-sil))::after { display: none; }
.lane-sil {
  position: relative;
  z-index: 1;
  width: 90%;
  height: auto;
  margin: 8px auto 22px;
  color: var(--clay-light);
}
.lane-cond { color: var(--ivory-soft); font-size: .875rem; }
.lane-name {
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
}
.lane-price { font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; color: var(--emerald); }
.lane-remove {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ivory-soft);
  font-size: 1.5rem;
  line-height: 1;
}
.lane-remove:hover { background: rgba(243, 241, 234, .08); color: var(--ivory); }
.lane.is-empty {
  place-content: center;
  text-align: center;
  background-image: none;
  background-color: transparent;
  border: 1.5px dashed rgba(243, 241, 234, .3);
  color: var(--ivory-soft);
  padding: 24px 28px;
  font-size: .9375rem;
}
.lane.is-empty::after { display: none; }

.comparison-data { display: none; margin-top: 28px; }
.comparison-data.show { display: block; }
.scroll-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(243, 241, 234, .1);
  border-radius: 12px;
  background: var(--wall-2);
  scrollbar-color: var(--clay-dark) transparent;
}
#compare-table { width: 100%; min-width: 560px; font-size: .9375rem; }
#compare-table th, #compare-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(243, 241, 234, .1);
}
#compare-table tr:last-child > * { border-bottom: 0; }
#compare-table th {
  color: var(--ivory-soft);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
#compare-table thead th {
  color: var(--ivory);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}
#compare-table tbody tr:hover { background: rgba(243, 241, 234, .03); }

.compare-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
  color: var(--ivory-soft);
  font-size: .9375rem;
}
.compare-bottom p { max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   Orientador
   ========================================================================== */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
}
.guide-panel {
  display: grid;
  gap: 24px;
  align-content: start;
  align-self: start;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q legend {
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--f-display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--ink);
}
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  position: relative;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid #7a7f78;
  border-radius: var(--r-ctl);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.25;
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s var(--ease-out);
}
.choice-grid--3 .choice { text-align: center; }
.choice:hover { border-color: var(--ink-soft); }
.choice:active { transform: scale(.98); }
.choice.active, .choice[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--ivory);
}

.guide-stage {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 380px;
  padding: clamp(20px, 3vw, 32px);
  background-color: var(--wall-2);
  border-radius: var(--r-card);
  color: var(--ivory);
}
.guide-empty {
  padding: 32px 24px;
  border: 1.5px dashed rgba(243, 241, 234, .3);
  border-radius: 12px;
  color: var(--ivory-soft);
  text-align: center;
  max-width: 48ch;
  justify-self: center;
}
.guide-empty.is-error { color: var(--error-dark); border-color: rgba(255, 158, 148, .5); }

.guide-result { display: grid; gap: 28px; }
.guide-figure { display: grid; gap: 20px; }
.guide-svg { width: 100%; height: auto; overflow: visible; color: var(--clay-light); }
/* la cinta solo se «aplica» en el estudio del hero; en el resto ya está puesta */
.guide-svg .clay-tape, .vehicle-sil .clay-tape, .lane-sil .clay-tape {
  animation: none; stroke-dasharray: none; stroke-dashoffset: 0;
}

.call-line {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 2px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 0);
  stroke-dashoffset: var(--len, 0);
  transition: stroke-dashoffset .7s var(--ease-out);
}
.call-line:nth-child(2 of .call-line) { transition-delay: .14s; }
.call-line:nth-child(3 of .call-line) { transition-delay: .28s; }
.guide-result.is-drawn .call-line { stroke-dashoffset: 0; }
.call-dot { fill: var(--tape); stroke: var(--emerald); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.call-anchor { fill: var(--emerald); }
.call-num {
  fill: var(--ivory);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: central;
}

.call-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  counter-reset: call;
}
.call-label {
  counter-increment: call;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-content: start;
  font-size: .9375rem;
  line-height: 1.45;
}
.call-label::before {
  content: counter(call);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 2px solid var(--emerald);
  border-radius: 50%;
  background: var(--tape);
  color: var(--ivory);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .8125rem;
}
.call-label strong {
  font-family: var(--f-display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ivory);
}
.call-label span { color: var(--ivory-soft); }

.guide-picks { display: grid; gap: 12px; }
.guide-picks h3 { font-size: 1.125rem; }
.guide-picks ul { list-style: none; display: grid; }
.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px dashed rgba(243, 241, 234, .22);
  background: none;
  color: var(--ivory);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  transition: color .16s ease, padding .2s var(--ease-out);
}
.guide-picks li:first-child .pick { border-top: 1px dashed rgba(243, 241, 234, .22); }
.pick small {
  padding: 3px 7px;
  background: var(--tape);
  border: 1px solid rgba(243, 241, 234, .2);
  border-radius: 2px;
  color: var(--ivory);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pick::after {
  content: "";
  width: 20px; height: 20px;
  margin-left: auto;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease-out);
}
.pick:hover { color: var(--emerald); }
.pick:hover::after { transform: translateX(3px); }
a.pick { text-decoration: none; }
/* Fila del orientador: el nombre es un enlace a la unidad y el mensaje de WhatsApp es un icono aparte. */
.pick-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed rgba(243, 241, 234, .22); }
.guide-picks li.pick-row:first-child { border-top: 1px dashed rgba(243, 241, 234, .22); }
.pick-row .pick, .guide-picks li.pick-row:first-child .pick { flex: 1; width: auto; min-width: 0; border: 0; }
.pick-wa { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(243, 241, 234, .3); border-radius: 4px; background: none; color: var(--ivory); cursor: pointer; transition: color .16s ease, border-color .16s ease; }
.pick-wa:hover, .pick-wa:focus-visible { color: var(--emerald); border-color: var(--emerald); }
.pick-wa .ico { width: 22px; height: 22px; }
#guide-consult { justify-self: start; margin-top: 4px; }

/* Simulador */
.sim {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px 40px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.sim-intro { grid-column: 1 / -1; display: grid; gap: 8px; }
.sim-intro h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.sim-intro p { color: var(--ink-soft); max-width: 62ch; }
.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  grid-row: span 2;
}
.sim-grid label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink);
}
.sim-result {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  background: var(--film);
  border-radius: 12px;
}
.sim-result small { color: var(--ink-soft); font-size: .875rem; }
#sim-output {
  font-family: var(--f-display);
  font-stretch: 105%;
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  color: var(--green);
  letter-spacing: -0.01em;
}
#sim-ask { align-self: start; }

/* ==========================================================================
   Oportunidades — nota fijada
   ========================================================================== */
.promo { background-color: var(--wall); color: var(--ivory); }
.board-note {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(28px, 4vw, 44px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.board-note::before, .board-note::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 72px; height: 22px;
  background: rgba(226, 225, 216, .82);
  border-radius: 1px;
}
.board-note::before { left: 28px; transform: rotate(-.3deg); }
.board-note::after { right: 28px; transform: rotate(.3deg); }
.note-title {
  font-stretch: 115%;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: var(--ink);
  max-width: 22ch;
}
.note-lede { color: var(--ink-soft); max-width: 60ch; }
.note-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }

/* ==========================================================================
   Héctor
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-copy { display: grid; gap: 18px; }
.about-copy p { color: var(--ink-soft); max-width: 60ch; }
.adviser {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: clamp(28px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.adviser::before {
  content: "";
  position: absolute;
  top: -10px; right: 36px;
  width: 72px; height: 22px;
  background: var(--tape);
  border-radius: 1px;
  transform: rotate(2deg);
}
.adviser-photo {
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ivory);
  overflow: hidden;
  font-family: var(--f-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: .02em;
}
.adviser-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.adviser h3 { font-size: 1.5rem; }
.adviser-role { color: var(--green); font-weight: 700; font-size: .9375rem; }
.adviser > p:not(.adviser-role):not(.adviser-note) { color: var(--ink-soft); }
.adviser .btn { margin-top: 8px; }
.adviser-note { font-size: .875rem; color: var(--ink-soft); }
.adviser-note a { color: var(--green); font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--wall);
  border-top: 1px solid rgba(243, 241, 234, .1);
  color: var(--ivory-soft);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
}
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { max-width: 40ch; }
.footer-grid nav, .footer-grid > div:not(.footer-brand) { display: grid; gap: 2px; align-content: start; }
.footer-grid strong {
  margin-bottom: 6px;
  color: var(--ivory);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
}
.footer-grid nav a, .footer-grid > div:not(.footer-brand) a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ivory-soft);
  text-decoration: none;
  width: fit-content;
}
.footer-grid nav a:hover, .footer-grid > div:not(.footer-brand) a:hover { color: var(--ivory); text-decoration: underline; }
.footer-grid > div a.footer-privacy-link { min-height: 44px; color: var(--ivory); text-decoration: underline; }
.footer-privacy { max-width: 82ch; margin-top: 24px; overflow-wrap: anywhere; }
#social-links { display: contents; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed rgba(243, 241, 234, .2);
  font-size: .8125rem;
  line-height: 1.55;
}
.footer-bottom p:first-child { max-width: 90ch; }

/* ==========================================================================
   Dock, diálogo, aviso
   ========================================================================== */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--wall);
  border-top: 1px solid rgba(243, 241, 234, .14);
}
.dock .btn { flex: 1; }
.dock-compare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid rgba(243, 241, 234, .4);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ivory);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.dock-compare span {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ivory);
  color: var(--green);
  font-size: .875rem;
}
.dock-compare:hover { border-color: var(--ivory); }

/* el dock se aparta cuando su acción ya está a la vista (hero o comparador) */
.dock { transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .2s; }
.dock.is-quiet { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (min-width: 751px) {
  .dock.has-compare.is-quiet { transform: translate(-50%, 140%); }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* escritorio: solo con comparación, centrado y compacto */
@media (min-width: 751px) {
  .dock.has-compare {
    display: flex;
    left: 50%; right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 8px;
    border: 1px solid rgba(243, 241, 234, .16);
    border-radius: 14px;
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .6);
  }
  .dock.has-compare > .btn { display: none; }
  body:has(.dock.has-compare) { padding-bottom: 84px; }
}

.dialog {
  width: min(520px, 100% - 32px);
  max-height: min(88vh, 720px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.dialog::backdrop { background: rgba(8, 10, 10, .72); }
.dialog[open] { animation: dialog-in .28s var(--ease-out); }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 16px 8px 24px;
}
.dialog-head h2 { font-size: 1.5rem; font-stretch: 112%; }
.dialog-body { display: grid; gap: 12px; padding: 4px 24px 24px; }
.dialog-body > p { color: var(--ink-soft); }
.dialog-body label { font-weight: 700; font-size: .9375rem; }
.contact-privacy { font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.contact-privacy a { color: var(--green); }
#contact-modal { overflow-y: auto; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(480px, 100% - 32px);
  padding: 12px 16px;
  background: var(--tape);
  color: var(--ivory);
  border: 1px solid rgba(243, 241, 234, .16);
  border-radius: 3px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  transform: translateX(-50%) rotate(-.5deg);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .6);
  animation: toast-in .3s var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px) rotate(-.5deg); } }


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1090px) {
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter-row .field:first-child { grid-column: 1 / -1; }
  .filter-row .link-btn { justify-self: start; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0; }
  .nav a { padding: 0 8px; font-size: .875rem; white-space: nowrap; }
  .header-inner { gap: 16px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; }
  .header-inner { gap: 12px; }
  .header-wa { margin-left: auto; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--wall);
    border-bottom: 1px solid rgba(243, 241, 234, .12);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7);
  }
  .nav.open { display: flex; }
  .nav a {
    min-height: 52px;
    padding: 0 8px;
    border-bottom: 1px dashed rgba(243, 241, 234, .14);
    border-radius: 0;
    font-size: 1.0625rem;
  }
  .nav a:last-child { border-bottom: 0; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 16px;
    padding-block: 24px 32px;
  }
  /* jerarquía móvil: título → maqueta → aviso → texto → acciones */
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .studio { order: 2; grid-area: auto; margin-inline: calc(-1 * var(--gutter)); }
  .hero-lede { order: 3; }
  .hero-actions { order: 4; }
  .independence-strip { order: 5; grid-area: auto; }
  .studio-board { padding: 44px var(--gutter) 14px calc(var(--gutter) + 14px); border-radius: 0; }
  .clay-frame { max-width: 640px; margin-inline: auto; }
  .studio-controls { padding: 6px var(--gutter); }

  .lanes { grid-template-columns: minmax(0, 1fr); }
  .lane { min-height: 0; }
  .lane.is-empty { min-height: 96px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-grid { grid-row: auto; }
}

@media (max-width: 750px) {
  :root { --shell: calc(100% - 32px); }
  .vehicle-grid { grid-template-columns: minmax(0, 1fr); }
  .dock { display: flex; }
  .dock.has-compare .btn span { white-space: nowrap; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .call-labels { grid-template-columns: minmax(0, 1fr); }
  :root { --gutter: 16px; }
  .studio-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-inline: 6px; }
  .body-picker { display: grid; }
  .body-picker button { padding: 0 4px; font-size: .9375rem; letter-spacing: 0; text-transform: none; }
  .clay-go { justify-self: center; }
  .independence-strip { padding: 10px 14px; }
  .compare-bottom .actions, .compare-bottom .actions .btn { width: 100%; }
  .compare-bottom .actions .btn { flex: 1; }
}

@media (max-width: 560px) {
  .filter-row { grid-template-columns: minmax(0, 1fr); }
  .filter-row .field:first-child { grid-column: auto; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
  .brand-sub { display: none; }
  .header-wa { padding: 0 12px; }
}

@media (max-width: 400px) {
  .hero h1 { font-stretch: 108%; }
  h2 { font-stretch: 110%; }
  .header-wa span {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .header-wa { width: 44px; padding: 0; }
  .brand-name { font-size: .9375rem; }
  .dock .btn { min-width: 0; padding: 0 12px; }
  /* dock compacto: ícono de comparar + contador; «Comparar» sigue en el nombre accesible */
  .dock-compare { font-size: 0; gap: 6px; padding: 0 10px; }
  .dock-compare::before {
    content: "";
    width: 20px; height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h14M14 4l4 4-4 4M20 16H6M10 12l-4 4 4 4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h14M14 4l4 4-4 4M20 16H6M10 12l-4 4 4 4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .dock-compare span { font-size: .875rem; }
}

/* ==========================================================================
   Movimiento reducido: sin animaciones, cintas completas
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  [data-glint] { animation: none !important; }
  .clay-tape { animation: none !important; stroke-dasharray: none; stroke-dashoffset: 0; }
  .call-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .clay-stage.is-entering > svg, .clay-stage > svg.is-entering { opacity: 1; transform: none; }
  .vehicle:hover .vehicle-img { transform: none; }
}

/* Aviso de privacidad: papel y rótulo de cinta sobre el marfil del estudio. */
.privacy-page { padding-bottom: 0; }
.privacy-document {
  background: var(--film);
  color: var(--ink);
  padding-block: clamp(36px, 7vw, 88px);
  overflow-wrap: anywhere;
}
.privacy-inner { max-width: 72ch; }
.privacy-heading h1 { font-size: clamp(2.05rem, 1.4rem + 3vw, 3.5rem); font-stretch: 110%; }
.privacy-heading p { margin-top: 12px; }
.privacy-draft { font-size: .9375rem; letter-spacing: normal; text-transform: none; }
.privacy-toc {
  margin-block: 32px;
  padding: clamp(16px, 3vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.privacy-document h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; }
.privacy-document :is(ol, ul) { padding-inline-start: 1.5em; }
.privacy-document a { color: var(--green); }
.privacy-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 8px;
}
.privacy-toc a { display: inline-flex; align-items: center; min-height: 44px; }
.privacy-document section { padding-block: 24px; border-top: 1px solid var(--line); }
.privacy-document section > :is(p, ul) { margin-top: 12px; }
.privacy-document section li + li { margin-top: 4px; }
.privacy-safety { border-inline-start: 2px solid var(--green); padding-inline-start: 12px; }

@media (max-width: 560px) {
  .privacy-toc ol { grid-template-columns: minmax(0, 1fr); }
}

/* Impresión */
@media print {
  .site-header, .dock, .studio-controls, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  html:has(.privacy-page) { background: #fff; }
  .privacy-page .skip, .privacy-page .site-footer, .privacy-toc { display: none; }
  .privacy-document, .privacy-draft { background: #fff; color: #000; }
  .privacy-document { padding: 0; font-size: 11pt; line-height: 1.45; }
  .privacy-inner { width: auto; max-width: none; }
  .privacy-draft { padding: 0; transform: none; }
  .privacy-heading h1 { font-size: 22pt; }
  .privacy-document h2 { font-size: 14pt; break-after: avoid; }
  .privacy-document section { padding-block: 10pt; border: 0; }
  .privacy-document a { color: inherit; }
  .privacy-document :is(p, li) { orphans: 3; widows: 3; }
}

/* fichas v2 */
.vehicle-cash, .vehicle-photo-label { font-size: .9375rem; color: var(--ink-soft); }
.vehicle-ref, .ficha { overflow-wrap: anywhere; }
.ficha-link, .ficha a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; }
.ficha-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); }
body:has(.ficha) { background: var(--paper); color: var(--ink); }
.ficha { padding-block: clamp(32px, 5vw, 72px); }
.ficha h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 24px; }
.ficha h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 12px; }
.ficha-condicion { margin-top: 24px; color: var(--ink-soft); }
.ficha-principal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); }
.ficha figure { margin: 0 0 12px; }
.ficha figure img, .ficha-maqueta svg { display: block; width: 100%; height: auto; background: var(--photo-bg); }
.ficha figcaption { color: var(--ink-soft); font-size: .9375rem; }
.ficha section { padding-block: 24px; border-top: 1px solid var(--line); }
.ficha-precios p { margin-bottom: 14px; }
.ficha-precios strong { font-size: 1.375rem; }
.ficha ul { padding-inline-start: 1.4em; }
.ficha dl > div { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 8px; }
.ficha dt { font-weight: 700; }
.ficha dd { margin: 0; }
.ficha dl + p { margin-top: 12px; }
@media (max-width: 700px) {
  .ficha-principal { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  /* Galería deslizable en celular: una foto por pantalla, la siguiente asoma; la última es «Ver más de esta unidad». */
  .ficha-galeria:has(.ficha-mas) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .ficha-galeria:has(.ficha-mas) > figure, .ficha-galeria:has(.ficha-mas) > .ficha-mas { flex: 0 0 88%; margin: 0; scroll-snap-align: center; }
  .ficha-galeria:has(.ficha-mas) > .ficha-mas { display: flex; flex-direction: column; justify-content: center; }
}
/* Jerarquía del precio: lista grande, contado mediano, fuente pequeña. */
.ficha .ficha-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.ficha-chips li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; color: var(--ink-soft); }
.ficha-usos { margin: 0 0 20px; color: var(--ink-soft); }
.ficha .precio { margin: 0 0 6px; }
.ficha .precio-etiqueta { display: block; font-size: .9375rem; color: var(--ink-soft); }
.ficha .precio--principal strong { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; }
.ficha .precio--secundario strong { font-size: 1.375rem; }
.ficha .precio-fuente { margin: 8px 0 14px; font-size: .8125rem; color: var(--ink-soft); }
/* Columna derecha: precio, botón y resumen técnico primero; las leyendas, pequeñas y al final. */
.ficha-lateral { min-width: 0; }
.ficha-lateral > section:first-child { border-top: 0; padding-top: 0; }
.ficha .ficha-nota { margin: 0 0 14px; font-size: .8125rem; color: var(--ink-soft); }
.ficha .ficha-aviso { margin: 4px 0 0; font-size: .75rem; line-height: 1.4; color: var(--ink-soft); }
.ficha .ficha-fuentes { font-size: .8125rem; color: var(--ink-soft); }
.ficha .ficha-asterisco { margin: 8px 0 0; font-size: .8125rem; line-height: 1.4; color: var(--ink-soft); }
.ficha .ficha-resumen h3 { font-size: 1.0625rem; margin: 18px 0 6px; }
.ficha .ficha-resumen dl > div { padding-block: 6px; }
.ficha .ficha-resumen dt, .ficha .ficha-resumen dd { font-size: .9375rem; }
.ficha .ficha-lista { margin: 0 0 6px; font-size: .9375rem; }
.ficha .ficha-lista li { margin: 0 0 3px; }
.ficha .ficha-mas-equipo { margin: 0 0 8px; font-size: .9375rem; }
.ficha .ficha-mas-equipo summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; min-height: 32px; }
/* Tarjeta «Ver más de esta unidad» al final de la galería. */
.ficha-mas { padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.ficha-mas-titulo { font-weight: 700; font-size: 1.125rem; margin: 0 0 8px; }
.ficha-mas ul { list-style: none; padding: 0; margin: 0 0 8px; }
.ficha-mas li { margin: 0; }
.ficha-mas a { display: inline-flex; align-items: center; min-height: 44px; }
/* La foto y el nombre de la tarjeta también abren la ficha. */
.vehicle-photo-link { display: block; width: 100%; height: 100%; color: inherit; }
/* La fila de la cuadrícula mide lo mismo que el recuadro (200 px): sin esto una foto 4:3 lo desborda y pisa el título. */
.vehicle-photo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
/* Foto real de la unidad: rectangular, llena el recuadro sin desbordar ni mezclarse con el fondo. */
.vehicle-img--real { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.vehicle-name-link { color: inherit; text-decoration: none; }
.vehicle-name-link:hover, .vehicle-name-link:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
