/* Offsets in-page anchors (hero buttons) by the height of the sticky header. */
html:has(.vb-hero) {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

.vb-hero {
    position: relative;
    background: var(--gris-fondo);
}

.vb-hero__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: clamp(540px, 74vh, 780px);
}

.vb-hero__body {
    display: grid;
    align-content: center;
    gap: 26px;
    padding: 72px 64px 72px 0;
    color: var(--gris-oscuro);
}

.vb-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vb-hero__eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: currentColor;
}

.vb-hero .vb-hero__title {
    margin: 0 !important;
    font-size: clamp(2.25rem, 6vw, 4.5rem) !important;
    line-height: 1.02 !important;
    font-weight: 300 !important;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--texto);
}

.vb-hero__title strong,
.vb-hero__title b {
    display: block;
    font-weight: 900;
}

.vb-hero__subtitle {
    margin: 0;
    max-width: 34ch;
    font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
    line-height: 1.5;
}

.vb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 32px;
}

.vb-hero__media {
    position: absolute;
    inset: 0 0 0 50%;
    background: var(--gris-claro);
}

.vb-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vb-hero__badge {
    position: absolute;
    bottom: 64px;
    left: -40px;
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    background: var(--gris-medio);
    color: var(--white);
}

.vb-hero__badge svg {
    width: 36px;
    height: 36px;
}

.vb-hero--cover {
    background: var(--texto);
}

.vb-hero--cover .vb-hero__inner {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr);
}

.vb-hero--cover .vb-hero__body {
    padding: 88px 0;
    color: var(--white);
}

.vb-hero--cover .vb-hero__title {
    color: var(--white);
}

.vb-hero--cover .vb-hero__media {
    inset: 0;
}

.vb-hero--cover .vb-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(46, 47, 47, 0.86) 0%, rgba(46, 47, 47, 0.62) 45%, rgba(46, 47, 47, 0.18) 100%);
}

.vb-hero--cover .vb-hero__badge {
    display: none;
}

.vb-hero--cover .vb-button {
    background: var(--white) !important;
    border-color: var(--white);
    color: var(--texto) !important;
}

.vb-hero--cover .vb-button:hover {
    background: transparent !important;
    color: var(--white) !important;
}

.vb-hero--cover .vb-link-line,
.vb-hero--cover .vb-link-line:hover {
    color: var(--white) !important;
}

.vb-hero--cover .vb-link-line::before {
    background: var(--white);
}

@media (max-width: 991px) {
    .vb-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .vb-hero__body {
        padding: 56px 0 48px;
    }

    .vb-hero__media {
        position: relative;
        inset: auto;
        height: 360px;
    }

    .vb-hero--cover .vb-hero__inner {
        min-height: 460px;
    }

    .vb-hero--cover .vb-hero__body {
        padding: 64px 0;
    }

    .vb-hero--cover .vb-hero__media {
        position: absolute;
        inset: 0;
        height: auto;
    }

    .vb-hero__badge {
        top: -32px;
        bottom: auto;
        left: var(--vb-gutter);
        width: 64px;
        height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.vb-hero) {
        scroll-behavior: auto;
    }
}

.vb-hero__eyebrow a {
    color: inherit;
    text-decoration: none;
}

.vb-hero__eyebrow a:hover {
    color: var(--texto);
}

.vb-hero--compact .vb-hero__inner {
    min-height: clamp(360px, 46vh, 460px);
}

.vb-hero--compact .vb-hero__body {
    padding-block: 56px;
}

.vb-hero--compact .vb-hero__title {
    font-size: clamp(2rem, 4.6vw, 3.5rem) !important;
}

.vb-hero--compact .vb-hero__subtitle {
    max-width: 46ch;
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 991px) {
    .vb-hero--compact .vb-hero__inner {
        min-height: 0;
    }

    .vb-hero--compact.vb-hero--cover .vb-hero__inner {
        min-height: 320px;
    }
}

.vb-hero--focus-top .vb-hero__image {
    object-position: center top;
}

.vb-hero--focus-bottom .vb-hero__image {
    object-position: center bottom;
}
