/* ============ Panel oscuro sobre imagen (portada + páginas internas) ============ */

.pmc-home-slider-panel,
.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title)
{
    position: relative;
    z-index: 5;
    width: 100%;
    padding: clamp(1.35rem, 4vw, 2.25rem);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.55);
    text-align: left;
    box-shadow: none;
}

/* Solo dentro del panel: quitar el constrained estrecho de Gutenberg, respetando el .container */
.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title) .wp-block-group__inner-container,
.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title) .wp-block-group__inner-container > :where(:not(.alignleft):not(.alignright):not(.alignfull))
{
    max-width: none !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Cover interno: imagen visible, texto abajo a la izquierda */
.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient)
{
    align-items: flex-end;
    justify-content: flex-start;
    min-height: clamp(420px, 58vh, 620px);
}

/* Variante con fila Bootstrap (nosotros, alquilar): panel arriba izquierda como portada */
.wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient)
{
    align-items: flex-start;
    justify-content: flex-start;
    /* Mínimo de 72px para evitar que se pegue arriba si la variable no está disponible */
    margin-top: calc(-1 * max(72px, var(--pmc-header-stack-bottom, 72px)));
    /* 60vh visibles bajo el nav: el bloque incluye la zona que queda bajo la cabecera fija */
    min-height: calc(60vh + max(72px, var(--pmc-header-stack-bottom, 72px))) !important;
    min-height: calc(60svh + max(72px, var(--pmc-header-stack-bottom, 72px))) !important;
}

.wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__inner-container
{
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: max(
        calc(max(72px, var(--pmc-header-stack-bottom, 72px)) + var(--pmc-hero-row-top-gap, 1.15rem)),
        calc(env(safe-area-inset-top, 0px) + 1rem)
    ) !important;
    padding-bottom: clamp(1.25rem, 3.5vw, 2rem);
}

@media (min-width: 992px)
{
    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient)
    {
        padding-top: 0 !important;
        padding-left: clamp(1rem, 2.5vw, 2.25rem) !important;
        padding-right: 1rem !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container
    {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px)
{
    :root
    {
        --pmc-hero-row-top-gap: 0.75rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient)
    {
        margin-top: calc(-1 * max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
        min-height: calc(60vh + max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
        min-height: calc(60svh + max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__inner-container
    {
        padding-top: max(
            calc(max(160px, var(--pmc-header-stack-bottom, 160px)) + var(--pmc-hero-row-top-gap, 0.75rem)),
            calc(env(safe-area-inset-top, 0px) + 1rem)
        ) !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-md-"]:first-child,
    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-lg-"]:first-child
    {
        flex: 0 0 auto;
        width: min(45%, 28rem);
        max-width: min(45%, 28rem);
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title)
    {
        padding: 0.7rem 0.9rem;
        border-radius: 10px;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title
    {
        font-size: clamp(0.95rem, 2.1vw, 1.25rem) !important;
        line-height: 1.15 !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title::after
    {
        width: 2.2rem;
        height: 3px;
        margin-top: 0.45rem;
        margin-bottom: 0.45rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead
    {
        font-size: clamp(0.78rem, 1.5vw, 0.9rem) !important;
        line-height: 1.4 !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta
    {
        margin-top: 0.75rem !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta .wp-block-button__link
    {
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }
}

@media (min-width: 1200px)
{
    :root
    {
        --pmc-hero-row-top-gap: 2.5rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient)
    {
        /* Mínimo mayor en desktop para evitar que el panel quede pegado debajo del nav */
        margin-top: calc(-1 * max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
        min-height: calc(60vh + max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
        min-height: calc(60svh + max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__inner-container
    {
        padding-top: max(
            calc(max(160px, var(--pmc-header-stack-bottom, 160px)) + var(--pmc-hero-row-top-gap, 2.5rem)),
            calc(env(safe-area-inset-top, 0px) + 1rem)
        ) !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-md-"]:first-child,
    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-lg-"]:first-child
    {
        flex: 0 0 auto;
        width: min(40%, 30rem);
        max-width: min(40%, 30rem);
    }
}

@media (max-width: 991.98px) and (min-width: 768px)
{
    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-"]:empty
    {
        display: none;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container
    {
        width: 100% !important;
        max-width: 100% !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-"]:first-child
    {
        flex: 0 0 auto;
        width: min(58%, 34rem);
        max-width: min(58%, 34rem);
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title)
    {
        padding: 0.65rem 0.85rem;
        border-radius: 10px;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title
    {
        font-size: clamp(0.95rem, 2.1vw, 1.25rem) !important;
        line-height: 1.15 !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title::after
    {
        width: 2.1rem;
        height: 3px;
        margin-top: 0.45rem;
        margin-bottom: 0.45rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead
    {
        font-size: clamp(0.78rem, 1.5vw, 0.9rem) !important;
        line-height: 1.4 !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta
    {
        margin-top: 0.75rem !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta .wp-block-button__link
    {
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 767.98px)
{
    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient)
    {
        position: relative;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title)
    {
        position: static;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__inner-container
    {
        position: relative;
        z-index: 2;
        align-self: stretch;
        padding-bottom: 0 !important;
        min-height: 100%;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-"]:empty
    {
        display: none;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container
    {
        width: 100% !important;
        max-width: 100% !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-"]:first-child
    {
        flex: 0 0 auto;
        width: min(85%, 24rem);
        max-width: min(85%, 24rem);
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title)
    {
        padding: 0.6rem 0.85rem;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.45);
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title
    {
        font-size: clamp(0.9rem, 3.2vw, 1.1rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 0.1rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title::after
    {
        width: 2rem;
        height: 3px;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead
    {
        font-size: clamp(0.72rem, 2.2vw, 0.82rem) !important;
        line-height: 1.32 !important;
        margin-bottom: 0.35rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta
    {
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0.5rem;
        margin: 0 !important;
        z-index: 6;
        justify-content: center !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta .wp-block-button__link
    {
        padding: 0.38rem 1rem;
        font-size: 0.75rem;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 500px)
{
    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-row > [class*="col-"]:first-child
    {
        width: min(92%, 22rem);
        max-width: min(92%, 22rem);
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title)
    {
        padding: 0.55rem 0.7rem;
        border-radius: 8px;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title
    {
        font-size: clamp(0.85rem, 3.6vw, 1rem) !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead
    {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.3rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta
    {
        bottom: 0.35rem;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta .wp-block-button__link
    {
        padding: 0.35rem 0.9rem;
        font-size: 0.72rem;
    }
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__inner-container
{
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: clamp(1.25rem, 3.5vw, 2rem);
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container
{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

/* Velo por defecto solo si el editor no definió opacidad (has-background-dim-*) */
.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__background:not([class*="has-background-dim-"])
{
    background-color: #000000 !important;
    opacity: 0.18 !important;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__background.has-background-dim-0
{
    background-color: transparent !important;
    opacity: 0 !important;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient).pmc-bg-left-white::before
{
    display: none;
}

/* Tipografía dentro del panel */
.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__eyebrow
{
    display: inline-block;
    width: auto !important;
    max-width: max-content;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title
{
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.25rem, 3.4vw, 1.95rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #ffffff !important;
    margin: 0 0 0.25rem;
    text-shadow: none !important;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title::after
{
    content: "";
    display: block;
    width: 3.25rem;
    height: 4px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: #8E2C3B;
    border-radius: 2px;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead
{
    font-family: 'Open Sans', sans-serif !important;
    font-size: clamp(0.92rem, 2.5vw, 1.05rem) !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 0.85rem;
    max-width: none !important;
    width: 100%;
    text-shadow: none !important;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead:last-of-type
{
    margin-bottom: 0;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead strong
{
    font-weight: 700;
    color: #ffffff;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta
{
    margin-top: 1.35rem !important;
    margin-bottom: 0 !important;
    width: auto !important;
    justify-content: flex-start !important;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta .wp-block-button
{
    width: auto;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__cta .wp-block-button__link
{
    width: auto;
    display: inline-block;
    white-space: nowrap;
}

/* Animación de entrada en cascada (eyebrow → título → textos → CTA) */
.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) :is(.pmc-hero__eyebrow, .pmc-hero__title, .pmc-hero__lead, .pmc-hero__cta)
{
    opacity: 0;
    transform: translateY(26px);
    filter: blur(10px);
    transition: none !important;
    will-change: transform, opacity, filter;
}

.wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) :is(.pmc-hero__eyebrow, .pmc-hero__title, .pmc-hero__lead, .pmc-hero__cta).pmc-is-visible
{
    animation: pmc-fx-line-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--pmc-anim-delay, 0ms);
}

@media (prefers-reduced-motion: reduce)
{
    .wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) :is(.pmc-hero__eyebrow, .pmc-hero__title, .pmc-hero__lead, .pmc-hero__cta)
    {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

@media (min-width: 992px)
{
    .wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-bootstrap-blocks-container.container .wp-block-group:has(.pmc-hero__title)
    {
        padding: 2.5rem 2.35rem;
    }

    .wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__title
    {
        font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
        font-weight: 700 !important;
    }

    .wp-block-cover:has(.pmc-hero__title):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .pmc-hero__lead
    {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 991px)
{
    .wp-block-cover:has(.pmc-hero__title):not(:has(.wp-bootstrap-blocks-row)):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__inner-container
    {
        align-items: flex-start;
        padding-top: max(
            calc(var(--pmc-header-stack-bottom, 72px) + 0.85rem),
            calc(env(safe-area-inset-top, 0px) + 2rem)
        );
        padding-bottom: 1.5rem;
    }

    /* Hero con fila Bootstrap (vender, nosotros): panel arriba pegado al nav, menos alto */
    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient)
    {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-top: calc(-1 * max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
        min-height: calc(45vh + max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
        min-height: calc(45svh + max(160px, var(--pmc-header-stack-bottom, 160px))) !important;
        padding-top: 0 !important;
    }

    .wp-block-cover:has(.pmc-hero__title):has(.wp-bootstrap-blocks-row):not(.cover-slider):not(.pmc-bg-left-white):not(.pmc-contact-hero-gradient) .wp-block-cover__inner-container
    {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-top: max(
            calc(max(160px, var(--pmc-header-stack-bottom, 160px)) + 0.5rem),
            calc(env(safe-area-inset-top, 0px) + 1rem)
        ) !important;
        padding-bottom: 0.75rem !important;
    }
}
