* { 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 DE TEXTO
--------------------------------- */
.intro-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6vh;
    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: 900px;
    display: flex;
    flex-direction: column;
    gap: 2.2vh;
}

.intro-line {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16, 1, .3, 1);
    transition-delay: 0.3s;
}

.intro-line--accent {
    transition-delay: 1.1s;
}

.intro-screen > .intro-btn,
.intro-buttons {
    opacity: 0;
    transform: translateY(28px);
    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-line,
.intro-screen.is-active > .intro-btn,
.intro-screen.is-active .intro-buttons {
    opacity: 1;
    transform: translateY(0);
}

.intro-line {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.5px;
    font-size: clamp(1.8rem, 4.2vw, 3.4rem);
    color: #ffffff;
}

.intro-line--accent {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    letter-spacing: 0.06em;
}

.intro-screen[data-accent="violeta"] .intro-line--accent { color: var(--mp-violeta); }
.intro-screen[data-accent="cian"] .intro-line--accent { color: var(--mp-cian); }
.intro-screen[data-accent="fucsia"] .intro-line--accent { color: var(--mp-fucsia); }
.intro-screen[data-accent="verde-lima"] .intro-line--accent { color: var(--mp-verde-lima); }

/* ---------------------------------
   BOTONES
--------------------------------- */
.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-popup .intro-btn:not(.replay-btn) {
    border-color: var(--mp-violeta);
    background: var(--mp-violeta);
    box-shadow: 0 10px 24px rgba(115, 55, 251, 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);
}

/* ---------------------------------
   VIDEO (Manifiesto / Brandboard / Demo Reel)
--------------------------------- */

.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;
}



/* ---------------------------------
   POPUP FINAL
--------------------------------- */
.intro-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.intro-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.intro-popup {
    width: min(94vw, 760px);
    background: #0a0a0a;
    border: 2px solid var(--mp-violeta);
    padding: 5vh 6vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.4vh;
    box-shadow: 0px 20px 60px rgba(115, 55, 251, 0.25);

    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(.16, 1, .3, 1), opacity 0.4s ease;
}

.intro-popup-overlay.is-active .intro-popup {
    transform: scale(1);
    opacity: 1;
}

.intro-popup-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.5px;
    color: var(--mp-violeta);
}

.intro-popup p {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.55;
    color: #cfcfcf;
}

/*
  Limpiamos los transition-delays del CSS para que 
  GSAP maneje la animación sin superposiciones.
*/
.intro-popup-title,
.intro-popup p {
    opacity: 0;
    transform: translateY(20px);
}

.intro-popup p strong {
    color: #ffffff;
    font-weight: 700;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}