/* =========================================================
   LeCorch Photo · Hero (home)
   ========================================================= */

@layer plugins {

    .fp-hero {
        position: relative;
        width: 100%;
        height: 100vh;
        height: 100svh;
        min-height: 600px;
        overflow: hidden;
        background: var(--color-oceano);
        color: #FFFFFF;
        isolation: isolate;
    }

    .fp-hero__media {
        position: absolute;
        inset: 0;
        z-index: 1;
    }
    .fp-hero__picture,
    .fp-hero__picture img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .fp-hero__video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 2;
    }

    .fp-hero__overlay {
        position: absolute;
        inset: 0;
        z-index: 3;
        background:
            linear-gradient(to top, rgba(15,47,68,0.55) 0%, rgba(15,47,68,0.05) 35%, transparent 60%),
            linear-gradient(to bottom, rgba(15,47,68,0.25) 0%, transparent 30%);
        pointer-events: none;
    }

    .fp-hero__content {
        position: relative;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        padding: 0 var(--sp-lateral) clamp(60px, 10vh, 120px);
        text-align: center;
    }

    .fp-hero__eyebrow {
        font-size: var(--fs-eyebrow);
        font-weight: var(--peso-medium);
        text-transform: uppercase;
        letter-spacing: 0.35em;
        margin: 0 0 20px;
        opacity: 0.92;
        color: var(--color-dorado);
    }

    .fp-hero__title {
        margin: 0 0 20px;
        font-family: var(--font);
        font-weight: var(--peso-thin);
        font-size: var(--fs-display);
        line-height: 0.95;
        letter-spacing: -0.02em;
        text-shadow: var(--shadow-text-hero);
        max-width: 22ch;
    }

    .fp-hero__subtitle {
        margin: 0 0 40px;
        font-family: var(--font);
        font-weight: var(--peso-light);
        font-size: var(--fs-h4);
        letter-spacing: 0.01em;
        max-width: 36ch;
        text-shadow: var(--shadow-text-hero);
        opacity: 0.92;
    }

    .fp-hero__cta {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 14px 32px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.45);
        color: #FFFFFF;
        font-weight: var(--peso-medium);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition:
            background-color var(--d-fast) var(--ease),
            border-color var(--d-fast) var(--ease);
    }
    .fp-hero__cta:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.8);
    }
    .fp-hero__cta::after {
        content: '↓';
        font-size: 14px;
        margin-top: -2px;
    }

    /* Scroll hint discreto (opcional, cuando el CTA pill está activo no se usa ambos) */
    .fp-hero__scroll-hint {
        position: absolute;
        bottom: clamp(24px, 4vh, 56px);
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        width: 1px;
        height: 60px;
        background: rgba(255, 255, 255, 0.4);
        overflow: hidden;
    }
    .fp-hero__scroll-hint span {
        display: block;
        width: 100%;
        height: 30px;
        background: #FFF;
        animation: fp-scroll-hint 2.4s var(--ease-in-out) infinite;
    }
    @keyframes fp-scroll-hint {
        0%   { transform: translateY(-100%); }
        50%  { transform: translateY(0); }
        100% { transform: translateY(100%); }
    }
    @media (prefers-reduced-motion: reduce) {
        .fp-hero__scroll-hint span { animation: none; }
    }

    /* Mobile · video oculto, foto fija */
    @media (max-width: 768px) {
        .fp-hero__title { max-width: 14ch; }
        .fp-hero__subtitle { font-size: var(--fs-h6); }
        .fp-hero__video { display: none; }
    }

}
