/* ========================================== */
/* MODAL DE BIENVENIDA - DONACIÓN            */
/* ========================================== */

.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* opacity: 0; */
    transition: opacity 0.5s ease;
}

.donation-modal.active {
    display: flex !important;
    opacity: 1;
}

.donation-modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalDonationIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

@keyframes modalDonationIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================== */
/* BOTÓN CERRAR                              */
/* ========================================== */

.donation-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 20;
    backdrop-filter: blur(8px);
}

.donation-modal-close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
    border-color: #e74c3c;
}

/* ========================================== */
/* CUERPO DEL MODAL - CON IMAGEN DE FONDO   */
/* ========================================== */

.donation-modal-body {
    position: relative;
    min-height: 550px;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    /* Proporción para que la imagen se ajuste */
}

/* Imagen de fondo - SE AJUSTA COMPLETAMENTE */
.donation-modal-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('../img/Fondo_modal_donacion.png') no-repeat center center;
    background-size: cover;
    /* La imagen se ajusta completamente */
    z-index: 0;
}

/* Overlay oscuro para legibilidad */
.donation-modal-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
}

/* ========================================== */
/* CONTENIDO SOBRE LA IMAGEN                 */
/* ========================================== */

.donation-modal-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    /* Centrado vertical para subir el texto */
    justify-content: flex-start;
    padding: 40px;
}

.donation-modal-info {
    text-align: left;
    max-width: 400px;
    padding: 20px 20px;
    margin-bottom: 90px;
    /* Sube el texto un poco */
    /* background: rgba(0, 0, 0, 0.35); */
    /* Fondo para mejor legibilidad */
    /* backdrop-filter: blur(8px); */
    /* border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1); */
}

.donation-modal-info h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.donation-modal-info h2 span {
    color: #f7931f;
    text-shadow: 0 0 40px rgba(243, 156, 18, 0.2);
}

/* Párrafos - Color BLANCO */
.donation-modal-info p {
    color: #ffffff !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* H4 - Color NARANJA CLARO #f7931f */
.donation-modal-info h4 {
    color: #f7931f !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 18px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================== */
/* BOTÓN DONAR - EFECTO CRISTAL Y RELIEVE    */
/* ========================================== */

.btn-donate-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Efecto de brillo en la parte superior */
.btn-donate-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    border-radius: 60px 60px 0 0;
    pointer-events: none;
}

/* Efecto de relieve curvo en el borde */
.btn-donate-primary::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.btn-donate-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-donate-primary:active {
    transform: scale(0.97);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-donate-primary i {
    font-size: 1.2rem;
    animation: pulseHeart 1.5s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes pulseHeart {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

/* ========================================== */
/* RESPONSIVE                                */
/* ========================================== */

@media (max-width: 1024px) {
    .donation-modal-content {
        max-width: 950px;
    }

    .donation-modal-body {
        min-height: 450px;
        aspect-ratio: auto;
    }

    .donation-modal-overlay {
        min-height: 450px;
        padding: 30px;
    }

    .donation-modal-info h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .btn-donate-primary {
        padding: 16px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .donation-modal {
        padding: 12px;
    }

    .donation-modal-content {
        border-radius: 16px;
        max-height: 95vh;
        max-width: 100%;
    }

    .donation-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .donation-modal-body {
        min-height: 350px;
        aspect-ratio: auto;
    }

    .donation-modal-overlay {
        min-height: 350px;
        padding: 25px;
        align-items: flex-end;
        justify-content: flex-start;
    }

    .donation-modal-info h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        max-width: 80%;
    }

    .btn-donate-primary {
        padding: 14px 30px;
        font-size: 0.9rem;
        gap: 10px;
    }

    .btn-donate-primary i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .donation-modal {
        padding: 8px;
    }

    .donation-modal-content {
        border-radius: 14px;
    }

    .donation-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .donation-modal-body {
        min-height: 280px;
        aspect-ratio: auto;
    }

    .donation-modal-overlay {
        min-height: 280px;
        padding: 18px;
    }

    .donation-modal-info h2 {
        font-size: 1.2rem;
        margin-bottom: 16px;
        max-width: 70%;
    }

    .btn-donate-primary {
        padding: 12px 22px;
        font-size: 0.8rem;
        gap: 8px;
        border-radius: 40px;
    }

    .btn-donate-primary i {
        font-size: 0.85rem;
    }
}