/* ===================================================
   TECNOLOGÍA RURAL PARA EDUCAR — Stylesheet
   Colors inspired by the logo rainbow ring:
   Red #E63329, Orange #F37021, Yellow #F9C418,
   Green #4BAE4A, Teal #29ABE2, Blue #2B56A4,
   Purple #9C27B0 + logo dark text #1a1a1a
=================================================== */

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

:root {
  --red:        #E63329;
  --orange:     #F37021;
  --yellow:     #F9C418;
  --green:      #4BAE4A;
  --teal:       #29ABE2;
  --blue:       #2B56A4;
  --purple:     #9C27B0;

  --primary:    #2B56A4;       /* blue — main brand */
  --secondary:  #F37021;       /* orange — accent */
  --accent:     #4BAE4A;       /* green — CTA */
  --dark:       #0f1b2d;       /* hero / dark sections */
  --dark-mid:   #152236;
  --light:      #f8fafc;
  --white:      #ffffff;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 30px rgba(0,0,0,.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.18);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --gradient-rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--teal), var(--blue), var(--purple));
  --gradient-brand:   linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  --gradient-warm:    linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  --gradient-green:   linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Outfit', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
p { color: var(--text); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-light  { background: var(--light); }
.section-dark   { background: var(--dark); }
.section-gradient {
  background: linear-gradient(160deg, var(--dark) 0%, #1a3060 50%, var(--dark) 100%);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-xl);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(43, 86, 164, .4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43, 86, 164, .5);
}

.btn-outline {
  border-color: rgba(255,255,255,.6);
  color: var(--white);
  background: transparent;
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #1a1a1a;
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem;
  box-shadow: 0 6px 30px rgba(243,112,33,.4);
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(243,112,33,.5);
}

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(43,86,164,.12), rgba(41,171,226,.12));
  color: var(--primary);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: .75rem;
  border: 1px solid rgba(43,86,164,.2);
}

.section-tag-light {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.25);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
}
.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-subtitle.light { color: rgba(255,255,255,.7); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 27, 45, .95);
  backdrop-filter: blur(20px);
  padding: .65rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-img { transform: scale(1.08) rotate(5deg); }

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .85rem;
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.cta-nav {
  background: var(--gradient-warm);
  color: #1a1a1a !important;
  font-weight: 700;
  margin-left: .5rem;
}
.cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(243,112,33,.4);
  background: var(--gradient-warm) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  min-height: 100svh;
  background: linear-gradient(160deg, #0a1628 0%, #0f1f40 40%, #162850 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 3rem;
  padding: 7rem 1.5rem 4rem;
  max-width: 100%;
}

/* decorative animated shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .18;
  animation: float 8s ease-in-out infinite;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--blue);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.shape-2 {
  width: 350px; height: 350px;
  background: var(--orange);
  bottom: -80px; left: -80px;
  animation-delay: -3s;
}
.shape-3 {
  width: 280px; height: 280px;
  background: var(--green);
  top: 50%; left: 35%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
  flex: 1;
  max-width: 620px;
  position: relative;
  z-index: 1;
  /* Center horizontally when visual is hidden on mobile */
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero {
    justify-content: center;
    padding: 8rem 3rem 5rem;
  }
  .hero-content { margin: 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

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

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

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

.stat-number {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* Hero visual: animated logo */
.hero-visual {
  display: none;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hero-visual { display: flex; align-items: center; justify-content: center; }
}

.hero-logo-wrapper {
  position: relative;
  width: 320px; height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 50px rgba(0,0,0,.4);
}

.hero-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin linear infinite;
}

.ring-1 {
  width: 260px; height: 260px;
  border-top-color: var(--yellow);
  border-right-color: var(--orange);
  animation-duration: 6s;
}
.ring-2 {
  width: 295px; height: 295px;
  border-top-color: var(--teal);
  border-left-color: var(--blue);
  animation-duration: 9s;
  animation-direction: reverse;
}
.ring-3 {
  width: 320px; height: 320px;
  border-bottom-color: var(--green);
  border-right-color: var(--purple);
  animation-duration: 12s;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  color: rgba(255,255,255,.5);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROYECTO SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 800px) {
  .two-col { grid-template-columns: 1.1fr 1fr; }
}

.text-content h3.content-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.text-content p {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 1rem;
  line-height: 1.8;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: var(--transition);
}

.info-card:nth-child(1) { border-left-color: var(--blue); }
.info-card:nth-child(2) { border-left-color: var(--red); }
.info-card:nth-child(3) { border-left-color: var(--orange); }

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

.info-card-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.info-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Alcance */
.alcance-grid {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.alcance-card {
  flex: 1;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--border);
}
.alcance-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.alcance-card-highlight {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--white);
}
.alcance-card-highlight h4, .alcance-card-highlight p { color: rgba(255,255,255,.9); }

.alcance-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .5rem;
}
.alcance-card-highlight .alcance-number { color: var(--yellow); }

.alcance-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.alcance-card p  { font-size: .9rem; color: var(--text-muted); margin: 0; }
.alcance-card-highlight p { color: rgba(255,255,255,.8); }

.alcance-arrow { font-size: 1.5rem; color: var(--text-muted); }

.highlight {
  color: var(--orange);
  font-weight: 700;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   OBJETIVOS SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.objetivo-general-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(43,86,164,.12), rgba(41,171,226,.08));
  border: 1px solid rgba(43,86,164,.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
}

.obj-gen-icon { font-size: 2.5rem; flex-shrink: 0; }
.obj-gen-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.obj-gen-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin: 0;
}

.objetivos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.objetivo-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.objetivo-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
}

.objetivo-icon { font-size: 2rem; margin-bottom: .75rem; }
.objetivo-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.objetivo-card p  { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   POBLACIÓN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.poblacion-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .poblacion-layout { grid-template-columns: 1fr 1.5fr; }
}

.poblacion-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  transition: var(--transition);
}
.poblacion-card:hover { transform: translateY(-4px); }

.primary-card {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(43,86,164,.04), rgba(41,171,226,.04));
}

.poblacion-icon { font-size: 3rem; margin-bottom: 1rem; }
.poblacion-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: .75rem; }
.poblacion-card p  { font-size: .95rem; color: var(--text-muted); margin: 0; }

.prioridades-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.prioridades-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.prioridad-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.prioridad-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }

.prioridad-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }

.prioridad-item strong { display: block; font-size: .95rem; color: var(--text); margin-bottom: .2rem; }
.prioridad-item p      { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* Metodología */
.metodologia-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  counter-reset: mstep;
}

.mstep {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
  position: relative;
}
.mstep:nth-child(1) { border-top-color: var(--blue); }
.mstep:nth-child(2) { border-top-color: var(--teal); }
.mstep:nth-child(3) { border-top-color: var(--green); }
.mstep:nth-child(4) { border-top-color: var(--orange); }
.mstep:nth-child(5) { border-top-color: var(--purple); }
.mstep:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.mstep-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}

.mstep h4 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.mstep p  { font-size: .82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   IMPACTO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.impacto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.impacto-full {
  grid-column: 1 / -1;
}

@media (min-width: 600px) {
  .impacto-full { grid-column: auto; }
}

.impacto-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.impacto-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}

.impacto-icon { font-size: 2rem; margin-bottom: .75rem; }

.impacto-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}

.impacto-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}

/* Timeline */
.cronograma-timeline {
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px solid rgba(255,255,255,.15);
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2.75rem;
  top: .25rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gradient-warm);
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 3px rgba(243,112,33,.3);
}

.timeline-period {
  display: inline-block;
  background: rgba(249,196,24,.15);
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .7rem;
  border-radius: var(--radius-xl);
  margin-bottom: .4rem;
  letter-spacing: .05em;
}

.timeline-content h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.timeline-content p  { font-size: .9rem; color: rgba(255,255,255,.65); margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DONACIONES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.donacion-tipos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.donacion-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.donacion-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.donacion-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243,112,33,.15), var(--shadow-md);
}
.donacion-featured:hover { border-color: var(--orange); }

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-warm);
  color: #1a1a1a;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: var(--radius-xl);
  white-space: nowrap;
}

.donacion-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.donacion-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.donacion-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }

.donacion-list { padding: 0; }
.donacion-list li {
  font-size: .88rem;
  color: var(--text-muted);
  padding: .3rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.donacion-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.transparencia-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(75,174,74,.08), rgba(41,171,226,.08));
  border: 1px solid rgba(75,174,74,.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.transparencia-icon { font-size: 2rem; flex-shrink: 0; }
.transparencia-box h3 { font-size: 1.05rem; font-weight: 700; color: var(--green); margin-bottom: .5rem; }
.transparencia-box p  { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EQUIPO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.equipo-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.equipo-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.equipo-creador {
  background: linear-gradient(135deg, rgba(43,86,164,.2), rgba(41,171,226,.15));
  border-color: rgba(41,171,226,.3);
}

.equipo-avatar {
  flex-shrink: 0;
}

.equipo-logo-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
}

.equipo-rol {
  display: inline-block;
  background: var(--gradient-warm);
  color: #1a1a1a;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: var(--radius-xl);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.equipo-nombre { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.equipo-desc   { font-size: .9rem; color: rgba(255,255,255,.65); margin: 0; }

.colaboradores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.colaborador-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.colaborador-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-3px);
}

.colaborador-icon { font-size: 2rem; margin-bottom: .75rem; }
.colaborador-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.colaborador-card p  { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cta-section {
  position: relative;
  padding: 7rem 1.5rem;
  background: linear-gradient(160deg, #0a1628 0%, #152040 100%);
  text-align: center;
  overflow: hidden;
}

.cta-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .15;
  filter: blur(70px);
}
.cta-shape-1 {
  width: 400px; height: 400px;
  background: var(--purple);
  top: -100px; left: -100px;
}
.cta-shape-2 {
  width: 300px; height: 300px;
  background: var(--orange);
  bottom: -80px; right: -60px;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-email {
  font-size: 1rem;
  color: var(--white);
  max-width: 560px;
  margin: 1.5rem auto 0;
}

.cta-email a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.cta-email a:hover {
  color: var(--yellow);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
  background: #070e1a;
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin: 0;
}

.footer-links-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-links-col ul li {
  margin-bottom: .6rem;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
}
.footer-links-col ul li a {
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-links-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 22, 40, .97);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: .5rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .navbar { position: fixed; }
  
  .alcance-arrow { display: none; }
  .alcance-grid { flex-direction: column; }
  .alcance-card { min-width: unset; }

  .equipo-card { flex-direction: column; text-align: center; }
  
  .objetivo-general-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-stats { gap: 1rem; }
  .donacion-tipos { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── SCROLL REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
