html {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    color: #595959;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Logo */

.logo {
    display: flex;
    justify-content: center;
}

.logo img {
    width: 25%;
    padding: 4%;
}


/* Barra de navegacion */
nav {
    width: 100%;
    transition: all 1s;
    position: sticky;
    z-index: 1;
    padding: 0.1%;
    background-color: rgba(201, 200, 200, 0.555);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main .bar-container {
    flex: 1;
    display: flex;
    list-style: none;
    padding: 0;
    font-size: 1rem;
}

.bar-container a {
    text-decoration: none;
    color: rgb(70, 70, 71);
    transition: all 0.5s;
}

.bar-item {
    flex: 1;
    border-right: 0.1rem solid rgb(255, 255, 255);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    transition: all 0.5s;
} 

.bar-item:last-child {
    border-right: 0;
}

.bar-item:hover {
    background-color: rgba(175, 175, 175, 0.8);
}

.dropdown a:hover {
    background-color: rgba(175, 175, 175, 0.8);
}

.nav-logo {
    max-width: 0;
    max-height: 2vh;
    overflow: hidden;
    transition: all 0.5s;
    border: none;
}

.fixed-nav {
    top: 0;
}

.fixed-nav .nav-logo {
    flex: 1;
    padding: 1%;
    max-width: 5%;
    background-image: url("../imagenes/logoSVG.svg");
    background-size: cover;
    border-right: 0.1rem solid black;
}

#courses {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 1rem;
}

.dropdown {
    display: block;
    opacity: 0;
    position: absolute;
    right: 0;
    background-color: rgba(216, 216, 216, 0.6);
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: all 0.5s;
    margin-top: 2vh;
    visibility: hidden;
}

.dropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.hovered {
    opacity: 1;
    visibility: visible;
}

/* Estilos para la etiqueta "Nuevo" */
.new-tag {
    background-color: #ff5733;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    top: 1px; /* Ajusta la posición vertical */
    right: -11px; /* Ajusta la posición horizontal */
}


/* Footer */
footer {
    display: flex;
    background-color: rgba(201, 200, 200, 0.555);
    padding-bottom: 1rem;
    padding: 0.5vw 2vw;
    font-size: 1vw;
    justify-content: center;
}

footer p {
    margin: 0;
    color: rgb(169, 170, 170);
}

.site-map {
    display: flex;
    gap: 5vw;
    justify-content: center;
    margin-left: auto;
}

.site-map a {
    text-decoration: none;
    color: rgb(71, 70, 70);
}

.site-map a:hover {
    color: rgb(158, 158, 158);
}

.boton_whatsapp img {
    position: fixed;
    bottom: 3rem;
    right: 1rem;
    width: 3rem;
    box-shadow: 0 3px 10px rgb(201 200 200);
    border-radius: 50%;
}

/* Media queries */

@media screen and (max-width:820px) {

    .logo img {
        max-width: 30%;
        padding: 2%;
    }
    
    nav div{
        font-size: 0.7rem;
    }

    .fixed-nav .nav-logo {
        background-image: url("../imagenes/lechuzaSVG.svg");
        padding: 3%;
        max-width:5%;
    }

    .dropdown {
        margin-top: 1.5vh;
    }

    footer {
        font-size: 2vw;
    }
}