#popup-regalo,
#popup-salida,
#damajuCheckoutPopup,
#damajuEmailCapturePopup {
    position: fixed;
    inset: 0;
    background: rgba(1, 12, 30, 0.78);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#popup-regalo.visible,
#popup-salida.visible,
#damajuCheckoutPopup.active,
#damajuEmailCapturePopup.visible {
    display: flex !important;
    opacity: 1;
}

input.damaju-input {
    border-radius: 25px;
}

#damajuEmailCapturePopup {
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999999;
}

.damaju-popup--email .damaju-popup-card {
    width: min(420px, 94%);
    padding: 36px 32px 30px;
    background: radial-gradient(circle at 20% -10%, rgba(255, 255, 255, 0.12), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(95, 182, 255, 0.15), transparent 50%),
        linear-gradient(160deg, #041335 0%, #07112a 45%, #020817 100%);
    border: 1px solid rgba(126, 177, 255, 0.12);
}

.damaju-popup--email .damaju-popup-hero {
    margin-bottom: 26px;
}

.damaju-popup--email .damaju-popup-emoji {
    font-size: 68px;
    filter: drop-shadow(0 18px 35px rgba(9, 9, 40, 0.55));
}

.damaju-email-capture-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.damaju-email-capture-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.damaju-input-group {
    position: relative;
}

.damaju-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 174, 213, 0.35);
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
    color: #081124;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.damaju-input:hover,
.damaju-input:focus {
    border-color: #4aa0ff;
    box-shadow: 0 10px 25px rgba(0, 113, 220, 0.22);
    outline: none;
    background: #ffffff;
}

.damaju-input::placeholder {
    color: rgba(8, 17, 36, 0.5);
}

.damaju-input-helper {
    font-size: 13px;
    color: #b8c9e6;
    text-align: left;
    line-height: 1.5;
}

.damaju-email-capture-error,
.damaju-email-capture-success {
    font-size: 13px;
    margin: -4px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: left;
}

.damaju-email-capture-error {
    background: rgba(255, 82, 124, 0.15);
    color: #ff6a8d;
    border: 1px solid rgba(255, 106, 141, 0.4);
}

.damaju-email-capture-success {
    background: rgba(72, 205, 142, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.4);
}

.damaju-popup--email .damaju-popup-cta {
    margin-top: 6px;
    background: linear-gradient(120deg, #00a2ff, #0065ff);
    border: none;
    border-radius: 999px;
    box-shadow: 0 22px 40px rgba(0, 105, 198, 0.45);
    font-size: 15px;
    padding: 16px 10px;
}

.damaju-popup--email .damaju-popup-cta:hover {
    background: linear-gradient(120deg, #1db5ff, #0b75ff);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .damaju-popup--email .damaju-popup-card {
        padding: 30px 22px 24px;
    }

    .damaju-popup--email .damaju-popup-title {
        font-size: 24px;
    }

    .damaju-input {
        font-size: 14px;
    }
}

.damaju-popup-card {
    width: min(430px, 92%);
    background: radial-gradient(circle at top, rgba(0, 113, 220, 0.25), rgba(0, 17, 51, 0.95));
    border-radius: 28px;
    padding: 30px 26px 24px;
    text-align: center;
    position: relative;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: #e6f1ff;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 12, 55, 0.65);
}

.damaju-popup-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 26px;
    background: rgba(13, 25, 48, 0.85);
    pointer-events: none;
    z-index: 0;
}

.damaju-popup-card > * {
    position: relative;
    z-index: 1;
}

.damaju-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #c7d7f5;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.damaju-popup-close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.damaju-popup-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00a6ff, #0061d9);
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(0, 113, 220, 0.35);
}

.damaju-popup-ribbon-icon {
    font-size: 13px;
}

.damaju-popup-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.damaju-popup-hero--center {
    flex-direction: column;
    gap: 8px;
}

.damaju-popup-hero-media img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.damaju-popup-emoji {
    font-size: 58px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.damaju-popup-eyebrow {
    color: #7fb8ff;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.damaju-popup-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #f7fbff;
}

.damaju-popup-text {
    font-size: 15px;
    color: #d5e6ff;
    margin: 0;
}

.damaju-popup-pricing {
    background: rgba(13, 25, 48, 0.8);
    border: 1px solid rgba(0, 113, 220, 0.3);
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
    text-align: left;
}

.damaju-popup-pricing--highlight {
    text-align: center;
}

.damaju-popup-price-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
    color: #dbe9ff;
}

.damaju-popup-price-row.is-old {
    opacity: 0.7;
    text-decoration: line-through;
}

.damaju-popup-price-row.is-new {
    font-size: 18px;
    color: #7fceff;
}

.damaju-popup-price-amount {
    font-size: 36px;
    margin: 4px 0 0;
    font-weight: 800;
    color: #7fceff;
}

.damaju-popup-pill {
    align-self: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(0, 113, 220, 0.2);
    border: 1px solid rgba(0, 113, 220, 0.4);
    color: #8bd6ff;
}

.damaju-popup-savings {
    margin: 8px 0 0;
    font-size: 13px;
    color: #9ccfff;
    text-align: center;
}

.damaju-popup-perks {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 6px;
    text-align: left;
    color: #cddcf5;
}

.damaju-popup-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.damaju-popup-countdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-bottom: 12px;
}

.damaju-popup-countdown--inline {
    flex-direction: row;
    justify-content: center;
}

.damaju-popup-countdown-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8fb8ff;
}

.damaju-popup-countdown-time {
    font-weight: 800;
    font-size: 22px;
    padding: 6px 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0071dc, #00a6ff);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 113, 220, 0.4);
}

.damaju-popup-countdown-sub {
    font-size: 12px;
    color: #9fc5ff;
}

.damaju-btn-accion {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(120deg, #00a6ff, #0071dc 60%, #0042a5);
    box-shadow: 0 16px 35px rgba(0, 113, 220, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.damaju-btn-accion:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 113, 220, 0.55);
}

.damaju-popup-dismiss,
.popup-texto-rechazo {
    margin-top: 14px;
    font-size: 12px;
    color: #89b2ff;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.damaju-pulse {
    animation: damajuPulse 2s infinite;
}

@keyframes damajuPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 220, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 113, 220, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 220, 0);
    }
}

#damaju-preloader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 28, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#damaju-preloader-overlay.activo {
    display: flex;
}

.damaju-loader-content {
    text-align: center;
    color: #c2d9ff;
    font-weight: 600;
}

.damaju-spinner {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(255, 255, 255, 0.08);
    border-top: 5px solid #0071dc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
