/* Tipografía general */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: "Nunito Sans", "Poppins", "Inter", sans-serif;
  font-size: 16px;
  color: #fff;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Layout general */
.catalogo-layout {
  display: flex;
  gap: 40px;
  width: 100%;
  padding: 40px 20px;
  background-color: #fff;
  box-sizing: border-box;
}

/* Menú lateral de filtros */
.filtros-laterales {
  flex: 0 0 240px;
  background-color: #2a2a3d;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.filtro-grupo {
  margin-bottom: 20px;
}

.filtro-grupo strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
}

.filtro-grupo label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #444;
  cursor: pointer;
}

.filtro-grupo input[type="checkbox"] {
  margin-right: 6px;
}

.rango-precio {
  font-size: 0.85rem;
  color: #333;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}


/* Zona de productos */
.catalogo-productos {
  flex: 1;
  min-width: 0;
}

.catalogo-productos h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  font-weight: 600;
  color: #111;
}

/* Grilla de autos */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card de vehículo */
.vehiculo-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.vehiculo-card:hover {
  transform: translateY(-4px);
}

.vehiculo-imagen img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.vehiculo-info {
  padding: 16px;
}

.vehiculo-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111;
}

.vehiculo-info p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #555;
}

.vehiculo-info .precio {
  font-weight: 100;
  color: #c00;
  font-size: 1rem;
}

/* Cucarda tipo listón */
.cucarda-liston {
    position: absolute;
    top: 52px;
    left: -24px;
    background: #333;
    color: white;
    font-weight: bold;
    padding: 6px 42px;
    transform: rotate(-45deg);
    transform-origin: left top;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}

/* Paginación */
.paginacion {
  margin-top: 40px;
  text-align: center;
}

.paginacion a {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  background: #eee;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.3s ease;
}

.paginacion a:hover {
  background: #ddd;
}

.paginacion a.activa {
  background: #c00;
  color: white;
  font-weight: bold;
}
/* Responsive grid */
@media (max-width: 1200px) {
  .catalogo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .vehiculo-card {
    position: relative;
    border-radius: 12px;
  }

  .vehiculo-info {
    padding: 14px;
  }

  .vehiculo-info h3 {
    font-size: 1rem;
  }

  .vehiculo-info p {
    font-size: 0.85rem;
  }

  .vehiculo-info .precio {
    font-size: 0.95rem;
  }
}

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

  .vehiculo-imagen img {
    height: 200px;
  }
}

/* Card más grande y espaciosa */
.vehiculo-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.vehiculo-card:hover {
  transform: translateY(-4px);
}

.vehiculo-imagen img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.vehiculo-info {
  padding: 18px;
}

.vehiculo-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111;
}

.vehiculo-info p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #555;
}

.vehiculo-card.elegante .vehiculo-nombre {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.vehiculo-card.elegante .vehiculo-precio {
  font-size: 1.25rem;
  font-weight: 501;
  color: #004080;
  margin-bottom: 8px;
}

.vehiculo-card.elegante .vehiculo-detalles {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

.vehiculo-card.elegante .vehiculo-ubicacion {
  font-size: 0.85rem;
  color: #888;
}
}
.producto-layout {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
}

.producto-contenido {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.galeria-producto {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.galeria-producto img {
  height: 220px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  object-fit: cover;
}

.detalles-producto h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.precio-destacado {
  font-size: 1.4rem;
  font-weight: bold;
  color: #004080;
  margin-bottom: 20px;
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  font-size: 1rem;
  color: #555;
}

.descripcion-producto {
  margin-top: 30px;
}

.descripcion-producto h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.descripcion-producto p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

.card-link-wrapper {
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-hover-button {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0; /* Oculto inicialmente */
  background: #004080; /* Rojo corporativo */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.3s ease;
}

.card-hover-button a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.vehiculo-card:hover .card-hover-button {
  height: 30px; /* Se despliega al hover */
}

.filtros-laterales {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filtro-card {
  margin-bottom: 20px;
}

.filtro-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #333;
}

.filtro-card label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  cursor: pointer;
}

.filtro-card input[type="checkbox"] {
  accent-color: #dc3545;
  margin-right: 8px;
  transform: scale(1.2);
}

.btn-filtros {
  display: block;
  width: 100%;
  padding: 12px;
  background: #dc3545;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-filtros:hover {
  background: #b02a37;
}

.rango-precio {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

.paginacion {
  margin: 20px 0;
  text-align: center;
}

.paginacion a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}

.paginacion a.activa {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}
/* === Buscador dentro del panel de filtros === */
.filtro-card input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.filtro-card input[type="text"]:focus {
  border-color: #dc3545;
  box-shadow: 0 0 4px rgba(220, 53, 69, 0.4);
  outline: none;
}

/* === Buscador en la parte superior del catálogo (si lo usás fuera del aside) === */
.buscador-catalogo {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.buscador-catalogo form {
  display: flex;
  width: 100%;
  max-width: 500px;
}

.buscador-catalogo input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
}

.buscador-catalogo button {
  padding: 10px 20px;
  border: none;
  background: #dc3545;
  color: #fff;
  font-weight: bold;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.buscador-catalogo button:hover {
  background: #b02a37;
}
/* === Responsive ajustes para filtros y buscador === */
@media (max-width: 768px) {
  .filtros-laterales {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  }

  .filtros-laterales.activo {
    left: 0;
  }

  .btn-toggle-filtros {
    display: block;
    margin: 10px;
    padding: 10px 15px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
  }

  .buscador-catalogo {
    margin: 10px;
  }

  .buscador-catalogo form {
    flex-direction: column;
    max-width: 100%;
  }

  .buscador-catalogo input[type="text"] {
    border-radius: 6px;
    margin-bottom: 10px;
    width: 100%;
  }

  .buscador-catalogo button {
    border-radius: 6px;
    width: 100%;
  }

  .catalogo-grid {
    grid-template-columns: 1fr; /* productos en una sola columna */
  }
}

/* === Estilos página interna de producto === */
.producto-layout {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
}

.producto-contenido {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.galeria-producto {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.galeria-producto img {
  height: 220px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  object-fit: cover;
}

.detalles-producto {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detalles-producto h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.precio-destacado {
  font-size: 1.4rem;
  font-weight: bold;
  color: #dc3545;
  margin-bottom: 20px;
}

/* Grilla de características dinámicas */
.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  font-size: 1rem;
  color: #555;
}

.caracteristicas-grid div {
  background: #fafafa;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .galeria-producto img {
    height: 160px;
  }
  .detalles-producto h1 {
    font-size: 1.4rem;
  }
  .precio-destacado {
    font-size: 1.2rem;
  }
}

/* galeria */
.galeria-producto {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.galeria-principal {
  width: 100%;
  text-align: center;
}

.galeria-principal img {
  max-width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.galeria-miniaturas {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
}

.galeria-miniaturas img {
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.galeria-miniaturas img:hover {
  transform: scale(1.05);
}
/* Sidebar de filtros */
.filtros-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1e1e2f 0%, #2a2a3d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  overflow-y: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Header */
.filtros-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ad2929;
  padding: 15px;
  border-radius: 12px 12px 0 0;
}

.filtros-header h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filtros-header .btn-toggle-filtros {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Contenedor de filtros */
.filtros-nav {
  padding: 15px;
}

/* Cada bloque de filtro como card */
.filtro-item {
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: background 0.3s ease;
}

.filtro-item:hover {
  background: rgba(255,255,255,0.1);
}

.filtro-item strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}

.filtro-item input[type="text"] {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  outline: none;
  color: #fff;
}

/* Checkboxes modernos */
.filtro-item label {
  display: flex;
  align-items: center;
  margin: 6px 0;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s ease;
}

.filtro-item label:hover {
  color: #fff;
}

.filtro-item input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #ad2929; /* color de acento */
}

/* Botón aplicar filtros */
.btn-filtros {
  width: 100%;
  padding: 12px;
  background: #ad2929;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-filtros:hover {
  background: #c82333;
  transform: translateY(-2px);
}

/* Mobile: sidebar deslizable */
@media (max-width: 768px) {
  .filtros-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    z-index: 2000;
    transform: translateX(0);
  }

  .filtros-sidebar.active {
    left: 0;
    transform: translateX(0);
  }
}
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card-producto {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  font-family: "Nunito Sans", "Poppins", "Inter", sans-serif;
  font-weight: 300; /* más fino */
  color: #2c2c2c;
}

.card-producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.card-imagen {
  position: relative;
}

.card-imagen img {
  width: 100%;
  height: auto;
  display: block;
}

.badge-oferta {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #007bff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}

.card-contenido {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Nunito Sans", "Poppins", "Inter", sans-serif;
}

.card-titulo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}

.card-version {
  font-size: 0.95rem;
  color: #555;
}

.card-precio {
  margin-top: 8px;
}

.precio-original {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.precio-oferta {
  font-size: 1.3rem;
  font-weight: 700;
  color: #007bff;
}

.btn-vermas {
  display: block;           
  width: 100%;               
  max-width: 250px;         
  background: #ccc;     
  color: #000;             
  font-weight: 300;
  text-transform: uppercase; 
  text-align: center;
  padding: 9px 20px;        
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-vermas:hover {
  background: #004080;
  color: #fff;
  transform: translateY(-2px);
}

/* === Card de vehículo === */
.vehiculo-card.elegante {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: "Nunito Sans", "Poppins", "Inter", sans-serif;
  color: #2c2c2c;
}
}

.vehiculo-card.elegante:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Imagen */
.vehiculo-imagen {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.vehiculo-imagen img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.vehiculo-card.elegante:hover .vehiculo-imagen img {
  transform: scale(1.05);
}

/* Información */
.vehiculo-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .vehiculo-card.elegante {
    border-radius: 12px;
  }

  .vehiculo-precio {
    font-size: 1.1rem;
  }

/* Contenedor para centrar el botón */
.btn-vermas-contenedor {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.btn-vermas:hover {
  background: #ad2929;       
  transform: translateY(-2px);
}
/* Fuente global para las cards */
.vehiculo-card.elegante,
.vehiculo-card.elegante * {
  font-family: "Nunito Sans", "Poppins", "Inter", sans-serif;
}

/* Precio */
.vehiculo-precio {
  color: #007bff;
  margin: 6px 0;
}

---------------------------
/* Fuente global más elegante */
body, .catalogo-productos, .vehiculo-card.elegante, .card-producto {
  font-family: "Nunito Sans", "Poppins", "Inter", sans-serif;
  font-weight: 300; /* más fino */
  color: #2c2c2c;
}

/* Grid del catálogo */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Card de vehículo */
.vehiculo-card.elegante {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vehiculo-card.elegante:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Imagen */
.vehiculo-imagen img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.vehiculo-card.elegante:hover .vehiculo-imagen img {
  transform: scale(1.04);
}

/* Cucarda */
.cucarda-liston {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  background: #3a3a3a; /* más sobrio */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Información */
.vehiculo-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vehiculo-nombre {
  font-size: 1.1rem;
  font-weight: 400; /* más fino */
  color: #1a1a1a;
  margin: 0;
}

.vehiculo-detalles,
.vehiculo-ubicacion {
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
}

.vehiculo-precio {
  font-size: 1.2rem;
  color: #004080; /* azul elegante */
  margin-top: 8px;
}

.vehiculo-card.destacado {
  border: 2px solid #007bff;
  position: relative;
}

.vehiculo-card.destacado::before {
  content: "★ Destacado";
  position: absolute;
  top: 10px; left: 10px;
  background: #007bff;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}

/* Botón overlay en la card */
.card-hover-button {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0; /* Oculto inicialmente */
  background: rgba(227,16,16,0.95); /* Rojo corporativo con leve transparencia */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.3s ease;
  border-top: 1px solid #c00;
}

.card-hover-button span {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Hover: despliega el botón */
.vehiculo-card:hover .card-hover-button {
  height: 48px;
}

