/* Estilos específicos de tabs y documentos */
.tabs-container {
    margin-bottom: 25px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.tab-label {
    background: transparent;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s, border-bottom 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    top: 2px;
}

.tab-label:hover {
    color: #1f2937;
}

.tab-label.active {
    color: #0072ff;
    border-bottom: 4px solid #0072ff;
    cursor: default;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Grid de Documentos - Lista Vertical */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.document-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 15px;
    text-align: center;
    height: 100%;
}

.document-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.document-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 114, 255, 0.08);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #0072ff;
    flex-shrink: 0;
    margin-bottom: 5px;
}

.document-icon-wrapper i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Colores específicos por tipo de archivo */
/* Colores específicos por tipo de archivo */
/* PDF usa color por defecto (heredado) */
.fa-file-word {
    color: #2563eb;
}

/* Azul Word */
.fa-file-excel {
    color: #16a34a;
}

/* Verde Excel */

/* Verde Excel */
.fa-file-powerpoint {
    color: #e11d48;
}

/* Rojo PowerPoint */
.fa-file-archive {
    color: #7c3aed;
}

/* Violeta */
.fa-file-image {
    color: #0891b2;
}

/* Cyan */
.fa-file-audio,
.fa-file-video {
    color: #db2777;
}

/* Rosa */
.fa-file-alt {
    color: #4b5563;
}

/* Gris Texto */

.document-content h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
    word-break: break-word;
    /* Permitir salto de línea */
    line-height: 1.4;
}

.doc-date {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.doc-date i {
    color: #0072ff;
}

.document-action {
    flex-shrink: 0;
    width: 100%;
    margin-top: 10px;
}

.document-action .btn-principal {
    width: 100%;
    justify-content: center;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    /* Grid ya es responsivo por minmax */

    .document-card {
        padding: 20px;
    }

    /* Document-action ya es width 100% por defecto ahora */


    .doc-date {
        margin-left: 55px;
    }
}

@media (max-width: 600px) {
    .tabs-nav {
        display: none;
    }

    .tab-content {
        display: block;
        margin-bottom: 20px;
    }

    .mobile-only {
        display: block;
        margin-top: 0;
        margin-bottom: 20px;
        padding-bottom: 5px;
    }

    .document-action {
        width: 100%;
    }

    .document-action .btn-principal {
        width: 100%;
        text-align: center;
    }
}

.section-title {
    font-size: 1.3rem;
    color: #1f2937;
    margin: 0 0 20px 0;
}