
/* ==========================
NAVBAR
========================== */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-family:'Montserrat',sans-serif;

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:2000;

    background:#fff;

    padding:10px clamp(20px, 8vw, 120px);

    box-sizing:border-box;
}


/* LOGO */

.logo img{
    height:100px;
    display:block;
}


/* DERECHA */

.nav-right{

    display:flex;

    align-items:center;

    gap:34px;

}


/* MENÚ */

.nav-right ul{

    display:flex;

    align-items:center;

    gap:34px;

    list-style:none;

}


.nav-right ul li a{

    text-decoration:none;

    color:#111;

    font-size:13px;

    font-weight:500;

    letter-spacing:.5px;

}


/* ==========================
REDES
========================== */

.social{

    display:flex;

    align-items:center;

    gap:14px;              /* ← separación entre iconos */

    padding:0px 16px;      /* ← izquierda y derecha */

    height:32px;           /* ← ALTO DEL CONTENEDOR */

    border:1.4px solid #111;

    border-radius:999px;

}


/* CADA ICONO */

.social a{

    width:26px;            /* ← ancho icono */

    height:26px;           /* ← alto icono */

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    color:#111;

    border-radius:50%;

    transition:.25s;

}


/* TAMAÑO DEL ICONO */

.social i{

    font-size:15px;        /* ← tamaño icono */

}


/* HOVER */

.social a:hover{

    background:#111;

    color:#fff;

}






.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.arrow {
    font-size: .8rem;
    transition: transform .25s ease;
}

/* SUBMENÚ */
.submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    min-width: 220px;
    background: #fff;
    border-radius: 10px;

    list-style: none;
    margin: 0 !important;
    padding: 4px 0 !important;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);

    display: flex;
    flex-direction: column;
    gap: 0 !important;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;

    z-index: 1000;
}

/* ITEMS */
.submenu li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    height: auto !important;
    line-height: normal !important;
}

/* ENLACES */
.submenu li a {
    display: block !important;
    width: 100%;

    margin: 0 !important;
    padding: 8px 14px !important;

    font-size: 14px;
    line-height: 1.2 !important;

    text-decoration: none;
    color: #111;

    min-height: auto !important;
    height: auto !important;

    transition: background .2s ease;
    box-sizing: border-box;
}

/* Hover */
.submenu li a:hover {
    background: #f5f5f5;
}

/* Separador */
.submenu li + li {
    border-top: 1px solid #f2f2f2;
}

/* Abrir menú */
.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Girar flecha */
.dropdown:hover .arrow {
    transform: rotate(180deg);
}



/* ==========================
MENU HAMBURGUESA
========================== */

.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
    color:#111;
}


/* ==========================
RESPONSIVE
========================== */

@media (max-width:768px){


    .navbar{

        margin-top:0;

        padding:15px 20px;

        position:relative;

        display:flex;

        justify-content:space-between;

        align-items:center;

    }


    .logo img{

        height:75px;

    }



    /* ==========================
       BOTONES MENU
    ========================== */

    .menu-toggle{

        display:flex;

        justify-content:center;

        align-items:center;

        font-size:32px;

        cursor:pointer;

        color:#111;

        z-index:3001;

    }



    /* BOTON ABRIR */

    .abrir-menu{

        display:flex;

    }



    /* BOTON CERRAR DENTRO DEL PANEL */

    .cerrar-menu{

        display:none;

        position:absolute;

        top:25px;

        right:25px;

        font-size:30px;

        color:#111;

        cursor:pointer;

        z-index:4000;

    }



    /* ==========================
       PANEL LATERAL
    ========================== */

    .nav-right{

        position:fixed;

        top:0;

        right:-100%;

        width:280px;

        height:100vh;

        background:#fff;


        display:flex;

        flex-direction:column;

        align-items:flex-start;

        justify-content:flex-start;


        padding:90px 25px 30px;


        transition:.35s ease;


        box-shadow:-5px 0 20px rgba(0,0,0,.15);


        z-index:3000;


        overflow-y:auto;

    }



    .nav-right.active{

        right:0;

    }



    /* MOSTRAR X CUANDO MENU ABIERTO */

    .nav-right.active .cerrar-menu{

        display:flex;

    }




    /* ==========================
       MENÚ
    ========================== */


    .nav-right ul{

        width:100%;

        display:flex;

        flex-direction:column;

        align-items:flex-start;

        gap:0;

    }



    .nav-right ul li{

        width:100%;

        border-bottom:1px solid #eee;

    }



    .nav-right ul li a{

        width:100%;

        display:flex;

        justify-content:space-between;

        align-items:center;


        padding:16px 0;


        font-size:15px;

    }



    .social{

        margin-top:25px;

        align-self:center;

    }




    /* ==========================
       DROPDOWN MÓVIL
    ========================== */


    .dropdown{

        width:100%;

    }



    .dropdown-toggle{

        width:100%;

        display:flex;

        justify-content:space-between;

        align-items:center;

    }



    /* DESACTIVAR HOVER DESKTOP */

    .dropdown:hover .submenu{

        opacity:0;

        visibility:hidden;

        transform:none;

    }



    .dropdown.active .submenu{

        opacity:1;

        visibility:visible;

        display:flex !important;

        flex-direction:column;

    }



    .submenu{


        position:static;


        width:100%;


        min-width:100%;


        margin:0 !important;

        margin-bottom:10px !important;


        padding:0 !important;


        display:none !important;


        opacity:1;

        visibility:visible;

        transform:none;



        background:#f8f8f8;


        border-radius:8px;


        box-shadow:none;


        gap:0;


    }



    .submenu li{

        border:none;

    }



    .submenu li+li{

        border-top:1px solid #e8e8e8;

    }



    .submenu li a{

        padding:12px 18px !important;

        font-size:14px;

    }

    .arrow{

        transition:.3s;

    }

    
    .dropdown.active .arrow{

        transform:rotate(180deg);

    }


}




@media (max-width:768px){

    .navbar{

        position:fixed !important;

        top:0;

        left:0;

        width:100%;

        z-index:3000;

        background:#fff;

        padding:15px 20px;

        display:flex;

        justify-content:space-between;

        align-items:center;

    }


}