/*==================================================*
 * CAPINOA - HERO PORTADA
 *==================================================*/

.portada-hero {
    position: relative;
    width: 100%;
    height: min(760px, 78vh);
    min-height: 560px;

    margin: 0 0 45px 0;
    padding: 0;

    overflow: hidden;
    isolation: isolate;

    background: #0d3555;
}


/*==================================================*
 * IMAGEN
 *==================================================*/

.portada-hero .cap-hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    z-index: 1;
}

.portada-hero .cap-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.02);
}


/*==================================================*
 * OSCURECIMIENTO SUAVE
 *==================================================*/

.portada-hero .cap-hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            90deg,
            rgba(7, 30, 52, .58) 0%,
            rgba(7, 30, 52, .34) 38%,
            rgba(7, 30, 52, .08) 70%,
            rgba(7, 30, 52, .02) 100%
        );
}


/*==================================================*
 * CONTENIDO
 *==================================================*/

.portada-hero .cap-hero-content {
    position: relative;

    z-index: 3;

    width: min(1140px, calc(100% - 48px));
    height: 100%;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    justify-content: space-;
    align-items: flex-start;

    padding: 280px 0 40px;
}


/*==================================================*
 * SLOGAN
 *==================================================*/

.portada-hero .cap-hero-slogan {
    max-width: 570px;

    margin: 0 0 28px 0;
    padding: 0;

    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.08;

    font-weight: 700;
    letter-spacing: -0.035em;

    color: #ffffff;

    text-wrap: balance;
}

.portada-hero .cap-hero-slogan span {
    display: block;

    color: #ffffff;
}

.portada-hero .cap-hero-slogan strong {
    display: block;

    color: #55c7d2;

    font-weight: 600;
    font-size: 40px; 
     margin-top: 10px;
}


/*==================================================*
 * BOTÓN
 *==================================================*/

.portada-hero .cap-hero-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 13px 27px;

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 30px;

    background: #1265b0;

    color: #ffffff;

    font-size: .92rem;
    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .18);

    transition:
        transform .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
}

.portada-hero .cap-hero-btn:hover {
    background: #0d579b;

    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .22);
}


/*==================================================*
 * TABLET
 *==================================================*/

@media (max-width: 991.98px) {

    .portada-hero {
        height: 650px;
        min-height: 520px;

        margin-bottom: 35px;
    }

    .portada-hero .cap-hero-content {
        width: min(100% - 40px, 720px);

        padding-top: 70px;
    }

    .portada-hero .cap-hero-slogan {
        max-width: 500px;

        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }

}


/*==================================================*
 * MOBILE
 *==================================================*/

@media (max-width: 767.98px) {

    .portada-hero {
        height: 560px;
        min-height: 0;

        margin-bottom: 28px;
    }

    .portada-hero .cap-hero-image img {
        object-position: center center;
    }

    .portada-hero .cap-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(7, 30, 52, .12) 0%,
                rgba(7, 30, 52, .30) 48%,
                rgba(7, 30, 52, .58) 100%
            );
    }

    .portada-hero .cap-hero-content {
        width: calc(100% - 36px);

        padding: 60px 0 35px;

        justify-content: flex-end;
    }

    .portada-hero .cap-hero-slogan {
        max-width: 330px;

        margin-bottom: 22px;

        font-size: 2.15rem;
        line-height: 1.10;

        letter-spacing: -0.025em;
    }

    .portada-hero .cap-hero-btn {
        min-height: 48px;

        padding: 12px 23px;

        font-size: .88rem;
    }

}


/*==================================================*
 * SMALL MOBILE
 *==================================================*/

@media (max-width: 480px) {

    .portada-hero {
        height: 500px;

        margin-bottom: 24px;
    }

    .portada-hero .cap-hero-content {
        width: calc(100% - 32px);

        padding-bottom: 30px;
    }

    .portada-hero .cap-hero-slogan {
        max-width: 290px;
        text-align: left; 
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .portada-hero .cap-hero-btn {
        min-height: 46px;

        padding: 11px 20px;

        font-size: .84rem;
    }

}