/* =========================================================
   CABECERA LP
========================================================= */

.cabecera-lp {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
}

/* =========================================================
   FONDOS
========================================================= */

.cabecera-lp__backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.cabecera-lp__background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    opacity: 0;
    transform: scale(1);

    transition:
        opacity 1.2s ease-in-out,
        transform 6s ease-out;
}

.cabecera-lp__background.is-active {
    opacity: 1;
    transform: scale(1.03);
}

/* =========================================================
   OVERLAYS
========================================================= */

.cabecera-lp__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cabecera-lp__overlay--primary {
    z-index: 1;

    background: linear-gradient(
        180deg,
        rgba(17, 24, 39, 0.80) 0%,
        rgba(17, 24, 39, 0.60) 50%,
        rgba(17, 24, 39, 0.80) 100%
    );
}

.cabecera-lp__overlay--secondary {
    z-index: 2;

    background: linear-gradient(
        0deg,
        rgba(17, 24, 39, 0.50) 0%,
        rgba(17, 24, 39, 0) 50%,
        rgba(17, 24, 39, 0.30) 100%
    );
}

/* =========================================================
   CONTENEDOR
========================================================= */

.cabecera-lp__container {
    position: relative;
    z-index: 3;

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

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    max-width: 1440px;

    margin: 0 auto;

    padding:
        clamp(120px, 14vh, 180px)
        48px
        clamp(72px, 10vh, 120px);
}

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

.cabecera-lp__content {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 1060px;

    margin: 0 auto;

    text-align: center;
}

/* =========================================================
   CLAIM
========================================================= */

.cabecera-lp__claim {
    color: rgba(255, 255, 255, 0.65);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* =========================================================
   TÍTULO
========================================================= */

.cabecera-lp__title {
    max-width: 1050px;

    margin: 24px 0 0;

    color: #ffffff;

    font-size: clamp(48px, 6.3vw, 90px);
    font-weight: 800;
    line-height: 0.98;

    letter-spacing: -0.045em;

    text-align: center;
    text-wrap: balance;
}

/* =========================================================
   TEXTO
========================================================= */

.cabecera-lp__text {
    max-width: 760px;

    margin-top: 24px;

    color: rgba(255, 255, 255, 0.80);

    font-size: 19px;
    font-weight: 400;
    line-height: 1.65;

    text-align: center;
}

.cabecera-lp__text p {
    margin: 0 0 16px;
}

.cabecera-lp__text p:last-child {
    margin-bottom: 0;
}

.cabecera-lp__text strong,
.cabecera-lp__text b {
    color: #ffffff;
    font-weight: 700;
}

.cabecera-lp__text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   BOTONES
========================================================= */

.cabecera-lp__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 16px;

    width: 100%;

    margin-top: 40px;
}

.cabecera-lp__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 56px;

    padding: 16px 36px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.cabecera-lp__button svg {
    flex: 0 0 auto;

    transition: transform 0.2s ease;
}

.cabecera-lp__button:hover svg,
.cabecera-lp__button:focus svg {
    transform: translateX(6px);
}

/* PRIMARY */

.cabecera-lp__button--primary {
    border: 2px solid #ffffff;

    background: #ffffff;
    color: #111827;
}

.cabecera-lp__button--primary:hover,
.cabecera-lp__button--primary:focus {
    border-color: #35b9e8;

    background: #35b9e8;
    color: #ffffff;

    text-decoration: none;
}

/* SECONDARY */

.cabecera-lp__button--secondary {
    border: 2px solid rgba(255, 255, 255, 0.40);

    background: transparent;
    color: #ffffff;
}

.cabecera-lp__button--secondary:hover,
.cabecera-lp__button--secondary:focus {
    border-color: #ffffff;

    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;

    text-decoration: none;
}

/* =========================================================
   ANIMACIÓN INICIAL
========================================================= */

.cabecera-lp__animate {
    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 0.7s ease-out,
        transform 0.7s ease-out;
}

.cabecera-lp__claim {
    transition-delay: 0.15s;
}

.cabecera-lp__title {
    transition-delay: 0.25s;
}

.cabecera-lp__text {
    transition-delay: 0.40s;
}

.cabecera-lp__buttons {
    transition-delay: 0.55s;
}

.cabecera-lp.is-visible .cabecera-lp__animate {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   POPUP
========================================================= */

.cabecera-lp-popup {
    position: fixed;
    inset: 0;

    z-index: 999999;

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

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.cabecera-lp-popup.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}

.cabecera-lp-popup__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(8, 18, 26, 0.78);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cabecera-lp-popup__dialog {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 760px;
    max-height: calc(100dvh - 48px);

    overflow-y: auto;

    padding: 48px;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.28);

    opacity: 0;
    transform: translateY(18px) scale(0.985);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.cabecera-lp-popup.is-open .cabecera-lp-popup__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================================
   CERRAR POPUP
========================================================= */

.cabecera-lp-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;

    z-index: 3;

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

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #111827;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.cabecera-lp-popup__close:hover,
.cabecera-lp-popup__close:focus {
    background: rgba(17, 24, 39, 0.07);
    color: #0077ab;
}

/* =========================================================
   HUBSPOT EN POPUP
========================================================= */

.cabecera-lp-popup__content {
    width: 100%;
    color: #111827;
}

.cabecera-lp-popup__content .hbspt-form {
    width: 100%;
}

.cabecera-lp-popup__content .hs-form {
    width: 100%;
}

.cabecera-lp-popup__content fieldset {
    max-width: none !important;
}

.cabecera-lp-popup__content .hs-form-field {
    margin-bottom: 18px;
}

.cabecera-lp-popup__content label {
    display: block;

    margin-bottom: 7px;

    color: #111827;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.cabecera-lp-popup__content input[type="text"],
.cabecera-lp-popup__content input[type="email"],
.cabecera-lp-popup__content input[type="tel"],
.cabecera-lp-popup__content input[type="number"],
.cabecera-lp-popup__content input[type="url"],
.cabecera-lp-popup__content input[type="date"],
.cabecera-lp-popup__content select,
.cabecera-lp-popup__content textarea {
    display: block;

    width: 100% !important;

    min-height: 50px;

    padding: 12px 14px !important;

    border: 1px solid rgba(17, 24, 39, 0.18) !important;
    border-radius: 4px !important;

    background: #ffffff !important;
    color: #111827 !important;

    font-family: inherit !important;
    font-size: 15px !important;

    box-shadow: none !important;
}

.cabecera-lp-popup__content textarea {
    min-height: 120px;
    resize: vertical;
}

.cabecera-lp-popup__content input:focus,
.cabecera-lp-popup__content select:focus,
.cabecera-lp-popup__content textarea:focus {
    border-color: #0077ab !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(0, 119, 171, 0.12) !important;
}

.cabecera-lp-popup__content .hs-submit {
    margin-top: 24px;
}

.cabecera-lp-popup__content .hs-button,
.cabecera-lp-popup__content input[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 14px 24px !important;

    border: 1px solid #0077ab !important;
    border-radius: 4px !important;

    background: #0077ab !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    cursor: pointer;

    box-shadow: none !important;
}

.cabecera-lp-popup__content .hs-button:hover,
.cabecera-lp-popup__content input[type="submit"]:hover {
    border-color: #005f89 !important;
    background: #005f89 !important;
}

/* BLOQUEO SCROLL */

html.cabecera-lp-popup-open,
body.cabecera-lp-popup-open {
    overflow: hidden;
}

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

@media (max-width: 1024px) {

    .cabecera-lp__container {
        padding-right: 32px;
        padding-left: 32px;
    }

    .cabecera-lp__title {
        font-size: clamp(48px, 7vw, 72px);
    }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 768px) {

    .cabecera-lp {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .cabecera-lp__container {
        min-height: 100vh;
        min-height: 100dvh;

        padding:
            110px
            20px
            64px;
    }

    .cabecera-lp__title {
        margin-top: 20px;

        font-size: clamp(40px, 12vw, 56px);
        line-height: 1.02;
    }

    .cabecera-lp__text {
        margin-top: 22px;

        font-size: 17px;
        line-height: 1.6;
    }

    .cabecera-lp__buttons {
        flex-direction: column;

        margin-top: 32px;
    }

    .cabecera-lp__button {
        width: 100%;
        max-width: 420px;
    }

    .cabecera-lp__background {
        background-position: center center;
    }

    .cabecera-lp-popup {
        padding: 16px;
    }

    .cabecera-lp-popup__dialog {
        max-height: calc(100dvh - 32px);

        padding:
            48px
            24px
            28px;
    }
}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 520px) {

    .cabecera-lp__container {
        padding:
            96px
            18px
            52px;
    }

    .cabecera-lp__title {
        font-size: 39px;
    }

    .cabecera-lp__claim {
        font-size: 11px;
    }

    .cabecera-lp__text {
        font-size: 16px;
    }

    .cabecera-lp__button {
        min-height: 54px;

        padding:
            15px
            24px;

        font-size: 15px;
    }

    .cabecera-lp-popup__dialog {
        padding:
            46px
            18px
            24px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cabecera-lp__background,
    .cabecera-lp__animate,
    .cabecera-lp__button,
    .cabecera-lp__button svg,
    .cabecera-lp-popup,
    .cabecera-lp-popup__dialog {
        transition: none;
    }

    .cabecera-lp__animate {
        opacity: 1;
        transform: none;
    }

    .cabecera-lp__background.is-active {
        transform: none;
    }
}