/* =========================================
   ESTILOS GENERALES Y HEADER
   ========================================= */
header {
    height: max-content;
    width: 100%;
}


header #body-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #fff;
    height: 100px;
    border-radius: 0 0 40px 40px;
    z-index: 9999;
    /* Importante para que el dropdown no se corte */
    overflow: visible !important; 
}

.area-navbar {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.area-navbar a.navbar-brand {
    height: 90px;
    width: 90px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
}

.area-navbar a img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* =========================================
   MENÚ DESKTOP Y DROPDOWNS
   ========================================= */
.menu, .menu-moneda {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu li, .menu-moneda li {
    font-size: 16px;
    padding: 0 15px;
    font-weight: 600;
}

.menu li a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

/* Lógica Dropdown */
.menu li.dropdown {
    position: relative;
}

.menu li.dropdown ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centrado respecto al padre */
    background-color: #fff;
    min-width: 220px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    box-shadow: 0px 8px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu li.dropdown:hover ul {
    opacity: 1;
    visibility: visible;
}

.menu li.dropdown ul li {
    width: 100%;
    padding: 0;
}

.menu li.dropdown ul li a {
    padding: 12px 20px;
    display: block;
    font-weight: 500;
    color: #333;
    height: auto;
}

.menu li.dropdown ul li a:hover {
    background-color: #f8f9fa;
    color: #2e7d32;
}

/* =========================================
   COMPONENTES ADICIONALES
   ========================================= */
.menu-moneda li select {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    color: white;
    background-color: rgba(34, 139, 34, 0.8);
    cursor: pointer;
    outline: none;
}

.menu-moneda li select:focus {
    border: 2px solid #1c5775;
}

.fa.fa-map-marker { /* Corregido selector */
    font-size: 18px;
    background-color: antiquewhite;
    color: green;
    padding: 20px;
    border-radius: 20px;
}

.line-navbar {
    height: 50px;
    width: 2px;
    background-color: grey;
}

/* Agrega transición al estado original para que no sea brusco */
.interactive-icon, .interactive-icon i, .interactive-icon p {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.interactive-icon:hover {
    background: rgba(34, 139, 34, 1); /* Color sólido */
    transform: translateX(5px); /* Se desplaza ligeramente a la derecha */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.interactive-icon:hover i {
    background-color: #fff; /* El fondo del icono resalta */
    transform: scale(1.1) rotate(-5deg); /* Crece y gira un poco */
    left: -42px; /* Se asoma un poco más */
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
}

.overlay-reels-v1 {
    background-color: rgba(0, 0, 0, 0.48);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: all 0.3s ease-in-out;
}

.area-carousel-modern .owl-nav {
    position: absolute;
    z-index: 3;
    color: #ffff;
    bottom: 0;
}

/* =========================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Desktop (más de 1000px) */
@media (min-width: 1001px) {
    #mobile-menu-overlay, .hamburger-menu {
        display: none !important;
    }
}

/* Mobile & Tablet (menos de 1000px) */
@media (max-width: 1000px) {
    .d-none-mobile {
        display: none !important; 
    }

    header #body-nav {
        height: 80px;
    }

    .area-navbar a.navbar-brand {
        height: 72px;
        width: 72px;
    }

    .nav-right-elements {
        display: flex;
        align-items: center;
    }

    .hamburger-menu {
        display: block;
        font-size: 28px;
        color: #2e7d32;
        cursor: pointer;
        padding-left: 20px;
    }

    /* Popup Mobile Fullscreen */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 10000;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu.active {
        right: 0;
    }

    .close-menu {
        font-size: 29px;
        position: absolute;
        top: 20px;
        right: 25px;
        cursor: pointer;
        color: #333;
        height: 50px;
        width: 50px;
        background: #333333;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }

    .mobile-menu-items {
        list-style: none;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-items li {
        font-size: 26px;
        margin: 25px 0;
        font-weight: 700;
    }

    /* Ajustes visuales extra */
    .information-slider h3 {
        font-size: 2.5rem;
    }
    .area-carousel-modern .item img {
        height: 70vh;
    }

    .mobile-menu-items li a {
        color: black;
    }

    .dropdown-mn ul {
        display: none;
    }

.submenu-mn {
    display: none; /* Oculto por defecto */
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-mn.popup-submenu {
        display: block;
        position: absolute;
        left: 45%;
        top: 20%;
        transform: translateX(-50%);
        z-index: 1001;
        max-height: 480px;
        height: max-content;
        width: 250px;
        background-color: #ffffff;
        box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        padding: 15px 0;
        border: 1px solid #eee;
        animation: fadeInPopup 0.3s ease;
        overflow: hidden;
        overflow-y: scroll;
        margin: 20px;
        border: 10px solid rgb(255, 255, 255);
    }

.submenu-mn.popup-submenu li a {
    color: #333 !important;
    font-size: 18px !important;
    padding: 10px 15px !important;
    display: block;
}

@keyframes fadeInPopup {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
}