/* Servi-Auto Suso · estructura E23 (carta encuadernada) + T05 (Bricolage / Inter) · colores del cliente */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Paleta del cliente (logo y web antigua serviautosuso.es), por roles */
  --marca: #00458C;            /* azul del emblema */
  --marca-hover: #00366E;
  --marca-suave: #E3EEF8;      /* fondo suave derivado del azul claro #A8CCE4 */
  --marca-borde: #A8CCE4;      /* azul claro del emblema, solo decorativo */
  --amarillo: #FFEC00;         /* «SUSO»: solo sobre fondo oscuro o azul */
  --accion: var(--marca);      /* único acento de los botones de llamar, WhatsApp y «Quiero verlo» */
  --oscuro: #24272C;           /* fondo del logo y cabecera de la web antigua */
  --fondo: #F1F2F6;            /* fondo de la web antigua */
  --superficie: #FFFFFF;
  --superficie-2: #E6E9EF;
  --texto: #24272C;
  --texto-2: #65666C;          /* la web antigua usaba #80838F: 3,6:1 sobre su fondo, no llega a AA */
  --borde: #CCCCCC;            /* decorativo */
  --borde-campo: #7D828C;      /* campos y componentes: 3:1 o más */
  --estado-disponible: #2F6B4F;
  --estado-reservado: #7A5212;
  --estado-vendido: #9B2C22;
  --error: #B3261E;
  --exito: #2F6B4F;

  /* alias de los nombres anteriores */
  --papel: var(--fondo);
  --plata: var(--superficie-2);
  --plata-2: #CED3DB;
  --blanco: var(--superficie);
  --grafito: #5F636B;
  --antracita: var(--oscuro);
  --tinta: var(--texto);
  --cobre: var(--marca);
  --cobre-t: var(--marca);
  --vendido: var(--estado-vendido);
  --reservado: var(--estado-reservado);
  --ok: var(--estado-disponible);
  --linea: var(--borde);

  --f-tit: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-txt: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r: 6px;
  --g: 16px;
  --barra: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--f-txt); font-size: 1.1875rem; line-height: 1.6;
  padding-bottom: calc(var(--barra) + env(safe-area-inset-bottom, 0px));
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--antracita); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; color: var(--cobre-t); }
h1, h2, h3 { font-family: var(--f-tit); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 .55rem; }
h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#contenido { overflow-x: clip; }

:focus-visible { outline: 3px solid var(--cobre); outline-offset: 3px; border-radius: 2px; }
.oscuro :focus-visible { outline-color: var(--amarillo); }

.salto { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--antracita); color: #fff; padding: .7rem 1rem; }
.salto:focus { top: 8px; color: #fff; }

.env { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--g); }
@media (min-width: 720px) { :root { --g: 28px; } }

/* Etiqueta de sección numerada (carta encuadernada) */
.capitulo { display: flex; align-items: baseline; gap: .7rem; font-family: var(--f-tit); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cobre-t); margin-bottom: .5rem; }
.capitulo .num { font-variant-numeric: tabular-nums; border-bottom: 2px solid var(--cobre); padding-bottom: .05rem; }

.ico { width: 1.3em; height: 1.3em; flex: none; vertical-align: -.25em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 56px; padding: .7rem 1.2rem;
  border-radius: var(--r); border: 2px solid var(--antracita); font: inherit; font-weight: 650; font-size: 1.08rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--antracita); color: #fff; }
.btn-pri:hover { background: #000; color: #fff; }
.btn-sec { background: var(--blanco); color: var(--antracita); }
.btn-sec:hover { background: var(--plata); color: var(--antracita); }
.btn-wa { background: var(--blanco); color: var(--antracita); border-color: var(--antracita); }
.btn-wa:hover { background: var(--plata); color: var(--antracita); }
.btn-cobre { background: var(--cobre-t); border-color: var(--cobre-t); color: #fff; }
.btn-cobre:hover { background: #6E4019; color: #fff; }
.btn-peligro { background: var(--vendido); border-color: var(--vendido); color: #fff; }
.btn-peligro:hover { background: #7A2019; color: #fff; }
.btn b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-fila { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Widget de contacto: esquina inferior derecha, en todas las pantallas ---------- */
.barra {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  background: none; padding: 0; pointer-events: none;
}
.barra-in { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.barra-in > * { pointer-events: auto; }
.barra-estado { font-size: .82rem; line-height: 1.2; background: var(--oscuro); color: #fff; padding: .3rem .7rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.barra .btn { min-height: 54px; min-width: 10.5rem; justify-content: flex-start; border-radius: 999px; font-size: 1.08rem; padding: .55rem 1.2rem; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.pie .pie-legal { padding-bottom: 12rem; }   /* que el widget no tape el pie */
@media (min-width: 960px) {
  .barra { right: 24px; bottom: 24px; }
  .pie .pie-legal { padding-bottom: 9rem; }
}
.abierto { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.abierto .punto { width: .7rem; height: .7rem; border-radius: 50%; background: #9AA2A7; flex: none; }
.abierto.si .punto { background: #4FBF86; box-shadow: 0 0 0 3px rgba(79,191,134,.25); }

/* ---------- Cabecera ---------- */
.cab { background: var(--papel); border-bottom: 4px solid var(--antracita); position: relative; z-index: 30; }
.cab-in { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.marca { margin-right: auto; text-decoration: none; color: var(--antracita); display: flex; flex-direction: column; line-height: 1; }
.marca:hover { color: var(--antracita); }
/* Wordmark provisional: se sustituye por el logo real en un solo sitio (comun.js · LOGO) */
.marca-nombre { font-family: var(--f-tit); font-weight: 800; font-size: 1.65rem; letter-spacing: -.02em; white-space: nowrap; }
.marca-nombre .guion { color: var(--cobre); }
.marca-sub { font-size: .82rem; color: var(--texto-2); letter-spacing: .06em; text-transform: uppercase; margin-top: .3rem; white-space: nowrap; }
.nav-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .4rem .85rem; background: transparent;
  border: 2px solid var(--antracita); border-radius: var(--r); font: inherit; font-weight: 650; color: var(--antracita); cursor: pointer;
}
.hamb, .hamb::before, .hamb::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.hamb::before, .hamb::after { content: ""; position: absolute; left: 0; }
.hamb::before { top: -6px; } .hamb::after { top: 6px; }
.nav-lista { list-style: none; margin: 0; padding: 0; display: none; }
.menu-abierto .nav-lista { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--papel); border-bottom: 4px solid var(--antracita); padding: .25rem var(--g) 1rem; }
.nav-lista a { display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--linea); text-decoration: none; font-family: var(--f-tit); font-weight: 700; font-size: 1.3rem; color: var(--antracita); }
.nav-lista a[aria-current="page"] { color: var(--cobre-t); }
.nav-llamar { display: none; }
@media (min-width: 1040px) {
  .nav-btn { display: none; }
  .nav-lista, .menu-abierto .nav-lista { display: flex; gap: 1.4rem; position: static; padding: 0; border: 0; background: none; }
  .nav-lista a { border: 0; padding: .3rem 0; font-size: 1.08rem; }
  .nav-lista a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cobre); }
  .nav-llamar { display: inline-flex; min-height: 48px; }
}
@media (max-width: 380px) { .marca-nombre { font-size: 1.35rem; } .marca-sub { font-size: .72rem; } }

/* ---------- Bloques generales ---------- */
.sec { padding-block: 3rem; border-top: 4px solid var(--antracita); }
.sec.fino { border-top-width: 1px; border-top-color: var(--linea); }
.sec-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.8rem; }
.sec-cab p { margin: 0; max-width: 48ch; color: var(--texto-2); }
.oscuro { background: var(--antracita); color: #E8EAE7; }
.oscuro a { color: #fff; }
.oscuro .capitulo { color: var(--amarillo); }
.oscuro .capitulo .num { border-color: var(--amarillo); }
.plata { background: var(--plata); }
.prosa { max-width: 66ch; }
.dos { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .dos { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; } }
.caja { background: var(--blanco); border: 2px solid var(--antracita); border-radius: var(--r); padding: 1.3rem; }
.caja h2, .caja h3 { font-size: 1.5rem; }
.nota-pend { font-size: .92rem; color: var(--texto-2); border-left: 4px solid var(--cobre); padding-left: .7rem; }
.pagina-cab { padding-block: 2rem 1.5rem; }
.pagina-cab p { max-width: 58ch; color: var(--texto-2); font-size: 1.15rem; }
.migas { font-size: 1rem; margin-bottom: .6rem; }
.migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.migas li:not(:last-child)::after { content: "›"; margin-left: .3rem; color: var(--grafito); }
.migas a { color: var(--texto-2); }

/* ---------- Portada ---------- */
.hero { padding-block: 2rem 2.75rem; }
.hero-in { display: grid; gap: 2rem; }
.hero-foto { position: relative; border: 2px solid var(--antracita); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--plata); }
.hero-foto svg { display: block; width: 100%; height: 100%; }
.hero-foto figcaption { position: absolute; left: .6rem; bottom: .6rem; background: rgba(30,35,38,.85); color: #fff; font-size: .82rem; padding: .2rem .55rem; border-radius: 3px; }
.hero h1 { max-width: 17ch; }
.hero-datos { font-family: var(--f-tit); font-weight: 650; font-size: 1.2rem; color: var(--cobre-t); margin-bottom: 1.4rem; }
.hero .btn-fila .btn { flex: 1 1 15rem; }
@media (min-width: 960px) { .hero { padding-block: 3rem 3.5rem; } .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; } }

.accesos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.accesos a {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: .85rem 1rem; background: var(--blanco);
  border: 2px solid var(--antracita); border-radius: var(--r); text-decoration: none; color: var(--antracita); font-family: var(--f-tit); font-weight: 800; font-size: 1.25rem; line-height: 1.1;
}
.accesos a small { font-family: var(--f-txt); font-weight: 500; font-size: .92rem; color: var(--texto-2); }
.accesos a:hover { background: var(--antracita); color: #fff; }
.accesos a:hover small { color: #D5D9D6; }
@media (min-width: 820px) { .accesos { grid-template-columns: repeat(4, 1fr); } }

.razones { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid #E8EAE7; }
.razones li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .9rem; padding: 1.2rem 0; border-bottom: 1px solid #4A545B; }
.razones .n { font-family: var(--f-tit); font-weight: 800; font-size: 2rem; color: var(--amarillo); line-height: 1; }
.razones h3 { color: #fff; margin-bottom: .2rem; }
.razones p { margin: 0; color: #CDD2CF; }
@media (min-width: 900px) { .razones { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; counter-reset: p; }
.pasos li { counter-increment: p; display: grid; grid-template-columns: 3.2rem 1fr; gap: .9rem; }
.pasos li::before { content: counter(p); width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--antracita); color: #fff; display: grid; place-items: center; font-family: var(--f-tit); font-weight: 800; font-size: 1.5rem; }
.pasos h3 { margin: .3rem 0 .15rem; }
.pasos p { margin: 0; color: var(--texto-2); }
@media (min-width: 900px) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.nota-google { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.nota-google .cifra { font-family: var(--f-tit); font-weight: 800; font-size: 4rem; line-height: 1; }
.nota-google .de { font-size: 1.2rem; color: var(--texto-2); }

/* ---------- Servicios (lista de carta) ---------- */
.servicios { list-style: none; margin: 0; padding: 0; columns: 2 15rem; column-gap: 2.5rem; }
.servicios li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--linea); font-weight: 550; }
.oscuro .servicios li { border-color: #4A545B; }

/* ---------- Horario ---------- */
.horario { margin: 0; }
.horario div { display: grid; grid-template-columns: 1fr; padding: .4rem 0; border-bottom: 1px solid var(--linea); }
.horario dt { font-weight: 700; }
.horario dd { margin: 0; }
.horario .hoy { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--antracita); color: #fff; padding: .05rem .4rem; border-radius: 3px; margin-left: .35rem; }
@media (min-width: 440px) { .horario div { grid-template-columns: 10.5rem 1fr; } }
.oscuro .horario div { border-color: #4A545B; }
.oscuro .horario .hoy { background: var(--amarillo); color: var(--antracita); }

/* ---------- Tarjeta de coche ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.coche { display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--plata-2); border-top: 4px solid var(--antracita); border-radius: 0 0 var(--r) var(--r); }
.coche-foto { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--plata); overflow: hidden; }
.coche-foto > svg, .coche-foto > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.coche-cuerpo { padding: 1rem 1rem .6rem; flex: 1; }
.coche-tit { font-size: 1.4rem; margin: 0; }
.coche-tit a { text-decoration: none; color: inherit; }
.coche-tit a::after { content: ""; position: absolute; inset: 0; } /* toda la foto y el título enlazan a la ficha */
.coche { position: relative; }
.coche-ver { color: var(--texto-2); font-size: 1rem; margin: .1rem 0 0; }
.coche-datos { list-style: none; margin: .65rem 0 0; padding: 0; display: flex; flex-wrap: wrap; font-size: .98rem; }
.coche-datos li:not(:last-child)::after { content: "·"; margin: 0 .45rem; color: var(--grafito); }
.coche-precio { font-family: var(--f-tit); font-weight: 800; font-size: 2rem; line-height: 1; margin: .9rem 0 .15rem; font-variant-numeric: tabular-nums; }
.coche-precio small { display: block; font-family: var(--f-txt); font-weight: 500; font-size: .85rem; color: var(--texto-2); margin-top: .25rem; }
.sellos { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.sellos li { font-size: .82rem; font-weight: 650; padding: .15rem .5rem; border: 1.5px solid var(--grafito); border-radius: 3px; color: var(--texto-2); }
.sellos li.garantia { border-color: var(--cobre-t); color: var(--cobre-t); }
.dgt { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 .3rem; border-radius: 50%; font-size: .75rem; font-weight: 800; border: 2px solid var(--antracita); }
.coche-pie { padding: 0 1rem 1rem; position: relative; z-index: 1; }
.coche-pie .btn { width: 100%; min-height: 52px; }
.estado { position: absolute; left: .6rem; top: .6rem; z-index: 1; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 3px; background: var(--antracita); color: #fff; }
.estado.reservado { background: var(--reservado); }
.sello-vendido {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 1; pointer-events: none;
  font-family: var(--f-tit); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--vendido); border: 4px double var(--vendido); background: rgba(255,255,255,.9); padding: .25rem .9rem; border-radius: 6px; white-space: nowrap;
}
.coche.vendido .coche-foto > svg, .coche.vendido .coche-foto > img { filter: grayscale(.85); opacity: .75; }
.coche.vendido { border-top-color: var(--vendido); }

/* ---------- Catálogo ---------- */
.catalogo { display: grid; gap: 1.5rem; padding-bottom: 3.5rem; }
.filtros { background: var(--blanco); border: 2px solid var(--antracita); border-radius: var(--r); padding: 1.1rem; display: grid; gap: 1rem; }
.filtros-in { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.filtros-in .campo:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .filtros-in { grid-template-columns: repeat(5, 1fr); } .filtros-in .campo:first-child { grid-column: auto; } }
.campo { display: grid; gap: .3rem; align-content: start; }
.campo > label, .etq { font-weight: 700; font-size: 1rem; }
.ayuda { font-size: .92rem; color: var(--texto-2); font-weight: 400; }
select, input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="month"], input[type="date"], input[type="search"], input[type="password"], textarea {
  width: 100%; min-height: 52px; padding: .6rem .75rem; font: inherit; font-size: 1.05rem; color: var(--tinta); background: #fff;
  border: 2px solid var(--borde-campo); border-radius: var(--r);
}
select { appearance: none; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--antracita) 50%), linear-gradient(135deg, var(--antracita) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 120px; resize: vertical; }
[aria-invalid="true"] { border-color: var(--vendido) !important; background: #FFF6F5; }
.casilla { display: flex; align-items: center; gap: .65rem; min-height: 48px; cursor: pointer; font-weight: 600; }
.casilla input { width: 24px; height: 24px; accent-color: var(--antracita); flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: .4rem; }

.res-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.contador { font-family: var(--f-tit); font-weight: 800; font-size: 1.6rem; margin: 0; }
.res-ctrl { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.res-ctrl .campo { min-width: 13rem; }
.vista { display: inline-flex; border: 2px solid var(--antracita); border-radius: var(--r); overflow: hidden; }
.vista button { min-height: 48px; padding: .4rem .9rem; border: 0; background: var(--blanco); font: inherit; font-weight: 650; font-size: 1rem; cursor: pointer; color: var(--antracita); }
.vista button[aria-pressed="true"] { background: var(--antracita); color: #fff; }
.vacio { background: var(--blanco); border: 2px dashed var(--grafito); border-radius: var(--r); padding: 1.5rem; }

/* Lista de precios: la exposición maquetada como una carta */
.carta { background: var(--blanco); border: 2px solid var(--antracita); border-radius: var(--r); padding: 1.5rem 1.2rem; }
.carta-cab { text-align: left; border-bottom: 4px double var(--antracita); padding-bottom: .8rem; margin-bottom: 1rem; }
.carta-cab h2 { margin: 0; font-size: 1.9rem; }
.carta-cab p { margin: .2rem 0 0; color: var(--texto-2); font-size: 1rem; }
.carta-grupo { margin-top: 1.4rem; }
.carta-grupo h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cobre-t); border-bottom: 1px solid var(--linea); padding-bottom: .3rem; }
.carta ol { list-style: none; margin: 0; padding: 0; }
.carta li { padding: .55rem 0; }
.carta-linea { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--antracita); }
.carta-linea .nom { font-weight: 700; }
.carta-linea .relleno { flex: 1; border-bottom: 2px dotted var(--grafito); transform: translateY(-.3em); min-width: 1.5rem; }
.carta-linea .pre { font-family: var(--f-tit); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.carta-sub { font-size: .95rem; color: var(--texto-2); }
.carta li.vendido .nom, .carta li.vendido .pre { text-decoration: line-through; color: var(--grafito); }
.carta-pie { margin-top: 1.4rem; padding-top: .8rem; border-top: 4px double var(--antracita); font-size: .95rem; color: var(--texto-2); }
@media print {
  .barra, .cab, .pie, .filtros, .res-ctrl, .cookies, .no-imprimir { display: none !important; }
  body { padding: 0; background: #fff; }
  .carta { border: 0; }
}

/* ---------- Ficha ---------- */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: 2rem; }
.galeria, .decision { min-width: 0; }
@media (min-width: 1000px) { .ficha { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; } .decision { position: sticky; top: 1rem; } }
.ficha-tit h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .15rem; }
.ficha-tit p { color: var(--texto-2); font-size: 1.15rem; margin: 0 0 1rem; }
.gal-principal { position: relative; aspect-ratio: 16 / 10; background: var(--plata); border: 1px solid var(--plata-2); overflow: hidden; border-radius: var(--r); }
.gal-principal > svg, .gal-principal > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--antracita); background: rgba(255,255,255,.94); display: grid; place-items: center; cursor: pointer; color: var(--antracita); }
.gal-btn.ant { left: .6rem; } .gal-btn.sig { right: .6rem; }
.gal-btn.ant .ico { transform: scaleX(-1); }
.gal-ampliar { position: absolute; right: .6rem; top: .6rem; z-index: 2; min-height: 44px; padding: .3rem .8rem; border: 0; border-radius: 4px; background: rgba(30,35,38,.88); color: #fff; font: inherit; font-size: .95rem; font-weight: 650; cursor: pointer; }
.gal-pie { position: absolute; left: .6rem; bottom: .6rem; z-index: 2; background: rgba(30,35,38,.88); color: #fff; font-size: .9rem; padding: .2rem .55rem; border-radius: 3px; }
.miniaturas { list-style: none; margin: .7rem 0 0; padding: 0 0 .3rem; display: flex; gap: .45rem; overflow-x: auto; }
.miniaturas button { display: block; width: 92px; aspect-ratio: 16 / 10; padding: 0; border: 3px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--plata); }
.miniaturas button[aria-current="true"] { border-color: var(--antracita); }
.miniaturas svg, .miniaturas img { display: block; width: 100%; height: 100%; object-fit: cover; }

.decision { background: var(--blanco); border: 2px solid var(--antracita); border-radius: var(--r); padding: 1.3rem; }
.decision .precio { font-family: var(--f-tit); font-weight: 800; font-size: 2.9rem; line-height: 1; font-variant-numeric: tabular-nums; margin: 0; }
.decision .precio-nota { font-size: 1rem; color: var(--texto-2); margin: .35rem 0 1rem; }
.sello-garantia { display: inline-flex; align-items: center; gap: .5rem; border: 2px solid var(--cobre-t); color: var(--cobre-t); padding: .35rem .75rem; border-radius: 4px; font-weight: 750; margin-bottom: 1.1rem; }
.decision .acciones { display: grid; gap: .55rem; }
.decision .acciones .btn { width: 100%; }
.aviso-estado { border-left: 6px solid var(--reservado); background: var(--plata); padding: .9rem 1rem; margin-bottom: 1rem; border-radius: 0 var(--r) var(--r) 0; }
.aviso-estado.vendido { border-color: var(--vendido); }
.aviso-estado strong { display: block; font-family: var(--f-tit); font-size: 1.35rem; }
.aviso-estado p { margin: .2rem 0 0; }

.datos-clave { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.datos-clave li { background: var(--blanco); border: 1px solid var(--plata-2); border-radius: var(--r); padding: .6rem .8rem; }
.datos-clave span { display: block; font-size: .88rem; color: var(--texto-2); }
.datos-clave strong { font-family: var(--f-tit); font-weight: 800; font-size: 1.3rem; }
@media (min-width: 700px) { .datos-clave { grid-template-columns: repeat(3, 1fr); } }

.f-bloque { margin-top: 2.5rem; }
.f-bloque > h2 { font-size: 1.8rem; border-top: 4px solid var(--antracita); padding-top: .9rem; }

/* Hoja de revisión del taller (orden de trabajo) */
.hoja { background: var(--blanco); border: 2px solid var(--antracita); border-radius: var(--r); overflow: hidden; }
.hoja-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; background: var(--antracita); color: #fff; padding: .7rem 1rem; font-family: var(--f-tit); font-weight: 700; }
.hoja-cab span:last-child { color: var(--amarillo); }
.hoja-cuerpo { padding: 1rem 1.1rem; background-image: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), #E6E8E4 calc(1.6em - 1px) 1.6em); }
.hoja-cuerpo p { margin: 0 0 .6rem; }
.hoja-firma { border-top: 1px dashed var(--grafito); padding: .6rem 1.1rem; font-size: .95rem; color: var(--texto-2); }

.tabla { margin: 0; border-top: 2px solid var(--antracita); }
.tabla div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--linea); }
.tabla dt { color: var(--texto-2); }
.tabla dd { margin: 0; font-weight: 650; }
.desplegable { border: 2px solid var(--antracita); border-radius: var(--r); background: var(--blanco); margin-top: 1rem; }
.desplegable summary { min-height: 56px; padding: .6rem 1rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--f-tit); font-weight: 800; font-size: 1.2rem; list-style: none; }
.desplegable summary::-webkit-details-marker { display: none; }
.desplegable summary::after { content: "+"; font-size: 1.8rem; line-height: 1; }
.desplegable[open] summary::after { content: "−"; }
.desplegable > div { padding: 0 1rem 1rem; }
.lista-check { list-style: none; padding: 0; margin: 0; columns: 2 14rem; }
.lista-check li { break-inside: avoid; padding: .3rem 0 .3rem 1.7rem; position: relative; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: 1rem; height: .5rem; border-left: 3px solid var(--cobre); border-bottom: 3px solid var(--cobre); transform: rotate(-45deg) translateY(-50%); }
.defectos { border-left: 6px solid var(--grafito); padding-left: 1rem; }
.defectos-fotos { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.defectos-fotos button { width: 160px; aspect-ratio: 16 / 10; border: 2px solid var(--antracita); padding: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--plata); }
.defectos-fotos svg, .defectos-fotos img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Visor a pantalla completa */
.visor { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0F1214; color: #fff; }
.visor::backdrop { background: #0F1214; }
.visor-in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.visor-foto { width: 100%; height: 100%; display: grid; place-items: center; }
.visor-foto svg, .visor-foto img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.visor-foto svg { width: 100%; height: auto; max-height: 100%; }
.visor-cerrar { position: absolute; right: 12px; top: 12px; z-index: 3; min-height: 48px; padding: .4rem 1rem; border: 2px solid #fff; background: rgba(0,0,0,.5); color: #fff; font: inherit; font-weight: 700; border-radius: 6px; cursor: pointer; }
.visor .gal-btn { background: rgba(255,255,255,.95); }
.visor-cuenta { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(0,0,0,.6); padding: .2rem .7rem; border-radius: 4px; }
.visor :focus-visible { outline-color: var(--amarillo); }

/* ---------- Formularios simulados ---------- */
.formulario { display: grid; gap: 1.1rem; }
.err { color: var(--vendido); font-weight: 700; font-size: .98rem; margin: 0; }
.resumen-err { border: 3px solid var(--vendido); background: #FFF6F5; border-radius: var(--r); padding: 1rem 1.1rem; }
.resumen-err h2 { font-size: 1.35rem; color: var(--vendido); }
.resumen-err ul { margin: 0; padding-left: 1.2rem; }
.ok-caja { border: 3px solid var(--ok); background: #EEF6F1; border-radius: var(--r); padding: 1.25rem; }
.ok-caja h2 { color: var(--ok); font-size: 1.7rem; }

/* Legal */
.pend { background: var(--marca-suave); border-left: 4px solid var(--cobre); padding: .1rem .4rem; font-weight: 650; }
.aviso-borrador { background: var(--antracita); color: #fff; padding: 1rem 1.1rem; border-radius: var(--r); margin-bottom: 2rem; }

/* ---------- Pie ---------- */
.pie { background: var(--antracita); color: #D5D9D6; font-size: 1.02rem; }
.pie a { color: #fff; }
.pie-in { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 820px) { .pie-in { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }
.pie h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amarillo); margin-bottom: .8rem; font-family: var(--f-tit); }
.pie p { margin-bottom: .45rem; }
.pie .marca-nombre { color: #fff; font-size: 1.9rem; }
.pie .horario div { border-color: #3B4348; grid-template-columns: 1fr; }
.pie .horario dt { color: #fff; }
.pie-legal { border-top: 1px solid #3B4348; padding-block: 1.2rem 1.6rem; font-size: .95rem; }
.pie-demo { color: #A9B0AC; }
.pie :focus-visible { outline-color: var(--amarillo); }

/* ---------- Cookies ---------- */
.cookies { position: fixed; z-index: 50; left: var(--g); right: var(--g); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 640px; background: var(--blanco); color: var(--tinta); border: 2px solid var(--antracita); border-radius: var(--r); padding: 1.1rem 1.15rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-size: 1rem; }
.cookies p { margin-bottom: .9rem; }
.cookies .btn { min-height: 48px; }
@media (min-width: 960px) { .cookies { bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Identidad real del cliente (02-10-2026) ---------- */
/* Botón de acción: el único acento. Llamar, WhatsApp y «Quiero verlo» */
.btn-accion { background: var(--accion); border-color: var(--accion); color: #fff; }
.btn-accion:hover { background: var(--marca-hover); border-color: var(--marca-hover); color: #fff; }
.oscuro .btn-accion, .barra .btn-accion { border-color: #fff; }
.barra .btn-accion { background: var(--accion); color: #fff; }

/* Cabecera oscura del color exacto del fondo del logo (#24272C): el PNG se funde sin bordes */
.cab { background: var(--oscuro); border-bottom: 4px solid var(--marca); }
.cab-in { min-height: 80px; padding-block: 6px; }
.marca { flex-direction: row; align-items: center; }
.logo { display: block; width: 90px; height: 68px; }   /* PNG de 225×170: se reduce, nunca se amplía */
.marca .marca-nombre, .marca .marca-sub { display: none; }
.nav-btn { color: #fff; border-color: #fff; }
.menu-abierto .nav-lista { background: var(--oscuro); border-bottom-color: var(--marca); }
.nav-lista a { color: #fff; border-bottom-color: #3D4148; }
.nav-lista a[aria-current="page"] { color: var(--amarillo); }
.cab :focus-visible { outline-color: var(--amarillo); }
@media (min-width: 1040px) {
  .logo { width: 106px; height: 80px; }
  .nav-lista a { color: #fff; }
  .nav-lista a[aria-current="page"] { color: var(--amarillo); box-shadow: inset 0 -3px 0 var(--amarillo); }
}
.pie .logo { width: 112px; height: 85px; margin-bottom: .6rem; }

/* Estados del coche: color y texto */
.estado { background: var(--estado-disponible); }
.estado.reservado { background: var(--estado-reservado); }
.estado small { font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ---------- Hero con la foto de Mercedes, de fondo ----------
   La foto se funde con el antracita (máscara en degradado): sin recuadro.
   El texto va siempre sobre la zona lisa, así cumple AA y no tapa el coche. */
.hero.hero-foto-portada { padding: 0; background: var(--oscuro); color: #fff; position: relative; overflow: hidden; }
.hero-portada { position: relative; }
.hero-texto { position: relative; z-index: 1; padding: 1.8rem var(--g) 0; background: transparent; }
.hero-texto h1 { color: #fff; max-width: 17ch; }
.hero-texto .hero-datos { color: var(--amarillo); }
.hero-texto p { color: #DDE1E6; }
.hero-texto .btn-fila .btn { flex: 1 1 auto; }
.hero-texto .btn-sec { background: transparent; color: #fff; border-color: #fff; }
.hero-texto .btn-sec:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-texto .btn-pri { background: #fff; color: var(--oscuro); border-color: #fff; }
.hero-texto .btn-pri:hover { background: var(--marca-suave); color: var(--oscuro); }

/* Móvil y tableta: el texto arriba y la foto debajo, que aparece desde el antracita */
.hero-img { display: block; position: relative; aspect-ratio: 16 / 10; margin-top: -1rem; }
.hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 62%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%); mask-image: linear-gradient(to bottom, transparent 0, #000 32%); }
@media (min-width: 720px) and (max-width: 1279px) {
  .hero-img { aspect-ratio: 2 / 1; }
}

/* Escritorio: la foto ocupa la derecha a toda altura y se disuelve hacia la izquierda */
@media (min-width: 1280px) {
  .hero-portada { min-height: 600px; display: flex; align-items: center; }  /* altura fija: la foto no crece hacia el texto */
  .hero-texto { width: 100%; max-width: 1200px; margin-inline: auto; padding: 3.5rem var(--g); }
  .hero-texto > *, .hero-texto h1 { max-width: 26rem; }
  .hero-texto h1 { font-size: 2.75rem; }
  .hero-img { position: absolute; inset: 0 0 0 auto; height: 100%; width: auto; aspect-ratio: 1408 / 768; margin: 0; transform: translateX(16%); }
  .hero-img img { object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.3) 13%, #000 28%);
            mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.3) 13%, #000 28%); }
}
@media (min-width: 1440px) {
  .hero-texto > *, .hero-texto h1 { max-width: 28rem; }
  .hero-texto h1 { font-size: 3rem; }
}

/* Estado del coche abajo a la izquierda de la foto: arriba va la marca «Muestra · …» de las fotos de ejemplo */
.coche-foto .estado { top: auto; bottom: .6rem; left: .6rem; }
.estado.recien { background: var(--marca); }

/* ---------- Portada: lema y «Le buscamos su coche» (06-10-2026) ---------- */
.hero-texto .hero-lema { color: var(--amarillo); font-family: var(--f-tit); font-weight: 700; font-size: 1.3rem; line-height: 1.3; margin-bottom: .6rem; }
.hero-texto .hero-datos { color: #C9CED4; font-family: var(--f-txt); font-weight: 500; font-size: .98rem; margin-bottom: 1.4rem; }
.encargo .dos { align-items: start; }
.pasos.pasos-encargo { grid-template-columns: 1fr; gap: 1.1rem; margin-top: 1.5rem; }
.fila-encargo { display: grid; gap: 1rem; }
@media (min-width: 480px) { .fila-encargo { grid-template-columns: 1fr 1fr; } }
#form-encargo .btn { width: 100%; }

/* Fase 5: piezas de los datos de Supabase */
.sin-foto { display: grid; place-items: center; aspect-ratio: 16 / 10; width: 100%; background: var(--plata); color: var(--tinta-suave, #555); font-family: var(--f-tit); font-size: 1.1rem; text-align: center; padding: 1rem; }
.aviso-sitio { background: var(--reservado); color: #111; font-weight: 600; padding: .7rem 0; }
.aviso-sitio .env { display: block; }
.separado { margin-top: 1.5rem; }
.separado-grande { padding-block: 3rem; }

/* Utilidades de espaciado: sustituyen a los style="" del HTML (la CSP no permite estilos en línea) */
.u-m0 { margin: 0; }
.u-mt08 { margin-top: .8rem; }
.u-mt1 { margin-top: 1rem; }
.u-mt12 { margin-top: 1.2rem; }
.u-mt14 { margin-top: 1.4rem; }
.u-mt15 { margin-top: 1.5rem; }
.u-mb1 { margin-bottom: 1rem; }
.u-mb15 { margin-bottom: 1.5rem; }
.u-mb16 { margin-bottom: 1.6rem; }
.u-pb3 { padding-bottom: 3rem; }
.u-pb35 { padding-bottom: 3.5rem; }
.u-py3 { padding-block: 3rem; }
.u-blanco { color: #fff; }

/* Textos legales */
.datos-titular { list-style: none; padding: 1rem 1.1rem; margin: 1rem 0; background: var(--plata); border-radius: var(--r); }
.datos-titular li { margin: .25rem 0; }
.prosa .tabla-legal { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.tabla-legal th, .tabla-legal td { border: 1px solid var(--plata-2); padding: .55rem .65rem; text-align: left; vertical-align: top; min-width: 9rem; }
.tabla-legal th { background: var(--plata); font-family: var(--f-tit); }
.barra { transition: opacity .2s ease, transform .2s ease; }
.barra.barra-oculta { opacity: 0; transform: translateY(12px); pointer-events: none; }
.barra.barra-oculta * { pointer-events: none !important; }
@media (prefers-reduced-motion: reduce) { .barra { transition: none; } }
