/* ========== TOP BAR ========== */
.top-bar {
    background: #292929;
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 0;
    position: relative;
    z-index: 1002;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.shipping-message {
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
}

.currency-selector {
    font-size: 0.75rem;
    opacity: 0.9;
    cursor: default;
}

/* ========== HEADER PRINCIPAL ========== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: #ffffff;
    border-bottom: 1px solid #E2DDDA;
    overflow: visible; /* Importante */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    gap: 20px;
    position: relative;
    padding: 0 40px;
}

/* Logo */
.logo {
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Navegación */
.nav-left,
.nav-right {
    display: flex;
    align-items: flex-end;
    height: 60px;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

/* Navegación izquierda y derecha */
.nav-left ul,
.nav-right ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-left a,
.nav-right a {
    text-decoration: none;
    color: #292929;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-left a:hover,
.nav-right a:hover {
    color: #D5BCAB;
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.cart-icon {
    text-decoration: none;
    font-size: 1.3rem;
    color: #292929;
    transition: color 0.2s;
}

.cart-icon:hover {
    color: #D5BCAB;
}

/* ========== BOTÓN HAMBURGUESA (OCULTO) ========== */
.mobile-menu-toggle {
    display: none;
}

.mobile-nav,
.overlay {
    display: none;
}

/* ========== MEGA DROPDOWN MENU ========== */
.dropdown-trigger {
    position: relative;
}

/* Puente invisible hacia abajo */
.dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
    z-index: 1001;
}

.mega-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100vw;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.dropdown-trigger:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-dropdown-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
}

.mega-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-column: span 2;
}

.mega-image-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mega-image-card:hover {
    transform: translateY(-5px);
}

.rounded-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.image-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.mega-list {
    width: 100%;
}

.mega-list h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #D5BCAB;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.mega-list h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #D5BCAB;
}

.mega-list ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.mega-list li {
    margin-bottom: 12px;
}

.mega-list a {
    text-decoration: none;
    color: #292929;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.mega-list a:hover {
    color: #D5BCAB;
    transform: translateX(8px);
}

/* ========== RESPONSIVE: OCULTAR TODO EL HEADER EN PANTALLAS MENORES A 1200PX ========== */
@media (max-width: 1199px) {
    /* Ocultar el header completo */
    .main-header {
        display: none !important;
    }
}

/* Responsive del mega dropdown para cuando se ve en desktop */
@media (max-width: 1024px) {
    .mega-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .mega-images {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mega-content {
        grid-template-columns: 1fr;
    }
    
    .mega-images {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }
}

/* Versión con efecto swap */
.lang-buttons-swap {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    padding: 4px;
    gap: 0;
}

.lang-btn-swap {
    text-decoration: none;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    text-align: center;
    min-width: 70px;
}

.lang-en-swap {
    background: #D5BCAB;
    color: #3A2D2B;
    border-radius: 50px 0 0 50px;
}

.lang-es-swap {
    background: transparent;
    color: #ffffff;
    border-radius: 0 50px 50px 0;
}

.lang-buttons-swap:hover .lang-en-swap {
    background: transparent;
    color: #ffffff;
}

.lang-buttons-swap:hover .lang-es-swap {
    background: #D5BCAB;
    color: #3A2D2B;
}

.lang-buttons-swap {
    position: relative;
    overflow: hidden;
}

.lang-buttons-swap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #D5BCAB;
    border-radius: 50px;
    transition: transform 0.4s ease;
    z-index: 0;
}

.lang-buttons-swap:hover::before {
    transform: translateX(100%);
}