﻿.loading-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

:root {
    --spinner-color: #333333;
    --spinner-size: 80px;
}


.sk-chase-spinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

    .sk-dot::before {
        content: '';
        display: block;
        width: 25%; 
        height: 25%;
        background-color: var(--spinner-color);
        border-radius: 100%;
        animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
    }

    .sk-dot:nth-child(1) {
        animation-delay: -1.1s;
    }

    .sk-dot:nth-child(2) {
        animation-delay: -1.0s;
    }

    .sk-dot:nth-child(3) {
        animation-delay: -0.9s;
    }

    .sk-dot:nth-child(4) {
        animation-delay: -0.8s;
    }

    .sk-dot:nth-child(5) {
        animation-delay: -0.7s;
    }

    .sk-dot:nth-child(6) {
        animation-delay: -0.6s;
    }

    .sk-dot:nth-child(1)::before {
        animation-delay: -1.1s;
    }

    .sk-dot:nth-child(2)::before {
        animation-delay: -1.0s;
    }

    .sk-dot:nth-child(3)::before {
        animation-delay: -0.9s;
    }

    .sk-dot:nth-child(4)::before {
        animation-delay: -0.8s;
    }

    .sk-dot:nth-child(5)::before {
        animation-delay: -0.7s;
    }

    .sk-dot:nth-child(6)::before {
        animation-delay: -0.6s;
    }

    .sk-dot:nth-child(7) {
        animation-delay: -0.5s;
    }

    .sk-dot:nth-child(8) {
        animation-delay: -0.4s;
    }

    .sk-dot:nth-child(9) {
        animation-delay: -0.3s;
    }

    .sk-dot:nth-child(10) {
        animation-delay: -0.2s;
    }

    .sk-dot:nth-child(11) {
        animation-delay: -0.1s;
    }

    .sk-dot:nth-child(12) {
        animation-delay: 0s;
    }

    .sk-dot:nth-child(7)::before {
        animation-delay: -0.5s;
    }

    .sk-dot:nth-child(8)::before {
        animation-delay: -0.4s;
    }

    .sk-dot:nth-child(9)::before {
        animation-delay: -0.3s;
    }

    .sk-dot:nth-child(10)::before {
        animation-delay: -0.2s;
    }

    .sk-dot:nth-child(11)::before {
        animation-delay: -0.1s;
    }

    .sk-dot:nth-child(12)::before {
        animation-delay: 0s;
    }

/* Definición de las animaciones clave */
@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {
    80%, 100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%, 0% {
        transform: scale(1.0);
    }
}

/* Spinner inicial mientras se descargan los archivos de WASM */

    #app-container:empty::before {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 500px;
        height: 500px;
        background-image: url('https://geosoft.com.sv/content/images/Logos/Gif_Logo.gif');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

/*Para los pagos*/

.pago-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    width: 100%;
    background-color: #ffffff;
}

.pago-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.logo-loader {
    width: 350px;
    height: 350px;
    margin: 0 auto 1.5rem auto;
    background-image: url('https://geosoft.com.sv/content/images/Logos/Gif_Logo.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.pago-content h2 {
    color: #333333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pago-content p {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.pago-content .advertencia {
    color: #999999;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.advertencia{
    font-weight: 600;
}

/* Animación de los 3 puntos */
.puntos-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 20px;
}

    .puntos-loader span {
        width: 12px;
        height: 12px;
        background-color: #0078d4;
        border-radius: 50%;
        display: inline-block;
        animation: brillarYSubir 1.4s infinite ease-in-out both;
    }

        .puntos-loader span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .puntos-loader span:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes brillarYSubir {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-10px); /* Sube 10 píxeles */
        opacity: 1;
    }
}


.pago-exitoso-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Ajusta la altura según necesites */
    width: 100%;
    background-color: #fcfcfc; /* Fondo muy claro para la página */
}

/* La nueva tarjeta contenedora */
.success-card-wrapper {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.1); /* Sombra suave con tono verde */
    max-width: 500px;
    width: 90%;
    text-align: center; /* Centrar todo el contenido */
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease-out;
}

    /* Efecto sutil al aparecer */
    .success-card-wrapper:hover {
        transform: translateY(-5px);
    }

/* Centrar el icono de éxito */
.centered-icon {
    margin: 0 auto 2rem auto;
}

/* Centrar textos específicos */
.text-center {
    text-align: center !important;
}


.success-icon {
    width: 70px;
    height: 70px;
    background-color: #28a745;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    animation: successPulse 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* NUEVOS ESTILOS PARA EL SVG ANIMADO */
.checkmark-svg {
    width: 35px;
    height: 35px;
    display: block;
    stroke-width: 5;
    stroke: #ffffff; /* Color blanco para el check */
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

/* Animación que dibuja la línea */
@keyframes strokeDraw {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Nueva animación de pulso para el icono */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}