/* ==========================================================================
   Scrollytelling Pro - Borealflow
   ========================================================================== */

.sp-color-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    min-height: 100vh;
    transition: background 1.4s ease, color 1.4s ease;
    background: #ffffff;
    color: #111;
}

.sp-sticky-section {
    position: relative;
    height: 600vh;
}

.sp-sticky-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Parallax --- */

.sp-parallax {
    position: absolute;
    top: -10vh;
    left: 0;
    width: 100%;
    height: 120vh;
    object-fit: cover;
    z-index: 1;
    transition: filter 1.2s ease;
    transform: translateY(0) scale(1.1);
    will-change: transform, filter;
}

/* --- Steps --- */

.sp-step {
    position: absolute;
    opacity: 0;
    transform: translateY(40px);
    filter: blur(12px);
    transition: opacity .9s cubic-bezier(.25,.46,.1,.99),
                transform .9s cubic-bezier(.25,.46,.1,.99),
                filter .9s cubic-bezier(.25,.46,.1,.99);
    max-width: 720px;
    width: 90%;
    text-align: left;
    z-index: 2;
    padding: 0 40px;
    box-sizing: border-box;
}

.sp-step.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- Reveal línea a línea --- */

.sp-line {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
    transition: opacity .8s cubic-bezier(.25,.46,.1,.99),
                transform .8s cubic-bezier(.25,.46,.1,.99),
                filter .8s cubic-bezier(.25,.46,.1,.99);
}

.sp-step.active .sp-line { opacity: 1; transform: translateY(0); filter: blur(0); }
.sp-step.active .sp-line:nth-child(1) { transition-delay: 0.00s; }
.sp-step.active .sp-line:nth-child(2) { transition-delay: 0.12s; }
.sp-step.active .sp-line:nth-child(3) { transition-delay: 0.24s; }
.sp-step.active .sp-line:nth-child(4) { transition-delay: 0.36s; }

/* --- Tipografía --- */

.sp-title {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 850;
    font-size: clamp(36px, 6vw, 72px);
    margin: 0 0 12px 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.sp-subtitle {
    font-family: 'Uncut Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.5vw, 28px);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.sp-paragraph {
    font-family: 'Uncut Sans', sans-serif;
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 0 24px 0;
    opacity: 0.85;
}

/* --- Botón --- */

.sp-button {
    display: inline-block;
    padding: 12px 28px;
    background: currentColor;
    color: inherit;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
}

.sp-button:hover {
    opacity: 0.8;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .sp-sticky-inner {
        align-items: flex-end;
        padding-bottom: 12vh;
    }

    .sp-step {
        padding: 0 6vw;
    }

    .sp-parallax {
        transform: scale(1.2);
    }
}
