/* --- Estilos Generales --- */
h1 {
    text-align: center;
    margin-top: 2rem;
    color: #1E3A8A;
}

#integrantes {
    padding: 2rem 1rem; /* Reducimos padding lateral en móvil */
    min-height: 50dvh;
}

.titulo-integrantes {
    text-align: center;
    margin-bottom: 2rem;
}

.integrantes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.integrante {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%; /* Por defecto ocupa todo el ancho en móvil */
    max-width: 250px; /* Evita que crezca demasiado */
}

.integrante-img {
    width: 220px;
    height: 300px; /* Cambiado a height fijo para uniformidad */
    object-fit: cover; /* Evita que la foto se deforme */
    border: 2px #000 solid;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* --- Sección Documentos --- */
#documentos {
    padding: 2rem 1rem;
    background-color: #fdfdfd;
    margin-top: 2rem;
}

.titulo-seccion-doc {
    font-size: 1.8rem;
    text-align: center;
    color: #1E3A8A;
    margin-bottom: 2rem;
}

.documentos {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tarjeta-documento {
    flex: 1 1 300px; /* Crece, se encoge y tiene un base de 300px */
    min-width: 280px; /* Ajuste para pantallas muy pequeñas como iPhone SE */
    max-width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 5px solid #1E3A8A;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.titulo-doc {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.botones-doc {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Permite que los botones se apilen si no caben */
}

.botones-doc a {
    flex: 1 1 100%; /* En móviles pequeños, cada botón ocupa una línea */
    text-align: center;
}
.boton-doc-a{
    flex: 2;
    background: #1E3A8A;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.2s ease transform;

}
.boton-doc-a:hover{
    transform:scale(1.05)
}
.boton-doc-b:hover{
    transform:scale(1.05)
}
.boton-doc-b{
    flex: 1;
    border: 1px solid #1E3A8A;
    color: #1E3A8A;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.2s ease transform;
}
#buzon-digital{
    padding: 2rem 1rem;
    background-color: #fdfdfd;
    margin-top: 2rem;
}
.titulo-seccion-buzon{
    font-size: 1.8rem;
    text-align: center;
    color: #1E3A8A;
    margin-top:2rem;
    margin-bottom: 2rem;
}
.texto-general{
    font-size:24px;
    margin: 1rem;
    text-align:center;
}


/* --- Media Queries para Pantallas Medianas/Grandes --- */
@media (min-width: 600px) {
    .botones-doc a {
        flex: 1; /* Vuelven a estar uno al lado del otro */
    }

    .titulo-seccion-doc {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    #documentos {
        padding: 3rem 5rem;
    }
}