/* =========================================================
   BARRA DE NAVEGACIÓN
========================================================= */

.navegacion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    z-index: 1000;
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.navegacion__contenedor {
    width: 90%;
    max-width: 1250px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */

.logo__imagen {
    width: 150px;
    height: auto;
}

.logo__imagen--color {
    display: none;
}

.logo__imagen--blanco {
    display: block;
}

/* =========================================================
   ENLACES
========================================================= */

.navegacion__enlaces {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navegacion__enlace {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    transition: color .3s ease;
}

.navegacion__enlace::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #029791;
    border-radius: 10px;
    transition: width .3s ease;
}

.navegacion__enlace:hover {
    color: #ffffff;
}

.navegacion__enlace:hover::after {
    width: 100%;
}

/* Botón de Contacto */
.navegacion__enlace--contacto {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 25px;
    color: #ffffff;
}

.navegacion__enlace--contacto::after {
    display: none;
}

.navegacion__enlace--contacto:hover {
    background: #029791;
    border-color: #029791;
    color: #ffffff;
}

/* =========================================================
   ESTADO SCROLL
========================================================= */

.navegacion.con-scroll {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 5px 25px rgba(23, 39, 61, .08);
}

.navegacion.con-scroll .logo__imagen--blanco {
    display: none;
}

.navegacion.con-scroll .logo__imagen--color {
    display: block;
}

.navegacion.con-scroll .navegacion__enlace {
    color: #17273D;
}

.navegacion.con-scroll .navegacion__enlace:hover {
    color: #029791;
}

.navegacion.con-scroll .navegacion__enlace--contacto {
    color: #17273D;
    border-color: rgba(23, 39, 61, .2);
}

.navegacion.con-scroll .navegacion__enlace--contacto:hover {
    color: #ffffff;
    border-color: #029791;
}

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

.navegacion__boton-menu {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.navegacion__boton-menu span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 5px;
    transition: transform .3s ease, opacity .3s ease, background .3s ease;
}

.navegacion.con-scroll .navegacion__boton-menu span {
    background: #17273D;
}

.navegacion__boton-menu.activo span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navegacion__boton-menu.activo span:nth-child(2) {
    opacity: 0;
}

.navegacion__boton-menu.activo span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   ADAPTATIVO (MEDIA QUERIES)
========================================================= */

@media screen and (max-width: 800px) {
    .navegacion {
        height: 75px;
    }

    .navegacion__contenedor {
        width: 90%;
    }

    .navegacion__boton-menu {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .navegacion__enlaces {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85%);
        height: 100vh;
        padding: 110px 35px 40px;
        background: #ffffff;
        box-shadow: -10px 0 35px rgba(0, 0, 0, .12);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 30px;
        transition: right .35s ease;
    }

    .navegacion__enlaces.activo {
        right: 0;
    }

    .navegacion__enlace {
        font-size: 17px;
        color: #17273D;
    }

    .navegacion__enlace:hover {
        color: #029791;
    }

    .navegacion__enlace--contacto {
        color: #17273D;
        border-color: rgba(23, 39, 61, .2);
    }

    .navegacion__enlace--contacto:hover {
        color: #ffffff;
    }

    .navegacion__boton-menu {
        z-index: 1003;
    }
}