﻿/*==================================================
=            LOADING PAGE
==================================================*/


.loading-inicio {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex; /* Siempre flex para que transition funcione bien */
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    /* ESTADO OCULTO LIBRE DE CLICS */

    pointer-events: none; /* CLAVE: Permite que los clics traspasen cuando no es visible */

    transition: opacity .45s ease, visibility .45s ease, background-color .8s ease, backdrop-filter .8s ease;
}

    .loading-inicio.show {
        opacity: 1;
        visibility: visible;
        display: flex;
        pointer-events: auto; /* Bloquea clics solo cuando está activamente visible */
        background: rgba(255, 255, 255);
        backdrop-filter: blur(0.5px);
        -webkit-backdrop-filter: blur(0.5px);
    }
    .loading-inicio.hidden {
        opacity: 0;
        visibility: hidden;
        display: none;
 
    }
/*==================================================
=            Image
==================================================*/

.image-iconinicio {
    display: flex;
    background: transparent;
    object-fit: contain;
    width: 200px;
    height: 200px;
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0; /* Evita que la imagen se aplaste si el texto es muy largo */
}

/*==================================================
=            LOADING TEXT
==================================================*/

.loadinginicio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}
.loadinginicio-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
}

.loading-inicio.show .loadinginicio-content {
    opacity: 1;
    transform: translateY(0);
}
/* Barra de progreso */
.loadingInicio-progressBar {
    width: 250px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 18px 0 10px 0;
}

.loadingInicio-progressFill {
    height: 100%;
    width: 0%; /* Empieza en 0% */
    background-color: #007bff; /* Cambia al color principal de tu marca */
    border-radius: 10px;

}

/* Subtexto */
.loadingInicio-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
    text-wrap:wrap;
}

/* Footer */
.loadingInicio-footer {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    padding-bottom: 10px;
}
/*==================================================
=            ANIMATION
==================================================*/

@keyframes loadingRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* Cuando la pantalla sea de celular */
@media (max-width: 720px) {
    .image-iconinicio {
        width: 130px;
        height: 130px;
    }
}