/* Variables mejoradas con paleta extendida */

:root {
    --primary: #6a0dad;
    --secondary: #8e44ad;
    --accent: #ffd700;
    --light: #f8f9fa;
    --dark: #343a40;
    /* Nuevos colores para mayor impacto */
    --gradient-primary: linear-gradient(135deg, #6a0dad, #8e44ad, #9b59b6);
    --gradient-accent: linear-gradient(135deg, #ffd700, #ffed4a, #f39c12);
    --gradient-success: linear-gradient(135deg, #27ae60, #2ecc71, #58d68d);
    --gradient-warm: linear-gradient(135deg, #ff6b6b, #ee5a52, #ff4757);
    --gradient-cool: linear-gradient(135deg, #4ecdc4, #45b7aa, #26d0ce);
    /* Sombras modernas */
    --shadow-light: 0 4px 15px rgba(106, 13, 173, 0.1);
    --shadow-medium: 0 8px 30px rgba(106, 13, 173, 0.2);
    --shadow-strong: 0 15px 50px rgba(106, 13, 173, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.4);
}


/* Estilos base mejorados */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Hero Section - Súper Impactante */

.hero {
    padding: 140px 0 80px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero h1 i {
    animation: heartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s ease-out 0.3s both;
    position: relative;
    z-index: 2;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: slideInUp 1s ease-out 0.6s both;
    position: relative;
    z-index: 2;
}


/* Botones */

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}


/* Estilo inicial para ambos botones (amarillo) */

.btn-primary {
    background: var(--gradient-accent);
    /* Fondo amarillo con degradado */
    color: var(--primary);
    /* Texto morado */
    border: 3px solid transparent;
}


/* Aseguramos que btn-secondary tenga el mismo estilo inicial */

.btn-secondary {
    background: var(--gradient-accent);
    /* Fondo amarillo con degradado */
    color: var(--primary);
    /* Texto morado */
    border: 3px solid transparent;
}


/* Efectos de hover para ambos botones */

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow), var(--shadow-strong);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%,
    20%,
    60%,
    100% {
        transform: translateY(-5px) scale(1.05);
    }
    40%,
    80% {
        transform: translateY(-8px) scale(1.08);
    }
}


/* Sections con diseño moderno */

.section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: transparent;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}


/* Forms Grid súper moderna */

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 60px;
}


/* Form Cards con efectos WOW */

.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: -1;
}

.form-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent);
}

.form-card:hover::before {
    opacity: 0.03;
}

.form-icon {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
}

.form-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(106, 13, 173, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.form-card h3 {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
    font-size: 1rem;
    opacity: 0.8;
}


/* Form Groups con efectos modernos */

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(106, 13, 173, 0.1), 0 0 20px rgba(106, 13, 173, 0.2);
    transform: translateY(-2px);
    background: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}


/* Success Message súper llamativo */

.success-message {
    background: var(--gradient-success);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    display: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: successShine 2s infinite;
}

@keyframes successShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.success-message i {
    margin-right: 10px;
    font-size: 1.3em;
    animation: successIcon 0.6s ease;
}

@keyframes successIcon {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}


/* Donation Section - Súper Premium */

.donation-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.2) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.donation-section .section-title {
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.donation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    color: black;
    text-align: center;
    box-shadow: var(--shadow-strong);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
}

.donation-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-strong);
    border-color: var(--accent);
}

.donation-icon {
    font-size: 4rem;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    animation: donationPulse 2s ease-in-out infinite;
}

@keyframes donationPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7));
    }
}

.donation-card h3 {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.bank-info {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(142, 68, 173, 0.05));
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(106, 13, 173, 0.3);
    transition: all 0.3s ease;
}

.bank-info:hover {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.15), rgba(142, 68, 173, 0.1));
    border-color: var(--primary);
}

.bank-qr {
    max-width: 180px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.bank-qr:hover {
    transform: scale(1.05);
}

.bank-details p {
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #8e44ad;
}

.bank-details strong {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: black;
    font-weight: 800;
}


/* Animaciones de entrada para elementos */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Error messages */

.error-message {
    background: var(--gradient-warm) !important;
    color: white !important;
    border: none !important;
    animation: errorShake 0.5s ease !important;
}

@keyframes errorShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}


/* Responsive Design Mejorado */

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    .hero h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-card {
        padding: 25px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .bank-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .form-card {
        padding: 20px;
        border-radius: 15px;
    }
    .forms-grid {
        gap: 20px;
    }
}


/* Scroll animations */

@media (prefers-reduced-motion: no-preference) {
    .form-card {
        opacity: 0;
        transform: translateY(30px);
        animation: slideInUp 0.8s ease-out 0.2s forwards;
    }
    .form-card:nth-child(2) {
        animation-delay: 0.4s;
    }
    .donation-card {
        opacity: 0;
        transform: translateY(30px);
        animation: slideInUp 0.8s ease-out 0.6s forwards;
    }
}