
  /* ================= RESPONSIVO ================= */


:root {
      --color-black: #000000;
      --color-white: #FFFFFF;
      --color-red: #B22222;
      /* rojo oscuro firebrick */
      --color-gray-light: #CCCCCC;
      --font-main: 'Barlow', sans-serif;
    }

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

    body {
      font-family: var(--font-main);
  
      color: var(--color-white);
      line-height: 1.6;
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    header {
  background-color: #111;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #333;
  z-index: 1000;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo-text .sub {
  font-weight: bold;
  font-size: 1.2rem;
}

nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: #333;
}

/* ========== MENÚ HAMBURGUESA ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background-color: red;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


    
.hero-container {
  color: #222;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateX(-60px);
  animation: slideInSmooth 2.8s ease forwards;
}

.hero-container:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

@keyframes slideInSmooth {
  0% {
    opacity: 0;
    transform: translateX(-60px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }
}

/* Título principal */
.hero-container h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #222;
  position: relative;
  display: inline-block;
}

/* Resalta en rojo la palabra que quieras con un span */
.hero-container h1 span {
  color: #d32f2f; /* rojo vivo */
  font-weight: 900;
}

/* Subtítulo */
.hero-container p {
  font-size: 1.3rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.5;
}

/* Botón de llamada a la acción */
.cta-button {
  display: inline-block;
  background: #d32f2f;
  color: white;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background: #b71c1c;
  box-shadow: 0 8px 25px rgba(183, 28, 28, 0.6);
  transform: translateY(-3px);
  outline: none;
}

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Checkbox Comparar pequeño en esquina */
.compare-label {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  user-select: none;
  padding: 3px 6px;
  border: 1px solid #d32f2f;
  border-radius: 6px;
  background-color: #fff;
  z-index: 15;
  transition: all 0.2s ease;
}

.compare-label:hover {
  background-color: #ffe6e6;
  box-shadow: 0 1px 4px rgba(211,47,47,0.3);
}

.compare-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #d32f2f;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
  display: inline-block;
}

.compare-checkbox:hover {
  transform: scale(1.1);
  box-shadow: 0 0 4px rgba(211,47,47,0.5);
}

.compare-checkbox:checked {
  background-color: #d32f2f;
  border-color: #d32f2f;
}

.compare-checkbox:checked::after {
  content: '✔';
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --------------------------- */
/* Modal Comparador */

#modal-comparar {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  overflow-x: auto;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: fadeIn 0.3s ease-in-out;
}

/* Animación modal */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

 .vendido {
  position: absolute;
  top: 20px;
  right: -40px;
  background: rgba(184, 30, 30, 0.9);
  color: #fff;
  padding: 10px 60px;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  transform: rotate(45deg);
  letter-spacing: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  pointer-events: none;}

#modal-comparar h2 {
  text-align: center;
  color: #d32f2f;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Tabla de comparación */
#tabla-comparar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 30px;
  overflow-x: auto;
}

#tabla-comparar th,
#tabla-comparar td {
  border: 1px solid #e0e0e0;
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
}

#tabla-comparar th {
  background-color: #ffe6e6;
  color: #d32f2f;
  font-weight: 700;
  text-transform: uppercase;
}

#tabla-comparar tr:nth-child(even) { background-color: #fff5f5; }
#tabla-comparar tr:nth-child(odd) { background-color: #ffffff; }

#tabla-comparar td img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #d32f2f;
  transition: transform 0.2s ease;
}

#tabla-comparar td img:hover {
  transform: scale(1.05);
}

/* Botón cerrar modal */
#modal-comparar button {
  display: block;
  margin: 25px auto 0;
  padding: 14px 28px;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

#modal-comparar button:hover {
  background: linear-gradient(135deg, #b71c1c, #7f0000);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(183, 28, 28, 0.5);
}

/* Botón comparar autos fijo */
#compare-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
  padding: 16px 36px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.5);
  z-index: 999;
  transition: all 0.25s ease;
}

#compare-btn:hover {
  background: linear-gradient(135deg, #b71c1c, #7f0000);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(183, 28, 28, 0.6);
}

/* --------------------------- */


/* Animación para entrada suave */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



/* --- Responsive para Hero Container --- */

@media (max-width: 1024px) {
  .hero-container {
    padding: 3rem 1rem;
  }
  .hero-container h1 {
    font-size: 2.2rem;
  }
  .hero-container p {
    font-size: 1.1rem;
    max-width: 90%;
  }
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Para móviles pequeños (iPhones, pantallas < 480px) */

@media (max-width: 480px) {
  .hero-container {
    padding: 2rem 1rem;
  }
  .hero-container h1 {
    font-size: 1.8rem;
  }
  .hero-container p {
    font-size: 1rem;
    max-width: 100%;
  }
  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* --- Responsive para catálogo --- */
/* Desktop grande: 3 columnas (ya tienes) */

/* Tablet y laptops medianas: 2 columnas */
@media (max-width: 1024px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .card-auto {
    height: auto;
  }
  /* Box-sizing para todo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Navegación fija lateral */
nav {
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  color: #fff;
  z-index: 1000;
  border-radius: 0 0 0 20px;
}

/* Estado abierto del nav */
nav.open {
  transform: translateX(0);
}

/* Lista vertical del nav */
nav ul {
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  list-style: none;
  display: flex; /* para que flex-direction funcione */
}

/* Items del menú */
nav li {
  border-bottom: 1px solid #444;
}

/* Último item sin borde */
nav li:last-child {
  border-bottom: none;
}

/* Links del menú */
nav a {
  color: #fff;
  display: block;
  padding: 1.2rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  user-select: none;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 0, 0, 0.3);
  outline: none;
}

/* Botón hamburguesa */
.hamburger {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: black;
  padding: 0.6rem;
  border-radius: 8px;
  box-shadow: 0 0 10px var(--color-red);
  z-index: 1100;
}

}

/* Móviles y pantallas pequeñas: 1 columna */

@media (max-width: 600px) {
  .catalogo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .card-auto {
    height: auto;
  }
}

/* Ajustes de texto y botones dentro de las cards para pantallas chicas */

@media (max-width: 480px) {
  .card-info h4 {
    font-size: 1rem;
  }
  .card-info .version {
    font-size: 0.85rem;
  }
  .specs {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  .cta-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
  }
}

/* Efecto mágico en enlaces del nav */

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #B22222; /* rojo firebrick */
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover,
nav a:focus {
  color: #ff6b6b;
  animation: navGlow 1s infinite alternate;
}

nav a:hover::before,
nav a:focus::before {
  width: 100%;
}

@media (max-width: 768px) {

  /* Box-sizing para todo */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  

  nav {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding-top: 80px;
    color: #fff;
    z-index: 1000;
    border-radius: 0 0 0 20px;
  }

  nav.open {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    list-style: none;
  }

  nav li {
    border-bottom: 1px solid #444;
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    color: #fff;
    display: block;
    padding: 1.2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    user-select: none;
  }

  nav a:hover,
  nav a:focus {
    background-color: rgba(255, 0, 0, 0.3);
    outline: none;
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
     background-color: black;
    padding: 0.6rem;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--color-red);
    z-index: 1100;
  }
}

/* Brillo suave animado */
@keyframes navGlow {
  0% {
    text-shadow: 0 0 5px #ff6b6b, 0 0 10px #b22222, 0 0 15px #ff6b6b;
  }
  100% {
    text-shadow: 0 0 10px #ff6b6b, 0 0 20px #b22222, 0 0 30px #ff6b6b;
  }
}


  /* ================== GRID ================== */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  padding: 1rem;
}

/* ================== TARJETA AUTO ================== */
.card-auto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4.3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;      /* asegura que ocupe toda la columna */
  min-width: 0;     /* evita que se achique raro */
}

.card-auto:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ================== IMAGEN ================== */
.card-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================== ETIQUETAS ================== */
.etiqueta-nuevo {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #00490a;
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.etiqueta-nuevo1 {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #6b0000;
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.etiqueta-nuevo2 {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000000;
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* ================== BOTÓN VER MÁS ================== */
.view-more {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #0000009d;
  color: #fff;
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

/* ================== SPECs ================== */
.specs {
  display: flex;
  justify-content: space-around;
  padding: 0.6rem;
  font-size: 0.95rem;
  color: #000000;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.specs > * {
  position: relative;
  padding: 0 0.8rem; /* espacio horizontal entre línea y texto */
}

.specs > *:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background-color: #ccc; /* color de la línea */
}

/* ================== INFO ================== */
.card-info {
  flex: 1;
  padding: 1rem;
}

.card-info .model {
  margin: 0 0 0.5rem 0; /* espacio inferior */
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #ccc; /* línea divisoria */
  padding-bottom: 0.3rem; /* espacio entre texto y línea */
}

.card-info .version {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}

/* ================== FOOTER ================== */
.card-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #25d366;
  font-weight: 600;
  font-size: 1rem;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
}

.compare-label {
  font-size: 0.9rem;
  color: #444;
}

.price {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.price strong {
  font-size: 1.15rem;
  color: #0b6b3a;
}

/* ================== FILTROS ================== */
.filtros-autos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem;
  margin: 1rem 0 2rem;
  background: #fff3f348;
  border: 1px solid #000000;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filtros-autos label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #000;
  margin-right: 0.4rem;
}

.filtros-autos select {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  border: 1px solid #020202;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 160px;
}

.filtros-autos select:focus {
  border-color: #1d3b70;
  box-shadow: 0 0 0 3px rgba(29, 59, 112, 0.15);
  outline: none;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-image {
    height: 220px;
  }
  .card-auto {
    width: 100%;  /* fuerza ocupar toda la columna */
    min-width: 0; /* evita que se achique */
  }
}

@media (max-width: 768px) {
  .filtros-autos {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .filtros-autos label {
    margin: 0;
  }

  .filtros-autos select {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .catalogo-grid {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-auto {
    margin: 0 auto;
    width: 100%;      /* siempre ocupa todo el ancho */
    min-width: 0;     /* evita shrinking raro */
    max-width: 100%;  /* elimina límite en mobile para que no se vea chica */
  }

  .card-image {
    height: 200px;
  }
}



.price {
  color: #e63946;            /* Rojo más moderno y suave que el rojo puro */
  font-weight: 700;           /* Más destacado */
  font-size: 1rem;            /* Tamaño legible */
  text-align: right;          /* Alineación a la derecha */
  text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Sutil sombra para resaltar */
  transition: transform 0.2s ease, color 0.2s ease;
}

.price:hover {
  transform: scale(1.05);    /* Pequeño zoom al pasar el mouse */
  color: #d90429;            /* Rojo más intenso en hover */
}

