/* Configuración General */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --marino: #001a33;
    --naranja: #f37021;
    --amarillo: #ffb800;
    --negro: #0a0e1a;
    --crema: #f7f5f0;
}

.main-header {
    background-color: #ffffff; 
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInHeader 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,26,51,0.04);
}

@keyframes fadeInHeader {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* CAMBIO ESTRATÉGICO: CSS Grid blindado contra desbordamientos */
.container {
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 30px;
    display: grid;
    grid-template-columns: 320px 1fr 320px; /* 3 Columnas rígidas perfectas */
    align-items: center;
}

/* ================================================================
   1. SECCIÓN IZQUIERDA: LOGO Y TEXTO "MENÚ"
   ================================================================ */
.header-left {
    display: flex; 
    align-items: center; 
    gap: 30px; 
    width: 100%;
}

/* Enlace contenedor del logo */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 70px; 
    width: auto; 
    object-fit: contain;
    /* Agrega esto para aumentarla visualmente en su mismo sitio */
    transform: scale(3.5); /* Puedes subir o bajar este valor (ej. 1.3, 1.5) según qué tan grande la quieras */
    transform-origin: left center; /* Asegura que crezca hacia la derecha desde su posición original */
    cursor: pointer;
}

/* ================================================================
   2. BOTÓN DE MENÚ (Hamburguesa)
   ================================================================ */
.menu-container {
    position: relative; 
    display: flex; 
    align-items: center;
    margin-left: 180px; 
}

.menu-hamburguesa {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    white-space: nowrap; 
    cursor: pointer !important;
    color: var(--marino);
    font-weight: 600;
    transition: color 0.2s ease;
}

.menu-hamburguesa i { font-size: 22px; }
.menu-hamburguesa:hover { color: var(--naranja); }

/* ================================================================
   3. CAJA PRINCIPAL DEL MEGA MENÚ
   ================================================================ */
.mega-menu {
    display: none; position: absolute; top: 215%; left: 0; width: auto; margin-top: 10px;
    background-color: #ffffff; border: 1px solid #eee; border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 40px rgba(0,26,51,0.18); z-index: 9999; overflow: hidden;
}
.mega-menu.active { display: block; }
.mega-menu-content { display: flex; }

/* ================================================================
   4. COLUMNA DE CATEGORÍAS (Lado Izquierdo - Gris)
   ================================================================ */
.main-categories {
    width: 220px; 
    background-color: var(--crema); 
    list-style: none; 
    padding: 10px 0; 
    border-right: 1px solid #eee; 
    max-height: 430px;        
    overflow-y: auto;        
}

.main-categories li {
    padding: 15px 20px; 
    font-size: 14px; 
    color: var(--marino); 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    min-height: 50px;
    transition: all 0.25s;
}

.main-categories li a {
    text-decoration: none;
    color: inherit; 
    display: block;
    width: 100%;
}

.main-categories li i {
    margin-left: 10px;
    flex-shrink: 0;
}

.main-categories li:hover, 
.main-categories li.selected {
    background-color: #ffffff; 
    color: var(--naranja); 
    font-weight: 700;
}

.main-categories::-webkit-scrollbar { width: 6px; }
.main-categories::-webkit-scrollbar-track { background: #f1f1f1; }
.main-categories::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.main-categories::-webkit-scrollbar-thumb:hover { background: var(--naranja); }

/* ================================================================
   5. PANEL DE SUBCATEGORÍAS (Lado Derecho - Blanco)
   ================================================================ */
.submenu-panels { 
    display: none; 
    width: 480px; 
    padding: 20px; 
    background-color: #fff; 
    min-height: 430px; 
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05); 
}

.submenu-panels.is-visible { display: block !important; }
.submenu-panel { display: none; }
.submenu-panel.active { display: block !important; }

.submenu-panel h3 {
    margin-bottom: 15px; 
    font-size: 18px; 
    color: var(--marino);
    border-bottom: 2px solid var(--naranja); 
    display: inline-block;
    padding-bottom: 4px;
}

.submenu-panel ul { 
    list-style: none; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}

.submenu-panel ul li a { 
    text-decoration: none; 
    color: #666; 
    font-size: 14px; 
}

.submenu-panel ul li a:hover { color: var(--naranja); }

/* ================================================================
   6. SECCIÓN CENTRAL: BUSCADOR Y LINKS
   ================================================================ */
.header-center {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
}

/* ================================================================
   7. BUSCADOR (Search Bar)
   ================================================================ */
.search-container {
    width: 100%; max-width: 500px; height: 42px; display: flex; align-items: center;
    padding: 0 15px; background-color: #fff; border: 1px solid #ddd; border-radius: 20px;
    box-shadow: 0 1px 6px rgba(32,33,36,0.10); transition: border-color 0.2s ease;
}
.search-container:focus-within { border-color: var(--naranja); }
.search-container input {
    flex: 1; background: transparent; border: none; outline: none; padding: 8px; font-size: 14px; color: #3c4043;
}
/* Esto elimina el contorno naranja por defecto al hacer clic */
.search-container:focus,
.search-container:focus-visible {
    outline: none !important;
    box-shadow: 0 1px 6px rgba(32,33,36,0.10); /* Mantienes tu sombra original */
}

/* También asegúrate de que el input interno no genere un foco extra */
.search-container input:focus {
    outline: none !important;
}
.search-container button {
    background: transparent; border: none; cursor: pointer; font-size: 16px; color: #5f6368; display: flex; align-items: center;
}
.search-container button:hover { color: var(--naranja); }

/* ================================================================
   8. ENLACES DE NAVEGACIÓN (Debajo del Buscador)
   ================================================================ */
.nav-links { margin-top: 10px; display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--marino); font-weight: 600; font-size: 14px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--naranja); }
.nav-links a.active {
    color: var(--naranja) !important;
    border-bottom: 2px solid var(--naranja);
    padding-bottom: 4px;
}

/* ================================================================
   9. SECCIÓN DERECHA: LOGIN
   ================================================================ */
.header-right {
    display: flex; align-items: center; justify-content: flex-end; gap: 35px; width: 100%;
}

.user-login { 
    position: relative; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 10px 15px;
    border-radius: 10px;
    transition: background 0.3s;
    cursor: pointer;
    min-width: 180px; 
}

.user-login:hover { background-color: transparent !important; }
.user-login i { font-size: 32px; color: var(--marino); }

.user-text { 
    display: flex; flex-direction: row; align-items: center; gap: 5px; font-size: 16px; color: #555;
}
.user-text .label { font-size: 15px; }
.user-text .action { font-weight: 700; color: var(--marino); font-size: 16px; white-space: nowrap; }

/* --- CUADRO DESPLEGABLE (Dropdown Usuario) --- */
.user-dropdown {
    display: none; 
    position: absolute; 
    top: calc(100% + 8px);
    left: 50%; 
    transform: translateX(-50%); 
    width: 220px; 
    padding: 12px;
    background-color: #ffffff; 
    border: 1px solid #ddd; 
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(0,26,51,0.16); 
    z-index: 10000; 
    cursor: default;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent; 
    border-right: 12px solid transparent; 
    border-bottom: 10px solid #ffffff;
    z-index: 10002;
}

.user-dropdown::after {
    content: '';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #ddd;
    z-index: 10001;
}

.user-dropdown.active { display: block; }

.dropdown-content hr { display: none !important; }

.dropdown-content .btn-primary {
    display: block; width: 100%; background-color: var(--naranja); color: white; text-align: center;
    padding: 11px; text-decoration: none; border-radius: 6px; font-weight: 700; margin-bottom: 10px; border: none; cursor: pointer;
    transition: background-color 0.2s ease;
}
.dropdown-content .btn-primary:hover { background-color: var(--marino); }

.dropdown-content p {
    font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; margin-bottom: 10px;
}
.dropdown-content p a { color: var(--marino); font-weight: bold; text-decoration: underline; }
.dropdown-content ul { list-style: none; padding: 0; margin: 0; }

.dropdown-content ul li a { 
    text-decoration: none; 
    color: #333; 
    font-size: 14px; 
    display: flex; 
    align-items: center; 
    padding: 10px 0;
    border: none !important;
    background: none !important; 
    transition: color 0.2s ease;
}
.dropdown-content ul li a:hover { color: var(--naranja); }
.dropdown-content ul li hr { display: none !important; }

.dropdown-content ul li a i, .user-dropdown ul li a i, .user-dropdown i {
    font-size: 25px; vertical-align: middle; margin-right: 12px; width: 24px; text-align: center;
}

/* ================================================================
   10. BOTÓN Y CONTADOR NOTIFICADOR DEL CARRITO
   ================================================================ */
.vale-btn-carrito {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    box-shadow: none !important;
}

.vale-btn-carrito i, 
.cart-icon { 
    font-size: 28px; 
    color: var(--marino); 
    transition: transform 0.2s, color 0.2s; 
}

.vale-btn-carrito:hover i,
.vale-btn-carrito:hover .cart-icon { 
    transform: scale(1.1); 
    color: var(--naranja); 
}

.cart-counter {
    position: absolute;
    top: -6px; right: -8px;
    background-color: var(--naranja);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    z-index: 2;
}

input:focus, 
button:focus, 
select:focus, 
textarea:focus {
    outline: none !important;
}

/* ================================================================
   11. PIE DE PÁGINA PRINCIPAL (Main Footer)
   ================================================================ */
.main-footer { background-color: #ffffff; color: var(--marino); padding-top: 50px; margin-top: 30px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: flex-start; padding: 0 40px 30px 40px; flex-wrap: wrap; gap: 20px; }
.footer-column { flex: 1; min-width: 180px; margin-bottom: 15px; }
.footer-column h3 { color: var(--marino); font-size: 17px; margin-bottom: 22px; font-weight: 800; position: relative; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #444; text-decoration: none; font-size: 14px; transition: color 0.25s ease; }
.footer-column ul li a:hover { color: var(--naranja); }

.footer-column:nth-child(3) ul {
    max-height: 220px;
    overflow-y: auto;
    max-width: 210px;
    padding-right: 12px;
    margin-right: 40px;
}
.footer-column:nth-child(3) ul::-webkit-scrollbar { width: 5px; }
.footer-column:nth-child(3) ul::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.footer-column:nth-child(3) ul::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.footer-column:nth-child(3) ul::-webkit-scrollbar-thumb:hover { background: var(--naranja); }

.footer-logo { height: 220px; margin-bottom: 5px; margin-top: -20px; }
.footer-column:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 20px;
    margin-right: 60px;
    margin-left: 40px;
    justify-content: flex-start;
}
.footer-description { color: #555; font-size: 14px; line-height: 1.6; max-width: 280px; margin-top: -70px;}
.footer-column:not(:first-child) { margin-left: 0px; }

.social-icons { display: flex; gap: 20px; } /* Un poco más de espacio si quitamos el círculo */

.social-icons a {
    color: var(--marino);
    font-size: 24px; /* Aumentamos un poco el tamaño al no tener contenedor */
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none; 
    
    /* Sombra proyectada directamente al icono */
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.2));
}

.social-icons a:hover { 
    color: var(--naranja); /* Cambia el color del icono al pasar el mouse */
    transform: translateY(-3px);
    /* Sombra más intensa al hacer hover */
    filter: drop-shadow(0 6px 5px rgba(243, 112, 33, 0.4));
}
.footer-copyright { background-color: var(--marino); padding: 18px 0; text-align: center; }
.footer-copyright p { color: #ffffff; font-size: 13px; margin: 0; opacity: 0.85; }

.footer-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* =================================================================
   BOTÓN: LIBRO DE RECLAMACIONES (FINAL)
   ================================================================= */
.libro-reclamaciones-custom {
    /* CAMBIA ESTOS COLORES A TU GUSTO */
    --color-fondo: #0f172a;  /* Color del botón */
    --color-hover: #1e293b;  /* Color al pasar el mouse */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-fondo);
    color: #ffffff;
    text-decoration: none;
    
    /* Centrado */
    margin: 20px auto; /* El 'auto' lo centra horizontalmente */
    /* Por esto (ajusta los píxeles a tu gusto): */
    margin-left: 7px; /* Entre más bajo el número, más a la izquierda */
    margin-top: 20px;
    
    padding: 12px 10px; 
    width: 140px; 
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.libro-reclamaciones-custom:hover {
    transform: translateY(-3px);
    background-color: var(--color-hover);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
/* Contenedor del libro - Más pequeño */
.libro-reclamaciones-custom .libro-icon-container {
    width: 45px; 
    height: 30px;
    background-image: url('../img/icons/libro.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 6px; /* Menos espacio entre libro y texto */
    filter: brightness(0) invert(1); 
}

/* Título */
.libro-reclamaciones-custom .libro-title {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
    /* Evita que el texto sea demasiado ancho */
    max-width: 120px;
}

/* ================================================================
   12. MODAL DE LOGIN (Caja Flotante)
   ================================================================ */
.login-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,10,20,0.65); z-index: 99999; justify-content: center; align-items: center;
}
.login-modal-overlay.active { display: flex; }
.login-modal-box {
    background-color: #ffffff; padding: 40px; border-radius: 12px; width: 100%; max-width: 420px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.35); position: relative; text-align: center; animation: aparecerModal 0.3s ease-out; 
}

@keyframes aparecerModal {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.close-modal-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; font-weight: bold; transition: color 0.25s; }
.close-modal-btn:hover { color: var(--naranja); }
.login-modal-box h2 { margin-bottom: 25px; font-size: 23px; font-weight: 800; color: var(--marino); }

.modal-form-group { margin-bottom: 20px; text-align: left; }
.modal-form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: #555555; font-weight: 600; }

.password-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.password-label-row label { margin-bottom: 0; }

.forgot-password-link { font-size: 13px; color: var(--naranja); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.forgot-password-link:hover { color: var(--marino); text-decoration: underline; }

.modal-form-group input { width: 100%; padding: 12px; border: 1px solid #cccccc; border-radius: 6px; font-size: 14px; box-sizing: border-box; font-family: 'Montserrat', sans-serif; transition: border-color 0.2s ease; }
.modal-form-group input:focus { border-color: var(--naranja); outline: none; }

.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 40px; }
.password-wrapper i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #777777; font-size: 16px; transition: color 0.2s; }
.password-wrapper i:hover { color: var(--naranja); }

.modal-btn-submit { width: 100%; padding: 14px; background-color: var(--naranja); color: #ffffff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; font-weight: 700; margin-top: 10px; transition: background-color 0.2s ease; }
.modal-btn-submit:hover { background-color: var(--marino); }

.modal-register-text { margin-top: 25px; font-size: 14px; color: #666666; }
.modal-register-text a { color: var(--naranja); text-decoration: none; font-weight: 700; }
.modal-register-text a:hover { text-decoration: underline; }

#user-dropdown #menu-invitado { display: block; }
#user-dropdown #menu-usuario { display: none; }
#user-dropdown.is-logged #menu-invitado { display: none; }
#user-dropdown.is-logged #menu-usuario { display: block; }

.remember-me-container {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 0 22px 0; text-align: left; position: relative; 
}
.remember-me-container label {
    font-size: 14px; color: #4a4a4a; cursor: pointer; user-select: none;
    display: flex; align-items: center; gap: 10px; position: relative; 
}
.remember-me-container input[type="checkbox"] {
    position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0;
}
.remember-me-container label::before {
    content: ""; display: inline-block; width: 16px; height: 16px;
    border: 1px solid #ababab; border-radius: 3px; background-color: #fff;
    box-sizing: border-box; transition: border-color 0.2s ease; flex-shrink: 0; position: relative; 
}
.remember-me-container label:hover::before { border-color: var(--naranja); }
.remember-me-container label::after {
    content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px;
    border: solid var(--naranja); border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0); transform-origin: center; transition: transform 0.1s ease;
}
.remember-me-container input[type="checkbox"]:checked + label::before {
    background-color: #fff; border-color: var(--naranja); 
}
.remember-me-container input[type="checkbox"]:checked + label::after {
    transform: rotate(45deg) scale(1);
}

/* =================================================================
   13. PANEL FLOTANTE DEL CARRITO
   ================================================================= */
.cart-icon { position: relative; cursor: pointer; }
.cart-counter {
    position: absolute; top: -8px; right: -10px; background-color: var(--naranja); color: #fff;
    font-size: 11px; font-weight: bold; border-radius: 50%; padding: 2px 6px; min-width: 15px; text-align: center;
}

.cart-dropdown-panel {
    position: fixed; top: 0; right: -360px; width: 340px; height: 100vh;
    background-color: #fff; box-shadow: -6px 0 22px rgba(0,0,0,0.18); z-index: 2000;
    display: flex; flex-direction: column; transition: right 0.3s ease-in-out;
}
.cart-dropdown-panel.active { right: 0; }

.cart-panel-header {
    padding: 20px; background-color: var(--crema); border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.cart-panel-header h3 { margin: 0; font-size: 18px; color: var(--marino); }
.cart-panel-close { font-size: 28px; cursor: pointer; color: #aaa; line-height: 1; }
.cart-panel-close:hover { color: var(--marino); }

.cart-panel-body { flex: 1; padding: 20px; overflow-y: auto; }

.cart-item-row {
    display: flex; align-items: center; gap: 12px; padding-bottom: 15px;
    margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; position: relative;
}
.cart-item-img img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.cart-item-details { flex: 1; }
.cart-item-title { margin: 0 0 4px 0; font-size: 14px; color: var(--marino); font-weight: 600; line-height: 1.2; }
.cart-item-price { margin: 0 0 6px 0; color: var(--marino); font-weight: bold; font-size: 14px; }

.cart-item-qty-control { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 6px; width: max-content; }
.qty-btn-minus, .qty-btn-plus { background: var(--crema); border: none; padding: 4px 10px; cursor: pointer; font-weight: bold; }

.qty-input-inline {
    width: 35px; text-align: center; border: none; background: transparent; font-size: 13px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input-inline::-webkit-outer-spin-button,
.qty-input-inline::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-remove { background: none; border: none; color: #999; cursor: pointer; font-size: 16px; padding: 5px; transition: color 0.2s; }
.cart-item-remove:hover { color: #ff3b30; }

.cart-empty-message { text-align: center; color: #aaa; margin-top: 40px; }
.cart-empty-message i { font-size: 40px; margin-bottom: 10px; }

.cart-panel-footer { padding: 20px; background-color: var(--crema); border-top: 1px solid #eee; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 15px; color: var(--marino); }
.cart-total-row strong { font-size: 18px; color: var(--marino); }

.cart-panel-actions { display: flex; flex-direction: column; gap: 10px; }
.cart-panel-actions button { width: 100%; padding: 13px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; font-size: 14px; transition: all 0.25s ease; }
.btn-view-cart { background-color: #fff; color: var(--marino); border: 1px solid #ddd !important; }
.btn-view-cart:hover { background-color: var(--crema); }
.btn-view { background-color: var(--marino); color: #fff; }
.btn-view:hover { background-color: var(--naranja); }
.btn-checkout { background-color: var(--naranja); color: #fff; }
.btn-checkout:hover { background-color: var(--marino); }

#menu-usuario { display: none; }

/*ESTILO DE BOTONES DE REDES SOCIALES*/
.separator { font-weight: 700; font-size: 15px; color: #333; margin-top: 20px; }
.btn-social {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 12px; 
    width: 100%;
    padding: 11px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.15s ease;
    position: relative;
}
.btn-social:hover { border-color: var(--naranja); transform: translateY(-1px); }
.icon-circle {
    background-color: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* =================================================================
   14. MENÚ HAMBURGUESA MÓVIL (botón visible solo en pantallas chicas)
   ================================================================= */
@media (max-width: 900px) {
    /* 1. Contenedor principal móvil */
    .mega-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background-color: #ffffff;
        transition: left 0.3s ease-in-out;
        z-index: 99999;
        overflow: hidden;
    }

    .mega-menu.active {
        left: 0;
        display: block;
    }

    /* 2. Contenedor interno de columnas */
    .mega-menu-content {
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* 3. Columna izquierda: Categorías (Ocupa el 100% por defecto) */
    .main-categories {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        border-right: none;
        overflow-y: auto;
        flex-shrink: 0;
        transition: width 0.3s ease;
    }

    /* 4. Columna derecha: El panel de subcategorías (Oculto sin romper el script) */
    .submenu-panels {
        width: 0 !important;
        height: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
        background-color: #ffffff;
        overflow-y: auto;
        box-shadow: none;
        flex-shrink: 0;
        display: block !important; /* Importante para que el JS no falle al inyectar contenido */
        visibility: hidden;        /* Invisible para que no se vea el cuadro blanco */
        transition: width 0.3s ease, padding 0.3s ease;
    }

    /* 5. CUANDO SE SELECCIONA UNA CATEGORÍA: Se divide la pantalla en dos (50% y 50%) */
    .mega-menu.submenu-active .main-categories,
    .submenu-panels.is-visible ~ .main-categories,
    .submenu-panels.active ~ .main-categories,
    .mega-menu-content:has(.submenu-panels.is-visible) .main-categories,
    .mega-menu-content:has(.submenu-panel.active) .main-categories {
        width: 50% !important;
        border-right: 1px solid #eee !important;
    }

    .mega-menu.submenu-active .submenu-panels,
    .submenu-panels.is-visible,
    .submenu-panels.active,
    .mega-menu-content:has(.submenu-panel.active) .submenu-panels {
        width: 50% !important;
        padding: 15px 10px !important;
        visibility: visible !important;
    }

    /* Aseguramos que el panel individual dentro de la columna se muestre bien */
    .submenu-panel {
        display: none !important;
    }

    .submenu-panel.active {
        display: block !important;
    }
    
    .submenu-panel ul {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
}
/* Ocultar los signos de más (+) en la versión de computadora (web) */
@media (min-width: 601px) {
    .footer-toggle-icon {
        display: none !important;
    }
}

/* =================================================================
   15. BUSCADOR — RESULTADOS DESPLEGABLES PROFESIONAL
   ================================================================= */

/* El contenedor necesita position:relative para anclar el dropdown */
.search-container {
    position: relative;
}

/* Oculto/visible */
.resultados-ocultos { display: none !important; }
.resultados-visibles { display: block !important; }

#resultados-busqueda {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 340px;
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,26,51,0.16);
    z-index: 99999;
    overflow: hidden;
    max-height: 440px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dde3eb transparent;
}
#resultados-busqueda::-webkit-scrollbar { width: 5px; }
#resultados-busqueda::-webkit-scrollbar-thumb { background: #dde3eb; border-radius: 4px; }

/* Item individual */
.resultado-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f3f7;
}
.resultado-item:last-of-type { border-bottom: none; }
.resultado-item:hover,
.resultado-item.resultado-activo { background: #fff8f4; }

/* Imagen */
.resultado-img {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    background: #f7f5f0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.resultado-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Texto */
.resultado-info {
    flex: 1;
    display: flex; flex-direction: column;
    gap: 3px; min-width: 0;
}
.resultado-nombre {
    font-size: 13px; font-weight: 600;
    color: #001a33;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resultado-nombre mark {
    background: transparent;
    color: #f37021;
    font-weight: 700;
}
.resultado-meta {
    font-size: 11px; color: #94a3b8; font-weight: 400;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Precio */
.resultado-precio {
    font-size: 13px; font-weight: 700;
    color: #001a33; flex-shrink: 0; white-space: nowrap;
}

/* Sin resultados */
.resultado-vacio {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 16px; color: #94a3b8; font-size: 13px;
}
.resultado-vacio i { color: #cbd5e1; font-size: 16px; }
.resultado-vacio strong { color: #475569; }

/* Ver todos */
.resultado-ver-todos {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: #f7f5f0;
    color: #f37021;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid #eef1f5;
}
.resultado-ver-todos:hover { background: #fff0e8; }
.resultado-ver-todos i { font-size: 12px; }
.resultado-ver-todos strong { color: #001a33; }

@media (max-width: 600px) {
    #resultados-busqueda { min-width: 100%; left: 0; }
}

/* =================================================================
   16. RESPONSIVE — HEADER
   ================================================================= */

/* -------------------- 900px: Diseño móvil ajustado -------------------- */
@media (max-width: 900px) {
    /* Estructura general del header en móvil */
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 12px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 1. FILA SUPERIOR: Hamburguesa, Logo, Sesión y Carrito en una sola línea visible */
    .header-top, .header-main-row, .container > div:first-child {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-left { 
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Enlace contenedor del logo en móvil */
    .logo-link {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

    .header-right { 
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Ocultar cualquier texto junto a la hamburguesa (como la palabra "Menú") */
    .menu-text, .hamburger-text, span.menu-label {
        display: none !important;
    }

    /* Tamaño controlado del logo para que no se coman espacio */
    .logo { 
        height: 60px !important; /* Altura mayor */
        width: auto !important;
        max-width: 180px !important; /* Ancho máximo ampliado */
        object-fit: contain !important;
        position: relative;
        top: 20px;
    }

    /* 2. BUSCADOR CENTRAL: Centrado y ocupando buen ancho */
    .header-center {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 2;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
    }

    /* 3. PESTAÑAS (NAV-LINKS): Centradas por completo */
    .nav-links-container, .nav-container {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 3;
    }

    .nav-links { 
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center; /* Centra las pestañas en el medio */
        align-items: center;
        gap: 14px; 
        width: 100%;
        overflow-x: auto; /* Por si en pantallas muy pequeñas no entran todas */
        white-space: nowrap;
        padding: 4px 0;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Oculta la barra de desplazamiento estética */
    }
    
    .nav-links a {
        font-size: 13px;
        text-align: center;
    }

    /* Ajustes adicionales de modales y menús laterales */
    .mega-menu {
        position: fixed;
        top: 0; 
        left: -320px;
        width: 300px;
        height: 100vh;
        margin-top: 0;
        border-radius: 0;
        transition: left 0.3s ease;
        z-index: 10600;
        overflow-y: auto;
    }
    .mega-menu.active { left: 0; }
    .mega-menu-content { flex-direction: column; }
    .main-categories { width: 100%; max-height: none; border-right: none; }
    .submenu-panels { width: 100%; min-height: auto; }

    .user-text { display: none; } 
    .user-login { min-width: auto; padding: 4px; gap: 0; }

    .user-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        bottom: auto;
        transform: none;
        width: 240px;
        max-width: calc(100vw - 32px);
        border-radius: 12px;
    }

    .login-modal-box { padding: 28px 22px; max-width: 92%; }
    .cart-dropdown-panel { width: 88%; right: -100%; }
}
/* =================================================================
   16. RESPONSIVE — FOOTER
   ================================================================= */

@media (max-width: 600px) {
    .main-header { padding: 10px 0; }
    .logo { height: 34px; }
    .search-container { height: 38px; }
    .nav-links a { font-size: 13px; }

    .vale-btn-carrito i, .cart-icon { font-size: 24px; }
    .user-login i { font-size: 26px; }

    /* Ocultar la foto y la descripción en móvil */
    .footer-logo-column {
        display: none !important;
    }

    /* Estructura del footer móvil con espacio compacto y uniforme */
    .footer-container {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 0 20px 20px;
        gap: 0;
    }
    
    .footer-column { 
        min-width: 100%; 
        margin-bottom: 0; 
        padding: 8px 0; /* Espacio vertical compacto y uniforme entre Empresa, Productos, Ayuda y Síguenos */
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Títulos desplegables con su signo + naranja */
    .footer-title-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        width: 100%;
        margin: 0;
        font-size: 16px;
    }

    .footer-toggle-icon {
        color: var(--naranja);
        font-size: 20px;
        font-weight: bold;
        transition: transform 0.3s ease;
    }

    /* Ocultar submenús por defecto de forma estricta para que no dejen espacio en blanco */
    .footer-column ul,
    .footer-submenu {
        display: none !important; /* Oculta por completo el elemento sin reservar espacio */
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: left;
    }

    .footer-column ul li,
    .footer-submenu li {
        margin-top: 6px;
    }

    /* Cuando se presiona y se activa la sección, se muestra de inmediato */
    .footer-column.active ul,
    .footer-column.active .footer-submenu {
        display: block !important; /* Muestra las categorías exactamente donde deben ir */
        padding-top: 8px;
    }

    .footer-column.active .footer-toggle-icon {
        transform: rotate(45deg);
    }

    .footer-copyright p {
        font-size: 10px; /* Tamaño pequeño para que entre holgado en una sola línea */
        white-space: nowrap; /* Impide que el texto se baje a la siguiente línea */
        padding: 0 5px; /* Un pequeño margen a los lados para que no pegue con los bordes */
    }

    .siguenos-content-mobile {
        display: flex;
        flex-direction: row; /* Coloca los elementos lado a lado en una sola línea */
        align-items: center;
        justify-content: space-between; /* Los distribuye a lo largo de la línea */
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }

    /* Achicar y alinear las redes sociales en línea */
    .social-icons { 
        display: flex;
        justify-content: flex-start;
        gap: 10px; /* Espacio más corto entre íconos */
    }

    .social-icons a {
        font-size: 25px; /* Reducimos el tamaño de los íconos para que compacten mejor */
    }
    
    /* Achicar el botón del Libro de Reclamaciones para que quepa al lado */
    .libro-reclamaciones-custom { 
        margin: 0; 
        max-width: 140px; /* Reducimos su ancho máximo */
        padding: 4px 8px; /* Reducimos el relleno interno */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
        font-size: 11px; /* Letra más pequeña para que entre en una sola línea junto a las redes */
    }

    .login-modal-box { padding: 24px 18px; }
    .modal-btn-submit { font-size: 15px; padding: 13px; }
    .cart-dropdown-panel { width: 100%; }
}
/* =================================================================
   CARRITO — VARIANTES (color y talla) dentro del panel lateral
   ================================================================= */
.cart-variantes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 3px 0 5px;
}

.cart-variante-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f4f8;
    border: 1px solid #dde3eb;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

/* =================================================================
   SELECTORES DE VARIANTES — animación de sacudida
   ================================================================= */
.vale-selector-color-container,
.vale-selector-talla-container {
    transition: transform 0.1s ease;
}

/* Resaltar label cuando falta selección */
.vale-selector-requiere-atencion label {
    color: #ef4444 !important;
}

/* ================================================================
   WIDGET DE CHAT FLOTANTE (estilo WhatsApp + bot de preguntas frecuentes)
   ================================================================ */

#vale-chat-burbuja {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 9998;
    border: none;
    transition: transform 0.2s ease;
}

#vale-chat-burbuja:hover { transform: scale(1.06); }

#vale-chat-burbuja i { color: #fff; font-size: 28px; }

#vale-chat-burbuja .vale-chat-cerrar-icono { display: none; }

#vale-chat-burbuja.abierto .vale-chat-abrir-icono { display: none; }
#vale-chat-burbuja.abierto .vale-chat-cerrar-icono { display: block; }

/* Puntito de notificación (aparece una vez, para llamar la atención) */
#vale-chat-burbuja .vale-chat-punto {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--naranja, #f37021);
    border: 2px solid #fff;
}

/* ---------------- Panel del chat ---------------- */
#vale-chat-panel {
    position: fixed;
    bottom: 92px;
    right: 22px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

#vale-chat-panel.abierto {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.vale-chat-header {
    background: var(--marino, #001a33);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vale-chat-header-icono {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--naranja, #f37021);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vale-chat-header-icono i { color: #fff; font-size: 17px; }

.vale-chat-header-texto strong { display: block; font-size: 14px; }
.vale-chat-header-texto span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #cbd5e1;
}

.vale-chat-header-texto span::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.vale-chat-header-cerrar {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
}

.vale-chat-header-cerrar:hover { opacity: 1; }

/* Cuerpo de mensajes */
.vale-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f4f6f9;
}

.vale-chat-msg {
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.55;
}

.vale-chat-msg.bot {
    background: #fff;
    color: #334155;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.vale-chat-msg.usuario {
    background: var(--marino, #001a33);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.vale-chat-msg a { color: inherit; text-decoration: underline; }

/* Botones de sugerencias rápidas dentro de un mensaje del bot */
.vale-chat-sugerencias {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: flex-start;
    max-width: 82%;
}

.vale-chat-sugerencia-btn {
    background: #fff;
    border: 1.5px solid var(--marino, #001a33);
    color: var(--marino, #001a33);
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.vale-chat-sugerencia-btn:hover {
    background: var(--marino, #001a33);
    color: #fff;
}

.vale-chat-sugerencia-btn.whatsapp {
    border-color: #25D366;
    color: #128C4A;
}

.vale-chat-sugerencia-btn.whatsapp:hover { background: #25D366; color: #fff; }

/* Indicador de "escribiendo..." */
.vale-chat-escribiendo {
    align-self: flex-start;
    background: #fff;
    padding: 10px 14px;
    border-radius: 13px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: flex;
    gap: 4px;
}

.vale-chat-escribiendo span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: valeChatDot 1.2s infinite ease-in-out;
}

.vale-chat-escribiendo span:nth-child(2) { animation-delay: 0.2s; }
.vale-chat-escribiendo span:nth-child(3) { animation-delay: 0.4s; }

@keyframes valeChatDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Input inferior */
.vale-chat-input-zona {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e9f0;
    background: #fff;
    flex-shrink: 0;
}

.vale-chat-input-zona input {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: var(--marino, #001a33);
}

.vale-chat-input-zona input:focus { border-color: var(--naranja, #f37021); }

.vale-chat-btn-enviar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--naranja, #f37021);
    border: none;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.vale-chat-btn-enviar:hover { background: #d95d10; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 480px) {
    #vale-chat-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 84px;
        height: calc(100vh - 150px);
    }
    #vale-chat-burbuja { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    #vale-chat-burbuja i { font-size: 24px; }
}