/* ==========================================================
   CONCESIONARIA — Hoja de estilos
   Paleta plana: rojo / negro / gris / blanco. Sin degradados.
   Tipografía: Oswald (títulos) + Inter (texto).
   Si no la tenés cargada, agregá en el <head> del HTML:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
   ========================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta */
  --rojo: #d81e2c;
  --rojo-oscuro: #a8141f;
  --negro: #161616;
  --gris-90: #2e2e2e;
  --gris-60: #6f6f6f;
  --gris-30: #c9c9c9;
  --gris-15: #e2e2e2;
  --gris-10: #f0f0f0;
  --blanco: #ffffff;
  --fondo: #f7f7f7;

  /* Derivados (uso puntual, sin gradiente) */
  --rojo-suave: rgba(216, 30, 44, 0.07);
  --rojo-hover: rgba(216, 30, 44, 0.14);

  /* Bordes y sombras planas */
  --borde: 1px solid var(--gris-30);
  --borde-fuerte: 2px solid var(--negro);
  --sombra: 0 3px 12px rgba(0, 0, 0, 0.07);
  --sombra-hover: 0 8px 22px rgba(0, 0, 0, 0.12);

  --radio: 6px;
  --radio-sm: 3px;

  --transicion: all 0.22s ease;
  --transicion-lenta: all 0.4s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--fondo);
  color: var(--negro);
  margin: 0;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(rgba(22, 22, 22, 0.72), rgba(22, 22, 22, 0.72)), url('../img/auto.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 90px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Franja tipo bandera a cuadros: el único gesto gráfico fuerte de la página */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--rojo);
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
  from { width: 0; }
  to { width: 72px; }
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  margin-bottom: 18px;
  color: var(--blanco);
  position: relative;
  display: inline-block;
  padding-bottom: 22px;
  animation: fadeInUp 0.7s ease-out both;
}

.hero h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 4px;
  background: var(--rojo);
  transform: translateX(-50%);
  animation: drawLine 0.6s ease-out 0.5s both;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.15rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeInUp 0.7s ease-out 0.15s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero-btn {
  padding: 14px 32px;
  border-radius: var(--radio-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transicion);
  border: 2px solid transparent;
  min-width: 150px;
  display: inline-block;
  text-align: center;
}

.hero-btn-primary {
  background: var(--rojo);
  color: var(--blanco);
}

.hero-btn-primary:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background: transparent;
  border-color: var(--blanco);
  color: white;
}

.hero-btn-secondary:hover {
  background: var(--blanco);
  color: var(--negro);
  border-color: var(--blanco);
  transform: translateY(-2px);
}

/* ============ SECCIÓN GENÉRICA ============ */
.section {
  padding: 70px 0;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--negro);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 4px;
  background: var(--rojo);
  transition: width 0.3s ease;
}

.section-header:hover h2::after {
  width: 72px;
}

.section-header p {
  color: var(--gris-60);
  margin-top: 10px;
  font-size: 1rem;
}

/* ============ CARRUSEL ============ */
.carousel-container {
  position: relative;
  margin: 0 -10px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .carousel-item {
    width: 200px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--negro);
  color: white;
  border: none;
  border-radius: var(--radio-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  transition: var(--transicion);
}

.carousel-btn:hover {
  background: var(--rojo);
}

.carousel-btn.prev {
  left: -15px;
}

.carousel-btn.next {
  right: -15px;
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
}

/* ============ CARD DE VEHÍCULO ============ */
.property-card {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: var(--transicion-lenta);
  cursor: pointer;
  position: relative;
  border: var(--borde);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
  border-color: var(--rojo);
}

.property-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gris-10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s ease;
  display: block;
}

.property-card:hover .property-img {
  transform: scale(1.05);
}

.property-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  border-top: var(--borde);
}

.property-title {
  font-size: 0.95rem;
  margin: 0;
  color: var(--negro);
  font-weight: 600;
  line-height: 1.3;
  transition: var(--transicion);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.property-card:hover .property-title {
  color: var(--rojo);
}

.property-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 20px;
}

.property-chips:empty {
  display: none;
}

.property-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gris-10);
  color: var(--gris-90);
  padding: 3px 9px;
  border-radius: var(--radio-sm);
  font-size: 0.68rem;
  font-weight: 500;
  border: 1px solid var(--gris-15);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-chip i {
  color: var(--rojo);
  font-size: 0.62rem;
  flex-shrink: 0;
}

.property-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rojo);
  margin: 0;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.property-old-price {
  font-size: 0.78rem;
  color: var(--gris-60);
  text-decoration: line-through;
  font-weight: 500;
}

.property-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.property-amenity {
  background: var(--gris-10);
  padding: 5px 12px;
  border-radius: var(--radio-sm);
  font-size: 0.8rem;
  color: var(--negro);
  transition: var(--transicion);
  border: 1px solid var(--gris-15);
}

.property-card:hover .property-amenity {
  border-color: var(--rojo);
}

/* ============ BADGES ============ */
.property-badge {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: var(--radio-sm);
  font-weight: 700;
  font-size: 0.65rem;
  z-index: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.property-badge.badge-oferta {
  background: var(--rojo);
  color: white;
  right: 10px;
}

.property-badge.badge-destacado {
  background: var(--negro);
  color: var(--blanco);
  left: 10px;
}

.property-badge.badge-nuevo {
  background: var(--blanco);
  color: var(--negro);
  border: 1px solid var(--negro);
  left: 10px;
  top: 40px;
}

/* ============ MODAL ============ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 22, 22, 0.82);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--blanco);
  border-radius: var(--radio);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalAppear 0.3s ease-out;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.3);
}

@keyframes modalAppear {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background: var(--negro);
  color: white;
  padding: 22px 30px;
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--rojo);
}

.modal-header h2 {
  color: var(--blanco);
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transicion);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--rojo);
  background: rgba(255, 255, 255, 0.1);
}

.modal-content {
  padding: 30px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.modal-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radio);
  cursor: pointer;
  transition: var(--transicion);
  border: var(--borde);
}

.modal-gallery img:hover {
  opacity: 0.85;
  border-color: var(--rojo);
}

.modal-info h3 {
  color: var(--negro);
  font-size: 1.3rem;
  margin: 25px 0 15px;
  position: relative;
  padding-left: 15px;
}

.modal-info h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: var(--rojo);
}

.modal-info h3:first-of-type {
  margin-top: 0;
}

.modal-description {
  color: var(--gris-60);
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.modal-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--fondo);
  border-radius: var(--radio);
  transition: var(--transicion);
  border: var(--borde);
}

.modal-feature:hover {
  border-color: var(--rojo);
}

.modal-feature i {
  color: var(--rojo);
  font-size: 1.2rem;
  width: 25px;
}

.modal-price-box {
  background: var(--gris-10);
  border: 2px solid var(--negro);
  padding: 30px;
  border-radius: var(--radio);
  margin: 30px 0;
  text-align: center;
}

.modal-price-box .current-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rojo);
  font-family: 'Oswald', Arial, sans-serif;
}

.modal-price-box .old-price {
  font-size: 1.3rem;
  color: var(--gris-60);
  text-decoration: line-through;
  margin-left: 15px;
}

.price-info {
  font-size: 0.9rem;
  margin-top: 10px;
  color: var(--gris-60);
}

.modal-contact {
  background: var(--fondo);
  padding: 25px;
  border-radius: var(--radio);
  text-align: center;
  border: var(--borde);
}

.modal-contact button {
  background: var(--rojo);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: var(--radio-sm);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transicion);
  margin-top: 15px;
  width: 100%;
  max-width: 300px;
  font-family: inherit;
}

.modal-contact button:hover {
  background: var(--rojo-oscuro);
}

/* ============ FORMULARIO DE CONTACTO ============ */
.contact-section {
  background: var(--negro);
  color: white;
  padding: 70px 20px;
  border-radius: 24px 24px 0 0;
  margin-top: 40px;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rojo);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-section h2 {
  color: var(--blanco);
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 35px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--blanco);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px;
  border: 2px solid transparent;
  border-radius: var(--radio-sm);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transicion);
  color: var(--negro);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rojo);
  background: white;
}

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

.contact-form button {
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  padding: 16px 30px;
  border-radius: var(--radio-sm);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transicion);
  margin-top: 10px;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.contact-form button:hover {
  background: var(--rojo-oscuro);
}

.contact-form button:active {
  transform: scale(0.98);
}

/* ============ FOOTER ============ */
footer {
  background: var(--negro);
  color: white;
  padding: 70px 20px 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rojo);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  color: var(--blanco);
  margin-bottom: 22px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--rojo);
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 60px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transicion);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--rojo);
  transform: translateX(4px);
}

.footer-links i {
  width: 20px;
  color: var(--rojo);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  width: 42px;
  height: 42px;
  border-radius: var(--radio-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a:hover {
  background: var(--rojo);
  border-color: var(--rojo);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .header-content {
    min-height: 70px;
    justify-content: space-between;
  }

  .contact-info {
    order: 3;
    width: 100%;
    display: none;
    justify-content: center;
    max-height: 100px;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  .contact-info.hidden-on-scroll {
    opacity: 0;
    max-height: 0;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: var(--radio);
    margin-top: 10px;
    box-shadow: var(--sombra-hover);
  }

  nav.open {
    display: flex;
  }

  nav a {
    text-align: center;
    padding: 12px;
    color: var(--negro);
  }

  nav a:hover {
    background: var(--rojo-suave);
    color: var(--rojo);
  }

  .nav-mobile {
    display: block;
  }

  .logo img {
    width: 140px;
    margin-left: 12px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
    background-attachment: scroll;
  }

  .top-bar {
    display: none;
  }

  .section {
    padding: 45px 0;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-features {
    grid-template-columns: 1fr;
  }

  .modal-price-box .current-price {
    font-size: 2rem;
  }

  .carousel-item {
    width: 280px;
  }
}

@media (max-width: 576px) {
  .contact-btn,
  .phone-number {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 80%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links a {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .modal-container {
    max-height: 95vh;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-content {
    padding: 20px;
  }
}

/* ============ HERO SEARCH ============ */
.hero-search {
  background: var(--negro);
  padding: 50px 20px 40px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-search .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-search-header {
  text-align: center;
  margin-bottom: 30px;
}

.hero-search-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-search-title span,
.hero-search-title .highlight {
  color: var(--rojo);
}

.hero-search-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ====== BARRA DE BÚSQUEDA ====== */
.search-bar {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  transition: var(--transicion);
  border: 2px solid transparent;
}

.search-bar:focus-within {
  border-color: var(--rojo);
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  min-width: 0;
}

.search-icon {
  color: var(--gris-60);
  font-size: 1rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 0;
  color: var(--negro);
  background: transparent;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--gris-30);
}

.search-clear {
  background: none;
  border: none;
  color: var(--gris-30);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
  flex-shrink: 0;
}

.search-clear:hover {
  background: var(--gris-10);
  color: var(--rojo);
}

.search-btn {
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transicion);
  white-space: nowrap;
  font-family: inherit;
}

.search-btn:hover {
  background: var(--rojo-oscuro);
}

.search-btn:active {
  transform: scale(0.97);
}

/* ====== SUGERENCIAS POPULARES ====== */
.search-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.suggestion-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
  margin-right: 4px;
}

.suggestion-chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transicion);
  font-family: inherit;
  font-weight: 500;
}

.suggestion-chip:hover {
  background: var(--rojo);
  color: white;
  border-color: var(--rojo);
}

/* ====== CATEGORÍAS RÁPIDAS (hero) ====== */
.hero-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-categories:empty {
  display: none;
}

.hero-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--negro);
  padding: 10px 18px;
  border-radius: var(--radio-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transicion);
  border: 2px solid transparent;
}

.hero-category-chip:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

.hero-category-chip i {
  color: var(--rojo);
  font-size: 0.9rem;
}

.hero-category-chip .count {
  background: var(--gris-10);
  color: var(--gris-90);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ====== BOTONES PRINCIPALES (hero) ====== */
.hero-search-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radio);
  text-decoration: none;
  color: white;
  transition: var(--transicion);
  text-align: left;
}

.hero-action-btn:hover {
  border-color: var(--rojo);
  background: rgba(255, 255, 255, 0.1);
}

.hero-action-btn i {
  font-size: 1.4rem;
  color: var(--rojo);
  flex-shrink: 0;
}

.hero-action-btn div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-action-btn strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-action-btn span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

.hero-action-btn.primary {
  background: var(--rojo);
  border-color: var(--rojo);
}

.hero-action-btn.primary i {
  color: white;
}

.hero-action-btn.primary span {
  color: rgba(255, 255, 255, 0.85);
}

.hero-action-btn.primary:hover {
  background: var(--rojo-oscuro);
  border-color: var(--rojo-oscuro);
}

.hero-action-btn.ofertas i {
  color: var(--rojo);
}

/* ====== RESPONSIVE HERO SEARCH ====== */
@media (max-width: 768px) {
  .hero-search {
    padding: 35px 15px 30px;
  }

  .hero-search-actions {
    grid-template-columns: 1fr;
  }

  .search-btn span {
    display: none;
  }

  .search-btn {
    padding: 14px 18px;
  }

  .search-input-wrapper {
    padding: 0 14px;
  }

  .search-input {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-search-header {
    margin-bottom: 20px;
  }

  .hero-category-chip {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .suggestion-chip {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .hero-action-btn {
    padding: 14px;
  }

  .hero-action-btn strong {
    font-size: 0.85rem;
  }
}

/* ============================================
   SECCIONES ADICIONALES
   ============================================ */

/* ============ SECTION LINK (Ver todos) ============ */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rojo);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radio-sm);
  transition: var(--transicion);
  border: 2px solid transparent;
}

.section-link:hover {
  background: var(--rojo-suave);
  border-color: var(--rojo);
}

.section-link i { transition: var(--transicion); }
.section-link:hover i { transform: translateX(3px); }

/* ============ CATEGORÍAS ============ */
.categorias-section {
  background: white;
  padding: 60px 0;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.categorias-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--rojo);
}

.categoria-card {
  background: var(--fondo);
  border-radius: var(--radio);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transicion);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--negro);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.categoria-card:hover {
  border-color: var(--rojo);
  background: white;
  box-shadow: var(--sombra);
}

.categoria-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gris-10);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transicion);
}

.categoria-card:hover .categoria-icon {
  background: var(--rojo);
  color: var(--blanco);
}

.categoria-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--negro);
  line-height: 1.3;
}

.categoria-count {
  font-size: 0.75rem;
  color: var(--gris-60);
  background: white;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--gris-15);
}

/* ============ VEHÍCULO DESTACADO ============ */
.destacado-estrella-section {
  padding: 60px 0;
  background: var(--negro);
  position: relative;
}

.destacado-estrella-section .section-header h2,
.destacado-estrella-section .section-header p {
  color: white;
}

.destacado-estrella-section .section-header h2::after {
  background: var(--rojo);
}

.destacado-estrella {
  position: relative;
  z-index: 1;
}

.destacado-loader {
  text-align: center;
  padding: 60px;
  color: var(--rojo);
}

.destacado-card-grande {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.destacado-img-wrapper {
  position: relative;
  background: var(--gris-10);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.destacado-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  transition: transform 0.5s ease;
}

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

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.destacado-badge-estrella {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--rojo);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radio-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulseBadge 2.4s ease-in-out infinite;
}

.destacado-info {
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.destacado-categoria {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gris-10);
  color: var(--negro);
  padding: 6px 14px;
  border-radius: var(--radio-sm);
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
}

.destacado-categoria i { color: var(--rojo); }

.destacado-titulo {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--negro);
  line-height: 1.2;
  margin: 0;
}

.destacado-descripcion {
  font-size: 0.95rem;
  color: var(--gris-60);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.destacado-precio-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 2px solid var(--gris-15);
  border-bottom: 2px solid var(--gris-15);
  margin: 8px 0;
}

.destacado-precio-anterior {
  font-size: 1rem;
  color: var(--gris-60);
  text-decoration: line-through;
  font-weight: 500;
}

.destacado-precio {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rojo);
  line-height: 1.1;
  font-family: 'Oswald', Arial, sans-serif;
}

.destacado-cuotas {
  font-size: 0.9rem;
  color: var(--gris-60);
}

.destacado-cuotas strong { color: var(--negro); }

.destacado-acciones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.destacado-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radio-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transicion);
  font-family: inherit;
  flex: 1;
  min-width: 160px;
}

.destacado-btn.primary {
  background: var(--rojo);
  color: white;
}

.destacado-btn.primary:hover {
  background: var(--rojo-oscuro);
}

.destacado-btn.secondary {
  background: white;
  color: var(--negro);
  border: 2px solid var(--negro);
}

.destacado-btn.secondary:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

/* ============ BANNER DE OFERTA ============ */
.banner-oferta-section {
  padding: 20px 0 60px;
}

.banner-oferta {
  background: var(--rojo);
  border-radius: var(--radio);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Acento diagonal, en negro sólido, hace de "eco" de la franja del hero */
.banner-oferta::before {
  content: '';
  position: absolute;
  top: 0;
  right: -60px;
  width: 140px;
  height: 100%;
  background: var(--negro);
  transform: skewX(-12deg);
  opacity: 0.9;
}

.banner-oferta-info {
  position: relative;
  z-index: 1;
}

.banner-oferta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--negro);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radio-sm);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.banner-oferta-titulo {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
}

.banner-oferta-desc {
  font-size: 0.9rem;
  opacity: 0.92;
  margin: 0 0 20px;
  max-width: 500px;
}

.banner-oferta-precios {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.banner-precio-old {
  font-size: 1.1rem;
  text-decoration: line-through;
  opacity: 0.75;
}

.banner-precio-new {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: 'Oswald', Arial, sans-serif;
}

.banner-descuento {
  background: var(--negro);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radio-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.banner-oferta-img {
  width: 180px;
  height: 180px;
  background: white;
  border-radius: var(--radio);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.banner-oferta-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.banner-oferta-btn {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
}

/* ============ MAPA ============ */
.mapa-section {
  background: var(--fondo);
  padding: 60px 0;
}

.mapa-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-hover);
}

.mapa-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--negro);
  color: white;
  position: relative;
}

.mapa-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mapa-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radio-sm);
  background: rgba(216, 30, 44, 0.15);
  color: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mapa-info-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: white;
}

.mapa-info-item span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.mapa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--rojo);
  color: white;
  border-radius: var(--radio-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transicion);
  margin-top: auto;
}

.mapa-btn:hover {
  background: var(--rojo-oscuro);
}

.mapa-embed {
  min-height: 500px;
  background: #eee;
  position: relative;
}

.mapa-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  filter: grayscale(35%);
  transition: filter 0.3s ease;
}

.mapa-embed:hover iframe {
  filter: grayscale(0%);
}

/* ============ SECCIÓN DE OFERTAS ============ */
.ofertas-section {
  background: var(--fondo);
}

.ofertas-section .section-header h2 {
  color: var(--rojo);
}

.ofertas-section .section-header h2::after {
  background: var(--rojo);
}

/* ============ RESPONSIVE SECCIONES NUEVAS ============ */
@media (max-width: 968px) {
  .destacado-card-grande {
    grid-template-columns: 1fr;
  }

  .destacado-img-wrapper {
    aspect-ratio: 4 / 3;
  }

  .destacado-info {
    padding: 30px 25px;
  }

  .destacado-precio {
    font-size: 1.8rem;
  }

  .mapa-wrapper {
    grid-template-columns: 1fr;
  }

  .mapa-info {
    padding: 30px 25px;
  }

  .banner-oferta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 25px;
  }

  .banner-oferta::before {
    display: none;
  }

  .banner-oferta-img {
    margin: 0 auto;
    width: 140px;
    height: 140px;
  }

  .banner-oferta-precios {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .categoria-card {
    padding: 16px 10px;
  }

  .categoria-icon {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .categoria-name {
    font-size: 0.82rem;
  }

  .destacado-info {
    padding: 25px 20px;
  }

  .destacado-acciones {
    flex-direction: column;
  }

  .destacado-btn {
    min-width: 100%;
  }

  .mapa-embed {
    min-height: 350px;
  }

  .mapa-embed iframe {
    min-height: 350px;
  }
}

/* ============ ACCESIBILIDAD ============ */
a:focus-visible,
button:focus-visible,
.hero-category-chip:focus-visible,
.categoria-card:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
}

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