/* ============================================
   ONIKIX — El Universo  (SPECTACULAR edition)
   B: valores dramáticos — glow, float, tipografía
   A: scroll-snap — experiencia tipo presentación
   C: fondo que respira con el color del personaje
   GPU-only: solo transform/opacity/filter.
   ============================================ */

.onikix-universo {
    overflow-x: hidden;
}

/* A: Scroll-snap — el viewport scrollea sobre <html>, así que la propiedad va aquí.
   Se activa solo en desktop via clase que JS añade al cargar. */
@media (min-width: 769px) {
    html.univ-snap-active {
        scroll-snap-type: y mandatory;
    }
}

/* ═══════════════════════════
   HERO
   ═══════════════════════════ */
.univ-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 55%, rgba(168, 85, 247, 0.12) 0%, #0a0a0c 60%);
    /* A: snap */
    scroll-snap-align: start;
}

.univ-hero::before {
    content: "";
    position: absolute;
    inset: -12% -8%;
    background:
        radial-gradient(ellipse at 72% 42%, rgba(89, 42, 172, 0.22) 0%, rgba(89, 42, 172, 0) 52%),
        radial-gradient(ellipse at 30% 76%, rgba(0, 240, 255, 0.12) 0%, rgba(0, 240, 255, 0) 44%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.78;
}

/* Estrellas PHP */
.univ-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.univ-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: univ-twinkle var(--dur, 3s) var(--delay, 0s) infinite alternate ease-in-out;
}

@keyframes univ-twinkle {
    from {
        opacity: 0.06;
        transform: scale(0.7);
    }

    to {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

/* Nebulosa — 3 blobs GPU */
.univ-nebula {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Capa orbital: planeta + anillo + cometa */
.univ-orbitals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.univ-orb {
    position: absolute;
    will-change: transform, opacity;
}

.univ-orb--planet {
    width: clamp(130px, 16vw, 240px);
    aspect-ratio: 1 / 1;
    right: 8%;
    top: 18%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 33% 30%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 22%),
        radial-gradient(circle at 58% 58%, rgba(149, 73, 247, 0.88) 0%, rgba(79, 34, 156, 0.75) 52%, rgba(35, 18, 64, 0.2) 100%);
    box-shadow: 0 0 60px rgba(98, 41, 173, 0.42);
    opacity: 0.55;
    animation: univ-planet-drift 24s ease-in-out infinite;
}

.univ-orb--ring {
    width: clamp(220px, 26vw, 380px);
    height: clamp(66px, 8vw, 112px);
    right: calc(8% - 58px);
    top: calc(18% + 68px);
    border-radius: 50%;
    border: 1px solid rgba(196, 171, 255, 0.26);
    transform: rotate(-13deg);
    opacity: 0.5;
    animation: univ-ring-drift 26s ease-in-out infinite;
}

.univ-orb--comet {
    width: clamp(120px, 18vw, 260px);
    height: 2px;
    right: 22%;
    top: 34%;
    transform: rotate(-22deg);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0), rgba(0, 240, 255, 0.58), rgba(255, 255, 255, 0.9));
    filter: blur(0.2px);
    opacity: 0.5;
    animation: univ-comet-sweep 16s ease-in-out infinite;
}

/* Líneas de energía */
.univ-energy-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.univ-energy-line {
    position: absolute;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0), rgba(0, 240, 255, 0.24), rgba(0, 240, 255, 0));
    opacity: 0.35;
    will-change: transform, opacity;
}

.univ-energy-line:nth-child(1) {
    width: min(32vw, 460px);
    left: -4%;
    top: 24%;
    transform: rotate(8deg);
    animation: univ-energy-float-a 18s ease-in-out infinite;
}

.univ-energy-line:nth-child(2) {
    width: min(24vw, 320px);
    right: 8%;
    bottom: 22%;
    transform: rotate(-12deg);
    animation: univ-energy-float-b 16s ease-in-out infinite;
}

.univ-energy-line:nth-child(3) {
    width: min(21vw, 280px);
    left: 30%;
    bottom: 18%;
    transform: rotate(4deg);
    animation: univ-energy-float-c 19s ease-in-out infinite;
}

@keyframes univ-planet-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-18px, 10px, 0) scale(1.035); }
}

@keyframes univ-ring-drift {
    0%, 100% { transform: rotate(-13deg) translate3d(0, 0, 0); }
    50% { transform: rotate(-11deg) translate3d(-14px, 8px, 0); }
}

@keyframes univ-comet-sweep {
    0%, 100% { transform: rotate(-22deg) translate3d(0, 0, 0); opacity: 0.15; }
    35% { opacity: 0.56; }
    50% { transform: rotate(-22deg) translate3d(38px, -14px, 0); opacity: 0.45; }
}

@keyframes univ-energy-float-a {
    0%, 100% { transform: rotate(8deg) translate3d(0, 0, 0); opacity: 0.22; }
    50% { transform: rotate(8deg) translate3d(32px, -4px, 0); opacity: 0.4; }
}

@keyframes univ-energy-float-b {
    0%, 100% { transform: rotate(-12deg) translate3d(0, 0, 0); opacity: 0.18; }
    50% { transform: rotate(-12deg) translate3d(-30px, 5px, 0); opacity: 0.36; }
}

@keyframes univ-energy-float-c {
    0%, 100% { transform: rotate(4deg) translate3d(0, 0, 0); opacity: 0.2; }
    50% { transform: rotate(4deg) translate3d(24px, -6px, 0); opacity: 0.35; }
}

.univ-nebula-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.univ-nebula-blob:nth-child(1) {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, transparent 70%);
    top: -25%;
    left: -12%;
    animation: univ-nebula-a 14s ease-in-out infinite;
}

.univ-nebula-blob:nth-child(2) {
    width: 52vw;
    height: 52vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, transparent 70%);
    top: 20%;
    right: -18%;
    animation: univ-nebula-b 18s ease-in-out infinite;
}

.univ-nebula-blob:nth-child(3) {
    width: 42vw;
    height: 42vw;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.12) 0%, transparent 70%);
    bottom: -12%;
    left: 28%;
    animation: univ-nebula-c 11s ease-in-out infinite;
}

@keyframes univ-nebula-a {

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

    50% {
        transform: translate(45px, 28px) scale(1.15);
    }
}

@keyframes univ-nebula-b {

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

    50% {
        transform: translate(-38px, 32px) scale(1.12);
    }
}

@keyframes univ-nebula-c {

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

    50% {
        transform: translate(22px, -28px) scale(1.2);
    }
}

/* Hero inner */
.univ-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 2rem 5rem;
    max-width: 860px;
}

.univ-hero-overline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--accent-2, #00F0FF);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    display: block;
    animation: univ-fade-up 0.7s ease both;
}

.univ-hero-title {
    position: relative;
    overflow: visible;
    font-family: var(--font-head, 'Outfit'), sans-serif;
    font-size: clamp(4rem, 11vw, 10rem);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    animation: univ-fade-up 0.7s 0.08s ease both;
    text-shadow: none;
}

.univ-hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray, #8ca0b0);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: univ-fade-up 0.7s 0.16s ease both;
}

@keyframes univ-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.univ-hero-dots {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 3.5rem;
    animation: univ-fade-up 0.7s 0.24s ease both;
}

.univ-hero-dot {
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    appearance: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    position: relative;
    background: var(--dot-color, #00F0FF);
    box-shadow: 0 0 8px var(--dot-glow, rgba(0, 240, 255, 0.55));
    opacity: 0.85;
}

.univ-hero-dot:hover {
    transform: scale(1.18);
    opacity: 1;
}

.univ-hero-dot.active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.17), 0 0 14px var(--dot-glow, rgba(0, 240, 255, 0.65));
    animation: univ-dot-pulse 2.1s ease-in-out infinite;
}

@keyframes univ-dot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.univ-hero-dot::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    opacity: 0;
    text-transform: uppercase;
    transition: opacity 0.2s;
    pointer-events: none;
}

.univ-hero-dot:hover::after {
    opacity: 1;
}

.univ-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    animation: univ-bounce 2.2s ease-in-out infinite;
}

.univ-scroll-indicator span {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, #fff);
}

@keyframes univ-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.7;
    }
}

/* ═══════════════════════════
   SIDEBAR NAVIGATOR
   ═══════════════════════════ */
.univ-nav-sidebar {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.univ-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: block;
    text-decoration: none;
}

.univ-nav-dot::before {
    content: attr(data-name);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    opacity: 0;
    text-transform: uppercase;
    transition: opacity 0.2s;
    pointer-events: none;
}

.univ-nav-dot:hover::before,
.univ-nav-dot.active::before {
    opacity: 1;
}

.univ-nav-dot.active {
    background: var(--dot-color, #00F0FF);
    border-color: var(--dot-color, #00F0FF);
    box-shadow: 0 0 18px var(--dot-color, #00F0FF);
    width: 10px;
    height: 10px;
}

.univ-nav-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.4);
}

@media (max-width: 900px) {
    .univ-nav-sidebar {
        display: none;
    }
}

/* ═══════════════════════════
   C: BACKGROUND COLOR POR PERSONAJE
   Transición suave del fondo global
   al color activo – muy baja opacidad.
   ═══════════════════════════ */
body {
    transition: background-color 1.4s ease;
}

body.univ-bg-active {
    background-color: rgba(var(--univ-active-rgb, 10, 10, 12), 0.055);
}

/* ═══════════════════════════
   CHARACTER SECTIONS
   ═══════════════════════════ */
.univ-char-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
    /* C: el body provee el color de fondo */
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    /* A: snap */
    scroll-snap-align: start;
}

.univ-char-section.active {
    opacity: 1;
    transform: none;
}

/* Grid ambiental — B: más opaco y visible */
.univ-char-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(var(--char-rgb), 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 2s ease 0.5s;
}

.univ-char-section.active::before {
    opacity: 1;
}

/* Separador */
.univ-char-section+.univ-char-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Glow blob — B: mucho más dramático */
.univ-char-glow {
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--char-rgb), 0.22) 0%, transparent 65%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 1.2s ease 0.3s;
}

.univ-char-section.active .univ-char-glow {
    opacity: 1;
    animation: univ-glow-breathe 6s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.univ-char--odd .univ-char-glow {
    right: -180px;
}

.univ-char--even .univ-char-glow {
    left: -180px;
}

@keyframes univ-glow-breathe {

    0%,
    100% {
        opacity: 0.75;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.15);
    }
}

/* Número de fondo — B: más visible y grande */
.univ-char-bg-number {
    position: absolute;
    font-family: var(--font-head, 'Outfit'), sans-serif;
    font-size: clamp(12rem, 26vw, 32rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(var(--char-rgb), 0.18);
    top: 50%;
    transform: translateY(-50%) scale(0.88);
    transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.univ-char-section.active .univ-char-bg-number {
    transform: translateY(-50%) scale(1);
}

.univ-char--odd .univ-char-bg-number {
    right: -2%;
}

.univ-char--even .univ-char-bg-number {
    left: -2%;
}

/* Grid interior */
.univ-char-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1340px;
    margin: 0 auto;
    padding: 6rem 3rem;
    width: 100%;
}

.univ-char--odd .univ-char-text {
    order: 1;
}

.univ-char--odd .univ-char-visual {
    order: 2;
}

.univ-char--even .univ-char-visual {
    order: 1;
}

.univ-char--even .univ-char-text {
    order: 2;
}

/* Visual — slide desde el exterior */
.univ-char-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, opacity;
}

.univ-char--odd .univ-char-visual {
    opacity: 0;
    transform: translateX(90px);
    transition: opacity 1s ease 0.05s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.univ-char--even .univ-char-visual {
    opacity: 0;
    transform: translateX(-90px);
    transition: opacity 1s ease 0.05s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.univ-char-section.active .univ-char-visual {
    opacity: 1;
    transform: none;
}

/* Text — cascada por hijo */
.univ-char-text {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: flex-start;
}

.univ-char--odd .univ-char-text>* {
    opacity: 0;
    transform: translateX(-55px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.univ-char--even .univ-char-text>* {
    opacity: 0;
    transform: translateX(55px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.univ-char-section.active .univ-char-text>*:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.2s;
}

.univ-char-section.active .univ-char-text>*:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.34s;
}

.univ-char-section.active .univ-char-text>*:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.48s;
}

.univ-char-section.active .univ-char-text>*:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.62s;
}

.univ-char-section.active .univ-char-text>*:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.76s;
}

.univ-char-section.active .univ-char-text>*:nth-child(n+6) {
    opacity: 1;
    transform: none;
    transition-delay: 0.9s;
}

/* ── Imagen con fondo ── */
.univ-char-img {
    position: relative;
    max-width: 480px;
    width: 100%;
    transform: scale(var(--univ-char-scale, 1));
    transform-origin: center center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(var(--char-rgb), 0.2),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(var(--char-rgb), 0.08);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}


.univ-char-section:hover .univ-char-img {
    transform: translateY(-8px) scale(var(--univ-char-scale, 1));
    box-shadow:
        0 0 0 1px rgba(var(--char-rgb), 0.55),
        0 36px 100px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(var(--char-rgb), 0.2);
}

.univ-char-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.55s ease;
}

.univ-char-section:hover .univ-char-img img {
    transform: scale(1.04);
}

.univ-char-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, #0a0a0c 0%, rgba(10, 10, 12, 0.55) 45%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.univ-char-img::before {
    content: '';
    position: absolute;
    top: -5%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(var(--char-rgb), 0.95), transparent);
    z-index: 4;
    opacity: 0;
    filter: blur(1px);
    transition: opacity 0.35s;
}

.univ-char-section:hover .univ-char-img::before {
    opacity: 1;
    animation: univ-scan 2.4s linear infinite;
}

@keyframes univ-scan {
    0% {
        top: -5%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        top: 105%;
        opacity: 0;
    }
}

/* Estado inactivo */
.univ-char--inactive .univ-char-img {
    opacity: 0.45;
    filter: grayscale(0.65);
}

/* ══════════════════════════════════════
   IMAGEN SIN FONDO — versión premium
   ══════════════════════════════════════ */
.univ-char-img--transparent {
    background: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none !important;
    transform: scale(var(--univ-char-scale, 1));
    transform-origin: center center;
    transition: transform 0.5s ease;
}

.univ-char-img--transparent::after {
    display: none;
}

/* B: glow de silueta más intenso */
.univ-char-img--transparent img {
    filter: drop-shadow(0 20px 70px rgba(var(--char-rgb), 0.55)) drop-shadow(0 0 35px rgba(var(--char-rgb), 0.25));
    transition: filter 0.6s ease;
    will-change: transform, filter;
}

/* B: float más pronunciado (22px en vez de 14px) */
.univ-char-section.active .univ-char-img--transparent img {
    animation: univ-float 4s var(--float-delay, 0s) ease-in-out infinite;
}

@keyframes univ-float {

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

    50% {
        transform: translateY(-22px) scale(1.02);
    }
}

.univ-char-section:hover .univ-char-img--transparent {
    transform: translateY(-10px) scale(var(--univ-char-scale, 1));
}

.univ-char-section:hover .univ-char-img--transparent img {
    animation-play-state: paused;
    /* B: glow de hover mucho más dramático */
    filter: drop-shadow(0 32px 100px rgba(var(--char-rgb), 0.85)) drop-shadow(0 0 65px rgba(var(--char-rgb), 0.5)) drop-shadow(0 0 18px rgba(var(--char-rgb), 0.25));
    transform: scale(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.univ-char-img--transparent::before {
    content: '';
    position: absolute;
    top: -5%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(var(--char-rgb), 0.9), transparent);
    z-index: 4;
    opacity: 0;
    filter: blur(1px);
    transition: opacity 0.35s;
}

.univ-char-section:hover .univ-char-img--transparent::before {
    opacity: 1;
    animation: univ-scan 2.4s linear infinite;
}

/* ── B: Nombre — tamaño y gradiente más dramáticos ── */
.univ-char-index {
    font-family: var(--font-head, 'Outfit'), sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--char-color);
    text-transform: uppercase;
    opacity: 0.95;
}

/* B: Nombre mucho más grande, degradado color personaje → blanco */
.univ-char-name {
    font-family: var(--font-head, 'Outfit'), sans-serif;
    font-size: clamp(3.5rem, 7vw, 8rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -3px;
    /* Color del personaje a la izquierda, blanco puro a la derecha */
    background: linear-gradient(90deg, rgba(var(--char-rgb), 1) 0%, #ffffff 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.univ-char-archetype {
    font-size: 1.05rem;
    color: var(--char-color);
    font-style: italic;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
}

.univ-char-quote {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    border-left: 3px solid var(--char-color);
    padding-left: 1.2rem;
    margin: 0.25rem 0;
    line-height: 1.75;
}

/* ── Product mini-cards ── */
.univ-char-products {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.univ-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 102px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--char-rgb), 0.2);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.univ-product-card:hover {
    border-color: rgba(var(--char-rgb), 0.65);
    background: rgba(var(--char-rgb), 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(var(--char-rgb), 0.15);
}

.univ-product-card img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.univ-product-name {
    font-size: 0.6rem;
    color: #ccc;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.univ-product-price {
    font-size: 0.65rem;
    color: var(--char-color);
    font-weight: 700;
    text-align: center;
}

/* ── CTA button — con shimmer ── */
.univ-char-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    border: 1px solid var(--char-color);
    color: var(--char-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
    font-family: var(--font-body, 'Space Grotesk'), sans-serif;
    position: relative;
    overflow: hidden;
}

.univ-char-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -120%;
    width: 55%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-15deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.univ-char-cta:hover::before {
    left: 170%;
}

.univ-char-cta:hover {
    background: var(--char-color);
    color: #0a0a0c;
    box-shadow: 0 0 35px rgba(var(--char-rgb), 0.55),
        0 0 70px rgba(var(--char-rgb), 0.2);
    transform: translateY(-2px);
}

.univ-char-cta--disabled {
    opacity: 0.22;
    cursor: not-allowed;
    pointer-events: none;
}

.univ-char-soon-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-gray, #8ca0b0);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 4px 12px;
    text-transform: uppercase;
}

/* ═══════════════════════════
   PORTAL FINAL
   ═══════════════════════════ */
.univ-portal {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    scroll-snap-align: start;
}

.univ-portal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(0, 240, 255, 0.1) 0%,
            rgba(168, 85, 247, 0.07) 40%,
            transparent 70%);
    pointer-events: none;
}

.univ-portal-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 5rem 2rem;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.univ-portal-inner.active {
    opacity: 1;
    transform: none;
}

.univ-portal-overline {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--accent-2, #00F0FF);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.univ-portal-title {
    font-family: var(--font-head, 'Outfit'), sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.92;
    color: #fff;
    margin-bottom: 2.5rem;
    letter-spacing: -2px;
}

.univ-portal-btn {
    font-size: 1.08rem;
    padding: 1rem 3rem;
    letter-spacing: 2px;
    transition: box-shadow 0.3s, transform 0.2s;
}

.univ-portal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.3), 0 0 100px rgba(0, 240, 255, 0.12);
}

/* ═══════════════════════════
   CSS SCROLL PARALLAX
   ═══════════════════════════ */
@supports (animation-timeline: scroll()) {
    .univ-char-img--transparent img {
        animation: univ-scroll-parallax linear both,
            univ-float 4s var(--float-delay, 0s) ease-in-out infinite;
        animation-timeline: view(), auto;
        animation-range: entry 0% exit 100%, auto;
    }

    @keyframes univ-scroll-parallax {
        from {
            translate: 0 22px;
        }

        to {
            translate: 0 -22px;
        }
    }

    .univ-char-bg-number {
        animation: univ-scroll-number linear both;
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
    }

    @keyframes univ-scroll-number {
        from {
            transform: translateY(-48%) scale(0.94);
        }

        to {
            transform: translateY(-52%) scale(1.06);
        }
    }

    .univ-char-section:hover .univ-char-img--transparent img {
        animation-play-state: paused, paused;
    }
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (max-width: 900px) {
    .univ-char-inner {
        gap: 2.5rem;
        padding: 5rem 2rem;
    }

    .univ-char-img {
        max-width: 380px;
    }
}

@media (max-width: 768px) {

    /* En mobile deshabilitamos scroll-snap: con contenido largo es incómodo */
    .univ-hero,
    .univ-char-section,
    .univ-portal {
        scroll-snap-align: none;
    }

    .univ-char-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4.5rem 1.5rem;
    }

    .univ-orb--planet {
        width: clamp(100px, 24vw, 150px);
        right: 2%;
        top: 18%;
        opacity: 0.36;
    }

    .univ-orb--ring {
        width: clamp(160px, 42vw, 240px);
        height: clamp(50px, 9vw, 74px);
        right: calc(2% - 38px);
        top: calc(18% + 48px);
        opacity: 0.26;
    }

    .univ-orb--comet,
    .univ-energy-lines {
        display: none;
    }

    .univ-char--odd .univ-char-visual,
    .univ-char--even .univ-char-visual {
        order: 1;
    }

    .univ-char--odd .univ-char-text,
    .univ-char--even .univ-char-text {
        order: 2;
    }

    .univ-char--odd .univ-char-text>*,
    .univ-char--even .univ-char-text>* {
        transform: translateY(14px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .univ-char--odd .univ-char-visual,
    .univ-char--even .univ-char-visual {
        transform: translate(12px, 22px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* Ajuste fino mobile: centra mejor rostro/ojos en personajes con cola larga */
    .univ-char-section.active .univ-char-visual {
        transform: translateX(12px);
    }

    .univ-char-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .univ-char-img {
        max-width: 310px;
        /* B: más grande = más presencia */
        margin: 0 auto;
    }

    .univ-char-name {
        font-size: clamp(3rem, 16vw, 5rem);
        letter-spacing: -2px;
        background: linear-gradient(90deg, rgba(var(--char-rgb), 1) 0%, #ffffff 75%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .univ-char-bg-number {
        font-size: clamp(8rem, 40vw, 13rem);
        -webkit-text-stroke: 1px rgba(var(--char-rgb), 0.14);
    }

    .univ-char-text {
        align-items: center;
        text-align: center;
        gap: 0.9rem;
    }

    .univ-char-quote {
        text-align: left;
        border-left-width: 3px;
        /* más visible en mobile */
        font-size: 0.95rem;
    }

    .univ-char-index {
        letter-spacing: 5px;
    }

    .univ-char-archetype {
        font-size: 0.95rem;
    }

    .univ-char-products {
        justify-content: center;
    }

    .univ-char-cta {
        align-self: center;
        padding: 0.85rem 1.8rem;
    }

    .univ-char-soon-badge {
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .univ-nebula-blob,
    .univ-orb,
    .univ-energy-line,
    .univ-hero-dot.active,
    .univ-scroll-indicator {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .univ-hero-title {
        font-size: clamp(3rem, 14vw, 5rem);
        letter-spacing: -1px;
        text-shadow: none;
    }

    .univ-char-inner {
        padding: 4rem 1.25rem;
    }

    .univ-char-img {
        max-width: 280px;
        /* un poco más pequeño en pantallas muy estrechas */
    }

    /* En pantallas muy estrechas reducimos un poco el desplazamiento lateral */
    .univ-char--odd .univ-char-visual,
    .univ-char--even .univ-char-visual {
        transform: translate(8px, 22px);
    }

    .univ-char-section.active .univ-char-visual {
        transform: translateX(8px);
    }

    .univ-product-card {
        width: 90px;
    }

    .univ-product-card img {
        width: 60px;
        height: 60px;
    }

    .univ-portal-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}
