/*
 * BIOVIA CONTACT HERO
 * ============================================================================
 * Hero audiovisual base para la página Contact.
 */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.biovia-contact-hero,
.biovia-contact-hero * {
    box-sizing: border-box;
}

.biovia-contact-hero {
    --biovia-contact-hero-poster: none;
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 400px;
    height: clamp(420px, 58svh, 620px);
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(74, 92, 101, 0.12) 0%, rgba(10, 19, 25, 0.36) 68%),
        #0a1218;
    isolation: isolate;
}

.biovia-contact-hero__placeholder,
.biovia-contact-hero__video,
.biovia-contact-hero__veil,
.biovia-contact-hero__shape {
    position: absolute;
    inset: 0;
}

.biovia-contact-hero__placeholder {
    z-index: -3;
    background-image:
        linear-gradient(180deg, rgba(5, 10, 14, 0.08) 0%, rgba(5, 10, 14, 0.16) 100%),
        var(--biovia-contact-hero-poster);
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.45s ease;
}

.biovia-contact-hero__video {
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.biovia-contact-hero__veil {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 16, 29, 0.34) 0%, rgba(6, 21, 36, 0.2) 34%, rgba(7, 22, 35, 0.12) 62%, rgba(7, 22, 35, 0.2) 100%),
        linear-gradient(180deg, rgba(6, 17, 27, 0.1) 0%, rgba(6, 17, 27, 0.22) 100%);
}

.biovia-contact-hero__shape {
    pointer-events: none;
}

.biovia-contact-hero__shape--top {
    z-index: 2;
    inset: 0 0 auto 0;
    height: clamp(18px, 4vw, 52px);
    background: #030405;
    clip-path: polygon(0 0, 100% 0, 100% 36%, 0 100%);
    opacity: 0.96;
}

.biovia-contact-hero__shape--bottom {
    z-index: 2;
    inset: auto 0 0 0;
    height: clamp(24px, 5vw, 68px);
    background: #030405;
    clip-path: polygon(0 0, 100% 28%, 100% 100%, 0 100%);
    opacity: 0.96;
}

.biovia-contact-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 100%;
    width: min(100%, 1320px);
    padding: clamp(88px, 11vw, 140px) 5vw clamp(70px, 8vw, 110px);
    margin: 0 auto;
}

.biovia-contact-hero__headline {
    display: inline-block;
    max-width: 720px;
    margin: 0;
    padding: 0.4rem 0.65rem;
    border-radius: 22px;
    font-family: var(--bio-font-main), 'Montserrat', sans-serif !important;
    font-size: clamp(1.75rem, 2.3vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f2ead9;
    text-wrap: balance;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
    background: linear-gradient(180deg, rgba(7, 20, 30, 0.28) 0%, rgba(7, 20, 30, 0.16) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.biovia-contact-hero.is-video-ready .biovia-contact-hero__video {
    opacity: 1;
}

.biovia-contact-hero.is-video-ready .biovia-contact-hero__placeholder {
    opacity: 0;
}

@media (max-width: 767px) {
    .biovia-contact-hero {
        min-height: 420px;
        height: clamp(430px, 67svh, 620px);
    }

    .biovia-contact-hero__placeholder {
        background-position: 55% 42%;
    }

    .biovia-contact-hero__video {
        object-position: 55% 42%;
    }

    .biovia-contact-hero__veil {
        background:
            linear-gradient(180deg, rgba(7, 20, 30, 0.18) 0%, rgba(7, 20, 30, 0.3) 100%),
            linear-gradient(90deg, rgba(5, 15, 25, 0.3) 0%, rgba(5, 15, 25, 0.1) 100%);
    }

    .biovia-contact-hero__shape--top {
        height: 10px;
        clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
    }

    .biovia-contact-hero__shape--bottom {
        height: 28px;
        clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
    }

    .biovia-contact-hero__content {
        align-items: flex-start;
        padding: 188px 11% 72px;
    }

    .biovia-contact-hero__headline {
        padding: 0.75rem 0.9rem;
        border-radius: 18px;
        font-size: clamp(1.12rem, 4.7vw, 1.45rem);
        line-height: 1.16;
        background: linear-gradient(180deg, rgba(7, 20, 30, 0.42) 0%, rgba(7, 20, 30, 0.24) 100%);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
        letter-spacing: 0.5px;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .biovia-contact-hero {
        min-height: 500px;
        height: clamp(500px, 64svh, 760px);
    }

    .biovia-contact-hero__placeholder {
        background-position: center 42%;
    }

    .biovia-contact-hero__video {
        object-position: center 42%;
    }

    .biovia-contact-hero__content {
        padding: 132px 8vw 94px;
    }

    .biovia-contact-hero__headline {
        max-width: 520px;
        font-size: clamp(1.9rem, 3.3vw, 2.4rem);
    }
}

@media (min-width: 1025px) {
    .biovia-contact-hero__content {
        justify-content: flex-start;
    }
}
