/* ======================================================
   LOADER RESPONSIVE
====================================================== */

/* Contenedor Principal (Fondo) */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    /* Fondo traslúcido con desenfoque */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Contenido del Loader */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contenedor del logo y SVG */
.logo-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 */
.loader-logo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 80px;
    height: auto;
    animation: logoPulse 2s infinite ease-in-out;
}

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

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

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

/* Animación del logo */
@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 */
.loader-finished {
    transform: translateY(-100%);
}

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

.loader-main-text {
    font-size: clamp(1rem, 2vw, 1.5rem); /* responsive */
    font-weight: bold;
    color: #064e3b;
    margin: 0.5rem 0 0;
    letter-spacing: 2px;
}

.loader-sub-text {
    font-size: clamp(0.7rem, 1.5vw, 1rem); /* responsive */
    color: #047857;
    letter-spacing: 1px;
}

/* Puntos animados */
.dot {
    display: inline-block;
    position: absolute;         /* cambiar a absoluto */
    top: 70%;                   /* centrado vertical */
    left: 50%;                  /* centrado horizontal */
    transform: translate(-50%); /* ajustar justo debajo del logo */
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: logoPulse 1s infinite;
}


/* ======================================================
    MEDIA QUERIES ADICIONALES (OPCIONAL)
====================================================== */
