
.documentos-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.documentos-LINE {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}
.documentos-LT {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    margin-top: 150px;
} 
.documentos-titulo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.documentos-titulo-icono {
    font-size: 1.5rem;
}

.documentos-subtitulo {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.lista-carpetas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.carpeta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.carpeta:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.carpeta[open] {
    border-color: #4299e1;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.12);
}

.carpeta > summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
    transition: background 0.2s ease;
}

.carpeta > summary::-webkit-details-marker {
    display: none;
}

.carpeta > summary:hover {
    background: #edf2f7;
}

.carpeta[open] > summary {
    background: #ebf8ff;
    border-bottom: 1px solid #bee3f8;
    color: #2b6cb0;
}

.icono-carpeta {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.carpeta-nombre {
    flex: 1;
}

.carpeta-flecha {
    font-size: 0.85rem;
    color: #a0aec0;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.carpeta[open] > summary .carpeta-flecha {
    transform: rotate(90deg);
    color: #4299e1;
}

.contenido-carpeta {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carpeta-hija {
    margin-left: 0.5rem;
    border-left: 3px solid #bee3f8;
    border-radius: 8px;
}

.carpeta-hija > summary {
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    background: #f7fafc;
}

.carpeta-hija[open] > summary {
    background: #ebf8ff;
}

.archivo-pdf {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3748;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.archivo-pdf::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e53e3e;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.archivo-pdf:hover {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #c53030;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.1);
}

.archivo-pdf:hover::before {
    opacity: 1;
}

.archivo-icono {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.archivo-nombre {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archivo-accion {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.archivo-pdf:hover .archivo-accion {
    opacity: 1;
    transform: translateX(0);
    color: #e53e3e;
}

.sin-documentos {
    text-align: center;
    padding: 3rem 1rem;
    background: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    color: #718096;
}

.sin-documentos-icono {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.sin-documentos p {
    margin: 0;
    font-size: 1rem;
}


@media (max-width: 576px) {
    .documentos-titulo {
        font-size: 1.4rem;
    }

    .carpeta > summary {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .archivo-pdf {
        padding: 0.65rem 0.85rem;
        font-size: 0.88rem;
    }

    .archivo-accion {
        display: none;
    }

    .carpeta-hija {
        margin-left: 0.25rem;
    }
}