/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
} */

.splash-reveal {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1e 0%, #1a1a3e 50%, #0a0a1e 100%);
    overflow: hidden;
}

/* Floating shapes */
.splash-reveal__shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.splash-reveal__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: shapeFloat 8s ease-in-out infinite;
}

.splash-reveal__shape:nth-child(1) {
    width: 350px;
    height: 350px;
    background: #4682b4;
    top: -100px;
    right: -80px;
    animation-delay: 0s;
}

.splash-reveal__shape:nth-child(2) {
    width: 250px;
    height: 250px;
    background: #ffd700;
    bottom: -60px;
    left: -50px;
    animation-delay: -3s;
}

.splash-reveal__shape:nth-child(3) {
    width: 180px;
    height: 180px;
    background: #667eea;
    top: 50%;
    left: 8%;
    animation-delay: -5s;
}

.splash-reveal__shape:nth-child(4) {
    width: 120px;
    height: 120px;
    background: #4682b4;
    top: 15%;
    right: 20%;
    animation-delay: -7s;
}

@keyframes shapeFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(40px, -30px) scale(1.15);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(30px, 20px) scale(1.05);
    }
}

/* Block container for the reveal effect */
.splash-reveal__block {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Logo above the title */
.splash-reveal__logo-wrapper {
    z-index: 2;
    margin-bottom: 30px;
    opacity: 0;
    animation: revealFadeIn 0.6s ease 0.3s forwards;
    border-radius: 25px;
}

.splash-reveal__logo {
    width: 96px;
    height: 96px;
    display: block;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(237, 227, 20, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(237, 227, 20, 0.6));
    }
}

.splash-reveal__title {
    font-size: clamp(2.2rem, 7.5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    position: relative;
    font-family: 'Fontsorteos', sans-serif;
    animation: revealUp 1.2s cubic-bezier(.25, .46, .45, .94) forwards;
}

.splash-reveal__title span {
    background: linear-gradient(135deg, #ffd700, #fbf393, #daa520);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Sweep overlay */
.splash-reveal__title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffd700, #4682b4, #667eea, #ffd700);
    background-size: 300% 100%;
    animation: revealSweep 1.4s cubic-bezier(.77, 0, .18, 1) forwards;
}

@keyframes revealSweep {
    0% {
        transform: translateX(-102%);
    }

    45% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(102%);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Decorative bar */
.splash-reveal__bar {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #4682b4);
    margin-top: 16px;
    border-radius: 3px;
    opacity: 0;
    animation: revealFadeIn 0.6s ease 1.8s forwards;
    z-index: 2;
}

@keyframes revealFadeIn {
    to {
        opacity: 1;
    }
}

.splash-reveal__sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    margin-top: 16px;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: revealFadeIn 0.8s ease 1.4s forwards;
    z-index: 2;
}

/* ---- Responsive: tablets ---- */
@media (max-width: 768px) {
    .splash-reveal__title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .splash-reveal__sub {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .splash-reveal__bar {
        width: 64px;
    }

    .splash-reveal__shape:nth-child(1) {
        width: 220px;
        height: 220px;
        top: -60px;
        right: -50px;
    }

    .splash-reveal__shape:nth-child(2) {
        width: 170px;
        height: 170px;
        bottom: -40px;
        left: -30px;
    }

    .splash-reveal__shape:nth-child(3) {
        width: 120px;
        height: 120px;
        left: 5%;
    }

    .splash-reveal__shape:nth-child(4) {
        width: 80px;
        height: 80px;
    }
}

/* ---- Responsive: phones ---- */
@media (max-width: 480px) {
    .splash-reveal__title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .splash-reveal__sub {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-top: 12px;
    }

    .splash-reveal__bar {
        width: 48px;
        height: 2px;
        margin-top: 12px;
    }

    .splash-reveal__logo {
        width: 72px;
        height: 72px;
    }
}

/* ---- Fade-out cuando se cierra el splash ---- */
.splash-reveal--fade-out {
    animation: splashFadeOut 0.5s ease-in forwards;
}

@keyframes splashFadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}
