.popUpContainer {
    --popup-bg: #131926;
    --popup-bg-soft: #0f151f;
    --popup-ink: #d9e0f0;
    --popup-text: #d9e0f0;
    --popup-muted: #8f9bb3;
    --popup-accent: var(--cd-accent, #ff4655);
    --popup-accent-strong: #d7263d;
    --popup-highlight: var(--cd-highlight, #ffbd11);
    --popup-border: rgba(255, 255, 255, 0.08);
    --popup-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background:
        radial-gradient(circle at top left, rgba(255, 70, 85, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 189, 17, 0.14), transparent 24%),
        rgba(7, 10, 16, 0.72);
    backdrop-filter: blur(4px);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popUpContainer.active {
    visibility: visible;
    opacity: 1;
}

.popUp {
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(255, 70, 85, 0.18), transparent 32%),
        radial-gradient(circle at top left, rgba(255, 189, 17, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(19, 25, 38, 0.98) 0%, rgba(15, 21, 31, 0.98) 100%);
    color: var(--popup-text);
    border: 1px solid var(--popup-border);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), var(--popup-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 18px 24px 22px;
    position: relative;
    border-radius: 18px;
    margin: 10px;
}

.popUpHeading {
    font-size: clamp(1.8rem, 4.6vw, 2.2rem);
    color: var(--popup-text);
    font-weight: 700;
    text-align: center;
    line-height: 1.05;
    margin: 10px 0 0;
}

.popUpSubheading {
    font-size: 1.05em;
    color: var(--popup-muted);
    text-align: center;
    line-height: 1.5;
    margin: -2px 0 0;
}

.inputContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mensajeInput {
    font-size: 0.85em;
    text-align: center;
    color: var(--popup-text);
}

.popUp .button-primary,
.popUp .button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    padding: 12px 22px;
    border-radius: 0;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.popUp .button-primary {
    background: var(--popup-accent-strong);
    color: #ffffff;
    border: 1px solid var(--popup-accent-strong);
}

.popUp .button-primary:hover {
    transform: translateY(2px);
    filter: brightness(0.95);
}

.popUp .button-ghost {
    background: transparent;
    color: var(--popup-accent-strong);
    border: 1px solid var(--popup-accent-strong);
}

.popUp .button-ghost:hover {
    transform: translateY(-1px);
    background: var(--popup-accent-strong);
    color: #ffffff;
    filter: brightness(0.95);
}

.popup-cta {
    margin-top: 12px;
}

.exitBtn {
    position: absolute;
    top: 14px;
    right: 14px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--popup-ink);
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.exitBtn:hover {
    background: var(--popup-accent-strong);
    color: #ffffff;
    border-color: var(--popup-accent-strong);
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .popUp {
        width: 95vw;
        padding: 18px 18px 20px;
    }

    .popUpHeading {
        font-size: 1.5em;
    }

    .popUpSubheading {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .popUp {
        padding: 16px 14px 18px;
    }

    .exitBtn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
}

.promoImagen {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-top: 12px;
    background: var(--popup-bg-soft);
    border: 1px solid var(--popup-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.popup-body {
    width: 100%;
    color: var(--popup-muted);
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
}

.popup-body a {
    color: var(--popup-accent);
}

.popup-legal {
    width: 100%;
    font-size: 11px;
    color: var(--popup-muted);
    text-align: center;
    line-height: 1.5;
}

.popup-legal p {
    margin: 0;
}
