/* ======================================================
   LOADER RESPONSIVE - IES N°10 (reload.css)
   ====================================================== */

/* Contenedor Principal (Fondo) */
#loader-wrapper, #reloadPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    pointer-events: none;
}

#loader-wrapper::before, #reloadPage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Contenido del Loader */
.loader-content, .reloadConteiner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Contenedor del logo y SVG */
.logo-animation-container, .reload-animation-container {
    position: relative;
    width: 30vw;          /* tamaño relativo a pantalla */
    max-width: 150px;     /* no superar tamaño original en PC */
    aspect-ratio: 1 / 1;  /* mantener proporción cuadrada */
    margin-bottom: 1rem;
}

/* Imagen del logo centralizado */
.loader-logo-img, .reload-logo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    max-width: 80px;
    height: auto;
    animation: logoPulse 2s infinite ease-in-out;
}

/* SVG del loader */
.loader-svg, .reload-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* Path del SVG */
.loader-path, .reload-path {
    fill: none;
    stroke: #10b981; /* Verde institucional */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 2s ease-in-out infinite;
}

/* Animación del círculo giratorio */
@keyframes drawCircle {
    0% { stroke-dashoffset: 283; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -283; }
}

/* Animación del logo con efecto de sombra brillante */
@keyframes logoPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 0px #10b981);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.5));
        opacity: 1;
    }
}

/* Cuando el loader termina (efecto persiana hacia arriba) */
.loader-finished, .reload-finished {
    transform: translateY(-100%) !important;
}

/* Textos centrados */
.loader-text-group, .reload-text-group {
    text-align: center;
    padding: 0 1rem; /* espacio lateral en móviles */
}

.loader-main-text, .reload-main-text {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem); /* responsivo */
    font-weight: 800;
    color: #064e3b;
    margin: 0.75rem 0 0;
    letter-spacing: 2px;
}

.loader-sub-text, .reload-sub-text {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem); /* responsivo */
    color: #047857;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
    display: block;
}

/* Estado de carga - Contenedor del punto intermedio */
.loader-status, .reload-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0;
    min-height: 12px;
}

/* Punto dinámico de pulso */
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    animation: dotPulse 1.2s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Bloqueo del Scroll mientras se carga */
body.loading {
}

/* ======================================================
    RESPONSIVE MEDIA QUERIES
   ====================================================== */
