@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

body {
    font-family: "Quicksand", sans-serif;
    margin: 0;
}

.contenedor-header{
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2199;
}
.contenedor-header header{
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
}

.logo {
    display: inline-block;
    padding-top: 5px;
}
.logo-img {
    width: 250px; /* Ajusta el tamaño según sea necesario */
    height: 100%; /* Mantiene la proporción de la imagen */
    border-radius: 5%;
}

.contenedor-header header ul{
    display: flex;
    list-style: none;
}
.contenedor-header header nav ul li a{
    color: #01093a;
    margin: 0 10px;
    padding: 10px 3px 10px 3px;
    transition: .5s;
    text-decoration: none;
}
.contenedor-header header nav ul li a:hover{
    color: #fff;
    background-color: #01093a;
}
.nav-responsive{
    background-color: #01093a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}


/*Imagen*/
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; /* 60% of the viewport height */
    background: url('../imagenes/4\ SECUNDARIA.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center 20%; /* Alinea la imagen al centro horizontalmente y hacia arriba verticalmente */
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 2s forwards;
}
.hero-content h1 {
    font-size: 3rem;
    margin: 0 0 20px 0;
}
.hero-content p {
    font-size: 1.2rem;
}
@keyframes fadeIn {
    from{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/*DESCRIPCION*/

section {
    padding-top: 60px;

    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #252A2E;
}

.descripcion h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #01093a;
    animation: fadeIn 2s forwards;
}

.descripcion {
    padding: 60px 20px;
    background: linear-gradient(to top, rgba(211, 212, 212, 0.8), rgb(211, 212, 212, 0.8));
    margin-top: 60px;
}

.descripcion-texto {
    opacity: 0;
    transform: translateY(20px); /* Comienza desplazado hacia abajo */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Transiciones para animación */
    margin-left: 5%;
    margin-right: 5%;
}

.descripcion p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.descripcion-texto.visible {
    opacity: 1;
    transform: translateY(0); /* Termina en su posición original */
}

/*LISTA*/

.lista-section {
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
}

.lista-section h1{
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #01093a;
    animation: fadeIn 2s forwards;
}

.lista-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
    padding-bottom: 20px;
}

.lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0; /* Ocultamos el texto inicialmente */
    transform: translateY(20px); /* Lo movemos hacia abajo inicialmente */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Animaciones */
    border-bottom: #ccc solid 2px;
    padding-bottom: 5px;
}

.icono {
    position: absolute;
    left: -10px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #01093a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 1;
}

.texto {
    display: block;
    position: relative;
    padding-left: 10px;
}

.lista-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #01093a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.lista-item:hover::after {
    transform: scaleX(1);
}

/* Clase añadida cuando el elemento está en vista */
.lista-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/*Acordeon*/
.acordeon {
    min-height: 100vh;
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #252A2E;
}

.title {
    font-size: 3rem;
    margin: 2rem 0rem;
}

.faq {
    max-width: 700px;
    min-width: 700px;
    margin-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
    cursor: pointer;
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question h3 {
    font-size: 1.8rem;
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.answer p {
    padding-top: 1rem;
    line-height: 1.6;
    font-size: 1.4rem;
}

.faq.active .answer {
    max-height: 300px;
    animation: fade 1s ease-in-out;
}

.faq.active svg {
    transform: rotate(180deg);
}

svg {
    transition: transform 0.5s ease-in;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Media Queries para pantallas más pequeñas */
@media (max-width: 768px) {
    .acordeon {
        width: 90%; /* Ajusta el ancho para pantallas más pequeñas */
    }

    .title {
        font-size: 2.5rem; /* Reduce el tamaño de la fuente del título */
    }

    .faq {
        max-width: 100%; /* Permite que el acordeón use el 100% del ancho disponible */
        min-width: 100%; /* Ajusta la anchura mínima para pantallas pequeñas */
    }

    .question h3 {
        font-size: 1.6rem; /* Reduce el tamaño de la fuente de la pregunta */
    }

    .answer p {
        font-size: 1.2rem; /* Reduce el tamaño de la fuente de la respuesta */
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem; /* Reduce aún más el tamaño de la fuente del título */
    }

    .question h3 {
        font-size: 1.4rem; /* Reduce aún más el tamaño de la fuente de la pregunta */
    }

    .answer p {
        font-size: 1rem; /* Reduce aún más el tamaño de la fuente de la respuesta */
    }
}

/*FOOTER*/
footer {
    background-color: #252A2E;
    color: #fff;
    padding: 50px 0 30px 0;
    text-align: center;
    position: relative;
    width: 100%;
    background: linear-gradient(to top, rgba(56, 56, 56, 1),rgba(56, 56, 56, 0.9)),
    url(../imagenes/logo2.jpg);
    background-size: cover;
    background-position: center 60%;
    border-top: 10px solid #01093a;
    margin-top: 20px;
}

footer .arriba {
    display: block;
    width: 50px;
    height: 50px;
    background-color: #01093a;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: -25px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 18px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #01093a;
    border-bottom: 1px solid #01093a;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-button {
    background-color: #01093a;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px; /* Ajusta el padding según el tamaño deseado */
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block; /* Asegura que los botones ocupen el ancho completo del contenedor */
    width: 100%; /* Establece que los botones ocupen el ancho completo del contenedor */
}

.footer-button:hover {
    background-color: #fff;
    color: #01093a;
}

footer .redes {
    display: flex;
    flex-direction: column; /* Coloca los ítems en una columna */
    align-items: flex-start; /* Centra horizontalmente los ítems dentro del contenedor */
    margin-bottom: 20px;
}

footer .redes div {
    display: flex;
    align-items: center; /* Centra verticalmente íconos y texto dentro de cada div */
    margin-bottom: 10px;
}

footer .redes a {
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: background-color 0.3s;
    margin-right: 10px; /* Espacio entre el ícono y el texto */
}

footer .redes a:hover {
    background-color: #01093a;
}

footer .redes .redes-texto {
    margin-left: 10px; /* Espacio entre el ícono y el texto */
    vertical-align: middle; /* Alinea verticalmente el texto con el ícono */
    line-height: 42px; /* Alinea verticalmente el texto con la altura del ícono */
}

footer .info {
    margin-top: 20px;
}

footer .info .horario,
footer .info .email {
    margin-bottom: 15px;
}

footer .info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

footer .info p {
    margin: 5px 0 0;
    font-size: 14px;
}

footer .info .email-content {
    display: flex;
    align-items: center;
}

footer .info .email-content i {
    font-size: 20px;
    margin-right: 10px;
}

footer .info .email-content span {
    font-size: 14px;
}

footer .mapa iframe {
    border: 2px solid #fff;
    border-radius: 10px;
    margin-top: 10px;
    width: 400px; /* Ajusta el tamaño según tus necesidades */
    height: 300px; /* Ajusta el tamaño según tus necesidades */
    max-width: 100%; /* Asegura que el mapa no se desborde del contenedor */
}

/*RESPONSIVE*/
@media screen and (max-width:1020px){
    nav{
        display: none;
    }
    .nav-responsive{
        display: block;
    }
    nav.responsive{
        display: block;
        position: absolute;
        right: 0;
        top: 75px;
        background-color: #fff;
        width: 280px;   
    }
    nav.responsive ul{
        display: block; 
    }
    nav.responsive ul li{
        border-bottom: 1px solid #01093a;
        padding: 10px 0;
    }
}

/* Media Queries para diferentes tamaños de pantalla */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row; /* Cambia a disposición en fila para pantallas más grandes */
    }

    .footer-column {
        width: 30%; /* Ajuste de columnas para pantallas más grandes */
        text-align: left;
        margin-right: 20px;
    }

    footer .mapa iframe {
        height: 300px; /* Fija la altura del mapa en pantallas más grandes */
    }
}

@media (max-width: 767px) {
    footer {
        background: linear-gradient(to top, rgba(56, 56, 56, 1),rgba(56, 56, 56, 0.6));
    }
    .footer-content {
        flex-direction: column; /* Disposición en columna para pantallas pequeñas */
        align-items: center;
    }

    .footer-column {
        width: 100%; /* Asegura que las columnas ocupen todo el ancho en pantallas pequeñas */
        margin-bottom: 20px;
    }
}