/* ASEMOPT Documents Manager - Frontend Styles */

.asemopt-documents-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.asemopt-documents-header {
    margin-bottom: 30px;
    text-align: center;
}

.asemopt-documents-header h2 {
    font-size: 32px;
    color: #FF8C00;
    margin: 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.asemopt-documents-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF8C00 0%, #FFD700 100%);
    border-radius: 2px;
}

/* No documents message */
.no-documents {
    text-align: center;
    padding: 60px 20px;
    background: #FFF8F0;
    border-radius: 12px;
    color: #666;
    font-size: 16px;
    border: 2px dashed #FFD700;
}

/* Documents Section */
.documents-section {
    margin-bottom: 40px;
}

.section-category-title {
    font-size: 24px;
    color: #FF8C00;
    margin: 0 0 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFAED 100%);
    border-left: 5px solid #FFD700;
    border-radius: 8px;
    font-weight: 600;
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Document Item - Diseño diferente al de reportes */
.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    gap: 20px;
}

.document-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.15);
    border-color: #FFD700;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.document-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);*/
	background:#FFD700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);*/
}

.document-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.document-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Download Button - Estilo diferente */
.document-download-btn {
    flex-shrink: 0;
    padding: 12px 28px;
    /* background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);*/
	background: #FFD700;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.document-download-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.35);
    color: white;
}

.document-download-btn:active {
    transform: translateY(0);
}

/* Diferenciación visual entre Reglamentos y Formularios */
.asemopt-documents-container.reglamentos .document-icon {
    background: #FFA500 ;
}

.asemopt-documents-container.formularios .document-icon {
    background: #FFD700;
}

.asemopt-documents-container.formularios .section-category-title {
    color: #FFA500;
    border-left-color: #FF8C00;
}

.asemopt-documents-container.formularios .asemopt-documents-header h2 {
    color: #FFA500;
}

.asemopt-documents-container.formularios .asemopt-documents-header h2::after {
    background: linear-gradient(90deg, #FFA500 0%, #FFD700 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .asemopt-documents-container {
        padding: 15px;
    }
    
    .asemopt-documents-header h2 {
        font-size: 26px;
    }
    
    .section-category-title {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        gap: 15px;
    }
    
    .document-info {
        width: 100%;
    }
    
    .document-download-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    
    .document-icon {
        width: 45px;
        height: 45px;
    }
    
    .document-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .document-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .asemopt-documents-header h2 {
        font-size: 22px;
    }
    
    .section-category-title {
        font-size: 18px;
    }
    
    .document-item {
        padding: 15px;
    }
    
    .document-title {
        font-size: 14px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-item {
    animation: fadeInUp 0.5s ease forwards;
}

.document-item:nth-child(1) { animation-delay: 0.05s; }
.document-item:nth-child(2) { animation-delay: 0.1s; }
.document-item:nth-child(3) { animation-delay: 0.15s; }
.document-item:nth-child(4) { animation-delay: 0.2s; }
.document-item:nth-child(5) { animation-delay: 0.25s; }
.document-item:nth-child(n+6) { animation-delay: 0.3s; }