/* ==========================================================================
   Hero — mobile first
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--color-azul);
    overflow: hidden;
    padding: 2rem 0 0;
}

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

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 76, 152, 0.82) 0%,
        rgba(10, 76, 152, 0.55) 38%,
        rgba(10, 76, 152, 0.2) 65%,
        rgba(10, 76, 152, 0.05) 100%
    );
}

/* Layout */
.hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    padding-bottom: 0;
}

.hero__content {
    width: 100%;
}

/* Typography */
.hero__title {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.hero__title-line {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    color: var(--color-blanco);
}

.hero__title-line--accent {
    color: var(--color-amarillo);
}

.hero__subtitle {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-blanco);
    margin-bottom: 0.875rem;
}

.hero__slogan {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: 0.875rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero__slogan strong {
    color: var(--color-amarillo);
    font-weight: 800;
}

.hero__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 540px;
    line-height: 1.65;
}

/* Actions */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    max-width: 520px;
}

.hero__btn {
    width: 100%;
    white-space: nowrap;
    text-align: center;
}

.hero__btn::after {
    content: none;
}

/* Visual */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: auto;
    overflow: visible;
}

.hero__figure {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

.hero__image {
    display: block;
    width: 100%;
    max-width: min(320px, 85vw);
    height: auto;
    object-fit: contain;
    object-position: bottom center;
}

/* Tagline */
.hero__tagline {
    display: none;
    position: absolute;
    right: 0;
    top: 5%;
    text-align: right;
    padding: 0.75rem 1rem;
    z-index: 2;
    pointer-events: none;
}

.hero__tagline::before,
.hero__tagline::after {
    content: '';
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    border-color: var(--color-amarillo);
    border-style: solid;
}

.hero__tagline::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.hero__tagline::after {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

.hero__tagline-script {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--color-amarillo);
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

.hero__tagline-line {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.625rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-blanco);
    line-height: 1.05;
    letter-spacing: 0.04em;
}

.hero__tagline-city {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-amarillo);
    line-height: 1;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-top: 0.125rem;
    padding-bottom: 0.375rem;
    border-bottom: 4px solid var(--color-amarillo);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 480px) {
    .hero__actions {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 2.5rem 0 0;
    }

    .hero__subtitle {
        font-size: 0.875rem;
    }

    .hero__text {
        margin-bottom: 1.75rem;
    }

    .hero__image {
        max-width: min(380px, 45vw);
    }

    .hero__tagline {
        display: block;
        right: -0.5rem;
        top: 8%;
    }

    .hero__tagline::before,
    .hero__tagline::after {
        width: 2rem;
        height: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 3rem 0 0;
    }

    .hero__container {
        flex-direction: row;
        align-items: flex-end;
        gap: 1.5rem;
    }

    .hero__content {
        flex: 1;
        align-self: center;
        padding-bottom: 2rem;
    }

    .hero__title-line {
        font-size: 3.5rem;
    }

    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: auto;
        max-width: none;
    }

    .hero__btn {
        flex: 0 0 auto;
        width: auto;
        letter-spacing: 0.03em;
    }

    .hero__visual {
        flex: 0 0 38%;
        justify-content: flex-end;
        margin-top: 0;
    }

    .hero__image {
        width: auto;
        max-width: 100%;
        max-height: 520px;
        object-position: bottom right;
    }

    .hero__tagline {
        right: 0;
        top: 5%;
        padding: 1rem 1.25rem;
        transform: translateX(10%);
    }

    .hero__tagline::before,
    .hero__tagline::after {
        width: 2.25rem;
        height: 2.25rem;
    }

    .hero__tagline-city {
        border-bottom-width: 5px;
    }
}

@media (min-width: 1200px) {
    .hero__title-line {
        font-size: 4rem;
    }

    .hero__visual {
        flex: 0 0 40%;
    }

    .hero__image {
        max-height: 560px;
    }

    .hero__tagline {
        top: 6%;
        transform: translateX(15%);
    }
}
