/* Afina Coupon Popup — image-first design */

#acp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: acpFadeIn 0.22s ease;
}

@keyframes acpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#acp-popup {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 12px 48px rgba(0,0,0,0.28);
    animation: acpSlideUp 0.26s ease;
}

@keyframes acpSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Imagen de campaña */
#acp-popup-image {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

#acp-popup-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Área del botón */
#acp-popup-footer {
    padding: 18px 24px 20px;
    background: #fff;
    text-align: center;
}

#acp-popup #acp-apply-btn {
    display: block !important;
    width: 100% !important;
    background: #1d3461 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 15px 24px !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    transition: background 0.18s, transform 0.12s !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

#acp-popup #acp-apply-btn:hover    { background: #f5c200 !important; color: #ffffff !important; transform: translateY(-1px); }
#acp-popup #acp-apply-btn:active   { transform: translateY(0); }
#acp-popup #acp-apply-btn:disabled { background: #aaa !important; color: #ffffff !important; cursor: not-allowed; transform: none; }

/* Feedback */
#acp-feedback {
    margin-top: 10px;
    font-size: 0.9em;
    min-height: 1.3em;
    font-weight: 500;
}
#acp-feedback.success { color: #1e7e34; }
#acp-feedback.error   { color: #c0392b; }

/* Botón cerrar */
#acp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
    z-index: 2;
}
#acp-close:hover { background: rgba(0,0,0,0.7); }

/* Mobile */
@media (max-width: 480px) {
    #acp-popup { max-width: 96vw; }
    #acp-popup-footer { padding: 14px 16px 16px; }
    #acp-apply-btn { font-size: 0.97em; padding: 13px; }
}
