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

:root {
    --mp-violeta: #7337fb;
    --mp-verde-lima: #bdf62f;
    --mp-rojo: #fc3b1c;
    --mp-fucsia: #db40fc;
    --mp-cian: #2dc3c2;

    --cursor-hand: url("assets/hand-pointing.svg") 18 2, pointer;
    --cursor-grab: url("assets/hand-pointing.svg") 18 2, grab;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html, body {
    height: 100%;
    background: #000;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
}

a, button, [role="button"] {
    cursor: var(--cursor-hand);
}

.intro-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
}



/* ---------------------------------
   PANTALLAS
--------------------------------- */
.intro-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5vh;
    text-align: center;
    padding: 0 8vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 5;
}

.intro-screen.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.intro-copy {
    max-width: 920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

/* ---------------------------------
   TIPOGRAFÍA: escalonado de lectura
--------------------------------- */
.intro-copy > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16, 1, .3, 1);
}

.intro-copy > *:nth-child(1) { transition-delay: 0.3s; }
.intro-copy > *:nth-child(2) { transition-delay: 0.9s; }
.intro-copy > *:nth-child(3) { transition-delay: 1.5s; }
.intro-copy > *:nth-child(4) { transition-delay: 2.1s; }
.intro-copy > *:nth-child(5) { transition-delay: 2.7s; }

.intro-screen.is-active .intro-copy > * {
    opacity: 1;
    transform: translateY(0);
}

.intro-headline {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.5px;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    color: #ffffff;
}

.intro-subhead {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.4px;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    color: #ffffff;
}

.intro-screen[data-accent="violeta"] .intro-subhead { color: var(--mp-violeta); }
.intro-screen[data-accent="cian"] .intro-subhead { color: var(--mp-cian); }
.intro-screen[data-accent="fucsia"] .intro-subhead { color: var(--mp-fucsia); }
.intro-screen[data-accent="verde-lima"] .intro-subhead { color: var(--mp-verde-lima); }

.intro-divider {
    width: 64px;
    height: 3px;
    background: #ffffff;
    transform: translateY(24px) scaleX(0);
    transition: opacity 0.9s ease, transform 0.7s cubic-bezier(.16, 1, .3, 1);
}

.intro-screen.is-active .intro-divider {
    transform: translateY(0) scaleX(1);
}

.intro-screen[data-accent="violeta"] .intro-divider { background: var(--mp-violeta); }
.intro-screen[data-accent="cian"] .intro-divider { background: var(--mp-cian); }
.intro-screen[data-accent="fucsia"] .intro-divider { background: var(--mp-fucsia); }
.intro-screen[data-accent="verde-lima"] .intro-divider { background: var(--mp-verde-lima); }

.intro-body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    color: rgba(255, 255, 255, 0.6);
}

.intro-body--strong {
    font-weight: 700;
    color: #ffffff;
}

/* ---------------------------------
   BOTONES
--------------------------------- */
.intro-screen > .intro-btn,
.intro-buttons {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16, 1, .3, 1);
    transition-delay: 1.9s;
}

.intro-screen > .intro-btn.is-ready,
.intro-buttons.is-ready {
    pointer-events: auto;
}

.intro-screen.is-active > .intro-btn,
.intro-screen.is-active .intro-buttons {
    opacity: 1;
    transform: translateY(0);
}

.intro-btn {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    padding: 14px 30px;
    cursor: var(--cursor-hand);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.3s ease, color 0.3s ease,
        transform 0.35s cubic-bezier(.16, 1, .3, 1), box-shadow 0.35s ease;
}

.intro-btn:active {
    transform: translateY(0) scale(0.96);
}

.intro-btn:not(.replay-btn) {
    border-color: var(--mp-violeta);
    background: var(--mp-violeta);
    color: #fff;
    box-shadow: 0 10px 24px rgba(115, 55, 251, 0.25);
}

.intro-screen[data-accent="cian"] .intro-btn:not(.replay-btn) {
    border-color: var(--mp-cian);
    background: var(--mp-cian);
    color: #041212;
    box-shadow: 0 10px 24px rgba(45, 195, 194, 0.25);
}

.intro-screen[data-accent="fucsia"] .intro-btn:not(.replay-btn) {
    border-color: var(--mp-fucsia);
    background: var(--mp-fucsia);
    box-shadow: 0 10px 24px rgba(219, 64, 252, 0.25);
}

.intro-screen[data-accent="verde-lima"] .intro-btn:not(.replay-btn) {
    border-color: var(--mp-verde-lima);
    background: var(--mp-verde-lima);
    color: #000;
    box-shadow: 0 10px 24px rgba(189, 246, 47, 0.25);
}

.intro-btn .arrow {
    transition: transform 0.3s ease;
}

.intro-btn:not(.replay-btn):hover {
    filter: brightness(0.95);
    transform: translateY(-3px) scale(1.03);
}

.replay-btn:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.08);
}

.intro-btn:hover .arrow {
    transform: translateX(4px);
}

.intro-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------------------------------
   VIDEO (Videocaso)
--------------------------------- */

.intro-video-layer {
    position: absolute;
    inset: 0;
    z-index: 10;

    width: 100%;
    height: 100%;

    background: #000;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.45s ease;
}

.intro-video-layer.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.intro-video-layer iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;

    transform: scale(1.03);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1), opacity 0.5s ease;
}

.intro-video-layer.is-active iframe {
    transform: scale(1);
    opacity: 1;
}



/* ---------------------------------
   PANTALLA FINAL (cierre)
--------------------------------- */
.intro-screen--final .intro-copy {
    gap: 0;
}

.intro-final-line {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    font-size: clamp(2.4rem, 6vw, 5rem);
    color: #ffffff;
    transition-duration: 1.3s !important;
}
