/* ================================================================
   Iriarte Automoción — V2 · Premium editorial / boutique
   ================================================================ */

:root {
  --ink: #051C2C;
  --ink-80: rgba(5, 28, 44, 0.80);
  --ink-60: rgba(5, 28, 44, 0.60);
  --ink-45: rgba(5, 28, 44, 0.64); /* subido de 0.45 → contraste ≥4.5:1 (WCAG AA) en etiquetas/notas */
  --turq: #1DCAD3;
  --turq-dark: #14a7af;
  --turq-tint: #F1FAFB;   /* turquesa muy claro para el cuerpo de las tarjetas (no blanco) */
  --turq-tint-2: #E6F6F7; /* un punto más saturado para el difuminado hacia la imagen */
  --amber: #FBBA42;
  --paper: #FAF9F6;
  --paper-2: #F1EFEA;
  --white: #ffffff;
  --line: rgba(5, 28, 44, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --wa: #25D366;
  --sold: #24CAD2;
  --sold-dark: #17A0A7;
  --shadow-sm: 0 2px 8px rgba(5, 28, 44, 0.06);
  --shadow-md: 0 18px 40px -20px rgba(5, 28, 44, 0.35);
  --radius: 4px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Kickers / section labels ---------- */
.kicker {
  font-family: "Work Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--turq-dark);
  margin: 0 0 18px;
}
.kicker--light { color: var(--turq); }

.sec-num {
  font-family: "Work Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-45);
  margin: 0 0 14px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--turq { background: var(--turq); color: var(--ink); }
.btn--turq:hover { background: var(--turq-dark); box-shadow: 0 10px 24px -10px rgba(29, 202, 211, 0.7); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #0a2c44; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #f5a91f; }
.btn--ghost { background: transparent; color: #fff; border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--turq); color: var(--turq); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1eb857; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-arrow {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--turq-dark); border-color: var(--turq); }
.link-arrow span { display: inline-block; transition: transform 0.2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--turq-dark); font: inherit; font-weight: 600; text-decoration: underline;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-80);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--turq); transition: width 0.25s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 18px; border-radius: 999px;
  font-family: "Poppins", sans-serif;
}
.nav-cta:hover { background: var(--turq); color: var(--ink) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO (full-bleed + carrusel) ================= */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  min-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Carrusel de fondo: slides apilados que se funden entre sí */
.hero-slides { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease);
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: heroKen 8s ease-out forwards;
}
@keyframes heroKen {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

/* Velo para legibilidad del texto blanco */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 46%, rgba(5,28,44,0.60) 0%, rgba(5,28,44,0.28) 60%, rgba(5,28,44,0.10) 85%),
    linear-gradient(180deg, rgba(5,28,44,0.72) 0%, rgba(5,28,44,0.52) 32%, rgba(5,28,44,0.50) 58%, rgba(5,28,44,0.88) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding-top: calc(var(--header-h, 74px) + 28px);
  padding-bottom: 18px;
}
.hero-copy { max-width: 760px; }
.hero h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: 0 auto 28px;
  text-shadow: 0 1px 20px rgba(5, 28, 44, 0.7), 0 1px 3px rgba(5, 28, 44, 0.5);
}

/* Buscador horizontal flotante — panel de cristal esmerilado + campos blancos */
.hero-search {
  width: min(900px, 100%);
  margin: 30px auto 0;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(5, 28, 44, 0.34);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: stretch;
}
.hero-search .field {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(5, 28, 44, 0.12);
}
.hero-search .field select {
  border: none;
  background-color: transparent;
  border-radius: 12px;
  padding: 15px 40px 15px 18px;
  font-size: 0.98rem;
  width: 100%;
  height: 100%;
}
.hero-search .field select:hover { background-color: rgba(5, 28, 44, 0.03); }
.hero-search .field select:focus { outline: 2px solid var(--turq); outline-offset: -2px; }
.hero-search-btn {
  border-radius: 12px;
  padding-inline: 24px;
  height: auto;
  min-height: 52px;
  white-space: nowrap;
  background: #24CAD2;
  color: var(--ink);
}
.hero-search-btn:hover { background: #17A0A7; box-shadow: 0 10px 24px -10px rgba(36, 202, 210, 0.7); }

/* Puntos indicadores del carrusel. El botón es un área de toque cómoda (28px,
   supera el mínimo WCAG 2.5.8 de 24px); el punto visible se dibuja con ::before. */
.hero-dots {
  position: relative; z-index: 2;
  display: flex; gap: 2px; justify-content: center;
  margin-top: 16px;
}
.hero-dots button {
  width: 28px; height: 28px; padding: 0;
  border: none; cursor: pointer; background: transparent;
  display: grid; place-items: center;
}
.hero-dots button::before {
  content: ""; display: block;
  width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.hero-dots button:hover::before { background: rgba(255, 255, 255, 0.7); }
.hero-dots button.is-active::before { background: var(--turq); width: 26px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; color: var(--ink-60);
}
.field select {
  appearance: none;
  font-family: "Work Sans", sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23051C2C' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.field select:hover { border-color: var(--ink-45); }
.field select:focus { border-color: var(--turq); }

/* Trust strip */
.trust-strip {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(5, 28, 44, 0.5);
}
.trust-strip span[aria-hidden] { color: var(--turq); }

/* ================= SECTIONS ================= */
.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tint { background: var(--paper-2); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.sec-sub {
  color: var(--ink-60);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 18px 0 0;
}

/* ================= CARS GRID ================= */
.filter-status { color: var(--ink-60); font-size: 0.9rem; margin: -28px 0 24px; min-height: 1.2em; }

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.car-card {
  position: relative;
  background: var(--turq-tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* Toda la tarjeta es clicable → ficha (enlace estirado desde el título).
   Basta con picar en cualquier parte; el WhatsApp flotante cubre el contacto. */
.car-card { cursor: pointer; }
.car-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* El foco de teclado resalta la tarjeta ENTERA (no solo el título). */
.car-card:focus-within {
  outline: 3px solid var(--turq);
  outline-offset: 2px;
}
.car-title-link:focus-visible { outline: none; } /* el anillo lo pinta la tarjeta */
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.car-card.is-hidden { display: none; }

.car-media { position: relative; aspect-ratio: 640 / 420; overflow: hidden; background: var(--paper-2); }
/* Difuminado del tinte subiendo hacia la imagen (funde la foto con el cuerpo) */
.car-media::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(241, 250, 251, 0) 0%, rgba(241, 250, 251, 0.38) 76%, rgba(230, 246, 247, 0.72) 100%);
}
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.car-card:hover .car-media img { transform: scale(1.05); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge--eco { background: var(--turq); color: var(--ink); }
.badge--c { background: rgba(255, 255, 255, 0.94); }
.badge--vendido {
  position: static;
  background: var(--sold); color: #fff;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Estado VENDIDO ---------- */
/* Atenúa la foto del coche vendido: se nota "apagado" pero CONSERVA color
   (no gris total), para que siga siendo reconocible. */
.car-media.is-vendido img,
.gallery-main.is-vendido img {
  filter: grayscale(0.32) saturate(0.85) brightness(0.94);
  opacity: 0.9;
}
.car-media.is-vendido::after,
.gallery-main.is-vendido::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5, 28, 44, 0.02), rgba(5, 28, 44, 0.1));
  pointer-events: none;
}
.car-card--vendido { border-color: var(--line); }
.car-card--vendido .price { color: var(--ink-60); }

/* Cinta diagonal de esquina. El span desborda y lo recorta el `overflow:hidden`
   de .car-media / .gallery-main, así toca ambos bordes sin quedar cortada. */
.sold-ribbon {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.sold-ribbon span {
  position: absolute; top: 24px; right: -54px;
  display: block; width: 200px; padding: 8px 0;
  transform: rotate(45deg);
  background: linear-gradient(180deg, var(--sold), var(--sold-dark));
  color: #fff; text-align: center;
  font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 6px 16px -4px rgba(5, 28, 44, 0.45);
}
.gallery-main .sold-ribbon span { top: 30px; right: -60px; width: 230px; font-size: 0.86rem; padding: 10px 0; }

/* ---------- Placeholder neutro (coche sin foto) ---------- */
.media-ph {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ECEAE4, #DDD9D1);
  color: var(--ink-45);
}
.media-ph .media-ph-ic {
  width: 54px; height: 54px;
  stroke-width: 1.4; color: var(--ink-45);
}
.media-ph span {
  font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}

/* CTA principal cuando el coche está vendido (tono neutro, no invita a comprar) */
.btn--vendido {
  background: var(--ink); color: #fff;
  font-size: 0.92rem;
}
.btn--vendido:hover { background: #0a2740; }

.car-body {
  padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1;
  /* Difuminado del color hacia la zona de datos: más tinte junto a la imagen */
  background: linear-gradient(180deg, var(--turq-tint-2) 0%, var(--turq-tint) 46%);
}
.car-body h3 { margin: 0 0 8px; }
.car-title-link {
  display: flex; flex-direction: column; gap: 1px;
  text-decoration: none; color: inherit;
}
.car-make {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.12rem;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
}
.car-trim {
  font-family: "Poppins", sans-serif; font-weight: 500; font-size: 0.92rem;
  color: var(--ink-60); letter-spacing: 0; line-height: 1.25;
}
.car-title-link:hover .car-make { color: var(--turq-dark); }

/* Ubicación (imita su web: "Las Palmas" con pin) */
.car-loc { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 0.84rem; color: var(--ink-60); }
.loc-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--turq-dark); }

.specs {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px;
  font-size: 0.86rem; color: var(--ink-80);
}
.specs li { display: flex; align-items: center; gap: 7px; }
.specs .ic { flex: none; width: 17px; height: 17px; color: var(--turq-dark); }

/* ---------- Iconos SVG (línea coherente en toda la web) ---------- */
.ic {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.btn .ic { width: 18px; height: 18px; }
.link-arrow .ic { width: 18px; height: 18px; vertical-align: -4px; margin-left: 2px; transition: transform 0.2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

.price-row { margin: 2px 0 16px; padding-top: 0; }
.price-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price {
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.cuota {
  font-family: "Work Sans", sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--turq-dark);
  text-align: right; display: flex; flex-direction: column; line-height: 1.2;
}
.cuota small { font-weight: 400; font-size: 0.66rem; color: var(--ink-45); text-transform: uppercase; letter-spacing: 0.06em; }


.no-results { text-align: center; color: var(--ink-60); font-size: 1.05rem; margin-top: 40px; }

/* ================= PILLARS ================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.pillar {
  background: var(--paper-2);
  padding: 36px 30px;
  transition: background 0.3s var(--ease);
}
.section--tint .pillar { background: var(--paper); }
.pillar:hover { background: var(--white); }
.pillar-num {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.8rem;
  color: var(--turq-dark); letter-spacing: 0.1em; display: block; margin-bottom: 18px;
}
.pillar h3 { font-size: 1.22rem; margin-bottom: 10px; }
.pillar p { color: var(--ink-60); font-size: 0.98rem; margin: 0; }

/* ================= VENDE TU COCHE ================= */
.vende { background: var(--ink); color: #fff; }
.vende-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.vende h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 20px; }
.vende-text { color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; max-width: 440px; margin: 0 0 30px; }
.vende-steps { display: grid; gap: 16px; }
.vstep {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.vstep:hover { border-color: var(--turq); background: rgba(29, 202, 211, 0.06); }
.vstep span {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--turq); color: var(--ink);
  font-family: "Poppins", sans-serif; font-weight: 600;
}
.vstep p { margin: 0; color: rgba(255, 255, 255, 0.9); }

/* ================= FINANCIACIÓN + CALC ================= */
.fin-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fin-copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); }

.calc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 30px 26px;
  display: grid; gap: 22px;
}
.calc-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.1rem; margin: 0; }
.calc-field { display: grid; gap: 10px; }
.calc-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-80);
}
.calc-field output { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: rgba(5, 28, 44, 0.15);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--turq); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(5, 28, 44, 0.25);
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--turq); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(5, 28, 44, 0.25);
}

.calc-result {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-radius: 8px;
  background: var(--ink); color: #fff;
}
.calc-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.calc-value { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--turq); }
.calc-note { font-size: 0.78rem; color: var(--ink-45); margin: 0; }

/* ================= RESEÑAS ================= */
.res-aviso {
  display: inline-block;
  font-size: 0.82rem; color: var(--ink-60);
  background: rgba(251, 186, 66, 0.16);
  border: 1px solid rgba(251, 186, 66, 0.5);
  padding: 8px 16px; border-radius: 999px;
  margin: -28px 0 34px;
}
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  margin: 0;
}
.stars { color: var(--amber); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--ink-80); line-height: 1.55; }
.review figcaption { font-size: 0.85rem; color: var(--ink-45); font-weight: 500; }

/* Valoración media (cabecera de reseñas) */
.res-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-rating-brand { display: inline-flex; align-items: center; }
.res-rating-google { display: block; }
.res-rating-num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.res-rating-stars { display: inline-flex; gap: 2px; }
.res-rating-stars svg { width: 18px; height: 18px; fill: var(--amber); }
.res-rating-count { font-size: 0.86rem; color: var(--ink-60); }
.res-rating-count a { color: var(--turq-dark); font-weight: 600; }

/* ===== Marquesina de reseñas (dos filas en sentidos opuestos) ===== */
.rev-marquee { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.rev-row { display: flex; overflow: hidden; }
.rev-track {
  display: flex; gap: 18px; flex-shrink: 0; padding-right: 18px;
  animation: rev-scroll 42s linear infinite;
  will-change: transform;
}
.rev-row--reverse .rev-track { animation-direction: reverse; }
.rev-marquee:hover .rev-track,
.rev-track:focus-within { animation-play-state: paused; }
@keyframes rev-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.rev-card {
  flex: 0 0 auto; width: 320px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.rev-card-head { display: flex; align-items: center; gap: 12px; }
.rev-avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.02rem; color: #fff;
}
.rev-avatar--photo { background: var(--paper-2); overflow: hidden; }
.rev-avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.rev-id { display: flex; flex-direction: column; gap: 2px; }
.rev-name { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.rev-source { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--ink-60); }
.rev-google { flex: 0 0 auto; display: block; }
.rev-stars { display: inline-flex; gap: 2px; }
.rev-stars svg { width: 15px; height: 15px; fill: var(--amber); }
.rev-quote { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-80); }
.rev-fade { position: absolute; top: 0; bottom: 0; width: 12%; pointer-events: none; z-index: 2; }
.rev-fade--l { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.rev-fade--r { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }
@media (max-width: 560px) { .rev-card { width: 264px; } .rev-fade { width: 8%; } }

/* ================= CONTACTO ================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0; }
.contact-list li {
  display: grid; gap: 3px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.ci-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-45); font-weight: 600; }
.ci-val { font-size: 1.05rem; }
.ci-val a { text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.2s var(--ease), border-color 0.2s; }
.ci-val a:hover { color: var(--turq-dark); border-color: var(--turq); }
.contact-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.map-frame {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  min-height: 380px; box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ================= FOOTER ================= */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 32px; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 14px; }
.footer-brand p { max-width: 240px; margin: 0; color: rgba(255, 255, 255, 0.6); }
.footer-col h4 {
  font-family: "Poppins", sans-serif; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.5); margin: 0 0 16px; font-weight: 600;
}
.footer-col a {
  display: block; text-decoration: none; color: rgba(255, 255, 255, 0.8);
  padding: 5px 0; font-size: 0.95rem; transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--turq); }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-block: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.55);
}
.footer-legal nav { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-legal a:hover { color: var(--turq); }

/* ================= REDES SOCIALES (reutilizable) ================= */
.socials { display: inline-flex; align-items: center; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-80); background: transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }
.social-btn:hover { color: #fff; border-color: transparent; }
.social-btn--ig:hover { background: #E1306C; }
.social-btn--fb:hover { background: #1877F2; }
/* En footer (fondo oscuro) */
.site-footer .social-btn { border-color: rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.85); }
.site-footer .social-btn:hover { color: #fff; }
/* Los <a> del footer heredan display:block + padding de `.footer-col a` (más
   específico que `.social-btn`), lo que descentraba el icono. Restauramos el layout. */
.footer-col .social-btn { display: inline-flex; padding: 0; }
.social-btn svg { display: block; }

/* Iconos de redes en el menú superior */
.nav-social { display: inline-flex; align-items: center; gap: 14px; }
.nav .nav-social-link { color: var(--ink-60); display: inline-flex; padding: 0; border-bottom: none; }
.nav-social-link svg { width: 21px; height: 21px; fill: currentColor; }
.nav-social-link::after { display: none !important; }
.nav-social-link:hover { color: var(--turq-dark); }

/* Fila "Síguenos" en la ficha de coche */
.coche-social { display: flex; align-items: center; gap: 14px; }
.coche-social-label {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-45);
}

/* ================= WHATSAPP FLOAT ================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: flex; align-items: center; gap: 0;
  background: var(--wa); color: #fff;
  border-radius: 999px; padding: 14px;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.7);
  text-decoration: none;
  transition: transform 0.25s var(--ease), padding 0.25s var(--ease);
  overflow: hidden;
}
.wa-float:hover { transform: translateY(-3px); padding-right: 20px; }
.wa-float-text {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.92rem;
  max-width: 0; opacity: 0; white-space: nowrap;
  transition: max-width 0.3s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
}
.wa-float:hover .wa-float-text { max-width: 100px; opacity: 1; margin-left: 8px; }

/* ================= REVEAL ANIMATION ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Safety net: if JS never runs, nothing stays hidden */
.no-js .reveal { opacity: 1; transform: none; }

/* ================= HERO ROTATOR (copy original AHORRO · VARIEDAD) ================= */
.hero-rotator {
  font-size: clamp(3.6rem, 11vw, 7.6rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  min-height: 1em;
  text-shadow: 0 2px 34px rgba(5, 28, 44, 0.85), 0 1px 3px rgba(5, 28, 44, 0.55);
}
.rot-word {
  display: inline-block;
  color: #fff;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.rot-word::after {
  content: ".";
  color: var(--turq);
}
.rot-word.is-swapping { opacity: 0; transform: translateY(-14px); }
[data-rot-sub] {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
[data-rot-sub].is-swapping { opacity: 0; transform: translateY(8px); }

.hero-chips {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.hero-chips li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

/* Aviso sin JS */
.js-warning {
  background: rgba(251, 186, 66, 0.16);
  border: 1px solid rgba(251, 186, 66, 0.5);
  padding: 16px 20px; border-radius: 8px;
  color: var(--ink-80); font-size: 0.95rem;
}
.js-warning a { color: var(--turq-dark); font-weight: 600; }

/* ================= PILLAR ICONS ================= */
.pillar-ic {
  display: inline-flex; width: 46px; height: 46px; border-radius: 10px;
  align-items: center; justify-content: center;
  background: rgba(29, 202, 211, 0.14);
  color: var(--turq-dark);
  margin-bottom: 20px;
}
.pillar-ic svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ================= MULTIMARCA ================= */
.brands-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.brand-cell {
  background: var(--white);
  min-height: 96px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  transition: background 0.3s var(--ease);
}
.section--tint .brand-cell { background: var(--paper); }
.brand-cell:hover { background: var(--white); }
.brand-cell img {
  width: 52px; height: 52px; object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand-cell:hover img { opacity: 1; transform: scale(1.08); }
.brand-word {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.9rem;
  color: var(--ink-60); text-align: center; letter-spacing: 0.01em;
}
.brand-cell:hover .brand-word { color: var(--ink); }

/* ================= FILTER BAR (stock) ================= */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 14px;
  align-items: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.filter-bar .field label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--ink-60);
}
.filter-bar .filter-reset { align-self: end; height: fit-content; }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--turq); color: var(--turq-dark); }
.filter-status { color: var(--ink-60); font-size: 0.9rem; margin: 0 0 24px; min-height: 1.2em; }

/* ================= CONTACT FORM ================= */
.contact-grid { align-items: start; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 30px 28px;
  box-shadow: var(--shadow-sm);
  display: grid; gap: 16px;
}
.form-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.15rem; margin: 0 0 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; color: var(--ink-60);
}
.form-field input, .form-field textarea {
  font-family: "Work Sans", sans-serif; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:hover, .form-field textarea:hover { border-color: var(--ink-45); }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--turq); box-shadow: 0 0 0 3px rgba(29, 202, 211, 0.18); outline: none;
}
.form-field input:user-invalid { border-color: #d94b4b; }
.form-status {
  font-size: 0.95rem; padding: 12px 16px; border-radius: 8px; margin: 0;
}
.form-status.is-ok {
  background: rgba(29, 202, 211, 0.14);
  border: 1px solid rgba(29, 202, 211, 0.5);
  color: var(--ink);
}
.form-status.is-error {
  background: #fdECEC; border: 1px solid #f3c0c0; color: #a11414;
}
.form-note { font-size: 0.78rem; color: var(--ink-45); margin: 0; }

/* ---------- Modal "Me interesa" (ficha de coche) ---------- */
.lead-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.lead-modal[hidden] { display: none; }
.lead-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 44, 0.55); backdrop-filter: blur(2px); }
.lead-modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  background: var(--white); border-radius: 16px; padding: 32px 30px 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
}
body.modal-open { overflow: hidden; }
.lead-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-80);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lead-modal-close:hover { border-color: var(--turq); color: var(--turq-dark); }
.lead-modal-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0 6px; }
.lead-modal-sub { color: var(--ink-60); margin: 0 0 20px; font-size: 0.98rem; }
/* El formulario ya vive dentro del panel: sin doble tarjeta */
.lead-modal .contact-form { background: transparent; border: none; box-shadow: none; padding: 0; }

/* ---------- Lightbox de galería (ficha de coche) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 44px 72px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 44, 0.92); }
.lightbox-stage {
  position: relative; z-index: 1; margin: 0;
  max-width: 92vw; max-height: 86vh; display: flex;
}
.lightbox-stage img {
  max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: #fff; }
.lightbox-close .ic, .lightbox-nav .ic { width: 24px; height: 24px; }
.lightbox-close { top: 20px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count {
  position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.45); padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox { padding: 16px 6px; }
  .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.contact-side { display: flex; flex-direction: column; gap: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-ic {
  flex: none; width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--turq-dark);
}
.section--tint .ci-ic { background: var(--white); }
.ci-ic svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ci-text { display: grid; gap: 3px; }

/* Estrellas SVG en reseñas */
.stars { display: inline-flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 18px; height: 18px; fill: var(--amber); stroke: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .vende-inner, .fin-inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
}

/* Buscador del hero: se apila en vertical en pantallas estrechas */
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero-search {
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(420px, 100%);
  }
  .hero-search .field select { padding: 14px 40px 14px 16px; }
  .hero-search-btn { width: 100%; margin-top: 2px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 24px;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav-social { padding: 16px 0 4px; gap: 22px; }
  .nav-social-link svg { width: 24px; height: 24px; }
  .nav-cta { text-align: center; margin-top: 14px; border-bottom: none !important; }
  .hamburger { display: flex; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .filter-reset { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .cars-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .calc-value { font-size: 1.35rem; }
  .filter-bar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ================================================================
   MULTIPÁGINA — utilidades, cabecera de página, listado y ficha
   ================================================================ */

/* Utilidades */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }
.section-cta { text-align: center; margin-top: 46px; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]:not(.nav-cta)::after { width: 100%; }

/* ---------- Cabecera de página (Vehículos) ---------- */
.page-head {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(38px, 6vw, 68px) clamp(34px, 5vw, 54px);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; top: -160px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(29, 202, 211, 0.22) 0%, rgba(29, 202, 211, 0) 65%);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 16px; position: relative; }
.page-head-sub { color: rgba(255, 255, 255, 0.78); max-width: 640px; font-size: 1.08rem; margin: 0; position: relative; }
.page-head .kicker { color: var(--turq); }

/* ---------- Migas de pan ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.82rem; color: var(--ink-45); margin-bottom: 18px;
}
.breadcrumb a { text-decoration: none; color: var(--ink-60); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--turq-dark); }
.page-head .breadcrumb { position: relative; color: rgba(255, 255, 255, 0.6); }
.page-head .breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.page-head .breadcrumb a:hover { color: var(--turq); }

/* ---------- Barra de búsqueda / filtros (vehiculos.html) ---------- */
.section--listado { padding-block: clamp(28px, 4vw, 46px) clamp(48px, 7vw, 90px); }
.search-bar {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  background:
    linear-gradient(180deg, rgba(29, 202, 211, 0.05), rgba(29, 202, 211, 0) 120px),
    var(--paper-2);
  border: 1px solid rgba(5, 28, 44, 0.10);
  border-top: 3px solid var(--turq);
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 18px 44px -24px rgba(5, 28, 44, 0.34);
  margin-bottom: 24px;
}
.search-bar .field label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--ink-80);
}
/* Controles blancos: resaltan sobre el panel y se leen con claridad */
.search-bar .field select,
.search-bar .input-icon input {
  background-color: var(--white);
  border-color: rgba(5, 28, 44, 0.14);
  box-shadow: var(--shadow-sm);
}
.search-bar .field select:hover,
.search-bar .input-icon input:hover { border-color: var(--ink-45); }
.search-bar .field select:focus,
.search-bar .input-icon input:focus {
  border-color: var(--turq); box-shadow: 0 0 0 3px rgba(29, 202, 211, 0.18);
}
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon .ic { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--ink-45); pointer-events: none; }
.input-icon input {
  width: 100%; font-family: "Work Sans", sans-serif; font-size: 0.98rem; color: var(--ink);
  padding: 12px 14px 12px 38px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input-icon input:hover { border-color: var(--ink-45); }
.input-icon input:focus { border-color: var(--turq); box-shadow: 0 0 0 3px rgba(29, 202, 211, 0.18); outline: none; }

/* Grupo de filtros secundarios: display:contents = sus .field entran en la rejilla */
.search-more { display: contents; }
.search-more-toggle {
  display: none;                 /* en escritorio se ven todos: sin botón */
  grid-column: 1 / -1;
  align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(5, 28, 44, 0.14); border-radius: var(--radius);
  background: var(--white); color: var(--ink-80);
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.search-more-toggle:hover { border-color: var(--turq); color: var(--turq-dark); }
.search-more-chevron {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease);
}
.search-more-toggle[aria-expanded="true"] .search-more-chevron { transform: rotate(180deg); }

@media (max-width: 759px) {
  .search-more-toggle { display: inline-flex; }
  .search-more:not(.is-open) { display: none; }
}

@media (min-width: 760px) {
  .search-bar {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
  }
  .field--search { grid-column: span 2; }
  .search-bar-reset { grid-column: 1 / -1; justify-self: end; }
}

/* ---------- Ficha de coche (coche.html) ---------- */
.coche-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 24px 6px; flex-wrap: wrap;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Poppins", sans-serif; font-weight: 500; font-size: 0.9rem;
  text-decoration: none; color: var(--ink); transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--turq-dark); }
.back-link .ic { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.back-link:hover .ic { transform: translateX(-3px); }

.coche-detail {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px;
  padding-block: 14px 26px; align-items: start;
}

/* Galería */
.coche-gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-main {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 3 / 2;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
/* Vídeo reproducido dentro de la galería principal (misma caja que la foto) */
.gallery-video {
  position: absolute; inset: 0; z-index: 3; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.gallery-video[hidden] { display: none; }
.gallery-video .video-embed { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
.gallery-video .video-file { width: 100%; max-height: 100%; border-radius: 0; box-shadow: none; }
/* Botón "ampliar" sobre la foto principal */
.gallery-zoom {
  position: absolute; bottom: 12px; right: 12px; z-index: 4;
  width: 40px; height: 40px; border-radius: 10px; border: none; cursor: zoom-in;
  background: rgba(5, 28, 44, 0.55); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.gallery-zoom[hidden] { display: none; }
.gallery-main:hover .gallery-zoom { opacity: 1; }
.gallery-zoom:hover { background: rgba(5, 28, 44, 0.82); }
.gallery-zoom .ic { width: 20px; height: 20px; }
@media (hover: none) { .gallery-zoom { opacity: 1; } } /* táctil: siempre visible */
.gallery-badge { position: absolute; top: 14px; left: 14px; z-index: 4; display: flex; gap: 8px; }
.gallery-badge .badge { position: static; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumb {
  position: relative;
  padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  cursor: pointer; background: var(--paper-2); aspect-ratio: 3 / 2;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--ink-45); }
.thumb.is-active { border-color: var(--turq); box-shadow: 0 0 0 2px rgba(29, 202, 211, 0.45); }
/* Miniatura del vídeo: portada + botón de play centrado */
.thumb--video { background: #0a2233; }
.thumb--video .thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 28, 44, 0.22);
}
.thumb--video .thumb-play::before {
  content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%;
  background: var(--turq); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.2s var(--ease);
}
.thumb--video .thumb-play svg {
  position: relative; width: 14px; height: 14px; margin-left: 2px; fill: #fff;
}
.thumb--video:hover .thumb-play::before { background: rgba(5, 28, 44, 0.82); }

/* Vídeo del vehículo */
.coche-video { max-width: 900px; }
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file {
  width: 100%; max-height: 72vh; display: block;
  border-radius: 14px; background: #000; box-shadow: var(--shadow-md);
}

/* Info / compra */
.coche-info { display: flex; flex-direction: column; gap: 22px; }
.coche-titulo { display: flex; flex-direction: column; gap: 6px; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.coche-titulo #coche-marca { line-height: 1; }
.coche-modelo { font-family: "Work Sans", sans-serif; font-weight: 500; font-size: 1.05rem; color: var(--ink-60); letter-spacing: 0; }
.coche-head { display: flex; flex-direction: column; gap: 10px; }
.coche-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.coche-chip {
  font-family: "Work Sans", sans-serif; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--turq-dark);
  background: rgba(29, 202, 211, 0.12); padding: 5px 12px; border-radius: 999px;
}
.coche-chip[hidden] { display: none; }
.coche-precio-box {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.coche-precio { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.02em; display: block; }
.coche-precio-note { font-size: 0.74rem; color: var(--ink-45); text-transform: uppercase; letter-spacing: 0.06em; }
.coche-cuota { text-align: right; display: flex; flex-direction: column; }
.coche-cuota-val { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--turq-dark); }
.coche-cuota-note { font-size: 0.72rem; color: var(--ink-45); text-transform: uppercase; letter-spacing: 0.06em; }
.coche-ctas { display: flex; flex-direction: column; gap: 12px; }
.coche-ctas-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coche-ctas-row .btn { width: 100%; }
.coche-trust {
  list-style: none; margin: 4px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line); display: grid; gap: 14px;
}
.coche-trust li { display: flex; gap: 12px; align-items: center; font-size: 0.95rem; color: var(--ink-80); }
.coche-trust .ic { flex: none; width: 22px; height: 22px; color: var(--turq-dark); }

/* Ficha técnica */
.coche-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
/* Ritmo vertical compacto para toda la ficha (evita los huecos enormes de .section) */
#coche-root .section { padding-block: clamp(26px, 3.5vw, 46px); }
.coche-specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2px; background: var(--line); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.coche-specs li { background: var(--white); padding: 20px 22px; display: flex; gap: 14px; align-items: center; }
.spec-ic {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(29, 202, 211, 0.12); color: var(--turq-dark);
}
.spec-ic .ic { width: 22px; height: 22px; }
.spec-txt { display: flex; flex-direction: column; gap: 2px; }
.spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-45); font-weight: 600; }
.spec-val { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.02rem; }

/* Mini ficha técnica (solo desktop): rellena el hueco de la columna de compra.
   La ficha grande de abajo se mantiene igual. */
.coche-specs-mini {
  list-style: none; margin: 2px 0 0; padding: 16px 18px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.coche-specs-mini li { display: flex; gap: 10px; align-items: center; min-width: 0; }
.coche-specs-mini .mini-ic { flex: none; width: 20px; height: 20px; color: var(--turq-dark); }
.coche-specs-mini .mini-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.coche-specs-mini .mini-label {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-45);
}
.coche-specs-mini .mini-val {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* En móvil/tablet la columna se apila y la ficha grande queda justo debajo:
   la mini sobra, así que se oculta. */
@media (max-width: 900px) { .coche-specs-mini { display: none; } }

/* Descripción + calculadora */
.coche-desc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.coche-descripcion { font-size: 1.12rem; color: var(--ink-80); line-height: 1.7; margin: 0 0 18px; }
.coche-desc-note { color: var(--ink-60); font-size: 1rem; margin: 0; }
.section--tint .calc { background: var(--white); }

/* No encontrado */
.coche-notfound { padding-block: clamp(60px, 10vw, 120px); }

/* Responsive ficha */
@media (max-width: 900px) {
  .coche-detail { grid-template-columns: 1fr; gap: 32px; }
  .coche-desc-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  .gallery-thumbs { gap: 8px; }
  .coche-ctas-row { grid-template-columns: 1fr; }
  .coche-precio-box { align-items: flex-start; }
  .coche-cuota { text-align: left; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Marquesina de reseñas: sin auto-scroll → filas navegables a mano */
  .rev-track { animation: none !important; transform: none !important; }
  .rev-row { overflow-x: auto; }
}

/* ================= ESTADO DE CARGA (skeletons) ================= */
.car-skeleton { pointer-events: none; border-color: var(--line); }
.car-skeleton .car-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.sk {
  background: var(--paper-2);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.sk-media { aspect-ratio: 640 / 420; width: 100%; }
.sk-line { height: 14px; width: 100%; }
.sk-line--lg { height: 20px; width: 70%; }
.sk-line--sm { width: 45%; }
.sk::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: sk-shimmer 1.3s var(--ease) infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }

.coche-loading {
  text-align: center;
  color: var(--ink-60);
  font-family: "Poppins", sans-serif;
  padding: 80px 22px;
}
