/* =========================================================
   Fundación Familia, Paz y Bienestar (FAPABI)
   Hoja de estilos principal
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Marca */
  --magenta: #c2178c;
  --magenta-600: #a8127a;
  --purple: #6a2f8e;
  --purple-700: #4a2472;
  --purple-900: #331a52;
  --blue: #5b63c4;
  --blue-600: #4d55b6;

  /* Texto */
  --ink: #2b2340;
  --ink-soft: #5f5876;
  --ink-muted: #857f97;

  /* Superficies */
  --bg: #ffffff;
  --bg-alt: #f8f5fc;
  --bg-lav: #f3eefb;
  --card: #ffffff;
  --line: #ece7f4;
  --line-strong: #ddd4ec;

  /* Gradientes */
  --grad-brand: linear-gradient(120deg, var(--magenta) 0%, var(--purple) 50%, var(--blue) 100%);
  --grad-band: linear-gradient(135deg, #3a1f66 0%, #5a2b86 55%, #7a2f90 100%);
  --grad-cta: linear-gradient(120deg, #c2178c 0%, #7a2f90 48%, #5b63c4 100%);

  /* Forma */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombra */
  --sh-sm: 0 2px 8px rgba(51, 26, 82, .06);
  --sh-md: 0 10px 30px rgba(51, 26, 82, .10);
  --sh-lg: 0 24px 60px rgba(51, 26, 82, .16);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 76px;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--purple-700); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--magenta);
}
.eyebrow svg { width: 18px; height: 18px; }
.text-magenta { color: var(--magenta); }
.text-blue { color: var(--blue); }
.text-ink { color: var(--ink); }
.text-purple { color: var(--purple); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.section-head .rule { width: 66px; height: 4px; border-radius: 4px; background: var(--grad-brand); margin: 1.1rem auto 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill); font-weight: 800; font-size: .98rem;
  border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-height: 48px; text-align: center;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--purple-700); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--purple-900); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-magenta { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(194, 23, 140, .28); }
.btn-magenta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(194, 23, 140, .36); }
.btn-outline { background: transparent; color: var(--purple-700); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--magenta); color: var(--magenta); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--purple-700); box-shadow: var(--sh-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav__links a { font-weight: 700; color: var(--ink-soft); font-size: .98rem; position: relative; padding: .4rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--magenta); border-radius: 2px; transition: width .25s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after, .nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: .7rem; }
.nav__cta .btn { padding: .6rem 1.15rem; min-height: 44px; font-size: .92rem; }
.nav__toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: #fff; align-items: center; justify-content: center; color: var(--purple-700);
}
.nav__toggle svg { width: 24px; height: 24px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.06; margin: 1rem 0 1.2rem;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__meta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; color: var(--ink-muted); font-weight: 700; font-size: .92rem; }
.hero__meta svg { width: 18px; height: 18px; color: var(--magenta); }

.hero__media { position: relative; }
.hero__media img.hero__photo {
  width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  object-fit: cover; aspect-ratio: 4 / 5;
}
.hero__badge {
  position: absolute; right: -12px; bottom: 34px; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 1rem 1.15rem; display: flex; align-items: center; gap: .8rem;
  max-width: 260px; border: 1px solid var(--line);
}
.hero__badge img { width: 42px; height: 42px; }
.hero__badge p { font-weight: 800; font-size: .92rem; line-height: 1.35; color: var(--ink); }
.hero__badge span { color: var(--magenta); }

/* Figuras decorativas: logo difuminado e inclinado */
.hero__figure { position: absolute; z-index: -1; filter: blur(5px); opacity: .16; pointer-events: none; height: auto; }
.hero__figure--1 { width: clamp(200px, 26vw, 360px); top: -50px; left: -90px; transform: rotate(-18deg); }
.hero__figure--2 { width: clamp(170px, 22vw, 300px); bottom: 40px; right: -60px; transform: rotate(15deg); }

/* =========================================================
   Stats
   ========================================================= */
.stats { margin-top: -1rem; }
.stats__card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  box-shadow: var(--sh-sm);
}
.stat { display: flex; align-items: center; gap: .9rem; }
.stat + .stat { border-left: 1px solid var(--line-strong); padding-left: 1rem; }
.stat__icon {
  flex: none; width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: #fff; color: var(--magenta); box-shadow: var(--sh-sm);
}
.stat__icon svg { width: 24px; height: 24px; }
.stat > span:last-child { min-width: 0; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.stat__label { font-size: .9rem; color: var(--ink-soft); font-weight: 600; overflow-wrap: anywhere; }

/* =========================================================
   Modelo (3 tarjetas)
   ========================================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.7rem; box-shadow: var(--sh-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pillar__icon {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--bg-lav); color: var(--purple);
}
.pillar__icon svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.pillar p { color: var(--ink-soft); font-size: .98rem; }
.pillar:nth-child(2) .pillar__icon { color: var(--magenta); background: #fbe9f5; }
.pillar:nth-child(3) .pillar__icon { color: var(--blue); background: #eceefb; }

/* =========================================================
   Programas / Acciones
   ========================================================= */
.acciones { background: var(--bg-alt); position: relative; }
.section-wave {
  position: absolute; top: -1px; left: 0; width: 100%; height: clamp(50px, 7vw, 95px);
  display: block; pointer-events: none; z-index: 0;
}
.section-wave--bottom { top: auto; bottom: -1px; transform: rotate(180deg); }
.acciones > .container { position: relative; z-index: 1; }

/* Más aire entre las ondas y el contenido */
.acciones, .equipo { padding-top: clamp(5.5rem, 10vw, 8.5rem); }
.proceso, .cta { padding-block: clamp(5.5rem, 10vw, 8.5rem); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prog {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.prog:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.prog__media { aspect-ratio: 16 / 11; overflow: hidden; }
.prog__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prog:hover .prog__media img { transform: scale(1.05); }
.prog__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.prog__body h3 { font-size: 1.18rem; }
.prog__body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.prog__more {
  align-self: flex-start; margin-top: .5rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem 0; background: none; border: none; color: var(--magenta); font-weight: 800; font-size: .95rem;
  letter-spacing: .01em; position: relative;
}
.prog__more::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--magenta); border-radius: 2px; transition: width .25s ease;
}
.prog__more:hover::after, .prog__more:focus-visible::after { width: calc(100% - 26px); }
.prog__more svg { width: 18px; height: 18px; transition: transform .25s ease; }
.prog__more:hover svg, .prog__more:focus-visible svg { transform: translateX(4px); }

/* Fila inferior: tarjetas horizontales (imagen + texto) */
.prog--wide { grid-column: span 3; flex-direction: row; }
.prog--wide .prog__media { flex: 0 0 44%; aspect-ratio: auto; }
.prog--wide .prog__body { justify-content: center; }
.prog-grid--split { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
.prog-grid--split .prog--wide { grid-column: auto; }

/* =========================================================
   Proceso (banda púrpura)
   ========================================================= */
.proceso { background: var(--grad-band); color: #fff; position: relative; overflow: hidden; }
.proceso > .container { position: relative; z-index: 1; }
.proceso__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.proceso h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.proceso h2 em { font-style: italic; color: #f4a8dd; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { text-align: left; }
.step__icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .9rem;
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
}
.step__icon svg { width: 26px; height: 26px; }
.step h3 { color: #fff; font-size: 1.08rem; margin-bottom: .4rem; }
.step p { color: rgba(255, 255, 255, .82); font-size: .92rem; }
.proceso__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); aspect-ratio: 1/1; object-fit: cover; }

/* =========================================================
   Historia
   ========================================================= */
.historia__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.historia__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-md); aspect-ratio: 4/5; object-fit: cover; }
.historia__body h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .9rem 0 1.1rem; }
.historia__body p { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 54ch; }

/* =========================================================
   Equipo
   ========================================================= */
.equipo { background: var(--bg-alt); position: relative; }
.equipo > .container { position: relative; z-index: 1; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.member { text-align: center; }
.member__photo {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1rem;
  box-shadow: var(--sh-sm);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.02rem; line-height: 1.25; }
.member__role { color: var(--magenta); font-weight: 800; font-size: .88rem; margin-top: .3rem; }
.member__area { color: var(--ink-soft); font-size: .84rem; margin-top: .2rem; }

/* =========================================================
   CTA final
   ========================================================= */
.cta { background: var(--grad-cta); color: #fff; position: relative; overflow: hidden; }
.cta > .container { position: relative; z-index: 1; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta__icon { flex: none; width: 64px; height: 64px; }
.cta__text { flex: 1; min-width: 260px; }
.cta__text h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.cta__text p { color: rgba(255, 255, 255, .9); margin-top: .5rem; }
.cta__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* =========================================================
   Modal de programas
   ========================================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(51, 26, 82, .55);
  backdrop-filter: blur(3px); animation: fade .25s ease;
}
.modal__dialog {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: 90vh; overflow: auto;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  animation: pop .28s cubic-bezier(.2, .8, .3, 1);
}
.modal__media { min-height: 100%; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(1.6rem, 3vw, 2.2rem); }
.modal__body h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .5rem 0 1rem; }
.modal__body #modalContent p { color: var(--ink-soft); font-size: .97rem; margin-bottom: .9rem; }
.modal__body #modalContent p:last-child { margin-bottom: 0; }
.modal__close {
  position: absolute; top: .85rem; right: .85rem; z-index: 2; width: 42px; height: 42px;
  border-radius: 50%; border: none; background: rgba(255, 255, 255, .9); color: var(--purple-700);
  display: grid; place-items: center; box-shadow: var(--sh-sm); transition: background .2s ease, transform .2s ease;
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }
.modal__close svg { width: 22px; height: 22px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__dialog { animation: none; }
}
/* Variante apilada: imagen arriba, texto abajo (usada en el popup de historia) */
.modal.is-stacked .modal__dialog { grid-template-columns: 1fr; }
.modal.is-stacked .modal__media { max-height: 300px; }

@media (max-width: 620px) {
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__media { max-height: 210px; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--purple-900); color: rgba(255, 255, 255, .8); padding-block: clamp(3.4rem, 7vw, 4.6rem) 1.6rem; position: relative; overflow: hidden; }
.footer > .container { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer__logo img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer p { font-size: .94rem; line-height: 1.6; max-width: 40ch; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__list li { margin-bottom: .7rem; }
.footer__list a, .footer__contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .94rem; }
.footer__contact li { margin-bottom: .7rem; }
.footer__list a:hover { color: #fff; }
.footer svg { width: 18px; height: 18px; flex: none; color: var(--magenta); margin-top: 2px; }
.footer__bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: rgba(255, 255, 255, .6);
}

/* =========================================================
   Animaciones de entrada (IntersectionObserver)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--fade { transform: none; transition-duration: .8s; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; margin-inline: auto; }
  .proceso__grid, .historia__grid { grid-template-columns: 1fr; }
  .historia__media { max-width: 420px; }
  .cards-3, .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 2.4rem; }
  .footer p { max-width: 48ch; margin-inline: auto; }
  .footer__logo { display: flex; justify-content: center; }
  .footer__contact li, .footer__list a { justify-content: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .nav__toggle { display: inline-flex; }
  .nav__logo { margin-right: auto; }
  .nav__links, .nav__cta { display: none; }
  .site-header.is-open .nav { height: auto; flex-wrap: wrap; padding-bottom: 1rem; }
  .site-header.is-open .nav__links {
    display: flex; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    margin-left: 0; margin-top: .5rem; border-top: 1px solid var(--line);
  }
  .site-header.is-open .nav__links a { padding: .95rem .2rem; border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav__cta {
    display: flex; order: 4; flex-basis: 100%; flex-direction: column; gap: .7rem; margin-top: .9rem;
  }
  .site-header.is-open .nav__cta .btn { width: 100%; }
  .stats__card { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .stat__num { font-size: 1.2rem; }
  .stat { gap: .65rem; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(2) { border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .prog--wide { flex-direction: column; }
  .prog--wide .prog__media { flex: auto; aspect-ratio: 16/11; }
  .prog-grid--split { grid-template-columns: 1fr; }

  /* Contenido centrado en móvil */
  .hero__content, .historia__body, .proceso, .step, .pillar, .prog__body { text-align: center; }
  .hero__actions, .hero__meta, .eyebrow, .steps { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .historia__body p { margin-inline: auto; }
  .pillar__icon, .step__icon { margin-inline: auto; }
  .prog__link { align-self: center; }
  .cta__inner { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 560px) {
  .cards-3, .prog-grid { grid-template-columns: 1fr; }

  /* Equipo como carrusel horizontal automático */
  .team-grid {
    display: flex; grid-template-columns: none; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .4rem;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .member { flex: 0 0 74%; scroll-snap-align: center; }
  .team-grid .member.reveal { opacity: 1; transform: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .hero__badge { position: static; margin: 1rem auto 0; max-width: none; }
  .cta__inner { flex-direction: column; text-align: center; align-items: center; }
}
