:root {
    --primary: #1a2a6c;
    --secondary: #b21f1f;
    --accent: #fdbb2d;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --success: #28a745;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    --gradient-light: linear-gradient(135deg, #2a3a8c, #c22f2f, #fdcb3d);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #f9f9f9, #e6e9f0);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--gradient);
    color: white;
    padding: 70px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.3;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    font-weight: 300;
}

/* Logo */
.logo {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Secciones */
.section {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--accent);
    border-radius: 3px;
}

/* Tarjetas de donación */
.donation-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.donation-card {
    background: white;
    border-radius: 18px;
    padding: 35px 30px;
    width: 280px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.donation-card:hover::before {
    opacity: 1;
}

.donation-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

.donation-card.popular:hover {
    transform: translateY(-12px) scale(1.07);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(253, 187, 45, 0.4);
    z-index: 1;
}

.donation-card h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

.donation-card .amount {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.donation-card .amount::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.donation-card .description {
    margin-bottom: 25px;
    color: var(--gray);
    min-height: 60px;
    font-size: 0.95rem;
}

.donation-card .usd-equivalent {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 20px;
    font-style: italic;
}

.donation-card button {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 14px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.donation-card button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.donation-card button:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(178, 31, 31, 0.3);
}

.donation-card button:hover::before {
    left: 100%;
}

/* Donación personalizada */
.custom-donation {
    background: white;
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    max-width: 550px;
    margin: 0 auto 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.custom-donation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
}

.custom-donation h2 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.custom-donation .input-group {
    display: flex;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.currency {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.custom-donation input {
    flex: 1;
    padding: 18px;
    border: 2px solid #e9ecef;
    border-left: none;
    border-right: none;
    background: white;
    color: var(--dark);
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.custom-donation input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(253, 187, 45, 0.2);
}

.currency-suffix {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: bold;
}

.custom-donation .usd-conversion {
    margin: 15px 0 25px;
    font-size: 1.1rem;
    color: var(--gray);
    min-height: 27px;
}

.custom-donation .usd-conversion span {
    color: var(--primary);
    font-weight: 600;
}

.custom-donation button {
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.2);
    position: relative;
    overflow: hidden;
}

.custom-donation button:hover {
    background: var(--gradient-light);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(26, 42, 108, 0.3);
}

/* Sección de PayPal */
.paypal-section {
    background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%);
    color: white;
    border-radius: 20px;
    padding: 45px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.2);
    position: relative;
    overflow: hidden;
}

.paypal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,160C960,160,1056,224,1152,218.7C1248,213,1344,139,1392,101.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.2;
}

.paypal-section h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
    position: relative;
}

.paypal-section p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    position: relative;
    opacity: 0.95;
}

.paypal-email {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 18px;
    font-size: 1.3rem;
    margin: 25px 0;
    display: inline-block;
    font-weight: bold;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    position: relative;
    transition: all 0.3s;
}

.paypal-email:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.paypal-button {
    background: #ffc439;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 16px 45px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    margin: 10px;
}

.paypal-button:hover {
    background: #f2bb35;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Información */
.info {
    text-align: center;
    padding: 45px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.info h2 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2rem;
}

.info p {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray);
    font-size: 1.05rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.feature {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 30px 25px;
    background: linear-gradient(to bottom, #f8f9fa, #f0f3f7);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #f1f1f1;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature i {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.4rem;
}

.feature p {
    color: var(--gray);
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 35px;
    background: var(--dark);
    color: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Loader */
.loader {
    display: none;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--accent);
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 25px auto;
}

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

/* Toast de notificación */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .donation-cards {
    gap: 20px;
    }
    
    .donation-card {
    width: 230px;
    padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .header {
    padding: 50px 20px;
    }
    
    .header h1 {
    font-size: 2.4rem;
    }
    
    .header p {
    font-size: 1.1rem;
    }
    
    .donation-cards {
    flex-direction: column;
    align-items: center;
    }
    
    .donation-card {
    width: 100%;
    max-width: 380px;
    }
    
    .donation-card.popular {
    transform: scale(1);
    }
    
    .donation-card.popular:hover {
    transform: translateY(-12px) scale(1.02);
    }
    
    .paypal-section {
    padding: 35px 25px;
    }
    
    .paypal-email {
    font-size: 1.1rem;
    word-break: break-all;
    }
    
    .section {
    padding: 25px;
    }
    
    .custom-donation {
    padding: 25px;
    }
    
    .info {
    padding: 35px 25px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent);
    font-weight: bold;
}

/* Efecto de partículas en el header */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}