:root {
    --nav-height: 60px;
    --nav-bg: #fff;
    --nav-link-color: #01b3b5;
    --nav-link-hover: #ddd;
    --transition-time: 0.3s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.header {
    position: fixed;
    top: 5px;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    transition: top var(--transition-time) ease;
}

.header.hidden {
    top: calc(-2 * var(--nav-height));
}

.nav__brand {
    z-index: 2;
    width: 150px;
    color: var(--nav-link-color);
    text-decoration: none;
    font-size: 1.25rem;
}

.nav__toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1100;
}

.nav__toggle svg {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    fill: #01b3b5;
    transition: opacity var(--transition-time) ease;
}

.icon-list {
    opacity: 1;
}

.icon-x-lg {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .icon-list {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .icon-x-lg {
    opacity: 1;
}

.nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-time) ease-in-out;
    border-radius: 20px;
}

.nav__menu--open {
    padding: 70px 10px 10px 10px;
    margin-top: -50px;
    z-index: 1;
}

.destacada-img,
.img-destacada {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: bottom;
    border-radius: 10px;
}

.nav__menu--open {
    max-height: calc(100vh - var(--nav-height));
}

.nav__list {
    list-style: none;
}

.nav__item+.nav__item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__link {
    display: block;
    padding: 1rem;
    color: #01b3b5;
    text-decoration: none;
    transition: background var(--transition-time);
}

.nav__link:hover,
.nav__link:focus {
    background: #ebf9fa;
    color: #01b3b5;
    font-weight: 900;
}

.nav__submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-time) ease-in-out;
}

.nav__item--has-submenu>.nav__link::after {
    content: "▾";
    float: right;
    transition: transform var(--transition-time);
}

.nav__item--open>.nav__submenu {
    background: #ebf9fa;
    max-height: 500px;
}

.nav__item--open>.nav__link::after {
    transform: rotate(180deg);
}

@media (min-width: 768px) {

    .nav__toggle,
    .nav__menu,
    .nav__brand svg,
    .nav__brand {
        display: none !important;
    }

    .header {
        left: 50%;
        height: 90px;
        padding: 30px !important;
    }

    .submenu-list li {
        transition: .3s all ease-in-out;
    }

    .submenu-list li:hover {
        color: #01b3b5;
        background: #ebf9fa;
        transition: .3s all ease-in-out;
        border-radius: 10px;
        padding: 10px;
    }
}

@media(max-width: 1080px) {
    .nav__brand svg {
        display: block;
    }

    .header {
        left: 50%;
        padding: 2rem;
    }

    .header .logo {
        display: none;
    }
    .nav__link{
        font-size: 15px;
    }
}