/* Clases para el loading */

.doc-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.doc-icon {
    position: relative;
    width: 80px;
    height: 100px;
    margin-bottom: 1.5rem;
}

/* Hoja de documento */
.doc-sheet {
    position: absolute;
    width: 60px;
    height: 80px;
    background: #fff;
    border: 2px solid #cfd8dc;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    top: 10px;
    left: 10px;
    animation: float 2s ease-in-out infinite;
}

/* Líneas de texto simuladas */
.doc-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    animation: fill-line 1.5s infinite;
}

.line1 { top: 20px; animation-delay: 0s; }
.line2 { top: 35px; animation-delay: 0.2s; }
.line3 { top: 50px; animation-delay: 0.4s; }
.line4 { top: 65px; animation-delay: 0.6s; width: 60%; }

/* Spinner circular (engranaje de carga) */
.doc-spinner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 123, 255, 0.2);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Texto debajo */
.doc-text {
    color: #607d8b;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Animaciones */
@keyframes fill-line {
    0%   { opacity: 0.3; transform: scaleX(0.5); }
    50%  { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.3; transform: scaleX(0.5); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
/* Fin Clases para el loading */