/* Estilos específicos para la página de documentos */

.documents {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    display: block;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Filtro */
.filter-section {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    display: none;
}

.activity-select {
    width: 100%;
    padding: 12px 45px 12px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 30px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232E7D32' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.activity-select::-ms-expand {
    display: none;
}

.activity-select::-ms-expand {
    display: none;
}

.activity-select:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 10px rgba(44, 85, 48, 0.1);
}

/* Categorías y Listas */
.document_category {
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.document_category h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.document-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tarjetas de Documentos */
.document-card {
    background: #edf1ed;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #d5dad5;
    border-left: 5px solid var(--primary-color);
}

.document-icon {
    font-size: 1.8rem;
    color: var(--primary-dark);
    background: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-info {
    flex-grow: 1;
}

.document-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.document-info p {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .document-grid {
        gap: 2.5rem; /* Aumentado el margen entre cards en móvil */
    }

    .document_category h3 {
        text-align: center;
    }

    .document-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem; /* Reducido el padding lateral de la tarjeta */
        border-left: 1px solid #d5dad5;
        border-top: 5px solid var(--primary-color);
    }

    .document-info {
        width: 100%; /* Asegura que ocupe todo el ancho */
        padding: 0;
        margin: 0;
    }

    .document-info p {
        text-align: left;
        margin: 0 !important;
        padding: 0 !important;
    }

    .document-icon {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .download-btn {
        width: 100%;
        margin-top: 1rem;
    }

    .section-header {
        margin-top: 3rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }
}
