/* Estilos para la sección de donaciones - Integrados con main.css */

/* Hero personalizado para donaciones */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Asegurar texto blanco cuando hay imagen de fondo */
.hero[style*="background-image"] {
    color: white !important;
}

.hero[style*="background-image"] h1,
.hero[style*="background-image"] p {
    color: white !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-family: inherit;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
    line-height: 1.2;
}

.hero p {
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.donation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.donation-info {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.donation-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.donation-info h2 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-card:hover::before {
    transform: scaleY(1);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.info-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.mensaje {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.mensaje.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.mensaje.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.formulario-donacion {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.formulario-donacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.formulario-donacion h2 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.formulario-donacion p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.campo {
    margin-bottom: 1.5rem;
}

.campo label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.campo input,
.campo select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.campo input:focus,
.campo select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.monto-sugerencias {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.monto-sugerencias span {
    font-weight: 600;
    color: var(--gray-600);
    margin-right: 1rem;
    font-size: 0.9rem;
}

.btn-monto {
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Eliminamos efectos de animación complejos para mantener consistencia con main.css */

.btn-monto:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-monto.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-donar {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Botón donar simplificado para consistencia */

.btn-donar:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-donar:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* PayPal Section Styles */
.paypal-section {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 1.5rem;
}

.paypal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.paypal-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.paypal-info p {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

#paypal-button-container {
    margin: 1rem 0;
    min-height: 50px;
}

#fallback-button {
    margin-top: 1rem;
}

.paypal-error {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .donation-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .monto-sugerencias {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .monto-sugerencias span {
        margin-bottom: 1rem;
    }
    
    .donation-info,
    .formulario-donacion {
        padding: 1.5rem;
    }
    
    .info-grid {
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.25rem;
    }
}