/* Importamos los estilos generales a esta hoja */
/* Para poder utilizar las variables de los colores, entre otras cosas */
@import url(estilos.css);

.header__info{
    background-color: var(--pink);
    text-align: end;    
    overflow: hidden;
}

.header__info p{
    color: var(--white);
    font-weight: 700;
    padding: 5px 25px 5px 0;
    white-space: nowrap;
    animation: moveText 15s linear infinite;
}

@keyframes moveText{
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(-100%);
    }
}

.phone-number{
    font-weight: 900;
}

.container-navbar{
    background-color: var(--white);    
    display:flex;
    /* Justificar los elementos al centro */
    justify-content: center;
    /* utilizar el 100% del contenedor */
    width: 100%;
}

.navbar{
    /* coloca los elementos a un lado del otro. */
    display: flex;
    /* Pone los elementos a los extremos */
    justify-content: space-between;

    /* Para que siempre estén los elementos al centro del contenedor */
    align-items: center;

    /* utiizar toda el área que se indicó */
    width: 100%;
    height: 100%;    
}

.navbar__logo{
    display: flex;
    align-items: center;
}
.navbar__logo img{
    height: 120px;
    margin-right: 20px;
}

.navbar__logo span{
    text-transform: uppercase;
    font-weight: 900;
    /* Altura de la letra relativa */
    font-size: 1.5rem;
    color: var(--dark-purple);
}

.navbar__nav{
    display: flex;
    align-items: center;    
}

.navbar__nav>*{
    margin-left: 40px;
}

.nav__list {
    display: flex;
    list-style: none;
}

.nav__link{
    margin-left: 25px;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav__link a{
    color: var(--dark-purple);
    position: relative;
}

.nav__link a::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dark-purple);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav__link:hover a::after{
    opacity: 1;
}

.navbar_toogle-btn{
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: none;
}

.navbar__mobile-menu{
    display: none;
}

@media only screen and (max-width: 895px) {
    .nav__list{
        display: none;
    }
    .navbar__mobile-menu{
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 150px;
        right: 0;
        background-color: var(--white);
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 01.1);
        z-index: 1;
    }
    .nav__link-mobile{
        margin-left: 40px;
        font-size: 1.1rem;
        font-weight: 500;
        margin-top: 5px;
    }

    .nav__list-mobile{
        list-style: none;
        padding: 20px;
        margin-bottom: 15px;
    }

    .nav__list-mobile a{
        color: var(--dark-purple);
        text-decoration: none;
        position: relative;
    }
    .nav__link-mobile a::after{
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--dark-purple);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .nav__link-mobile:hover a::after{
        opacity: 1;
    }
    .navbar_toogle-btn{
        display: block;
        margin: 0;
    }
    .navbar_toogle-btn img{
        height: 28px;
        margin: 0 10px;
    }
}