/* /assets/css/pages.home.css */

/* ============== HOME – Intro centrado ============== */

/* Pantalla de inicio (centrado) */
.intro {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.2rem;

    background: linear-gradient(180deg, #090b10 0%, var(--bg) 60%);
    color: var(--text);

    position: relative;
    z-index: 1;
    overflow: hidden;
    /* para recortar la marca de agua */

    /* para el fade */
    transition: opacity .25s ease;
}

/* AHORA: se desvanece cuando ya está "cerrando" el overlay */
body.split-in .intro {
    opacity: 0;
    transition-delay: .35s;
    /* ajustable: 0.25–0.55 */
}

/* ================== MARCA DE AGUA (LOGO PNG) ==================
   Asegurate de tener el PNG en:
   /assets/img/spatium-mark.png

   Si el nombre/ruta es diferente, cambiá solo esta línea:
   background-image: url("../img/spatium-mark.png");
=============================================================== */

.intro::before,
.intro::after {
    content: "";
    position: absolute;
    inset: -12%;
    pointer-events: none;
    z-index: 0;

    background-image: url("../img/spatium-mark.png");
    background-repeat: no-repeat;
    background-position: 50% 45%;
    background-size: min(72vw, 860px);

    transform: rotate(-18deg);

    /* Integra el logo con el fondo (podés probar quitarlo si querés más “plano”) */
    mix-blend-mode: screen;
}

/* Capa base (logo suave) */
.intro::before {
    opacity: .075;
    filter: saturate(1.1) contrast(1.05);
    animation: wmFloat 14s ease-in-out infinite;
}

/* Capa glow (difuminado) */
.intro::after {
    opacity: .05;
    filter: blur(18px) saturate(1.2);
    transform: rotate(-18deg) scale(1.06);
    animation: wmFloat2 18s ease-in-out infinite;
}

/* Animaciones muy sutiles */
@keyframes wmFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-18deg);
    }

    50% {
        transform: translateY(-14px) rotate(-16.5deg);
    }
}

@keyframes wmFloat2 {

    0%,
    100% {
        transform: translateY(0) rotate(-18deg) scale(1.06);
    }

    50% {
        transform: translateY(10px) rotate(-19.5deg) scale(1.06);
    }
}

/* Accesibilidad: sin animaciones */
@media (prefers-reduced-motion: reduce) {

    .intro::before,
    .intro::after {
        animation: none !important;
    }
}

/* ================== CONTENIDO POR ENCIMA DEL WATERMARK ================== */

/* Stack interno: controla el espaciado exacto */
.intro__stack {
    position: relative;
    /* clave para estar por encima del ::before/::after */
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 980px;
    margin-inline: auto;
}

/* Título + párrafo con márgenes reseteados */
.intro__title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    margin: 0;
}

.intro__lead {
    color: #cdd4df;
    max-width: 60ch;
    margin: 0;
    font-size: 1.125rem;
}

/* Botonera */
.intro__actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
}