﻿/* =======================================================
   Componente: wwwroot/css/hmk-loading-overlay.css
   Versión: V0.5
   Fecha: 29/05/2026 15:25
   Descripción: Estilos del overlay reutilizable WebHamak.
                Usa imagen rayo_pelsa.png con efecto de brillo
                y encendido suave.
   ======================================================= */

.hmk-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 28, 45, 0.58);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmk-loading-card {
    width: min(430px, 92%);
    background: #ffffff;
    border-radius: 22px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    border-top: 5px solid #f6c105;
    animation: hmkCardFadeIn 0.25s ease-out;
}

.hmk-loading-image-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: radial-gradient(circle, #0d5a87 0%, #003f63 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 rgba(246, 193, 5, 0.0), 0 10px 22px rgba(0, 63, 99, 0.35);
    animation: hmkWrapperGlow 1.8s infinite ease-in-out;
}

.hmk-loading-image {
    width: 46px;
    height: 46px;
    object-fit: contain;
    animation: hmkRayGlow 1.6s infinite ease-in-out;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.45)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.35));
}

.hmk-loading-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 16px auto;
    border: 4px solid #e9ecef;
    border-top: 4px solid #f6c105;
    border-radius: 50%;
    animation: hmkSpin 0.85s linear infinite;
}

.hmk-loading-title {
    color: #003f63;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.hmk-loading-lbl-info {
    display: block;
    color: #16212b;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.hmk-loading-label-informativo {
    color: #5b6770;
    font-size: 0.93rem;
    line-height: 1.4;
}

@keyframes hmkSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes hmkCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hmkRayGlow {
    0% {
        transform: scale(1);
        opacity: 0.92;
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.35)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.25));
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.65)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.55)) drop-shadow(0 0 22px rgba(255, 215, 0, 0.30));
    }

    100% {
        transform: scale(1);
        opacity: 0.92;
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.35)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.25));
    }
}

@keyframes hmkWrapperGlow {
    0% {
        box-shadow: 0 0 0 rgba(246, 193, 5, 0.00), 0 10px 22px rgba(0, 63, 99, 0.35);
    }

    50% {
        box-shadow: 0 0 18px rgba(246, 193, 5, 0.25), 0 0 30px rgba(246, 193, 5, 0.15), 0 10px 24px rgba(0, 63, 99, 0.40);
    }

    100% {
        box-shadow: 0 0 0 rgba(246, 193, 5, 0.00), 0 10px 22px rgba(0, 63, 99, 0.35);
    }
}
