* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

.a {
    color: white;
    text-decoration: none;
}

.btn-menu {
    display: none;
    color: #fff;
    height: 40px;
    width: 100px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

.btn-menu:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, .3);
}

/* NAV-TOP */
header {
    background-color: #fff;
}

.logo {
    padding: .5rem 0;
    width: 1200px;
    display: flex;
    margin: auto;
    position: relative;
}

.logo>img {
    width: 85px;
}

.logo-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 1.5rem;
}

.logo-title>h3 {
    color: #b88608;
    margin-top: 15px;
    font-size: 1.17em;
    font-weight: bold;
    unicode-bidi: isolate;
}

.logo-title>h2 {
    color: #2a8c4a;
    font-size: 25px;
    font-weight: bold;
    unicode-bidi: isolate;
}

nav img {
    display: none;
}

/* ------------------------------- */
/* navbar */

@media(min-width: 960px) {
    nav {
        width: 100%;
        background-color: #2a8c4a;
        position: sticky;
        top: 0;
        z-index: 2;
        height: 40px; /* Reducimos la altura */
        display: flex;
        align-items: center;
        padding: 0 15px; /* Menos padding lateral */
    }

    .menu {
        width: 1200px;
        margin: 0px;
        margin-left: 0 10px;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .menu>li {
        cursor: pointer;
        font-size: 0.9rem; /* Ligero ajuste de tamaño de fuente */
        position: relative;
        padding: 0 1px; /* Menos espacio entre opciones */
        height: 100%;
        display: flex;
        align-items: center;
        top: 1px;
    }

    .menu>li>a {
        color: #ffffff;
        text-decoration: none;
        transition: all 0.3s;
        font-weight: bold;
    }

    .menu>li:hover>a {
        color: orange;
    }

    .menu li>i {
        display: none;
    }

    .menu-second, .menu-third, .menu-four, .menu-five {
        border-radius: 0 0 10px 10px;
        box-shadow: 1px 1px 10px rgba(146, 211, 228, 0.5);
        background-color: #fff;
        position: absolute;
        width: 210px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        transition: all .4s;
    }

    .menu>li:hover>.menu-second {
        opacity: 1;
        visibility: visible;
    }

    .menu-second {
        top: 100%;
        left: 0;
    }

    .menu-second-title {
        display: none;
        visibility: hidden;
    }

    .menu-second>li>a, .menu-third>li>a, .menu-four>li>a, .menu-five>li>a {
        color: #666;
        font-size: 14px;
    }

    .menu-third, .menu-four, .menu-five {
        border-radius: 10px;
        left: 100%;
        top: 0;
    }

    .menu-second>li:hover>.menu-third,
    .menu-third>li:hover>.menu-four,
    .menu-four>li:hover>.menu-five {
        opacity: 1;
        visibility: visible;
    }

    .menu>li .inicio_nav {
        border: none;
    }

    .menu li>a {
        transition: all .3s;
    }

    .menu li:hover>a {
        color: orange;
    }
}

@media(min-width: 1500px) {
    .logo {
        width: 1400px;
    }

    .menu {
        width: 1400px;
    }
}

@media(max-width: 1200px) {
    nav {
        width: 100%;
    }

    .menu {
        width: 100%;
    }

    .logo {
        width: 100%;
    }
}

@media(max-width: 940px) {
    .menu {
        width: 100%;
    }

    .logo {
        width: 100%;
    }

    nav {
        width: 100%;
    }
}

@media(max-width: 960px) {
    #btn_menu {
        display: block;
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
        margin-left: auto;
        padding: 8px;
        position: absolute;
        right: 1px;
        top: 5px;
        z-index: 5;
    }

    .menu-second, .menu-third, .menu-four, .menu-five {
        display: none;
    }

    header {
        background-color: #2a8c4a;
        padding: .5rem;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .black_active {
        position: fixed;
        top: 0;
        width: 100%;
        bottom: 0;
        background-color: rgba(0, 0, 0, .5);
        transition: all .3s;
        z-index: 2;
    }

    .logo>img {
        width: 50px;
    }

    .logo-title {
        margin: 0;
    }

    .logo-title>h3 {
        font-size: 1.2rem;
    }

    .logo {
        padding: 0;
        align-items: center;
        justify-content: space-around;
    }

    .logo-title {
        text-align: center;
    }

    .logo-title>h3 {
        color: #fff;
        font-size: 12px;
        padding-right: 100px;
    }

    .logo-title>h2 {
        color: #FFF7AA;
        padding-right: 110px;
        font-size: 18px;  
    }

    nav img {
        display: block;
        width: 90px;
        margin-bottom: 20px;
        margin-left: 50px;
    }

    nav {
        transition: all .3s;
        background-color: #fff;
        position: fixed;
        top: 0;
        bottom: 0;
        width: 225px;
        box-shadow: 1px 0 10px rgba(131, 216, 145, 0.5);
        padding: 1rem 0;
        overflow-y: scroll;
        visibility: hidden;
        opacity: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .menu-open {
        visibility: visible;
        opacity: 2;
    }

    .menu {
        display: flex;
        flex-direction: column;
    }

    .menu>li, .menu-second>li, .menu-third>li, .menu-four>li, .menu-five>li {
        font-size: 1rem;
        position: relative;
        right: 30px;
        width: 100%;
    }

    .menu>li:first-child {
        border-top: 1px solid rgba(150, 146, 146, 0.3);
    }

    .menu>li>i, .menu-second>li>i, .menu-third>li>i, .menu-four>li>i, .menu-five>li>i {
        font-size: 1.2rem;
        color: #666;
        padding: 1rem;
        width: 50px;
    }

    .menu>li>a, .menu-second>li>a, .menu-third>li>a, .menu-four>li>a, .menu-five>li>a {
        color: #666;
        font-size: 14px;
        font-weight: 600;
        width: 200px;
        display: inline-block;
    }

    .menu-second>li:first-child, .menu-third>li:first-child, .menu-four>li:first-child, .menu-five>li:first-child {
        border-top: 2px solid #666;
    }

    .menu-second>li:last-child {
        border: none;
    }

    .menu-second>li>a, .menu-third>li>a, .menu-four>li>a {
        color: #666;
        width: 65%;
        display: inline-block;
    }

    .active>#btn_open {
        background-color: #2a8c4a;
        color: #ffff;
    }

    #icon_menu {
        width: 15%;
        text-align: center;
        padding: .5rem;
    }

    .menu>li>a, .menu-second>li>a {
        padding: 1rem 0;
        width: 50%;

    }

    #btn_open {
        padding: 1rem;
        width: 20%;
        text-align: center;
        transition: all .3s;
    }

    .menu-second>li>a, .menu-third>li>a, .menu-four>li>a {
        color: #666;
        width: 65%;
        display: inline-block;
    }

    .active>ul {
        display: block;
    }

    .menu-second>li:first-child, .menu-third>li:first-child {
        border-top: 1px solid #666;
    }

    .menu-third>li>a {
        padding: .5rem;
    }
}
