/* ---ESTILOS LANDING--- 
    En orden de aparición en la página:
    - Slider
    - Sección Aimplas (descripción)
    - Sección Máster
    - Últimas noticias
    - Sección formación-actividades
    - Sección dudas
*/


/* ---SLIDER--- */

.transition {
    transition: background-image 0.8s ease-in-out;
}

.slider {
    width: 100%;
    height: 52.5vh;
    background-size: 100%;
    object-position: 100% 0;
    object-fit: cover;
}

.layer {
    padding: 0 20px;
}

.slider h1 {
    position: absolute;
    color: #FFFDF6;
    z-index: 1;
    bottom: 57.5%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 2.2em;
    max-width: 35%; /*Modifica esta propiedad para ajustar cómo de larga será la caja de texto del titular*/
}

.slider button {
    position: absolute;
    z-index: 1;
    top: 42.5%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 10%;
}

.info {
    bottom: 15%;
    left: 10%;
}

.arrow-left,
.arrow-right {
    position: absolute;
    top: 32.5%;
    cursor: pointer;
    width: 1.5%;
    margin: 0 20px;
}

.arrow-right {
    right: 0;
    transform: scaleX(-1);
}

.color-layer {
    width: 100%;
    height: 100%;
    background-color: var(--naranja);
    opacity: 0.9;
}

.steppers {
    position: absolute;
    display: flex;
    gap: 15px;
    flex-direction: row;
    bottom: 40%;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
}

.steppers div {
    cursor: pointer;
    width: 10px;
    height: 10px;
    border: 3px solid white;
    border-radius: 100%;
}


/* ---SECCIÓN AIMPLAS--- */

#aimplas {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 3% 7%;
    align-items: center;
}

#aimplas .logos {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.logos img {
    width: 45%;
}

#aimplas p {
    font-size: 1.2em;
}


/* ---SECCIÓN MASTER--- */

#master {
    padding: 5% 10%;
    background-color: #fafafa;
    color: #FFFDF6;
    background-image: url(../images/master.jpg);
    background-size: 100%;
    box-shadow: inset 0 0 0 400px #001118DF;
    padding-bottom: 6%;
}

#master h2 {
    font-weight: lighter;
    margin: 0;
}

#master h1 {
    margin-top: 0;
    font-size: 2.5em;
    margin-bottom: 3%;
}

#master p {
    margin-left: 5%;
    text-align: justify;
    font-size: 1.2em;
    width: 70%;
}

#master .link {
    margin-left: 60%;
    color: #19ff0c;
}

#master div {
    display: flex;
    justify-content: flex-end;
    padding-right: 7.5%;
}


/* ---ÚLTIMAS NOTICIAS--- */

.news {
    padding: 5% 6%;
}

.news h1 {
    color: var(--naranja);
    padding-bottom: 30px;
    font-size: 2.5em;
}

.news .btn-more {
    float: right;
    padding: 10px 15px;
    margin: 30px 0;
    background-color: var(--azul);
    color: white;
    font-family: Roboto;
    font-size: 1em;
    font-weight: bolder;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 7%;
}

.news-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
}


/* ---SECCIÓN DUDAS--- */

#dudas {
    display: block;
    background-color: transparent;
    background-image: none;
    width: 100%;
    padding: 8% 0;
}

#dudas div {
    color: #001118;
    text-align: center;
}

#dudas div p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 3%;
}

/* ---SECCION CONVOCATORIA--- */

#convocatoria {
    padding: 5% 10%;
    background-color: #fafafa;
    color: #FFFDF6;
    background-image: url(../images/convocatorias.jpg);
    background-size: 100%;
    box-shadow: inset 0 0 0 400px #001118DF;
    padding-bottom: 6%;
}

#convocatoria a h1{
    text-align: center;
    font-size: 3rem;
    color: #FFFDF6;
}

#convocatoria a h1:hover {
    color: var(--naranja) !important;
}

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

    .slider {
        height: 90vh;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .slider h1 {
        bottom: 40%;
    }
    .slider .info {
        max-width: 70%;
        font-size: 1.5em;
    }
    .slider .botonAzul {
        width: 50%;
        top: 62.5%;
    }

    .steppers {
        bottom: 10%;
    }

    .arrow-left, .arrow-right {
        width: 5%;
        top: 53%;
    }

    #aimplas {
        flex-direction: column;
    }
    #aimplas .logos {
        align-items: center;
        padding: 20px 0;
    }
    #aimplas img {
        width: 75%;
    }

	#master {
		background-size: cover !important;
	}
    #master p {
        width: 100%;
        margin: 20px 0;
    }
    #master div {
        padding: 0;
    }
    #master h2 {
        font-weight: lighter;
        margin: 0;
        font-size: 1em;
    }
    #master h1 {
        margin-top: 0;
        font-size: 1.75em;
        margin-bottom: 3%;
    }

    #convocatoria a h1 {
        font-size: 2rem;
    }

    #dudas p {
        font-size: 1.2em !important;
    }
}