/* Hero: estilos personalizados del proyecto */
:root {
    --hero-height: min(100vh, 1080px);
    --hero-min-height: 520px;
    --hero-overlay: linear-gradient(180deg, rgba(3, 10, 14, 0.4), rgba(3, 10, 14, 0.75));
}

.hero {
    position: relative;
    min-height: var(--hero-min-height);
    height: var(--hero-height);
    overflow: hidden;
    background: #06151d;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.2s ease-in-out;
    will-change: opacity, transform;
}

.hero__bg-layer.is-active {
    opacity: 1;
}

.hero__bg-layer.is-zooming {
    animation: heroZoom 10s ease-in-out forwards;
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero__content p{
    max-width: 700px;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg-layer {
        transition: none;
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .hero__text {
        max-width: min(540px, 85%);
    }
}

@media (max-width: 640px) {
    .hero__content {
        align-items: flex-end;
        padding-bottom: 3rem;
    }

    .hero__title {
        letter-spacing: 0.04em;
    }
}
