/* Intro de ingreso — Nova Informática y Oficina */
.nv-intro {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A0A0A;
    color: #fff;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.nv-intro.is-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.nv-intro.is-out .nv-intro__stage {
    opacity: 0;
    transform: scale(1.025);
    filter: blur(6px);
    transition: opacity 0.5s ease, transform 0.55s ease, filter 0.55s ease;
}

.nv-intro.is-done,
html.nv-intro-done .nv-intro {
    display: none !important;
}

body.nv-intro-lock {
    overflow: hidden !important;
    background: #0A0A0A !important;
}

.nv-intro__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nv-intro__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 58% 48% at 50% 46%, rgba(18, 18, 18, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.nv-intro__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0;
}

.nv-intro.is-play .nv-intro__glow {
    opacity: 1;
    transition: opacity 1.4s ease;
}

.nv-intro__glow--info {
    width: min(46vw, 460px);
    height: min(46vw, 460px);
    left: -10%;
    top: 12%;
    background: rgba(56, 189, 248, 0.08);
}

.nv-intro__glow--ofi {
    width: min(42vw, 400px);
    height: min(42vw, 400px);
    right: -8%;
    bottom: 8%;
    background: rgba(245, 158, 11, 0.07);
}

.nv-intro__stage {
    position: relative;
    z-index: 2;
    width: min(880px, calc(100% - 2.5rem));
    text-align: center;
    padding: 0.5rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nv-intro__brand-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.nv-intro__brand {
    margin: 0;
    font-weight: 800;
    font-size: clamp(2.7rem, 12vw, 5.6rem);
    letter-spacing: 0.08em;
    line-height: 1;
    color: #FFFFFF;
    padding-left: 0.08em;
    opacity: 0;
    transform: translateY(12px);
}

.nv-intro.is-play .nv-intro__brand {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    transition:
        opacity 0.75s ease,
        transform 0.75s ease,
        letter-spacing 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.nv-intro__shine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42%;
    left: -45%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0;
}

.nv-intro.is-play .nv-intro__shine {
    animation: nvIntroShine 1.2s ease 1.65s 1 both;
}

@keyframes nvIntroShine {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 0.85; }
    100% { transform: translateX(320%); opacity: 0; }
}

.nv-intro__rule {
    display: block;
    width: 0;
    height: 1px;
    margin: 1.15rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    opacity: 0;
}

.nv-intro.is-play .nv-intro__rule {
    width: min(220px, 42vw);
    opacity: 1;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s, opacity 0.4s ease 0.45s;
}

.nv-intro__line {
    margin: 1.05rem 0 0;
    font-weight: 700;
    font-size: clamp(0.78rem, 3.2vw, 1.05rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    max-width: 100%;
    opacity: 0;
    transform: translateY(8px);
}

.nv-intro.is-play .nv-intro__line {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s ease 0.7s, transform 0.65s ease 0.7s;
}

.nv-intro__motto {
    margin: 1.2rem 0 0;
    font-weight: 500;
    font-size: clamp(0.62rem, 2.2vw, 0.74rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.55;
    opacity: 0;
    transform: translateY(8px);
}

.nv-intro.is-play .nv-intro__motto {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 1.15s, transform 0.6s ease 1.15s;
}

.nv-intro__skip {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.38);
    font-family: inherit;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.75rem 1.1rem;
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
}

.nv-intro.is-play .nv-intro__skip {
    opacity: 1;
    transition: opacity 0.5s ease 1.2s, color 0.2s ease;
}

.nv-intro__skip:hover,
.nv-intro__skip:focus-visible {
    color: rgba(255, 255, 255, 0.88);
    outline: none;
}

@media (max-width: 640px) {
    .nv-intro__stage {
        width: calc(100% - 1.6rem);
        padding-bottom: 4.5rem;
    }

    .nv-intro.is-play .nv-intro__brand {
        letter-spacing: 0.18em;
        padding-left: 0.18em;
    }

    .nv-intro__line {
        letter-spacing: 0.1em;
        font-size: clamp(0.72rem, 4.2vw, 0.95rem);
    }

    .nv-intro__motto {
        letter-spacing: 0.1em;
        max-width: 17rem;
    }

    .nv-intro.is-play .nv-intro__rule {
        width: min(140px, 48vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nv-intro.is-play .nv-intro__brand,
    .nv-intro.is-play .nv-intro__line,
    .nv-intro.is-play .nv-intro__motto,
    .nv-intro.is-play .nv-intro__glow,
    .nv-intro.is-play .nv-intro__rule,
    .nv-intro.is-out,
    .nv-intro.is-out .nv-intro__stage {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        width: min(220px, 42vw);
        letter-spacing: 0.28em;
    }

    .nv-intro.is-play .nv-intro__shine {
        display: none;
    }

    .nv-intro.is-play .nv-intro__skip {
        opacity: 1 !important;
    }

    html.nv-await-home .nv-hero__tag,
    html.nv-await-home .nv-hero__split,
    html.nv-await-home .nv-hero__hints,
    html.nv-await-home .nv-hero__meta,
    html.nv-inicio-in .nv-hero__tag,
    html.nv-inicio-in .nv-hero__split,
    html.nv-inicio-in .nv-hero__hints,
    html.nv-inicio-in .nv-hero__meta {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

html.nv-await-home .nv-hero__tag,
html.nv-await-home .nv-hero__split,
html.nv-await-home .nv-hero__hints,
html.nv-await-home .nv-hero__meta {
    opacity: 0;
    transform: translateY(18px);
}

html.nv-inicio-in .nv-hero__tag,
html.nv-inicio-in .nv-hero__split,
html.nv-inicio-in .nv-hero__hints,
html.nv-inicio-in .nv-hero__meta {
    opacity: 1;
    transform: translateY(0);
}

html.nv-inicio-in .nv-hero__tag {
    transition: opacity 0.8s ease 0.12s, transform 0.8s ease 0.12s;
}

html.nv-inicio-in .nv-hero__split {
    transition: opacity 0.9s ease 0.22s, transform 0.9s ease 0.22s;
}

html.nv-inicio-in .nv-hero__hints {
    transition: opacity 0.8s ease 0.38s, transform 0.8s ease 0.38s;
}

html.nv-inicio-in .nv-hero__meta {
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

html.nv-await-home .nv-hero__bg--base {
    transform: scale(1.045);
}

html.nv-inicio-in .nv-hero__bg--base {
    transform: scale(1);
    transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}
