/* ═══════════════════════════════════════════════════════════
   Bloque: Inicio - Bloque Destacados
   Desktop-first
   ═══════════════════════════════════════════════════════════ */

.hbd-bloque,
.hbd-bloque * {
    box-sizing: border-box;
}

.hbd-bloque {
    padding-top: var(--hbd-pad-dt, 75px);
    padding-bottom: var(--hbd-pad-db, 100px);
    overflow: visible;
    --hbd-arrow-offset: 0px;
    --hbd-image-height: 575px;
    --hbd-regla-height: 509px;
    --hbd-regla-first-line-offset: calc(((var(--hbd-image-height) - var(--hbd-regla-height)) / 2) + 6px);
    --hbd-stage-gap-top: 34px;
    --hbd-stage-gap-bottom: 42px;
    --hbd-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.hbd-bloque--has-scroll {
    padding-top: 0;
    padding-bottom: 0;
}

.hbd-scroll {
    position: relative;
}

.hbd-stage {
    position: relative;
}

.hbd-bloque--has-scroll .hbd-stage {
    position: sticky;
    top: 0;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--hbd-pad-dt, 20px) + var(--hbd-stage-gap-top));
    padding-bottom: 20px;
}

.hbd-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 558px) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 72px);
    align-items: stretch;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    width: 100%;
    min-height: var(--hbd-image-height);
}

.hbd-texto {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    min-height: var(--hbd-image-height);
    padding-top: 0;
    width: 100%;
    pointer-events: none;
}

.hbd-bloque--has-scroll .hbd-texto {
    min-height:0;
}

.hbd-regla-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 34px;
    height: var(--hbd-image-height);
}

.hbd-regla {
    display: block;
    width: 34px;
    height: var(--hbd-regla-height);
    max-height: 100%;
}

.hbd-regla__arrow {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--custom-rojo-principal);
    transform: translate3d(0, var(--hbd-arrow-offset, 0px), 0);
    transition: transform 0.72s var(--hbd-motion-ease);
    will-change: transform;
}

.hbd-regla__arrow svg {
    display: block;
}

.hbd-bloque--single-step .hbd-regla__arrow {
    display: none;
}

.hbd-texto__viewport {
    position: relative;
    display: grid;
    width: 100%;
    min-height: var(--hbd-image-height);
    padding-top: var(--hbd-regla-first-line-offset);
    align-items: flex-start;
    overflow: hidden;
}

.hbd-step {
    grid-area: 1 / 1;
    min-width: 0;
    z-index: 1;
}

.hbd-step.is-active {
    z-index: 2;
}

.hbd-step--text {
    transform: translate3d(0, var(--hbd-text-translate, 0px), 0);
    opacity: var(--hbd-text-opacity, 1);
    will-change: transform, opacity;
}

.hbd-texto__content {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    max-width: 498px;
    flex-shrink: 0;
}

.hbd-volanta {
    font-family: var(--wp--preset--font-family--jetbrains-mono);
    font-weight: 700;
    font-style: normal;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: -0.12px;
    text-transform: uppercase;
    color: var(--wp--preset--color--custom-rojo-principal);
    margin: 0;
}

.hbd-titulo {
    font-family: var(--wp--preset--font-family--soho-gothic-pro);
    font-weight: 700;
    font-style: normal;
    font-size: var(--hbd-titulo-fs, 48px);
    line-height: 1.15;
    letter-spacing: -0.96px;
    color: var(--wp--preset--color--custom-negro);
    margin: 0;
}

.hbd-titulo--balance {
    text-wrap: balance;
}

.hbd-imagen {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    height: var(--hbd-image-height);
    overflow: hidden;
    contain: paint;
    display: block;
    text-decoration: none;
    z-index: 1;
    min-width: 0;
}

@media (max-width: 1385px) and (min-width: 1024px) {
    .hbd-imagen {
        width: 100%;
    }
}

.hbd-imagen--placeholder {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    cursor: default;
}

.hbd-imagen__viewport {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.hbd-imagen__step {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translate3d(0, var(--hbd-image-translate, 0%), 0);
    will-change: transform;
}

.hbd-imagen__step-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hbd-imagen__step.is-active {
    z-index: 2;
}

.hbd-imagen__step.is-interactive {
    z-index: 3;
    pointer-events: auto;
}

.hbd-imagen__wrap {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    position: relative;
    overflow: hidden;
}

.hbd-imagen__wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hbd-imagen__wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	filter: grayscale(0);
	transition: transform 0.4s ease, filter 0.4s ease;
}

.hbd-imagen__overlay {
    position: absolute;
    inset: 0;
    background: var(--wp--preset--color--custom-rojo-principal);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.hbd-imagen__wrap:hover .hbd-imagen__overlay {
    opacity: 0.8;
}

.hbd-imagen__wrap:hover img {
    transform: scale(1.03);
	filter: grayscale(1);
}

.hbd-imagen__cta {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--wp--preset--color--custom-negro);
    color: var(--wp--preset--color--custom-blanco);
    padding: 16px 23px;
    font-family: var(--wp--preset--font-family--jetbrains-mono);
    font-weight: 700;
    font-style: normal;
    font-size: 12px;
    letter-spacing: -0.12px;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: left, top, opacity;
}

.hbd-imagen__cta-arrow {
    display: flex;
    align-items: center;
    transform: rotate(45deg);
}

.hbd-imagen__cta-arrow svg {
    display: block;
}

.hbd-cta-mobile {
    display: none;
}

.hbd-cta-mobile.is-disabled {
    cursor: default;
}

.editor-styles-wrapper .hbd-imagen {
    pointer-events: none;
}

.editor-styles-wrapper .hbd-step--text,
.editor-styles-wrapper .hbd-imagen__step {
    transition: none;
}

.hbd-editor-step-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hbd-editor-step-switcher .components-button {
    min-width: 80px;
    justify-content: center;
}

.hbd-editor-ayuda {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 1023px) {
    .hbd-bloque {
        padding: var(--hbd-pad-mt, 60px) 0 var(--hbd-pad-mb, 20px) 0;
        --hbd-image-height: 200px;
        --hbd-stage-gap-top: 32px;
        --hbd-stage-gap-bottom: 24px;
    }

    .hbd-bloque--has-scroll {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hbd-bloque--has-scroll .hbd-stage {
        top: 0;
        min-height: auto;
        align-items: flex-start;
        padding-top: calc(var(--hbd-pad-mt, 60px) + var(--hbd-stage-gap-top));
        padding-bottom: 0;
    }

    .hbd-inner {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .hbd-bloque--has-scroll .hbd-inner {
        min-height: auto;
        justify-content: flex-start;
    }

    .hbd-texto {
        width: 100%;
        gap: 0;
        padding-top: 0;
        min-height: 0;
    }

    .hbd-regla-wrap {
        display: none;
    }

    .hbd-texto__viewport,
    .hbd-texto__content {
        width: 100%;
    }

    .hbd-texto__viewport {
        min-height: 0;
        padding-top: 0;
    }

    .hbd-titulo {
        font-size: clamp(24px, 6.4vw, var(--hbd-titulo-fs-mob, 28px));
        line-height: 1.12;
        letter-spacing: -0.56px;
        width: 100%;
    }

    .hbd-cta-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: var(--wp--preset--color--custom-negro);
        color: var(--wp--preset--color--custom-blanco);
        padding: 14px 20px;
        margin: 18px 0 20px;
        font-family: var(--wp--preset--font-family--jetbrains-mono);
        font-weight: 700;
        font-style: normal;
        font-size: 12px;
        letter-spacing: -0.12px;
        line-height: 1.35;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
        width: 100%;
    }

    .hbd-cta-mobile__arrow {
        display: flex;
        align-items: center;
        transform: rotate(45deg);
    }

    .hbd-cta-mobile__arrow svg {
        display: block;
    }

    .hbd-imagen__cta,
    .hbd-imagen__overlay {
        display: none;
    }

    .hbd-imagen__wrap {
        cursor: auto;
    }

    .hbd-imagen {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        height: var(--hbd-image-height);
        pointer-events: none;
    }

    .hbd-imagen__wrap,
    .hbd-imagen__wrap img {
        width: 100%;
        height: 100%;
    }

    .hbd-bloque--editor .components-notice {
        margin-bottom: 16px;
    }
}
