/* =========================================
   MÓDULO: DONACIONES Y EXPERIENCIA DE USUARIO (UX)
   Fecha: Febrero 2026
   Contenido: WhatsApp, Badges, Donaciones
   ========================================= */

/* --- 1. BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 90px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 40px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: -50px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

.whatsapp-float i {
    margin-top: 2px;
}

/* --- 2. ETIQUETAS VISUALES (BADGES) --- */
.car-card {
    position: relative;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-offer {
    background-color: #dc3545;
    color: white;
}

.badge-new {
    background-color: #0dcaf0;
    color: #000;
}

.badge-cash {
    background-color: #198754;
    color: white;
}

/* --- 3. SECCIÓN CAUSA HUMANITARIA --- */
.donation-section {
    /* Azul Dealer Profundo */
    background: linear-gradient(135deg, #1e325c 0%, #0b1221 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Patrón de puntos sutil */
    background-image: url('data:image/svg+xml,%3Csvg width=\'20\' height=\'20\' viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cg fill=\'%23ffffff\' fill-opacity=\'0.03\' fill-rule=\'evenodd\'%3E%3Ccircle cx=\'3\' cy=\'3\' r=\'3\'/%3E%3Ccircle cx=\'13\' cy=\'13\' r=\'3\'/%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
    pointer-events: none;
}

.donation-image-wrapper {
    position: relative;
    transition: transform 0.4s ease;
}

.donation-image-wrapper:hover {
    transform: scale(1.02);
}

.donation-img {
    filter: brightness(0.9) contrast(1.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge "Acción Directa" (Centrado abajo) */
.donation-badge {
    position: absolute;
    left: 50% !important;
    bottom: -15px !important;
    /* Ligeramente salido */
    transform: translateX(-50%);
    background: white;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    color: #333;
    border: 3px solid #1e325c;
    /* Borde azul para integrar */
    width: max-content;
    z-index: 5;
}

.pulse-red {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    animation: pulse-red-anim 2s infinite;
}

.donation-heading-accent {
    color: #fff;
    border-left: 5px solid #dc3545;
    padding-left: 15px;
}

.donation-destination-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.footer-contact-note {
    display: block;
    margin-left: 26px;
    opacity: 0.8;
    font-size: 0.85rem;
}

@keyframes pulse-red-anim {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* --- 4. MODAL DE DONACIÓN (RACING STYLE) --- */
.donation-modal-content {
    background-color: #1e325c;
    border: 2px solid #fff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    overflow: visible;
}

.donation-modal-content .modal-header {
    background: #dc3545;
    color: white;
    border-bottom: none;
    padding: 1.5rem;
    position: relative;
    justify-content: center;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.donation-modal-content .modal-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.donation-modal-content .btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
    filter: invert(1);
    opacity: 0.8;
}

.donation-modal-content .modal-body {
    padding: 2rem;
    color: white;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.donation-btn {
    background: white;
    border: none;
    border-radius: 10px;
    color: #333;
    font-family: 'Oswald', sans-serif;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 0px #ccc;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donation-btn small {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #bbb;
    background: #f8f9fa;
}

.donation-btn.active {
    background: #FFD700;
    /* Dorado */
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border: 2px solid white;
    transform: scale(1.05);
}

.donation-btn.active small {
    color: #000;
}

.donation-modal-content .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
}

.donation-modal-content .form-control:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3);
}

#btn-donate-submit {
    background: linear-gradient(90deg, #198754 0%, #20c997 100%);
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.4);
    transition: transform 0.2s;
    margin-top: 10px;
    font-family: 'Oswald', sans-serif;
    padding: 15px;
    width: 100%;
}

#btn-donate-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.6);
}

@media (max-width: 992px) {
    .donation-section .row {
        text-align: center;
    }

    .donation-section .col-lg-6 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .donation-section .section-title {
        text-align: center !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .donation-section p {
        text-align: center;
    }

    .donation-section .d-flex.gap-3.flex-wrap {
        justify-content: center;
        align-items: center;
    }

    .donation-section .btn.pulse-red {
        margin-left: auto;
        margin-right: auto;
    }
}