/* ============================================
   Fundación Vegueta — CSS Adicional: Donaciones
   ============================================ */

/* === Fund Breakdown === */
.fund-breakdown {
  max-width: 700px;
  margin: 0 auto 48px;
}

.fund-bar {
  display: flex;
  height: 48px;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.fund-segment {
  width: calc(var(--pct) * 1%);
  background: var(--color, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  position: relative;
}

.fund-segment:hover {
  filter: brightness(1.15);
}

.fund-segment-label {
  color: white;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.fund-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

.fund-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.fund-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color) 30%, transparent);
}

/* === Impact Calculator === */
.impact-calculator {
  margin-bottom: 48px;
}

.calc-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.calc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.calc-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.calc-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.calc-impact {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.calc-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* === Tax Benefit === */
.tax-benefit {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.tax-benefit-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.tax-benefit-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tax-benefit-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tax-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tax-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tax-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.tax-step-arrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

/* === Fundraising Goal === */
.fundraising-goal {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
}

.goal-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.goal-header {
  margin-bottom: 32px;
}

.goal-header .section-tag {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.goal-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0 8px;
}

.goal-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
}

.goal-bar-container {
  margin-bottom: 24px;
}

.goal-bar {
  height: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 100px;
  width: 0;
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.goal-bar-label {
  position: absolute;
  right: -40px;
  top: -2px;
  font-size: 13px;
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
}

.goal-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.goal-raised {
  color: #60a5fa;
  font-weight: 700;
}

.goal-target {
  color: rgba(255,255,255,0.5);
}

.goal-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 16px 0;
}

.goal-stat {
  text-align: center;
}

.goal-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  color: white;
}

.goal-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Recent donors */
.recent-donors {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.recent-donors-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 8px;
}

.donor-feed {
  display: flex;
  gap: 12px;
  animation: donorScroll 20s linear infinite;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes donorScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.donor-item {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* === Legal Info === */
.legal-info {
  background: var(--bg-tertiary);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.legal-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.legal-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.legal-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-card-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

.legal-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .legal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .legal-grid { grid-template-columns: 1fr; }
}

/* === FAQ === */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: white;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* === WhatsApp Float === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: all var(--transition-fast);
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* === Donación recurrente toggle === */
.donate-toggle {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.donate-toggle-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: all var(--transition-fast);
  color: rgba(255,255,255,0.5);
}

.donate-toggle-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

.donate-recurring-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .tax-benefit { flex-direction: column; text-align: center; }
  .tax-steps { justify-content: center; }
}