/* Estilos Generales y Reseteo */
:root {
    --primary-red: #E63946;
    --dark-text: #1A1A1A;
    --light-gray: #F4F7F6;
    --pure-white: #FFFFFF;
    --pure-black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif; /* Fuente moderna */
    background-color: var(--light-gray);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Cabecera Moderna */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Nuevo estilo de Logo Bicolor */
.logo {
    font-size: 28px;
    font-weight: 800; /* Extra bold */
    letter-spacing: -0.5px;
}

.brand-red { color: var(--primary-red); }
.brand-dark { color: var(--dark-text); }
.brand-white { color: var(--pure-white); }

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

header nav ul li a:hover, header nav ul li a.active {
    color: var(--primary-red);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px; /* Botones redondeados modernos */
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
    transition: transform 0.2s;
}

.btn-whatsapp:hover { transform: translateY(-2px); }

/* Banner Principal y Buscador */
.hero {
    position: relative;
    /* Nueva imagen de fondo más "premium" */
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    height: 70vh; /* Un poco más alto */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--pure-white);
}

/* Capa oscura sobre la imagen para mejorar lectura */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Buscador Flotante Moderno */
.search-box {
    background: var(--pure-white);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Sombra más prominente */
}

.input-group {
    flex: 1 1 200px; /* Flex para que se adapten */
}

.search-box select, .search-box button {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 6px;
    outline: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #555;
    background-color: #fff;
    transition: border-color 0.3s;
}

.search-box select:focus {
    border-color: var(--primary-red);
}

.btn-buscar {
    background-color: var(--primary-red);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex: 0 1 auto; /* El botón no se estira tanto como los selects */
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Secciones Comunes */
.section-container {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-text);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
}

/* Pequeña línea roja debajo de los títulos */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Catálogo de Autos (Tarjetas) */
.grid-autos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tarjeta-auto {
    background: var(--pure-white);
    border-radius: 12px; /* Bordes más redondeados */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: none; /* Quitamos el borde gris anterior */
}

.tarjeta-auto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tarjeta-auto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tarjeta-auto:hover img {
    transform: scale(1.05); /* Zoom suave al pasar el mouse */
}

.tag-transmision {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
}

.info-auto {
    padding: 25px;
}

.precios-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.precio-actual {
    font-size: 1.8rem;
    color: var(--primary-red);
    font-weight: 800;
}

.precio-anterior {
    text-decoration: line-through;
    color: #aaa;
    font-size: 1rem;
    font-weight: 600;
}

.titulo-auto {
    font-size: 1.3rem;
    margin: 10px 0;
    color: var(--dark-text);
    font-weight: 700;
}

.detalles-auto {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Categorías rápidas */
.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.item-categoria {
    background: var(--pure-white);
    padding: 35px 20px;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-categoria:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.1);
}

/* Footer Negro */
footer {
    background: var(--pure-black);
    color: var(--pure-white);
    text-align: center;
    padding: 10px 0;
    margin-top: 0px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-footer {
    font-size: 24px;
    font-weight: 800;
}

footer p {
    opacity: 0.7;
    font-size: 14px;
}

:root {
    --primary-red: #E63946;
    --dark-text: #1A1A1A;
    --light-gray: #F4F7F6;
    --pure-white: #FFFFFF;
    --pure-black: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--light-gray); color: var(--dark-text); line-height: 1.6; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background-color: var(--pure-white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.brand-red { color: var(--primary-red); }
.brand-dark { color: var(--dark-text); }
.brand-white { color: var(--pure-white); }
header nav ul { list-style: none; display: flex; gap: 30px; }
header nav ul li a { text-decoration: none; color: var(--dark-text); font-weight: 600; font-size: 14px; text-transform: uppercase; transition: color 0.3s; }
header nav ul li a:hover, header nav ul li a.active { color: var(--primary-red); }
.btn-whatsapp { background-color: #25D366; color: white; border: none; padding: 12px 25px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: transform 0.2s; }

/* Banners */
.hero { position: relative; background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; height: 70vh; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--pure-white); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)); }
.hero-content { position: relative; z-index: 2; width: 90%; max-width: 1000px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; }

/* Buscador */
.search-box { background: var(--pure-white); padding: 15px; border-radius: 8px; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.input-group { flex: 1 1 200px; }
.search-box select, .search-box button { width: 100%; padding: 15px 20px; border: 2px solid #eee; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.btn-buscar { background-color: var(--primary-red); color: white; border: none; cursor: pointer; text-transform: uppercase; flex: 0 1 auto; }

/* Secciones Generales */
.section-container { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.2rem; font-weight: 700; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary-red); margin: 15px auto 0; }

/* Catálogo y Tarjetas */
.grid-autos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.tarjeta-auto { background: var(--pure-white); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.tarjeta-auto:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.image-container { position: relative; height: 240px; overflow: hidden; }
.tarjeta-auto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tarjeta-auto:hover img { transform: scale(1.05); }
.tag-transmision { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 5px 10px; font-size: 12px; border-radius: 4px; font-weight: 600; }
.info-auto { padding: 25px; }
.precios-container { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.precio-actual { font-size: 1.8rem; color: var(--primary-red); font-weight: 800; }
.precio-anterior { text-decoration: line-through; color: #aaa; font-weight: 600; }
.titulo-auto { font-size: 1.3rem; margin: 10px 0; font-weight: 700; }

/* Categorías */
.grid-categorias { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.item-categoria { background: var(--pure-white); padding: 35px 20px; text-align: center; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; text-transform: uppercase; }
.item-categoria:hover { border-color: var(--primary-red); color: var(--primary-red); transform: translateY(-3px); }

/* Footer */
footer { background: var(--pure-black); color: var(--pure-white); text-align: center; padding: 50px 0; margin-top: 40px; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.logo-footer { font-size: 24px; font-weight: 800; }

/* Páginas Internas */
.page-header { position: relative; height: 40vh; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--pure-white); background-size: cover; background-position: center; }
.catalogo-bg { background-image: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0be2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.nosotros-bg { background-image: url('https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.contacto-bg { background-image: url('https://images.unsplash.com/photo-1534080534261-2495bb1cd5f3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.page-header-content { position: relative; z-index: 2; }
.page-header-content h1 { font-size: 3rem; font-weight: 800; }
.nosotros-grid, .contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.nosotros-imagen img { width: 100%; border-radius: 12px; }
.contacto-grid { background: var(--pure-white); padding: 50px; border-radius: 12px; }
.datos-contacto { margin-top: 30px; background: var(--light-gray); padding: 25px; border-radius: 8px; }
.formulario-contacto .input-group { margin-bottom: 20px; width: 100%; }
.formulario-contacto input, .formulario-contacto textarea { width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 6px; font-family: 'Montserrat', sans-serif; outline: none; }

/* Estilos Responsivos */
.menu-toggle { display: none; font-size: 28px; background: none; border: none; cursor: pointer; color: var(--dark-text); }
.whatsapp-flotante { display: none; }

@media (max-width: 768px) {
    .section-container { padding: 40px 5%; }
    h1 { font-size: 2.2rem !important; }
    header { flex-wrap: wrap; padding: 15px 5%; }
    .menu-toggle { display: block; }
    .desktop-whatsapp { display: none; }
    #nav-menu { width: 100%; display: none; flex-direction: column; background-color: var(--pure-white); padding: 20px 0; border-top: 1px solid #eee; margin-top: 15px; }
    #nav-menu.activo { display: flex; }
    header nav ul { flex-direction: column; gap: 15px; text-align: center; }
    .search-box { flex-direction: column; padding: 20px; }
    .input-group, .btn-buscar { width: 100%; }
    .grid-autos, .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; }
    .hero { height: 60vh; }
    .page-header { height: 30vh; }
    .whatsapp-flotante { display: flex; align-items: center; gap: 8px; position: fixed; bottom: 20px; right: 20px; background-color: #25D366; color: white; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; }
}

/* Header Oscuro para integrar el Logo */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
    background-color: #0f0f0f; /* Negro casi puro */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

/* Ajustes de la imagen del logo */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

header nav ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}

/* Letras del menú ahora en blanco */
header nav ul li a { 
    text-decoration: none; 
    color: var(--pure-white); /* Texto blanco */
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    transition: color 0.3s; 
}

header nav ul li a:hover, header nav ul li a.active { 
    color: var(--primary-red); /* Al pasar el mouse se pone rojo */
}

.btn-whatsapp { 
    background-color: #25D366; 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 50px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: transform 0.2s; 
}

/* Ajuste del botón hamburguesa a blanco para móviles */
.menu-toggle { 
    display: none; 
    font-size: 28px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--pure-white); 
}
/* --- NUEVOS ESTILOS DE CABECERA Y BOTONES --- */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
    background-color: #1a1a1a; /* Gris muy oscuro igual a la imagen */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-header-red {
    background-color: #e53935;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-header-white {
    background-color: white;
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.desktop-only { display: flex; }

/* --- SECCIÓN DEL BUSCADOR ROJO --- */
.busqueda-roja {
    background-color: #da2128; /* Rojo exacto de la imagen de referencia */
    padding: 30px 5%;
}

.busqueda-container {
    max-width: 1200px;
    margin: 0 auto;
}

.advanced-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Fila 1: Input de texto y Botón buscar */
.search-row-1 {
    display: flex;
    gap: 15px;
}

.input-general {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.btn-buscar-dark {
    background-color: #4a4d50; /* Gris oscuro del botón Buscar */
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

/* Fila 2: Selectores */
.search-row-2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Para que se acomoden en celular */
}

.search-row-2 select {
    flex: 1;
    min-width: 140px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    outline: none;
    cursor: pointer;
}

/* Fila 3: Botón Ver Todos */
.btn-ver-todos {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 25px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-ver-todos:hover {
    background: white;
    color: #da2128;
}

/* --- BANNER DEBAJO DEL BUSCADOR --- */
.banner-promocion {
    margin-top: -50px;
    width: 100%;
    background-color: #f4f4f4; /* Fondo claro por si la imagen no carga rápido */
}

.img-banner-ancho {
    width: 100%;
    height: 670px; /* Esto permite que la imagen muestre su altura real */
    display: block;
    /* Eliminamos el object-fit: cover para que no la recorte */
}


/* --- RESPONSIVIDAD (Móviles) --- */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .search-row-1 { flex-direction: column; }
    .btn-buscar-dark { padding: 15px; }
    .img-banner-ancho { height: 170px; }
}

/* --- SECCIÓN DEL BUSCADOR CON DEGRADADO --- */
.busqueda-degradado {
    /* Degradado sutil: del rojo vivo a un rojo casi negro en la esquina inferior derecha */
    background: linear-gradient(135deg, #da2128 30%, #b40a0f 100%);
    padding: 50px 5%;
    margin-bottom: 40px;
}

.busqueda-container {
    max-width: 1200px;
    margin: 0 auto;
}

.advanced-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Área principal: Input/Selects a la izquierda, Botón Buscar a la derecha */
.search-main-area {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.search-inputs-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Input de texto largo */
.input-general {
    width: 100%;
    padding: 14px 15px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

/* Fila de selectores */
.search-selects-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-selects-row select, .btn-white-filter {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    outline: none;
    cursor: pointer;
}

.btn-white-filter {
    background: white;
    text-align: center;
}

/* Botón Buscar oscuro a la derecha */
.btn-buscar-dark {
    background-color: #4a4d50; 
    color: white;
    border: none;
    padding: 0 30px;
    height: 48px; /* Misma altura que el input de texto */
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.btn-buscar-dark:hover {
    background-color: #2c2e30;
}

/* Fila 3: Botón Ver Todos */
.search-row-3 {
    margin-top: 5px;
}

.btn-ver-todos {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 25px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-ver-todos:hover {
    background: white;
    color: #da2128;
}

/* --- RESPONSIVIDAD (Móviles) --- */
@media (max-width: 768px) {
    .search-main-area { flex-direction: column; }
    .btn-buscar-dark { width: 100%; justify-content: center; height: auto; padding: 15px; }
}
/* --- CATÁLOGO ESTILO VEINSA --- */
.seccion-catalogo {
    padding: 60px 5%;
    background-color: #ffffff; /* Fondo blanco limpio */
    padding-bottom: 150px;
}

.contenedor-centrado {
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-principal {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subtitulo-principal {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* Cuadrícula de Autos */
.grid-veinsa {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Tarjeta Exacta */
.tarjeta-veinsa {
    background: #fff;
    border: 1px solid #eaeaea; /* Borde muy sutil */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.tarjeta-veinsa:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.img-veinsa-container {
    position: relative;
    height: 200px;
    width: 100%;
}

.img-veinsa-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Etiqueta "Nuevo" sobre la foto */
.tag-estado {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #28a745; /* Verde para nuevo */
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.info-veinsa {
    padding: 20px;
}

.precios-veinsa {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.precio-ahora {
    font-size: 22px;
    font-weight: 800;
    color: #da2128; /* Rojo marca */
}

.precio-antes {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-top: -2px;
}

.modelo-veinsa {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.marca-veinsa {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.detalles-veinsa {
    font-size: 12px;
    color: #555;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* --- SECCIÓN ¿NO TE HAS DECIDIDO? --- */
.seccion-indecisos {
    background-color: #f8f9fa; /* Gris muy clarito */
    padding: 60px 5%;
    text-align: center;
}

.indecisos-header {
    margin-bottom: 40px;
}

.icono-decisiones {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.indecisos-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.indecisos-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.grid-categorias-veinsa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cat-veinsa {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.cat-veinsa:hover {
    border-color: #da2128;
    color: #da2128;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
/* =========================================
   SECCIÓN: ¿NO TE HAS DECIDIDO? (Tarjeta Exacta)
========================================= */
.seccion-indecisos {
    background-color: var(--light-gray);
    padding: 60px 5%;
}

.caja-indecisos {
    background-color: var(--pure-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); /* Sombra suave de la tarjeta */
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* --- Izquierda: Textos e Icono --- */
.indecisos-izq {
    flex: 1;
    text-align: left;
}

.icono-pregunta {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.indecisos-izq h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.indecisos-izq p {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}

/* --- Derecha: Botones Blancos --- */
.indecisos-der {
    flex: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.btn-indeciso {
    background: var(--pure-white);
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* Sombra muy sutil */
    color: #666;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-indeciso:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    color: var(--primary-red);
}

/* Truco: Decolorar los iconos para que se vean grises y sutiles */
.icono-btn {
    filter: grayscale(100%) opacity(0.5);
    font-size: 16px;
    transition: all 0.2s;
}

.btn-indeciso:hover .icono-btn {
    filter: grayscale(0%) opacity(1); /* Toman color al pasar el mouse */
}

/* --- Botón Ver Todos (Rojo Fuerte) --- */
.btn-rojo-fuerte {
    background-color: var(--primary-red);
    color: var(--pure-white) !important;
    box-shadow: 0 4px 10px rgba(218, 33, 40, 0.3);
    border: none;
}

.btn-rojo-fuerte:hover {
    background-color: #b81c22;
    color: var(--pure-white);
}

/* --- Responsividad (Móviles) --- */
@media (max-width: 900px) {
    .caja-indecisos {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 30px;
    }
    
    .indecisos-izq {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .indecisos-der {
        justify-content: center;
    }
}
/* =========================================
   CARRUSELES POR CATEGORÍA
========================================= */
.seccion-carruseles {
    padding: 60px 5%;
    background-color: var(--pure-white);
}

.carrusel-categoria {
    margin-bottom: 50px;
}

.titulo-carrusel {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
}

.carrusel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Contenedor que hace el scroll horizontal */
.carrusel-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Hace que el deslizamiento encaje perfecto */
    scroll-behavior: smooth;
    padding: 10px 5px 25px 5px; /* Espacio para que no se corte la sombra de las tarjetas */
    width: 100%;
    -ms-overflow-style: none;  /* Oculta scrollbar en IE/Edge */
    scrollbar-width: none;  /* Oculta scrollbar en Firefox */
}

/* Oculta la barra de scroll en Chrome/Safari */
.carrusel-scroll::-webkit-scrollbar {
    display: none; 
}

/* Ajuste específico para que las tarjetas no se encojan dentro del carrusel */
.carrusel-scroll .tarjeta-veinsa {
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* Botones Flechas */
.btn-carrusel {
    background-color: var(--pure-white);
    border: 2px solid #eaeaea;
    color: var(--dark-text);
    font-size: 18px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-carrusel:hover {
    background-color: var(--primary-red);
    color: var(--pure-white);
    border-color: var(--primary-red);
}

/* Posiciones de los botones */
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* En celulares quitamos los botones porque el usuario desliza con el dedo */
@media (max-width: 768px) {
    .btn-carrusel { display: none; }
    .carrusel-scroll .tarjeta-veinsa { 
        min-width: 85%; /* Las tarjetas ocupan casi toda la pantalla */
        max-width: 85%; 
    }
}

/* =========================================
   REDES SOCIALES FOOTER
========================================= */
.redes-sociales {
    display: flex;
    gap: 8px; /* Juntamos un poquito más los íconos porque ahora son más pequeños */
    margin-top: -15px; /* TRUCO: Jalamos los botones hacia arriba para que se peguen al logo */
    margin-bottom: -5px;
}

.social-btn {
    width: 25px;  
    height: 25px; 
    border-radius: 6px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Colores originales de las marcas */
.facebook { background-color: #1877F2; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.whatsapp { background-color: #25D366; }

/* El tamaño del icono blanco adentro */
.social-btn svg {
    width: 12px;  
    height: 12px; 
    fill: currentColor;
}

/* Efecto al pasar el ratón */
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* =========================================
   LAYOUT DEL CATÁLOGO (Filtros + Resultados)
========================================= */
.catalogo-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar de Filtros */
.filtros-sidebar {
    flex: 0 0 280px; /* Ancho fijo de 280px */
    background-color: var(--pure-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky; /* Para que baje contigo al hacer scroll */
    top: 90px;
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filtros-header h3 {
    font-size: 1.1rem;
    color: var(--dark-text);
}

.btn-limpiar {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-limpiar:hover {
    color: var(--primary-red);
}

.formulario-filtros {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filtro-grupo label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.filtro-grupo input, 
.filtro-grupo select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.filtro-grupo input:focus, 
.filtro-grupo select:focus {
    border-color: var(--primary-red);
}

/* Área Principal (Resultados) */
.catalogo-main {
    flex: 1; /* Ocupa el resto del espacio */
}

.catalogo-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--pure-white);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.resultados-texto {
    font-weight: 600;
    color: #555;
}

.ordenar-por {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ordenar-por label {
    font-weight: 600;
    font-size: 0.9rem;
}

.ordenar-por select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

/* Responsive del Catálogo */
@media (max-width: 900px) {
    .catalogo-layout {
        flex-direction: column;
    }
    .filtros-sidebar {
        flex: auto;
        width: 100%;
        position: relative;
        top: 0;
    }
    .catalogo-top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Cabecera del Catálogo */
.page-header {
    position: relative;
    height: 35vh; /* Un poco más delgado para darle protagonismo a los autos */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--pure-white);
}

.catalogo-bg {
    /* OPCIÓN 1: Degradado oscuro elegante (Estilo premium) */
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);

    /* OPCIÓN 2: Foto de un showroom oscuro de fondo (Descomenta las 3 líneas de abajo para usarla) */
    /* background-image: url('https://images.unsplash.com/photo-1562426509-5044a121aa49?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); */
    /* background-size: cover; */
    /* background-position: center; */
}

/* Oscurecemos un poco más la capa para asegurar que el texto blanco se lea perfecto */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
}


.grid-autos {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Fuerza las 4 columnas */
    gap: 15px;
    width: 100%;
}

/* Ajuste de imagen para que no queden muy estiradas en 4 columnas */
.img-veinsa-container {
    height: 160px !important;
}

/* Solo bajar columnas en pantallas realmente pequeñas */
@media (max-width: 1100px) {
    .grid-autos { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    .grid-autos { grid-template-columns: 1fr !important; }
}

/* Ajuste de altura de imagen para 4 columnas */
.img-veinsa-container {
    position: relative;
    height: 180px; /* Reducimos un poco la altura para mantener la proporción */
    width: 100%;
}
/* =========================================
   PAGINACIÓN
========================================= */
.paginacion-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    width: 100%;
}

.btn-pagina {
    background-color: var(--pure-white);
    border: 1px solid #ddd;
    color: var(--dark-text);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-pagina:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-pagina.active {
    background-color: var(--primary-red);
    color: var(--pure-white);
    border-color: var(--primary-red);
}
/* =========================================
   ESTILOS EXTRA PARA FLECHAS DE PAGINACIÓN
========================================= */
.btn-flecha {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efecto cuando el botón está desactivado (ej: si estás en la primera página) */
.btn-pagina.disabled {
    color: #ccc;
    border-color: #eee;
    background-color: #fafafa;
    cursor: not-allowed;
}

.btn-pagina.disabled:hover {
    color: #ccc;
    border-color: #eee;
    background-color: #fafafa;
}

/* =========================================
   PÁGINA DE CONTACTO (ESTILO CLÁSICO Y LIMPIO)
========================================= */
.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--pure-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Sombra muy suave */
    border: 1px solid #eaeaea; /* Borde sutil para definir la caja */
}

/* Columna Izquierda: Info */
.info-contacto {
    display: flex;
    flex-direction: column;
}

.info-contacto h3, .caja-formulario h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 800;
}

.texto-intro-contacto {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.datos-contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.dato-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icono-contacto {
    font-size: 20px;
    background: rgba(230, 57, 70, 0.1); /* Fondo rojizo muy clarito */
    color: var(--primary-red);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Íconos en círculos perfectos */
}

.dato-item div {
    color: #555;
    font-size: 0.95rem;
}

.dato-item strong {
    color: var(--dark-text);
}

.mapa-container {
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
    border: 1px solid #eee;
}

/* Columna Derecha: Formulario */
.caja-formulario {
    background: #f9f9f9; /* Fondo gris súper claro para separar el formulario */
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.formulario-contacto .input-group {
    margin-bottom: 20px;
}

/* Inputs de estilo clásico */
.formulario-contacto input, 
.formulario-contacto textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    outline: none;
    background: var(--pure-white);
    transition: border-color 0.3s;
}

.formulario-contacto input:focus, 
.formulario-contacto textarea:focus {
    border-color: var(--primary-red);
}

.btn-enviar-contacto {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-enviar-contacto:hover {
    background-color: #b81c22;
}

.mensaje-exito {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsividad para móviles */
@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 40px;
    }
    .caja-formulario {
        padding: 25px;
    }
}

/* Fondo de Contacto - Opción Foto Premium */
.contacto-bg {
    background-image: url('https://images.unsplash.com/photo-1560958089-b8a1929cea89?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.page-header {
    position: relative;
    height: 35vh; /* Altura perfecta para que no ocupe toda la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--pure-white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Oscurece la foto un 60% para que el título resalte */
}
/* Botón de WhatsApp Cabecera (Mejorado con logo más grande) */
.btn-whatsapp { 
    background-color: #25D366; 
    color: white; 
    text-decoration: none; 
    padding: 8px 18px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 13px; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; /* Aumentamos un poco el espacio para el logo más grande */
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); 
    transition: all 0.3s ease; 
}

/* Regla para agrandar el logo (SVG) */
.btn-whatsapp svg {
    width: 30px; /* Tamaño del logo aumentado */
    height: 30px;
    display: block;
}

.btn-whatsapp:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45); 
    background-color: #20b858; 
}

/* Forzar que desaparezca en celulares */
@media (max-width: 768px) {
    .desktop-whatsapp { 
        display: none !important; 
    }
}
/* =========================================
   REPARACIÓN DEL MENÚ MÓVIL (CELULARES)
========================================= */

/* 1. Ocultamos la hamburguesa en la computadora */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pure-white); /* Color de las rayitas */
}

/* 2. Reglas exclusivas para Celulares y Tablets */
@media (max-width: 768px) {
    /* Mostramos la hamburguesa */
    .menu-toggle { 
        display: block; 
    }
    
    /* Ocultamos el WhatsApp de la cabecera (usamos el flotante) */
    .desktop-whatsapp { 
        display: none !important; 
    }
    
    /* Permitimos que el menú baje a una segunda línea */
    header {
        flex-wrap: wrap;
    }
    
    /* Escondemos los enlaces por defecto y les damos diseño de "cajón" */
    #nav-menu {
        width: 100%;
        display: none; /* Oculto hasta que se toque la hamburguesa */
        flex-direction: column;
        background-color: #1a1a1a; /* Mismo fondo oscuro de tu cabecera */
        padding: 20px 0;
        margin-top: 15px;
        border-top: 1px solid #333;
    }
    
    /* El JavaScript le agrega esta clase para mostrarlo */
    #nav-menu.activo {
        display: flex;
    }
    
    /* Acomodamos los links uno debajo del otro */
    header nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0;
    }
}

/* =========================================
   CONTROL DE VISIBILIDAD DEL BOTÓN FLOTANTE
========================================= */

/* 1. Por defecto, lo ocultamos (esto aplica a computadoras/pantallas grandes) */
.whatsapp-flotante-premium {
    display: none !important; 
}

/* 2. Solo lo mostramos en pantallas menores a 768px (Celulares y Tablets) */
@media (max-width: 768px) {
    .whatsapp-flotante-premium {
        display: flex !important;
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background-color: #25D366;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
        color: white;
    }
}

/* El logo proporcional para un botón de 60px */
.whatsapp-flotante-premium svg {
    width: 34px;  /* Tamaño equilibrado para que no toque los bordes */
    height: 34px;
    fill: white;
}

/* Efecto Hover: se levanta un poquito */
.whatsapp-flotante-premium:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Efecto Click: sigue teniendo una pequeña reacción al tocarlo */
.whatsapp-flotante-premium:active {
    transform: scale(0.95); /* Se encoge un poquito al tocar (efecto botón físico) */
}

/* Solo se muestra en móviles */
@media (max-width: 768px) {
    .whatsapp-flotante-premium {
        display: flex;
    }
}

@media (min-width: 769px) {
    .whatsapp-flotante-premium {
        display: none;
    }
}


/* =========================================
   FOOTER CON COLORES SIEMPRE ACTIVOS
========================================= */
footer {
    background-color: #0f0f0f; 
    padding: 60px 0 30px;
    color: var(--pure-white);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo-footer {
    margin-bottom: 10px;
}

/* Contenedor de Redes */
.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
}

/* Estilo Base de los Botones (Círculos) */
.social-btn {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* El logo siempre será blanco para que resalte sobre el color */
.social-btn svg {
    width: 22px;
    height: 22px;
    fill: white; 
}

/* COLORES OFICIALES ACTIVOS */
.social-btn.facebook { 
    background-color: #1877F2; 
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.social-btn.instagram { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
    box-shadow: 0 4px 10px rgba(214, 36, 159, 0.3);
}

.social-btn.tiktok { 
    background-color: #010101; 
    border: 1px solid #ff0050; /* Un borde neón para que resalte el negro */
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}/* =========================================
   1. BASE Y CONFIGURACIÓN
========================================= */
:root {
    --primary-red: #E63946;
    --dark-text: #1A1A1A;
    --light-gray: #F4F7F6;
    --pure-white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-text);
    line-height: 1.6;
}

/* =========================================
   2. CABECERA (HEADER) 
========================================= */
header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 10px 5%; background-color: #1a1a1a; 
    position: sticky; top: 0; z-index: 1000; 
}

.logo-img { height: 60px; width: auto; }

header nav ul { list-style: none; display: flex; gap: 25px; }

header nav ul li a { 
    text-decoration: none; color: white; font-weight: 600; 
    font-size: 14px; text-transform: uppercase; 
}

header nav ul li a.active { color: var(--primary-red); }

.btn-whatsapp { 
    background-color: #25D366; color: white; text-decoration: none; 
    padding: 8px 18px; border-radius: 50px; font-weight: 700; 
    display: inline-flex; align-items: center; gap: 8px; 
}

.menu-toggle { display: none; font-size: 28px; background: none; border: none; color: white; }

/* =========================================
   3. INICIO: BUSCADOR Y SECCIONES
========================================= */
.busqueda-degradado {
    background: linear-gradient(135deg, #da2128 30%, #4a090b 100%);
    padding: 40px 5%;
}

.search-main-area { display: flex; gap: 15px; max-width: 1200px; margin: 0 auto; }

/* Indecisos (Tarjeta blanca del inicio) */
.caja-indecisos { 
    background: white; border-radius: 12px; padding: 40px; 
    display: flex; align-items: center; gap: 30px; margin: 40px auto; max-width: 1200px;
}

/* Carruseles (Evitamos que se pongan en columnas) */
.carrusel-scroll { 
    display: flex; gap: 20px; overflow-x: auto; 
    padding-bottom: 20px; scrollbar-width: none; 
}

.carrusel-scroll .tarjeta-veinsa { 
    min-width: 280px; flex: 0 0 auto; /* Importante para que no se aplasten */
}

/* =========================================
   4. CATÁLOGO: EL CORAZÓN DEL DISEÑO (4 COLUMNAS)
========================================= */
.catalogo-layout { 
    display: flex; gap: 30px; max-width: 1300px; 
    margin: 40px auto; padding: 0 2%; 
}

.filtros-sidebar { flex: 0 0 280px; background: white; padding: 20px; border-radius: 8px; }

/* ESTA ES LA REGLA CLAVE: Solo afecta al grid dentro de la página catálogo */
.catalogo-main .grid-autos { 
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 20px !important; 
}

/* Tarjeta Veinsa (Diseño unificado) */
.tarjeta-veinsa { background: white; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; }

.img-veinsa-container { height: 160px; position: relative; }

.img-veinsa-container img { width: 100%; height: 100%; object-fit: cover; }

.info-veinsa { padding: 15px; }

.precio-ahora { font-size: 20px; font-weight: 800; color: #da2128; display: block; }

/* =========================================
   5. WHATSAPP FLOTANTE Y FOOTER
========================================= */
.whatsapp-flotante-premium {
    position: fixed; bottom: 25px; right: 25px; 
    width: 60px; height: 60px; background-color: #25D366; 
    border-radius: 50%; display: flex; justify-content: center; 
    align-items: center; z-index: 9999; box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.social-btn { 
    width: 40px; height: 40px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
}

.social-btn.facebook { background: #1877F2; }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.tiktok { background: black; border: 1px solid #ff0050; }

/* =========================================
   6. RESPONSIVIDAD (SOLUCIÓN A DESACOMODOS)
========================================= */

/* Tablets */
@media (max-width: 1100px) {
    .catalogo-main .grid-autos { grid-template-columns: repeat(2, 1fr) !important; }
    .caja-indecisos { flex-direction: column; text-align: center; }
}

/* Celulares */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    #nav-menu { 
        display: none; width: 100%; position: absolute; 
        top: 100%; left: 0; background: #1a1a1a; padding: 20px; 
    }
    #nav-menu.activo { display: block; }
    header nav ul { flex-direction: column; align-items: center; }
    
    .search-main-area { flex-direction: column; }
    .catalogo-layout { flex-direction: column; }
    .filtros-sidebar { width: 100%; position: relative; top: 0; }
    .desktop-whatsapp { display: none !important; }
}

@media (max-width: 550px) {
    .catalogo-main .grid-autos { grid-template-columns: 1fr !important; }
}

.social-btn.whatsapp { 
    background-color: #25D366; 
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* EFECTO HOVER (Ahora solo se elevan un poco) */
.social-btn:hover {
    transform: translateY(-5px) scale(1.08);
    filter: brightness(1.1); /* Brilla un poquito más al tocarlo */
}

/* Texto de Copyright */
.copyright {
    font-size: 13px;
    color: #ffffff;
    border-top: 1px solid #222;
}

/* =========================================
   AUDITORÍA TOTAL DE RESPONSIVIDAD
   (Ajustes para Celulares y Tablets)
========================================= */

@media (max-width: 992px) {
    /* Ajuste para el Buscador (Pasa de horizontal a vertical) */
    .search-main-area {
        flex-direction: column;
        gap: 10px;
    }

    .btn-buscar-dark {
        width: 100%;
        height: 50px;
    }

    /* Ajuste para la sección de Indecisos */
    .caja-indecisos {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .indecisos-izq, .indecisos-der {
        width: 100%;
        justify-content: center;
    }

    /* El catálogo en tablets se ve mejor con 2 columnas */
    .catalogo-main .grid-autos {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    /* Cabecera y Menú Móvil */
    header {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block !important; /* Aparece la hamburguesa */
    }

    #nav-menu {
        display: none; /* Se oculta por defecto */
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #1a1a1a;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        border-top: 1px solid #333;
    }

    #nav-menu.activo {
        display: flex; /* Se muestra cuando tocas el menú */
    }

    header nav ul {
        flex-direction: column;
        gap: 20px;
    }

    /* Hero (Banner Principal) */
    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    /* Secciones de Contacto */
    .contacto-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (max-width: 550px) {
    /* El catálogo en celulares: 1 solo carro por fila para que se vea grande */
    .catalogo-main .grid-autos {
        grid-template-columns: 1fr !important;
    }

    .img-veinsa-container {
        height: 200px !important; /* Foto más grande en el cel */
    }

    .precio-ahora {
        font-size: 24px;
    }
}

/* =========================================
   REDISEÑO DE BÚSQUEDA PROFESIONAL
========================================= */
.busqueda-degradado {
    background: linear-gradient(176deg, #da2128 0%, #1a1a1a  100%); /* Degradado inverso más moderno */
    padding: 60px 5%;
    text-align: center;
}

.titulo-busqueda {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-wrapper {
    background: rgba(255, 255, 255, 0.1); /* Efecto cristal */
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-main-inputs {
    flex: 1;
    display: flex;
    gap: 10px;
}

.input-with-icon {
    position: relative;
    flex: 1.5;
}

.input-with-icon .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.input-premium, .select-premium {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    background: white;
}

.select-premium {
    padding-left: 15px; /* Los selects no necesitan tanto espacio a la izquierda */
    flex: 1;
    cursor: pointer;
    font-weight: 600;
}

.select-group {
    display: flex;
    gap: 10px;
    flex: 1.5;
}

/* Botón Buscar Moderno */
.btn-search-premium {
    background-color: #000;
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search-premium:hover {
    background-color: #333;
    transform: scale(1.02);
}

/* Enlace "Ver todos" sutil */
.search-footer {
    margin-top: 20px;
}

.btn-ver-todos-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s;
}

.btn-ver-todos-link:hover {
    color: white;
}

/* =========================================
   AJUSTE CENTRADO MÓVIL (CATÁLOGO)
========================================= */
@media (max-width: 768px) {

    /* Ajuste del buscador en móvil */
    .search-wrapper {
        flex-direction: column;
        background: none;
        border: none;
        padding: 0;
    }

    .search-main-inputs {
        flex-direction: column;
    }

    .select-group {
        flex-direction: column;
    }

    .btn-search-premium {
        padding: 15px;
        width: 100%;
    }
}

/* =========================================
   REPARACIÓN DEFINITIVA: CENTRADO MÓVIL
========================================= */
@media (max-width: 768px) {
    /* 1. Forzamos que el contenedor ocupe todo el ancho */
    .catalogo-layout {
        display: block !important; /* Quitamos el flex para que no haya empujes laterales */
        width: 100% !important;
        padding: 0 10px !important;
    }

    .catalogo-main {
        width: 100% !important;
    }

    /* 2. El grid se convierte en una columna central */
    .grid-autos {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centra los hijos horizontalmente */
        justify-content: center !important;
        gap: 25px !important;
        padding: 20px 0 !important;
        width: 100% !important;
    }

    /* 3. La tarjeta se auto-centra y ocupa el ancho ideal */
    .tarjeta-veinsa {
        width: 100% !important;
        max-width: 340px !important; /* Tamaño perfecto para que no se vea gigante */
        margin: 0 auto !important; /* OBLIGA AL CENTRADO */
        display: block !important;
    }

    /* Ajuste de la foto para que no se vea cortada */
    .img-veinsa-container {
        height: 220px !important; 
    }

    /* Centramos también el texto de "Mostrando X de X" */
    .catalogo-top-bar {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 10px auto 20px !important;
    }
}

/* =========================================
   REPARACIÓN: MENÚ PEGO AL HEADER
========================================= */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap; /* Permite que el menú baje sin empujar el logo hacia afuera */
        padding-bottom: 10px; /* Un pequeño ajuste para que el logo no quede asfixiado */
    }

    #nav-menu {
        display: none; /* Se mantiene oculto hasta que hagas clic */
        width: 100%;
        background-color: #1a1a1a; /* El mismo color exacto de tu header */
        
        /* LA SOLUCIÓN: */
        margin-top: 0 !important;    /* Borramos el hueco de arriba */
        margin-left: -5%;            /* Compensamos el padding del header para que llegue al borde */
        margin-right: -5%;           /* Compensamos el padding del header para que llegue al borde */
        padding: 20px 0;
        
        border-top: 1px solid #333;  /* Una línea muy sutil para separar el menú del logo */
        box-shadow: 0 10px 15px rgba(0,0,0,0.3); /* Sombra hacia abajo para dar profundidad */
    }

    /* Ajuste para que el ancho sea realmente el 100% de la pantalla */
    #nav-menu.activo {
        display: flex;
        width: calc(100% + 10%); /* Sumamos el 5% de cada lado que restamos con los márgenes */
    }
}

/* =========================================
   PÁGINA DETALLE EXACTA (Estilo Referencia)
========================================= */
.pagina-detalle-blanca { background-color: #ffffff; }

.detalle-exacto-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.layout-dos-columnas {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Columna izquierda un poquito más ancha */
    gap: 40px;
}

/* --- COLUMNA IZQUIERDA --- */
.header-auto-exacto {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-back-red {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; 
    background-color: #e53935; color: white; 
    border-radius: 50%; text-decoration: none; margin-top: 5px;
}

.titulos-auto h1 {
    font-size: 26px; color: #2c3e50; font-weight: 800; margin-bottom: 2px; text-transform: uppercase;
}
.titulos-auto p { font-size: 16px; color: #95a5a6; font-weight: 600; text-transform: uppercase; }

.foto-principal-exacta {
    width: 100%; height: 450px; border-radius: 8px; overflow: hidden; margin-bottom: 15px;
}
.foto-principal-exacta img { width: 100%; height: 100%; object-fit: cover; }

.miniaturas-exactas { display: flex; gap: 10px; }
.mini-img-box {
    flex: 1; height: 80px; overflow: hidden; border-radius: 4px; border: 2px solid transparent; cursor: pointer;
}
.mini-img-box.activa { border-color: #e53935; }
.img-thumb { width: 100%; height: 100%; object-fit: cover; }

/* --- COLUMNA DERECHA --- */
.bloque-precio-exacto { margin-bottom: 20px; }

.precio-top {
    display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px;
}
.label-total { font-size: 28px; color: #2c3e50; font-weight: 800; }
.monto-total { font-size: 28px; color: #e53935; font-weight: 800; }

.fila-desglose { display: flex; justify-content: space-between; margin-bottom: 8px; }
.lbl-gris, .val-gris { font-size: 13px; color: #7f8c8d; font-weight: 500; }
.right-align { justify-content: flex-end; margin-top: 15px; }
.lbl-chico { font-size: 11px; color: #333; font-weight: 600; }

.btn-enviar-info-exacto {
    display: block; width: 100%; background-color: #e53935; color: white; text-align: center;
    padding: 14px; border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; margin-bottom: 30px; transition: 0.3s;
}
.btn-enviar-info-exacto:hover { background-color: #c0392b; }

.grid-fichas-exactas { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.ficha-ex {
    background: #ffffff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.ficha-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.icono-rojo { font-size: 16px; filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(5) brightness(0.8); } /* Truco CSS para volver los emojis rojos */
.ficha-titulo { font-size: 14px; font-weight: 700; color: #2c3e50; }
.ficha-valor { font-size: 13px; color: #7f8c8d; padding-left: 24px; text-transform: uppercase; }

/* --- RESPONSIVIDAD DEL DETALLE --- */
@media (max-width: 900px) {
    .layout-dos-columnas { grid-template-columns: 1fr; }
    .foto-principal-exacta { height: 300px; }
}

@media (max-width: 550px) {
    .grid-fichas-exactas { grid-template-columns: 1fr; }
    .mini-img-box { height: 60px; }
    .titulos-auto h1 { font-size: 22px; }
}

/* =========================================
   GALERÍA PREMIUM CON CARRUSEL DE MINIATURAS
========================================= */
.foto-principal-exacta {
    width: 100%; 
    height: 450px; 
    border-radius: 8px; 
    overflow: hidden; 
    margin-bottom: 12px;
    background-color: #f8f9fa;
}

.foto-principal-exacta img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.3s ease-in-out; /* Efecto suave al cambiar foto */
}

/* Contenedor del Carrusel Pequeño */
.carrusel-miniaturas-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* La pista donde corren las fotos */
.miniaturas-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
    -ms-overflow-style: none; /* Oculta scrollbar en IE */
    width: 100%;
    padding: 2px; /* Espacio para que el borde rojo no se corte */
}

.miniaturas-track::-webkit-scrollbar {
    display: none; /* Oculta scrollbar en Chrome/Safari */
}

/* La cajita de cada foto pequeña */
.mini-img-box {
    flex: 0 0 90px; /* IMPORTANTE: Fija el tamaño a 90px, así si hay 20 fotos NO se aplastan */
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5; /* Se ven atenuadas por defecto */
    transition: all 0.3s ease;
}

.mini-img-box:hover {
    opacity: 0.8;
}

/* Cuando la foto está seleccionada */
.mini-img-box.activa {
    border-color: #e53935;
    opacity: 1;
    transform: scale(1.02); /* Crece un poquitito */
}

.img-thumb { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Botones Flechas de las miniaturas */
.btn-miniatura {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-miniatura:hover {
    background: #e53935;
    color: white;
    border-color: #e53935;
    transform: scale(1.1);
}

.prev-mini { left: -15px; } /* Sale un poco por la izquierda */
.next-mini { right: -15px; } /* Sale un poco por la derecha */

/* Ajustes para celular */
@media (max-width: 768px) {
    .foto-principal-exacta { height: 300px; }
    .mini-img-box { flex: 0 0 75px; height: 55px; } /* Un poco más pequeñas en celular */
    .prev-mini { left: -5px; }
    .next-mini { right: -5px; }
}

/* =========================================
   RESPONSIVIDAD TOTAL: PÁGINA DE DETALLE
========================================= */
/* =========================================
   RESPONSIVIDAD TOTAL: PÁGINA DETALLE 100%
========================================= */

/* --- TABLETS Y PANTALLAS MEDIANAS --- */
@media (max-width: 992px) {
    /* Las dos columnas se vuelven 1 sola (una debajo de la otra) */
    .layout-dos-columnas {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* La foto principal no necesita ser tan alta */
    .foto-principal-exacta { 
        height: 400px; 
    }
}

/* --- CELULARES (La magia de UI/UX) --- */
@media (max-width: 768px) {
    /* 1. Contenedor Principal: Aprovechamos más el espacio de la pantalla */
    .detalle-exacto-container {
        margin: 20px auto; 
        padding: 0 15px;
    }

    /* 2. Encabezado (Botón de atrás y Título) */
    .header-auto-exacto {
        gap: 12px;
        margin-bottom: 15px;
    }
    .btn-back-red {
        width: 30px; 
        height: 30px; /* Botón un poquito más pequeño */
        margin-top: 2px;
    }
    .btn-back-red svg {
        width: 10px; /* Ícono proporcional */
    }
    .titulos-auto h1 {
        font-size: 20px; /* Título que no se corta en 3 líneas */
        line-height: 1.2;
    }
    .titulos-auto p {
        font-size: 12px;
        margin-top: 4px;
    }

    /* 3. Galería de Fotos (Carrusel) */
    .foto-principal-exacta {
        height: 260px; /* Altura perfecta para celular */
        margin-bottom: 10px;
    }
    .mini-img-box {
        flex: 0 0 70px; /* Cajas más finas para que quepan más */
        height: 50px;
    }
    .btn-miniatura {
        width: 28px; 
        height: 28px; 
        font-size: 12px;
    }
    .prev-mini { left: -5px; } /* Acercamos las flechas a los bordes */
    .next-mini { right: -5px; }

    /* 4. Bloque de Precio y Totales */
    .bloque-precio-exacto {
        margin-top: 10px;
    }
    .precio-top {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .label-total { font-size: 22px; }
    .monto-total { font-size: 24px; }
    .lbl-gris, .val-gris { font-size: 12px; }
    .lbl-chico { 
        font-size: 10px; 
        text-align: right; 
        display: block; 
        width: 100%;
    }

    /* 5. Botón de Acción Principal (Enviar info) */
    .btn-enviar-info-exacto {
        padding: 15px;
        font-size: 15px;
        margin-bottom: 25px;
    }

    /* 6. Fichas de Especificaciones (Motor, KM, etc) */
    .grid-fichas-exactas {
        grid-template-columns: 1fr; /* Apiladas una sobre otra para lectura perfecta */
        gap: 10px;
    }
    .ficha-ex {
        padding: 12px 15px;
    }
    .ficha-titulo { font-size: 13px; }
    .ficha-valor { font-size: 13px; padding-left: 26px; }

    /* 7. Vehículos Sugeridos (El carrusel de abajo) */
    .seccion-sugeridos {
        margin-top: 40px !important; /* Acercamos la sección */
        padding: 0 !important; /* Quitamos padding excesivo */
    }
    .titulo-carrusel {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        margin-left: 15px; /* Alineamos con el texto general */
    }
    
    /* ¡TRUCO MOBILE!: Ocultamos las flechas de abajo porque en cel la gente DESLIZA con el dedo */
    .seccion-sugeridos .btn-carrusel {
        display: none !important;
    }
    
    /* Hacemos que las tarjetas sugeridas se vean al 85% para invitar a deslizar */
    .carrusel-scroll {
        padding-left: 15px;
        padding-right: 15px;
    }
    .carrusel-scroll .tarjeta-veinsa {
        min-width: 85% !important; 
        max-width: 85% !important;
    }
}

/* --- CELULARES MUY PEQUEÑOS (iPhone SE, etc) --- */
@media (max-width: 400px) {
    .foto-principal-exacta { height: 220px; }
    .titulos-auto h1 { font-size: 18px; }
    .monto-total { font-size: 22px; }
}

/* =========================================
   PARCHE ANTI-DESBORDAMIENTO (IPHONE PRO MAX)
========================================= */
@media (max-width: 768px) {
    /* 1. Obligamos al cuerpo a no salirse de la pantalla */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* 2. El contenedor no puede ser más ancho que la pantalla */
    .detalle-exacto-container {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 20px 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* 3. TRUCO CLAVE: min-width: 0 evita que los elementos estiren el Grid */
    .columna-izq, .columna-der {
        width: 100% !important;
        min-width: 0 !important; 
        max-width: 100% !important;
    }

    /* 4. Protegemos el bloque de precios */
    .bloque-precio-exacto {
        width: 100% !important;
        box-sizing: border-box;
    }

    .precio-top {
        flex-wrap: wrap; /* Por si el precio es muy largo, que baje en vez de desbordar */
    }

    .fila-desglose {
        flex-wrap: wrap; /* Permite que textos largos se acomoden abajo */
        gap: 5px;
    }

    /* 5. Aseguramos que el botón rojo no se salga */
    .btn-enviar-info-exacto {
        width: 100% !important;
        box-sizing: border-box;
    }
}
.btn-back-red {
        width: 32px !important; 
        height: 32px !important;
        min-width: 32px !important; /* Obliga a mantener el ancho */
        min-height: 32px !important; /* Obliga a mantener el alto */
        flex-shrink: 0 !important; /* LA MAGIA: Evita que el texto lo aplaste */
        margin-top: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* =========================================
   SECCIÓN DE EQUIPAMIENTO (EXTRAS)
========================================= */
.equipamiento-wrapper {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.titulo-equipamiento {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-left: 4px solid #e53935;
    padding-left: 10px;
}

/* Cuadrícula Mágica Auto-Ajustable */
.grid-equipamiento {
    display: grid;
    /* Esto crea columnas de mínimo 200px. Si hay más espacio, hace más columnas */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.item-extra {
    display: flex;
    align-items: flex-start; /* Por si el texto es de dos líneas */
    gap: 10px;
    background-color: #f8f9fa; /* Gris muy clarito */
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.item-extra:hover {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.icono-check {
    color: #e53935;
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0; /* Evita que el check se aplaste */
}

/* =========================================
   6 FICHAS PRINCIPALES (SOMBRADO OSCURO Y NOTABLE)
========================================= */
.ficha-premium {
    background-color: #ffffff; /* Sigue siendo blanco inmaculado */
    border-radius: 8px; /* Mantenemos las esquinas redondeadas */
    padding: 10px 15px; /* Mantenemos la altura compacta (menos altas) */
    transition: all 0.2s ease; /* Transición suave para todos los efectos */

    /* === AQUÍ ESTÁ EL CAMBIO MAESTRO PARA EL SOMBRADO === */
    /* Sintaxis: box-shadow: horizontal vertical difuminado extensión color(rgba) */
    
    /* Primero, una sombra base para dar profundidad hacia abajo */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
    /* Segundo, una sombra de "sobrado" más oscura y difusa para los lados */
                0 4px 10px rgba(0, 0, 0, 0.20); 
    
    /* Oscurecemos un poquito el borde sutil para definir aún más la tarjeta */
    border: 1px solid rgba(0, 0, 0, 0.08); 
}

/* Efecto Hover: Al pasar el mouse, la sombra se hace aún más negra y notable */
.ficha-premium:hover {
    transform: translateY(-3px); /* Se eleva un poquito más */
    /* Sombra de hover ultra-notable */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25),
                0 6px 15px rgba(0, 0, 0, 0.30);
}

/* Mantenemos el resto igual */
.ficha-head-p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px; 
}
.icon-red-premium {
    width: 20px;
    height: 20px;
    color: #c63336; 
    flex-shrink: 0;
}
.ficha-titulo-p {
    font-size: 15px;
    font-weight: 800;
    color: #1a2b4e; 
}
.ficha-valor-p {
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d; 
    padding-left: 0; 
}
/* =========================================
   CONTENEDOR: 2 COLUMNAS (3 Y 3) CON ESPACIO
========================================= */
.grid-fichas-premium {
    display: grid;
    /* Esto fuerza exactamente 2 columnas del mismo tamaño */
    grid-template-columns: repeat(2, 1fr); 
    
    /* El primer valor (15px) es el espacio hacia abajo. 
       El segundo valor (25px) es el espacio a los lados (horizontal) */
    gap: 15px 25px; 
    
    margin-bottom: 30px; /* Un poco de aire por debajo antes de la siguiente sección */
}

/* Responsividad: Para que en celulares pequeños no se aplasten y pasen a 1 sola fila hacia abajo */
@media (max-width: 550px) {
    .grid-fichas-premium {
        grid-template-columns: 1fr; /* Pasa a 1 columna en pantallas muy pequeñas */
        gap: 15px; /* Espacio parejo en celular */
    }
}