/* Baterías AYC — dirección "One motif": la silueta de la batería (caja + dos bornes)
   es la máscara de las fotos, la forma del botón, la viñeta de las listas y la banda de carga.
   Colores tomados del objeto: amarillo de advertencia/energía, negro de la carcasa, rojo del borne +. */

@font-face { font-family: "Gontserrat"; src: url("../fonts/gontserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gontserrat"; src: url("../fonts/gontserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gontserrat"; src: url("../fonts/gontserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }   /* tipografía del logo (OFL) */

:root {
  --bg: #f3f5f8;          /* gris azulado claro: el campo */
  --surface: #e3e9ef;
  --surface-2: #cdd8e2;
  --ink: #123352;         /* azul marino del escudo: texto y bloques */
  --muted: #45586c;
  --charge: #fcd017;      /* amarillo del borde del escudo: acción y carga */
  --charge-hover: #f8ae15;   /* naranja del rayo */
  --accent: var(--charge);
  --accent-ink: #123352;
  --plus: #f8ae15;        /* borne + en el naranja del rayo */
  --paper: #ffffff;
  --paper-2: #edf1f5;
  --paper-muted: #45586c;
  --lead: #19466c;
  --ok: #157a46;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.9rem, 0.6rem + 3.5vw, 4.25rem);
  --step-display: clamp(3rem, 0.4rem + 8.4vw, 9rem);

  --font-display: "Gontserrat", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-text: "Gontserrat", "Montserrat", "Segoe UI", system-ui, sans-serif;

  --margin: clamp(16px, 2.4vw, 32px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 13vw, 200px);
  --post: 6px;
  --header-h: 88px;       /* alto de la barra superior (el logo se escala con ella) */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* El motivo: caja con dos bornes arriba (en % del elemento) */
  --battery: polygon(0 7%, 12% 7%, 12% 0, 26% 0, 26% 7%, 74% 7%, 74% 0, 88% 0, 88% 7%, 100% 7%, 100% 100%, 0 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.022em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .field-dark :focus-visible { outline-color: var(--bg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 8px; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--section); }
.field-white { background: var(--paper); }
.field-dark { background: var(--ink); color: var(--bg); }
.h2 { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.field-white .muted { color: var(--paper-muted); }
.num { font-variant-numeric: tabular-nums; }

/* ── El motivo como máscara de foto ── */
.motif { position: relative; clip-path: var(--battery); background: var(--ink); }
.motif img { width: 100%; height: 100%; object-fit: cover; }
.motif::before, .motif::after { content: ""; position: absolute; top: 0; height: 7.2%; width: 14%; z-index: 2; }
.motif::before { left: 12%; background: var(--ink); }   /* borne − */
.motif::after { left: 74%; background: var(--plus); }   /* borne + */

/* ── Botón con forma de batería: dos bornes arriba, el + en rojo ── */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: calc(var(--h) + var(--post));
  padding: calc(var(--post) + 2px) 26px 0;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--font-text);
  text-decoration: none;
  clip-path: polygon(0 var(--post), 14px var(--post), 14px 0, 32px 0, 32px var(--post), calc(100% - 32px) var(--post), calc(100% - 32px) 0, calc(100% - 14px) 0, calc(100% - 14px) var(--post), 100% var(--post), 100% 100%, 0 100%);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.btn::before { content: ""; position: absolute; top: 0; left: 14px; width: 18px; height: var(--post); background: var(--ink); }
.btn::after { content: ""; position: absolute; top: 0; right: 14px; width: 18px; height: var(--post); background: var(--plus); transition: transform 200ms var(--ease-out); transform-origin: bottom; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--charge-hover); }
  .btn:hover::after { transform: scaleY(1.6); }
}
.btn-light { background: var(--charge); color: var(--ink); }
.btn-light::after { background: var(--plus); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--charge-hover); } }
.btn-quiet { background: var(--paper-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-quiet:hover { background: #dfe6ed; } }
.btn-sm { --h: 40px; padding-inline: 18px; font-size: var(--step-small); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.btn .wa-icon { width: 20px; height: 20px; flex: none; }

.link { font-weight: 500; text-decoration: underline; }
.link-plain { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .link-plain:hover { text-decoration: underline; } }

/* viñeta: una batería diminuta */
.cells { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cells li { position: relative; padding-left: 26px; }
.cells li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 11px; background: currentColor;
  clip-path: polygon(0 22%, 14% 22%, 14% 0, 36% 0, 36% 22%, 64% 22%, 64% 0, 86% 0, 86% 22%, 100% 22%, 100% 100%, 0 100%);
}

/* ── Franja: la pila de Volta (discos alternados) ── */
.stripe { display: block; width: 100%; height: 56px; color: var(--ink); }
.stripe-sm { height: 8px; }

/* ── Encabezado ── */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); transition: transform 240ms var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .bar { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); min-height: var(--header-h); padding-inline: var(--margin); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 var(--step-lead)/1 var(--font-text); letter-spacing: 0.02em; }
.wordmark .mark { width: auto; height: calc(var(--header-h) - 18px); }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--step-small); font-weight: 500; padding-block: 8px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; } }
.header-search { position: relative; width: min(320px, 26vw); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.quote-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; font-size: var(--step-small); font-weight: 500; padding: 8px 4px; }
.quote-toggle .count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--ink); color: var(--bg); font-size: var(--step-small); }
.quote-toggle .count[data-n="0"] { background: var(--surface-2); color: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; margin-right: -10px; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ── Campo de búsqueda + autocompletado ── */
.search { position: relative; }
.search input {
  width: 100%; height: 48px; border: 0; padding: 0 44px 0 16px;
  background: var(--paper); color: var(--ink); border-radius: 0; font-size: max(16px, var(--step-body)); appearance: none;
}
.search input::placeholder { color: var(--paper-muted); }
.search .search-icon { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--paper); color: var(--ink); list-style: none; margin: 0; padding: 6px;
  box-shadow: 0 18px 50px rgba(10, 30, 50, 0.22); /* taste-skill-ignore: capa flotante */
  transform-origin: top center;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.suggest[hidden] { display: block; opacity: 0; transform: scale(0.98) translateY(-4px); pointer-events: none; visibility: hidden; }
.suggest a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; text-decoration: none; }
.suggest a[aria-selected="true"], .suggest a:focus-visible { background: var(--paper-2); outline: none; }
@media (hover: hover) and (pointer: fine) { .suggest a:hover { background: var(--paper-2); } }
.suggest .s-name { font-weight: 500; font-size: var(--step-small); }
.suggest .s-meta { grid-column: 1; font-size: var(--step-small); color: var(--paper-muted); }
.suggest .s-price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.suggest .s-empty { padding: 12px; font-size: var(--step-small); color: var(--paper-muted); }
.suggest .s-all { display: block; padding: 10px 12px; font-size: var(--step-small); font-weight: 500; }


/* ── Buscador (Square plate, spare text) ── */
.finder { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.finder-plate { display: grid; place-items: center; padding: 40px; }
.finder-plate .motif { width: 100%; aspect-ratio: 1; }
.finder-plate .motif img { position: absolute; inset: 0; transition: opacity 400ms ease; }
.finder-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px var(--margin) 40px 40px; }
@media (hover: hover) and (pointer: fine) { .tabs button:hover { color: var(--ink); } }
.finder h2 { font-size: var(--step-head); max-width: 14ch; }
.finder .desc { margin-top: 28px; max-width: 40ch; }
.finder-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 0 22px; text-decoration: none; font-weight: 500; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.cell-action:active { transform: scale(0.98); }
.cell-action.ink { background: var(--ink); color: var(--bg); }
.cell-action.tone { background: var(--paper-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cell-action.ink:hover { background: var(--lead); } .cell-action.tone:hover { background: #dfe6ed; } }
.cell-action svg { width: 22px; height: 22px; flex: none; }

/* Fila de producto (lista compacta tipo etiqueta) */
.row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 16px; align-items: center;
  padding: 12px 14px; background: var(--paper-2); text-decoration: none;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.row:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .row:hover { background: #e5ebf1; } }
.row .battery-art { width: 64px; height: auto; }
.row .r-name { font-weight: 500; line-height: 1.25; }
.row .r-meta { font-size: var(--step-small); color: var(--paper-muted); }
.row .r-price { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }

/* ── Especímenes sobre baldosas de color ── */
.specimens .grid { align-items: start; }
.specimens .intro { grid-column: 1 / span 4; position: sticky; top: 100px; }
.specimens .intro h2 { font-size: var(--step-head); }
.specimens .intro p { margin-top: 24px; max-width: 30ch; }
.tiles { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { display: block; text-decoration: none; }
.tile .face { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 10%; transition: transform 240ms var(--ease-out); }
.tile.wide { grid-column: span 2; }
.tile.wide .face { aspect-ratio: 8 / 5; }
.tile .face .motif { width: 92%; height: 70%; }
.tile.wide .face .motif { width: 62%; height: 78%; }
/* Marca propia: sus baterías de carro y solar (foto si existe, si no el dibujo con su etiqueta) */
.tile .face.own-showcase { display: flex; align-items: center; justify-content: center; gap: 4%; padding: 6% 5%; }
.own-showcase .own-item { flex: 0 1 47%; display: block; }
.own-showcase .own-item svg, .own-showcase .own-item img { display: block; width: 100%; height: auto; }
.own-showcase > img { width: 72%; height: auto; }
.tile .t-name { display: block; margin-top: 12px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.tile .t-fact { display: block; margin-top: 4px; color: var(--muted); }
.tile:nth-child(3n+1) .face { background: var(--paper); }
.tile:nth-child(3n+2) .face { background: var(--surface); }
.tile:nth-child(3n) .face { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tile:hover .face { transform: translateY(-4px); } }

/* ── Banda de carga (la batería a todo lo ancho) ── */
.charge { padding-block: clamp(72px, 9vw, 140px); }
.charge-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: 40px; }
.charge-head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.charge-head p { grid-column: 9 / span 4; }
.charge-battery { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; padding: 14px; background: var(--lead); margin-top: 26px; }
.charge-battery::before, .charge-battery::after { content: ""; position: absolute; top: -26px; width: 9%; height: 26px; }
.charge-battery::before { left: 10%; background: var(--paper-muted); }
.charge-battery::after { right: 10%; background: var(--plus); }
.charge-cell { height: clamp(64px, 10vw, 150px); background: #1e4469; position: relative; overflow: hidden; }
.charge-cell span { position: absolute; inset: 0; background: var(--charge); transform-origin: left; transform: scaleX(1); }
.charge-cell.empty span { transform: scaleX(0); }
.charge-scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; padding: 10px 14px 0; font-size: var(--step-small); }
.charge-scale span:nth-child(8) { font-weight: 500; }
.charge-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }

/* ── Cómo funciona: acordeón horizontal de paneles teñidos ── */
.howto .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.howto .head h2 { grid-column: 1 / span 5; font-size: var(--step-head); }
.howto .head p { grid-column: 7 / span 5; font-size: var(--step-body); }
.stages { display: flex; height: 520px; margin-top: 64px; }
.stage { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border: 0; padding: 0; text-align: left; cursor: pointer; transition: flex-grow 450ms var(--ease-in-out); }
.stage[data-open="true"] { flex-grow: 5.5; cursor: default; }
.stage:nth-child(1) { background: #123352; color: var(--bg); }
.stage:nth-child(2) { background: #19466c; color: var(--bg); }
.stage:nth-child(3) { background: #2c5d86; color: var(--bg); }
.stage:nth-child(4) { background: #c4d1dd; color: var(--ink); }
.stage:nth-child(5) { background: var(--charge); color: var(--ink); }
.stage .s-label { position: absolute; left: 22px; bottom: 22px; font: 500 var(--step-lead)/1 var(--font-text); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; transition: opacity 200ms ease; }
.stage .s-open { position: absolute; inset: 0; padding: 32px; display: grid; grid-template-columns: 1fr 0.9fr; gap: 24px; opacity: 0; transform: translateY(12px); transition: opacity 300ms ease 120ms, transform 400ms var(--ease-out) 120ms; pointer-events: none; }
.stage[data-open="true"] .s-open { opacity: 1; transform: none; pointer-events: auto; }
.stage[data-open="true"] .s-label { opacity: 0; }
.stage .s-open h3 { font-size: var(--step-lead); }
.stage .s-open p { align-self: end; max-width: 36ch; font-size: var(--step-body); }
.stage .s-text { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.stage .s-pic { min-width: 0; }
.stage .s-pic .motif { height: 100%; }

/* ── Precios como cartel ── */
.poster h2 { font-size: var(--step-lead); font-family: var(--font-text); font-weight: 500; letter-spacing: 0; margin-bottom: 40px; }
.poster-list { list-style: none; margin: 0; padding: 0; }
.poster-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; text-decoration: none; transition: color 200ms ease; }
.poster-list .p-word { font: 800 var(--step-display)/0.92 var(--font-display); letter-spacing: -0.03em; text-transform: lowercase; }
.poster-list .p-fact { font-size: var(--step-lead); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .poster-list a:hover { color: var(--plus); } }

/* ── FAQ: fichas con pestaña, archivadas como en un cajón ── */
.faq .grid > * { grid-column: 3 / span 8; }
.faq h2 { font-size: var(--step-head); margin-bottom: 56px; }
.cards { display: grid; }
.cards .card { position: relative; margin-top: -24px; padding-top: 40px; }
.cards .card:first-child { margin-top: 0; }
.cards .card .tab {
  position: absolute; top: 0; height: 40px; width: 200px; display: flex; align-items: center; padding: 0 18px;
  font-size: var(--step-body); font-weight: 500; left: calc(var(--i) * min(150px, (100% - 200px) / (var(--n, 6) - 1)));
}
.cards .card .body { padding: 22px 28px 26px; }
.cards .card:nth-child(3n+1) .tab, .cards .card:nth-child(3n+1) .body { background: var(--paper); }
.cards .card:nth-child(3n+2) .tab, .cards .card:nth-child(3n+2) .body { background: var(--surface); }
.cards .card:nth-child(3n) .tab, .cards .card:nth-child(3n) .body { background: var(--ink); color: var(--bg); }
.cards .card button { all: unset; display: block; width: 100%; cursor: pointer; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; }
.cards .card button:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
.cards .card .answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.cards .card .answer > div { overflow: hidden; }
.cards .card .answer p { max-width: 54ch; padding-top: 14px; font-size: var(--step-body); }
.cards .card[data-open="true"] .answer { grid-template-rows: 1fr; }

/* ── Cierre: la baldosa de acción ── */
.cta-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-inline: calc(var(--margin) * -1); }
.cta-row > * { height: 380px; }
.cta-flank-a { grid-column: 1 / span 2; overflow: hidden; }
.cta-flank-a img { width: 100%; height: 100%; object-fit: cover; }
.cta-main { grid-column: 3 / span 8; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px clamp(32px, 4vw, 64px); }
.cta-main h2 { font-size: var(--step-head); }
.cta-main p { margin-top: 18px; max-width: 46ch; }
.cta-main .btn { margin-top: 30px; }
.cta-flank-b { grid-column: 11 / span 2; background: var(--charge); }

/* ── Pie: la marca construida con celdas ── */
.site-footer { background: var(--ink); color: var(--bg); padding: 0 var(--margin) 28px; }
.footer-mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; padding-top: 72px; }
.footer-mark .block { flex: 1; height: var(--h); background: var(--bg); color: var(--ink); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; transform-origin: bottom; }
.footer-mark .block:nth-child(2) { background: var(--surface-2); }
.footer-mark .block:nth-child(4) { background: var(--charge); color: var(--ink); }
.footer-mark .block span { font: 800 clamp(4rem, 15vw, 15rem)/0.78 var(--font-display); letter-spacing: -0.04em; transform: translateY(0.06em); }
.footer-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 56px; row-gap: 32px; }
.footer-cols nav { grid-column: span 2; display: grid; gap: 10px; align-content: start; font-size: var(--step-small); }
.footer-cols nav h3, .footer-contact h3 { font: 500 var(--step-small)/1.3 var(--font-text); letter-spacing: 0; color: var(--paper); margin-bottom: 4px; }
.footer-cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-cols a:hover { text-decoration: underline; } }
.footer-contact { grid-column: 9 / span 4; display: grid; gap: 10px; font-size: var(--step-small); align-content: start; }
.footer-last { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }

/* ── Catálogo ── */
.page-head { padding: clamp(40px, 6vw, 88px) var(--margin) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; row-gap: 20px; }
.page-head h1 { grid-column: 1 / span 7; font-size: var(--step-head); }
.page-head .intro { grid-column: 8 / span 5; }
.crumbs { grid-column: 1 / -1; font-size: var(--step-small); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs span[aria-hidden] { opacity: 0.6; }
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 3vw, 48px); padding: 0 var(--margin) var(--section); align-items: start; }
.filters { position: sticky; top: 92px; display: grid; gap: 26px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.filters legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.chip-radio { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; background: var(--surface); cursor: pointer; font-size: var(--step-small); transition: background-color 150ms ease; }
.chip-radio:has(input:checked) { background: var(--ink); color: var(--bg); }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip-radio .c { font-variant-numeric: tabular-nums; font-size: var(--step-small); opacity: 0.8; }
.filters select { width: 100%; height: 44px; border: 0; background: var(--paper); padding: 0 12px; border-radius: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar .search { flex: 1; min-width: 240px; max-width: 520px; }
.products { display: grid; gap: 8px; }
.product-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px 28px; align-items: center;
  background: var(--paper); padding: 18px 22px; position: relative;
}
.product-row .art { display: block; }
.product-row .art .battery-art { width: 150px; }
.product-row h2, .product-row h3 { font: 500 var(--step-body)/1.25 var(--font-text); letter-spacing: 0; }
.product-row h2 a, .product-row h3 a { text-decoration: none; }
.product-row h2 a::after, .product-row h3 a::after { content: ""; position: absolute; inset: 0; }
.product-row .specs { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--step-small); color: var(--paper-muted); }
.product-row .fit { margin-top: 8px; font-size: var(--step-small); }
.product-row .buy { display: grid; justify-items: end; gap: 10px; position: relative; z-index: 2; }
.product-row .price { font: 500 var(--step-lead)/1 var(--font-text); font-variant-numeric: tabular-nums; }
.product-row .before { font-size: var(--step-small); color: var(--paper-muted); text-decoration: line-through; }
.badge-line { display: inline-block; font-size: var(--step-small); font-weight: 500; margin-bottom: 6px; }
.badge-line.propia { color: var(--ink); background: var(--charge); padding: 2px 8px; }
.badge-line.usada { color: var(--paper); background: var(--lead); padding: 2px 8px; }
.badge-line.nueva { color: var(--ink); background: var(--paper-2); padding: 2px 8px; }
.health { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
.health i { width: 6px; height: 12px; background: #d5dde5; }
.health i.on { background: var(--ok); }
.add-quote { border: 0; background: var(--paper-2); padding: 10px 14px; font-size: var(--step-small); font-weight: 500; transition: transform 160ms var(--ease-out), background-color 200ms ease; display: inline-flex; gap: 8px; align-items: center; }
.add-quote:active { transform: scale(0.97); }
.add-quote[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .add-quote:hover { background: #dfe6ed; } .add-quote[aria-pressed="true"]:hover { background: var(--lead); } }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; text-decoration: none; background: var(--surface); font-variant-numeric: tabular-nums; }
.pager [aria-current="page"] { background: var(--ink); color: var(--bg); }
.load-more { display: flex; justify-content: center; margin-top: 20px; }
.empty-state { background: var(--paper); padding: 40px; display: grid; gap: 16px; justify-items: start; }

/* Skeletons: misma silueta que el contenido final */
.skeleton { background: var(--paper); padding: 18px 22px; display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: center; }
.skeleton i { display: block; background: var(--paper-2); position: relative; overflow: hidden; }
.skeleton i::after { content: ""; position: absolute; inset: 0; background: #e7edf3; transform: translateX(-100%); animation: shimmer 1.1s var(--ease-in-out) infinite; }
.skeleton .sk-art { width: 150px; height: 110px; clip-path: var(--battery); }
.skeleton .sk-lines { display: grid; gap: 10px; }
.skeleton .sk-lines i:nth-child(1) { height: 20px; width: 70%; }
.skeleton .sk-lines i:nth-child(2) { height: 14px; width: 50%; }
.skeleton .sk-lines i:nth-child(3) { height: 14px; width: 40%; }
.skeleton .sk-price { width: 110px; height: 28px; }
.row.skeleton { grid-template-columns: 64px 1fr auto; padding: 12px 14px; gap: 16px; background: var(--paper-2); }
.row.skeleton .sk-art { width: 64px; height: 48px; }
.row.skeleton i::after { background: #dde5ec; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ── Ficha de producto ── */
.product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--margin) var(--section); row-gap: 48px; }
.product-stage { grid-column: 1 / span 6; background: var(--surface); display: grid; place-items: center; padding: clamp(32px, 6vw, 88px); position: sticky; top: 92px; align-self: start; min-height: 520px; }
.product-stage .battery-art { width: min(100%, 520px); }
.product-info { grid-column: 8 / span 5; display: grid; gap: 28px; align-content: start; }
.product-info h1 { font-size: var(--step-head); }
.price-block { display: grid; gap: 6px; }
.price-block .price { font: 500 var(--step-head)/1 var(--font-text); font-variant-numeric: tabular-nums; }
.price-block .core { font-size: var(--step-small); color: var(--muted); }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid rgba(10, 30, 50, 0.16); font-weight: 400; vertical-align: top; }
.spec-table th { color: var(--muted); width: 46%; padding-right: 16px; }
.spec-table td { font-variant-numeric: tabular-nums; font-weight: 500; }
.health-meter { display: grid; gap: 8px; background: var(--paper); padding: 18px; }
.health-meter .bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.health-meter .bar i { height: 22px; background: var(--paper-2); }
.health-meter .bar i.on { background: var(--ok); }
.related { grid-column: 1 / -1; }
.related h2 { font-size: var(--step-head); margin-bottom: 24px; }

/* ── Cajón de cotización ── */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 30, 50, 0.45); opacity: 0; transition: opacity 300ms ease; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 420ms var(--ease-drawer);
  box-shadow: -24px 0 60px rgba(10, 30, 50, 0.2); /* taste-skill-ignore: capa flotante */
}
.drawer.is-open { transform: none; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--bg); }
.drawer-head h2 { font: 500 var(--step-lead)/1.2 var(--font-text); letter-spacing: 0; }
.icon-btn { border: 0; background: transparent; width: 44px; height: 44px; display: inline-grid; place-items: center; margin-right: -10px; transition: transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; display: grid; gap: 18px; align-content: start; overscroll-behavior: contain; }
.q-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--paper-2); padding: 10px 12px; transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.q-item.is-leaving { opacity: 0; transform: translateX(16px); }
.q-item .battery-art { width: 56px; }
.q-item .q-name { font-size: var(--step-small); font-weight: 500; line-height: 1.25; }
.q-item .q-price { font-size: var(--step-small); color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; background: var(--paper); }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; font-size: var(--step-body); }
.stepper button:active { transform: scale(0.92); }
.stepper output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.q-empty { padding: 28px 0; display: grid; gap: 14px; justify-items: start; }
.q-empty[hidden] { display: none; }
.q-form { display: grid; gap: 12px; }
.q-form label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.q-form input, .q-form select { height: 46px; border: 0; background: var(--paper-2); padding: 0 12px; font-size: max(16px, var(--step-body)); border-radius: 0; }
.toggle-core { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step-small); background: var(--paper-2); padding: 12px; }
.toggle-core input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.drawer-foot { padding: 16px 22px 22px; background: var(--paper-2); display: grid; gap: 12px; }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.totals strong { font-size: var(--step-lead); font-weight: 500; }
.hp { position: absolute; left: -9999px; }

/* ── Toasts: mensajes dentro de la app ── */
.toaster { position: fixed; z-index: 120; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--ink); color: var(--paper); font-size: var(--step-small);
  box-shadow: 0 16px 40px rgba(10, 30, 50, 0.3); /* taste-skill-ignore: capa flotante */
  transition: opacity 400ms ease, transform 400ms var(--ease-out);
}
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast.is-leaving { opacity: 0; transform: translateY(40%); transition-duration: 200ms; }
.toast .t-dot { width: 10px; height: 10px; flex: none; background: var(--charge); }
.toast.error .t-dot { background: var(--plus); }
.toast.ok .t-dot { background: #2fbf71; }
.toast .t-msg { flex: 1; }
.toast button, .toast a { border: 0; background: var(--charge); color: var(--ink); padding: 7px 12px; font-size: var(--step-small); font-weight: 500; text-decoration: none; white-space: nowrap; }

/* ── Diálogo (en lugar de alert/confirm) ── */
.dialog { border: 0; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(10, 30, 50, 0.35); /* taste-skill-ignore: capa flotante */ }
.dialog::backdrop { background: rgba(10, 30, 50, 0.5); }
.dialog[open] { animation: dialog-in 220ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: scale(0.96); } }
.dialog .d-body { padding: 26px; display: grid; gap: 14px; }
.dialog h2 { font: 500 var(--step-lead)/1.2 var(--font-text); letter-spacing: 0; }
.dialog .d-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 0 26px 26px; }

/* ── Lanzador del asesor IA y barra móvil ── */
.mobile-bar { display: none; }

/* Panel del chat */
.chat {
  position: fixed; z-index: 90; right: var(--margin); bottom: max(20px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100svh - 120px));
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(10, 30, 50, 0.35); /* taste-skill-ignore: capa flotante */
  transform-origin: bottom right; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out);
}
.chat[hidden] { display: flex; opacity: 0; transform: scale(0.96) translateY(8px); pointer-events: none; visibility: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--bg); }
.chat-head h2 { font: 500 var(--step-body)/1.2 var(--font-text); letter-spacing: 0; flex: 1; }
.chat-head .icon-btn { color: var(--bg); }
.chat-head a { color: var(--bg); font-size: var(--step-small); font-weight: 500; }
.chat-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; font-size: var(--step-body); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--surface); }
.msg.assistant { align-self: flex-start; background: var(--paper-2); }
.msg.assistant a { font-weight: 500; }
.msg.typing::after { content: ""; display: inline-block; width: 8px; height: 14px; margin-left: 2px; background: currentColor; vertical-align: -2px; animation: caret 900ms steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-suggest button { border: 0; background: var(--paper-2); padding: 8px 12px; font-size: var(--step-small); transition: transform 160ms var(--ease-out); }
.chat-suggest button:active { transform: scale(0.97); }
.chat-form { display: flex; gap: 8px; padding: 12px; background: var(--paper-2); }
.chat-form input { flex: 1; height: 46px; border: 0; padding: 0 12px; background: var(--paper); font-size: max(16px, var(--step-body)); border-radius: 0; }
.chat-form button { width: 46px; height: 46px; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform 160ms var(--ease-out); }
.chat-form button:active { transform: scale(0.94); }
.chat-form button svg { width: 20px; height: 20px; }

/* ── Consentimiento de cookies (dentro de la app) ── */
.consent { position: fixed; z-index: 75; left: var(--margin); bottom: max(20px, env(safe-area-inset-bottom)); width: min(460px, calc(100vw - 32px)); background: var(--paper); padding: 18px; display: grid; gap: 12px; box-shadow: 0 18px 50px rgba(10, 30, 50, 0.25); /* taste-skill-ignore: capa flotante */ font-size: var(--step-small); }
.consent[hidden] { display: none; }
.consent .c-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Error / vacío ── */
.error-page { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 70svh; }
.error-page .text { grid-column: 1 / span 6; display: grid; gap: 24px; justify-items: start; }
.error-page h1 { font-size: var(--step-head); }
.error-page .motif { grid-column: 8 / span 5; aspect-ratio: 1; }

/* ── Entradas con movimiento (solo si hay JS y se permite el movimiento) ── */
.js-motion [data-reveal] > * { opacity: 0; transform: translateY(24px); }
.js-motion [data-reveal].is-in > * { opacity: 1; transform: none; transition: opacity 600ms ease, transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 75ms); }

/* ── Tableta ── */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-search { width: auto; flex: 1; max-width: 380px; margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .nav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 8px var(--margin) 20px; gap: 0; }
  .nav.is-open a { padding: 14px 0; font-size: var(--step-body); }
  .specimens .intro { grid-column: 1 / -1; position: static; margin-bottom: 36px; }
  .tiles { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .product-stage { grid-column: 1 / -1; position: static; min-height: 0; }
  .product-info { grid-column: 1 / -1; }
  .faq .grid > * { grid-column: 1 / -1; }
  .footer-cols nav { grid-column: span 3; }
  .footer-contact { grid-column: 1 / -1; }
}

/* ── Teléfono: composición propia ── */
@media (max-width: 760px) {
  :root { --post: 5px; --header-h: 70px; }
  .site-header .bar { min-height: var(--header-h); gap: 10px; }
  .header-search { display: none; }
  .header-actions .btn { display: none; }
  .finder { grid-template-columns: 1fr; min-height: 0; }
  .finder-plate { padding: 16px; }
  .finder-side { padding: 8px 16px 40px; gap: 28px; }
  .finder-actions { grid-template-columns: 1fr; }
  .cell-action { min-height: 60px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile.wide { grid-column: 1 / -1; order: -1; }
  .tile .t-name { font-size: var(--step-body); }
  .tile .t-fact { font-size: var(--step-small); }
  .charge-head h2, .charge-head p { grid-column: 1 / -1; }
  .charge-head p { margin-top: 16px; }
  .charge-battery { gap: 4px; padding: 8px; }
  .charge-scale { gap: 4px; padding-inline: 8px; font-size: var(--step-small); }
  .charge-scale span:not(:nth-child(1)):not(:nth-child(5)):not(:nth-child(8)):not(:nth-child(10)) { visibility: hidden; }
  .howto .head h2, .howto .head p { grid-column: 1 / -1; }
  .howto .head p { margin-top: 16px; }
  .stages { flex-direction: column; height: auto; margin-top: 36px; }
  .stage { flex: none; min-height: 64px; }
  .stage .s-label { writing-mode: horizontal-tb; transform: none; top: 22px; bottom: auto; font-size: var(--step-body); }
  .stage .s-open { position: relative; display: none; grid-template-columns: 1fr; padding: 22px; opacity: 1; transform: none; }
  .stage[data-open="true"] .s-open { display: grid; }
  .stage .s-pic { display: none; }
  .stage .s-open h3 { font-size: var(--step-lead); }
  .stage .s-open p { font-size: var(--step-body); margin-top: 12px; }
  .poster-list a { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
  .poster-list .p-word { font-size: 15vw; }
  .poster-list .p-fact { font-size: var(--step-small); }
  .cards .card .tab { width: 120px; left: calc(var(--i) * min(48px, (100% - 120px) / (var(--n, 6) - 1))); font-size: var(--step-small); padding: 0 12px; }
  .cards .card .body { padding: 18px 20px 22px; }
  .cards .card button { font-size: var(--step-body); }
  .faq h2 { margin-bottom: 36px; }
  .cta-row { grid-template-columns: 1fr 1fr; margin-inline: 0; gap: 8px; }
  .cta-main { grid-column: 1 / -1; height: auto; min-height: 300px; padding: 32px 22px; }
  .cta-main h2 { font-size: var(--step-lead); }
  .cta-row > .cta-flank-a, .cta-row > .cta-flank-b { grid-column: auto; height: 120px; }
  .footer-mark { height: 22svh; min-height: 150px; padding-top: 48px; }
  .footer-cols nav { grid-column: span 6; }
  .footer-last { flex-direction: column; align-items: flex-start; }
  .page-head h1, .page-head .intro { grid-column: 1 / -1; }
  .product-row { grid-template-columns: 84px 1fr; padding: 16px; gap: 12px 16px; }
  .product-row .art .battery-art { width: 84px; }
  .product-row .buy { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: start; align-items: center; }
  .product-row .buy .price-wrap { grid-row: 1 / span 2; }
  .skeleton { grid-template-columns: 84px 1fr; }
  .skeleton .sk-art { width: 84px; height: 64px; }
  .skeleton .sk-price { display: none; }
  .error-page .text, .error-page .motif { grid-column: 1 / -1; }
  .error-page .motif { margin-top: 32px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr auto; gap: 8px; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom)); background: var(--bg);
  }
  .mobile-bar .btn { --h: 48px; width: 100%; }
  .mobile-bar .ask { border: 0; background: var(--ink); color: var(--bg); padding: 0 18px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; height: 53px; align-self: end; }
  body { padding-bottom: 76px; }
  .toaster { bottom: 88px; }
  .consent { bottom: 84px; }
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: 88svh; transform-origin: bottom center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js-motion [data-reveal] > * { transform: none; }
  .stage, .drawer, .chat, .suggest, .toast { transition-property: opacity, flex-grow; }
}

/* El nombre de cada etapa es un botón (accesible con teclado) */
.stage .s-label { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; text-align: left; }
.stage[data-open="true"] .s-label { pointer-events: none; }

/* Recibo en miniatura (fragmento real de la cotización en "Cómo comprar") */
.mini-receipt { height: 100%; background: var(--paper); color: var(--ink); padding: 22px; display: grid; align-content: start; gap: 10px; font-size: var(--step-small); }
.mini-receipt .mr-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; box-shadow: 0 2px 0 var(--ink); } /* taste-skill-ignore: data-ui */
.mini-receipt .mr-head .mark { width: auto; height: 32px; }
.mini-receipt .mr-head span { margin-left: auto; font-variant-numeric: tabular-nums; }
.mini-receipt .mr-row, .mini-receipt .mr-total { display: flex; justify-content: space-between; gap: 12px; }
.mini-receipt .mr-row.muted { color: var(--paper-muted); }
.mini-receipt .mr-total { font-weight: 500; font-size: var(--step-body); padding-top: 10px; box-shadow: 0 -2px 0 var(--ink); } /* taste-skill-ignore: data-ui */
.mini-receipt .mr-art { justify-self: end; width: 46%; margin-top: 6px; }
.site-footer { --mark-bar: var(--ink); }

/* ── Ajustes tras la inspección ── */
.tile .face { position: relative; overflow: hidden; min-height: 0; }
.stage .s-open { visibility: hidden; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); transition: opacity 300ms ease 120ms, transform 400ms var(--ease-out) 120ms, visibility 0s linear 450ms; }
.stage[data-open="true"] .s-open { visibility: visible; transition-delay: 120ms, 120ms, 0s; }
.stage .s-open h3 { max-width: 16ch; }
.footer-mark .block span { font-size: min(15vw, 25svh); }

.charge-scale span:last-child { justify-self: end; width: max-content; }
.mobile-bar { transition: transform 240ms var(--ease-out); }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (max-width: 1000px) {
  .finder { grid-template-columns: 1fr; min-height: 0; }
  .finder-plate { padding: 24px var(--margin) 0; }
  .finder-plate .motif { max-width: 560px; aspect-ratio: 4 / 3; margin-inline: auto; }
  .finder-side { padding: 32px var(--margin) 56px; }
}

/* ── Héroe: slider a pantalla completa. La pantalla es la batería: dos bornes arriba ── */
.hero {
  --post-h: 22px;
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100svh - var(--header-h)); min-height: 580px;
  color: var(--paper); background: var(--ink);
  clip-path: polygon(0 var(--post-h), 10% var(--post-h), 10% 0, 20% 0, 20% var(--post-h), 80% var(--post-h), 80% 0, 90% 0, 90% var(--post-h), 100% var(--post-h), 100% 100%, 0 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: 4; top: 0; width: 10%; height: var(--post-h); }
.hero::before { left: 10%; background: var(--ink); }    /* borne − */
.hero::after { left: 80%; background: var(--plus); }    /* borne + */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero-slide img { transform: scale(1.06); }
.js-motion .hero-slide.is-active img { animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.14) translateX(-1.5%); } }
/* Velo neutro bajo el texto: la única excepción a "sin gradientes" (scrim sobre foto) */
.hero-slides::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(18, 51, 82, 0.86) 0%, rgba(18, 51, 82, 0.62) 38%, rgba(18, 51, 82, 0.14) 72%, rgba(18, 51, 82, 0) 100%), linear-gradient(0deg, rgba(18, 51, 82, 0.82) 0%, rgba(18, 51, 82, 0) 32%); } /* taste-skill-ignore: velo bajo texto */
.hero-content { position: relative; z-index: 3; height: 100%; max-width: min(780px, 64vw); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: calc(var(--post-h) + 28px) var(--margin) 150px; }
.hero h1 { font-size: calc(var(--step-head) * 1.2); max-width: 19ch; }
.hero .lede { margin-top: 28px; max-width: 42ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-secondary { color: var(--paper); font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; }
@media (hover: hover) and (pointer: fine) { .hero-secondary:hover { color: var(--charge); } }
.hero-price { margin-top: 18px; font-size: var(--step-small); font-weight: 500; color: var(--surface-2); }
.hero-bar { position: absolute; z-index: 3; left: var(--margin); right: var(--margin); bottom: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 32px; }
.hero-caption { font-size: var(--step-small); max-width: 56ch; }
.hero-caption a { color: var(--charge); font-weight: 500; margin-left: 6px; text-underline-offset: 0.2em; }
.hero-controls { display: flex; align-items: flex-end; gap: 12px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { border: 0; background: none; padding: 10px 0 0; width: clamp(68px, 7vw, 108px); display: grid; gap: 9px; text-align: left; color: var(--surface-2); font: 500 var(--step-small)/1 var(--font-text); cursor: pointer; }
.hero-dots button[aria-selected="true"] { color: var(--paper); }
.hero-dots button:focus-visible { outline: 3px solid var(--charge); outline-offset: 4px; }
.dot-cell { display: block; height: 6px; background: #3d5f80; overflow: hidden; }
.dot-cell i { display: block; height: 100%; background: var(--charge); transform: scaleX(0); transform-origin: left; }
.hero-dots button[aria-selected="true"] .dot-cell i { animation: cell-fill var(--ms, 6000ms) linear forwards; }
.hero.is-paused .hero-dots button[aria-selected="true"] .dot-cell i { animation-play-state: paused; }
.hero.is-static .hero-dots button[aria-selected="true"] .dot-cell i { animation: none; transform: scaleX(1); }
@keyframes cell-fill { to { transform: scaleX(1); } }
.hero-pause { width: 44px; height: 44px; border: 0; background: var(--lead); color: var(--paper); display: grid; place-items: center; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.hero-pause:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .hero-pause:hover { background: #24527c; } }
.hero-pause .i-play, .hero.is-user-paused .hero-pause .i-pause { display: none; }
.hero.is-user-paused .hero-pause .i-play { display: block; }

/* ── Buscador por marca y modelo ── */
.vfinder { display: grid; gap: 18px; }
.vf-fields { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.8fr) auto; gap: 10px; align-items: end; }
.vf-field { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.vf-field select {
  height: 52px; border: 0; border-radius: 0; background-color: var(--paper-2); color: var(--ink);
  padding: 0 40px 0 14px; font-size: max(16px, var(--step-body)); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 width=%2218%22 height=%2218%22 fill=%22none%22 stroke=%22%2316191c%22 stroke-width=%222%22%3E%3Cpath d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.vf-field select:disabled { color: var(--paper-muted); }
.vfinder .btn { white-space: nowrap; }
.vf-result:empty { display: none; }
.vf-answer { display: grid; gap: 14px; padding: 20px; background: var(--bg); }
.vf-title { font-size: var(--step-lead); line-height: 1.25; }
.vf-title strong { font-weight: 500; }
.vf-specs { color: var(--muted); font-size: var(--step-small); margin-top: 4px; }
.vf-note { font-size: var(--step-small); margin-top: 6px; }
.vf-rows { display: grid; gap: 4px; }
.vf-rows .row { background: var(--paper); }
.vf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.vf-disclaimer { font-size: var(--step-small); color: var(--muted); }
.vf-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--step-small); }
.vf-popular span { margin-right: 4px; color: var(--paper-muted); }
.vf-popular a, .chips a { padding: 7px 12px; background: var(--paper-2); text-decoration: none; font-weight: 500; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.vf-popular a:active, .chips a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .vf-popular a:hover, .chips a:hover { background: var(--surface-2); } }
.vf-skeleton { display: grid; gap: 4px; padding: 20px; background: var(--bg); }
.vf-skeleton i { display: block; height: 70px; background: var(--paper); position: relative; overflow: hidden; }
.vf-skeleton i:first-child { height: 28px; width: 60%; }
.vf-skeleton i::after { content: ""; position: absolute; inset: 0; background: var(--paper-2); transform: translateX(-100%); animation: shimmer 1.1s var(--ease-in-out) infinite; }
.finder-side { justify-content: center; gap: 32px; }
.vf-page { padding-bottom: 32px; }
.vf-page .vfinder { background: var(--paper); padding: clamp(18px, 2.4vw, 32px); }

/* Índice por marca */
.makes h2 { font-size: var(--step-head); margin-bottom: 40px; }
.makes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px var(--gutter); }
.make-block h3 { font-size: var(--step-lead); margin-bottom: 10px; }
.make-block h3 a { text-decoration: none; }
.make-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.make-block li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--paper); text-decoration: none; transition: background-color 150ms ease; }
.make-block li a .num { color: var(--paper-muted); font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .make-block li a:hover { background: var(--paper-2); } }
.makes-missing { margin-top: 40px; }

/* Página de un vehículo */
.vehicle { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding-bottom: 40px; }
.vehicle-card { position: sticky; top: 92px; background: var(--ink); color: var(--bg); padding: 26px; display: grid; gap: 14px; }
.vehicle-card .vc-art { background: var(--lead); padding: 18px; }
.vc-group { display: flex; align-items: baseline; gap: 12px; }
.vc-group span { font-size: var(--step-small); color: var(--surface-2); }
.vc-group strong { font: 800 var(--step-head)/1 var(--font-display); letter-spacing: -0.03em; color: var(--charge); }
.vc-specs { font-size: var(--step-body); }
.vc-note, .vc-help { font-size: var(--step-small); color: var(--surface-2); }
.vehicle-products h2, .vehicle-links h2 { font-size: var(--step-lead); font-family: var(--font-text); font-weight: 500; letter-spacing: 0; margin-bottom: 16px; }
.vehicle-links .vl-sub { margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { background: var(--paper); }
.make-models { display: grid; gap: 4px; padding-bottom: 40px; }
.mm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 28px; align-items: center; gap: 20px; padding: 18px 22px; background: var(--paper); text-decoration: none; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.mm-row:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .mm-row:hover { background: var(--paper-2); } }
.mm-name { font-size: var(--step-lead); font-weight: 500; }
.mm-group { font-weight: 500; }
.mm-price { color: var(--paper-muted); }

@media (max-width: 1000px) {
  .hero-content { max-width: 86vw; }
  .vf-fields { grid-template-columns: 1fr 1fr; }
  .vf-fields .btn { grid-column: 1 / -1; }
  .vehicle { grid-template-columns: 1fr; }
  .vehicle-card { position: static; }
}
@media (max-width: 760px) {
  .hero { --post-h: 14px; height: calc(100svh - var(--header-h)); min-height: 540px; }
  .hero-slides::after { background: linear-gradient(0deg, rgba(18, 51, 82, 0.94) 0%, rgba(18, 51, 82, 0.74) 46%, rgba(18, 51, 82, 0.18) 76%, rgba(18, 51, 82, 0) 100%); } /* taste-skill-ignore: velo bajo texto */
  .hero-content { max-width: none; justify-content: flex-end; padding: 40px var(--margin) 178px; }
  .hero .lede { margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
  .hero-bar { bottom: 96px; grid-template-columns: 1fr; gap: 10px; }
  .hero-caption { display: none; }
  .hero-controls { justify-content: space-between; }
  .hero-dots { flex: 1; }
  .hero-dots button { flex: 1; width: auto; }
  .vf-fields { grid-template-columns: 1fr; }
  .vf-year { display: none; }
  .mm-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px; }
  .mm-name, .mm-group, .mm-price { grid-column: 1; }
  .mm-go { grid-row: 1 / span 3; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide img { transform: none; animation: none !important; }
  .hero-dots .dot-cell i { animation-duration: var(--ms, 6000ms) !important; }   /* es el temporizador, no decoración */
  .hero-slide { transition-duration: 300ms; }
}
.assist-toggle svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .assist-toggle { display: none; } }
/* Barra superior: nada se parte en dos líneas; el menú se colapsa antes de que no quepa */
.nav a, .quote-toggle, .wordmark { white-space: nowrap; }
.nav { gap: clamp(14px, 1.5vw, 24px); }
.header-search { width: min(280px, 20vw); }
@media (max-width: 1240px) {
  .nav { display: none; }
  .nav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 8px var(--margin) 20px; gap: 0; }
  .nav.is-open a { padding: 14px 0; font-size: var(--step-body); }
  .menu-toggle { display: inline-grid; }
  .header-search { width: auto; flex: 1; max-width: 380px; margin-left: auto; }
}
/* En la columna de la portada el buscador va en dos filas */
.finder .vf-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .finder .vf-fields { grid-template-columns: 1fr; } }

/* ── Servicios: compra de baterías, cargue y bornes ── */
.services-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.services-intro { grid-column: 1 / span 5; display: grid; gap: 24px; justify-items: start; position: sticky; top: 100px; }
.services-intro h2 { font-size: var(--step-head); }
.services-intro p { max-width: 44ch; }
.services-list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.services-list li { display: grid; gap: 6px; padding: 22px 24px; background: var(--paper); }
.services-list li:nth-child(2) { background: var(--charge); }
.services-list strong { font: 800 var(--step-lead)/1.2 var(--font-display); letter-spacing: -0.01em; }
.services-list span { color: var(--muted); }
.services-list li:nth-child(2) span { color: var(--ink); }
@media (max-width: 1000px) {
  .services-intro, .services-list { grid-column: 1 / -1; position: static; }
}
/* Barra superior con la marca AYC: el texto del nombre solo cuando hay espacio; el escudo siempre */
.wordmark span { display: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 1600px) { .wordmark span { display: inline; } }
@media (max-width: 1380px) {
  .nav { display: none; }
  .nav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 8px var(--margin) 20px; gap: 0; }
  .nav.is-open a { padding: 14px 0; font-size: var(--step-body); }
  .menu-toggle { display: inline-grid; }
  .header-search { width: auto; flex: 1; max-width: 380px; margin-left: auto; }
}

/* Créditos de imágenes (página aparte; el pie solo lleva el enlace) */
.footer-credits { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.credits-page { padding-bottom: var(--section); }
.credits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 900px; }
.credits-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; background: var(--paper); }
.credits-list img { width: 120px; height: 80px; object-fit: cover; }
.credits-list div { display: grid; gap: 4px; }
.credits-list a { font-weight: 500; }
.credits-list span { color: var(--muted); font-size: var(--step-small); }

/* ── Partes de una batería (ilustración en corte) ── */
.parts-figure { margin: 0 0 clamp(56px, 8vw, 120px); }
.parts-scroll { background: var(--paper); overflow-x: auto; overscroll-behavior-x: contain; }
.parts-scroll img { width: 100%; min-width: 1040px; }
.parts-figure figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.parts-swipe { display: none; }
.parts-list h2, .parts-facts h2, .parts-cta h2 { font-size: var(--step-lead); }
.parts-list dl { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 6px; }
.parts-list dl > div { background: var(--paper); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.parts-list dt { font-weight: 800; }
.parts-list dd { margin: 0; color: var(--muted); }
.parts-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); margin-top: clamp(56px, 8vw, 120px); }
.parts-facts > div { display: grid; gap: 16px; align-content: start; }
.parts-facts h3 { font-size: var(--step-body); margin-top: 12px; }
.parts-volts { border-collapse: collapse; width: 100%; max-width: 480px; background: var(--paper); }
.parts-volts th, .parts-volts td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--surface); }
.parts-volts th { font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.parts-volts td.num { font-weight: 800; }
.parts-cta { margin-block: clamp(56px, 8vw, 120px) var(--section); display: grid; gap: 16px; justify-items: start; max-width: 760px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 1100px) { .parts-swipe { display: inline; } }
@media (max-width: 760px) { .parts-facts { grid-template-columns: 1fr; } }

/* La batería por dentro en el paso «Elige» y en la página de error */
.stage .s-pic:has(> .cutaway) { display: grid; align-items: center; }
.stage .s-pic .cutaway { display: block; background: var(--paper); clip-path: var(--battery); padding: 13% 5% 6%; }
.stage .s-pic .cutaway img { width: 100%; height: auto; }
.error-page .cutaway-art { grid-column: 8 / span 5; background: var(--paper); clip-path: var(--battery); padding: 14% 8% 8%; }
@media (max-width: 760px) { .error-page .cutaway-art { grid-column: 1 / -1; margin-top: 32px; } }

/* ── Garantías, datos personales y cookies ── */
.legal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--surface-2); margin-bottom: clamp(28px, 4vw, 48px); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--step-small); font-weight: 500; }
.legal-nav a { text-decoration: none; }
.legal-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.legal-meta { color: var(--muted); font-size: var(--step-small); }
.legal-page { padding-bottom: var(--section); }
.legal { max-width: 76ch; display: grid; gap: 14px; }
.legal h2 { font-size: var(--step-lead); margin-top: 26px; }
.legal ul, .legal ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.legal .table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--paper); font-size: var(--step-small); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--surface); }
.legal th { color: var(--muted); font-weight: 500; }
.legal code { font-size: 0.92em; background: var(--paper-2); padding: 1px 5px; }
.legal-contact { background: var(--paper); padding: 18px 22px; display: grid; gap: 6px; font-size: var(--step-small); }
.consent a, .quote-legal a, .chat-note a { color: inherit; }
.quote-legal { font-size: var(--step-small); color: var(--paper-muted); margin-top: 6px; }
.chat-note { margin: 0; padding: 0 12px 10px; background: var(--paper-2); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .legal table { min-width: 0; } .legal th, .legal td { padding: 10px 10px; } }

/* Cotización: datos obligatorios del cliente */
.q-form .q-err { color: #b42318; font-weight: 500; font-size: var(--step-small); }
.q-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b42318; } /* taste-skill-ignore: borde de error, no sombra */
