/* ============================================================
   Iniciativa Manos que Ayudan
   ============================================================ */

:root {
  --emerald: #2d6a4f;
  --emerald-dark: #1b4332;
  --emerald-light: #95d5b2;
  --sand: #f4a261;
  --sand-dark: #e76f51;
  --cream: #fefae0;
  --paper: #ffffff;
  --bg: #f8f6ef;
  --ink: #1a2e29;
  --ink-soft: #4a5b56;
  --ink-muted: #7a8580;
  --line: #e3dccc;
  --shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.08);
  --shadow-md: 0 10px 30px rgba(27, 67, 50, 0.10);
  --shadow-lg: 0 20px 60px rgba(27, 67, 50, 0.14);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --serif: "DM Serif Display", "Times New Roman", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--emerald-dark);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Hace que la ULTIMA seccion estire hasta el footer (mata el espacio blanco) */
#content > section:last-child { flex-grow: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--sand-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--emerald-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.005em; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SCROLL ANIMATIONS — fade in al entrar a viewport
   ============================================================ */

[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-fade="up"] { transform: translateY(40px); }
[data-fade="left"] { transform: translateX(-40px); }
[data-fade="right"] { transform: translateX(40px); }
[data-fade="scale"] { transform: scale(0.95); }

[data-fade].is-visible[data-fade="left"],
[data-fade].is-visible[data-fade="right"] { transform: translateX(0); }

[data-fade].is-visible[data-fade="scale"] { transform: scale(1); }

[data-fade-delay="100"].is-visible { transition-delay: 0.1s; }
[data-fade-delay="200"].is-visible { transition-delay: 0.2s; }
[data-fade-delay="300"].is-visible { transition-delay: 0.3s; }
[data-fade-delay="400"].is-visible { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background: rgba(254, 250, 224, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--emerald);
  transition: transform 0.3s var(--ease-out);
}

.brand:hover { transform: scale(1.02); }

.brand-icon {
  color: var(--sand);
  display: inline-flex;
  transition: transform 0.6s var(--ease-spring);
}

.brand:hover .brand-icon { transform: rotate(15deg) scale(1.1); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--emerald-dark);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--emerald-dark);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-list a:hover, .nav-list a.active { color: var(--emerald-dark); }

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  background: var(--sand);
  border-radius: 1px;
  width: 0;
  transition: width 0.3s var(--ease-out);
}

.nav-list a.active::after { width: 100%; }
.nav-list a:hover::after { width: 100%; }

.nav-list a.cta {
  background: var(--emerald);
  color: var(--paper);
  padding: 10px 22px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.nav-list a.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sand), var(--emerald-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-list a.cta:hover {
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-list a.cta:hover::before { opacity: 1; }

.nav-list a.cta::after { display: none; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--emerald);
  color: var(--paper);
  border-color: var(--emerald);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--emerald-dark);
  border-color: var(--emerald-dark);
}

.btn-ghost:hover {
  background: var(--emerald-dark);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--emerald);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--emerald);
  background: var(--paper);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(149, 213, 178, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(244, 162, 97, 0.25) 0%, transparent 50%);
  z-index: 0;
  animation: heroFloat 14s ease-in-out infinite;
}

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

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin: 0 0 20px;
}

.hero h1 {
  margin-bottom: 24px;
  animation: heroTitleIn 1.2s var(--ease-out) both;
}

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .lede {
  animation: heroTitleIn 1.2s var(--ease-out) 0.15s both;
}

.hero .hero-cta {
  animation: heroTitleIn 1.2s var(--ease-out) 0.3s both;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
}

.lede strong { color: var(--emerald-dark); font-weight: 600; }

.lede-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  margin: 0;
  position: relative;
  animation: heroImageIn 1.4s var(--ease-out) 0.2s both;
}

@keyframes heroImageIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.6s var(--ease-out);
}

.hero-image:hover img { transform: scale(1.02); }

.hero-image::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--sand);
  border-radius: 50%;
  opacity: 0.25;
  z-index: -1;
  animation: blob1 8s ease-in-out infinite;
}

.hero-image::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  background: var(--emerald-light);
  border-radius: 50%;
  opacity: 0.4;
  z-index: -1;
  animation: blob2 10s ease-in-out infinite;
}

@keyframes blob1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 15px); }
}

@keyframes blob2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

.hero-caption {
  margin-top: 16px;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  color: var(--ink-muted);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 96px 0;
  position: relative;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin: 0 0 16px;
}

.section-eyebrow.light { color: rgba(254, 250, 224, 0.7); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 { margin-bottom: 16px; }

.section-mission {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-mission h2 { margin-bottom: 28px; }

/* ============================================================
   Impact gallery
   ============================================================ */

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

.impact-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.impact-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--emerald-dark);
  margin: 0;
  box-shadow: var(--shadow-md);
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
  filter: brightness(0.85);
}

.impact-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.95);
}

.impact-card-tall { min-height: 540px; }

.impact-card-tall img,
.impact-stack .impact-card img {
  position: absolute;
  inset: 0;
}

.impact-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.impact-stack .impact-card { min-height: 258px; }

.impact-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, transparent 30%, rgba(27, 67, 50, 0.92) 100%);
  color: var(--cream);
  z-index: 2;
  transition: background 0.5s ease;
}

.impact-card:hover figcaption {
  background: linear-gradient(180deg, transparent 20%, rgba(27, 67, 50, 0.96) 100%);
}

.impact-card figcaption h3 {
  color: var(--cream);
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out);
}

.impact-card:hover figcaption h3 { transform: translateY(-4px); }

.impact-card figcaption p {
  color: rgba(254, 250, 224, 0.9);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.impact-note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-muted);
}

.impact-note a { color: var(--emerald); text-decoration: underline; }

/* ============================================================
   Programs
   ============================================================ */

.section-programs { background: var(--paper); }

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

.program-card {
  background: var(--bg);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--sand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-light);
}

.program-card:hover::before { transform: scaleX(1); }

.program-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald) 100%);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 12px;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}

.program-card:hover .program-icon {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
}

.program-card h3 {
  font-size: 1.3rem;
  color: var(--emerald-dark);
  margin-bottom: 12px;
}

.program-card p { flex: 1; margin-bottom: 20px; }

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sand-dark);
  transition: gap 0.3s var(--ease-out), color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover { gap: 12px; color: var(--emerald-dark); }

/* ============================================================
   Founder
   ============================================================ */

.section-founder { background: var(--cream); }

.founder-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.founder-text h2 { margin-bottom: 24px; }

.founder-text em {
  color: var(--emerald-dark);
  font-style: italic;
  font-weight: 500;
}

.founder-card {
  margin: 0;
  background: var(--paper);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

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

.founder-card::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  background: var(--sand);
  border-radius: 50%;
  opacity: 0.18;
  z-index: -1;
  transition: transform 0.6s var(--ease-out);
}

.founder-card:hover::before { transform: scale(1.15) translate(-5px, 5px); }

.founder-quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--emerald);
}

.founder-quote blockquote { margin: 0; border: 0; padding: 0; }

.founder-quote blockquote p {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--emerald-dark);
  margin-bottom: 20px;
}

.founder-quote cite {
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sand-dark);
}

.founder-quote cite::before { content: "— "; }

/* ============================================================
   CTA
   ============================================================ */

.section-cta {
  background: var(--emerald-dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(244, 162, 97, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(149, 213, 178, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: heroFloat 18s ease-in-out infinite reverse;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-banner h2 { color: var(--cream); margin-bottom: 16px; }

.cta-banner p {
  color: rgba(254, 250, 224, 0.85);
  margin: 0;
  font-size: 1.05rem;
  max-width: 560px;
}

.section-cta .btn-primary {
  background: var(--sand);
  color: var(--emerald-dark);
  border-color: var(--sand);
}

.section-cta .btn-primary:hover {
  background: var(--sand-dark);
  border-color: var(--sand-dark);
  color: var(--paper);
}

/* ============================================================
   Page hero
   ============================================================ */

.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  padding: 80px 0 64px;
  text-align: center;
}

.page-hero h1 { margin: 0 auto 20px; max-width: 800px; }
.page-hero .lede { max-width: 720px; margin: 0 auto; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--emerald-dark);
  color: rgba(254, 250, 224, 0.7);
  padding: 72px 0 0;
  margin-top: 0;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  align-items: start;
}

.site-footer h4 {
  color: var(--cream);
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.site-footer p, .site-footer li {
  color: rgba(254, 250, 224, 0.65);
  font-size: 0.93rem;
}

.site-footer a {
  color: rgba(254, 250, 224, 0.8);
  transition: color 0.2s ease, padding-left 0.3s var(--ease-out);
}

.site-footer a:hover { color: var(--sand); padding-left: 4px; }

.footer-brand .brand-icon {
  display: inline-flex;
  color: var(--sand);
  margin-bottom: 14px;
}

.footer-name {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.2rem;
  margin: 4px 0 8px;
}

.footer-tag {
  font-size: 0.88rem;
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}

.footer-nav ul, .footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p { margin: 0 0 12px; line-height: 1.5; }

.footer-credit {
  margin-top: 18px;
  font-size: 0.78rem;
  color: rgba(254, 250, 224, 0.4);
  letter-spacing: 0.05em;
}

.footer-bottom {
  border-top: 1px solid rgba(254, 250, 224, 0.12);
  padding: 24px 0;
  background: var(--emerald-dark);
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
  color: rgba(254, 250, 224, 0.5);
}

/* ============================================================
   Detalle programa
   ============================================================ */

.program-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.program-detail:last-of-type { border-bottom: 0; }

.program-detail .program-icon { margin-bottom: 0; }

.program-detail-header h2 { margin: 24px 0 8px; }

.program-detail-content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.program-detail-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.program-detail-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.program-detail-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--sand-dark);
  font-weight: 700;
}

/* ============================================================
   Valores
   ============================================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  padding: 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--sand);
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.value-card h3 {
  color: var(--emerald-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.value-card p { margin: 0; font-size: 0.95rem; }

/* ============================================================
   Empty state
   ============================================================ */

.empty-state {
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
}

.empty-state h2 { margin-bottom: 16px; }
.empty-state p { margin-bottom: 28px; }

/* ============================================================
   Contacto
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.contact-form-wrap {
  background: var(--paper);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--emerald-dark);
}

.form-field label span { color: var(--sand-dark); margin-left: 2px; }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: all 0.25s var(--ease-out);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
  transform: translateY(-1px);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.checkbox-field { flex-direction: row; align-items: flex-start; gap: 12px; }

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--emerald);
}

.checkbox-field label {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-note { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.contact-info {
  background: var(--cream);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  font-size: 1.1rem;
  color: var(--emerald-dark);
  margin-bottom: 16px;
}

.contact-block { margin: 0 0 16px; font-size: 0.93rem; line-height: 1.6; }

.contact-block strong {
  display: block;
  color: var(--emerald-dark);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ============================================================
   Legal
   ============================================================ */

.legal-article h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 36px 0 12px;
  color: var(--emerald-dark);
}

.legal-article h2:first-of-type { margin-top: 0; }
.legal-article p { line-height: 1.75; margin-bottom: 16px; }
.legal-article ul { padding-left: 24px; }
.legal-article ul li { margin-bottom: 8px; color: var(--ink-soft); }

.legal-update {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ============================================================
   Scroll progress indicator
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--sand));
  z-index: 200;
  width: 0;
  transition: width 0.1s linear;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .hero-grid, .founder-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-image { max-width: 520px; margin: 0 auto; }
  .founder-card { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 960px) {
  .impact-gallery { grid-template-columns: 1fr; }
  .impact-card-tall { min-height: 380px; }
  .impact-stack { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .impact-stack .impact-card { min-height: 220px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-sidebar { position: static; }
  .program-detail { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .cta-banner p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .contact-form-wrap, .founder-card { padding: 32px 24px; }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    animation: slideDown 0.3s var(--ease-out);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-list li:last-child a { border: 0; }
  .nav-list a.cta { margin-top: 8px; text-align: center; padding: 14px 22px; }
  .nav-list a::after { display: none; }

  .header-inner { padding: 14px 20px; }
  .brand-sub { display: none; }

  .section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .impact-stack { grid-template-columns: 1fr; gap: 16px; }
  .impact-card-tall { min-height: 320px; }
  .impact-stack .impact-card { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .site-footer { padding: 56px 0 0; }
  .container, .container-narrow { padding: 0 20px; }
  body { font-size: 16px; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 22px; font-size: 0.92rem; }
  .btn-large { padding: 14px 28px; font-size: 0.98rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (hover: none) {
  /* Desactivar efectos hover en touch devices */
  .program-card:hover,
  .impact-card:hover,
  .value-card:hover,
  .founder-card:hover { transform: none; }
  .program-card:hover .program-icon { transform: none; }
  .impact-card:hover img { transform: none; filter: brightness(0.85); }
}

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

::selection {
  background: var(--sand);
  color: var(--paper);
}
