html {
    box-sizing: border-box;
    background-color: rgba(245, 245, 245, 1);
    font-family: "Roboto", sans-serif;
    color: #595959;
}

body {
    margin: 0;
    padding: 0;
}

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


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

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


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

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

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

.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;
    color: black;
}

.dropdown {
    display: block;
    opacity: 0;
    position: absolute;
    right: 0;
    background-color: rgba(216, 216, 216, 0.8);
    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;
}

/*Banner*/

/* http://s6.favim.com/orig/150112/background-cold-gif-nature-Favim.com-2380226.gif */

.banner {
    width: 100%;
    background:url('../imagenes/vessel2.gif');
    background-position: center; /* Ajusta la posición del fondo */
    /*https://media.tenor.com/Oa4daWm3o4sAAAAC/star-galaxy.gif*/
    /*https://i0.wp.com/media.giphy.com/media/5ERaOy5fQEIAU/giphy.gif*/
    background-size: cover;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    padding: 5%;
  }
  
  .big-text {
    font-size: 3rem;
    font-weight:800;
    animation-delay: 1s;
  }
  .banner a {
    display: inline-block;
    background: #fff;
    color: red;
    text-transform: uppercase;
    padding: 15px;
    text-decoration: none;
    font-size: 1.5rem;
    transition: .3s;
    border-radius: 5rem;    
  }
  
  .banner a:hover {
    background: rgb(247, 6, 6);
    color: #fff;    
  }


/* Contenido central*/
.content {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s;
    padding: 4vw;
}

.home-image {
    background-image: url("../imagenes/Students.jpg");
    background-size: cover;
    border-radius: 6px;
    display: flex;
    justify-content: flex-start;
    text-align: start;
    align-items: flex-start;
}

.message {
    padding: 4%;
    margin: 5% 0 20% 5%;
    color: white;
    background-color: rgba(232, 232, 233, 0.233);
    border: 1px solid rgb(204, 204, 204);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 25rem;
    text-align: center;
    font-size: 1.5vw;
    width: 26vw;
    height: 20vw;
    transition: all 1s;
}

.quote-box {
    margin-bottom: 5%;
    flex: 1;
}

.start-now_button {
    padding: 6%;
    background-color: rgba(177, 0, 0, 0.534);
    color: white;
    border: 1px solid rgb(185, 163, 163);
    border-radius: 6px;
    font-size: 1.5vw;
    cursor: pointer;
}

.start-now_button:hover {
    background-color: white;
    border: 1px solid rgb(177, 0, 0);
    color: rgb(177, 0, 0);
}

img {
    border-radius: 8px;
}


/* Tarjetas cursos */
.courses {
    display: flex;
    flex-direction: column;
    padding: 3%;
    background-color: rgba(245, 245, 245, 0.555);
}

.courses div {
    width: 100%;
    text-align: center;
}


.images {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
    font-size: 2vw;
}

.images div {
    display: flex;
    width: 33%;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgb(201, 200, 200);
    padding: 2%;
    transition: all 0.5s;
}

.images div:hover {
    transform: scale(1.02);
}

.images img {
    width: 100%;
    padding: 0;
    flex: 1 0 auto;
}


/* 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: 1.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: 2rem;
    width: 4rem;
    box-shadow: 0 3px 10px rgb(201, 200, 200);
    border-radius: 50%;
}


/* Media queries */

@media screen and (max-width:820px) {
    .images {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 3vw;
    }

    .logo img {
        max-width: 30%;
        padding: 2%;
    }

    .images div {
        width: 80%;
    }

    nav {
        font-size: 0.7rem;
    }

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

    .dropdown {
        margin-top: 1.5vh;
    }

    .message {
        font-size: 1rem;
        width: 45vw;
        height: 45vw;
    }

    .start-now_button {
        font-size: 2.5vw;
    }

    footer {
        font-size: 0.8rem;
    }
}