/* ============================================================
   splash.css
   Pantalla de presentación (resources/views/pages/splash).
   --splash-segundos lo define la vista (config/splash.php).
   ============================================================ */

.splash {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    /* Mismo azul oscuro que el fondo del logo de BellSoft y el cabezal de "Acerca de...". */
    background: radial-gradient(ellipse at center, #232352 0%, #171735 60%, #10102a 100%);
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    transition: opacity 250ms ease;
}

/* Al continuar: se desvanece antes de pasar al login. */
.splash--saliendo {
    opacity: 0;
}

.splash__contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem 1rem;
    text-align: center;
    outline: none;
    animation: splash-entrada 700ms ease-out both;
}

.splash__logo-cliente {
    height: 11rem;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.25rem;
}

.splash__nombre {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.splash__subtitulo {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--color-azul-200);
}

.splash__version {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #9aa3c7;
}

/* Barra de tiempo: se llena en --splash-segundos. */
.splash__barra {
    width: min(18rem, 70vw);
    height: 4px;
    margin-top: 2.25rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.splash__barra-progreso {
    height: 100%;
    background-color: var(--color-naranja-500);
    transform-origin: left center;
    animation: splash-progreso var(--splash-segundos, 5s) linear forwards;
}

.splash__ayuda {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #9aa3c7;
    animation: splash-parpadeo 2s ease-in-out infinite;
}

.splash__pie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: #9aa3c7;
    animation: splash-entrada 700ms 200ms ease-out both;
}

.splash__logo-bellsoft {
    height: 3rem;
    width: auto;
}

@keyframes splash-entrada {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes splash-progreso {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes splash-parpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* Sin animaciones decorativas para quien las tenga desactivadas (la barra se deja: indica tiempo). */
@media (prefers-reduced-motion: reduce) {
    .splash__contenido,
    .splash__pie,
    .splash__ayuda {
        animation: none;
    }
}

@media (max-width: 480px) {
    .splash__logo-cliente {
        height: 8rem;
    }

    .splash__nombre {
        font-size: 2.25rem;
    }

    .splash__subtitulo {
        font-size: var(--text-base);
    }

    .splash__pie {
        flex-wrap: wrap;
    }
}
