/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --azul:         #1e3a8a;
  --azul-hover:   #1e40af;
  --azul-claro:   #1d4ed8;
  --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 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.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(127,29,29,.07); }

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

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

@media (max-width: 639px) {
  .nav-mob {
    display: block;
    position: sticky;
    top: 0;
    z-index: 150;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
    line-height: 0;
    overflow: hidden;
    height: 130px;
  }
  .nav-mob-inner { display: none; }
  .nav-mob-logo { display: block; height: 100%; }
  .nav-mob-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  .nav-mob-wa {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    z-index: 10;
  }
  .nav-mob-wa svg {
    width: 22px;
    height: 22px;
  }
  .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 {
  position: relative;
  height: 65vh;
  min-height: 320px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero { height: 50vh; }
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% top;
}
@media (min-width: 640px) {
  .hero-img { object-position: top center; }
}
.hero-gradiente { display: none; }
.hero-scroll { display: none; }
.hero-logo {
  display: none;
}
@media (max-width: 639px) {
  .hero {
    background: #0e0000;
    height: 37.6vw;
    min-height: 130px;
  }
  .hero-img {
    display: none;
  }
  .hero-logo {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    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(--azul);
}

.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;
}

/* ── 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: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .grid-autos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-autos { grid-template-columns: repeat(4, 1fr); } }

/* ── Tarjeta de auto ───────────────────────────────────────────────────────── */
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.tarjeta:hover { box-shadow: var(--sombra-md); }

.tarjeta-foto-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gris-100);
  overflow: hidden;
}
.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;
  top: 0.5rem;
  left: 0.5rem;
  border-radius: var(--radio-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-amber { background: var(--amber); color: var(--gris-900); }
.badge-rojo  { background: var(--rojo);  color: var(--blanco); }

/* Cuerpo de la tarjeta */
.tarjeta-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tarjeta-marca {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gris-400);
}
.tarjeta-modelo {
  font-weight: 900;
  color: var(--azul);
  line-height: 1.2;
  margin-top: 0.1rem;
  display: block;
  transition: color .15s;
}
.tarjeta-modelo:hover { color: var(--azul-hover); }
.tarjeta-version {
  font-size: 0.75rem;
  color: rgba(30,58,138,.7);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tarjeta-specs {
  font-size: 0.7rem;
  color: var(--gris-500);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tarjeta-precio-row {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gris-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}
.tarjeta-precio-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--gris-400);
  font-weight: 500;
}
.tarjeta-precio {
  font-weight: 700;
  color: var(--azul);
  font-size: 0.9rem;
}
.btn-cotizar-mini {
  background: var(--azul);
  color: var(--blanco);
  border-radius: var(--radio-full);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s;
  white-space: nowrap;
}
.btn-cotizar-mini:hover { background: var(--azul-hover); }

/* ── Vista lista horizontal en móvil ──────────────────────────────────────── */
@media (max-width: 639px) {
  .grid-autos {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tarjeta {
    flex-direction: row;
  }

  .tarjeta-foto-wrap {
    width: 155px;
    min-width: 155px;
    aspect-ratio: unset;
    border-radius: var(--radio) 0 0 var(--radio);
  }

  .tarjeta-foto-wrap img {
    height: 100%;
  }

  .tarjeta-body {
    padding: 0.85rem 0.9rem;
    justify-content: center;
  }

  .tarjeta-modelo {
    font-size: 1rem;
    line-height: 1.25;
  }

  .tarjeta-version {
    font-size: 0.75rem;
    margin-top: 0.15rem;
  }

  .tarjeta-specs {
    font-size: 0.75rem;
    margin-top: 0.2rem;
  }

  .tarjeta-precio-row {
    border-top: none;
    padding-top: 0;
    margin-top: 0.4rem;
  }

  .tarjeta-precio {
    font-size: 1.15rem;
  }

  .btn-cotizar-mini {
    display: none;
  }
}

/* ── Cargar más ────────────────────────────────────────────────────────────── */
.cargar-mas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}
.cargar-mas-wrap p {
  font-size: 0.8rem;
  color: var(--gris-500);
}
.btn-cargar-mas {
  background: var(--azul);
  color: var(--blanco);
  border: none;
  border-radius: var(--radio-full);
  padding: 0.75rem 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .15s;
}
.btn-cargar-mas:hover { background: var(--azul-hover); }

/* ── 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: 1rem;
  transition: color .15s;
}
.volver-link:hover { color: var(--gris-900); }

/* Tarjeta de detalle */
.tarjeta-detalle {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: calc(var(--radio) * 1.5);
  box-shadow: var(--sombra-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .tarjeta-detalle { flex-direction: row; } }

/* Panel galería */
.galeria-panel {
  background: var(--gris-50);
  width: 100%;
}
@media (min-width: 768px) { .galeria-panel { width: 55%; } }

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

.miniaturas {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  overflow-x: auto;
  background: var(--gris-100);
}
.miniatura {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 2px 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 */
.info-panel {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid var(--gris-200);
}
@media (min-width: 768px) {
  .info-panel {
    width: 45%;
    border-top: none;
    border-left: 1px solid var(--gris-200);
  }
}

.det-categoria {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--azul-claro);
  margin-bottom: 0.25rem;
}
.det-marca {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.2;
}
.det-modelo {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--azul);
  line-height: 1;
}
.det-version {
  font-size: 1rem;
  font-weight: 500;
  color: var(--azul);
  margin-top: 0.375rem;
}

.det-badge {
  display: inline-block;
  border-radius: var(--radio-full);
  background: var(--amber);
  padding: 0.4rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gris-900);
}

/* 4 iconos specs */
.specs-iconos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  text-align: center;
}
.spec-item { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.spec-item svg { width: 44px; height: 44px; }
.spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e40af;
}

/* Precios */
.precios { display: flex; flex-direction: column; gap: 0.5rem; }
.precio-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.precio-label { font-size: 0.875rem; font-weight: 700; color: var(--azul); }
.precio-valor-sm { font-size: 0.875rem; font-weight: 700; color: var(--azul); }
.precio-valor-lg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.precio-info { font-size: 0.875rem; font-weight: 400; color: rgba(30,58,138,.4); }

.divisor { border: none; border-top: 1px solid var(--gris-300); }

/* Botones de acción */
.botones-detalle { display: flex; flex-direction: column; gap: 0.75rem; }
.botones-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.btn-azul-lleno {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radio-full);
  background: var(--azul);
  color: var(--blanco);
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .15s;
}
.btn-azul-lleno:hover { background: var(--azul-hover); }

.btn-azul-borde {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radio-full);
  border: 2px solid var(--azul);
  color: var(--azul);
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: transparent;
  transition: background .15s;
}
.btn-azul-borde:hover { background: rgba(30,58,138,.05); }

.btn-wa-detalle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: var(--radio-full);
  background: var(--wa-verde);
  color: var(--blanco);
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .15s;
}
.btn-wa-detalle:hover { background: var(--wa-hover); }
.btn-wa-detalle svg { width: 1.125rem; height: 1.125rem; fill: white; flex-shrink: 0; }

/* ── Calculadora de financiamiento ─────────────────────────────────────────── */
.calculadora {
  margin-top: 1.5rem;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: calc(var(--radio) * 1.5);
  padding: 1.25rem;
  box-shadow: var(--sombra-xl);
}
.calc-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gris-900);
  margin-bottom: 1rem;
}
.calc-precio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.calc-precio-row span:first-child { font-size: 0.875rem; color: var(--gris-500); }
.calc-precio-valor { font-size: 1.25rem; font-weight: 700; color: var(--amber-dark); }

.calc-bloque { margin-bottom: 1.25rem; }
.calc-bloque-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.calc-bloque-header span:first-child { font-weight: 600; color: var(--gris-900); }
.calc-bloque-header span:last-child  { font-weight: 700; color: var(--amber-dark); }
.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;
}

.calc-cuotas-titulo { font-size: 0.875rem; font-weight: 600; color: var(--gris-900); margin-bottom: 0.75rem; }
.calc-cuotas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.btn-cuota {
  border-radius: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--gris-200);
  background: var(--gris-50);
  color: var(--gris-500);
  transition: all .15s;
}
.btn-cuota:hover { border-color: var(--gris-300); }
.btn-cuota.activa {
  border-color: var(--amber-dark);
  background: #fef3c7;
  color: #92400e;
}

.calc-resultado {
  border: 1px solid var(--amber-border);
  background: var(--amber-bg);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.calc-resultado-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #b45309;
}
.calc-resultado-valor {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-top: 0.25rem;
}
.calc-resultado-valor span { font-size: 1rem; font-weight: 400; }
.calc-resultado-nota {
  font-size: 0.7rem;
  color: rgba(180,83,9,.6);
  margin-top: 0.25rem;
}

.btn-calc-wa {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #16a34a, var(--wa-verde));
  color: var(--blanco);
  padding: 0.875rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(22,163,74,.3);
  transition: filter .15s;
}
.btn-calc-wa:hover { filter: brightness(1.08); }

/* ══════════════════════════════════════════════════════════════════════════════
   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;
}

.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); }
