﻿/* ==========================================================
   Smart World Solutions Z · Splash
   Minimal luxury · aura dorada
   ========================================================== */
:root {
    --bg-0: #07070a;
    --bg-1: #0d0c12;
    --gold-1: #ffd36b;
    --gold-2: #f5a623;
    --gold-3: #d97a0a;
    --violet: #8b5cf6;
    --blue: #60a5fa;
    --emerald: #34d399;
    --rose: #f472b6;
    --text: #f5f3ee;
    --muted: #8d8a95;
    --line: rgba(255, 255, 255, .07);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg-0);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Escena ---------- */
.sz-splash {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(1200px 700px at 15% 20%, rgba(245, 166, 35, .16), transparent 60%), radial-gradient(900px 600px at 90% 95%, rgba(139, 92, 246, .14), transparent 60%), linear-gradient(160deg, #120d06 0%, var(--bg-1) 45%, var(--bg-0) 100%);
    isolation: isolate;
}

.sz-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.sz-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

.sz-aura--gold {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(245, 166, 35, .35), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -62%);
    animation: auraBreath 4s ease-in-out infinite;
}

.sz-aura--violet {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 70%);
    right: -120px;
    bottom: -120px;
    animation: auraDrift 8s ease-in-out infinite alternate;
}

.sz-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.sz-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

/* ---------- Sistema orbital ---------- */
.sz-orbit-system {
    --size: 300px;
    position: relative;
    width: var(--size);
    height: var(--size);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.85);
    animation: popIn 1.1s var(--ease) .1s forwards;
}

.sz-halo {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 80, .18), transparent 70%);
    animation: auraBreath 3s ease-in-out infinite;
}

.sz-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.sz-ring--outer {
    inset: 0;
    border-color: rgba(255, 210, 120, .10);
}

.sz-ring--mid {
    inset: 20%;
    border-style: dashed;
    border-color: rgba(255, 210, 120, .16);
    animation: spin 30s linear infinite;
}

.sz-ring--inner {
    inset: 33%;
    border-color: rgba(255, 255, 255, .06);
}

.sz-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 80%, rgba(255, 200, 90, .25) 95%, transparent 100%);
    -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%);
    mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%);
    animation: spin 3.2s linear infinite;
}

.sz-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.sz-orbit--outer {
    --r: 150px;
    animation: spin 14s linear infinite;
}

.sz-orbit--inner {
    --r: 90px;
    animation: spin 9s linear infinite reverse;
}

.sz-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1));
}
/* Contrarrotación para que los iconos queden derechos */
.sz-orbit--outer .sz-node > .sz-icon {
    animation: counter 14s linear infinite;
}

.sz-orbit--inner .sz-node > .sz-icon {
    animation: counter 9s linear infinite reverse;
}

.sz-icon {
    --c: var(--gold-2);
    --s: 46px;
    position: absolute;
    left: calc(var(--s) / -2);
    top: calc(var(--s) / -2);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 25%, #23222b, #0c0c11 70%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .02), 0 0 22px color-mix(in srgb, var(--c) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08);
    rotate: calc(var(--a) * -1);
}

    .sz-icon svg {
        width: 50%;
        height: 50%;
        fill: none;
        stroke: var(--c);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        filter: drop-shadow(0 0 6px var(--c));
    }

.sz-icon--sm {
    --s: 38px;
}

.sz-icon--gold {
    --c: var(--gold-2);
}

.sz-icon--violet {
    --c: var(--violet);
}

.sz-icon--blue {
    --c: var(--blue);
}

.sz-icon--emerald {
    --c: var(--emerald);
}

.sz-icon--rose {
    --c: var(--rose);
}

/* ---------- Núcleo Z ---------- */
.sz-core {
    position: relative;
    display: grid;
    place-items: center;
}

.sz-core__glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 60, .55), rgba(255, 150, 20, .12) 45%, transparent 70%);
    filter: blur(8px);
    animation: pulseGlow 2s ease-in-out infinite;
}

.sz-core__orb {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 32% 28%, #ffe7a3 0%, var(--gold-1) 22%, var(--gold-2) 55%, var(--gold-3) 100%);
    box-shadow: 0 0 0 6px rgba(255, 200, 90, .08), 0 0 40px rgba(255, 170, 40, .65), 0 0 90px rgba(255, 150, 20, .35), inset 0 -8px 18px rgba(120, 50, 0, .45), inset 0 6px 12px rgba(255, 255, 255, .45);
    animation: orbFloat 4s ease-in-out infinite;
}

.sz-core__z {
    font-weight: 800;
    font-size: 44px;
    line-height: 1;
    color: #1a1206;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
    letter-spacing: -1px;
}

.sz-core__shine {
    position: absolute;
    inset: -40%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: shine 2.4s var(--ease) 1s infinite;
}

.sz-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff4d6;
    box-shadow: 0 0 10px 3px rgba(255, 200, 90, .8);
    transform: translate(var(--x), var(--y)) scale(0);
    animation: twinkle 2.6s ease-in-out var(--d) infinite;
}

/* ---------- Marca ---------- */
.sz-brand {
    text-align: center;
}

.sz-brand__title {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -.02em;
    display: flex;
    gap: .28em;
    justify-content: center;
    flex-wrap: wrap;
}

.sz-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
    animation: wordIn .9s var(--ease) forwards;
}

    .sz-word:nth-child(1) {
        animation-delay: .7s;
    }

    .sz-word:nth-child(2) {
        animation-delay: .85s;
    }

    .sz-word:nth-child(3) {
        animation-delay: 1s;
    }

    .sz-word:nth-child(4) {
        animation-delay: 1.15s;
    }

.sz-gold {
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2), #ffe39a, var(--gold-2));
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: wordIn .9s var(--ease) forwards, goldFlow 3s linear infinite;
}

.sz-z {
    text-shadow: 0 0 24px rgba(255, 180, 50, .45);
}

.sz-brand__tag {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .42em;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp .9s var(--ease) 1.4s forwards;
}

/* ---------- Loader ---------- */
.sz-loader {
    width: min(320px, 80vw);
    opacity: 0;
    animation: fadeUp .8s var(--ease) 1.6s forwards;
}

.sz-loader__track {
    position: relative;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .06);
    overflow: hidden;
}

.sz-loader__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold-1));
    box-shadow: 0 0 14px rgba(255, 180, 50, .8);
}

    .sz-loader__bar::after {
        content: "";
        position: absolute;
        right: -2px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        transform: translateY(-50%);
        background: #fff3cf;
        box-shadow: 0 0 12px 4px rgba(255, 200, 90, .9);
    }

.sz-loader__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.sz-loader__status {
    transition: opacity .3s ease;
}

.sz-loader__pct {
    font-variant-numeric: tabular-nums;
    color: var(--gold-1);
    font-weight: 600;
}

/* ---------- Footer ---------- */
.sz-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp .8s var(--ease) 1.8s forwards;
}

.sz-footer__secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .sz-footer__secure svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: var(--emerald);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.sz-dot {
    opacity: .5;
}

/* ---------- Salida ---------- */
.sz-curtain {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, rgba(255, 200, 90, .0), var(--bg-0) 70%);
    opacity: 0;
    transition: opacity .7s ease;
}

.sz-splash.is-leaving .sz-center {
    transition: transform .8s var(--ease), opacity .7s ease, filter .7s ease;
    transform: scale(1.08);
    opacity: 0;
    filter: blur(10px);
}

.sz-splash.is-leaving .sz-footer {
    transition: opacity .5s;
    opacity: 0;
}

.sz-splash.is-leaving .sz-curtain {
    opacity: 1;
}

/* ---------- Keyframes ---------- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes counter {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes wordIn {
    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

@keyframes goldFlow {
    to {
        background-position: -250% 0;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    60%, 100% {
        transform: translateX(100%);
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(.92);
        opacity: .75;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes auraBreath {
    0%, 100% {
        opacity: .7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes auraDrift {
    to {
        transform: translate(-60px, -40px);
    }
}

@keyframes twinkle {
    0%, 100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(var(--x), var(--y)) scale(1);
        opacity: 1;
    }
}

/* ---------- Responsive / accesibilidad ---------- */
@media (max-width: 520px) {
    .sz-orbit-system {
        --size: 240px;
    }

    .sz-orbit--outer {
        --r: 120px;
    }

    .sz-orbit--inner {
        --r: 72px;
    }

    .sz-icon {
        --s: 40px;
    }

    .sz-icon--sm {
        --s: 32px;
    }

    .sz-brand__tag {
        letter-spacing: .3em;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
