/* ===== MODAL DE DONACIÓN (clases únicas) ===== */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 10000; /* Por encima del modal de obra (que usa z-index 9999) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow: auto;
    padding: 20px;
}

.donation-modal-content {
    background: #ffffff;
    margin: 3% auto;
    padding: 35px 30px 30px;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: donationModalFadeIn 0.3s ease;
}

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

.donation-modal-close {
    position: absolute;
    top: 15px;
    right: 22px;
    font-size: 32px;
    font-weight: 300;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.donation-modal-close:hover {
    color: #222;
}

/* Encabezado con logo */
.donation-modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.donation-modal-logo {
    max-height: 70px;
    width: auto;
    margin-bottom: 8px;
}
.donation-modal-header h2 {
    margin: 5px 0 0;
    font-size: 26px;
    color: #1a1a2e;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Texto misión */
.donation-modal-mission {
    background: #f8f6f0;
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 4px solid #b8914b;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #2d2d2d;
}
.donation-modal-mission p {
    margin: 0 0 6px;
}
.donation-modal-mission p:last-child {
    margin-bottom: 0;
}
.donation-modal-mission strong {
    color: #7a5a2e;
}

/* Sección donación */
.donation-section {
    margin-bottom: 20px;
}
.donation-section-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
}
.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.donation-amount-btn {
    flex: 1;
    min-width: 70px;
    padding: 12px 0;
    background: #f0ede8;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}
.donation-amount-btn:hover {
    background: #e6dfd3;
    border-color: #b8914b;
}
.donation-amount-btn.selected {
    background: #b8914b;
    color: #fff;
    border-color: #b8914b;
    box-shadow: 0 4px 10px rgba(184, 145, 75, 0.3);
}
.donation-custom-amount label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #555;
}
.donation-custom-amount input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.2s;
}
.donation-custom-amount input:focus {
    border-color: #b8914b;
    outline: none;
}

/* Stripe Elements */
.donation-stripe-section {
    margin: 18px 0 16px;
}
.donation-stripe-element {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: border 0.2s;
}
.donation-stripe-element:hover {
    border-color: #b8914b;
}
.donation-stripe-element.StripeElement--focus {
    border-color: #b8914b;
}
#card-errors {
    color: #d9534f;
    font-size: 14px;
    margin-top: 6px;
    min-height: 20px;
}

/* Botón donar */
.donation-btn-donar {
    width: 100%;
    padding: 16px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(26, 26, 46, 0.25);
    letter-spacing: 0.5px;
}
.donation-btn-donar:hover {
    background: #b8914b;
}
.donation-btn-donar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #888;
    box-shadow: none;
}

/* Badge seguro */
.donation-secure-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 14px;
}
.donation-secure-badge span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}
.donation-stripe-badge {
    background: #6772e5;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.donation-amount-btn[data-amount="other"] {
    background: #f0f0f0;
    border-style: dashed;
}
.donation-amount-btn[data-amount="other"].selected {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}