/* =====================================
   HEADER CUSTOM STYLES - UPDATED SIZES
   ===================================== */

:root {
    --primary-color: #5F1010;
    --secondary-color: #6b1c1c;
    --accent-color: #ff4757;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Header blanco */
.custom-navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 90px; /* Aumentado para logo más grande */
}

/* Logo +20px (80px total) */
.custom-logo img.logo-img {
    height: 70px !important; 
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo img.logo-img:hover {
    transform: scale(1.05);
}

/* Posicionar logo en desktop */
@media (min-width: 992px) {
    .custom-logo {
        margin-left: 15%;
        margin-right: auto;
    }
}

/* Ajustar logo en móvil */
@media (max-width: 991.98px) {
    .custom-logo img.logo-img {
        height: 70px !important; /* +20px en móvil también */
    }
    
    .custom-logo {
        margin-left: 0;
    }
}

/* Iconos de carrito +8px */
.custom-cart-icon .fa-shopping-cart {
    font-size: 1.5rem !important; /* +8px aprox */
}

/* Iconos de redes sociales +8px */
.social-icons .fab {
    font-size: 1.5rem !important; /* +8px aprox */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Aumentado */
    height: 44px; /* Aumentado */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(95, 16, 16, 0.05);
    transform: translateY(-3px);
}

/* Efectos específicos para iconos de redes */
.fa-facebook-f:hover { color: #1877F2 !important; }
.fa-instagram:hover { color: #E4405F !important; }
.fa-whatsapp:hover { color: #25D366 !important; }

/* Texto negro para enlaces */
.navbar .nav-link,
.navbar .dropdown-toggle {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .dropdown-toggle:hover,
.navbar .nav-link:focus,
.navbar .dropdown-toggle:focus {
    color: var(--primary-color) !important;
    background-color: rgba(95, 16, 16, 0.05);
}

.navbar .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: rgba(95, 16, 16, 0.1);
}

/* Badge rojo para carrito */
.badge.bg-danger {
    background-color: var(--accent-color) !important;
    font-size: 0.7rem;
    min-width: 1.4rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdowns */
.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-dark) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--primary-color) !important;
    background-color: rgba(95, 16, 16, 0.05);
    padding-left: 2rem;
}

.dropdown-item.active {
    background-color: rgba(95, 16, 16, 0.1);
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Selector de idiomas */
.btn-outline-dark {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.btn-outline-dark:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.flag-icon {
    border: 1px solid #eee;
    border-radius: 3px;
}

/* Ajustes para móvil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link,
    .dropdown-toggle {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .border-top {
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    .dropdown-menu {
        background-color: white !important;
        margin-left: 1rem;
        border-left: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Iconos más grandes en móvil */
    .social-icons a {
        width: 48px;
        height: 48px;
    }
    
    .social-icons .fab {
        font-size: 1.6rem !important;
    }
}

/* Dropdowns anidados */
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.125rem;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
    animation: fadeIn 0.2s ease;
}

/* Smooth transitions */
.navbar,
.nav-link,
.dropdown-item,
.btn-outline-dark,
.custom-cart-icon,
.social-icons a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}