* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #000;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Globo cruzando el cielo lento, de arriba a la derecha hacia abajo-izquierda,
   detrás de la lluvia de billetes (que va de z-index 1 a 6) */
.globo {
    position: fixed;
    top: 6%;
    right: -15%;
    width: clamp(160px, 15vw, 320px);
    z-index: 0.5;
    opacity: 0.8;
    pointer-events: none;
    animation: driftGlobo 40s linear 1 forwards;
}

@keyframes driftGlobo {
    from { transform: translate(0, 0); }
    to   { transform: translate(-140vw, -12vh); }
}

/* Fondo de imagen: una versión vertical para móvil, otra horizontal para
   tablet/desktop (misma foto, recortada distinto para cada formato) */
@media (max-width: 768px) {
    body {
        background:
            linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
            url('./tinified/FONDO_HD2.png') center / cover no-repeat;
    }
}

@media (min-width: 769px) {
    body {
        background:
            linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
            url('./tinified/FONDO_DESKTOP.png') center / cover no-repeat;
    }
}

/* Glow ambiental de fondo, muy lento y sutil, para que el negro no se sienta muerto */
body::before {
    content: '';
    position: fixed;
    inset: -10%;
    z-index: 0;
    background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.06), transparent 60%);
    animation: driftGlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes driftGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(2%, -2%) scale(1.08); }
}

.stage {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 20px;
}

/* ---------- Check: anillo que se completa, tipo Face ID / Apple Pay ---------- */

.check-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.ring-track,
.ring-fill {
    /* Rota solo los círculos (no la palomita) para que el llenado empiece arriba */
    transform-box: fill-box;
    transform-origin: center;
    transform: rotate(-90deg);
}

.ring-track {
    stroke: rgba(255, 255, 255, 0.15);
}

.ring-fill {
    stroke-dasharray: 276.5;
    stroke-dashoffset: 276.5;
    animation: fillRing 1s cubic-bezier(.4, 0, .2, 1) forwards 0.1s;
}

@keyframes fillRing {
    to { stroke-dashoffset: 0; }
}

.tick {
    stroke-dasharray: 58;
    stroke-dashoffset: 58;
    animation: drawTick 0.25s ease-out forwards 1.1s;
}

@keyframes drawTick {
    to { stroke-dashoffset: 0; }
}

/* ---------- Logo: entra con un ligero rebote ---------- */

.logo-wrap {
    position: relative;
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(.34, 1.56, .64, 1) forwards 1.3s;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.logo {
    display: block;
    width: 100%;
    max-width: 220px;
    filter: invert(100%);
}

/* ---------- Insignia de doble verificación ---------- */

.verify-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(146, 222, 178, 0.8);
    opacity: 0;
    animation: rise 0.5s ease forwards 1.5s;
}

.verify-badge-icon {
    flex-shrink: 0;
}

/* ---------- Texto y footer: entran al final ---------- */

.msg {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    animation: rise 0.5s ease forwards 1.7s;
}

.msg strong {
    position: relative;
    font-weight: 600;
    color: #fff;
}

.msg strong::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: -3px;
    height: 6px;
    border-radius: 2px;
    background: rgba(126, 217, 168, 0.4);
    transform: scaleX(0);
    transform-origin: left;
    animation: sweepHighlight 0.4s ease-out forwards 2.25s;
}

@keyframes sweepHighlight {
    to { transform: scaleX(1); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes riseFooter {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.footer-text {
    position: fixed;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 300px;
    padding: 0 20px;
    z-index: 11;
    opacity: 0;
    animation: riseFooter 0.6s ease forwards 2.4s;
}

/* ---------- Lluvia de fondo: billete, moneda y sakura cayendo en 6 capas ---------- */

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#snow-canvas-1 { z-index: 6; }
#snow-canvas-2 { z-index: 5; }
#snow-canvas-3 { z-index: 4; }
#snow-canvas-4 { z-index: 3; }
#snow-canvas-5 { z-index: 2; }
#snow-canvas-6 { z-index: 1; }

.footer-text a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
    margin: 2px 0;
    letter-spacing: 0;
}

.footer-text a:hover {
    color: #fff;
}

.footer-text .reg {
    font-size: 15px;
    vertical-align: middle;
}
