/* ============================================================
   THE GOAT Social — Stylesheet
   Architecture: Mobile-First, CSS Custom Properties, Bento Grid
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --c-bg:            #F8F9FA;
  --c-bg-alt:        #F0F2FF;
  --c-primary:       #311B92;
  --c-primary-mid:   #4527A0;
  --c-primary-light: #EDE7F6;
  --c-cta:           #E65100;
  --c-cta-hover:     #BF360C;
  --c-cta-light:     #FFF3E0;
  --c-dark:          #0D0035;
  --c-text:          #1A1A2E;
  --c-text-muted:    #6B7280;
  --c-white:         #FFFFFF;
  --c-border:        rgba(49, 27, 146, 0.10);
  --c-border-light:  rgba(255, 255, 255, 0.15);

  /* Radius */
  --r-card:   20px;
  --r-sm:     12px;
  --r-btn:    50px;
  --r-tag:    6px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(49, 27, 146, 0.08);
  --shadow-hover: 0 16px 48px rgba(49, 27, 146, 0.18);
  --shadow-btn:   0 4px 16px rgba(230, 81, 0, 0.30);

  /* Typography */
  --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', 'Montserrat', system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.3s;

  /* Layout */
  --max-w:       1280px;
  --max-w-narrow: 760px;
  --nav-h:        72px;
  --section-py:   clamp(64px, 10vw, 120px);
  --section-px:   clamp(20px, 5vw, 80px);
  --gap-grid:     20px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

p {
  color: var(--c-text-muted);
  line-height: 1.75;
}

strong { color: var(--c-text); font-weight: 700; }
em { font-style: italic; }

.text-primary  { color: var(--c-primary); }
.text-white    { color: var(--c-white); }
.text-white-muted { color: rgba(255, 255, 255, 0.72); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--r-btn);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--full { width: 100%; }

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-cta {
  background: var(--c-cta);
  color: var(--c-white);
  box-shadow: var(--shadow-btn);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--c-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 81, 0, 0.40);
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-primary-mid);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-outline-hero {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255, 255, 255, 0.50);
  padding: 0.875rem 2rem;
  border-radius: var(--r-btn);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--dur) var(--ease);
}

.btn-outline-hero:hover,
.btn-outline-hero:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.80);
}

.btn-outline-dark {
  background: var(--c-white);
  color: var(--c-primary);
  border: 2px solid var(--c-white);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: transparent;
  color: var(--c-white);
}

/* ============================================================
   6. LAYOUT — Container & Section
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background: var(--c-bg-alt);
}

.section--dark {
  background: var(--c-primary);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-tag);
  margin-bottom: 1rem;
}

.section-tag--light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--c-white);
}

.section--dark .section-header h2 {
  color: var(--c-white);
}

.section-desc {
  max-width: 600px;
  margin-inline: auto;
  margin-top: 1rem;
  font-size: 1.0625rem;
}

.section--dark .section-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.nav-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-header.scrolled {
  background: rgba(248, 249, 250, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0;
}

.logo-goat {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.04em;
  transition: color var(--dur) var(--ease);
}

.logo-social {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--c-cta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-header.scrolled .logo-goat {
  color: var(--c-primary);
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}

.nav-header.scrolled .hamburger-line {
  background: var(--c-primary);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links — mobile */
.nav-links {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  z-index: 99;
}

.nav-links.open {
  transform: translateX(0);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text);
  transition: color var(--dur) var(--ease);
}

.nav-link:hover { color: var(--c-primary); }

.nav-link.active { color: var(--c-primary); }

.nav-cta {
  background: var(--c-cta);
  color: var(--c-white) !important;
  padding: 0.625rem 1.5rem;
  border-radius: var(--r-btn);
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--c-cta-hover);
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Replace url('assets/images/hero.jpg') with your actual hero photo */
  background:
    radial-gradient(ellipse at 75% 50%, rgba(230, 81, 0, 0.12) 0%, transparent 60%),
    linear-gradient(140deg, #0a0035 0%, #1a0066 30%, #311B92 65%, #4527A0 100%),
    url('assets/images/hero.jpg') center / cover no-repeat;
  overflow: hidden;
}

/* Decorative rings */
.hero-decoration {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.hero-ring--2 {
  inset: -60px;
  border-color: rgba(255, 255, 255, 0.05);
}

.hero-ring--3 {
  inset: -130px;
  border-color: rgba(255, 255, 255, 0.03);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-inline: var(--section-px);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-tag);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--c-white);
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.hero-title em {
  color: var(--c-cta);
  font-style: normal;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 0 0;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat strong {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--c-white);
}

.hero-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.20);
  margin-right: 1.5rem;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero-scroll-line {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ============================================================
   9. BENTO GRID
   ============================================================ */
.bento-grid {
  display: grid;
  gap: var(--gap-grid);
}

/* ¿Qué es? — featured layout */
.bento-what {
  grid-template-columns: 1fr;
}

/* GOAT methodology — 2 col on tablet */
.bento-goat {
  grid-template-columns: 1fr;
}

/* Impact bars */
.bento-impact {
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

/* ============================================================
   10. BENTO CARDS
   ============================================================ */
.bento-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.bento-card h3 {
  margin-bottom: 0.75rem;
}

.bento-card p {
  font-size: 0.9375rem;
}

/* Accent variant — purple tint */
.bento-card--accent {
  background: var(--c-primary-light);
  border-color: rgba(49, 27, 146, 0.15);
}

.bento-card--accent h3 { color: var(--c-primary); }

/* Dark variant */
.bento-card--dark {
  background: var(--c-primary);
  border-color: transparent;
}

.bento-card--dark h3,
.bento-card--dark p { color: var(--c-white); }

.bento-card--dark .bento-icon { color: var(--c-cta); }

/* Light (used inside dark section) */
.bento-card--light {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
}

.bento-card--light h4 { color: var(--c-white); }
.bento-card--light p  { color: rgba(255, 255, 255, 0.72); }

/* CTA border (orange accent) */
.bento-card--cta-border {
  border-color: var(--c-cta);
  border-width: 2px;
}

/* Bento icon */
.bento-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.bento-icon svg { width: 2rem; height: 2rem; }
.value-icon svg { width: 2.5rem; height: 2.5rem; display: block; }
.indicator-icon svg { width: 1.5rem; height: 1.5rem; display: block; flex-shrink: 0; }

/* ============================================================
   11. GOAT CARDS
   ============================================================ */
.bento-card--goat {
  position: relative;
  overflow: hidden;
}

.goat-letter {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 900;
  color: var(--c-primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.bento-card--goat h3 {
  position: relative;
  color: var(--c-primary);
  margin-bottom: 0.75rem;
}

.bento-card--goat h3::before {
  content: attr(data-letter);
}

.goat-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.goat-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.goat-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cta);
}

/* ============================================================
   12. TIMELINE
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c-white);
}

.timeline-card {
  flex: 1;
}

.timeline-phase-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-tag);
  margin-bottom: 0.75rem;
}

.timeline-phase-badge--cta {
  background: var(--c-cta-light);
  color: var(--c-cta);
}

.timeline-location {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.location-badge__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.4rem;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 3px;
  text-transform: uppercase;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.3125rem 0.875rem;
  background: var(--c-bg-alt);
  color: var(--c-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--r-tag);
  border: 1px solid var(--c-border);
}

.tag--orange {
  background: var(--c-cta-light);
  color: var(--c-cta);
  border-color: rgba(230, 81, 0, 0.15);
}

/* ============================================================
   13. METRICS
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-grid);
  margin-bottom: 2rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: transform var(--dur) var(--ease);
}

.metric-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 0.625rem;
}

.metric-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.50);
}

/* Progress bars */
.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-cta) 100%);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card--light .progress-track {
  background: rgba(255, 255, 255, 0.20);
}

.progress-pct {
  display: block;
  margin-top: 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-cta);
}

/* ============================================================
   14. CROWDFUNDING
   ============================================================ */
.crowdfunding-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.crowdfunding-card h3 {
  margin-bottom: 0.75rem;
}

.crowdfunding-card > .crowdfunding-info p {
  margin-bottom: 1.75rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.amount-card {
  background: var(--c-bg-alt);
  border-radius: var(--r-sm);
  padding: 1rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--dur) var(--ease);
}

.amount-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 0.25rem;
}

.amount-card span {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.amount-card--featured {
  background: var(--c-cta-light);
  border-color: var(--c-cta);
}

.amount-card--featured strong { color: var(--c-cta); }

.cf-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.875rem;
}

.cf-stat {
  display: flex;
  flex-direction: column;
}

.cf-stat--right {
  text-align: right;
}

.cf-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-text);
}

.cf-label {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.cf-progress-track {
  width: 100%;
  height: 12px;
  background: var(--c-bg-alt);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.cf-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-cta) 100%);
  border-radius: 6px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cf-progress-label {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-bottom: 1.75rem;
}

.cf-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* ============================================================
   15. PARTNERS
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

.partners-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partners-tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  font-style: italic;
}

.partners-desc {
  font-size: 0.9375rem;
}

.partner-tiers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partner-tier {
  background: var(--c-bg);
  border-radius: var(--r-sm);
  padding: 1.25rem;
  border: 1px solid var(--c-border);
}

.partner-tier--featured {
  background: var(--c-primary-light);
  border-color: rgba(49, 27, 146, 0.20);
}

.partner-tier__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tier-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-tag);
}

.tier-badge--orange {
  background: var(--c-cta-light);
  color: var(--c-cta);
}

.tier-badge--purple {
  background: var(--c-primary);
  color: var(--c-white);
}

.tier-recommended {
  font-size: 0.75rem;
  color: var(--c-primary);
  font-weight: 600;
}

.partners-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.partners-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.partners-list li::before {
  content: '✓';
  color: var(--c-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.partners-list--detailed li {
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-border);
}

.partners-list--detailed li:last-child {
  border-bottom: none;
}

.partners-list--detailed li::before { display: none; }

.partners-list--detailed strong {
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.partners-list--detailed strong::before {
  content: '✓';
  color: var(--c-primary);
  font-weight: 700;
}

.partners-list--detailed span {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  padding-left: 1.25rem;
}

/* ============================================================
   16. CONTACT FORM
   ============================================================ */
.contact-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--c-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(49, 27, 146, 0.10);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #DC2626;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.field-error {
  font-size: 0.8125rem;
  color: #DC2626;
  min-height: 1.2em;
}

.form-group--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  margin: 0;
  accent-color: var(--c-primary);
  cursor: pointer;
  padding: 0;
}

.form-link {
  color: var(--c-primary);
  text-decoration: underline;
  font-weight: 500;
}

#submit-btn {
  margin-top: 0.5rem;
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: var(--r-sm);
  min-height: 0;
  transition: all var(--dur) var(--ease);
}

.form-feedback.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-feedback.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--c-dark);
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.footer-brand .logo-goat { color: var(--c-white); }

.footer-nav h4 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.70);
  transition: color var(--dur) var(--ease);
}

.footer-nav a:hover { color: var(--c-white); }

.footer-contact-info h4 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.footer-contact-info p {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.footer-contact-info .btn-outline {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.30);
}

.footer-contact-info .btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--c-white);
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur) var(--ease);
  text-decoration: none;
}

.footer-contact-link:hover { color: var(--c-white); }

.footer-contact-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--dur) var(--ease);
}

.footer-legal a:hover { color: rgba(255, 255, 255, 0.70); }

/* ============================================================
   18. REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

/* ============================================================
   19. RESPONSIVE — 640px (Small tablets)
   ============================================================ */
@media (min-width: 640px) {
  .nav-toggle { display: none; }

  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    transform: none;
    background: transparent;
    inset: unset;
  }

  .nav-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.375rem 0.625rem;
  }

  .nav-header.scrolled .nav-link {
    color: var(--c-text);
  }

  .nav-link:hover,
  .nav-link.active { color: var(--c-white); }

  .nav-header.scrolled .nav-link:hover,
  .nav-header.scrolled .nav-link.active { color: var(--c-primary); }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   20. RESPONSIVE — 768px (Tablets)
   ============================================================ */
@media (min-width: 768px) {
  .bento-what {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-card--featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .bento-goat {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-impact {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline::before { left: 28px; }

  .timeline-marker {
    width: 56px;
    height: 56px;
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 1.75rem;
  }

  .crowdfunding-card {
    grid-template-columns: 1fr 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ============================================================
   21. RESPONSIVE — 1024px (Desktop)
   ============================================================ */
@media (min-width: 1024px) {
  .bento-goat {
    grid-template-columns: repeat(4, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

/* ============================================================
   22. RESPONSIVE — 1280px (Large Desktop)
   ============================================================ */
@media (min-width: 1280px) {
  .hero-decoration {
    right: 5%;
  }
}

/* ============================================================
   23. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .progress-fill,
  .cf-progress-fill {
    transition: none;
  }

  .hero-scroll-line {
    animation: none;
  }

  .bento-card:hover,
  .metric-card:hover {
    transform: none;
  }
}

/* ============================================================
   24. PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: clamp(280px, 40vw, 380px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 70% 50%, rgba(230, 81, 0, 0.10) 0%, transparent 60%),
    linear-gradient(140deg, #0a0035 0%, #1a0066 30%, #311B92 65%, #4527A0 100%);
  overflow: hidden;
}

.page-hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 2rem);
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.page-hero h1 {
  color: var(--c-white);
  margin-bottom: 0.75rem;
  max-width: 720px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

/* ============================================================
   25. BREADCRUMB
   ============================================================ */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.50);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: rgba(255, 255, 255, 0.30);
  margin-left: 0.75rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover { color: var(--c-white); }

.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   26. NAV ACTIVE STATE (multi-page)
   ============================================================ */
.nav-link[aria-current="page"],
.nav-link.active {
  color: var(--c-cta) !important;
}

/* ============================================================
   27. GALLERY GRID (legado.html)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-primary-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed var(--c-border);
}

.gallery-item--placeholder::before {
  content: '';
  width: 2rem;
  height: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23311B92' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  opacity: 0.4;
}

.gallery-item--placeholder span {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-weight: 500;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(13, 0, 53, 0.85), transparent);
  color: var(--c-white);
  font-size: 0.8125rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ============================================================
   28. CTA STRIP
   ============================================================ */
.cta-strip {
  background: var(--c-primary);
  padding: clamp(2.5rem, 5vw, 4rem) var(--section-px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-strip h3 { color: var(--c-white); font-size: clamp(1.375rem, 3vw, 2rem); }
.cta-strip p  { color: rgba(255, 255, 255, 0.72); max-width: 500px; }

.btn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   29. SUBPAGE CONTENT COMPONENTS
   ============================================================ */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--c-white);
  border-radius: var(--r-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h4 { margin-bottom: 0.375rem; }
.step-content p  { font-size: 0.9375rem; }

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.quote-block {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--c-primary-light);
  border-radius: var(--r-card);
  border-left: 4px solid var(--c-primary);
  margin-block: 2rem;
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.quote-block cite {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  font-style: normal;
}

.indicator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .indicator-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .indicator-grid { grid-template-columns: repeat(3, 1fr); }
}

.indicator-card {
  padding: 1.25rem 1.5rem;
  background: var(--c-white);
  border-radius: var(--r-card);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.indicator-icon { font-size: 1.5rem; flex-shrink: 0; }
.indicator-body h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.indicator-body p  { font-size: 0.875rem; }

.projection-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.projection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--c-bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.projection-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-text);
}

.projection-value {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--c-primary);
}

.big-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
}

@media (min-width: 768px) {
  .big-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.big-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--c-white);
  border-radius: var(--r-card);
  border: 1px solid var(--c-border);
}

.big-stat__value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.big-stat__label { font-size: 0.875rem; color: var(--c-text-muted); }

.impact-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

@media (min-width: 640px) {
  .impact-tier-grid { grid-template-columns: repeat(3, 1fr); }
}

.impact-tier {
  padding: 2rem 1.5rem;
  background: var(--c-white);
  border-radius: var(--r-card);
  border: 1px solid var(--c-border);
  text-align: center;
}

.impact-tier--featured {
  border-color: var(--c-cta);
  border-width: 2px;
  background: var(--c-cta-light);
}

.impact-tier__amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}

.impact-tier--featured .impact-tier__amount { color: var(--c-cta); }

.impact-tier h4 { margin-bottom: 0.625rem; }
.impact-tier p  { font-size: 0.9375rem; }

/* ============================================================
   30. METRIC PANEL CARDS (3-block indicator panel)
   ============================================================ */
.metric-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
}

@media (min-width: 768px) {
  .metric-panel-grid { grid-template-columns: repeat(3, 1fr); }
}

.metric-panel-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.metric-panel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.metric-panel-icon {
  width: 48px;
  height: 48px;
  background: var(--c-primary-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}

.metric-panel-icon svg { width: 24px; height: 24px; }

.metric-panel-label {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}

.metric-panel-desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  flex: 1;
  line-height: 1.65;
  margin: 0;
}

.metric-panel-card .progress-track {
  background: var(--c-bg-alt);
  margin-top: 0;
}

/* ============================================================
   31. DONATION TYPE CARDS
   ============================================================ */
.donation-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--gap-grid);
}

.donation-type-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.donation-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.donation-type-card--primary { border-color: var(--c-primary); }
.donation-type-card--cta     { border-color: var(--c-cta); }

.donation-type-card--dark {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.donation-type-card--dark .donation-type-title { color: var(--c-white); }
.donation-type-card--dark .donation-type-subtitle { color: rgba(255,255,255,0.65); }
.donation-type-card--dark .donation-type-desc { color: rgba(255,255,255,0.85); }
.donation-type-card--dark .donation-type-meta { color: rgba(255,255,255,0.55); }
.donation-type-card--dark .donation-type-meta strong { color: rgba(255,255,255,0.85); }

.donation-type-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.donation-type-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donation-type-icon--primary { background: var(--c-primary-light); color: var(--c-primary); }
.donation-type-icon--cta     { background: var(--c-cta-light);     color: var(--c-cta); }
.donation-type-icon--white   { background: rgba(255,255,255,0.15); color: var(--c-white); }

.donation-type-icon svg { width: 28px; height: 28px; }

.donation-type-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0;
}

.donation-type-subtitle {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin: 0;
}

.donation-type-desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.suggested-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggested-amounts-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
}

.amount-pill {
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  border: 1.5px solid var(--c-border);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-bg);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.amount-pill:hover,
.amount-pill.active {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.donation-type-card--cta .amount-pill:hover,
.donation-type-card--cta .amount-pill.active {
  border-color: var(--c-cta);
  background: var(--c-cta-light);
  color: var(--c-cta);
}

.custom-amount-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.custom-amount-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}

.custom-amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-currency {
  position: absolute;
  left: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-text-muted);
  pointer-events: none;
  z-index: 1;
}

.custom-amount-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--dur) var(--ease);
}

.custom-amount-wrap input:focus {
  outline: none;
  border-color: var(--c-primary);
}

.donation-type-card--cta .custom-amount-wrap input:focus {
  border-color: var(--c-cta);
}

.donation-type-meta {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   32. VIDEO EMBED (documentary container)
   ============================================================ */
.video-embed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-embed__ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--c-bg-alt);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.video-embed__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed__ratio::after {
  content: 'Vídeo pendiente de configurar';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  pointer-events: none;
}

.video-embed__ratio:has(iframe[src]:not([src=""]))::after {
  display: none;
}

.video-embed__caption {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  text-align: center;
  margin: 0;
}

/* =============================================
   Section 33 — ODS / Impacto Global
   ============================================= */

.ods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
}

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

.ods-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem) 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.ods-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.ods-card--3  { --ods-color: #4C9F38; --ods-bg: rgba(76,  159,  56, 0.12); }
.ods-card--4  { --ods-color: #C5192D; --ods-bg: rgba(197,  25,  45, 0.10); }
.ods-card--5  { --ods-color: #FF3A21; --ods-bg: rgba(255,  58,  33, 0.10); }
.ods-card--10 { --ods-color: #DD1367; --ods-bg: rgba(221,  19, 103, 0.10); }

.ods-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--ods-bg, rgba(76, 159, 56, 0.12));
  color: var(--ods-color, #4C9F38);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ods-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ods-color);
  display: block;
  margin-bottom: 0.125rem;
}

.ods-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--c-text);
  line-height: 1.3;
}

.ods-desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* =============================================
   Section 34 — Costa Rica Gallery & Video
   ============================================= */

.cr-showcase {
  margin-top: 3rem;
}

.cr-showcase__intro {
  margin-bottom: 1.5rem;
  text-align: center;
}

.cr-showcase__intro h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 0.375rem;
}

.cr-showcase__intro p {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  margin: 0;
}

.cr-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 260px 220px;
  gap: 4px;
  border-radius: var(--r-card);
  overflow: hidden;
}

.cr-gallery__item {
  overflow: hidden;
  background: var(--c-bg-alt);
}

.cr-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.cr-gallery__item:hover img {
  transform: scale(1.05);
}

.cr-gallery__item:nth-child(1) { grid-column: 1 / 8;  grid-row: 1 / 3; }
.cr-gallery__item:nth-child(2) { grid-column: 8 / 10; grid-row: 1; }
.cr-gallery__item:nth-child(3) { grid-column: 10 / 13; grid-row: 1; }
.cr-gallery__item:nth-child(4) { grid-column: 8 / 10; grid-row: 2; }
.cr-gallery__item:nth-child(5) { grid-column: 10 / 13; grid-row: 2; }
.cr-gallery__item:nth-child(6) { grid-column: 1 / 5;  grid-row: 3; }
.cr-gallery__item:nth-child(7) { grid-column: 5 / 9;  grid-row: 3; }
.cr-gallery__item:nth-child(8) { grid-column: 9 / 13; grid-row: 3; }

@media (max-width: 767px) {
  .cr-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 3px;
    border-radius: var(--r-sm);
  }
  .cr-gallery__item            { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/3; }
  .cr-gallery__item:nth-child(1) { grid-column: 1 / 3 !important; aspect-ratio: 16/9; }
}

.cr-video-wrap {
  margin-top: 1.75rem;
}

.cr-video-wrap__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.cr-video-wrap__label h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--c-text);
}

.cr-video {
  width: 100%;
  border-radius: var(--r-card);
  display: block;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  max-height: 540px;
  object-fit: cover;
}

.cr-video__caption {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin: 0.5rem 0 0;
  text-align: right;
}
