

*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    --bg-color: #333;
    --mid-color: #777;
    --dark-color: #922;
    --dark-color2: #500;
    --light-color: #ddd;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: clamp(300px,100dvw,2000px);
    
}

div, ul, nav, header, footer, a, li, label{
    margin: 0;
    padding: 0;
}

h1, h2{
    color: #fff;
    margin: 0;
}

/*----- HEADER SECTION -----*/

.header{
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
    width: 100dvw;
    
}
.header__overlay{
    height: clamp(50px,17dvh,1000px);
    width: 100dvw;
    position: absolute;
    background: linear-gradient(transparent,#0009);
    background-image: url(../img/fondo-portada.webp);
    background-position: center;
    background-size: 100%;
    z-index: -1;
    filter: grayscale(1) brightness(0.5);
}

.header__container{
    height: clamp(50px,17dvh,1000px);
    width: clamp(300px,100%,700px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header__img-container{
    position: relative;
    z-index: 10;
    margin: auto;
    align-items: center;
    max-width: 700px;
    filter: none;
}
.img{
    visibility: visible;
    height: 15dvh;
    margin: auto;
}
.h1-header{
    font-size: 2.4rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    position: absolute;
    visibility: hidden;
    margin: auto;
}

/*----- HEADER QUERIES -----*/

@media screen and (min-width: 600px){
    .header__overlay{
        height: clamp(50px,40dvh,1000px);
        width: 100dvw;
        position: absolute;
        /*background: linear-gradient(transparent,#0009);*/
        background-image: url(../img/fondo-portada.webp);
        background-size: cover;
        z-index: -1;
        filter: grayscale(0);
    }
    
    .header{
        height: 40dvh;
        width: 100dvw;
        box-sizing: border-box;
        /*filter: grayscale(1);*/
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-size: cover;
        margin-bottom: 0;
    }
    
    .header__img-container{
        position: relative;
        z-index: 10;
        margin: auto;
        align-items: center;
        max-width: 700px;
        filter: none;
    }
    .img{
        height: 30dvh;
        margin-top: 20px;
        visibility: visible;
        margin-bottom: 0;
    }

    .h1-header{
        font-size: 2rem;
        position: relative;
        visibility: visible;
        margin: auto;
        left: auto;
        margin-bottom: 30px;
    }
}

/*----- HEADER ENDS -----*/

/* --- NAVBAR SECTION --- */

.nav_container{
    margin: auto;
    margin-top: 0;
    margin-bottom: 20px;
    width: 100dvw;
    height: 12dvh;
    background-color: var(--light-color);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px;
    position: sticky;
    top: 0;
    box-shadow: 0 0 25px #0006;
    z-index: 50;
}


.nav__ul-container{
    flex-grow: 1;
    text-align: center;
}

.nav__ul{
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    justify-content: center;
}

.nav__item{
    list-style: none;
}

.nav__link{
    color: var(--dark-color);
    text-decoration: none;
    display: inline-block;
    padding: 8px 10px;
    border-radius: 0;
    transition: border 0.3s, border-radius 0.2s, outline-offset 0.3s;
    margin: 2px;
}

.nav__link:hover{
    background-color: #f223;
    border-radius: 20px;
    outline: 2px solid #f229;
    outline-offset: -5px;
}



@media screen and (min-width:600px) {
    .nav_container{
        width: 100dvw;
        height: clamp(60px,8dvh,70px);
        background-color: var(--light-color);
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
        padding: 12px;
        position: sticky;
        top: 0;
        box-shadow: 0 0 25px #0006;
    }
    
    .nav__logo-container{
        flex-grow: 4;
        text-align: center;
        position: absolute;
        left: 2dvw;
    }
    
    .nav__ul-container{
        flex-grow: 1;
        text-align: center;
    }
    
    .nav__ul{
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        justify-content: center;
    }
    
    .nav__item{
        list-style: none;
    }
    
    .nav__link{
        color: var(--dark-color);
        text-decoration: none;
        display: block;
        padding: 8px 10px;
        border-radius: 0;
        transition: border 0.3s, border-radius 0.2s, outline-offset 0.3s;
        margin: 2px;
    }
    
    .nav__link:hover{
        background-color: #f223;
        border-radius: 20px;
        outline: 2px solid #f229;
        outline-offset: -5px;
    }
    
    .header__logo{
        visibility: hidden;
    }
}

/*----- NAVBAR ENDS -----*/

/*----- MAIN SECTION -----*/

.main{
    margin: auto;
}

.nuestros-instructores{
    font-family: "Frijole", serif;
    color: var(--dark-color);
    margin: 20px;
}

.Instrucctores{
    margin: auto;
}

.cards{
    margin: 5px;
    border-radius: 5px;
    height: 20dvh;
    box-shadow: 0 0 15px #0006;
    justify-content: center;
    align-items: center;
}
.cards h2{
    margin-top: 15px;
    font-family: "Frijole", serif;
    text-shadow: 5px 0px #000f;
}

.cards p{
    visibility: hidden;
}

a{
    text-decoration: none;
    color: inherit;
}

.card-noticias{
    background-image: url(../img/noticias.webp);
    background-position: center;
}

.card-lugares{
    background-image: url(../img/lugares.webp);
    background-position: center;    
}

.card-eventos{
    background-image: url(../img/eventos.webp);
    background-position: center;
}

.card-teoria{
    background-image: url(../img/teoria.webp);
    background-position: center;
}
.btn-primary{
    background-color: var(--dark-color);
    color: #fff;
    border: 2px solid var(--dark-color2);
}

.btn-primary:hover{
    background-color: var(--light-color);
    color: var(--dark-color2);
    border: 2px solid var(--dark-color2);
}
.modal-body li{
    list-style: none;
}

.imagen{
    height: 200px;
}

/*----- MAIN QUERIES -----*/

@media screen and (min-width:600px) {
    .cards{
        margin: 5px;
        border-radius: 15px;
        height: clamp(20dvh,40dvh,544px);
        width: clamp(20dvw,33dvw,625px);
    }

    .cards:hover p{
        visibility: visible;
        background-color: #fff6;
        width: fit-content;
        font-weight: bold;
        padding: 15px;
        margin: auto;
        border: 2px solid var(--dark-color);
        border-radius: 10px;
    }
}

/*----- MAIN ENDS -----*/

/*----- INSTRUCTORES SECTION -----*/



/*----- INSTRUCTORES QUERIES -----*/
@media screen and (min-width:600px) {
    .card-instructor{
        width: clamp(110px, 30dvw, 300px);
    }
}
/*----- INSTRUCTORES ENDS -----*/

/*----- FOOTER STARTS -----*/

.footer{
    background-color: var(--dark-color2);
    margin-top: 20px;
}