/* ── Títulos rojos ──────────────────────────────────────────────────────────── */
.seccion-recien h2,
#catalogo-titulo {
  color: var(--verde);
}

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --azul:         #323ba7;
  --azul-hover:   #282f87;
  --azul-claro:   #2b96da;
  --verde:        #3d7a0a;
  --verde-hover:  #2f5f08;
  --verde-lima:   #6ae016;
  --amber:        #fbbf24;
  --amber-dark:   #f59e0b;
  --amber-bg:     #fffbeb;
  --amber-border: #fcd34d;
  --rojo:         #dc2626;
  --wa-verde:     #25D366;
  --wa-hover:     #1ebe5d;
  --blanco:       #ffffff;
  --gris-50:      #f9fafb;
  --gris-100:     #f3f4f6;
  --gris-200:     #e5e7eb;
  --gris-300:     #d1d5db;
  --gris-400:     #9ca3af;
  --gris-500:     #6b7280;
  --gris-900:     #111827;
  --radio:        1rem;
  --radio-full:   9999px;
  --sombra:       0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --sombra-md:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --sombra-xl:    0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--blanco);
  color: var(--gris-900);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Fondo decorativo (glow blobs + destellos) ─────────────────────────────── */
.fondo-deco {
  display: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.glow-1 { top: 5%;   left: -5%;  width: 500px; height: 500px; background: rgba(251,191,36,.18); }
.glow-2 { top: 50%;  right: -5%; width: 450px; height: 450px; background: rgba(251,191,36,.22); }
.glow-3 { top: 25%;  left: 40%;  width: 600px; height: 600px; background: rgba(251,191,36,.12); }
.glow-4 { bottom: 10%; right: 20%; width: 350px; height: 350px; background: rgba(50,59,167,.07); }

.destello {
  position: absolute;
  pointer-events: none;
}

/* ── Logo ──────────────────────────────────────────────────────────────────
   Logo real de Abel: lockup horizontal (ícono + "Abel" + "AUTOS" + frase),
   se escala por alto y ancho automático en todos lados. .logo-marca queda
   sin usar por ahora, se deja por si hace falta un logo de texto de respaldo. */
.logo-marca { font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.logo-marca-abel  { color: var(--azul); }
.logo-marca-autos { color: var(--verde); }
.logo-icono {
  display: block;
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

/* ── Nav desktop ───────────────────────────────────────────────────────────── */
.nav-desk { display: none; }

@media (min-width: 640px) {
  .nav-desk {
    display: block;
    position: sticky;
    top: 0;
    z-index: 150;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-200);
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
  }
  .nav-desk-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav-desk-logo { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
  .logo-marca { font-size: 1.4rem; }
  .nav-desk-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
  }
  .nav-desk-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gris-900);
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .15s;
  }
  .nav-desk-link:hover { color: var(--verde); }
  .btn-wa-desk {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--wa-verde);
    color: var(--blanco);
    padding: 0.55rem 1.25rem;
    border-radius: var(--radio-full);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .15s;
  }
  .btn-wa-desk:hover { background: var(--wa-hover); }
  .btn-wa-desk svg { width: 18px; height: 18px; }
}

/* ── Nav mobile ────────────────────────────────────────────────────────────── */
.nav-mob { display: none; }

@media (max-width: 639px) {
  .nav-mob {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 150;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-200);
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    height: 64px;
    padding: 0 1rem;
  }
  .nav-mob-logo {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .nav-mob-logo { gap: 0.35rem; }
  .nav-mob-logo .logo-icono { height: 44px; }
  .nav-mob-logo .logo-marca { font-size: 1.15rem; }
  .nav-mob-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--wa-verde);
    color: var(--blanco);
    border-radius: var(--radio-full);
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
  }
  .nav-mob-wa svg { width: 18px; height: 18px; }
  .hero { display: none; }
}

/* ── Contenedor principal ──────────────────────────────────────────────────── */
.contenedor {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* ── Hero banner ───────────────────────────────────────────────────────────── */
.hero { display: none; }
@media (min-width: 640px) {
  .hero { display: none; }
}
.hero-scroll { display: none; }
.hero-marca {
  display: none;
}
@media (max-width: 639px) {
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1c3a 0%, #14306e 100%);
    height: 37.6vw;
    min-height: 130px;
    position: relative;
    overflow: hidden;
  }
  .hero-marca {
    display: block;
    max-width: 88%;
    max-height: 82%;
    width: auto;
    height: auto;
    z-index: 2;
    pointer-events: none;
  }
}

/* ── Sección "Recién llegados" ─────────────────────────────────────────────── */
.seccion-recien {
  padding: 1.5rem 0 0.5rem;
  position: relative;
  z-index: 1;
}
.seccion-recien .contenedor { padding-bottom: 0; }

.seccion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.seccion-header h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--verde);
}

.separador-seccion {
  margin-top: 1.5rem;
  border: none;
  border-top: 1px solid var(--gris-200);
}

/* ── Catálogo ──────────────────────────────────────────────────────────────── */
.seccion-catalogo {
  padding: 1.5rem 0 3rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Wrapper filtros (encima de recién llegados) ───────────────────────────── */
.filtros-top-wrap {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-200);
  padding: 0.75rem 0;
}

/* ── Barra mobile Filtros + Ordenar ───────────────────────────────────────── */
.filtros-bar-mob {
  display: none;
}
@media (max-width: 639px) {
  .filtros-bar-mob {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
  }
  .filtros-pill-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gris-900);
    box-shadow: var(--sombra);
    cursor: pointer;
    font-family: inherit;
  }
  .filtros-badge {
    background: var(--azul-claro);
    color: var(--blanco);
    border-radius: 50%;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 0.15rem;
  }
  .ordenar-pill-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
  }
  .ordenar-pill {
    width: 100%;
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: 1rem;
    padding: 0.8rem 2rem 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gris-900);
    box-shadow: var(--sombra);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    font-family: inherit;
  }
  .ordenar-chevron {
    position: absolute;
    right: 0.8rem;
    pointer-events: none;
    color: var(--gris-500);
  }
  /* Filtros panel: oculto en mobile por defecto, visible cuando .abierto */
  .filtros-panel {
    display: none !important;
  }
  .filtros-panel.abierto {
    display: grid !important;
    margin-bottom: 0.75rem;
  }
}

/* Panel de filtros */
.filtros-panel {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  padding: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--sombra);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .filtros-panel { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .filtros-panel { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

.filtro-input,
.filtro-select {
  width: 100%;
  border: 1.5px solid var(--gris-200);
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--gris-900);
  background: var(--blanco);
  outline: none;
  transition: border-color .15s;
}
.filtro-input::placeholder { color: var(--gris-400); }
.filtro-input:focus,
.filtro-select:focus { border-color: var(--azul-claro); }

/* Contador de resultados */
.contador-resultados {
  font-size: 0.875rem;
  color: var(--gris-500);
  margin-bottom: 1rem;
}

/* ── Grid de tarjetas ──────────────────────────────────────────────────────── */
.grid-autos {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px)  { .grid-autos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-autos { grid-template-columns: repeat(3, 1fr); } }

/* ── Tarjeta de auto ───────────────────────────────────────────────────────── */
.tarjeta {
  background: var(--blanco);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.tarjeta:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transform: translateY(-2px);
}

.tarjeta-foto-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gris-100);
  overflow: hidden;
  display: block;
}
.tarjeta-foto-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.tarjeta:hover .tarjeta-foto-wrap img { transform: scale(1.04); }

.sin-foto {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-300);
  font-size: 0.8rem;
}

/* Badges sobre la foto */
.badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  border-radius: var(--radio-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-amber { background: var(--amber); color: var(--gris-900); }
.badge-rojo  { background: var(--verde);  color: var(--blanco); }

/* Cuerpo de la tarjeta */
.tarjeta-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tarjeta-categoria {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--verde);
  margin-bottom: 0.15rem;
}
.tarjeta-modelo {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tarjeta-modelo:hover { color: var(--azul); }
.tarjeta-version {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gris-700);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tarjeta-specs {
  font-size: 0.8rem;
  color: var(--gris-500);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tarjeta-precio {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--verde);
  margin-top: 0.75rem;
}
.tarjeta-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.btn-tarjeta-cotizar {
  flex: 1;
  text-align: center;
  background: var(--azul);
  color: var(--blanco);
  border-radius: var(--radio-full);
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s;
}
.btn-tarjeta-cotizar:hover { background: var(--azul-hover); }
.btn-tarjeta-ficha {
  flex: 1;
  text-align: center;
  background: transparent;
  color: var(--azul);
  border: 1.5px solid var(--azul);
  border-radius: var(--radio-full);
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.btn-tarjeta-ficha:hover { background: var(--azul); color: var(--blanco); }

/* ── Modal de auto ─────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  overflow-y: auto;
  padding: 1rem;
  align-items: flex-start;
  justify-content: center;
}
.modal-overlay.activo { display: flex; }

.modal-contenedor {
  background: var(--blanco);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 480px;
  margin: auto;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.modal-cerrar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--gris-900);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.modal-foto-wrap {
  aspect-ratio: 4/3;
  background: var(--gris-100);
  overflow: hidden;
}
.modal-foto-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-info-wrap { padding: 1.25rem 1.25rem 0; }
.modal-categoria {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--verde); margin-bottom: 0.1rem;
}
.modal-nombre { font-size: 1.4rem; font-weight: 900; color: var(--gris-900); line-height: 1.2; }
.modal-version { font-size: 0.82rem; color: var(--gris-500); margin-top: 0.2rem; }
.modal-specs   { font-size: 0.82rem; color: var(--gris-500); margin-top: 0.15rem; }
.modal-precio-top {
  font-size: 1.75rem; font-weight: 900; color: var(--gris-900); margin-top: 0.6rem;
}

.modal-seccion {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--gris-100);
  margin-top: 0.5rem;
}
.modal-seccion-titulo { font-size: 0.95rem; font-weight: 700; color: var(--gris-900); margin-bottom: 0.9rem; }

/* Simulador */
.sim-pie-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.sim-label-txt { font-size: 0.82rem; color: var(--gris-500); }
.sim-pie-val { font-size: 0.82rem; color: var(--gris-700, var(--gris-900)); }
.sim-slider {
  width: 100%;
  accent-color: var(--azul);
  height: 4px;
  cursor: pointer;
}
.sim-marks {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: var(--gris-400); margin-top: 0.3rem;
}
.sim-cuotas-btns { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.btn-sim-cuota {
  flex: 1; padding: 0.5rem;
  border: 1.5px solid var(--gris-200); border-radius: var(--radio-full);
  font-size: 0.85rem; font-weight: 700; color: var(--gris-500);
  background: var(--blanco); cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn-sim-cuota.activa { border-color: var(--azul); color: var(--azul); background: #eff6ff; }

.sim-resultado-box {
  background: var(--gris-50); border-radius: var(--radio);
  padding: 1rem; text-align: center; margin-top: 1rem;
}
.sim-resultado-label { font-size: 0.72rem; color: var(--gris-500); text-transform: uppercase; letter-spacing: .05em; }
.sim-resultado-valor { font-size: 1.8rem; font-weight: 900; color: var(--azul); margin: 0.2rem 0; }
.sim-disclaimer { font-size: 0.68rem; color: var(--gris-400); }

/* Parte de pago */
.pp-btns { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.btn-pp {
  flex: 1; padding: 0.6rem;
  border: 1.5px solid var(--gris-200); border-radius: var(--radio-full);
  font-size: 0.9rem; font-weight: 700; color: var(--gris-500);
  background: var(--blanco); cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn-pp.activo { border-color: var(--azul); color: var(--azul); background: #eff6ff; }

.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pp-input {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gris-200); border-radius: var(--radio);
  font-size: 0.85rem; font-family: inherit; color: var(--gris-900); outline: none;
  transition: border-color .15s;
}
.pp-input:focus { border-color: var(--azul); }

/* WhatsApp */
.modal-wa-wrap { padding: 0 1.25rem 1.25rem; }
.btn-modal-wa {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--wa-verde); color: var(--blanco);
  padding: 1rem; border-radius: var(--radio-full);
  font-size: 1rem; font-weight: 700;
  transition: background .15s;
}
.btn-modal-wa:hover { background: var(--wa-hover); }

/* ── Cargar más ────────────────────────────────────────────────────────────── */
.cargar-mas-wrap { margin-top: 2rem; }

/* ── Paginación ────────────────────────────────────────────────────────────── */
.paginacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.btn-pag {
  background: var(--blanco);
  color: var(--azul);
  border: 1.5px solid var(--azul);
  border-radius: var(--radio-full);
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-pag:hover:not(:disabled) { background: var(--azul); color: var(--blanco); }
.btn-pag:disabled { opacity: 0.35; cursor: default; }
.pag-info {
  font-size: 0.85rem;
  color: var(--gris-500);
  white-space: nowrap;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--gris-200);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
footer p { font-size: 0.8rem; color: var(--gris-500); margin-bottom: 0.25rem; }

/* ── Botón flotante WhatsApp ───────────────────────────────────────────────── */
.wa-flotante {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--wa-verde);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.45);
  transition: background .15s, transform .15s;
}
.wa-flotante:hover { background: var(--wa-hover); transform: scale(1.08); }
.wa-flotante svg { width: 1.75rem; height: 1.75rem; fill: white; }

/* ══════════════════════════════════════════════════════════════════════════════
   PÁGINA DE FICHA DE AUTO (auto.html)
══════════════════════════════════════════════════════════════════════════════ */
.pagina-detalle {
  min-height: 100vh;
  padding: 1.5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.volver-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--gris-500);
  margin-bottom: 0.75rem;
  transition: color .15s;
}
.volver-link:hover { color: var(--gris-900); }

.det-titulo-pagina {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gris-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* Layout dos columnas */
.det-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .det-layout { grid-template-columns: 1fr; } }

/* Galería */
.det-foto-principal-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--gris-100);
  aspect-ratio: 4/3;
}
.det-foto-principal { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.det-galeria-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.42);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.det-galeria-arrow:hover { background: rgba(0,0,0,.65); }
.det-galeria-arrow--prev { left: 0.6rem; }
.det-galeria-arrow--next { right: 0.6rem; }

.foto-contador {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  letter-spacing: .03em;
  pointer-events: none;
}

.det-miniaturas {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.miniatura {
  width: 90px; height: 66px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s;
}
.miniatura.activa { border-color: var(--azul); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }

/* Panel info (sticky) */
.det-panel {
  position: sticky;
  top: 84px;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
}
@media (max-width: 900px) { .det-panel { position: static; } }

.det-categoria {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--azul);
  margin-bottom: 0.35rem;
}
.det-nombres { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem; margin-bottom: 0.2rem; }
.det-marca  { font-size: 2.8rem; font-weight: 900; color: var(--azul); }
.det-modelo { font-size: 2.8rem; font-weight: 900; color: var(--azul); }
.det-version { font-size: 1rem; font-weight: 600; color: var(--gris-700); margin-bottom: 0.5rem; }

.det-badge-wrap { margin: 0.5rem 0 0.75rem; }
.det-badge {
  display: inline-block;
  border-radius: var(--radio-full);
  background: var(--amber);
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gris-900);
}

/* 4 iconos specs */
.specs-iconos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--gris-100);
  border-bottom: 1px solid var(--gris-100);
  margin-bottom: 1rem;
  color: var(--azul);
}
.spec-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.spec-item svg { width: 36px; height: 36px; }
.spec-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--gris-900); }

/* Precios */
.det-precios { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.det-precio-row { display: flex; justify-content: space-between; align-items: baseline; }
.det-precio-label { font-size: 0.875rem; font-weight: 600; color: var(--gris-500); }
.det-precio-sm { font-size: 0.875rem; font-weight: 700; color: var(--gris-900); }
.det-precio-lg { font-size: 1.9rem; font-weight: 900; color: var(--verde); }

/* Botones */
.det-btns { display: flex; flex-direction: column; gap: 0.6rem; }
.det-btns-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.btn-det-cotizar {
  display: flex; align-items: center; justify-content: center;
  background: var(--azul); color: var(--blanco);
  border-radius: var(--radio-full); padding: 0.82rem 1rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; transition: background .15s;
}
.btn-det-cotizar:hover { background: var(--azul-hover); }
.btn-det-borde {
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--azul);
  border: 1.5px solid var(--azul);
  border-radius: var(--radio-full); padding: 0.82rem 1rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; transition: all .15s;
}
.btn-det-borde:hover { background: var(--azul); color: var(--blanco); }
.btn-det-full { width: 100%; }
.btn-det-wa {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--wa-verde); color: var(--blanco);
  border-radius: var(--radio-full); padding: 0.82rem 1rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; transition: background .15s;
}
.btn-det-wa:hover { background: var(--wa-hover); }

/* ── Calculadora de financiamiento ─────────────────────────────────────────── */
.calculadora {
  margin-top: 3rem;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Cabecera */
.calc-header { text-align: center; margin-bottom: 2rem; }
.calc-main-titulo {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gris-900);
  margin-bottom: 0.4rem;
  text-wrap: balance;
}
.calc-main-subtitulo { font-size: 1.1rem; color: var(--gris-500); }

/* Tabs */
.calc-tabs {
  display: flex;
  border-bottom: 2px solid var(--gris-200);
  margin-bottom: 1.75rem;
  gap: 0;
}
.calc-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gris-400);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.calc-tab:hover { color: var(--gris-900); }
.calc-tab.activo {
  color: var(--azul);
  border-bottom-color: var(--azul);
}

/* VFMG badge inline */
.calc-vfmg-pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gris-400);
  margin-left: 0.25rem;
}

/* Características */
.calc-caracteristicas {
  background: var(--gris-50);
  border: 1px solid var(--gris-200);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.calc-carac-titulo { font-size: 1.05rem; font-weight: 700; color: var(--azul); margin-bottom: 0.6rem; }
.calc-carac-lista { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.calc-carac-lista li {
  font-size: 1rem;
  color: var(--gris-900);
  padding-left: 1.4rem;
  position: relative;
}
.calc-carac-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--azul);
  font-weight: 700;
}

/* Fila precio */
.calc-precio-row-nuevo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--gris-200);
  border-bottom: 1px solid var(--gris-200);
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.calc-precio-titulo { font-size: 1.05rem; font-weight: 700; color: var(--azul); }
.calc-nombre-subtitulo { font-size: 0.85rem; color: var(--gris-500); text-transform: uppercase; letter-spacing: .05em; margin-top: 0.15rem; }
.calc-precio-valor-grande { font-size: 1.9rem; font-weight: 900; color: var(--azul); white-space: nowrap; }

/* Grid de controles */
.calc-controles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) { .calc-controles-grid { grid-template-columns: 1fr; } }

.calc-control-card {
  background: var(--gris-50);
  border: 1px solid var(--gris-200);
  border-radius: 0.75rem;
  padding: 1.1rem 1.1rem 1rem;
}
.calc-control-titulo { font-size: 1rem; font-weight: 700; color: var(--azul); margin-bottom: 0.75rem; }

.calc-rango-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--gris-400);
  margin-bottom: 0.25rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gris-200);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber-dark);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber-dark);
  cursor: pointer;
  border: none;
}

/* Pie: porcentaje grande + fila valor */
.calc-pct-display {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gris-900);
  margin: 0.4rem 0 0.6rem;
}
.calc-pie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gris-900);
  border-top: 2px solid var(--gris-200);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}
.calc-pie-row span:last-child {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--azul);
}

/* Cuotas grid */
.calc-cuotas-grid-nuevo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.btn-cuota {
  border-radius: 0.6rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid var(--gris-200);
  background: var(--blanco);
  color: var(--gris-500);
  cursor: pointer;
  transition: all .15s;
}
.btn-cuota:hover { border-color: var(--amber-dark); color: var(--gris-900); }
.btn-cuota.activa {
  border-color: var(--amber-dark);
  background: #fef3c7;
  color: #92400e;
  font-weight: 900;
}

/* Resultado */
.calc-resultado-nuevo {
  border-top: 1px solid var(--gris-200);
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.calc-res-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--gris-500);
}
.calc-res-label-grande { font-size: 1.2rem; font-weight: 700; color: var(--gris-900); }
.calc-res-valor-grande { font-size: 2rem; font-weight: 900; color: var(--azul); }

/* Disclaimer */
.calc-disclaimer {
  font-size: 0.88rem;
  color: var(--gris-400);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Botón cotizar */
.btn-calc-wa {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radio-full);
  background: var(--azul);
  color: var(--blanco);
  padding: 0.95rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.btn-calc-wa:hover { background: var(--azul-hover); }

/* ── Nav link activo e Instagram ────────────────────────────────────────────── */
.nav-desk-link--activo { color: var(--azul) !important; }
.nav-desk-ig,
.nav-desk-fb,
.nav-desk-tt {
  display: flex;
  align-items: center;
  color: var(--gris-500);
  transition: color .15s;
}
.nav-desk-ig:hover { color: #e1306c !important; }
.nav-desk-fb:hover { color: #1877f2 !important; }
.nav-desk-tt:hover { color: #ee1d52 !important; }

/* ── Sección Ubicación ─────────────────────────────────────────────────────── */
.seccion-ubicacion {
  background: var(--gris-50);
  padding: 2rem 1rem 2.5rem;
}
.ubicacion-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.mapa-wrap {
  border-radius: var(--radio-lg);
  overflow: hidden;
  height: 340px;
  margin-top: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.mapa-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ubicacion-texto {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--gris-500);
}
.ubicacion-texto a {
  color: var(--azul);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ubicacion-texto a:hover { text-decoration: underline; }
@media (max-width: 639px) {
  .mapa-wrap { height: 240px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PÁGINA VPP — COMPRAMOS TU AUTO
══════════════════════════════════════════════════════════════════════════════ */
.vpp-page {
  min-height: calc(100vh - 72px);
  background: var(--gris-50);
  padding: 2.5rem 1rem 4rem;
}
.vpp-contenedor {
  max-width: 680px;
  margin: 0 auto;
}
.vpp-header {
  text-align: center;
  margin-bottom: 2rem;
}
.vpp-titulo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gris-900);
  margin-bottom: 0.5rem;
}
.vpp-subtitulo {
  font-size: 1rem;
  color: var(--gris-500);
}
.vpp-card {
  background: var(--blanco);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.vpp-seccion { margin-bottom: 2rem; }
.vpp-seccion-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--azul);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gris-100);
}
.vpp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.vpp-campo--full { grid-column: 1 / -1; }
.vpp-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gris-500);
  margin-bottom: 0.35rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.vpp-input {
  width: 100%;
  border: 1.5px solid var(--gris-200);
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  color: var(--gris-900);
  background: var(--blanco);
  transition: border-color .15s;
  font-family: inherit;
}
.vpp-input:focus { outline: none; border-color: var(--azul); }
.vpp-textarea { resize: vertical; }
.vpp-error {
  color: var(--rojo);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}
.btn-vpp-enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--wa-verde);
  color: var(--blanco);
  border: none;
  border-radius: var(--radio-full);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.btn-vpp-enviar:hover { background: var(--wa-hover); }
@media (max-width: 480px) {
  .vpp-grid { grid-template-columns: 1fr; }
  .vpp-campo--full { grid-column: 1; }
  .vpp-card { padding: 1.25rem; }
  .vpp-titulo { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PANEL ADMIN
══════════════════════════════════════════════════════════════════════════════ */
.admin-header {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-200);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 { font-size: 1.25rem; font-weight: 900; color: var(--azul); }
.admin-header p  { font-size: 0.75rem; color: var(--gris-500); }
.admin-header-acciones { display: flex; align-items: center; gap: 1rem; }

.admin-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-card {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: calc(var(--radio) * 1.5);
  box-shadow: var(--sombra);
  padding: 1.5rem;
}
.admin-card h2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--azul);
  margin-bottom: 1.5rem;
}

/* Estadísticas */
.stat-box {
  background: var(--gris-50);
  border: 1px solid var(--gris-200);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--azul);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gris-500);
}
.stat-fila {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--gris-50);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
.stat-pos    { font-weight: 900; color: var(--gris-400); text-align: center; }
.stat-nombre { font-weight: 600; color: var(--gris-900); }
.stat-link   { font-size: 0.75rem; color: var(--azul); font-weight: 700; }
.stat-visitas { font-weight: 700; color: var(--azul); white-space: nowrap; }
@media (max-width: 639px) {
  #stats-contadores { grid-template-columns: 1fr 1fr !important; }
  .stat-fila { grid-template-columns: 1.5rem 1fr auto; }
  .stat-link { display: none; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }

.form-campo label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris-500);
  margin-bottom: 0.375rem;
}
.form-input,
.form-select {
  width: 100%;
  border: 1px solid var(--gris-300);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gris-900);
  background: var(--blanco);
  outline: none;
  transition: border-color .15s;
}
.form-input::placeholder { color: var(--gris-400); }
.form-input:focus,
.form-select:focus { border-color: var(--azul-claro); }

/* Zona de fotos */
.foto-zona {
  border: 2px dashed var(--gris-300);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
  margin-bottom: 1rem;
}
.foto-zona:hover { border-color: #3b82f6; }
.foto-zona p { font-size: 0.875rem; font-weight: 600; color: var(--gris-500); }
.foto-zona small { font-size: 0.75rem; color: var(--gris-400); }

.previews-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.preview-item {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--gris-200);
  flex-shrink: 0;
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-msg {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
}
.admin-msg.ok  { color: #16a34a; }
.admin-msg.err { color: var(--rojo); }

.btn-publicar {
  width: 100%;
  border: none;
  border-radius: var(--radio-full);
  background: var(--azul);
  color: var(--blanco);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .15s;
}
.btn-publicar:hover:not(:disabled) { background: var(--azul-hover); }
.btn-publicar:disabled { opacity: .6; }

/* Lista de autos publicados */
.auto-publicado {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.auto-publicado-foto {
  width: 6rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--gris-100);
  flex-shrink: 0;
}
.auto-publicado-foto img { width: 100%; height: 100%; object-fit: cover; }
.auto-publicado-info { flex: 1; min-width: 0; }
.auto-publicado-info p { font-weight: 700; color: var(--azul); }
.auto-publicado-info small { font-size: 0.8rem; color: var(--gris-500); }
.auto-publicado-info span { font-size: 0.875rem; font-weight: 600; color: var(--azul-claro); display: block; margin-top: 0.2rem; }

.btn-eliminar {
  border: 2px solid var(--rojo);
  color: var(--rojo);
  background: transparent;
  border-radius: var(--radio-full);
  padding: 0.375rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background .15s;
  flex-shrink: 0;
}
.btn-eliminar:hover { background: #fef2f2; }

/* ── Login page ────────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gris-50);
  padding: 1rem;
}
.login-card {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: calc(var(--radio) * 1.5);
  box-shadow: var(--sombra-xl);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}
.login-card h1 { font-size: 1.25rem; font-weight: 900; color: var(--azul); margin-bottom: 0.25rem; }
.login-card p  { font-size: 0.875rem; color: var(--gris-500); margin-bottom: 1.5rem; }
.login-card label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris-500);
  margin-bottom: 0.375rem;
}

/* ── Utilidades ────────────────────────────────────────────────────────────── */
.oculto { display: none !important; }

.texto-link { font-size: 0.875rem; color: var(--azul-claro); text-decoration: underline; }
.texto-link:hover { color: var(--azul); }

/* ══════════════════════════════════════════════════════════════════════════════
   OPTIMIZACIÓN RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */

/* ── Nav desktop: ajuste en pantallas medianas (muchos links) ──────────────── */
@media (min-width: 640px) and (max-width: 1150px) {
  .nav-desk-inner { gap: 0.75rem; padding: 0 1rem; }
  .nav-desk-links { gap: 0.75rem; }
  .nav-desk-link  { font-size: 0.75rem; }
  .btn-wa-desk    { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
}

/* ── Nav inferior mobile ──────────────────────────────────────────────────── */
.nav-bottom { display: none; }

@media (max-width: 639px) {
  /* Espacio para el nav inferior */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

  /* Ocultar botón flotante WA (reemplazado por nav inferior) */
  .wa-flotante { display: none !important; }

  .nav-bottom {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 300;
    background: var(--blanco);
    border-top: 1.5px solid var(--gris-100);
    box-shadow: 0 -2px 12px rgba(0,0,0,.09);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.15rem 0.45rem;
    gap: 0.18rem;
    color: var(--gris-400);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1;
    transition: color .15s;
  }
  .nav-bottom-item svg { width: 22px; height: 22px; flex-shrink: 0; }
  .nav-bottom-item.activo { color: var(--azul); }
  .nav-bottom-item--wa   { color: var(--wa-verde); }

  /* ── Ficha de auto mobile ───────────────────────────────────────────────── */
  .det-titulo-pagina  { display: none; }
  .volver-link        { display: none; }
  .pagina-detalle     { padding: 0 0 2rem; background: var(--gris-50); }
  .pagina-detalle > .contenedor { padding: 0; max-width: 100%; }

  /* Foto: ratio 16/9, cubre limpio sin bordes grises */
  .det-foto-principal-wrap {
    border-radius: 0;
    aspect-ratio: 16/9;
    background: #111;
  }
  .det-foto-principal { object-fit: cover; }

  .det-galeria-arrow  { width: 40px; height: 40px; }
  .det-miniaturas     { padding: 0.4rem 0.75rem 0; gap: 0.4rem; }
  .miniatura          { width: 68px; height: 50px; }

  /* Panel: compacto y sin borde */
  .det-panel {
    border: none; border-radius: 0; box-shadow: none;
    padding: 0.85rem 1rem 1.25rem; background: var(--blanco);
    margin-top: 0;
  }
  .det-categoria      { font-size: 0.72rem; margin-bottom: 0.15rem; }
  .det-marca          { font-size: 1.9rem; }
  .det-modelo         { font-size: 1.9rem; }
  .det-version        { font-size: 0.78rem; margin-bottom: 0.35rem; }
  .det-badge-wrap     { margin-bottom: 0.5rem; }

  /* Specs: 4 columnas compactas */
  .specs-iconos       { gap: 0.35rem; margin-bottom: 0.85rem; padding: 0.75rem 0; }
  .spec-item          { padding: 0.3rem 0.1rem; }
  .spec-item svg      { width: 22px; height: 22px; }
  .spec-label         { font-size: 0.6rem; margin-top: 0.2rem; }

  /* Precio y botones */
  .det-precios        { margin-bottom: 0.75rem; }
  .det-precio-lg      { font-size: 1.25rem; }
  .det-precio-label   { font-size: 0.78rem; }
  .det-btns           { gap: 0.45rem; }
  .btn-det-cotizar,
  .btn-det-borde      { padding: 0.75rem 0.5rem; font-size: 0.78rem; }
  .btn-det-wa         { padding: 0.8rem 0.5rem; font-size: 0.82rem; }

  /* Calculadora: tabs wrap para no desbordar */
  .calculadora        { padding: 1.25rem 0.85rem; border-radius: 0.75rem; margin-top: 1rem; }
  .calc-tabs          { flex-wrap: wrap; }
  .calc-tab           { flex: 1 1 auto; text-align: center; padding: 0.55rem 0.5rem; font-size: 0.62rem; }
  .calc-main-titulo   { font-size: 1.1rem; }
  .calc-main-subtitulo { font-size: 0.85rem; }
  .calc-precio-row-nuevo { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .calc-precio-valor-grande { font-size: 1.3rem; }
  .calc-res-valor-grande { font-size: 1.5rem; }
  .calc-pct-display   { font-size: 1.5rem; }
  .calc-caracteristicas { padding: 0.85rem 0.9rem; }
  .calc-carac-lista li { font-size: 0.82rem; }
  .calc-control-card  { padding: 0.85rem; }

  /* ── VPP / Financiamiento mobile ────────────────────────────────────────── */
  .vpp-page { padding: 1.25rem 0.75rem 3rem; }
  .vpp-header { margin-bottom: 1.25rem; }
  .vpp-titulo { font-size: 1.6rem; }
  .vpp-card   { padding: 1.25rem; }
  .vpp-seccion { margin-bottom: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PÁGINA FINANCIAMIENTO v2
══════════════════════════════════════════════════════════════════════════════ */
.fin2-page {
  min-height: calc(100vh - 72px);
  background: var(--gris-50);
  padding: 2.5rem 1.25rem 4rem;
}
.fin2-card {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--blanco);
  border-radius: 1.25rem;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.fin2-seccion {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gris-200);
}
.fin2-seccion:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.fin2-seccion-titulo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--negro);
  margin-bottom: 1.5rem;
}
.fin2-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.fin2-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.fin2-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 0.4rem;
  letter-spacing: .01em;
}
.fin2-input,
.fin2-select,
.fin2-textarea {
  width: 100%;
  border: 1.5px solid var(--verde);
  border-radius: 2rem;
  padding: 0.72rem 1.1rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--gris-700);
  background: var(--blanco);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  appearance: none;
}
.fin2-input:focus,
.fin2-select:focus,
.fin2-textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.fin2-textarea {
  border-radius: 1rem;
  resize: vertical;
  min-height: 88px;
}
.fin2-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.fin2-btn-enviar {
  display: block;
  width: 100%;
  margin-top: 2rem;
  background: #0f1c3a;
  color: var(--blanco);
  border: none;
  border-radius: 2rem;
  padding: 1.1rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.fin2-btn-enviar:hover { background: #1a2f5e; }
.fin2-error {
  color: var(--rojo);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}
@media (max-width: 960px) {
  .fin2-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fin2-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .fin2-page { padding: 1rem 0.75rem 3rem; }
  .fin2-card { padding: 1.25rem 1rem; border-radius: 0.875rem; }
  .fin2-grid-4, .fin2-grid-3 { grid-template-columns: 1fr; }
  .fin2-seccion-titulo { font-size: 1.2rem; }
}
