/* --- 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;
}

/* ======================================================================
   PRESENTACION COMPACTA BERENICE V2
   Mantiene intactos catalogo, filtros, slider, carrito y adaptacion movil.
====================================================================== */
.marca-minimal,
.marca-minimal * {
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}
.marca-minimal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #f6f9fd 0%, #ffffff 47%, #edf4fb 100%);
  border-bottom: 1px solid #d9e3ef;
  padding: 22px 20px 18px;
}
.marca-minimal::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #004080, #d9272e);
  transform: translateX(-50%);
}
.marca-minimal__interior {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}
.marca-minimal__nombre {
  margin: 0;
  line-height: 1;
}
.marca-minimal__logo {
  display: block;
  width: min(610px, 76vw);
  max-height: 118px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform .35s ease, filter .35s ease;
}
.marca-minimal:hover .marca-minimal__logo {
  transform: translateY(-2px) scale(1.006);
  filter: drop-shadow(0 8px 14px rgba(0, 64, 128, .08));
}
.marca-minimal__texto-alterno {
  display: none;
  color: #020616;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: .025em;
}
.marca-minimal p {
  margin: 10px auto 0;
  color: #23405e;
  font-size: clamp(.76rem, 1.35vw, .98rem);
  font-weight: 600;
  letter-spacing: .095em;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .marca-minimal { padding: 17px 14px 15px; }
  .marca-minimal__logo { width: min(560px, 92vw); max-height: 100px; }
  .marca-minimal p { max-width: 620px; letter-spacing: .065em; }
}
@media (max-width: 600px) {
  .marca-minimal { padding: 14px 12px 13px; }
  .marca-minimal__logo { width: 96vw; max-height: 78px; }
  .marca-minimal p {
    margin-top: 7px;
    max-width: 340px;
    font-size: .67rem;
    letter-spacing: .045em;
    line-height: 1.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marca-minimal__logo { transition: none; }
}


/* ================================================================
   SUBLOGO EN IMAGEN + FONDO UNIFICADO #f5f9ff
   Evita cualquier corte visual entre sublogo, slider y catalogo.
================================================================ */
html,
body.fondo-unificado,
body.fondo-unificado main,
body.fondo-unificado #contenido,
body.fondo-unificado #catalogo,
body.fondo-unificado .contenido-principal,
body.fondo-unificado .contenedor-principal,
body.fondo-unificado .main-content,
body.fondo-unificado .productos,
body.fondo-unificado .seccion-productos {
  background-color: #f5f9ff !important;
}

.sublogo-seccion,
.sublogo-seccion * {
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

.sublogo-seccion {
  width: 100%;
  margin: 0;
  padding: 18px 16px 15px;
  background: #f5f9ff !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.sublogo-seccion::before,
.sublogo-seccion::after {
  display: none !important;
  content: none !important;
}

.sublogo-seccion__interior,
.sublogo-seccion > div {
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  text-align: center;
}

.sublogo {
  display: block;
  width: min(650px, 88vw);
  max-height: 108px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.sublogo-seccion p {
  margin: 7px auto 0;
  color: #123b64;
  font-size: clamp(.73rem, 1.05vw, .91rem);
  font-weight: 600;
  letter-spacing: .075em;
  line-height: 1.55;
  text-align: center;
}

/* Quita franjas, bordes o sombras que marcan la separacion inferior. */
.sublogo-seccion + *,
.sublogo-seccion + script + * {
  border-top: 0 !important;
  box-shadow: none !important;
}

/* El area general debajo del encabezado conserva exactamente el mismo tono. */
body.fondo-unificado > section:not(.sublogo-seccion),
body.fondo-unificado > main,
body.fondo-unificado .catalogo-contenedor,
body.fondo-unificado .slider-contenedor,
body.fondo-unificado .slider-principal {
  background-color: #f5f9ff !important;
}

@media (max-width: 700px) {
  .sublogo-seccion {
    padding: 13px 8px 12px;
  }
  .sublogo {
    width: min(560px, 96vw);
    max-height: 82px;
  }
  .sublogo-seccion p {
    max-width: 360px;
    margin-top: 5px;
    font-size: .63rem;
    letter-spacing: .035em;
    line-height: 1.6;
  }
}

@media (max-width: 390px) {
  .sublogo {
    max-height: 68px;
  }
  .sublogo-seccion p {
    max-width: 330px;
    font-size: .59rem;
  }
}


/* ========================================================================
   HEADER CLARO BERENICE + TIPOGRAFIA GLOBAL POPPINS
   Mantiene intactos catalogo, filtros, slider, carrito y responsive actual.
======================================================================== */
:root {
    --berenice-fondo: #f5f9ff;
    --berenice-texto: #071a33;
    --berenice-azul: #004080;
    --berenice-linea: #d8e2ee;
}

html,
body,
button,
input,
select,
textarea,
option {
    font-family: 'Poppins', Arial, sans-serif !important;
}

body,
body.fondo-unificado {
    background: var(--berenice-fondo) !important;
}

.header-profesional {
    background: var(--berenice-fondo) !important;
    color: var(--berenice-texto) !important;
    border-bottom: 1px solid var(--berenice-linea) !important;
    box-shadow: 0 2px 10px rgba(7, 26, 51, 0.055) !important;
}

.header-container {
    min-height: 74px;
    background: transparent !important;
}

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

.header-profesional .logo {
    display: none !important;
}

.menu-escritorio a,
.nav-link {
    color: var(--berenice-texto) !important;
}

.menu-escritorio a:hover,
.nav-link:hover,
.redes-header a:hover,
.redes-mobile a:hover {
    color: var(--berenice-azul) !important;
}

.menu-escritorio a::after {
    background: linear-gradient(90deg, var(--berenice-azul), #d9272e) !important;
    height: 2px !important;
}

.redes-header a,
.redes-mobile a {
    color: var(--berenice-texto) !important;
}

.buscador-cabecera {
    background: #ffffff !important;
    border: 1px solid #cfdae7 !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 7px rgba(7, 26, 51, .04) !important;
}

.buscador-cabecera input {
    font-family: 'Poppins', Arial, sans-serif !important;
    background: transparent !important;
}

.buscador-cabecera button {
    color: var(--berenice-texto) !important;
}

.carrito-icono {
    color: #ffffff !important;
    background: var(--berenice-azul) !important;
    border: 1px solid var(--berenice-azul) !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(0, 64, 128, .16) !important;
}

.carrito-icono:hover {
    background: #0054a6 !important;
}

.btn-hamburguesa {
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    color: var(--berenice-texto) !important;
    line-height: 1;
    padding: 4px 6px !important;
}

.menu-desplegable-mobile {
    background: var(--berenice-fondo) !important;
    border-color: var(--berenice-linea) !important;
    box-shadow: 0 8px 18px rgba(7, 26, 51, .08) !important;
}

.menu-desplegable-mobile a {
    color: var(--berenice-texto) !important;
    border-bottom-color: var(--berenice-linea) !important;
}

.menu-desplegable-mobile a:hover,
.menu-desplegable-mobile a:active {
    color: var(--berenice-azul) !important;
    background: #eaf2fb !important;
}

.menu-desplegable-mobile .redes-mobile {
    background: var(--berenice-fondo) !important;
    border-top-color: var(--berenice-linea) !important;
}

/* Presentacion y contenido comparten superficie continua; solo el header tiene linea. */
.sublogo-seccion {
    border: 0 !important;
    box-shadow: none !important;
    background: var(--berenice-fondo) !important;
}

@media (min-width: 901px) {
    .header-container {
        justify-content: center !important;
        gap: clamp(22px, 3vw, 44px) !important;
        padding: 11px 28px !important;
    }

    .header-left-group {
        display: none !important;
    }

    .menu-escritorio {
        flex: 0 1 auto !important;
        gap: clamp(20px, 2.2vw, 36px) !important;
    }

    .menu-escritorio a {
        font-size: .86rem !important;
        letter-spacing: .055em !important;
        white-space: nowrap;
    }

    .redes-header {
        margin: 0 !important;
    }

    .buscador-cabecera {
        width: min(250px, 20vw) !important;
    }
}

@media (max-width: 900px) {
    .header-container {
        min-height: 64px;
        padding: 10px 14px !important;
    }

    .btn-hamburguesa {
        display: block !important;
        color: var(--berenice-texto) !important;
        font-size: 27px !important;
    }

    .carrito-icono {
        min-height: 42px;
        padding: 7px 12px !important;
    }

    .buscador-cabecera {
        margin-top: 9px !important;
    }
}


/* ========================================================================
   CARRITO LATERAL Y FOOTER PROFESIONAL BERENICE
   Solo presentacion visual. Conserva toda la logica existente.
======================================================================== */

/* ---------- CARRITO ---------- */
.carrito-oculto {
    width: min(390px, 100vw) !important;
    right: min(-410px, -100vw);
    background: #ffffff !important;
    border-radius: 16px 0 0 16px !important;
    border-left: 1px solid #d8e2ee !important;
    box-shadow: -14px 0 38px rgba(7, 26, 51, .16) !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}

.carrito-header {
    min-height: 72px;
    padding: 18px 20px !important;
    background: #f5f9ff !important;
    color: #071a33 !important;
    border-bottom: 1px solid #d8e2ee !important;
}

.carrito-header h3 {
    margin: 0 !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
}

.btn-cerrar-x {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #cfdae7 !important;
    border-radius: 50%;
    background: #ffffff !important;
    color: #071a33 !important;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s ease;
}

.btn-cerrar-x:hover {
    color: #ffffff !important;
    background: #d9272e !important;
    border-color: #d9272e !important;
    transform: rotate(4deg);
}

.carrito-cuerpo {
    padding: 18px !important;
    background: #fbfdff !important;
}

.item-carrito {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e3eaf2 !important;
    border-bottom: 1px solid #e3eaf2 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 5px 16px rgba(7, 26, 51, .055) !important;
    color: #071a33 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}

.item-carrito .img-mini-carrito,
.img-mini-carrito {
    width: 52px !important;
    height: 52px !important;
    padding: 3px;
    background: #f5f9ff;
    border: 1px solid #e3eaf2;
    border-radius: 9px !important;
}

.item-carrito button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px !important;
    border-radius: 7px !important;
    border: 1px solid #cfdae7 !important;
    background: #f5f9ff !important;
    color: #071a33 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}

.item-carrito button:hover {
    color: #ffffff !important;
    background: #004080 !important;
    border-color: #004080 !important;
}

.carrito-footer {
    padding: 18px 20px 20px !important;
    background: #f5f9ff !important;
    border-top: 1px solid #d8e2ee !important;
}

.carrito-total-linea,
.carrito-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px !important;
    color: #071a33 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: .96rem !important;
    font-weight: 600 !important;
}

.total-precio-destacado {
    color: #004080 !important;
    font-size: 1.24rem !important;
    font-weight: 800 !important;
}

.btn-whatsapp-cart {
    min-height: 52px;
    border-radius: 10px !important;
    box-shadow: 0 7px 16px rgba(37, 211, 102, .18);
    font-family: 'Poppins', Arial, sans-serif !important;
}

.btn-seguir-comprando {
    min-height: 48px;
    margin-top: 10px !important;
    border: 1px solid #004080 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #004080 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}

.btn-seguir-comprando:hover {
    background: #004080 !important;
    color: #ffffff !important;
}

#overlay-carrito {
    background: rgba(7, 26, 51, .48) !important;
    backdrop-filter: blur(2px);
}

/* Evita que WhatsApp flotante tape botones mientras el carrito esta abierto. */
#overlay-carrito.visible ~ #contenedor-footer .btn-whatsapp-flotante {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(.82) !important;
}

/* ---------- FOOTER ---------- */
.sitio-footer {
    position: relative;
    margin-top: 56px !important;
    padding: 34px 24px 20px !important;
    background: #071a33 !important;
    color: #ffffff !important;
    border-top: 3px solid #004080 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
}

.sitio-footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 95px;
    height: 3px;
    transform: translateX(-50%);
    background: #d9272e;
}

.footer-marca {
    max-width: 1000px;
    margin: 0 auto 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-align: center;
}

.footer-marca strong {
    display: block;
    color: #ffffff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.1;
    letter-spacing: .08em;
}

.footer-marca span {
    display: block;
    margin-top: 8px;
    color: #bac8da;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .055em;
}

.footer-contenedor {
    max-width: 1080px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 34px !important;
}

.footer-columna h3 {
    color: #ffffff !important;
    font-size: .86rem !important;
    font-weight: 700 !important;
    letter-spacing: .095em !important;
}

.footer-linea {
    width: 38px !important;
    height: 2px !important;
    margin-bottom: 14px !important;
    background: linear-gradient(90deg, #4da6ff, #d9272e) !important;
}

.footer-columna p,
.footer-enlaces li a {
    color: #bdc9d9 !important;
    font-size: .79rem !important;
    line-height: 1.7 !important;
}

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

.footer-mapa {
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.footer-inferior {
    max-width: 1080px !important;
    margin-top: 28px !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

.metodos-pago {
    margin-bottom: 13px !important;
}

.badge-pago {
    width: 52px !important;
    height: 34px !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #b9c8da !important;
    border-radius: 8px !important;
}

.badge-pago:hover {
    color: #ffffff !important;
    border-color: rgba(255,255,255,.35) !important;
    transform: translateY(-2px);
}

.copyright {
    color: #8192aa !important;
    font-size: .7rem !important;
    line-height: 1.6;
}

.btn-whatsapp-flotante {
    width: 54px !important;
    height: 54px !important;
    right: 22px !important;
    bottom: 22px !important;
    border: 3px solid #ffffff;
}

@media (max-width: 900px) {
    .carrito-oculto {
        width: min(390px, 94vw) !important;
    }

    .footer-contenedor {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .footer-columna {
        text-align: center;
    }

    .footer-linea {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-marca span {
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .carrito-oculto {
        width: 100vw !important;
        border-radius: 0 !important;
        border-left: 0 !important;
    }

    .carrito-header {
        min-height: 64px;
        padding: 14px 16px !important;
    }

    .carrito-cuerpo,
    .carrito-footer {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .sitio-footer {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}


/* AJUSTES FINALES: visibilidad del carrito e iconos Font Awesome. */
.carrito-oculto.carrito-visible {
    right: 0 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    font-weight: 900 !important;
}
/* Ajuste visual exclusivo del producto dentro del carrito. */
.carrito-oculto .item-carrito {
  display:flex !important; flex-direction:column !important; align-items:stretch !important;
  gap:12px !important; width:100% !important; margin:0 0 12px !important;
  padding:14px !important; border:1px solid #dfe8f2 !important;
  border-radius:12px !important; background:#fff !important;
  box-shadow:0 5px 16px rgba(7,26,51,.06) !important;
}
.carrito-oculto .item-carrito > a {
  display:grid !important; grid-template-columns:62px minmax(0,1fr) !important;
  align-items:center !important; gap:13px !important; width:100% !important;
  min-width:0 !important; margin:0 !important; color:#071a33 !important;
  text-decoration:none !important;
}
.carrito-oculto .item-carrito .img-mini-carrito {
  width:62px !important; height:62px !important; padding:5px !important;
  object-fit:contain !important; border:1px solid #e1e9f2 !important;
  border-radius:10px !important; background:#f5f9ff !important;
}
.carrito-oculto .item-carrito > a > div { min-width:0 !important; width:100% !important; }
.carrito-oculto .item-carrito > a > div > div:first-child {
  display:block !important; height:auto !important; min-height:0 !important;
  overflow:visible !important; color:#071a33 !important; font-size:.82rem !important;
  font-weight:700 !important; line-height:1.4 !important; overflow-wrap:anywhere !important;
  word-break:normal !important; white-space:normal !important;
}
.carrito-oculto .item-carrito > a > div > div:last-child {
  margin-top:5px !important; color:#004080 !important; font-size:.94rem !important;
  font-weight:700 !important;
}
.carrito-oculto .item-carrito > div:last-child {
  display:flex !important; align-items:center !important; justify-content:flex-end !important;
  gap:7px !important; width:100% !important; margin:0 !important; padding-top:10px !important;
  border-top:1px solid #edf2f7 !important;
}
.carrito-oculto .item-carrito > div:last-child button {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  width:34px !important; min-width:34px !important; height:34px !important;
  padding:0 !important; border:1px solid #cbd8e6 !important; border-radius:8px !important;
  background:#f5f9ff !important; color:#071a33 !important; font-size:.9rem !important;
}
.carrito-oculto .item-carrito > div:last-child button:first-child {
  margin-right:auto !important; border-color:#f0c6ca !important;
  background:#fff4f5 !important; color:#c51f2c !important; font-size:0 !important;
}
.carrito-oculto .item-carrito > div:last-child button:first-child::before {
  content:"✕" !important; font-size:.88rem !important; font-weight:700 !important;
}
.carrito-oculto .item-carrito > div:last-child span {
  min-width:28px !important; text-align:center !important; color:#071a33 !important; font-weight:700 !important;
}
.carrito-header .btn-cerrar {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  width:36px !important; height:36px !important; padding:0 !important;
  border:1px solid #cfdae7 !important; border-radius:50% !important;
  background:#fff !important; color:#071a33 !important; font-size:0 !important;
}
.carrito-header .btn-cerrar::before { content:"✕"; font-size:.9rem !important; font-weight:700 !important; }
@media(max-width:480px){
 .carrito-oculto .item-carrito{padding:12px !important}
 .carrito-oculto .item-carrito > a{grid-template-columns:56px minmax(0,1fr) !important;gap:11px !important}
 .carrito-oculto .item-carrito .img-mini-carrito{width:56px !important;height:56px !important}
}
/* ========================================================================
   TARJETAS DE PRODUCTO Y CARRUSELES BERENICE
   Mejora exclusivamente visual. No modifica JavaScript ni funcionalidades.
======================================================================== */

/* Poppins en todos los componentes de producto. */
.producto-card,
.producto-card *,
.slider-seccion,
.slider-seccion *,
#productos-relacionados-seccion,
#productos-relacionados-seccion * {
  font-family: "Poppins", Arial, sans-serif !important;
  box-sizing: border-box;
}

/* Base compartida de tarjetas */
.producto-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 16px !important;
  overflow: hidden !important;
  border: 1px solid #dfe8f2 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 5px 18px rgba(7, 26, 51, 0.065) !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease !important;
}

.producto-card:hover {
  transform: translateY(-5px) !important;
  border-color: #b8cee3 !important;
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.13) !important;
}

.producto-card .producto-img {
  display: block !important;
  width: 100% !important;
  height: 205px !important;
  margin: 0 0 14px !important;
  padding: 8px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #ffffff, #f7faff) !important;
  transition: transform .3s ease !important;
}

.producto-card:hover .producto-img {
  transform: scale(1.035) !important;
}

.producto-card .producto-titulo {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  min-height: 4.2em !important;
  height: auto !important;
  margin: 0 0 9px !important;
  overflow: hidden !important;
  color: #071a33 !important;
  font-size: .91rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: -.01em !important;
  text-align: left !important;
  text-transform: none !important;
}

.producto-card .producto-titulo::first-letter {
  text-transform: uppercase;
}

.producto-card .producto-anio,
.producto-card [class*="anio"] {
  color: #6f8094 !important;
  font-size: .71rem !important;
  font-weight: 500 !important;
}

.producto-card .producto-precio {
  margin: auto 0 5px !important;
  color: #004080 !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
}

.producto-card .stock-disponible,
.producto-card [class*="stock"] {
  font-size: .74rem !important;
  font-weight: 600 !important;
}

.producto-card .btn-agregar,
.producto-card .btn-comprar-ya,
.producto-card .btn-ver-detalles,
.slider-card a,
.slider-card button {
  min-height: 42px !important;
  margin-top: 8px !important;
  border-radius: 9px !important;
  font-size: .76rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

/* Titulo de seccion */
.slider-seccion {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 28px auto 34px !important;
  padding: 0 28px !important;
}

.slider-titulo,
#productos-relacionados-seccion h3 {
  color: #071a33 !important;
  font-size: clamp(1.15rem, 2vw, 1.48rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}

/* Carrusel destacado, con espacio real para las flechas */
.slider-controles {
  position: relative !important;
  width: 100% !important;
  padding: 0 48px !important;
}

.slider-wrapper {
  display: flex !important;
  gap: 18px !important;
  width: 100% !important;
  padding: 10px 3px 18px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

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

.slider-card {
  flex: 0 0 calc((100% - 36px) / 3) !important;
  min-width: 250px !important;
  max-width: none !important;
  scroll-snap-align: start !important;
}

.slider-card.producto-card,
.slider-destacados-wrapper .producto-card {
  transform: none !important;
}

.slider-card.producto-card:hover {
  transform: translateY(-5px) !important;
}

.btn-slider {
  position: absolute !important;
  top: 50% !important;
  z-index: 20 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  border: 1px solid #d3dfeb !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #004080 !important;
  box-shadow: 0 7px 18px rgba(7, 26, 51, .14) !important;
  font-size: 1rem !important;
  transition: background .2s ease, color .2s ease, transform .2s ease !important;
}

.btn-slider.izq { left: 1px !important; }
.btn-slider.der { right: 1px !important; }

.btn-slider:hover {
  color: #ffffff !important;
  background: #004080 !important;
  transform: translateY(-50%) scale(1.06) !important;
}

/* Productos relacionados de detalle: cuatro tarjetas equilibradas */
#productos-relacionados-seccion {
  width: 100% !important;
  max-width: 100% !important;
  margin: 46px 0 10px !important;
  padding: 25px 0 4px !important;
  border-top: 1px solid #dbe5ef !important;
}

#productos-relacionados-seccion > div:first-child {
  margin-bottom: 20px !important;
}

#lista-relacionados {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  align-items: stretch !important;
}

#lista-relacionados .producto-card {
  width: 100% !important;
  min-width: 0 !important;
  padding: 14px !important;
}

#lista-relacionados .producto-img {
  height: 165px !important;
}

#lista-relacionados .producto-titulo {
  min-height: 4.2em !important;
  font-size: .78rem !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

#lista-relacionados .producto-precio {
  font-size: 1.12rem !important;
}

/* Tabletas */
@media (max-width: 1100px) {
  .slider-card {
    flex-basis: calc((100% - 18px) / 2) !important;
  }

  #lista-relacionados {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Celulares */
@media (max-width: 700px) {
  .producto-card {
    padding: 11px !important;
    border-radius: 11px !important;
  }

  .grid-productos {
    gap: 11px !important;
    padding: 7px !important;
  }

  .grid-productos .producto-img {
    height: 128px !important;
    padding: 4px !important;
  }

  .producto-card .producto-titulo {
    -webkit-line-clamp: 3 !important;
    min-height: 4.2em !important;
    font-size: .72rem !important;
    line-height: 1.4 !important;
  }

  .producto-card .producto-precio {
    font-size: 1.08rem !important;
  }

  .slider-seccion {
    margin-top: 22px !important;
    padding: 0 10px !important;
  }

  .slider-controles {
    padding: 0 !important;
  }

  .slider-wrapper {
    gap: 12px !important;
    padding: 9px 2px 16px !important;
  }

  .slider-card {
    flex: 0 0 min(78vw, 280px) !important;
    min-width: min(78vw, 280px) !important;
  }

  .slider-card .producto-img {
    height: 160px !important;
  }

  .btn-slider {
    display: none !important;
  }

  #productos-relacionados-seccion {
    margin-top: 34px !important;
    padding-top: 20px !important;
    overflow: hidden;
  }

  #lista-relacionados {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    padding: 7px 2px 16px !important;
    -webkit-overflow-scrolling: touch;
  }

  #lista-relacionados::-webkit-scrollbar {
    display: none !important;
  }

  #lista-relacionados .producto-card {
    flex: 0 0 min(72vw, 250px) !important;
    min-width: min(72vw, 250px) !important;
    scroll-snap-align: start !important;
  }

  #lista-relacionados .producto-img {
    height: 150px !important;
  }

  #lista-relacionados .producto-titulo {
    font-size: .76rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .producto-card,
  .producto-card .producto-img,
  .btn-slider,
  .slider-wrapper {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* POPPINS SOLO PARA EL CONTENIDO DE DETALLE - SIN ALTERAR ICONOS NI DISENO */
#detalle-producto,
#detalle-producto h1,
#detalle-producto h2,
#detalle-producto h3,
#detalle-producto h4,
#detalle-producto p,
#detalle-producto span,
#detalle-producto strong,
#detalle-producto small,
#detalle-producto a,
#detalle-producto button,
#detalle-producto input,
#detalle-producto select,
#detalle-producto textarea,
#productos-relacionados-seccion,
#productos-relacionados-seccion h1,
#productos-relacionados-seccion h2,
#productos-relacionados-seccion h3,
#productos-relacionados-seccion h4,
#productos-relacionados-seccion p,
#productos-relacionados-seccion span,
#productos-relacionados-seccion strong,
#productos-relacionados-seccion small,
#productos-relacionados-seccion a,
#productos-relacionados-seccion button,
#lista-relacionados,
#lista-relacionados h1,
#lista-relacionados h2,
#lista-relacionados h3,
#lista-relacionados h4,
#lista-relacionados p,
#lista-relacionados span,
#lista-relacionados strong,
#lista-relacionados small,
#lista-relacionados a,
#lista-relacionados button {
    font-family: "Poppins", Arial, sans-serif !important;
}


/* TIPOGRAFIA POPPINS GLOBAL - UNICO CAMBIO SOLICITADO */
html,
body,
body *,
button,
input,
select,
textarea,
option {
    font-family: "Poppins", Arial, sans-serif !important;
}

/* Los iconos conservan exclusivamente su fuente técnica. */
.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    font-weight: 900 !important;
}
