/* Fundación Vuelve a Caminar — estilos del sitio.
   Paleta tomada del sitio anterior (turquesa #2997AA / #3AA6B9, bruma #E9F8F9) y
   oscurecida donde hace falta para cumplir contraste AA; el ámbar es el acento nuevo
   (el amanecer de "volver a empezar") y se reserva para donar y para la firma del hero.
   El sitio se deja fijo en tono claro. */

:root {
  --ink: #0E3B43;
  --teal: #1F7F90;
  --teal-hover: #186A78;
  --teal-bright: #3AA6B9;
  --mist: #E9F8F9;
  --mist-2: #CAE6E8;
  --amber: #F2A93B;
  --amber-hover: #E0952A;
  --paper: #FFFFFF;
  --text: #22343A;
  --muted: #4F6369;
  --line: #D7E7E9;
  --danger: #A8321F;

  --font-display: 'Bricolage Grotesque', 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-voice: 'Lora', Georgia, serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -24px rgba(14, 59, 67, 0.35);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-hover); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* Frase con la voz de la fundación: la serif itálica del sitio anterior */
.voice {
  font-family: var(--font-voice);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.lead { font-size: 1.25rem; color: var(--muted); max-width: 62ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.8rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1.02rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-donate { background: var(--amber); color: var(--ink); }
.btn-donate:hover { background: var(--amber-hover); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.brand-text strong { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }

.main-nav { display: flex; gap: 1.75rem; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.header-actions { display: flex; gap: 0.6rem; }
.header-actions .btn { min-height: 46px; padding: 0.55rem 1.25rem; font-size: 0.96rem; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-panel { display: none; }

@media (max-width: 1020px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel {
    display: block; position: fixed; inset: 78px 0 0 0; z-index: 99;
    background: #fff; padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .mobile-panel.open { transform: none; visibility: visible; }
  .mobile-panel a.m-link {
    display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none;
  }
  .mobile-panel a.m-link[aria-current="page"] { color: var(--teal); }
  .mobile-panel .btn { width: 100%; margin-top: 1rem; }
}

/* ---------- Hero (firma: el titular sube en escalones) ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.steps-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 2rem;
}
.steps-title .step { display: block; position: relative; width: max-content; max-width: 100%; }
.steps-title .step:nth-child(2) { margin-left: 0.6em; }
.steps-title .step:nth-child(3) { margin-left: 1.2em; }
.steps-title .step:nth-child(4) { margin-left: 1.8em; color: var(--teal); }
/* Peldaño bajo cada línea: la escalera se lee aunque no haya animación */
.steps-title .step::after {
  content: ''; position: absolute; left: 0; right: -0.3em; bottom: -0.04em;
  height: 0.1em; border-radius: 99px; background: var(--mist-2);
}
.steps-title .step:nth-child(4)::after { background: var(--amber); }

.hero-copy .lead { margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-photo { position: relative; justify-self: end; width: min(440px, 100%); }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.hero-photo::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--mist);
}
.hero-photo figcaption {
  position: absolute; left: -1.5rem; bottom: 2rem; max-width: 15rem;
  background: #fff; border-radius: var(--radius-md); padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow); font-size: 0.95rem; line-height: 1.4; color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .js .steps-title .step { opacity: 0; transform: translateY(0.35em); animation: step-up .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .steps-title .step:nth-child(1) { animation-delay: .05s; }
  .js .steps-title .step:nth-child(2) { animation-delay: .22s; }
  .js .steps-title .step:nth-child(3) { animation-delay: .39s; }
  .js .steps-title .step:nth-child(4) { animation-delay: .56s; }
  @keyframes step-up { to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; width: min(360px, 88%); margin-top: 1rem; }
  .hero-photo figcaption { left: -0.75rem; }
}

/* ---------- Encabezado de páginas internas ---------- */
.page-head { background: var(--mist); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.4em; }
.page-head .lead { color: var(--text); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #DCEFF1; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: var(--amber); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.split .tall { aspect-ratio: 4 / 5; width: 100%; max-width: 480px; justify-self: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.statement { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.3; margin: 0 0 1.5rem; }

/* "Cómo lo hacemos posible": lista de pasos (sin numerar: no es un orden) */
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.paths li {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
  padding: 1.2rem 0; border-top: 1px solid var(--line);
}
.paths li:last-child { border-bottom: 1px solid var(--line); }
.paths svg { width: 30px; height: 30px; color: var(--teal); margin-top: 2px; }
.paths strong { color: var(--ink); }

/* Tarjetas de programas y servicios */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column;
}
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mist); color: var(--teal); margin-bottom: 1.2rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Banda de voluntariado */
.volunteer { position: relative; overflow: hidden; }
.volunteer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.volunteer img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.volunteer .big { font-family: var(--font-voice); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: #fff; line-height: 1.35; }
@media (max-width: 860px) { .volunteer-grid { grid-template-columns: 1fr; } }

/* Aliados (se muestra solo si hay aliados en js/config.js) */
.allies-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 1.25rem; padding: 0; margin: 0; }
.allies-list li { list-style: none; }
.allies-list a { text-decoration: none; display: block; height: 100%; }
.ally {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  height: 100%; min-height: 190px; padding: 1.75rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.allies-list a:hover .ally { border-color: var(--teal-bright); box-shadow: var(--shadow); }
.ally img { height: 72px; max-width: 220px; width: auto; object-fit: contain; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.75rem; }
.member img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: 999px 999px var(--radius-md) var(--radius-md); background: var(--mist);
  margin-bottom: 1.1rem;
}
.member h3 { margin-bottom: 0.3rem; }
.member p { color: var(--muted); font-size: 1rem; margin: 0; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pillar { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); border: 1px solid var(--line); }
.pillar .voice { font-size: 1.45rem; line-height: 1.35; display: block; margin-bottom: 1.2rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Llamado final */
.cta-band { background: var(--teal); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.75rem); display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 0.3rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { margin: 0; color: #E3F4F6; max-width: 52ch; }

/* ---------- Donaciones ---------- */
.donate { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.donate-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.donate-card legend { font-weight: 800; color: var(--ink); margin-bottom: 0.8rem; padding: 0; }
.donate-card fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.amount {
  min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--ink); cursor: pointer;
}
.amount[aria-pressed="true"] { border-color: var(--teal); background: var(--mist); }
.amount-other { display: flex; align-items: center; gap: 0.5rem; border: 2px solid var(--line); border-radius: 12px; padding: 0 1rem; min-height: 52px; margin-bottom: 1rem; }
.amount-other:focus-within { border-color: var(--teal); }
.amount-other input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; font-weight: 700; color: var(--ink); background: transparent; }
.donate-card .btn { width: 100%; }
.donate-note { font-size: 0.88rem; color: var(--muted); margin: 0.9rem 0 0; }
.form-error { color: var(--danger); font-weight: 700; font-size: 0.95rem; margin: 0.6rem 0 0; }
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #BFD9DD; padding: 4.5rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #E6F4F6; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-family: var(--font-body); color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1.1rem; }
.footer-brand .brand-text small { color: var(--amber); }
.footer-legal { font-size: 0.92rem; line-height: 1.7; }
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.08); }
.socials a:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Dato pendiente de confirmar con la fundación (solo debe verse en UAT) */
.pendiente { background: #FFF3CD; color: #6B4E00; border-radius: 4px; padding: 0 4px; font-style: normal; }

/* ---------- Botones flotantes (mismo patrón que el sitio de la Fundación Colombia Productiva) ---------- */
.float-btn {
  position: fixed; right: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.06); }
.float-whatsapp { bottom: 22px; background: #25D366; color: #fff; }
.float-whatsapp:hover { color: #fff; }
.float-donate { bottom: 92px; background: var(--amber); color: var(--ink); }
.float-donate:hover { color: var(--ink); }
.float-btn svg { width: 28px; height: 28px; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; padding: clamp(3rem, 6vw, 5rem) 0; }
.legal h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.5rem; }
.legal-updated { color: var(--muted); }

/* ---------- Página de resultado / 404 ---------- */
.result { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.result .icon-big { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; background: var(--mist); color: var(--teal); }
.result .icon-big svg { width: 38px; height: 38px; }
.result .lead { margin-inline: auto; }
