/* =========================================================
   MENU CONTAINER (PREMIUM)
========================================================= */

.menu {
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 9999;
	margin: 0;
    gap: 15px;
	padding: 0;
	border: 0px solid rgb(255, 255, 255);
    background-color: #452856;   
	font-size: 100%;
	font: inherit;
    width: 80%;
	vertical-align: baseline;
	line-height: 18px;
    height: 80px;
}

.menu .container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.menu ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.menu li {
    display: flex;
    align-items: center;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 26px;
    color: #fff;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* =========================================================
   NAV ORIGINAL (TU CSS)
========================================================= */

#nav {
    display: flex;
    align-items: left;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    position: relative;
    border: 0px solid rgb(60, 255, 0);

}

#nav * {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    position: relative;
} 

/* Estilo de enlaces del menú */
#nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* o center si quieres */
    width: 100%;
    padding: 0;
    margin: 0;
}

#nav > ul > li {
    display: inline-block;
    padding-right: 20px;
    padding-left: 20px;
    position: relative;
}

#nav > ul > li:last-child {
    padding-right: 0;
}

#nav > ul > li > a {
    font-family: 'Montserrat', montserrat, sans-serif;
    font-size: 18px;
    text-transform: initial;
    font-weight: 500;
    color: #453f3e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

#nav > ul > li > a:before {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #453f3e;
    color: #e4e4e4;
    width: 30px;
    height: 30px;
    line-height: 25px;
    font-size: 18px;
    border-radius: 2.25em;
    text-align: center;
    box-shadow: 0.125em 0.175em 0 0 rgba(0, 0, 0, 0.125);
    margin-right: 10px;
    transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
}

#nav > ul > li > a > span {
    transition: color 0.25s ease-in-out;
    font-size: 0.95em;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1px;
    text-decoration: none;
}

#nav > ul > li > ul {
    display: none;
    background: #6A5378;
    color : #ffffff;
}

#nav > ul > li > a:focus,
#nav > ul > li > a:active {
    outline: none;
    border: 2px solid #806e8b;
    border-radius: 10px;
}

#nav > ul > li.active > a:before,
#nav > ul > li:hover > a:before {
    background: #806e8b;
    color: #fff;
}

#nav > ul > li.active > a > span,
#nav > ul > li:hover > a > span {
    color: #ffffff;
    font-weight: 550;
}

/* =========================================================
   DROPOTRON
========================================================= */

.dropotron {
    text-align: start;
    border: solid 0.10px #b8b6b6 !important;
    border-top: solid 4px #f1c5f1 !important;
    border-radius: 18px;
    background: rgb(247, 243, 243);
    padding: 0.3em 0;
    min-width: 12em;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: #f0eeee !important;
}

.dropotron span, .dropotron a {
    display: block;
    padding: 0em 1em 0em 1em;
    border-top: solid 1px transparent;
    color: #685d5b;
    text-decoration: none;
}

.dropotron li:hover > span, 
.dropotron li:hover > a {
    color: #ff2600;
    border-radius: 20px;
    background-color: #d4d3d3;
    font-weight: 600;
    line-height: 2em;
    width:max-content;
}

/* =========================================================
   ICONS
========================================================= */

.icon {
    text-decoration: none;
    position: relative;
}

.icon:before {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}

.icon.solid:before {
    font-weight: 900;
}


/* =========================================================
   RESPONSIVE
========================================================= */

/* ===== 1400px ===== */
@media (max-width: 1400px) {

    #nav > ul > li {
        padding: 0 15px;
    }

    #nav > ul > li > a {
        font-size: 16px;
    }

    #nav > ul > li > a:before {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

/* ===== 1100px ===== */
@media (max-width: 1100px) {

   .menu {
        gap: 10px;
    }

    #nav > ul > li {
        padding-left: 10px;
        padding-right: 10px;
    }

    #nav > ul > li > a > span {
        letter-spacing: 1px;
        font-size: 0.9em;
    }

    #nav > ul > li > a:before {
        margin-right: 6px;
    }
}

/* ===== 900px (modo móvil) ===== */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    #nav {
        width: 100%;
    }

    #nav > ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #452856;
        position: absolute;
        top: 80px;
        left: 0;
    }

    #nav.active > ul {
        display: flex;
    }

    #nav > ul > li {
        width: 100%;
        padding: 12px 20px;
    }

    #nav > ul > li > a {
        width: 100%;
    }

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: block;
    }

    .menu-toggle.active::after {
    content: "✖";
}
.menu-toggle.active {
    font-size: 22px;
}

    /* NAV contenedor */
    #nav {
        width: 100%;
    }

    /* OCULTAR menú por defecto */
    #nav > ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #452856;
        position: absolute;
        top: 80px;
        left: 0;

        /* efecto premium */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.25s ease;
    }

    /* CUANDO ESTÁ ACTIVO */
    #nav.active > ul {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    /* Items */
    #nav > ul > li {
        width: 100%;
        padding: 12px 20px;
    }

    /* Links */
    #nav > ul > li > a {
        width: 100%;
    }

    /* SUBMENÚS */
    #nav li ul {
        display: none;
        flex-direction: column;
    }

    #nav li.open > ul {
        display: flex;
    }
}

/* ===== 600px ===== */
@media (max-width: 600px) {

    .menu {
        height: 70px;
    }

    #nav > ul {
        top: 70px;
    }

    #nav > ul > li > a {
        font-size: 14px;
    }

    #nav > ul > li > a:before {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}