* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff);
    line-height: 1.6
}

img {
    max-width: 100%;
    display: block
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.2rem
}

/* Utilidades */
.muted {
    color: var(--muted)
}

.center {
    text-align: center
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    font-weight: 700
}

.btn--primary {
    background: var(--primary)
}

.btn--primary:hover {
    background: var(--primary-2)
}

.btn--ghost {
    border: 1px solid var(--primary);
    color: var(--primary)
}

.btn--ghost:hover {
    background: var(--primary);
    color: var(--text)
}

/* ============== Transición "pantalla partida" (GLOBAL) ============== */

.split-cover {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 9999;
}

.split-cover__half {
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(124, 92, 255, .18), transparent 60%),
        linear-gradient(180deg, #0b0d12, #090b10);
    will-change: transform;
    transition: transform .7s ease-in-out;
}

.split-cover__left {
    transform: translateX(-101%);
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.split-cover__right {
    transform: translateX(101%);
    border-left: 1px solid rgba(255, 255, 255, .06);
}

/* Cerrar (cubrir pantalla) */
body.split-in .split-cover__left,
body.split-in .split-cover__right {
    transform: translateX(0);
}

/* Bloqueo durante transición */
body.split-lock {
    overflow: hidden;
}

/*
Entrada: la página destino arranca con el overlay cerrado (sin transición),
y luego JS elimina esta clase para que "abra".
*/
html.split-entry body {
    overflow: hidden;
}

html.split-entry .split-cover__half {
    transition: none !important;
}

html.split-entry .split-cover__left,
html.split-entry .split-cover__right {
    transform: translateX(0) !important;
}