@import url(menu.css);
@import url(banner.css);
@import url(bienvenidos.css);
@import url(blog.css);
@import url(info.css);
@import url(footer.css);

/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body {
    font-family: "Afacad Flux", sans-serif;
    font-size: 16px;
    color: #000000;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Añadir padding para evitar que el contenido toque los bordes */
}

footer {
    background-color: #002e5d;
    color: #ffffff;
    padding: 80px 0 20px 0;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
}

.copy {
    text-align: center;
    color: #ffffff;
}

/* Contenedor del acordeón */
#acordeones {
    padding: 30px;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: none;
}

.titulopreguntas {
    margin-top: 10%;
}

/* Estilos para cada pregunta */
details {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #002f5d52;
}

details[open] {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Título de cada pregunta */
summary {
    background-color: #a6d4ff;
    color: #000;
    font-weight: bold;
    padding: 15px 20px;
    font-size: 25px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, padding 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

summary:hover {
    background-color: #81b7e7;
    padding: 15px 22px;
}

summary::after {
    content: "\25BC";
    font-size: 16px;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(-180deg);
}

/* Contenido de cada pregunta */
details p {
    padding: 20px;
    background-color: #ffffff;
    color: #333;
    font-size: 20px;
    line-height: 1.6;
    border-top: 1px solid #ddd;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Estilos opcionales para los títulos de secciones */
.tituloacordeon {
    margin-top: 80px;
    margin-bottom: 30px;
    font-size: 40px;
    font-weight: 400;
    color: #000;
    text-align: left;
    padding-bottom: 10px;
}

/* Media Queries */
@media only screen and (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    .contenedor {
        padding: 0 10px;
    }

    summary {
        font-size: 22px;
        padding: 12px 16px;
    }

    details p {
        font-size: 18px;
    }

    .tituloacordeon {
        font-size: 35px;
    }
}

@media only screen and (max-width: 768px) {
    .footer-row {
        text-align: center;
    }

    body {
        font-size: 14px;
    }

    .contenedor {
        width: 100%;
        padding: 0 10px;
    }

    #acordeones {
        padding: 20px;
        max-width: 100%;
    }

    summary {
        font-size: 20px;
        padding: 10px 14px;
    }

    details p {
        font-size: 16px;
    }

    .titulopreguntas {
        margin-top: 40%;
        margin-bottom: 0%;
        font-size: 35px;
    }

    .tituloacordeon {
        text-align: center;
        font-weight: 400;
        margin-top: 6%;
        font-size: 30px;
    }
}

@media only screen and (max-width: 480px) {
    .btn {
        width: 100%;
    }

    body {
        font-size: 12px;
    }

    summary {
        font-size: 18px;
        padding: 8px 12px;
    }

    details p {
        font-size: 14px;
    }

    .titulopreguntas {
        margin-top: 50%;
        font-size: 30px;
    }

    .tituloacordeon {
        text-align: center;
        font-weight: 400;
        margin-top: 6%;
        font-size: 25px;
    }
}
