/* Fundación Yaya — estilos */
:root {
  /* Colores tomados del logo de Fundación Yaya */
  --blue: #0e80bc;        /* azul del logo */
  --blue-dark: #0a6596;
  --leaf: #0b904e;        /* verde del logo */
  --leaf-light: #7fd3a2;  /* verde claro para fondos oscuros */
  --brown: #8a684c;       /* marrón dorado del texto del logo */
  --brown-dark: #5e4532;
  --navy: #0a4366;        /* azul profundo para secciones oscuras */
  --navy-deep: #07304a;
  --cream: #fbf8f3;       /* fondo del logo */
  --sand: #f1eadf;
  --ink: #2a221b;
  --muted: #62574c;
  --line: #e4d9c9;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(35, 31, 27, .10);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--brown-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

/* Barra superior */
.topbar { background: var(--navy-deep); color: #e9e2d4; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.header__in { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
/* Logo (mismo estilo del logo oficial) */
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand__mark { width: 46px; height: 22px; display: block; margin-bottom: 4px; }
.brand__name { font-family: "Marcellus", Georgia, serif; font-size: 1.45rem; letter-spacing: .02em; color: var(--brown); font-variant: small-caps; white-space: nowrap; }
.brand__tag { font-family: "Marcellus", Georgia, serif; font-size: .82rem; color: var(--brown); margin-top: 3px; }
.brand--light .brand__name, .brand--light .brand__tag { color: #e6d3bf; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff !important; font-weight: 800;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 2px solid var(--blue);
  font-family: inherit; font-size: 1rem; cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--blue) !important; border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff !important; border-color: var(--blue); }
.btn--light { background: #fff; color: var(--blue-dark) !important; border-color: #fff; }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800; color: var(--leaf); margin-bottom: .8em; }
.eyebrow--light { color: var(--leaf-light); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* Fotos con espacio de reemplazo */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing img { display: none; }
.photo.is-missing {
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(14, 128, 188, .06) 14px 28px),
    linear-gradient(160deg, var(--sand), #e9dfcf);
  border: 2px dashed #cdbba3;
}
.photo.is-missing::after {
  content: "📷  " attr(data-label);
  color: var(--muted); font-weight: 700; font-size: .95rem; padding: 0 20px;
}

/* Portada */
.hero { padding: 64px 0 80px; background: radial-gradient(1200px 500px at 85% 0%, #d7ecf8 0%, transparent 60%); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__photo { aspect-ratio: 5 / 4; box-shadow: var(--shadow); transform: rotate(1.2deg); }

/* Secciones */
.section { padding: 96px 0; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--navy); color: #e9efe9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head--mt { margin-top: 96px; }

/* Programas */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.program { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.program .photo { border-radius: 0; aspect-ratio: 16 / 11; }
.program .photo.is-missing { border-width: 0 0 2px; }
.program__body { padding: 26px 26px 30px; }
.program ul { margin: 0; padding: 0; list-style: none; }
.program li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); font-size: .97rem; color: var(--muted); }
.program li:first-child { border-top: 0; }
.program li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.program strong { color: var(--ink); }

/* Quiénes somos */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding: 8px 0 8px 36px; position: relative; font-weight: 700; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font-size: .8rem; }

/* Actividades */
.activity { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.activity__photo { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.activity__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 20px 14px;
  background: linear-gradient(transparent, rgba(7, 48, 74, .85)); color: #fff; font-size: .9rem; font-weight: 600;
}
.activity__photo.is-missing figcaption { display: none; }
.activity__quote {
  margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--leaf);
  font-family: "Marcellus", Georgia, serif; font-size: 1.45rem; color: var(--brown);
}
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #e3f1fa; color: var(--blue-dark); font-weight: 700; font-size: .88rem; padding: 7px 14px; border-radius: 999px; }
.activity__cta { color: var(--muted); font-size: .97rem; margin: 0; }
.activity__cta a { font-weight: 800; }

/* Donaciones */
.donate {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #2a9fd8 100%);
  color: #fff; border-radius: 28px; padding: 56px; box-shadow: var(--shadow);
}
.donate h2 { color: #fff; }
.donate__accept { background: rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; }
.donate__accept h3 { color: #fff; }
.accept { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.accept li { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px; font-weight: 800; display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.accept .ic { font-size: 1.3rem; }

.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.reason { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.reason__n { font-family: var(--font-head); font-size: 2rem; color: var(--leaf); font-weight: 700; display: block; margin-bottom: 8px; }
.reason p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Impacto */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-top: 3px solid var(--leaf-light); padding-top: 18px; }
.stat__n { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; font-weight: 700; line-height: 1.1; }
.stat__n small { font-size: .55em; color: var(--leaf-light); margin-left: 4px; }
.stat > span:last-child { color: #c9d8cf; font-weight: 600; }
.testi-title { margin-top: 80px; }
.testis { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testi { margin: 0; background: var(--navy-deep); border-radius: var(--radius); padding: 32px; }
.testi p { font-family: var(--font-head); font-size: 1.3rem; color: #fff; line-height: 1.4; }
.testi footer { color: var(--leaf-light); font-weight: 700; }

/* Contacto */
.split--form { align-items: start; }
.contact { list-style: none; padding: 0; margin: 28px 0; }
.contact li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.contact a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact a:hover { color: var(--blue); }
.social { display: flex; gap: 12px; }
.social a { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; transition: background .2s, transform .2s; }
.social a:hover { background: var(--blue); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; fill: #fff; }

.form { background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.form em { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.form .is-invalid { border-color: #c0392b; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__msg { margin: 14px 0 0; font-weight: 700; min-height: 1.4em; }
.form__msg.ok { color: var(--leaf); }
.form__msg.err { color: #b03a2e; }
.hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Pie */
.footer { background: var(--ink); color: #cfc6b8; padding: 64px 0 0; font-size: .95rem; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { display: inline-flex; padding: 0; margin-bottom: 16px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer a { display: block; color: #cfc6b8; text-decoration: none; padding: 3px 0; }
.footer a:hover { color: var(--leaf-light); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #3a342e; padding: 20px 0; font-size: .85rem; color: #9b9183; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsivo */
@media (max-width: 1000px) {
  .programs { grid-template-columns: 1fr 1fr; }
  .reasons, .stats { grid-template-columns: 1fr 1fr; }
  .donate { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; border-bottom: 0; }
  .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); }
  .hero__in, .split, .activity { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { transform: none; }
  .split__photo { aspect-ratio: 4 / 3; }
  .testis { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__in span { display: none; }
  .topbar__in { justify-content: center; }
  .section { padding: 72px 0; }
  .section__head--mt { margin-top: 72px; }
  .programs, .reasons { grid-template-columns: 1fr; }
  .donate { padding: 30px 22px; border-radius: 22px; }
  .accept { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__in { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.25rem; }
}
