@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-mid: #1976D2;
  --primary-light: #E3F2FD;
  --primary-pale: #F0F7FF;
  --text: #1A2942;
  --text-light: #5C6B8A;
  --border: #D6E4F5;
  --bg: #F7FBFF;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(21, 101, 192, 0.08);
  --shadow-lg: 0 8px 32px rgba(21, 101, 192, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(21,101,192,0.07);
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  transition: all 0.18s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: 'Nunito', sans-serif;
  line-height: 1;
  letter-spacing: 0.1px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(21,101,192,0.35);
}
.btn-outline {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}
.btn-white {
  background: white;
  color: var(--primary-dark);
  border-color: white;
}
.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
}
.btn-lg { padding: 14px 36px; font-size: 0.98rem; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);
  color: white;
  padding: 100px 24px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg);
  clip-path: ellipse(52% 100% at 50% 100%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: -0.8px;
}
.hero h1 span { color: #90CAF9; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 44px;
  position: relative;
  font-weight: 600;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  padding-bottom: 20px;
}
.hero-buttons .btn { min-width: 210px; justify-content: center; }

/* ── LAYOUT ── */
.section {
  padding: 72px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.section-center { text-align: center; margin-bottom: 52px; }
.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
  color: var(--text);
}
.section-subtitle {
  color: var(--text-light);
  font-size: 0.97rem;
  font-weight: 600;
}

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: all 0.22s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #BBDEFB;
}
.card-accent {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
  margin-bottom: 20px;
}
.card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.88rem; font-weight: 600; line-height: 1.65; }

/* ── STEPS ── */
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 17%;
  right: 17%;
  height: 1.5px;
  background: var(--border);
  z-index: 0;
}
.step { flex: 1; text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid var(--bg);
  box-shadow: 0 3px 12px rgba(21,101,192,0.25);
}
.step h4 { font-size: 0.88rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.step p { font-size: 0.8rem; color: var(--text-light); font-weight: 600; line-height: 1.55; }

/* ── SECTION LABEL (above steps, etc.) ── */
.label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

/* ── FORMS ── */
.form-page { padding: 56px 24px; }
.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}
.form-header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1.5px solid var(--border); }
.form-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.4px; color: var(--text); }
.form-subtitle { color: var(--text-light); font-size: 0.92rem; font-weight: 600; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 14px;
  display: block;
}
label { display: block; font-weight: 700; font-size: 0.87rem; margin-bottom: 6px; color: var(--text); }
label .req { color: #C62828; }
input, textarea, select {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: border-color 0.18s, box-shadow 0.18s;
  background: white;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
textarea { resize: vertical; min-height: 100px; }

/* ── INTEREST CHECKBOXES ── */
.interests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.interest-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.84rem;
  font-weight: 700;
  user-select: none;
  background: white;
  color: var(--text-light);
}
.interest-item input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--primary); }
.interest-item:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ── ALERTS ── */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1.55;
}
.alert-success { background: #E8F5E9; color: #1B5E20; border-left: 3px solid #43A047; }
.alert-error { background: #FFEBEE; color: #C62828; border-left: 3px solid #EF5350; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border-left: 3px solid var(--primary); }

/* ── MAP ── */
#map {
  height: 420px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── ORG CARDS ── */
.org-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  margin-bottom: 14px;
}
.org-card:hover { border-color: #BBDEFB; box-shadow: var(--shadow-lg); }
.org-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.org-meta { display: flex; gap: 7px; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
}
.tag-blue { background: var(--primary-light); color: var(--primary-dark); }
.tag-light { background: var(--primary-pale); color: var(--text-light); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 28px 0; }

/* ── DONATE PAGE ── */
.donate-hero {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 55%, #1976D2 100%);
  color: white;
  padding: 88px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 35%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.donate-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg);
  clip-path: ellipse(52% 100% at 50% 100%);
}
.donate-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  position: relative;
}
.donate-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 480px;
  margin: 0 auto 36px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-btn {
  padding: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.97rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
}
.amount-btn:hover, .amount-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* ── LOADING ── */
.spinner {
  width: 36px; height: 36px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 28px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULTS BANNER ── */
.results-banner {
  background: var(--primary-pale);
  border-bottom: 1px solid #BBDEFB;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

/* ── CONFIRMATION ── */
.confirm-box { text-align: center; }

/* ── FOOTER ── */
footer {
  background: #0D1B2E;
  color: rgba(255,255,255,0.5);
  padding: 44px 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
footer a { color: #90CAF9; text-decoration: none; }
footer a:hover { opacity: 0.8; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 14px; flex-wrap: wrap; }

/* ── SPANISH SUBTITLES ── */
.es {
  display: block;
  font-size: 0.76em;
  font-style: italic;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.62;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.hamburger:hover { background: var(--primary-pale); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 16px; }
  .steps::before { display: none; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 16px; position: relative; }
  .form-container { padding: 32px 20px; }
  .hero { padding: 64px 16px 80px; }
  .results-layout { grid-template-columns: 1fr !important; }
  #map { height: 300px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    padding: 12px 16px 16px;
    box-shadow: 0 6px 20px rgba(21,101,192,0.1);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; border-radius: 8px; }
}
