/*
 * Ajuste aislado del encabezado y portada de Patagonia Azul.
 * Se carga después de site.css para no modificar el resto del sitio.
 */

:root {
    --header-height: 82px;
    --hero-max-width: 1320px;
}

.site-header,
.header-inner {
    min-height: var(--header-height);
}

.header-inner {
    width: min(calc(100% - 64px), var(--hero-max-width));
    gap: 26px;
}

.brand {
    width: 190px;
    height: 62px;
}

.site-nav {
    max-width: 720px;
    gap: clamp(18px, 1.65vw, 30px);
}

.header-cta {
    min-width: 176px;
}

.hero {
    min-height: clamp(590px, calc(100svh - var(--header-height)), 720px);
    align-items: center;
    background-position: center center;
}

.hero__content {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 64px), var(--hero-max-width));
    padding-block: clamp(54px, 6vw, 82px);
}

.hero__content > * {
    max-width: 700px;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 4.15vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

.hero__lead {
    max-width: 650px;
    margin-bottom: 25px;
    font-size: clamp(1rem, 1.1vw, 1.12rem);
    line-height: 1.58;
}

.hero__actions {
    margin-bottom: 32px;
}

.hero__qualities {
    gap: 13px 26px;
}

/*
 * Iluminación marina: un reflejo lento sobre el producto y pequeños
 * destellos en el hielo. No bloquea clics ni altera la fotografía.
 */
.hero::before {
    position: absolute;
    inset: -12% -7% -12% 44%;
    z-index: 1;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 63% 40%, rgba(255, 255, 255, 0.56) 0 4%, rgba(255, 255, 255, 0.18) 16%, transparent 35%),
        radial-gradient(ellipse at 52% 72%, rgba(84, 214, 241, 0.24) 0, transparent 40%),
        linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.24) 51%, transparent 64%);
    filter: blur(3px);
    mix-blend-mode: screen;
    opacity: 0.58;
    transform: translate3d(-1.5%, 0, 0);
    animation: seafood-light 6.8s ease-in-out infinite alternate;
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: auto;
    height: auto;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2.5px),
        radial-gradient(circle at 82% 69%, rgba(255, 255, 255, 0.8) 0 1.5px, transparent 3px),
        radial-gradient(circle at 65% 78%, rgba(155, 235, 250, 0.9) 0 1px, transparent 2.5px),
        radial-gradient(circle at 91% 53%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2.5px),
        linear-gradient(180deg, transparent 72%, rgba(217, 243, 250, 0.3));
    opacity: 0.42;
    animation: ice-sparkle 5.4s ease-in-out infinite alternate;
}

@keyframes seafood-light {
    from {
        opacity: 0.42;
        transform: translate3d(-2.2%, -0.5%, 0) scale(0.99);
    }

    to {
        opacity: 0.7;
        transform: translate3d(2%, 1%, 0) scale(1.025);
    }
}

@keyframes ice-sparkle {
    from {
        opacity: 0.26;
    }

    to {
        opacity: 0.58;
    }
}

@media (max-width: 1100px) {
    :root {
        --header-height: 76px;
    }

    .header-inner,
    .hero__content {
        width: min(calc(100% - 48px), var(--hero-max-width));
    }

    .brand {
        width: 174px;
        height: 58px;
    }

    .site-nav {
        max-width: none;
    }

    .hero {
        min-height: clamp(570px, calc(100svh - var(--header-height)), 680px);
    }

    .hero h1 {
        max-width: 660px;
        font-size: clamp(2.85rem, 5.5vw, 4rem);
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 72px;
    }

    .header-inner,
    .hero__content {
        width: calc(100% - 36px);
    }

    .brand {
        width: 158px;
        height: 54px;
    }

    .hero {
        min-height: clamp(650px, calc(100svh - var(--header-height)), 740px);
        align-items: flex-start;
        background-image:
            linear-gradient(180deg, rgba(246, 252, 255, 0.99) 0%, rgba(246, 252, 255, 0.94) 45%, rgba(246, 252, 255, 0.28) 72%, rgba(246, 252, 255, 0.04) 100%),
            url("../images/hero-langostinos.webp");
        background-position: 66% center;
    }

    .hero__content {
        padding-block: 46px 220px;
    }

    .hero__content > * {
        max-width: 620px;
    }

    .hero h1 {
        max-width: 620px;
        font-size: clamp(2.75rem, 9vw, 4rem);
        line-height: 1.03;
    }

    .hero__lead {
        max-width: 580px;
    }

    .hero::before {
        inset: 38% -18% -14% 18%;
        opacity: 0.48;
    }

    .hero::after {
        background:
            radial-gradient(circle at 70% 66%, rgba(255, 255, 255, 0.92) 0 1px, transparent 2.5px),
            radial-gradient(circle at 84% 76%, rgba(255, 255, 255, 0.82) 0 1.5px, transparent 3px),
            linear-gradient(180deg, transparent 68%, rgba(217, 243, 250, 0.28));
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 690px;
        background-position: 61% center;
    }

    .hero__content {
        padding-block: 40px 210px;
    }

    .hero h1 {
        max-width: 100%;
        margin-bottom: 18px;
        font-size: clamp(2.5rem, 12vw, 3.45rem);
        letter-spacing: -0.012em;
    }

    .hero__lead {
        margin-bottom: 22px;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hero__actions {
        margin-bottom: 25px;
    }

    .hero__qualities {
        gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none;
    }
}
