/* ============================================================
   Afrocuidadores del Territorio de Bogotá — hoja de estilos única
   Diseño fiel al boceto (Readdy): verde bosque, terracota, azul noche.
   ============================================================ */
:root {
  --green: #2d5016;
  --green-dark: #1d3510;
  --sage: #4a7c59;
  --terracotta: #d4773b;
  --terracotta-dark: #b9622b;
  --navy: #1a2332;
  --peach: #e8b4a0;
  --pink: #e91e63;
  --ink: #2c2c2c;
  --muted: #4b5563;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --mint: #edf1ed;
  --black: #0d0d0d;
  --ffb: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ffh: 'Playfair Display', Georgia, serif;
  --radius: 28px;
  --wrap: 1232px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ffb); color: var(--ink); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--green); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
i[data-i] { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
i[data-i] svg { width: 100%; height: 100%; }

/* ───────── Navegación ───────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.25rem; }
.brand img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, .92); font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { border-color: var(--terracotta); }
.nav.solid, .nav.scrolled { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 12px rgba(0, 0, 0, .08); }
.nav.solid .brand, .nav.scrolled .brand { color: var(--green); }
.nav.solid .nav-links a, .nav.scrolled .nav-links a { color: var(--navy); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav.solid .nav-toggle, .nav.scrolled .nav-toggle { color: var(--green); border-color: rgba(45, 80, 22, .35); background: transparent; }
.nav-toggle i { width: 24px; height: 24px; }

/* ───────── Botones ───────── */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 16px 20px 16px 32px; border-radius: 999px; border: none; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.btn .arrow i { width: 16px; height: 16px; }
.btn-primary { background: var(--terracotta); color: #1a1a1a; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-white { background: #fff; color: #000; }
.btn-green { background: var(--green); color: #fff; justify-content: center; padding: 16px 28px; width: 100%; }
.btn-green:hover { background: var(--green-dark); }
.btn-small { padding: 12px 18px 12px 24px; font-size: .92rem; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 35, 50, .78) 0%, rgba(26, 35, 50, .45) 55%, rgba(26, 35, 50, .25) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(237, 241, 237, .92); color: var(--green); padding: 10px 24px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; margin: 28px 0 36px; }
.hero h1 span { display: block; }
.hero-card { background: rgba(26, 35, 50, .82); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 40px; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.4; font-weight: 300; align-self: center; }

/* ───────── Secciones ───────── */
.section { padding: 96px 0; background: #fff; }
.section.alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .eyebrow { background: var(--mint); margin-bottom: 20px; }
.section-head h2, .h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.h2 em, .section-head h2 em { font-style: normal; color: var(--terracotta); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.page-head { background: linear-gradient(135deg, var(--navy), var(--green) 70%, var(--sage)); color: #fff; padding: 150px 0 72px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; }
.page-head p { margin: 14px auto 0; max-width: 640px; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 700; color: var(--green); text-decoration: none; }
.more:hover { color: var(--terracotta); }
.center { text-align: center; }

/* Quiénes somos */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2.serif { font-family: var(--ffh); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.1; color: var(--navy); margin-bottom: 40px; }
.about h2.serif span { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; }
.stat { text-align: center; padding: 0 12px; border-right: 1px solid var(--terracotta); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); color: var(--pink); font-weight: 800; line-height: 1.1; }
.stat span { font-size: .92rem; color: var(--muted); }
.about p { font-size: 1.12rem; line-height: 1.75; margin-bottom: 22px; color: #222; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: 0 30px 80px rgba(45, 80, 22, .18); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.principles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.principles span { background: var(--mint); color: var(--green); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .92rem; }

/* Programas (bento) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 384px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #fff; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, .16); }
.card.img { background-size: cover; background-position: center; }
.card.img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .78) 100%); }
.card > * { position: relative; }
.card h3 { font-size: 1.6rem; line-height: 1.2; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .98rem; opacity: .92; }
.card.plain { align-items: center; justify-content: center; text-align: center; }
.card.plain .ico { width: 56px; height: 56px; margin-bottom: 22px; color: var(--terracotta); }
.card.plain .ico i { width: 56px; height: 56px; }
.card.c-sage { background: var(--sage); }
.card.c-peach { background: var(--peach); color: var(--navy); }
.card.c-peach .ico { color: var(--green); }
.card.c-green { background: var(--green); min-height: 96px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; padding: 24px 32px; }
.card.c-green h3 { margin: 0; font-size: 1.15rem; }
.card.c-green .ico { width: 32px; height: 32px; color: #fff; }
.card.c-green .ico i { width: 32px; height: 32px; }
.card.c-terra { background: var(--terracotta); min-height: 96px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; padding: 24px 32px; }
.card.c-terra h3 { margin: 0; font-size: 1.15rem; }
.card.c-terra .ico { width: 32px; height: 32px; }
.card.c-terra .ico i { width: 32px; height: 32px; }
.card .tag { align-self: flex-start; background: var(--green); color: #fff; border-radius: 14px; padding: 14px 20px; display: inline-flex; gap: 12px; align-items: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 0; }
.bento .wide { grid-column: span 2; min-height: 320px; }
.bento .stack { display: grid; gap: 24px; align-content: start; }
.bento .stack .card { min-height: 148px; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.programs-grid .card { min-height: 360px; }

/* Voces (galería) */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice { border-radius: var(--radius); padding: 32px; background: var(--mint); display: flex; flex-direction: column; gap: 20px; }
.voice.peach { background: var(--peach); }
.voice .who { display: flex; align-items: center; gap: 16px; }
.voice .who img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--sage); flex: none; }
.voice .who b { display: block; color: var(--navy); }
.voice .who small { color: var(--muted); font-size: .9rem; }
.voice .q { font-family: var(--ffh); font-size: 3.2rem; line-height: .8; color: var(--terracotta); }
.voice blockquote { font-size: 1.12rem; line-height: 1.65; color: #222; }
.voice.photo { padding: 0; min-height: 440px; background-size: cover; background-position: center; justify-content: flex-end; color: #fff; position: relative; overflow: hidden; }
.voice.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .8)); }
.voice.photo > div { position: relative; padding: 32px; }
.voice.photo b { font-size: 1.3rem; display: block; }
.voice.photo small { opacity: .85; }
.voice.photo blockquote { color: #fff; margin-top: 12px; font-size: 1.05rem; }
.voice.wide { grid-column: span 2; min-height: 320px; }

/* Equipo y aliados */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.member .ph { aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--sage), var(--green)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3.4rem; font-weight: 800; margin-bottom: 20px; }
.member .ph { position: relative; }
.member .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member .ph img[hidden] { display: none; }
.member h3 { font-size: 1.2rem; color: var(--navy); }
.member p { color: var(--terracotta); font-size: .98rem; }
.allies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ally { background: var(--gray-50); border-radius: 22px; padding: 32px 20px; text-align: center; font-weight: 600; font-size: .95rem; color: var(--navy); }
.ally .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.section.alt .ally { background: #fff; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post { text-decoration: none; display: block; }
.post .thumb { aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--sage), var(--green)); margin-bottom: 20px; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .thumb img { transform: scale(1.05); }
.post .cat { color: var(--terracotta); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.post h3 { font-size: 1.35rem; line-height: 1.3; color: var(--navy); margin: 8px 0; }
.post .meta { color: #6b7280; font-size: .9rem; }
.post .read { color: var(--green); font-weight: 700; margin-top: 10px; display: inline-block; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; grid-column: 1 / -1; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.7rem; color: var(--navy); margin: 36px 0 12px; }
.article p { font-size: 1.12rem; line-height: 1.8; margin-bottom: 20px; color: #222; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin: 0 0 36px; aspect-ratio: 16 / 9; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article .meta { color: #6b7280; margin-bottom: 8px; }
.back { display: inline-flex; gap: 8px; color: var(--green); font-weight: 700; text-decoration: none; margin-bottom: 28px; }

/* CTA */
.cta { position: relative; min-height: 70vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.cta .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3)); }
.cta .wrap { position: relative; z-index: 2; }
.cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.05; text-transform: lowercase; margin-bottom: 36px; }
.cta p { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.5; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { margin-bottom: 16px; }
.contact .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }
.info { display: grid; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.info-row b { display: block; color: var(--navy); }
.info-row a, .info-row span { color: var(--terracotta); text-decoration: none; line-height: 1.5; white-space: pre-line; }
.info-row span.plain { color: var(--muted); }
.map { margin-top: 32px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--gray-100); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: var(--gray-50); border-radius: var(--radius); padding: 36px; }
.form h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: #222; }
.field input, .field textarea { width: 100%; border: 1px solid #d9dce1; border-radius: 12px; padding: 13px 16px; background: #fff; color: #111; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(74, 124, 89, .18); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { display: none; border-radius: 12px; padding: 12px 16px; font-size: .95rem; margin-bottom: 16px; }
.notice.show { display: block; }
.notice.ok { background: #e6f4ea; color: #1e6b34; }
.notice.err { background: #fdecea; color: #a12622; }
.count { text-align: right; font-size: .8rem; color: #9ca3af; margin-top: 4px; }

/* Footer */
.footer { background: var(--black); color: #fff; margin: 80px 24px 0; border-radius: 32px 32px 0 0; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 64px; }
.footer h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 300; line-height: 1.1; margin-bottom: 20px; }
.footer .sub { color: #b0b0b0; font-size: 1.1rem; margin-bottom: 28px; }
.news input { width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--terracotta); color: #fff; padding: 14px 0; font-size: 1.15rem; outline: none; margin-bottom: 22px; }
.news input::placeholder { color: #777; }
.footer h4 { color: var(--terracotta); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 20px; }
.footer ul { list-style: none; display: grid; gap: 14px; margin-bottom: 28px; }
.footer a { color: #fff; }
.footer .big { font-size: 1.15rem; display: block; margin-bottom: 14px; text-decoration: none; word-break: break-word; }
.footer address { font-style: normal; line-height: 1.7; white-space: pre-line; }
.footer-bottom { border-top: 1px solid #262626; margin-top: 56px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; color: #9ca3af; font-size: .92rem; }
.footer-bottom .soc { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a { color: #d1d5db; }
.footer .notice { margin-top: 12px; }

/* Animación de entrada */
/* Solo se oculta si hay JavaScript (sin JS el contenido se ve completo) */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover, .card:hover { transform: none; } }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .hero-grid, .about, .contact, .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .team, .allies { grid-template-columns: repeat(2, 1fr); }
  .bento, .programs-grid, .voices, .posts { grid-template-columns: repeat(2, 1fr); }
  .bento .wide, .voice.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: 80px 0 auto 0; flex-direction: column; gap: 0; background: #fff; padding: 12px 24px 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .15); transform: translateY(-120%); transition: transform .3s; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--navy) !important; display: block; padding: 14px 0; border-bottom: 1px solid #eee; font-size: 1.05rem; }
  .nav-links a[aria-current] { color: var(--terracotta) !important; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .bento, .programs-grid, .voices, .posts, .team, .allies { grid-template-columns: 1fr; }
  .bento .wide, .voice.wide { grid-column: auto; }
  .card { min-height: 300px; padding: 24px; }
  .hero-card { padding: 28px; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .stat { border-right: none; border-bottom: 1px solid var(--terracotta); padding-bottom: 18px; }
  .stat:last-child { border-bottom: none; }
  .footer { margin: 56px 12px 0; padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .form { padding: 24px; }
  .btn { padding: 14px 16px 14px 24px; }
}
