/* Estilos para Documentos Descargables */
.events-pdfs {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 25px;
}

.events-pdfs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f0fe;
}

.events-pdfs h3 {
    color: #1a4b8c;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-pdfs h3 i {
    color: #e74c3c;
}

/* Botón de agregar documento */
.btn-add-documento {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-add-documento:hover {
    background: linear-gradient(135deg, #34ce57 0%, #2dd4a4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

.btn-add-documento i {
    font-size: 1rem;
}

/* Buscador de documentos */
.documentos-search {
    margin-bottom: 20px;
}

.documentos-search input {
    width: 100%;
    padding: 10px 15px;
    padding-left: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 12px center;
    background-size: 18px;
}

.documentos-search input:focus {
    outline: none;
    border-color: #1a4b8c;
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.events-pdfs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Tarjetas de documentos */
.documento-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #1a4b8c;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.documento-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(26, 75, 140, 0.15);
    border-left-color: #e74c3c;
}

.documento-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.documento-info {
    flex: 1;
}

.documento-titulo {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.documento-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #777;
}

.documento-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.documento-meta i {
    color: #1a4b8c;
}

.documento-download {
    flex-shrink: 0;
    background: #1a4b8c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.documento-card:hover .documento-download {
    background: #e74c3c;
    transform: scale(1.05);
}

/* Mensaje cuando no hay documentos */
.no-documentos {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.no-documentos i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

/* Panel de administración de documentos */
.admin-documentos-panel {
    background: #f8f9fa;
    border: 2px dashed #1a4b8c;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.admin-documentos-panel h4 {
    color: #1a4b8c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-documento-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a4b8c;
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    cursor: pointer;
}

.file-input-wrapper::before {
    content: '\f093';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a4b8c;
    pointer-events: none;
}

.btn-upload-documento {
    background: linear-gradient(135deg, #1a4b8c 0%, #0D47A1 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-upload-documento:hover {
    background: linear-gradient(135deg, #2a6eda 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 75, 140, 0.3);
}

.btn-upload-documento:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Botón de eliminar documento */
.btn-delete-documento {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-delete-documento:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .events-pdfs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-add-documento {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-documento span {
        display: inline;
    }
    
    .documento-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .documento-download {
        width: 100%;
        justify-content: center;
    }
    
    .documento-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .btn-add-documento span {
        display: none;
    }
    
    .btn-add-documento {
        width: auto;
        padding: 10px;
    }
    
    .events-pdfs-header {
        flex-direction: row;
        justify-content: space-between;
    }
}
