:root {
    --facturando-promotion-accent: #ffc400;
    --facturando-promotion-accent-hover: #ffd02f;
    --facturando-promotion-ink: #082f3b;
    --facturando-promotion-muted: #52666d;
    --facturando-promotion-surface: #ffffff;
}

.facturando-promotion,
.facturando-promotion *,
.facturando-promotion *::before,
.facturando-promotion *::after {
    box-sizing: border-box;
}

.facturando-promotion[hidden] {
    display: none !important;
}

.facturando-promotion {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.facturando-promotion.is-visible {
    opacity: 1;
}

.facturando-promotion__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(3 20 26 / 76%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.facturando-promotion__dialog {
    position: relative;
    z-index: 1;
    width: min(590px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: var(--facturando-promotion-surface);
    box-shadow: 0 28px 85px rgb(0 0 0 / 44%);
    outline: none;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 220ms ease,
        transform 240ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.facturando-promotion.is-visible .facturando-promotion__dialog {
    opacity: 1;
    transform: translateY(0);
}

.facturando-promotion__content {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.facturando-promotion__media {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #073643;
}

.facturando-promotion__media picture {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 0;
}

.facturando-promotion__image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
}

.facturando-promotion__content:focus-visible,
.facturando-promotion__close:focus-visible {
    outline: 3px solid var(--facturando-promotion-accent);
    outline-offset: -3px;
}

.facturando-promotion__details {
    display: grid;
    gap: 5px;
    padding: 21px 24px 23px;
    background: var(--facturando-promotion-surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.25;
}

.facturando-promotion__eyebrow {
    color: #8a6800;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.facturando-promotion__details strong {
    color: var(--facturando-promotion-ink);
    font-size: clamp(19px, 2.2vw, 22px);
    font-weight: 750;
    letter-spacing: -0.015em;
}

.facturando-promotion__time {
    color: var(--facturando-promotion-muted);
    font-size: 16px;
    font-weight: 500;
}

.facturando-promotion__close {
    appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: var(--facturando-promotion-ink);
    box-shadow: 0 6px 22px rgb(0 0 0 / 24%);
    cursor: pointer;
    font: inherit;
    transition:
        background-color 150ms ease,
        transform 150ms ease;
}

.facturando-promotion__close:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.facturando-promotion__close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.facturando-promotion__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.facturando-promotion-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .facturando-promotion {
        align-items: end;
        padding: 10px;
    }

    .facturando-promotion__dialog {
        width: 100%;
        max-height: calc(100dvh - 10px);
        border-radius: 18px;
    }

    .facturando-promotion__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .facturando-promotion__details {
        gap: 4px;
        padding: 18px;
    }

    .facturando-promotion__details strong {
        font-size: 19px;
    }

    .facturando-promotion__time {
        font-size: 15px;
    }
}

@media (max-height: 670px) and (min-width: 641px) {
    .facturando-promotion__dialog {
        width: min(520px, calc(100vw - 32px));
    }

    .facturando-promotion__details {
        padding: 16px 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .facturando-promotion,
    .facturando-promotion__dialog,
    .facturando-promotion__close {
        transition: none !important;
    }
}

/* Aislamiento frente a estilos globales de temas de WordPress. */
.facturando-promotion .facturando-promotion__content,
.facturando-promotion .facturando-promotion__content:link,
.facturando-promotion .facturando-promotion__content:visited,
.facturando-promotion .facturando-promotion__content:hover,
.facturando-promotion .facturando-promotion__content:focus,
.facturando-promotion .facturando-promotion__content:active,
.facturando-promotion .facturando-promotion__content *,
.facturando-promotion .facturando-promotion__content:hover *,
.facturando-promotion .facturando-promotion__content:focus * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.facturando-promotion .facturando-promotion__media,
.facturando-promotion .facturando-promotion__media picture,
.facturando-promotion .facturando-promotion__image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.facturando-promotion .facturando-promotion__image,
.facturando-promotion .facturando-promotion__content:hover .facturando-promotion__image,
.facturando-promotion .facturando-promotion__content:focus .facturando-promotion__image {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
}
