/* DBT-header - Control de color y z-index del header solo en móvil */

.menu-open {
    overflow: hidden;
}

.menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    z-index: -1;
}

#dbt-header.ech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

#dbt-header.ech-header .logo img {
    height: 40px;
    max-width: 100%;
}

#dbt-header.ech-header .logo a {
    display: inline-block;
}

#dbt-header.ech-header .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10000;
    position: relative;
}

#dbt-header.ech-header nav {
    display: flex;
    align-items: center;
    z-index: 9999;
}

#dbt-header.ech-header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

#dbt-header.ech-header nav ul li a {
    text-decoration: none;
    color: #1d1d1d;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

#dbt-header.ech-header nav ul li.current-menu-item a {
    border-bottom: 2px solid #000;
}

#dbt-header.ech-header nav ul li:last-child a {
    background-color: #cde3e9;
    border-radius: 25px;
    padding: 6px 16px;
}

/* Mobile */
@media (max-width: 768px) {

    #dbt-header.ech-header nav ul li.current-menu-item a {
        opacity: 50%;
        border-bottom: none;
    }
    #dbt-header .logo{
        z-index: 9999;
    }
    .menu-overlay {
        display: none;
    }
    
    .menu-open .menu-overlay.overlay-burguer {
        display: block;
        z-index: 9998;
    }

    #dbt-header.ech-header {
        flex-wrap: wrap;
    }

    #dbt-header .menu-open .ech-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

#dbt-header.ech-header .menu-toggle {
        display: block;
    }

#dbt-header.ech-header .menu-toggle.open::after {
        content: '✕';
    }

#dbt-header.ech-header .menu-toggle::after {
        content: '\2630';
    }

#dbt-header.ech-header nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 20px;
    }

#dbt-header.ech-header nav.open {
        display: flex;
        padding: 40px;
        text-align: center;
    }

#dbt-header.ech-header nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

#dbt-header.ech-header nav ul li a {
        display: block;
        width: 100%;
    }

#dbt-header.ech-header nav ul li:last-child a {
        text-align: center;
    }
}
