/* ============================================================
   AutosMR — Compraventa de vehículos · Lanzarote
   styles.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --color-bg:           #ffffff;
  --color-surface:      #f3f8f4;
  --color-surface-2:    #ffffff;
  --color-surface-3:    #e5efE7;
  --color-border:       #ccdcce;
  --color-border-lt:    #dce9de;

  --color-green:        #007a45;
  --color-green-dk:     #005c34;
  --color-green-bright: #00a85a;
  --color-green-lt:     rgba(0,122,69,.08);
  --color-green-glow:   rgba(0,122,69,.2);

  --color-gold:         #b8860b;
  --color-gold-bright:  #d4a017;
  --color-gold-lt:      rgba(184,134,11,.08);
  --color-gold-glow:    rgba(184,134,11,.2);

  /* --color-white is repurposed as primary heading/strong text on light bg */
  --color-white:        #0f172a;
  --color-text:         #4b5568;
  --color-text-muted:   #718096;
  --color-text-dark:    #a0aec0;

  --color-wa:           #25D366;

  --header-top-h:       38px;
  --header-main-h:      74px;
  --header-h:           112px;
  --logo-card-w:        215px;

  --font-base:          'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:          5px;
  --radius-md:          10px;
  --radius-lg:          16px;
  --radius-xl:          24px;
  --radius-full:        9999px;

  --shadow-sm:          0 1px 4px rgba(0,0,0,.07);
  --shadow-md:          0 4px 24px rgba(0,0,0,.09);
  --shadow-lg:          0 12px 48px rgba(0,0,0,.12);
  --shadow-green:       0 6px 28px rgba(0,122,69,.22);
  --shadow-gold:        0 6px 28px rgba(184,134,11,.18);

  --transition:         0.22s ease;
  --transition-slow:    0.4s ease;

  --container:          1200px;
  --container-pad:      clamp(1rem, 5vw, 2rem);
  --section-py:         clamp(4.5rem, 9vw, 7.5rem);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-base);
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm  { padding: 0.45rem 1.1rem; font-size: 0.82rem; }
.btn-lg  { padding: 0.8rem 1.75rem; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-green {
  background: var(--color-green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-green:hover {
  background: var(--color-green-bright);
  box-shadow: 0 8px 32px rgba(0,168,90,.45);
}

.btn-gold {
  background: var(--color-gold);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: var(--color-gold-bright);
  box-shadow: 0 8px 32px rgba(241,210,122,.35);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}
.btn-outline-gold:hover {
  background: var(--color-gold-lt);
  box-shadow: 0 4px 20px var(--color-gold-glow);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

/* ── Section labels ─────────────────────────────────────────── */
.section-label {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
}

.section-label--green { color: var(--color-green-bright); background: var(--color-green-lt); border-color: rgba(0,168,90,.2); }
.section-label--gold  { color: var(--color-gold);         background: var(--color-gold-lt);  border-color: rgba(214,177,95,.2); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-intro {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--color-text);
  max-width: 560px;
  margin-inline: auto;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Floating WhatsApp ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-wa);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem 0.75rem 0.9rem;
  box-shadow: 0 4px 24px rgba(37,211,102,.4);
  font-weight: 600;
  font-size: 0.875rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}

/* ── HEADER (doble nav) ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
}

/* ─ Barra superior: zona blanca (promos) + zona verde (links) ─ */
.header-top {
  height: var(--header-top-h);
  background: var(--color-green);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Zona blanca con corte diagonal */
.ht-white {
  flex: 0 1 44%;
  min-width: 0;
  background: #fff;
  display: flex;
  align-items: center;
  padding-left: calc(var(--logo-card-w) + 1.5rem);
  padding-right: 2.25rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

/* Promos rotativas (CSS only) */
.ht-promo {
  position: relative;
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.ht-promo-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-green-dk);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  animation: ht-promo-rotate 13.5s infinite;
}
.ht-promo-msg strong { font-weight: 800; color: var(--color-green); }
.ht-promo-msg:nth-child(2) { animation-delay: 4.5s; }
.ht-promo-msg:nth-child(3) { animation-delay: 9s; }

@keyframes ht-promo-rotate {
  0%        { opacity: 0; transform: translateY(8px); }
  3.5%, 30% { opacity: 1; transform: translateY(0); }
  33.5%, 100% { opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .ht-promo-msg { animation: none; }
  .ht-promo-msg:first-child { opacity: 1; }
}

/* Links corporativos sobre el verde */
.ht-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  padding-right: var(--container-pad);
  min-width: 0;
}

.ht-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.ht-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.ht-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.28);
  flex-shrink: 0;
}

.ht-social {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.ht-social:hover { color: #fff; }

.ht-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  user-select: none;
}

/* Pantallas medias: sin zona blanca, solo links verdes */
@media (max-width: 1150px) {
  .ht-white { display: none; }
  .ht-links { padding-left: calc(var(--logo-card-w) + 1.5rem); }
}

/* ─ Barra principal oscura ─ */
.header-main {
  height: var(--header-main-h);
  background: #0d1b2a;
  position: relative;
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  height: 100%;
  max-width: none;
  padding-left: calc(var(--logo-card-w) + 3.5rem);
  padding-right: var(--container-pad);
}

/* ─ Tarjeta logo sobresaliente (pegada al borde izquierdo, corte diagonal) ─ */
.header-logo-card {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--header-top-h));
  height: calc(var(--header-top-h) + var(--header-main-h) + 14px);
  width: var(--logo-card-w);
  background: #fff;
  border-radius: 0;
  /* Borde derecho cortado en diagonal donde choca con el nav */
  clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.4rem 2.4rem 0.4rem 1.4rem;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.26));
  z-index: 5;
  text-decoration: none;
  transition: filter var(--transition-slow);
}
.header-logo-card:hover {
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.34));
}
.header-logo-card .logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Logo en footer */
.logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-brand .logo-img {
  height: 60px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.12));
}

/* Legacy */
.logo-mark, .logo-text, .logo-name, .logo-tag { display: none; }

/* ─ Nav toggle ─ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 9px;
  z-index: 10;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.nav-toggle:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--color-green-bright);
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open { border-color: var(--color-green-bright); background: rgba(0,168,90,.14); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─ Nav ─ */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-link.active {
  color: var(--color-green-bright);
  background: rgba(0,168,90,.12);
}

/* Links secundarios: solo visibles en menú móvil */
.nav-item-secondary { display: none; }

/* scrolled — no visual change needed (always dark) */
.header.scrolled { }

.header-nav-ctas { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.header-cta { margin-left: 0; }

/* ── HERO ───────────────────────────────────────────────────── */
/* Hero has a dark photo overlay → restore white text locally */
.hero {
  position: relative;
  min-height: clamp(520px, 78svh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  --color-white:      #ffffff;
  --color-text:       #c8d5cc;
  --color-text-muted: #8fa898;
  --color-surface-2:  rgba(255,255,255,.1);
  --color-border-lt:  rgba(255,255,255,.18);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  object-position: center 40%;
  filter: blur(3px);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, transparent 22%),
    linear-gradient(to top,    rgba(255,255,255,1.00) 0%, transparent 32%),
    linear-gradient(135deg, rgba(8,12,18,0.52) 0%, rgba(8,12,18,0.38) 50%, rgba(8,12,18,0.46) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,122,69,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,122,69,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,122,69,.2) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214,177,95,.12) 0%, transparent 70%);
  bottom: 50px;
  left: -80px;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,168,90,.1) 0%, transparent 70%);
  top: 40%;
  left: 40%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* Hero content */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-green-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--color-green-bright);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
}

.hero-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.975rem, 1.8vw, 1.1rem);
  color: var(--color-text);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.3rem 0.8rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-full);
}

.hero-badge svg { color: var(--color-green-bright); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ── TRUST BAR ──────────────────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.25rem 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 0.4rem 1.25rem;
  white-space: nowrap;
}

.trust-item svg { color: var(--color-green-bright); flex-shrink: 0; }

.trust-sep {
  width: 1px;
  height: 22px;
  background: var(--color-border-lt);
}

/* ── SELL SECTION ───────────────────────────────────────────── */
.sell-section {
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

.sell-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-green) 50%, transparent);
  opacity: 0.3;
}

.sell-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.sell-step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  padding: 0 1rem;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-green-bright);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-green-bright);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.sell-step:hover .step-icon {
  background: rgba(0,168,90,.2);
  border-color: rgba(0,168,90,.4);
  transform: scale(1.06);
}

.sell-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.sell-step p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.5rem;
  color: var(--color-border-lt);
  flex-shrink: 0;
}

.sell-cta {
  text-align: center;
}

/* ── BUY SECTION ────────────────────────────────────────────── */
.buy-section {
  padding-block: var(--section-py);
  background: var(--color-surface);
  position: relative;
}

.buy-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,122,69,.04) 0%, transparent 50%);
  pointer-events: none;
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.buy-card {
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.buy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,168,90,.35);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.buy-card--featured {
  border-color: rgba(0,168,90,.3);
  background: linear-gradient(145deg, var(--color-surface-2) 50%, var(--color-green-lt) 100%);
}

.buy-card--featured:hover {
  border-color: var(--color-green-bright);
  box-shadow: 0 12px 40px rgba(0,168,90,.15);
}

.buy-card-badge {
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  background: var(--color-green);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.buy-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-bright);
  margin-bottom: 1.25rem;
  transition: background var(--transition), border-color var(--transition);
}

.buy-card--featured .buy-card-icon {
  background: var(--color-gold-lt);
  border-color: rgba(214,177,95,.2);
  color: var(--color-gold);
}

.buy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.buy-card p {
  font-size: 0.865rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.buy-cta { text-align: center; }

/* ── SERVICES ───────────────────────────────────────────────── */
.services-section {
  padding-block: var(--section-py);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.svc-card {
  border-radius: var(--radius-xl);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,122,69,.35);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.svc-card--gold:hover {
  border-color: rgba(214,177,95,.3);
}

.svc-card-inner {
  padding: 1.75rem;
}

.svc-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

.svc-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.svc-icon--green { background: var(--color-green-lt); color: var(--color-green-bright); border-color: rgba(0,168,90,.2); }
.svc-icon--gold  { background: var(--color-gold-lt);  color: var(--color-gold);         border-color: rgba(214,177,95,.2); }

.svc-card:hover .svc-icon--green { background: rgba(0,168,90,.2); border-color: rgba(0,168,90,.4); }
.svc-card:hover .svc-icon--gold  { background: rgba(214,177,95,.2); border-color: rgba(214,177,95,.4); }

.svc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.svc-card p {
  font-size: 0.855rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── TRUST SECTION ──────────────────────────────────────────── */
.trust-section {
  padding-block: var(--section-py);
  background: var(--color-surface);
}

.ts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.ts-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.ts-content > p {
  font-size: 0.975rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.trust-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trust-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tb-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.tb-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tb-icon--green { background: var(--color-green-lt); color: var(--color-green-bright); }
.tb-icon--gold  { background: var(--color-gold-lt);  color: var(--color-gold); }

.trust-block strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.trust-block p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Trust visual */
.ts-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ts-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.ts-card-main { }

.tsc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.tsc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tsc-dot--green {
  background: var(--color-green-bright);
  box-shadow: 0 0 8px var(--color-green-glow);
  animation: dot-pulse 2s ease-in-out infinite;
}

.tsc-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tsc-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.tsc-step--done { color: var(--color-text); }
.tsc-step--active { color: var(--color-white); font-weight: 600; }

.tsc-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tsc-pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-green-bright);
  flex-shrink: 0;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

.tsc-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border-lt);
  flex-shrink: 0;
}

.ts-card-pay {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--color-surface-2) 60%, var(--color-green-lt) 100%);
  border-color: rgba(0,168,90,.2);
}

.ts-card-pay svg { color: var(--color-green-bright); flex-shrink: 0; }
.ts-card-pay strong { display: block; font-size: 1rem; font-weight: 700; color: var(--color-white); margin-bottom: 0.1rem; }
.ts-card-pay span { font-size: 0.75rem; color: var(--color-text-muted); }

/* ── CTA SECTION ────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
  background: linear-gradient(135deg, #f0f7f2 0%, #ffffff 60%, #f5f9f6 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-bg { position: absolute; inset: 0; z-index: 0; }

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,122,69,.10) 0%, transparent 70%);
  top: -150px;
  left: -100px;
}

.cta-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(214,177,95,.08) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-bright);
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.9rem;
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.2);
  border-radius: var(--radius-full);
}

.cta-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-section {
  padding-block: var(--section-py);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* ── Contact split layout ──────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-right { padding-top: clamp(10rem, 13vw, 13rem); }

@media (max-width: 860px) { .contact-right { padding-top: 0; } }

.contact-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0.5rem 0 0.65rem;
  line-height: 1.1;
}

.contact-subtext {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact-schedule-block {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  color: var(--color-text-muted);
}
.contact-schedule-block svg { flex-shrink: 0; margin-top: 0.15rem; }
.contact-schedule-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--color-text-muted); margin-bottom: 0.2rem; }
.contact-schedule-value { font-size: 0.88rem; color: var(--color-white); font-weight: 500; }

.contact-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cta-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cta-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.cta-action--phone:hover { border-color: var(--color-green-bright); }
.cta-action--wa:hover    { border-color: #25d366; }

.cta-action-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cta-action--phone .cta-action-icon { background: rgba(34,197,94,.12); color: var(--color-green-bright); }
.cta-action--wa    .cta-action-icon { background: rgba(37,211,102,.12); color: #25d366; }

.cta-action-text { flex: 1; min-width: 0; }
.cta-action-text span  { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--color-text-muted); }
.cta-action-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--color-white); margin-top: 0.15rem; }
.cta-action > svg:last-child { color: var(--color-text-muted); flex-shrink: 0; transition: color var(--transition); }
.cta-action:hover > svg:last-child { color: var(--color-white); }

.contact-map-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-map-embed { height: 290px; }
.contact-map-embed iframe { width: 100%; height: 100%; display: block; }

.contact-map-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-map-footer svg { color: var(--color-green-bright); flex-shrink: 0; }
.contact-map-footer:hover { color: var(--color-white); }
.cmf-link { margin-left: auto; color: var(--color-green-bright); font-weight: 600; }

@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
}

/* ── Contact channels row ──────────────────────────────────── */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cc-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.75rem 1.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cc-channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.cc-channel--phone:hover { border-color: var(--color-green-bright); }
.cc-channel--wa:hover    { border-color: #25d366; }
.cc-channel--loc:hover   { border-color: var(--color-gold); }

.cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.cc-channel--phone .cc-icon { background: rgba(34,197,94,.12); color: var(--color-green-bright); }
.cc-channel--wa    .cc-icon { background: rgba(37,211,102,.12); color: #25d366; }
.cc-channel--loc   .cc-icon { background: rgba(214,177,95,.12); color: var(--color-gold); }

.cc-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
}

.cc-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
}

/* ── Contact body (form + map) ─────────────────────────────── */
.contact-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-form-col .contact-form-wrap {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-map-frame--tall {
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-map-frame--tall iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-schedule {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cs-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.cs-row svg { color: var(--color-green-bright); flex-shrink: 0; margin-top: 0.1rem; }

.cs-days {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-white);
}

.cs-hours {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

@media (max-width: 860px) {
  .contact-channels { grid-template-columns: 1fr; }
  .contact-body { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .contact-channels { grid-template-columns: repeat(3, 1fr); padding: 0; }
  .cc-channel { padding: 1.1rem 0.75rem; }
  .cc-value { font-size: 0.82rem; }
}

.ci-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.cq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cq-btn:hover { transform: translateY(-2px); }

.cq-btn--green { background: var(--color-green); color: #fff; box-shadow: var(--shadow-green); }
.cq-btn--green:hover { background: var(--color-green-bright); }
.cq-btn--wa    { background: var(--color-wa);    color: #fff; }
.cq-btn--ig    { background: linear-gradient(135deg, #e1306c, #833ab4); color: #fff; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cd-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cd-item svg { color: var(--color-green-bright); flex-shrink: 0; margin-top: 0.15rem; }

/* Form */
.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group label span { color: var(--color-green-bright); }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%235a5a5a' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-group select option { background: var(--color-surface-2); color: var(--color-white); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-green-lt);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e85454;
  box-shadow: 0 0 0 3px rgba(232,84,84,.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: 0.78rem;
  color: #e85454;
  min-height: 1.1em;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.privacy-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 0.1rem;
  accent-color: var(--color-green);
  cursor: pointer;
  border-radius: 3px;
}

.form-success {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-green-bright);
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.25);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer-top { padding-block: clamp(3rem, 6vw, 5rem); }

.footer-top-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  color: var(--color-green-bright);
  background: var(--color-green-lt);
  border-color: rgba(0,168,90,.25);
}

.footer-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--color-white); }

.footer-contact p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.footer-contact a:hover { color: var(--color-green-bright); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-demo {
  font-size: 0.75rem;
  color: var(--color-border-lt);
  font-style: italic;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-links a:hover { color: var(--color-green-bright); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Mobile nav */
@media (max-width: 900px) {
  /* ===== Header móvil: doble barra estilo escritorio (compacto) ===== */
  :root {
    --header-top-h: 32px;
    --header-main-h: 52px;
    --header-h: 84px;
    --logo-card-w: 122px;
  }

  /* Barra superior verde: links corporativos + idioma (sin CTAs) */
  .header-top { display: flex; }
  .ht-white { display: none; }
  .ht-links {
    gap: 0.9rem;
    padding-left: calc(var(--logo-card-w) + 0.4rem);
    padding-right: var(--container-pad);
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ht-links::-webkit-scrollbar { display: none; }
  .ht-link { font-size: 0.64rem; }
  .ht-social, .ht-divider { display: none; }
  .ht-lang { font-size: 0.6rem; padding: 0.12rem 0.4rem; margin-left: auto; flex-shrink: 0; }

  /* Barra principal oscura (como escritorio) */
  .header-main {
    height: var(--header-main-h);
    background: #0d1b2a;
    position: relative;
    overflow: visible;
  }

  /* Logo blanco a la izquierda con corte diagonal (como escritorio) */
  .header-logo-card {
    position: absolute;
    left: 0;
    top: calc(-1 * var(--header-top-h));
    height: calc(var(--header-top-h) + var(--header-main-h) + 8px);
    width: var(--logo-card-w);
    transform: none;
    background: #fff;
    box-shadow: none;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    border-radius: 0;
    padding: 0.25rem 1.35rem 0.25rem 0.85rem;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.22));
    display: flex;
    align-items: center;
    z-index: 6;
  }
  .header-logo-card .logo-img { height: 50px; filter: none; }

  /* ===== Mostrar/ocultar nav según scroll ===== */
  .header-top { transition: background .3s ease; }
  .header-main { transition: background .3s ease; }
  .ht-links { transition: opacity .3s ease, transform .3s ease; }
  .nav { transition: opacity .3s ease, transform .3s ease; }
  .header-logo-card {
    transition: left .35s ease, top .35s ease, transform .35s ease,
                clip-path .35s ease, border-radius .35s ease, padding .35s ease;
  }

  /* Arriba del todo (sin scroll): solo el logo centrado con su rectángulo */
  .header:not(.scrolled) .header-top { background: transparent; }
  .header:not(.scrolled) .header-main { background: transparent; }
  .header:not(.scrolled) .ht-links,
  .header:not(.scrolled) .nav {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .header:not(.scrolled) .header-logo-card {
    left: 50%;
    top: calc(-1 * var(--header-top-h));
    height: auto;
    transform: translateX(-50%);
    clip-path: none;
    border-radius: 0 0 12px 12px;
    padding: 0.4rem 1.5rem;
  }

  /* Ocultar accesibilidad y hamburguesa en este layout */
  .a11y-btn { display: none !important; }
  .nav-toggle { display: none !important; }

  /* Header inner: nav inline a la derecha */
  .header-inner {
    height: 100%;
    max-width: none;
    padding-left: calc(var(--logo-card-w) + 0.3rem);
    padding-right: 0.6rem;
    justify-content: flex-end;
    gap: 0.3rem;
  }

  /* Nav estático horizontal (no panel deslizante) */
  .nav {
    position: static;
    inset: auto;
    width: auto;
    height: 100%;
    flex: 1;
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    pointer-events: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0;
    overflow: visible;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
    width: auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list > li:first-child { display: none; } /* Inicio = el logo */
  .nav-list li { width: auto; }
  .nav-item-secondary { display: none; }
  .nav-link {
    display: block;
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    padding: 0.3rem 0.26rem;
    border: none;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
  .nav-link:hover,
  .nav-link:active { background: rgba(255,255,255,.1); color: var(--color-green-bright); }

  /* CTAs: ocultar "Contactar", "Acceder" -> icono de usuario */
  .header-nav-ctas {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
  .header-nav-ctas .btn-green { display: none !important; }
  #headerAuthBtn {
    width: 30px; height: 30px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.06) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'><path d='M10 10a3 3 0 100-6 3 3 0 000 6zm-6 7a6 6 0 1112 0H4z'/></svg>") center / 16px no-repeat;
    flex-shrink: 0;
  }
  .header-user-wrap { width: auto; }
  .header-user-btn {
    width: 30px; height: 30px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  #headerUserName { display: none; }
  .header-user-dropdown { right: 0; left: auto; }

  .nav-mobile-contact { display: none !important; }
}

/* Bloque de contacto del menú solo visible en móvil */
.nav-mobile-contact { display: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 560px; margin-inline: auto; }
  .hero-sub { max-width: 100%; margin-inline: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-visual { max-width: 440px; margin-inline: auto; }

  .ts-inner { grid-template-columns: 1fr; }
  .ts-visual { order: -1; }

  .contact-inner { grid-template-columns: 1fr; }

  .footer-top-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .sell-steps { gap: 1rem; }
  .step-arrow { display: none; }
  .sell-step { min-width: 160px; }
}

@media (max-width: 540px) {
  .hero-title { font-size: 2.1rem; }
  .cta-title  { font-size: 1.8rem; }

  .trust-items { flex-direction: column; align-items: flex-start; padding-inline: 1rem; }
  .trust-sep { display: none; }

  .buy-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .hero-visual { gap: 0.75rem; }

  .cta-actions { flex-direction: column; align-items: center; }
  .contact-quick { justify-content: center; }
}

/* ── SELL SECTION REDESIGN ───────────────────────────────── */
.sell-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.sell-left h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.sell-desc {
  color: var(--color-text);
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.sell-perks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.sell-perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.perk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-bright);
  flex-shrink: 0;
}

.sell-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Vertical steps */
.sell-steps-v {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sell-step-v {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.sell-step-v:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--color-border-lt) 0%, transparent 100%);
}

.ssv-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ssv-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-green-bright);
  opacity: 0.7;
  line-height: 1;
}

.ssv-icon {
  width: 40px;
  height: 40px;
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-bright);
  flex-shrink: 0;
}

.ssv-icon--gold {
  background: var(--color-gold-lt);
  border-color: rgba(214,177,95,.2);
  color: var(--color-gold);
}

.ssv-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.3rem;
  padding-top: 0.55rem;
}

.ssv-body p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── CATALOG SECTION ──────────────────────────────────────── */
.catalog-section {
  padding-block: var(--section-py);
  background: var(--color-surface);
  position: relative;
}

.catalog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,122,69,.04) 0%, transparent 40%);
  pointer-events: none;
}

/* Toolbar */
.cat-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.cat-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1;
}

.cat-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-full);
  color: var(--color-text);
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.cat-select:hover { border-color: var(--color-green); }
.cat-select:focus { outline: 2px solid var(--color-green); outline-offset: 2px; }
.cat-select option { background: #ffffff; color: #0f172a; }

.cat-count {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 30vw, 360px), 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Empty */
.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* Car card */
.car-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  z-index: 1;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: var(--color-green-bright);
}

/* Carousel */
.car-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0e1a12;
  box-sizing: border-box;
  cursor: grab;
  user-select: none;
}

.car-carousel:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0e1a12;
  display: block;
  pointer-events: none;
}

/* Info slide */
.carousel-slide--info {
  background: linear-gradient(145deg, #0b1a10 0%, #0e2417 100%);
  --color-white: #ffffff;
  --color-text: #c8d5cc;
  --color-text-muted: #8fa898;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.slide-info {
  text-align: center;
  width: 100%;
}

.si-brand {
  display: block;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.si-version {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.si-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.si-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.4rem;
}

.si-stat span {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-green-bright);
  margin-bottom: 0.3rem;
}

.si-stat strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-white);
}

.si-price {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.si-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* CTA slide */
.carousel-slide--cta {
  background: linear-gradient(145deg, #080d10 0%, #0a140a 100%);
  --color-white: #ffffff;
  --color-text: #c8d5cc;
  --color-text-muted: #8fa898;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.slide-cta {
  text-align: center;
  width: 100%;
}

.cta-slide-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green-bright);
  margin-bottom: 0.75rem;
}

.cta-slide-title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.cta-slide-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cta-slide-actions .btn { font-size: 0.82rem; padding: 0.6rem 1.25rem; }

.cta-slide-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-green-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.cta-slide-link:hover { opacity: 0.75; }

/* ── Simulator slide ───────────────────────────────────────── */
/* Todo el contenido se escala con el ancho de la tarjeta (container query),
   de forma que siempre cabe dentro del carrusel 4/3 sin recortes, y respeta
   las zonas de los controles superpuestos: corazón (arriba dcha.), flechas
   (centro izq./dcha.) y dots (abajo centro). */
.carousel-slide--sim {
  background: linear-gradient(145deg, #080d10 0%, #0d2014 100%);
  --color-white: #ffffff;
  --color-text: #c8d5cc;
  --color-text-muted: #8fa898;
  --color-border: #263a29;
  --color-border-lt: #1e3020;
  container-type: inline-size;
  overflow: hidden;
}

.slide-sim {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 2.75rem 1.6rem;
  gap: 0.5rem;
  font-size: 0.78rem;
}

@supports (container-type: inline-size) {
  .slide-sim {
    /* los laterales nunca bajan de 44px: es el ancho que ocupan las flechas */
    padding: 4cqw max(12cqw, 44px) 7cqw;
    gap: 2cqw;
    font-size: 3.5cqw;
  }
  /* Coches con muchos plazos (3+ filas de botones): un punto más compacto */
  .slide-sim--dense { font-size: 3.05cqw; gap: 1.6cqw; }
}

.slide-sim .sim-tag {
  font-size: 0.92em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--color-green-bright);
  margin: 0;
}
.slide-sim .sim-tag strong { color: var(--color-white); letter-spacing: 0.02em; }

.slide-sim .sim-controls { display: flex; flex-direction: column; gap: 0.65em; }

.slide-sim .sim-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.slide-sim .sim-row--months {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35em;
}

.slide-sim .sim-lbl {
  font-size: 0.95em;
  line-height: 1.2;
  color: var(--color-text-sub);
  white-space: nowrap;
}
.slide-sim .sim-lbl strong { color: var(--color-white); }

.slide-sim .sim-range {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  accent-color: var(--color-green-bright);
  cursor: pointer;
}

.slide-sim .sim-months-wrap {
  display: grid;
  grid-template-columns: repeat(var(--sim-cols, 4), minmax(0, 1fr));
  gap: 0.3em;
}

.slide-sim .sim-month-btn {
  padding: 0.34em 0.15em;
  font-size: 0.88em;
  line-height: 1.15;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.4em;
  color: var(--color-text-sub);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.slide-sim .sim-month-btn.active,
.slide-sim .sim-month-btn:hover {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.slide-sim .sim-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  background: rgba(255,255,255,0.05);
  border-radius: 0.6em;
  padding: 0.5em 0.7em;
  border: 1px solid rgba(255,255,255,0.08);
}
.slide-sim .sim-result-lbl { font-size: 0.9em; line-height: 1.2; color: var(--color-text-sub); }
.slide-sim .sim-result-val {
  font-size: 1.35em;
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-gold);
  white-space: nowrap;
}

.slide-sim .sim-cta {
  display: flex;
  gap: 0.45em;
}
.slide-sim .sim-cta .btn {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.95em;
  line-height: 1.2;
  padding: 0.6em 0.5em;
  justify-content: center;
  text-align: center;
}

.slide-sim .sim-disclaimer {
  font-size: 0.78em;
  line-height: 1.25;
  color: rgba(255,255,255,0.32);
  margin: 0;
  text-align: center;
}

/* Carousel nav */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s, background var(--transition);
}

.car-carousel:hover .carousel-nav { opacity: 1; }

.carousel-nav:hover { background: rgba(0,0,0,.88); }
.carousel-nav--prev { left: 10px; }
.carousel-nav--next { right: 10px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.carousel-dot.active {
  background: var(--color-green-bright);
  transform: scale(1.4);
}

/* Car card body */
.car-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.car-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.car-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.car-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.car-badge--disponible {
  background: var(--color-green-lt);
  color: var(--color-green-bright);
}

.car-badge--reservado {
  background: var(--color-gold-lt);
  color: var(--color-gold);
}

.car-badge--vendido {
  background: var(--color-surface-3);
  color: var(--color-text-muted);
}

.car-card-version {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.car-specs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.car-spec {
  font-size: 0.75rem;
  color: var(--color-text);
  background: var(--color-surface-3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.car-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.car-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-green-bright);
  letter-spacing: -0.03em;
}

.btn-card-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-green-bright);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0,168,90,.3);
  border-radius: var(--radius-full);
  transition: background var(--transition), border-color var(--transition);
}

.btn-card-detail:hover {
  background: var(--color-green-lt);
  border-color: var(--color-green-bright);
}

/* ── RESPONSIVE catalog + sell ──────────────────────────── */
@media (max-width: 900px) {
  .sell-inner { grid-template-columns: 1fr; gap: 3rem; }
  .sell-left h2 { font-size: 2rem; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 640px) {
  .sell-actions { flex-direction: column; }
  .cat-toolbar { flex-direction: column; align-items: flex-start; }
  .cat-filters { width: 100%; }
  .cat-select { flex: 1; min-width: 0; }
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .catalog-page-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
}

@media (max-width: 400px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-page-grid { grid-template-columns: 1fr; }
}

/* ── OFERTAS CAROUSEL ───────────────────────────────────── */
.offers-section {
  padding-block: 2rem 2.5rem;
  background: var(--color-surface-2);
  overflow: hidden;
}

.offers-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.offers-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-white);
  margin: 0.4rem 0 0;
}

.offers-carousel-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.offers-carousel {
  overflow: hidden;
  border-radius: 22px;
}

.offers-track {
  display: flex;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Slide: banner publicitario a pantalla completa (1 por slide) ── */
.offer-slide {
  flex: 0 0 100%;
  position: relative;
  background: var(--offer-bg, #0f1a2e);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: 22px;
  cursor: pointer;
}

/* Imagen de fondo a pantalla completa */
.offer-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.offer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.offer-slide:hover .offer-img-wrap img {
  transform: scale(1.05);
}

/* Overlay: gradiente de abajo hacia arriba */
.offer-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.05) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 22px;
}

/* Sin imagen: degradado del bg_color */
.offer-slide:not(:has(.offer-img-wrap img[src]))::after,
.offer-slide.offer-no-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--offer-bg,#0f1a2e) 60%, #fff 40%) 0%, var(--offer-bg,#0f1a2e) 100%);
  z-index: 0;
}

/* Contenido: anclado abajo-izquierda, con presencia */
.offer-slide-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  max-width: 62%;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0,168,90,.22);
  border: 1px solid rgba(0,168,90,.55);
  color: #00c86a;
  font-size: clamp(0.6rem, 1.1vw, 0.72rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 11px;
  border-radius: 20px;
  width: fit-content;
}

.offer-titulo {
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.82);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-mid { display: flex; align-items: center; gap: 0.6rem; }

.offer-precio-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.offer-precio-label {
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offer-precio {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #ecc878;
  letter-spacing: -0.03em;
  line-height: 1;
}

.offer-bottom {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.offer-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: clamp(0.85rem, 1.4vw, 0.98rem);
  font-weight: 800;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}

.offer-cta:hover { opacity: .88; transform: translateY(-1px); }

.offer-brand {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,.38);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation */
.offers-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10,10,10,.8);
  border: 1px solid rgba(0,168,90,.35);
  color: var(--color-green-bright);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  z-index: 10;
}

.offers-nav:hover { background: rgba(10,10,10,.95); border-color: var(--color-green-bright); }
.offers-nav--prev { left: 0; }
.offers-nav--next { right: 0; }

.offers-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.offer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,168,90,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.offer-dot.active {
  background: var(--color-green-bright);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .offers-carousel-wrap { padding: 0 1rem; }

  .offer-slide { flex: 0 0 100%; aspect-ratio: 4 / 3; }
  .offer-slide-inner { max-width: 100%; padding: 1.5rem 1.4rem; }
  .offer-titulo { font-size: clamp(1.5rem, 7vw, 2rem); }
  .offer-tagline { font-size: 0.92rem; -webkit-line-clamp: 3; }
  .offer-precio { font-size: 1.9rem; }
  .offer-cta { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
  .offer-brand { display: none; }
  /* Botones de navegación sobre el banner en móvil */
  .offers-nav { width: 38px; height: 38px; background: rgba(10,10,10,.6); }
  .offers-nav--prev { left: 0.5rem; }
  .offers-nav--next { right: 0.5rem; }
}

/* ── FEATURED GRID (index.html destacados) ───────────────── */
.featured-section {
  padding-block: var(--section-py);
  background: var(--color-surface);
  position: relative;
}

.featured-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,122,69,.04) 0%, transparent 40%);
  pointer-events: none;
}

.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.featured-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0.35rem 0 0;
  line-height: 1.1;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── FC CARD ─────────────────────────────────────────────── */
.fc-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.fc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.1);
  border-color: var(--color-green-bright);
}

.fc-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  padding-top: 30px;           /* banda blanca superior: el badge no tapa el logo de la foto */
  box-sizing: border-box;
}

.fc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.fc-card:hover .fc-img-wrap img { transform: scale(1.04); }

.fc-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-green-bright);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.fc-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.fc-make {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green-bright);
}

.fc-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fc-version {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: -0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-specs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.fc-spec {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--color-text);
  background: var(--color-surface-3);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
}

.fc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.fc-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-green-bright);
  letter-spacing: -0.03em;
}

.fc-cta-lnk {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-green-bright);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}

.fc-card:hover .fc-cta-lnk { gap: 0.55rem; }

/* ── RESPONSIVE featured ─────────────────────────────────── */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ── Car detail page thumbnail strip ─────────────────────────── */
.car-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.car-thumbs::-webkit-scrollbar { display: none; }

.car-thumb {
  flex: 0 0 72px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
  background: var(--color-surface-3);
}

.car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.car-thumb.active {
  border-color: var(--color-green-bright);
  opacity: 1;
}

.car-thumb:hover { opacity: 0.85; }
.car-thumb.active:hover { opacity: 1; }

@media (max-width: 540px) {
  .car-thumb { flex: 0 0 58px; height: 40px; }
}

/* ── Contact map ──────────────────────────────────────────────── */
.contact-map {
  margin-top: 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-map-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text);
}

.contact-map-header svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-map-link {
  margin-left: auto;
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.contact-map-link:hover { opacity: 0.75; }

.contact-map-frame {
  height: 340px;
  position: relative;
  background: var(--color-surface-3);
}

.contact-map-frame iframe {
  display: block;
  filter: saturate(0.7) brightness(0.9);
}

@media (max-width: 640px) {
  .contact-map-frame { height: 240px; }
}

/* ── Contact map inline (inside left column) ──────────────────── */
.contact-map-inline {
  margin-top: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-map-inline .contact-map-frame {
  height: 220px;
}

.contact-map-inline .contact-map-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-left: 0;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.contact-map-inline .contact-map-link:hover { opacity: 0.75; }

/* ── Cookie banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(8,8,8,.97);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}

.cookie-banner.visible { transform: translateY(0); }
.cookie-banner.hiding  { transform: translateY(100%); }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 240px;
}

.cookie-banner-text svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner-text p {
  font-size: 0.84rem;
  color: var(--color-text-sub);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-cookie-reject {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border-2);
  background: transparent;
  color: var(--color-text-sub);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-cookie-reject:hover { border-color: var(--color-gold); color: var(--color-gold); }

.btn-cookie-accept {
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: var(--color-gold);
  color: #0a0a0a;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-cookie-accept:hover { opacity: 0.88; }

@media (max-width: 600px) {
  .cookie-banner-inner { gap: 1rem; }
  .cookie-banner-actions { width: 100%; }
  .btn-cookie-reject, .btn-cookie-accept { flex: 1; text-align: center; }
}

/* ── Legal pages ────────────────────────────────────────────── */
.legal-page {
  padding-top: calc(var(--header-h, 72px) + 3rem);
  padding-bottom: 5rem;
  min-height: 80vh;
}

.legal-page .container { max-width: 760px; }

.legal-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.legal-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--color-green);
}

.legal-body h3 {
  font-size: 0.97rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--color-text);
}

.legal-body p, .legal-body li {
  font-size: 0.93rem;
  color: var(--color-text-sub);
  line-height: 1.75;
}

.legal-body ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body a  { color: var(--color-green); text-decoration: underline; text-underline-offset: 2px; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.87rem;
}
.legal-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  border: 1px solid var(--color-border);
}
.legal-table td {
  padding: 0.6rem 0.8rem;
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.legal-table code { overflow-wrap: anywhere; }

/* En móvil cuatro columnas no caben: cada fila pasa a ser una tarjeta y
   cada dato lleva encima el nombre de su columna (data-label). */
@media (max-width: 640px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }
  .legal-table td { border: 0; border-bottom: 1px solid var(--color-border); }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SPLIT PANEL
   ═══════════════════════════════════════════════════════════════ */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding-block: clamp(5.5rem, 11vw, 8.5rem);
  width: 100%;
}

/* New layout: text left + single search card right */
.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-bright);
  background: rgba(0,168,90,.18);
  border: 1px solid rgba(0,168,90,.28);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-trust-item svg { color: var(--color-green-bright); flex-shrink: 0; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-search-card {
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.hero-panel {
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Text uses dark colors on white panel */
  --color-white: #0f172a;
  --color-text:  #4b5568;
  --color-text-muted: #718096;
}

.hero-panel--buy {
  background: rgba(255,255,255,.90);
  border-color: rgba(255,255,255,.75);
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green-bright);
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.2);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.hp-eyebrow--gold {
  color: var(--color-gold);
  background: var(--color-gold-lt);
  border-color: rgba(214,177,95,.2);
}

.hp-title {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}

.hp-title--buy { color: var(--color-gold-bright); }

.hp-sub {
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.hp-perks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hp-perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--color-text);
}

.hp-perks li svg { color: var(--color-green-bright); flex-shrink: 0; }

.hp-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

/* Search form — buy panel */
.hp-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

.hpsf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hpsf-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hpsf-label svg { color: var(--color-gold); }

.hpsf-select {
  width: 100%;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-white);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3e%3cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 11px;
}

.hpsf-select:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: rgba(255,255,255,.1);
}

.hpsf-select option { background: #ffffff; color: #0f172a; }

/* Header nav dual CTAs */
.header-nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .header-nav-ctas { display: none; }
}

/* Hero responsive */
@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: 1fr;
    padding-block: clamp(1.75rem, 5vw, 2.75rem);
    gap: 1.75rem;
  }
  .hero-headline { font-size: clamp(2.2rem, 7vw, 3.2rem); }
  .hero-search-card { max-width: 480px; }
}

@media (max-width: 540px) {
  .hero-main { padding-block: 1.5rem; gap: 1.25rem; }
  .hero-headline { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-trust { gap: 0.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-search-card { max-width: 100%; }
  .hp-title { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  .hp-sub   { display: none; }
  .hp-eyebrow { font-size: 0.62rem; padding: 0.25rem 0.65rem; margin-bottom: 0.75rem; }
  .hp-search-form { gap: 0.55rem; }
  .hpsf-select { padding: 0.55rem 1.75rem 0.55rem 0.65rem; font-size: 0.78rem; }
}

/* Legacy split layout responsive (kept for safety) */
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding-block: clamp(4rem, 9vw, 6rem); }
  .hero-panel { padding: 1.1rem; border-radius: var(--radius-lg); }
}

/* ═══════════════════════════════════════════════════════════════
   CAR CARD — NEW DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Override old body padding */
.car-card-body { padding: 0; }

/* Header bar */
.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: var(--color-surface-3);
  border-bottom: 1px solid var(--color-border);
}

.cc-header-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.cc-header-brand strong { color: var(--color-gold); font-weight: 800; }
.cc-header-brand svg { color: var(--color-green-bright); }

.cc-header-gty {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--color-green-bright);
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.2);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.55rem;
}

/* Title row */
.cc-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem 0;
}

.cc-name-col { flex: 1; min-width: 0; }

.car-card-name {
  font-size: 0.92rem !important;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0 !important;
}

.car-card-version {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin: 0.12rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Columna de precios apilados a la derecha */
.cc-price-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  flex-shrink: 0;
  min-width: 118px;
}
.cc-price-stack .cc-cuota-box,
.cc-price-stack .cc-price-box { width: 100%; }

/* Cuota box */
.cc-cuota-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--color-green-dk);
  border: 1px solid var(--color-green);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.6rem;
  flex-shrink: 0;
  --color-white: #ffffff;
}

.cc-cuota-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cc-cuota-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cc-cuota-amount small {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: 0;
}

/* Caja precio financiado (separada, en la fila de specs) */
.cc-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--color-surface-3);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.7rem;
  flex-shrink: 0;
}
.cc-price-label {
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.cc-price-val {
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cc-cuota-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0;
  margin-top: 0.05rem;
}

.cc-cuota-fin-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Specs + Financiado */
.cc-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  margin-top: 0.65rem;
}

.cc-specs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.cc-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.5rem;
  white-space: nowrap;
}

.cc-spec svg { color: var(--color-text-muted); }

.cc-financed {
  font-size: 0.68rem;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-financed strong {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  background: #0a4a8a;
  border: 1px solid #1a6aaa;
  border-radius: var(--radius-sm);
  padding: 0.12rem 0.4rem;
  margin-left: 0.2rem;
}

/* Action buttons */
.cc-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0 0.75rem 0.55rem;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.2rem;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.cc-btn:hover { opacity: 0.82; transform: translateY(-1px); }
.cc-btn:active { transform: translateY(0); }

.cc-btn--mail  { background: #1a5f85; color: #fff; }
.cc-btn--phone { background: #163660; color: #fff; }
.cc-btn--wa    { background: #25D366; color: #fff; }
.cc-btn--chat  { background: var(--color-surface-3); color: var(--color-text-muted); border: 1px solid var(--color-border-lt); width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: var(--radius-sm); }
.cc-btn--chat:hover { background: var(--color-gold-lt); color: var(--color-gold); border-color: var(--color-gold); }

/* Detail / Más información */
.cc-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-surface-3);
  border-top: 1px solid var(--color-border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.cc-detail-btn:hover {
  background: var(--color-border-lt);
  color: var(--color-white);
}


/* ============================================================
   Chatbot Widget
   ============================================================ */

/* ── Container ── */
.chatbot-widget {
  position: fixed;
  bottom: calc(var(--cookie-bar-h, 0px) + 1.5rem);
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: var(--font-body);
}

/* ── Trigger button ── */
.chatbot-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-bright));
  color: #000;
  box-shadow: 0 4px 20px rgba(214,177,95,.4);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chatbot-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(214,177,95,.55);
}
.chatbot-trigger:active { transform: scale(0.96); }

/* Pulse animation */
@keyframes cbPulse {
  0%   { box-shadow: 0 4px 20px rgba(214,177,95,.4); }
  50%  { box-shadow: 0 4px 30px rgba(214,177,95,.8), 0 0 0 8px rgba(214,177,95,.12); }
  100% { box-shadow: 0 4px 20px rgba(214,177,95,.4); }
}
.chatbot-trigger--pulse { animation: cbPulse 2s ease-in-out 3; }

/* Badge */
.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
}

/* ── Teaser invite bubble ── */
.chatbot-teaser {
  position: relative;
  max-width: 232px;
  margin-bottom: -0.15rem;
  padding: 0.7rem 1.95rem 0.7rem 0.9rem;
  background: var(--color-surface, #fff);
  color: var(--color-text, #1a1a1a);
  border: 1px solid var(--color-border-lt, rgba(0,0,0,.08));
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  font-size: 0.82rem;
  line-height: 1.4;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .26s ease, transform .26s cubic-bezier(.4,0,.2,1);
}
.chatbot-teaser--in { opacity: 1; transform: translateY(0) scale(1); }
.chatbot-teaser[hidden] { display: none; }
.chatbot-teaser:hover { border-color: var(--color-gold, #c8a84b); }
.chatbot-teaser-text { display: block; pointer-events: none; }
.chatbot-teaser-close {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted, #8a8a8a);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chatbot-teaser-close:hover { background: rgba(0,0,0,.08); color: var(--color-text, #1a1a1a); }
@media (prefers-reduced-motion: reduce) {
  .chatbot-teaser { transition: opacity .2s ease; transform: none; }
  .chatbot-teaser--in { transform: none; }
}

/* ── Panel ── */
.chatbot-panel {
  width: 340px;
  max-height: 520px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-lt);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 0 0 1px rgba(184,134,11,.12);
  animation: cbSlideUp 0.22s cubic-bezier(.4,0,.2,1);
}
@keyframes cbSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #111 0%, #1a1500 100%);
  border-bottom: 1px solid rgba(255,255,255,.1);
  --color-white: #ffffff;
  --color-text: #c8d5cc;
  --color-text-muted: #8fa898;
  flex-shrink: 0;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.chatbot-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-bright));
  color: #000;
  flex-shrink: 0;
}
.chatbot-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.chatbot-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}
.chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.chatbot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-bright);
  box-shadow: 0 0 0 2px rgba(0,168,90,.25);
}
.chatbot-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.chatbot-close:hover { background: var(--color-border-lt); color: var(--color-white); }

/* ── Messages ── */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--color-border-lt); border-radius: 4px; }

/* Message row */
.chat-msg {
  display: flex;
  max-width: 86%;
}
.chat-msg--bot  { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; flex-direction: row-reverse; }

/* Bubble */
.chat-bubble {
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
}
.chat-msg--bot .chat-bubble {
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-bright));
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.chat-bubble strong { color: var(--color-white); font-weight: 700; }
.chat-msg--user .chat-bubble strong { color: #000; }
.chat-bubble a.chat-link {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Typing indicator */
.chat-msg--typing .chat-bubble {
  padding: 0.7rem 1rem;
}
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: cbBounce 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(1) { animation-delay: 0s; }
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes cbBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ── Quick replies ── */
.chatbot-qr-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  min-height: 0;
}
.chatbot-qr-wrap:empty { display: none; }

.chat-qr-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.chat-qr-btn:hover {
  background: var(--color-gold);
  color: #000;
}

/* ── Input row ── */
.chatbot-input-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-surface);
}
.chatbot-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-lt);
  border-radius: 999px;
  color: var(--color-white);
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.chatbot-input::placeholder { color: var(--color-text-muted); }
.chatbot-input:focus { border-color: var(--color-gold); }
.chatbot-input-row--disabled { opacity: 0.5; }
.chatbot-input-row--disabled .chatbot-input,
.chatbot-input-row--disabled .chatbot-send { cursor: not-allowed; }

.chatbot-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #000;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), transform 0.15s;
}
.chatbot-send:hover  { background: var(--color-gold-bright); transform: scale(1.08); }
.chatbot-send:active { transform: scale(0.94); }

/* ── Vehicle mini-cards in chat ── */
.chat-cars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.chat-car-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-lt);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.chat-car-card:hover {
  border-color: var(--color-gold);
  background: var(--color-surface-2);
}
.chat-car-card img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--color-surface-3);
}
.chat-car-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.chat-car-info strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-white) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-car-info span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.chat-car-price {
  font-size: 0.78rem !important;
  font-weight: 700;
  color: var(--color-gold) !important;
}

.chat-see-all {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  padding: 0.4rem;
  border: 1px dashed var(--color-border-lt);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.chat-see-all:hover { border-color: var(--color-gold); }

/* ── Mobile ── */
@media (max-width: 480px) {
  .chatbot-widget {
    bottom: calc(var(--cookie-bar-h, 0px) + 1rem);
    right: 1rem;
  }
  .chatbot-panel {
    width: calc(100vw - 2rem);
    max-height: 70svh;
  }
  .chatbot-teaser { max-width: min(232px, calc(100vw - 5.5rem)); }
}


/* ============================================================
   Blog
   ============================================================ */

/* ── Blog Hero ── */
.blog-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 2.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.blog-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.blog-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-text);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ── Category pills ── */
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-cat-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-lt);
  background: transparent;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.blog-cat-btn:hover,
.blog-cat-btn--active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
  font-weight: 700;
}

/* ── Blog grid ── */
.blog-section {
  padding: 3rem 0 4rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.blog-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem;
}

/* ── Blog card ── */
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
}
.blog-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-card--featured .blog-card-img { min-height: 200px; flex: 0 0 340px; }
.blog-card--featured .blog-card-body { padding: 2rem; }

.blog-card-img {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color, var(--color-gold)) 40%, #e8f0e9), color-mix(in srgb, var(--cat-color, var(--color-green)) 20%, #e8f0e9));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  flex-shrink: 0;
}
.blog-card-cat {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--cat-color, var(--color-gold));
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.blog-card-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
  margin: 0;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.blog-card-title a:hover { color: var(--color-gold); }
.blog-card-excerpt {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.6;
  flex: 1;
}
.blog-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}
.blog-card-link:hover { color: var(--color-gold-bright); }

/* ── Blog CTA banner ── */
.blog-cta-banner {
  border: 1px solid var(--color-border-lt);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface));
}
.blog-cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  flex-wrap: wrap;
}
.blog-cta-banner-inner strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 0.35rem;
}
.blog-cta-banner-inner span {
  font-size: 0.85rem;
  color: var(--color-text);
}
.blog-cta-banner-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Blog article pages ── */
.blog-article-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 2.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.blog-article-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  max-width: 800px;
  margin: 0.75rem 0 1rem;
}
.blog-article-cat {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--color-gold-lt);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.blog-article-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  max-width: 800px;
  margin-bottom: 1.25rem;
}
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.blog-article-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* ── Article body ── */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 3rem 0 4rem;
}
@media (max-width: 900px) {
  .blog-article-layout { grid-template-columns: 1fr; }
}

.blog-article-body {
  padding: 2.5rem 0 4rem;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.75;
}
.blog-article-body .container {
  max-width: 820px;
}
.blog-article-body h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 2.5rem 0 1rem;
}
.blog-article-body h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--color-white);
  margin: 1.75rem 0 0.75rem;
}
.blog-article-body p { margin-bottom: 1.25rem; }
.blog-article-body ul,
.blog-article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.blog-article-body li { margin-bottom: 0.5rem; }
.blog-article-body strong { color: var(--color-white); }

/* CTA box inside article */
.article-cta-box {
  border: 1px solid rgba(0,168,90,.35);
  border-radius: 14px;
  background: var(--color-green-lt);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.article-cta-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.5rem;
}
.article-cta-box p {
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.article-cta-box .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

/* Related articles */
.article-related {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--color-border);
}
.article-related-title,
.article-related h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.article-related-grid,
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Related article cards */
.related-article-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.related-article-card:hover {
  border-color: var(--color-gold);
  background: var(--color-surface-3);
  transform: translateY(-2px);
}
.related-article-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.4;
  margin: 0;
}
.related-article-cat {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--color-gold-lt);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}
.related-article-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 0.25rem;
}

/* Article hero class aliases */
.article-category-chip {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--color-gold-lt);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }
.article-date::before { content: "📅 "; font-size: 0.7em; }
.article-author::before { content: "✍️ "; font-size: 0.7em; }
.article-read-time::before { content: "⏱ "; font-size: 0.7em; }

/* Sidebar */
.blog-article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.blog-sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

/* ============================================================
   Simulador de financiación
   ============================================================ */

.sim-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 2.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.sim-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.sim-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-text);
  max-width: 620px;
  line-height: 1.65;
}

.sim-section { padding: 3rem 0 5rem; }
.sim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4rem;
}
@media (max-width: 860px) { .sim-layout { grid-template-columns: 1fr; } }

/* ── Calculator card ── */
.sim-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-lt);
  border-radius: 16px;
  padding: 2rem;
}
.sim-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2rem;
}
.sim-field { margin-bottom: 2rem; }
.sim-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sim-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sim-card .sim-range {
  flex: 1;
  accent-color: var(--color-gold);
  cursor: pointer;
  height: 4px;
}
.sim-input-wrap {
  display: flex;
  align-items: center;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-lt);
  border-radius: 8px;
  overflow: hidden;
  width: 130px;
  flex-shrink: 0;
}
.sim-input {
  width: 100%;
  padding: 0.55rem 0.5rem 0.55rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  -moz-appearance: textfield;
}
.sim-input::-webkit-outer-spin-button,
.sim-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sim-input-unit {
  padding: 0 0.6rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-left: 1px solid var(--color-border);
}
.sim-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* Months grid */
.sim-meses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.sim-meses-btn {
  padding: 0.55rem 0;
  border-radius: 8px;
  border: 1px solid var(--color-border-lt);
  background: transparent;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.sim-meses-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
.sim-meses-btn--active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
}

.sim-tin-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Result panel ── */
.sim-result-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.sim-result-card {
  background: linear-gradient(135deg, #1a1500, var(--color-surface));
  border: 1px solid var(--color-gold);
  border-radius: 16px;
  overflow: hidden;
}
.sim-result-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(214,177,95,.08), transparent);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.sim-result-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.sim-result-cuota {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sim-result-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.sim-result-breakdown {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sim-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-text);
}
.sim-breakdown-row strong { color: var(--color-white); font-weight: 600; }
.sim-breakdown-row--total {
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border);
  font-weight: 600;
}
.sim-breakdown-row--total strong { color: var(--color-gold); }
.sim-result-ctas {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.sim-result-card .sim-disclaimer {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Catalog picker */
.sim-catalog-picker {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem;
}
.sim-picker-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.sim-picker-list { display: flex; flex-direction: column; gap: 0.4rem; }
.sim-picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.sim-picker-item:hover {
  border-color: var(--color-gold);
  color: var(--color-white);
  background: var(--color-gold-lt);
}
.sim-pi-name { font-weight: 500; }
.sim-pi-price { font-weight: 700; color: var(--color-gold); }

/* FAQ */
.sim-faq { padding-top: 3rem; border-top: 1px solid var(--color-border); }
.sim-faq-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2rem;
}
.sim-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.sim-faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.sim-faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}
.sim-faq-item summary::-webkit-details-marker { display: none; }
.sim-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-gold);
  flex-shrink: 0;
}
.sim-faq-item[open] summary::after { content: '−'; }
.sim-faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Comparador de vehículos
   ============================================================ */

/* Compare bar (bottom) */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: var(--color-surface);
  border-top: 1px solid var(--color-green);
  padding: 0.75rem 1rem;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.compare-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.compare-slots {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.compare-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-surface-3);
  border: 1px dashed var(--color-border-lt);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  min-width: 140px;
}
.compare-slot.filled {
  border-style: solid;
  border-color: var(--color-green);
  color: var(--color-white);
}
.compare-slot-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
}
.compare-slot-remove:hover { color: #e74c3c; }
.compare-bar-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.compare-clear-btn {
  background: none;
  border: 1px solid var(--color-border-lt);
  color: var(--color-text);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.compare-clear-btn:hover { border-color: var(--color-green); color: var(--color-white); }

/* Compare button on card */
.cc-compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border-lt);
  background: transparent;
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  flex: 1;
}
.cc-compare-btn:hover { border-color: var(--color-green); color: var(--color-green); }
.cc-compare-btn.comparing { background: var(--color-green-lt); border-color: var(--color-green); color: var(--color-green); }

/* Barra de comparar en móvil: apilada y sin solapes */
@media (max-width: 640px) {
  .compare-bar { padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); }
  .compare-bar-inner { gap: 0.5rem 0.6rem; flex-wrap: wrap; }
  .compare-bar-label { width: 100%; font-size: 0.72rem; }
  .compare-slots {
    order: 2;
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .compare-slot { min-width: 132px; flex: 0 0 auto; }
  .compare-bar-actions { order: 3; width: 100%; }
  .compare-bar-actions > * { flex: 1; }
}

/* Compare modal */
.compare-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.compare-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-lt);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  animation: cbSlideUp 0.22s cubic-bezier(.4,0,.2,1);
}
.compare-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.compare-modal-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
}
.compare-modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-surface-3); border: 1px solid var(--color-border);
  color: var(--color-text); cursor: pointer; transition: all var(--transition);
}
.compare-modal-close:hover { background: var(--color-border-lt); color: var(--color-white); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.compare-table th {
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  white-space: nowrap;
}
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.compare-table tr td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-surface-2);
  white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .compare-best { color: var(--color-green-bright); font-weight: 700; }

/* ============================================================
   Etiquetas comerciales (vehicle tags)
   ============================================================ */
.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.6rem;
}
.cc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cc-tag--oferta    { background: rgba(231,76,60,.15); border: 1px solid rgba(231,76,60,.4); color: #e74c3c; }
.cc-tag--nuevo     { background: rgba(0,168,90,.12);  border: 1px solid rgba(0,168,90,.3);  color: #00a85a; }
.cc-tag--garantia  { background: var(--color-gold-lt); border: 1px solid rgba(214,177,95,.3); color: var(--color-gold); }
.cc-tag--pocos-km  { background: rgba(74,144,226,.12); border: 1px solid rgba(74,144,226,.3); color: #4a90e2; }
.cc-tag--familia   { background: rgba(155,89,182,.12); border: 1px solid rgba(155,89,182,.3); color: #9b59b6; }
.cc-tag--financiable { background: rgba(0,122,69,.12); border: 1px solid rgba(0,122,69,.3); color: var(--color-green-bright); }

/* ============================================================
   Recientes vistos
   ============================================================ */
.recently-viewed {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}
.recently-viewed-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.rv-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.rv-card:hover { border-color: var(--color-gold); background: var(--color-surface-2); }
.rv-card-img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--color-surface-3); }
.rv-card-info { min-width: 0; }
.rv-card-name { font-size: 0.78rem; font-weight: 700; color: var(--color-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card-sub { font-size: 0.7rem; color: var(--color-text-muted); }
.rv-card-price { font-size: 0.78rem; font-weight: 700; color: var(--color-gold); }

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card-img { flex: 0 0 180px; }
  .blog-cta-banner-inner { flex-direction: column; }
  .sim-meses-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   CATALOG PAGE — página /catalogo/
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}
.breadcrumb a { color: var(--color-text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* Hero de página */
.catalog-page-hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  background: linear-gradient(180deg, rgba(0,122,69,.045) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border);
}

.catalog-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.catalog-page-hero p {
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  color: var(--color-text);
  max-width: 520px;
}

/* Content section */
.catalog-page-section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

/* Toolbar */
.cat-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.cat-page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.cat-select {
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.84rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3e%3cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 10px;
  min-width: 110px;
}
.cat-select:focus { border-color: var(--color-gold); background-color: var(--color-surface-3); }
.cat-select option { background: var(--color-surface-2); color: var(--color-white); }

.cat-page-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cat-page-count {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cat-page-reset {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.cat-page-reset:hover { color: var(--color-white); border-color: var(--color-text-muted); }

/* Grid de coches */
.catalog-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 28vw, 340px), 1fr));
  gap: 1.25rem;
}

/* Empty state */
.catalog-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
}
.catalog-page-empty p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Responsive catalog page */
@media (max-width: 900px) {
  .cat-page-toolbar { flex-direction: column; align-items: flex-start; }
  .cat-page-filters { width: 100%; }
  .cat-select { flex: 1; min-width: 100px; }
  .cat-page-actions { width: 100%; justify-content: space-between; }
  .catalog-page-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ============================================================
   BLOG INDEX PAGE — página /blog/
   ============================================================ */
.blog-index-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(214,177,95,.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.blog-index-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.blog-index-subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--color-text);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}

.blog-index-content {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* Responsive blog index */
@media (max-width: 640px) {
  .blog-index-hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured .blog-card-img { display: none; }
}

/* ============================================================
   Auth · Favorites · Car Chat Modal
   ============================================================ */

/* ── Modal overlay ──────────────────────────────────────────── */
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalBoxIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
  animation: modalOverlayIn 0.3s ease both;
}
.modal-overlay.open .modal-box {
  animation: modalBoxIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-box {
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 92svh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-box--auth { max-width: 400px; padding: 2rem; }
.modal-box--chat { max-width: 480px; padding: 1.75rem; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-3);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--color-border-lt); color: var(--color-white); }

/* ── Auth modal ─────────────────────────────────────────────── */
.auth-logo { text-align: center; margin-bottom: 1.25rem; }
.auth-logo-img { height: 52px; margin: 0 auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.15)); }

.auth-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.auth-tab.active {
  background: var(--color-gold-lt);
  color: var(--color-gold);
}
.auth-tab:hover:not(.active) { color: var(--color-white); }

.auth-field { margin-bottom: 1rem; }
.auth-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-label-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #444; }
.auth-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.auth-input:focus { outline: none; border-color: var(--color-gold); }
.auth-input::placeholder { color: var(--color-text-muted); }

.auth-err {
  font-size: 0.8rem;
  color: #e05555;
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}

.auth-submit { margin-top: 0.25rem; }

.auth-switch {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}
.auth-switch-btn {
  color: var(--color-gold);
  font-weight: 600;
  text-decoration: underline;
}

.auth-recovery-intro {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.auth-ok {
  font-size: 0.82rem;
  color: #4caf86;
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}

/* ── Header user menu ───────────────────────────────────────── */
.header-user-wrap {
  position: relative;
}
.header-user-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.header-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  overflow: hidden;
}
.header-user-wrap.open .header-user-dropdown { display: block; }
.header-user-dd-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.header-user-dd-item:hover { background: var(--color-surface-3); color: var(--color-white); }

/* ── Favorite button on car cards ───────────────────────────── */
/* Fav overlay (superpuesto sobre imagen en catálogo y ficha) */
.cc-fav-overlay {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12,12,16,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s, border-color 0.15s;
}
.cc-fav-overlay:hover { background: rgba(220,50,50,0.18); color: #e05555; border-color: rgba(220,50,50,0.35); }
.cc-fav-overlay:hover svg { stroke: #e05555; }
.cc-fav-overlay.active { background: rgba(220,50,50,0.15); color: #e05555; border-color: rgba(220,50,50,0.45); }
.cc-fav-overlay.active svg { fill: #e05555; stroke: #e05555; }
.cc-fav-overlay:active { transform: scale(0.88); }

/* Botón "Preguntar por este coche" en ficha */
.btn-ask-car {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  background: var(--color-surface-3);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  justify-content: center;
}
.btn-ask-car:hover { background: var(--color-gold); color: #000; }
.btn-ask-car svg { flex-shrink: 0; }

.cc-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-lt);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s;
}
.cc-fav-btn:hover { background: rgba(220,50,50,.12); border-color: rgba(220,50,50,.4); color: #e05555; }
.cc-fav-btn.active { background: rgba(220,50,50,.12); border-color: rgba(220,50,50,.5); color: #e05555; }
.cc-fav-btn.active svg { fill: currentColor; }
.cc-fav-btn:active { transform: scale(0.88); }

/* ── Car chat modal ─────────────────────────────────────────── */
.chat-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.chat-car-preview {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}
.chat-car-img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.chat-car-info { min-width: 0; }
.chat-car-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-car-version {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-car-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gold);
}

.chat-field { margin-bottom: 1.25rem; }
.chat-textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-base);
  transition: border-color var(--transition);
}
.chat-textarea:focus { outline: none; border-color: var(--color-green); }

.chat-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.chat-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  color: var(--color-white);
  font-size: 0.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2000;
  white-space: nowrap;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { border-color: var(--color-green); color: var(--color-green-bright); }
.toast--error   { border-color: #e05555; color: #e05555; }

/* ── Responsive adjustments ─────────────────────────────────── */
@media (max-width: 480px) {
  .modal-box--auth,
  .modal-box--chat { padding: 1.5rem 1.25rem; }
  .chat-car-img { width: 70px; height: 50px; }
}

/* ── Favorites login prompt ─────────────────────────────────── */
.fav-login-prompt {
  background: var(--color-surface-2);
  border: 1px solid rgba(220,50,50,0.35);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.9rem;
  width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  animation: fadeInDown 0.18s ease;
}
.flp-close {
  position: absolute;
  top: 0.5rem; right: 0.6rem;
  background: none; border: none;
  color: var(--color-text-sub);
  font-size: 0.85rem; cursor: pointer;
  line-height: 1; padding: 0.2rem;
}
.flp-close:hover { color: var(--color-white); }
.flp-title {
  font-size: 0.88rem; font-weight: 700;
  color: var(--color-white); margin: 0 0 0.3rem;
}
.flp-text {
  font-size: 0.78rem; color: var(--color-text-sub);
  margin: 0 0 0.75rem; line-height: 1.4;
}
.flp-actions { display: flex; gap: 0.5rem; }
.flp-btn {
  flex: 1; padding: 0.45rem 0.5rem;
  font-size: 0.78rem; font-weight: 600;
  border-radius: 6px; cursor: pointer;
  transition: opacity 0.15s;
  border: none;
}
.flp-btn:hover { opacity: 0.85; }
.flp-btn--reg { background: var(--color-gold); color: #000; }
.flp-btn--login { background: var(--color-surface-3); color: var(--color-white); }

/* ═══════════════════════════════════════════════════════════════
   Register Nudge
   ═══════════════════════════════════════════════════════════════ */
.register-nudge {
  position: fixed;
  bottom: calc(var(--cookie-bar-h, 0px) + 1.25rem);
  right: 1.25rem;
  width: min(320px, calc(100vw - 2.5rem));
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  z-index: 1200;
  animation: nudgeIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes nudgeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.register-nudge-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.register-nudge-close:hover { color: var(--color-text); background: var(--color-surface-3); }
.register-nudge-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.register-nudge-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.35rem;
}
.register-nudge-text {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.register-nudge-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.register-nudge-later {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.register-nudge-later:hover { color: var(--color-text); }

/* ═══════════════════════════════════════════════════════════════
   Cookie Consent Bar
   ═══════════════════════════════════════════════════════════════ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  z-index: 1300;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.cookie-bar:not([hidden]) {
  transform: translateY(0);
}
.cookie-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}
.cookie-bar-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.cookie-bar-text strong { color: var(--color-text); }
.cookie-bar-link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.4em;
  white-space: nowrap;
}
.cookie-bar-link:hover { color: var(--color-gold-lt); }
.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn {
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.55rem 1rem;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn--accept {
  background: var(--color-gold);
  color: #000;
}
.cookie-btn--accept:hover { opacity: 0.88; }
.cookie-btn--necessary {
  background: var(--color-surface-3);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cookie-btn--necessary:hover { border-color: var(--color-gold); color: var(--color-gold); }
.cookie-btn--dismiss {
  background: none;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-lt);
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.cookie-btn--dismiss:hover { color: var(--color-text); border-color: var(--color-border); }

/* Banner de analytics.js: aceptar y rechazar con el mismo peso visual */
.cookie-btn--choice {
  background: var(--color-surface-3);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cookie-btn--choice:hover { border-color: var(--color-gold); color: var(--color-gold); }
.cookie-btn--link {
  background: none;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.55rem 0.4rem;
}
.cookie-btn--link:hover { color: var(--color-gold); }
.cookie-btn:focus-visible,
.cookie-pref input:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.cookie-bar-prefs {
  flex-basis: 100%;
  display: grid;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border-lt);
}
.cookie-bar-prefs[hidden] { display: none; }
.cookie-pref {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  cursor: pointer;
}
.cookie-pref strong { color: var(--color-text); }
.cookie-pref input {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  accent-color: var(--color-gold);
}
.cookie-bar-prefs .cookie-btn { justify-self: start; }
html #amr-chat-btn { bottom: calc(var(--cookie-bar-h, 0px) + 24px); }

@media (max-width: 600px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-block: 0.9rem;
  }
  .cookie-bar-text  { font-size: 0.8rem; min-width: 0; }
  .cookie-bar-link  { display: inline; margin-left: 0.3em; }
  .cookie-bar-actions {
    width: 100%;
    gap: 0.5rem;
  }
  .cookie-btn--accept,
  .cookie-btn--necessary,
  .cookie-bar-actions .cookie-btn--choice { flex: 1; padding: 0.65rem 0.5rem; font-size: 0.8rem; }
  .cookie-bar-prefs .cookie-btn { justify-self: stretch; padding: 0.65rem 0.5rem; }
  .cookie-btn--dismiss { width: 40px; height: auto; flex-shrink: 0; }
  .register-nudge   { right: 0.75rem; bottom: calc(var(--cookie-bar-h, 0px) + 0.75rem); }
}

/* ── Sell Section — Split image layout ──────────────────────── */
.sell-split-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 620px;
}

.sell-img-col {
  position: relative;
  overflow: hidden;
}

.sell-img-col picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% top;
  display: block;
}

.sell-img-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 68%, var(--color-surface) 96%);
  pointer-events: none;
}

.sell-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-green-bright);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  z-index: 1;
}

.sell-content-col {
  background: var(--color-surface);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sell-content-col h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  margin-top: 0.75rem;
}

/* Stats row */
.sell-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sell-stat {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  text-align: center;
}

.sell-stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: -0.03em;
  line-height: 1;
}

.sell-stat-lbl {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Perks with checkmarks */
.sell-perks-v {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.sell-perks-v li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text);
  font-weight: 500;
}

.spv-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-green-bright);
}

.sell-section .sell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .sell-split-wrap { grid-template-columns: 1fr; min-height: auto; }
  .sell-img-col { height: 400px; }
  .sell-content-col { padding: 2.5rem 1.5rem; }
  .sell-img-col::after { background: linear-gradient(to bottom, transparent 50%, var(--color-surface) 100%); }
}

@media (max-width: 540px) {
  .sell-img-col { height: 300px; }
  .sell-stats { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
  .sell-stat-val { font-size: 1.2rem; }
  .sell-section .sell-actions { flex-direction: column; }
  .sell-section .sell-actions .btn { width: 100%; justify-content: center; }
}

/* ── Quick-Access Cards (post-hero) ──────────────────────────── */
.qs-section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.qs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.qs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--color-border-lt);
  background: var(--color-surface-2);
  padding: 2.25rem 1.75rem 1.75rem;
  transition: border-color var(--transition), transform 0.3s ease;
}

.qs-card:hover { transform: translateY(-5px); }
.qs-card--catalog:hover { border-color: var(--color-gold); }
.qs-card--sell:hover    { border-color: var(--color-green-bright); }
.qs-card--contact:hover { border-color: #60a5fa; }

.qs-bg-glyph {
  position: absolute;
  bottom: -12px;
  right: -12px;
  opacity: 0.04;
  pointer-events: none;
  color: var(--color-white);
}

.qs-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.qs-card--catalog .qs-card-icon { background: var(--color-gold-lt);        color: var(--color-gold); }
.qs-card--sell    .qs-card-icon { background: var(--color-green-lt);       color: var(--color-green-bright); }
.qs-card--contact .qs-card-icon { background: rgba(96,165,250,.1);         color: #60a5fa; }

.qs-card-title {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.4rem;
}

.qs-card-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: block;
  line-height: 1.55;
}

.qs-card-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: gap var(--transition);
}

.qs-card--catalog .qs-card-cta { color: var(--color-gold); }
.qs-card--sell    .qs-card-cta { color: var(--color-green-bright); }
.qs-card--contact .qs-card-cta { color: #60a5fa; }
.qs-card:hover .qs-card-cta    { gap: 0.85rem; }

@media (max-width: 700px) {
  .qs-grid { grid-template-columns: 1fr; }
  .qs-card { min-height: auto; padding: 1.5rem 1.25rem; }
}

/* ── Reviews / Testimonios ───────────────────────────────────── */
.reviews-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--color-surface);
}

.reviews-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.reviews-score {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.reviews-score-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 1px; }
.reviews-score-val   { color: var(--color-white); font-weight: 700; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rv-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--color-bg);
}

.rv-avatar--gold  { background: var(--color-gold); }
.rv-avatar--green { background: var(--color-green-bright); }
.rv-avatar--blue  { background: #60a5fa; }

.rv-info { flex: 1; }
.rv-name  { font-size: 0.9rem; font-weight: 700; color: var(--color-white); }
.rv-stars { color: #fbbf24; font-size: 0.75rem; letter-spacing: 2px; margin-top: 0.2rem; }

.rv-text {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.rv-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ── PÁGINAS CORPORATIVAS (sobre nosotros / servicios / entregas) ── */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(145deg, #0b1a10 0%, #0d1b2a 100%);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 20%, rgba(0,168,90,.14) 0%, transparent 70%),
    radial-gradient(ellipse 500px 280px at 15% 85%, rgba(214,177,95,.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }

.page-hero .section-label--green {
  margin-bottom: 1rem;
  background: rgba(0,168,90,.16);
  border-color: rgba(0,168,90,.4);
  color: #3ddf95;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero h1 strong { color: var(--color-green-bright); font-weight: 900; }

.page-hero p {
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  max-width: 600px;
  margin-inline: auto;
}

.page-hero-cta {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; margin-top: 1.75rem;
}
.page-hero-trust {
  position: relative; z-index: 1;
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  justify-content: center;
}
.page-hero-trust li {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: .4rem .85rem;
}
.page-hero-trust li svg { color: var(--color-green-bright); flex-shrink: 0; }

/* Sección historia / texto + tarjeta */
.about-section { padding-block: var(--section-py); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p strong { color: var(--color-white); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-stat {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.about-stat:hover { transform: translateY(-3px); border-color: rgba(0,168,90,.35); }

.about-stat strong {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: var(--color-green);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.about-stat span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  display: block;
}

/* Valores */
.values-section { padding-block: var(--section-py); background: var(--color-surface); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Checklist revisión (servicios) */
.check-section { padding-block: var(--section-py); background: var(--color-surface); }

.check-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.check-left h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.check-left p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  transition: border-color var(--transition), transform var(--transition);
}

.check-item:hover { border-color: rgba(0,168,90,.35); transform: translateY(-2px); }

.check-item-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-green-bright);
  background: var(--color-green-lt);
  border: 1px solid rgba(0,168,90,.25);
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.check-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.15rem;
}

.check-item p {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Galería de entregas */
.deliveries-section { padding-block: var(--section-py); }

.deliveries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.delivery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-3);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
}

.delivery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.delivery-card:hover img { transform: scale(1.04); }

.delivery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 45%);
  pointer-events: none;
}

.delivery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.delivery-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.delivery-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  background: var(--color-green);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.deliveries-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 3rem 1rem;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .check-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .check-list { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .about-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .deliveries-grid { grid-template-columns: 1fr; }
}

/* ── FAQ (acordeón nativo, accesible) ──────────────────────── */
.faq-section { padding-block: var(--section-py); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-lt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: rgba(0,168,90,.35); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-white);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-right: 2px solid var(--color-green);
  border-bottom: 2px solid var(--color-green);
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--color-green); outline-offset: -2px; }
.faq-answer {
  padding: 0 1.35rem 1.2rem;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
}
.faq-answer a { color: var(--color-green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Filtros del catálogo con icono identificativo ───────────── */
.cat-select[class*="cat-select--"] {
  padding-left: 2.1rem;
  background-repeat: no-repeat, no-repeat;
  background-position: left 0.65rem center, right 0.6rem center;
  background-size: 15px, 10px;
}
/* chevron derecho compartido */
.cat-select--marca, .cat-select--fuel, .cat-select--gear,
.cat-select--price, .cat-select--sort {
  --cat-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}
.cat-select--marca {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007a45'%3E%3Cpath d='M5 11l1.5-4.5A2 2 0 018.4 5h7.2a2 2 0 011.9 1.5L19 11m-14 0h14m-14 0a2 2 0 00-2 2v3a1 1 0 001 1h1a1 1 0 001-1v-1h10v1a1 1 0 001 1h1a1 1 0 001-1v-3a2 2 0 00-2-2M7 14h.01M17 14h.01'/%3E%3C/svg%3E"), var(--cat-chevron);
}
.cat-select--fuel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 21V5a1 1 0 00-1-1H5a1 1 0 00-1 1v16'/%3E%3Cpath d='M3 21h12'/%3E%3Cpath d='M14 8h2.5a1.5 1.5 0 011.5 1.5V16a1.5 1.5 0 003 0V9l-2.5-2.5'/%3E%3C/svg%3E"), var(--cat-chevron);
}
.cat-select--gear {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 11-2.83 2.83l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 11-2.83-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 112.83-2.83l.06.06a1.65 1.65 0 001.82.33H9a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 112.83 2.83l-.06.06a1.65 1.65 0 00-.33 1.82V9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z'/%3E%3C/svg%3E"), var(--cat-chevron);
}
.cat-select--price {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 01-2.83 0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E"), var(--cat-chevron);
}
.cat-select--sort {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h13M3 12h9M3 18h5M17 8l3-3 3 3M20 5v14'/%3E%3C/svg%3E"), var(--cat-chevron);
}

/* ── Mejoras visuales páginas corporativas ─────────────────── */
/* Banda de estadísticas (oscura, números grandes) */
.stats-band { position:relative; background:linear-gradient(150deg,#0b1a10 0%,#0d2b1a 100%); padding-block:clamp(2.5rem,5vw,3.75rem); overflow:hidden; }
.stats-band::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 600px 300px at 80% 30%, rgba(0,168,90,.16) 0%, transparent 70%); pointer-events:none; }
.stats-band .container { position:relative; z-index:1; }
.stats-band-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }
.stat-big { text-align:center; padding:0.5rem; }
.stat-big strong { display:block; font-size:clamp(1.9rem,4vw,2.8rem); font-weight:900; color:var(--color-green-bright); letter-spacing:-.03em; line-height:1; margin-bottom:0.45rem; }
.stat-big span { font-size:.84rem; color:rgba(255,255,255,.62); line-height:1.4; }
@media(max-width:700px){ .stats-band-grid{ grid-template-columns:1fr 1fr; gap:1.5rem 1rem; } }

/* Imagen lateral en sección about */
.about-grid--media { align-items:center; }
.about-media { position:relative; border-radius:var(--radius-xl); overflow:hidden; aspect-ratio:4/3; box-shadow:0 24px 60px rgba(0,0,0,.16); }
.about-media img { width:100%; height:100%; object-fit:cover; display:block; }
.about-media-badge { position:absolute; bottom:1rem; left:1rem; background:#fff; border-radius:var(--radius-lg); padding:.7rem 1rem; display:flex; align-items:center; gap:.6rem; box-shadow:0 8px 24px rgba(0,0,0,.22); }
.about-media-badge svg { color:var(--color-green); flex-shrink:0; }
.about-media-badge strong { display:block; font-size:.9rem; font-weight:800; color:#0f172a; line-height:1.1; }
.about-media-badge span { font-size:.72rem; color:#64748b; }

.featured-more { display:flex; justify-content:center; margin-top:clamp(2rem,4vw,2.75rem); }

/* Banda de foto con overlay y CTA */
.photo-band { position:relative; min-height:clamp(360px,46vw,480px); display:flex; align-items:center; overflow:hidden; padding-block:clamp(2.5rem,5vw,4rem); }
.photo-band > img,
.photo-band > picture { position:absolute; inset:0; width:100%; height:100%; }
.photo-band > picture { display:block; }
.photo-band > img,
.photo-band > picture > img { width:100%; height:100%; object-fit:cover; }
.photo-band::after { content:''; position:absolute; inset:0;
  background:
    linear-gradient(95deg, rgba(6,14,10,.92) 0%, rgba(6,14,10,.74) 42%, rgba(6,14,10,.42) 68%, rgba(7,18,12,.2) 100%),
    linear-gradient(180deg, rgba(5,12,8,.12) 0%, rgba(5,12,8,.42) 100%);
}
.photo-band::before { content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:radial-gradient(ellipse 520px 280px at 12% 30%, rgba(0,168,90,.22) 0%, transparent 70%); }
.photo-band .container { position:relative; z-index:2; max-width:var(--container); }
.photo-band-inner { max-width:580px; }
.photo-band h2 { font-size:clamp(1.7rem,3.5vw,2.6rem); font-weight:900; color:#fff; letter-spacing:-.03em; line-height:1.1; margin-bottom:1rem; text-shadow:0 2px 14px rgba(0,0,0,.55); }
.photo-band h2 strong { color:#5cff9f; }
.photo-band p { color:#fff; font-size:1.02rem; line-height:1.7; margin-bottom:1.75rem; text-shadow:0 1px 10px rgba(0,0,0,.6); }
.photo-band-eyebrow, .photo-band-addr { text-shadow:0 1px 8px rgba(0,0,0,.6); }
@media (max-width:700px){
  .photo-band {
    align-items: center;
    min-height: clamp(360px, 88vw, 440px);
    padding-block: 2.25rem;
  }
  .photo-band > img,
  .photo-band > picture > img { object-position: center 62%; }
  .photo-band::after {
    background:
      linear-gradient(180deg, rgba(6,14,10,.55) 0%, rgba(6,14,10,.7) 50%, rgba(6,14,10,.87) 100%);
  }
  .photo-band::before { display: none; }
  .photo-band-inner { max-width: 100%; }
}
.photo-band-eyebrow { display:inline-flex; align-items:center; gap:.5rem; font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--color-green-bright); margin-bottom:.9rem; }
.photo-band-actions { display:flex; flex-wrap:wrap; gap:.75rem; }
.photo-band-addr { display:flex; align-items:center; gap:.5rem; margin-top:1.25rem; color:rgba(255,255,255,.92); font-size:.9rem; }
.photo-band-addr svg { color:var(--color-green-bright); flex-shrink:0; }

/* Proceso / cómo trabajamos (timeline numerada) */
.process-section { padding-block:var(--section-py); }
.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; }
.process-step { position:relative; background:var(--color-surface-2); border:1px solid var(--color-border-lt); border-radius:var(--radius-lg); padding:1.75rem 1.4rem 1.5rem; transition:transform var(--transition),border-color var(--transition),box-shadow var(--transition); }
.process-step:hover { transform:translateY(-4px); border-color:rgba(0,168,90,.35); box-shadow:0 14px 36px rgba(0,0,0,.08); }
.process-num { width:42px; height:42px; border-radius:12px; background:var(--color-green); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.05rem; font-weight:900; margin-bottom:1rem; box-shadow:0 6px 16px rgba(0,168,90,.3); }
.process-step h3 { font-size:1rem; font-weight:700; color:var(--color-white); margin-bottom:0.4rem; }
.process-step p { font-size:0.85rem; color:var(--color-text-muted); line-height:1.6; }
@media(max-width:860px){ .process-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:520px){ .process-grid{ grid-template-columns:1fr; } }

/* ── Accesibilidad: botón (oculto en escritorio), panel y modos ── */
@media (min-width: 901px) { .a11y-btn { display: none !important; } }

.a11y-panel {
  position: fixed;
  top: var(--header-main-h);
  left: 0;
  width: min(320px, 88vw);
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-lg) 0;
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
  z-index: 850;
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding: 1.1rem 1.15rem 1.3rem;
}
.a11y-panel.open { transform: translateX(0); }
.a11y-panel h2 { font-size: .95rem; font-weight: 800; color: #0f172a; margin: 0 0 0.15rem; }
.a11y-panel .a11y-sub { font-size: .76rem; color: #64748b; margin: 0 0 1rem; }
.a11y-group { margin-bottom: 1rem; }
.a11y-group-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: 0.5rem; }
.a11y-row { display: flex; gap: 0.5rem; }
.a11y-opt {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: #0f172a;
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.a11y-opt:hover { border-color: var(--color-green); }
.a11y-opt.active { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.a11y-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: #0f172a;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.a11y-toggle .a11y-switch { width: 38px; height: 22px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background .2s; flex-shrink: 0; }
.a11y-toggle .a11y-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.a11y-toggle.on .a11y-switch { background: var(--color-green); }
.a11y-toggle.on .a11y-switch::after { transform: translateX(16px); }
.a11y-reset { width: 100%; padding: 0.6rem; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: #64748b; font-size: .82rem; font-weight: 600; cursor: pointer; margin-top: 0.35rem; }
.a11y-reset:hover { color: #0f172a; border-color: #94a3b8; }
.a11y-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 849; opacity: 0; pointer-events: none; transition: opacity .25s; }
.a11y-backdrop.open { opacity: 1; pointer-events: auto; }

/* Modos de accesibilidad aplicados a <html> */
html.a11y-contrast { --color-text: #1a2230; --color-text-muted: #2a3545; --color-border: #94a3b8; --color-border-lt: #94a3b8; }
html.a11y-contrast body { color: #15202e; }
html.a11y-underline a:not(.btn):not(.cc-btn):not(.nav-link):not(.cc-cta-lnk) { text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 901px) {
  .a11y-panel, .a11y-backdrop { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTENIDO DEL PANEL (Páginas): variantes y secciones opcionales
   Las genera functions/_lib/cms/render.js.
   ═══════════════════════════════════════════════════════════════ */

/* Cabecera con foto de fondo (opcional) */
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg picture, .page-hero-bg img { display: block; width: 100%; height: 100%; }
.page-hero-bg img { object-fit: cover; }
.page-hero--photo::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,14,10,.82) 0%, rgba(6,14,10,.7) 55%, rgba(6,14,10,.88) 100%);
}
.page-hero--photo .page-hero-inner { z-index: 2; }
.page-hero--photo h1, .page-hero--photo p { text-shadow: 0 2px 14px rgba(0,0,0,.45); }

.blog-hero--photo { position: relative; overflow: hidden; background: #0b1a10; border-bottom: 0; }
.blog-hero--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,14,10,.84) 0%, rgba(6,14,10,.74) 60%, rgba(6,14,10,.9) 100%); }
.blog-hero--photo .container { position: relative; z-index: 2; }
.blog-hero--photo .blog-hero-title, .blog-hero--photo .blog-stat-val { color: #fff; }
.blog-hero--photo .blog-hero-sub, .blog-hero--photo .blog-stat-lbl { color: rgba(255,255,255,.78); }

/* Historia sin foto: el texto ocupa todo el ancho */
.about-grid--single { grid-template-columns: 1fr; max-width: 820px; }

/* Tarjeta de servicio con foto en lugar de icono */
.svc-card--photo { padding: 0; overflow: hidden; }
.svc-card-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.svc-card-photo picture, .svc-card-photo img { display: block; width: 100%; height: 100%; }
.svc-card-photo img { object-fit: cover; transition: transform .5s ease; }
.svc-card--photo:hover .svc-card-photo img { transform: scale(1.04); }
.svc-card--photo .svc-card-inner { padding: 1.4rem 1.5rem 1.6rem; }

/* Banda final sin foto */
.photo-band--plain { background: linear-gradient(145deg, #0b1a10 0%, #0d1b2a 100%); }

/* Instalaciones (Sobre nosotros) */
.cms-facilities { padding-block: var(--section-py); }
.cms-facilities-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cms-facilities-grid--text { grid-template-columns: 1fr; max-width: 760px; }
.cms-facilities-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--color-white); letter-spacing: -.025em; line-height: 1.18; margin: .9rem 0 1.1rem; }
.cms-facilities-text p { font-size: .95rem; color: var(--color-text); line-height: 1.8; margin-bottom: 1rem; }
.cms-address { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--color-white) !important; margin: 1.25rem 0 1.5rem !important; }
.cms-address svg { color: var(--color-green-bright); flex-shrink: 0; }
.cms-photo-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.cms-photo-grid--1 { grid-template-columns: 1fr; }
.cms-photo-grid--3 .cms-photo:first-child, .cms-photo-grid--5 .cms-photo:first-child { grid-column: span 2; }
.cms-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.cms-photo-grid--1 .cms-photo, .cms-photo-grid--3 .cms-photo:first-child, .cms-photo-grid--5 .cms-photo:first-child { aspect-ratio: 16 / 9; }
.cms-photo picture, .cms-photo img { display: block; width: 100%; height: 100%; }
.cms-photo img { object-fit: cover; }

/* Comprar o vender (Servicios) */
.cms-buysell { padding-block: var(--section-py); }
.cms-buysell-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.cms-buysell-grid--1 { grid-template-columns: minmax(0, 640px); justify-content: center; }
.cms-buysell-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cms-buysell-card { display: flex; flex-direction: column; background: var(--color-surface-2); border: 1px solid var(--color-border-lt); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.cms-buysell-card:hover { transform: translateY(-4px); border-color: rgba(0,168,90,.35); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.cms-buysell-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.cms-buysell-photo picture, .cms-buysell-photo img { display: block; width: 100%; height: 100%; }
.cms-buysell-photo img { object-fit: cover; }
.cms-buysell-body { display: flex; flex-direction: column; gap: .75rem; flex: 1; padding: clamp(1.25rem, 3vw, 1.75rem); }
.cms-buysell-body h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 800; color: var(--color-white); letter-spacing: -.02em; margin: 0; }
.cms-buysell-body p { font-size: .95rem; color: var(--color-text); line-height: 1.7; margin: 0; }
.cms-buysell-body .btn { align-self: flex-start; margin-top: auto; }

/* Bloque con foto y texto (Financiación) */
.cms-feature { padding-block: var(--section-py); background: var(--color-surface); }
.cms-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cms-feature-grid--text { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.cms-feature-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--color-white); letter-spacing: -.025em; line-height: 1.18; margin: .9rem 0 1.1rem; }
.cms-feature-text h2 strong { color: var(--color-green-bright); }
.cms-feature-text p { font-size: .95rem; color: var(--color-text); line-height: 1.8; margin-bottom: 1rem; }
.cms-feature-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cms-feature-grid--text .cms-feature-actions { justify-content: center; }
.cms-feature .btn-outline-light { color: var(--color-white); border-color: var(--color-border-lt); }
.cms-feature-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.cms-feature-photo picture, .cms-feature-photo img { display: block; width: 100%; height: 100%; }
.cms-feature-photo img { object-fit: cover; }

/* Lateral del blog (antes con estilos en línea) */
.sidebar-cta-actions { display: flex; flex-direction: column; gap: .6rem; }
.sidebar-cta-actions .btn { text-align: center; }
.sidebar-about-text { font-size: .82rem; color: var(--color-text-muted); line-height: 1.6; }
.sidebar-about-author { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.sidebar-about-author .blog-author-avatar { width: 36px; height: 36px; font-size: .8rem; }
.sidebar-about-name { font-size: .82rem; font-weight: 700; color: var(--color-white); }
.sidebar-about-sub { font-size: .72rem; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .cms-facilities-grid, .cms-feature-grid { grid-template-columns: 1fr; }
  .cms-buysell-grid, .cms-buysell-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cms-photo-grid { grid-template-columns: 1fr; }
  .cms-photo-grid .cms-photo:first-child { grid-column: auto; }
}
