/* --- CONFIGURACIÓN GLOBAL --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* --- ENCABEZADO PROFESIONAL Y NAVEGACIÓN --- */
.header-profesional {
    background-color: #020616;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    object-fit: contain;
}

.menu-navegacion {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: flex-end;
    margin-right: 40px;
}

.nav-link {
    color: #e6f0ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #4da6ff;
}

.dropdown { position: relative; display: inline-block; }

.dropbtn {
    background-color: #004080;
    color: white;
    padding: 12px 24px;
    font-size: 1.05rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
    text-transform: uppercase;
}

.dropbtn:hover { background-color: #0059b3; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
    top: 100%;
    right: 0;
    margin-top: 10px;
}

.dropdown-content a {
    color: #001a33;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f4f6f9;
    color: #004080;
}

.dropdown:hover .dropdown-content { display: block; }

.carrito-icono {
    background: #004080;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- CONTENEDOR GENERAL Y FILTROS CATEGORÍAS --- */
.contenedor-general {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.filtros-categorias {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-filtro {
    background: white;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: 0.3s;
}

.btn-filtro.activo, .btn-filtro:hover {
    background: #004080;
    color: white;
    border-color: #004080;
}

/* --- LAYOUT CATÁLOGO Y BUSCADOR --- */
.layout-catalogo-filtro {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.grid-productos {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* --- TARJETAS DE PRODUCTOS --- */
.producto-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.producto-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.producto-titulo {
    font-size: 1rem;
    color: #001a33;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.producto-precio {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.btn-agregar, .btn-comprar-ya {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.btn-agregar {
    background: #e6f0ff;
    color: #004080;
}

.btn-comprar-ya {
    background: #004080;
    color: white;
}

.btn-comprar-ya:hover {
    background: #00264d;
}

/* Optimización para el icono de WhatsApp dentro de Comprar Ahora */
.btn-comprar-ya i {
    font-size: 1.15rem;
    vertical-align: middle;
    display: inline-block;
    margin-right: 7px;
    margin-top: -2px;
}

/* --- BUSCADOR LATERAL (VEHÍCULO) --- */
.sidebar-vehiculo {
    width: 300px;
    background-color: #003366;
    color: white;
    padding: 25px 20px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-vehiculo h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.sidebar-vehiculo select,
.sidebar-vehiculo .input-busqueda {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #004080;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    color: #333;
    box-sizing: border-box;
}

.btn-buscar-vehiculo {
    width: 100%;
    background-color: white;
    color: #003366;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buscar-vehiculo:hover {
    background-color: #e6e6e6;
}

.btn-limpiar-busqueda {
    width: 100%;
    background: transparent;
    border: none;
    color: #b3cce6;
    font-size: 0.9rem;
    margin-bottom: 15px;
    cursor: pointer;
    text-align: left;
}

/* --- CARRITO DE COMPRAS --- */
.carrito-oculto {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    border-radius: 12px 0 0 12px;
}

.carrito-visible {
    right: 0;
}

.carrito-header {
    padding: 20px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #020616;
    color: white;
}

.btn-cerrar-x {
    display: none;
}

.carrito-cuerpo {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* --- ESTILO PERSONALIZADO PARA EL TOTAL A PAGAR --- */
.carrito-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.carrito-total {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 15px;
}

#overlay-carrito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    cursor: pointer;
}

#overlay-carrito.visible {
    opacity: 1;
    visibility: visible;
}

.btn-whatsapp-cart {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.btn-whatsapp-cart:hover {
    background: #128c7e;
}

.btn-cerrar {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- ITEM CARRITO MODIFICADO --- */
.item-carrito {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #334;
}

.item-carrito button {
    background-color: #f4f6f9;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.item-carrito button:hover {
    background-color: #004080;
    color: white;
    border-color: #004080;
}

.item-carrito button:first-child {
    background: #f4f4f4 !important;
    border: 1px solid #ccc !important;
    color: #666 !important;
    font-size: 0 !important;
    padding: 4px 10px !important;
}

.item-carrito button:first-child::before {
    content: "🗑️";
    font-size: 16px;
}

.item-carrito button:first-child:hover {
    background: #ffeded !important;
    color: #cc0000 !important;
    border-color: #cc0000 !important;
}

.img-mini-carrito {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

/* --- BLOQUE DE BANCOS LOCALES PARA EL CARRITO LATERAL --- */
.metodos-pago-locales {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    text-align: center;
}

.titulo-bancos-locales {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bancos-flex {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bancos-flex .badge-pago {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 50px;
    height: 34px;
}

.bancos-flex .badge-pago svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.bancos-flex .badge-pago:hover svg {
    transform: scale(1.1);
}

.bancos-flex .badge-pago.badge-pichincha:hover {
    color: #fcdd04 !important; /* Amarillo Pichincha */
    border-color: #fcdd04;
    background-color: #fffbeb;
}

.bancos-flex .badge-pago.badge-guayaquil:hover {
    color: #00a4e4 !important; /* Cyan Guayaquil */
    border-color: #00a4e4;
    background-color: #f0f9ff;
}

.bancos-flex .badge-pago.badge-produbanco:hover {
    color: #008248 !important; /* Verde Produbanco */
    border-color: #008248;
    background-color: #f0fdf4;
}

/* --- ESTILOS PARA DETALLE.HTML --- */
.detalle-contenedor {
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detalle-img {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.detalle-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detalle-info h1 { 
    margin-bottom: 15px; 
    color: #001a33; 
}

.detalle-info .producto-precio { 
    font-size: 2rem; 
    color: #004080; 
    margin: 15px 0; 
}

/* --- DROPDOWNS DEL BUSCADOR --- */
.dropdown-container { 
    position: relative; 
    width: 100%; 
    margin-bottom: 10px; 
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.dropdown-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.dropdown-option:hover {
    background-color: #004080;
    color: white;
}

/* --- SLIDER DESTACADOS --- */
.slider-seccion {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
}

.slider-titulo {
    color: #001a33;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.slider-controles {
    display: flex;
    align-items: center;
    position: relative;
}

.btn-slider {
    background: #004080;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s;
}

.btn-slider.izq { left: -15px; }
.btn-slider.der { right: -15px; }

.btn-slider:hover { 
    background: #00264d; 
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    width: 100%;
}

.slider-card {
    min-width: 250px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.slider-destacados-wrapper .producto-card {
    transform: scale(0.85); 
}

/* --- LAYOUT SUPERIOR REESTRUCTURADO --- */
.layout-superior {
    display: flex;
    gap: 25px;
    margin: 20px 0 40px 0;
    align-items: stretch;
}

.columna-filtro {
    width: 320px; 
    flex-shrink: 0;
}

.columna-promo {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- CONTENEDOR DEL CARRUSEL DE PROMOCIONES --- */
.promociones-window {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.promociones-slider {
    display: flex;
    gap: 0px;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.promociones-slider .promo-card {
    flex: 0 0 100%; 
    aspect-ratio: 2.1 / 1; 
    background: linear-gradient(135deg, #00264d, #004080);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; 
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    padding: 20px;
}

.promociones-slider .promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 992px) {
    .layout-superior { 
        flex-direction: column; 
    }
    .columna-filtro { 
        width: 100%; 
    }
    .menu-navegacion { 
        display: none; 
    }
    .promociones-slider .promo-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .promociones-slider .promo-card {
        flex: 0 0 100%;
    }
}

.buscador-cabecera {
    display: flex;
    align-items: center;
    background-color: #ffffff; 
    border-radius: 4px;
    padding: 2px 6px;
    width: 250px;
}

.buscador-cabecera input {
    border: none;
    outline: none;
    padding: 6px;
    font-size: 14px;
    width: 100%;
    color: #333333;
}

.buscador-cabecera button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-seguir-comprando {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    text-align: center;
    background-color: transparent;
    border: 2px solid #004080;
    color: #004080;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-seguir-comprando:hover {
    background-color: #004080;
    color: white;
}

.btn-promo-nav {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.btn-promo-nav:hover {
    background: rgba(0, 64, 128, 0.8);
}

/* ==========================================================================
   PIE DE PÁGINA COMPACTO - TIPOGRAFÍA POPPINS Y PASARELAS PERFECTAS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.sitio-footer {
    background-color: #020616; 
    color: #ffffff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 35px 20px 20px 20px;
    margin-top: 40px;
    font-size: 0.82rem;
    border-top: 1px solid #111a36;
}

.footer-contenedor {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.footer-columna h3 {
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    font-weight: 500; 
}

.footer-linea {
    border: none;
    height: 2px;
    background-color: #24356b;
    width: 30px;
    margin: 0 0 15px 0;
}

.footer-columna p {
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #cccccc;
}

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

.footer-enlaces li {
    margin-bottom: 9px;
}

.footer-enlaces li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-enlaces li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-mapa {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #222222;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.footer-mapa iframe {
    display: block;
}

.footer-inferior {
    max-width: 1000px;
    margin: 30px auto 0 auto;
    border-top: 1px solid #111a36;
    padding-top: 18px;
    text-align: center;
}

/* ==========================================================================
   PASARELAS DE PAGO Y LOGOS DE BANCOS INTERNOS
   ========================================================================== */
.metodos-pago {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge-pago {
    background-color: #090e21;
    border: 1px solid #182347;
    color: #a3aed0; 
    width: 64px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: default;
}

.badge-pago i {
    font-size: 1.65rem; 
    display: block;
    line-height: 1;
    transition: color 0.3s ease;
}

.badge-pago:hover {
    background-color: #0e1633;
    border-color: #3b4f8c;
    color: #ffffff; 
}

.icon-tarjeta {
    width: 38px;
    height: 22px;
    display: block;
    transition: all 0.3s ease;
}

.copyright {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #626f9a;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    color: #ffffff !important; 
}

.btn-whatsapp-flotante i {
    font-size: 32px; 
    display: block;
    line-height: 1;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    color: #ffffff !important;
}/* Contenedor de los logos de los bancos */
.bancos-flex {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding: 5px;
}

/* Casilla individual de cada banco */
.banco-item {
    width: 65px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Efecto Hover (Al pasar el mouse) */
.banco-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: #020616; /* Color oscuro de tu marca */
}

/* Ajuste de escala para los vectores SVG */
.logo-banco-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1 !important;
}.tarjeta-nosotros:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
} /*---------------------------------------------------------------*/
/* ==========================================================================
  /* ==========================================================================
   CORRECCIÓN COMPLETA PARA MÓVIL (Alineado con tu header_3.js)
   ========================================================================== */
@media (max-width: 900px) {
    /* 1. Ocultar el menú de escritorio real de tu HTML */
    .menu-escritorio { 
        display: none !important; 
    }

    /* 2. Activar el botón hamburguesa */
    .btn-hamburguesa { 
        font-size: 28px !important; 
        cursor: pointer; 
        color: white; 
        display: block !important; 
    }

    /* 3. Reestructurar el contenedor para que no colapse verticalmente */
    .header-container { 
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        padding: 12px 20px !important; 
        width: 100% !important;
    }

    /* Agrupamos el lado izquierdo de forma nativa */
    .header-left-group { 
        display: flex !important; 
        align-items: center !important; 
        gap: 15px !important; 
    }

    /* Forzar que el carrito se mantenga arriba a la derecha en la misma fila */
    .carrito-icono {
        order: 2 !important;
    }

    /* 4. Enviar la barra de búsqueda a una segunda fila completa abajo */
    .buscador-cabecera { 
        width: 100% !important; 
        margin-top: 12px !important; 
        display: flex !important; 
        order: 3 !important; 
    }

    /* 5. Estilo e interactividad del menú desplegable móvil */
    .menu-desplegable-mobile {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: #0b1129; 
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        width: 100%;
        border-bottom: 0 solid #1e293b;
    }

    .menu-desplegable-mobile.activo {
        max-height: 300px; 
        opacity: 1;
        border-bottom: 2px solid #004080; 
    }

    .menu-desplegable-mobile a {
        display: block;
        padding: 16px 20px;
        color: #e2e8f0; 
        text-decoration: none;
        text-align: center;
        font-size: 1.05rem;
        font-weight: 500;
        border-bottom: 1px solid #1e293b; 
        transition: background 0.3s, color 0.3s;
    }

    .menu-desplegable-mobile a:active, 
    .menu-desplegable-mobile a:hover {
        background: #1e293b;
        color: #ffffff;
    }

    /* ==========================================================
       ¡DISEÑO OPTIMIZADO A 2 COLUMNAS PARA EL CATÁLOGO EN MÓVIL!
       ========================================================== */
    .grid-productos {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important; 
        padding: 10px !important;
        align-items: stretch !important; 
    }

    .producto-card {
        padding: 12px 10px !important; 
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; 
        background: #ffffff !important;
        height: 100% !important; 
        box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    }
    
    .producto-card .producto-img {
        height: 105px !important; 
        margin-bottom: 8px !important;
        object-fit: contain !important;
    }

    .producto-card .producto-titulo {
        font-size: 0.74rem !important; /* Letra un poco más pequeña para que entren más palabras */
        min-height: 42px !important; /* min-height en vez de height fijo para dar flexibilidad si el nombre es largo */
        height: auto !important; 
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        overflow: visible !important; /* Hace visible todo el texto oculto */
        display: block !important; /* Quita el bloqueo que ponía los puntos suspensivos (...) */
    }

    .producto-card .producto-precio {
        font-size: 1.1rem !important; 
        margin: 4px 0 !important;
        font-weight: bold !important;
        color: #333 !important;
    }

    .producto-card .btn-agregar, 
    .producto-card .btn-comprar-ya {
        padding: 8px 4px !important; 
        font-size: 0.75rem !important; 
        margin-top: 5px !important;
        border-radius: 6px !important;
        width: 100% !important;
        white-space: nowrap !important; 
    }

    .producto-card .btn-comprar-ya i {
        font-size: 0.8rem !important;
        margin-right: 4px !important;
    }

    /* Corchetes corregidos para el selector de atributos */
    .producto-card div[style*="display: flex"] {
        gap: 4px !important;
    }

    /* ==========================================
       REESTRUCTURACIÓN COMPACTA DEL SLIDER (MÓVIL)
       ========================================== */
    .slider-wrapper {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
        gap: 12px !important; 
        padding: 10px 5px !important;
    }

    .slider-wrapper::-webkit-scrollbar {
        display: none !important;
    }

    .slider-card {
        min-width: 165px !important;  
        max-width: 175px !important;
        scroll-snap-align: start !important; 
        transition: none !important;
    }

    .slider-destacados-wrapper .producto-card {
        transform: scale(1) !important;
        padding: 10px !important;
        border-radius: 12px !important; 
        border: 2px solid #ff3333 !important; 
        box-shadow: 0 4px 10px rgba(255, 51, 51, 0.1) !important; 
        background: #ffffff !important;
    }

    .slider-card .producto-img {
        height: 110px !important;
        margin-bottom: 8px !important;
        object-fit: contain !important;
    }

    .slider-card .producto-titulo {
        font-size: 0.74rem !important; /* Mismo tamaño compacto */
        min-height: 42px !important;
        height: auto !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
        overflow: visible !important;
        display: block !important;
    }

    .slider-card .producto-precio {
        font-size: 1.1rem !important;
        margin: 5px 0 !important;
    }

    .slider-card .btn-agregar, 
    .slider-card .btn-comprar-ya {
        padding: 8px !important;
        font-size: 0.8rem !important;
        margin-top: 4px !important;
    }
} /* <- AQUÍ SE CIERRA CORRECTAMENTE EL BLOQUE DE CELULAR */


/* ==========================================================================
   DISTRIBUCIÓN Y DISEÑO PREMIUM PARA COMPUTADORA (PC)
   ========================================================================== */
@media (min-width: 901px) {
    .btn-hamburguesa, .menu-desplegable-mobile { 
        display: none !important; 
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important; 
        align-items: center !important;
        gap: 40px !important; 
        padding: 12px 30px !important;
    }

    .header-left-group {
        flex-shrink: 0 !important;
    }

    .menu-escritorio {
        display: flex !important;
        align-items: center !important;
        gap: 35px !important; 
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-escritorio a {
        color: #e6f0ff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        text-transform: uppercase !important; 
        letter-spacing: 0.8px !important;
        font-family: 'Poppins', Arial, sans-serif !important;
        position: relative !important;
        padding: 8px 0 !important;
        transition: color 0.3s ease !important;
    }

    .menu-escritorio a::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #4da6ff; 
        transform-origin: bottom right;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-escritorio a:hover {
        color: #4da6ff !important;
    }

    .menu-escritorio a:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    .buscador-cabecera {
        display: flex !important;
        align-items: center !important;
        max-width: 260px !important; 
        width: 100% !important;
        margin: 0 !important;
    }

    .carrito-icono {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important; 
        font-size: 1.35rem !important;
        flex-shrink: 0 !important; 
        padding: 5px 10px !important;
        cursor: pointer;
    }

    #contador-carrito {
        font-size: 0.85rem !important;
        color: #ffffff !important;            
        font-weight: 700 !important;
        padding: 2px 7px !important;
        min-width: 20px !important;
        text-align: center !important;
    }
} /* <- AQUÍ SE CIERRA CORRECTAMENTE EL BLOQUE DE COMPUTADORA */


/* ==========================================================================
   FILTRADOR COLAPSABLE EN MÓVIL (Seleccione su vehículo)
   ========================================================================== */
@media (max-width: 900px) {
    .sidebar-vehiculo {
        width: 100% !important; 
        padding: 15px 20px !important;
        transition: all 0.3s ease;
    }

    .sidebar-vehiculo h3 {
        cursor: pointer;
        margin-bottom: 0 !important; 
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
    }

    .sidebar-vehiculo h3::after {
        content: "▼";
        font-size: 0.85rem;
        transition: transform 0.3s ease;
        color: #b3cce6;
    }

    .sidebar-vehiculo.activo h3::after {
        transform: rotate(180deg);
    }
    
    .sidebar-vehiculo.activo h3 {
        margin-bottom: 20px !important;
    }

    .sidebar-vehiculo > *:not(h3) {
        display: none !important;
    }

    .sidebar-vehiculo.activo > *:not(h3) {
        display: block !important;
    }/* Reducción de ancho del carrito en móviles para permitir el clic de cierre */
    .carrito-oculto {
        width: 82% !important; /* Ocupa el 82% del ancho, dejando un 18% libre a la izquierda */
        max-width: 330px !important; /* Evita que se vea gigante en pantallas medianas */
    }/* Ajuste de elementos internos del carrito para que no se desborden */
    .item-carrito {
        padding: 8px 10px !important; /* Compacta el margen interno de la tarjeta */
        gap: 6px !important; /* Controla la separación interna */
    }

    .img-mini-carrito {
        width: 42px !important; /* Achica ligeramente la imagen para ganar espacio libre */
        height: 42px !important;
        flex-shrink: 0 !important;
    }

    /* Achica la letra del texto para que el nombre y precio no empujen los botones */
    .item-carrito, 
    .item-carrito div, 
    .item-carrito span {
        font-size: 0.82rem !important; 
        line-height: 1.3 !important;
    }

    /* Reducir y encuadrar perfectamente los botones (Tacho, -, 1, +) */
    .item-carrito button {
        padding: 2px 6px !important; /* Reduce el ancho de los botones para que entren en su caja */
        font-size: 0.75rem !important;
        flex-shrink: 0 !important; /* Rigidez absoluta: evita que se aplasten o deformen */
    }

    /* Ajuste idéntico para el tacho de basura */
    .item-carrito button:first-child {
        padding: 2px 6px !important;
    }
} /* <- CIERRE FINAL DEL FILTRADOR COALPSABLE */
/* Esto le da la orden al navegador de poner el buscador al lado del producto */
.layout-catalogo-filtro {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* El buscador ocupa 300px fijos */
.sidebar-vehiculo {
    flex: 0 0 300px;
}

/* El contenido del producto toma todo el resto del espacio */
#detalle-producto {
    flex: 1;
}

/* En celular, esto hace que se acomode verticalmente */
@media (max-width: 900px) {
    .layout-catalogo-filtro {
        flex-direction: column;
    }
    .sidebar-vehiculo {
        flex: 0 0 100%;
        width: 100%;
    }
}/* ==========================================================================
   MARCA DE AGUA AUTOMÁTICA CON LOGO EN IMAGEN
   ========================================================================== */

/* 1. Preparamos la tarjeta como base */
.producto-card {
    position: relative !important;
}

/* 2. Creamos la capa flotante para tu logotipo */
.producto-card::after {
    content: "" !important; /* Dejamos el texto vacío porque usaremos una imagen */
    position: absolute !important;
    top: 25% !important; /* Lo ubica centrado en la zona de la foto */
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(-20deg) !important; /* Lo inclina un poco para mayor seguridad */
    
    /* TAMAÑO DE TU LOGO: Puedes cambiar estos números si quieres que se vea más grande o chico */
    width: 140px !important; 
    height: 140px !important; 

    /* RUTA DE TU IMAGEN: Reemplaza 'logo.png' por el nombre exacto de tu archivo de logo */
    background-image: url('img/marca-agua.png') !important; 
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    /* TRANSPARENCIA: 0.12 significa 12% de opacidad para que sea un reflejo suave y no estorbe */
    opacity: 0.15 !important; 

    pointer-events: none !important; /* Los clics pasan de largo hacia el producto */
    user-select: none !important; /* Evita que se pueda arrastrar o seleccionar la marca */
    z-index: 5 !important;
}/* ==========================================================================
   MARCA DE AGUA AUTOMÁTICA EN LA PÁGINA DE DETALLE (DETALLE.HTML)
   ========================================================================== */

/* 1. Preparamos el contenedor principal de la página de detalle */
.detalle-contenedor {
    position: relative !important;
}

/* 2. Posición de la marca de agua para la versión de COMPUTADORA */
.detalle-contenedor::after {
    content: "" !important;
    position: absolute !important;
    top: 60% !important;  /* Centrado a la altura de la foto */
    left: 25% !important; /* Se ubica en el lado izquierdo (donde está la foto en PC) */
    transform: translate(-50%, -50%) rotate(-20deg) !important;
    
    /* Un poco más grande aquí ya que la foto de detalle tiene mayor tamaño */
    width: 220px !important;
    height: 220px !important;
    
    /* RUTA DE TU IMAGEN: Recuerda verificar que se llame igual que tu archivo */
    background-image: url('img/marca-agua.png') !important; 
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    
    opacity: 0.39 !important; /* Transparencia suave para no tapar los componentes */
    pointer-events: none !important;
    z-index: 5 !important;
}

/* 3. Ajuste de posición inteligente exclusivo para el CELULAR */
@media (max-width: 769px) {
    .detalle-contenedor::after {
        top: 22% !important;  /* En el celular la foto se mueve hacia arriba */
        left: 50% !important; /* Se centra perfectamente en el ancho de la pantalla móvil */
        width: 180px !important; /* Tamaño cómodo para pantallas de teléfonos */
        height: 180px !important;
    }
}/* ==========================================================================
   OCULTAR OEM VISUALMENTE PERO DEJARLO ACTIVO PARA GOOGLE (SEO)
   ========================================================================== */
.oem-seo {
    position: absolute !important;
    left: -9999px !important; /* Lo saca por completo del campo visual del usuario */
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}
.bloque-principal-derecho {
    flex-grow: 1;              /* Obliga al contenedor a expandirse en todo el espacio sobrante */
    display: flex;
    flex-direction: column;    /* Apila verticalmente: 1. Promos -> 2. Filtros -> 3. Catálogo */
    gap: 25px;                 /* Genera un espacio limpio y equidistante entre componentes */
    min-width: 0;              /* ¡Truco Técnico Vital! Impide que el slider de promociones desborde y ensanche la web en PCs */
}/* --- AJUSTE DE TAMAÑO Y LIMPIEZA DE LA TARJETA DE PROMO --- */
.promo-card {
    width: 100% !important; /* Asegura que ocupe el 100% del contenedor */
    height: 100% !important; /* Ajusta esto si quieres un tamaño específico en px */
    display: block !important;
    border: none !important; /* Elimina cualquier borde */
    outline: none !important; /* Elimina el borde azul de selección */
    box-shadow: none !important; /* Elimina cualquier sombra extraña */
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Forzar que el contenedor no tenga borde */
#promociones-slider {
    outline: none !important;
    border: none !important;
}