/*
==================================================================
ESTILOS GENERALES
==================================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --font-poppins: "Poppins", sans-serif;
  --color-principal: red;
  --color-secundario: rgb(124, 2, 2);
  --color-blanco: white;
  --color-negro: black;
}
*{
    margin: 0;
}
.layout {
    font-family: var(--font-poppins);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

.seccionEventos,
.seccionPreinscripcion,
.seccionAboutUs,
.seccionContacto {
    margin-top: 5rem; 
    margin-bottom: 8rem; 
}
/*
==================================================================
ESTILOS DEL HEADER
==================================================================
*/
header{
    height: 4.5rem;
    width: 100%;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: var(--color-blanco);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
}
header nav ul{
    list-style: none;
    display: flex;
    gap: 3rem;
}
.contenedorHeader{
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logoHeader{
    height: 3rem;
    width: 3rem;
    display: flex;
}
.btnNav{
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 1em;
}
/*
==================================================================
ESTILOS DEL INICIO
==================================================================
*/
.seccionInicio{
    position: relative;
    top: 5rem;
    height: 100vh;
    width: 100%;
}
.seccionInicio section{
    position: absolute;
    top: 15%;
    left: 5%;
    border: 1px solid var(--color-principal);
    border-radius: 20px;
    height: 60vh;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    animation: abrirSeccion 2s forwards linear;
}
@keyframes abrirSeccion {
    0%{
        height: 1vh;
    }
}
.logoInicio{
    position:absolute;
    right: 5%;
    top: 10%;
    display: flex;
    height: 60vh;
    width: 35vw;
}
.logoInicio img{
    width: 100%;
    height: 100%;
}
.bannerInicio{
    height: 60%;
    margin-left: 5%;
}
.bannerInicio span{
    font-size: 3vw;
    display: flex;
    flex-direction: column;
    color: transparent;
}
.mvAdelante{
    animation: mvA forwards 2s ;
    animation-delay: 2s;
}
@keyframes mvA {
    0%{
       margin-left: -100px;
    }
    100%{
       margin-left: 0;
       color: var(--color-negro);
    }
}
.mvAtras{
    animation: mvAt forwards 2s;
    animation-delay: 2s;
}
@keyframes mvAt {
    0%{
       margin-left: 100px;
    }
    100%{
       margin-left: 0;
       color: var(--color-negro);
    }
}
.bannerInicio p{
    margin-top: 2%;
    font-size: 1.8vw;
}
.bannerInicio button{
    margin-top: 5%;
    width: 90%;
    height: 6vh;
    font-size: 1vw;
    border: none;
    outline: none;
    color: var(--color-blanco);
    background-color: var(--color-principal);
    border-radius: 100px;
    background: linear-gradient(90deg, var(--color-secundario), red);
    background-size: 300% 300%;
    animation: btnDegrade 5s ease-in-out infinite;
}
@keyframes btnDegrade {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.bookIlustration{
    position: absolute;
    top: 5%;
    right: 2%;
    height: 15vh;
    width: 10vw;
    display: flex;
}
/*
==================================================================
ESTILOS DEL EVENTOS
==================================================================
*/
.seccionEventos{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.seccionEventos section{
    width: 95%;
    height: 90%;
    border: 2px solid var(--color-principal);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ukFlagEvents{
    position: absolute;
    opacity: 0.2;
    width: 95%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ukFlagEvents img{
width: 100%;
height: 120vh;
}
.slider {
    width: 100%;
    overflow: hidden;
}

.sliderBox {
    display: flex;
    width: max-content;
    animation: slide 12s linear infinite;
}

.card {
    position: relative;
    flex: 0 0 auto;
    width: 20em;
    height: 12em;
    background: var(--color-blanco);
    color: var(--color-blanco);
    font-size: 3rem;
    margin-right: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.imgSlider1{
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.imgSlider2{
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.imgSlider3{
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/*
==================================================================
ESTILOS DE Preinscripcion
==================================================================
*/
.seccionPreinscripcion {
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15rem;
}

.bannerPreinscripcion span {
    font-size: 2.6rem;
    line-height: 1.2;
    display: block;
    margin-left: 1vh;
}

.bannerPreinscripcion p {
    margin-top: 1rem;
    font-size: 1.2rem;
    max-width: 300px;
    margin-left: 1vh;
}

.formBox {
    padding: 2.5rem;
    border: 1px solid #000;
    border-radius: 20px;
    width: 430px;
}

.formBox form input {
    width: 100%;
    height: 2rem;
    margin-bottom: 1rem;
    border: 1px solid #777;
    border-radius: 4px;
    font-size: 1rem;
}

.formBox form button {
    width: 100%;
    background: red;
    border: none;
    color: white;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    height: 3rem;
}
.bannerPreinscripcion{
   border-left: 2px solid var(--color-principal); 
}

/*
==================================================================
ESTILOS DE SOBRE NOSOTROS
==================================================================
*/
.aboutUsIlustration{
    opacity: 0.2;
    width: 95%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.aboutUsIlustration img{
width: 100%;
height: 120vh;
}
.seccionAboutUs{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.seccionAboutUs section{
    position: absolute;
    height: 90vh;
    width: 95%;
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 50px;
    color: white;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.seccionAboutUs section h2,
.seccionAboutUs section span:first-child {
    display: block;
    font-size: 3vw;
    text-align: center;
    margin-bottom: 2rem;
        width: 90%;   
}

.seccionAboutUs section p {
    font-size:2vw;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    width: 90%;
}
/*
==================================================================
ESTILOS DEL CONTACTO
==================================================================
*/
.seccionContacto{
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.seccionContacto section{
    height: 100%;
    width: 95%;
    background-color: var(--color-secundario);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}
.seccionContacto section h2{
    height: 4rem;
}
.seccionContacto form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    width: 90%;
}
.seccionContacto form input{
    height: 2rem;
    width: 90%;
    outline: none;
}
.seccionContacto form textarea{
    height: 15rem;
    resize: none;
    outline: none;
    width: 90%;
}
.seccionContacto form button{
    height: 3rem;
    outline: none;
    border: none;
    width: 90%;
    background-color: var(--color-blanco);
    border-radius: 20px;
}
/*
==================================================================
ESTILOS DEL FOOTER
==================================================================
*/
footer{
    height: 25vh;
    width: 100%;
    background-color: var(--color-secundario);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--color-blanco);
}
.footerBox{
    width: 95%;
    height: 75%;
    display: flex;
    align-items: center;
    flex-direction: row;
}
.footerBox div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: max-content;
    width: 25%;
}
.footerBox div span{
    font-size: 1rem;
}
.logoFooter img{
    height: 6rem;
}
.redes img{
    height: 2rem;
    width: 2rem;
}
/*
==================================================================
ADAPTACION A MOBILES
==================================================================
*/
@media (max-width: 900px) {
    .seccionEventos,
    .seccionPreinscripcion,
    .seccionAboutUs,
    .seccionContacto {
        margin-top: 2.5rem; 
        margin-bottom: 2.5rem; 
}
header nav ul{
    gap: 1rem;
}
/*
==================================================================
Inico
==================================================================
*/
    .seccionInicio{
        width: 100%;
        flex-direction: column;
    }
    .seccionInicio section{
        width: 95%;
        height: 88%;
        top: 0%;
        left: 2.5%;
    }
    .logoInicio{
        right: 15%;
        top: 2%;
        display: flex;
        height: 30vh;
        width: 70vw;
        animation: logoDelay 3s forwards linear;
        animation-delay: 2s;
        opacity: 0;
    }
    @keyframes logoDelay{
        0%{
            opacity: 0;
        }
        100%{
            opacity: 1;
        }
    }
    .logoInicio img{
        width: 100%;
        height: 100%;
    }
    .bannerInicio{
        width: 95%;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: left;
    }
    .bannerInicio span{
        font-size: 2rem;
    }
    .bannerInicio p{
        margin-top: 2rem;
        font-size: 1rem;
    }
    .bannerInicio span, p{
        width: 90%;
    }
    .bannerInicio button{
        font-size: 1rem;
    }
    .bookIlustration{
    position: absolute;
    top: 80%;
    right: 25%;
    height: 15vh;
    width: 10vw;
    display: flex;
    animation: logoBook 3s forwards linear;
    animation-delay: 2s;
    opacity: 0;
   }
   @keyframes logoBook{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
   .mvAdelante{
    margin-top: 35%;
   }
/*
==================================================================
eventos
==================================================================
*/
   .ukFlagEvents img{
   height: 50vh;
   }
   .seccionEventos section{
    border: none;
    border-radius: 0;
   }
   .card{
    height:6em;
    width: 8em;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
   }
   .seccionEventos{
    height: 50vh;
   }
/*
==================================================================
PreInscripcion
==================================================================
*/
   .seccionPreinscripcion{
    flex-direction: column;
    height: 80vh;
    gap: 2rem;
   }
    .seccionPreinscripcion span{
    font-size: 2.25rem;
   }
   .formBox{
    width: 85%;
    border: none;
   }
/*
==================================================================
About Us
==================================================================
*/
.seccionAboutUs{
    height: 50vh;
}
.seccionAboutUs section p{
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.seccionAboutUs section h2{
    font-size: 1.5rem; 
        margin-bottom: 0rem;
}
.seccionAboutUs section{
    height: 50vh;
    width: 100%;
    border-radius: 0px;
}
.aboutUsIlustration img{
width: 100%;
height: 60vh;
}


/*
==================================================================
Contacto
==================================================================
*/
.seccionContacto section{
    width: 100%;
    border-radius: 0px;
}
.seccionContacto section h2{
    height: 4rem;
    font-size: 1rem;
}
.seccionContacto form{
    width: 100%;
}
.seccionContacto form input{
    width: 95%;
}
.seccionContacto form textarea{
    width: 95%;
}
.seccionContacto form button{
    width: 95%;
}
/*
==================================================================
footer
==================================================================
*/
    footer{
        height: 28vh;
    }
    .footerBox div p{
    font-size: 0.6rem;
    }
    .footerBox div span{
    font-size: 0.7rem;
    }
    .footerBox .logoFooter{
    display: none;
}
    .footerBox {
        justify-content: space-between;
        align-items: flex-start;
}
    .footerBox div{
     width: 100%;
     gap: 1rem;
}
.copy p{
    width: 100%;
    font-size: 0.7rem;
}
}