/* =========================================================
   Hogar Bernardino Rivadavia - home rediseñada (taste skill)
   Sistema editorial-institucional. Marca preservada: violeta + naranja.
   Display serif self-hosted (Newsreader) + UI system-sans. Claro/oscuro.
   ========================================================= */

/* ---------- Fuente display self-hosted (subset latin) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-400.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/newsreader-500.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/newsreader-600.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-italic.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --brand: #9b3d97;
  --brand-700: #7a2f77;
  --brand-050: #f4e9f3;
  --accent: #f5a623;         /* solo fills */
  --accent-ink: #b46a08;     /* naranja legible sobre claro (AA) */

  --ink: #29222f;
  --ink-2: #5f5768;
  --ink-3: #8b8391;
  --bg: #ffffff;
  --bg-warm: #faf6f3;
  --surface: #ffffff;
  --line: #ece5ee;

  --hero-ink: #ffffff;
  --shadow: 0 14px 40px -18px rgba(46, 24, 56, .28);
  --shadow-lg: 0 26px 60px -24px rgba(46, 24, 56, .38);

  --r: 16px;
  --r-sm: 10px;
  --maxw: 1160px;
  --nav-h: 74px;
}

/* Tema claro único (dark mode removido a pedido). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .16s; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .4em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.012em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--brand); }
h3, h4 { font-family: var(--font-sans); font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
.text-center { text-align: center; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
.sprite { position: absolute; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.15em; }
.ico-fill { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-sans); font-weight: 650; font-size: .96rem; line-height: 1;
  padding: .82em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s, background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { font-size: 1.05rem; padding: .95em 1.8em; }
.btn-cta { background: var(--accent); color: #3a2a05; border-color: var(--accent); }
.btn-cta:hover { color: #3a2a05; box-shadow: 0 10px 24px -10px rgba(245,166,35,.7); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.btn-outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(3px); }
.btn-ghost:hover { background: #fff; color: var(--brand-700); border-color: #fff; transform: translateY(-2px); }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; color: var(--brand); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }
.nav__logo img { height: 44px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; font-weight: 600; font-size: .95rem; color: var(--ink); padding: .5em .7em; border-radius: 8px; }
.nav__links a:hover { color: var(--brand); }
.nav__links a[aria-current="page"] { color: var(--brand); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: .7em; right: .7em; bottom: .12em; height: 2px; background: var(--accent); border-radius: 2px; }
.nav__end { display: flex; align-items: center; gap: 16px; }
.nav__member { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.nav__member:hover { color: var(--brand); }
.nav__member--mobile { display: inline; }
.nav__end .btn-cta { padding: .62em 1.15em; font-size: .9rem; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2.5px; background: var(--brand); border-radius: 3px; transition: .25s; }
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(560px, 88vh, 840px); color: var(--hero-ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(38,15,44,.92) 0%, rgba(74,26,74,.72) 42%, rgba(122,47,119,.30) 78%, rgba(122,47,119,.12) 100%),
    linear-gradient(to top, rgba(30,12,36,.55), transparent 40%);
}
.hero__inner { padding: 52px 24px 60px; max-width: var(--maxw); width: 100%; }
.hero__inner > * { max-width: 620px; }
.hero__eyebrow { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; color: #f4c98a; margin: 0 0 1.1em; }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6.2vw, 4.7rem); margin: 0 0 .28em; text-shadow: 0 2px 30px rgba(20,6,26,.35); }
.hero h1 em { color: #f6c98d; }
.hero__lede { font-family: var(--font-display); font-size: clamp(1.15rem, 2.3vw, 1.5rem); line-height: 1.5; color: rgba(255,255,255,.94); max-width: 34ch; margin: 0 0 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Franja de datos ---------- */
.stats { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 22px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1; color: var(--brand); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.stat__label { display: block; margin-top: .5em; font-size: .92rem; color: var(--ink-2); max-width: 18ch; margin-inline: auto; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--warm { background: var(--bg-warm); }
.kicker { display: block; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; color: var(--accent-ink); margin-bottom: 1em; }

.lede-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 68px); }
.lede-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.split-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.split-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.split-head p { margin: .5em 0 0; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 40px; }
.pillar { padding-top: 26px; border-top: 2px solid var(--line); }
.pillar__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-050); color: var(--brand); margin-bottom: 18px; }
.pillar h3 { font-size: 1.28rem; color: var(--ink); }
.pillar p { margin: 0; color: var(--ink-2); }
.pillars__cta { margin: clamp(34px, 5vw, 52px) 0 0; }

/* ---------- Mosaico de fotos ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(160px, 19vw); gap: 14px; }
.mosaic__cell { position: relative; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); background: var(--brand-050); }
.mosaic__cell img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(1.02); transition: transform .6s ease, filter .5s ease; }
.mosaic__cell:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1); }
.mosaic__cell--lg { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.mosaic__cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(41,17,47,.28), transparent 45%); opacity: 0; transition: opacity .3s; }
.mosaic__cell:hover::after { opacity: 1; }

/* ---------- Historia ---------- */
.history { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.history__rail { position: sticky; top: calc(var(--nav-h) + 28px); }
.history__rail h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.1em; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--brand); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--brand); }
.timeline span { font-size: .95rem; color: var(--ink-2); }

.prose { font-size: 1.08rem; }
.prose p { margin: 0 0 1.15em; color: var(--ink-2); }
.prose em { color: var(--ink); }
.dropcap { float: left; font-family: var(--font-display); font-weight: 600; font-size: 3em; line-height: .86; padding: .04em .14em 0 0; color: var(--brand); }
.prose blockquote { margin: 1.6em 0 0; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: var(--ink); }

.collapsible { position: relative; overflow: hidden; padding-top: 10px; transition: max-height .5s ease; }
.collapsible.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg) 92%); pointer-events: none; }
.section--warm .collapsible.is-collapsed::after { background: linear-gradient(to bottom, transparent, var(--bg-warm) 92%); }
.collapsible__actions { margin-top: 26px; display: none; }

/* ---------- Dónde estamos ---------- */
.place { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.place h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.place .lead { font-size: 1.14rem; color: var(--ink); }
.place__meta { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.place__meta li { display: flex; align-items: center; gap: .7em; color: var(--ink); }
.place__meta .ico { color: var(--brand); }
.place__map { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--brand-050); }
.place__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Datalist institucional ---------- */
.datalist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-top: 1px solid var(--line); }
.datalist > div { padding: 22px 4px; border-bottom: 1px solid var(--line); }
.datalist dt { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--accent-ink); margin-bottom: .35em; }
.datalist dd { margin: 0; color: var(--ink); font-size: 1.05rem; }

/* ---------- Cierre ---------- */
.closing { position: relative; isolation: isolate; color: #fff; text-align: center; padding: clamp(72px, 11vw, 130px) 0; overflow: hidden; }
.closing__media { position: absolute; inset: 0; z-index: -2; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(74,26,74,.94), rgba(122,47,119,.88)); }
.closing h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.closing p { max-width: 560px; margin: .4em auto 1.8em; color: rgba(255,255,255,.92); font-size: 1.12rem; }
.closing .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1420; color: #cdc3d1; padding: 64px 0 26px; }
.site-footer a { color: #e6cbe4; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 44px; }
.footer-brand img { height: 58px; width: auto; background: #fff; padding: 9px 13px; border-radius: 12px; }
.footer-brand p { margin: 18px 0 0; color: #a99bb0; font-size: .96rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; color: #b3a7ba; display: flex; align-items: center; gap: .5em; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #e6cbe4; transition: .18s; }
.footer-social a:hover { background: var(--accent); color: #2a2004; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; text-align: center; font-size: .86rem; color: #8a7e92; }

/* ---------- Motion (reveal) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.pillar.reveal:nth-child(2) { transition-delay: .08s; }
.pillar.reveal:nth-child(3) { transition-delay: .16s; }
.stat.reveal:nth-child(2) { transition-delay: .07s; }
.stat.reveal:nth-child(3) { transition-delay: .14s; }
.stat.reveal:nth-child(4) { transition-delay: .21s; }
.mosaic__cell.reveal:nth-child(3) { transition-delay: .06s; }
.mosaic__cell.reveal:nth-child(4) { transition-delay: .12s; }
.mosaic__cell.reveal:nth-child(5) { transition-delay: .18s; }
.mosaic__cell.reveal:nth-child(6) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mosaic__cell img, .btn, .link-arrow .ico { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 14px 24px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-135%); transition: transform .3s ease; max-height: calc(100dvh - var(--nav-h)); overflow: auto;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { padding: .85em .3em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__end { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; }
  .nav__member--mobile { display: block; }
  .nav__end .btn-cta { justify-content: center; padding: .85em 1.2em; font-size: 1rem; }
  .history { grid-template-columns: 1fr; gap: 32px; }
  .history__rail { position: static; }
  .timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 22px; }
  .timeline::before { display: none; }
  .timeline li { padding: 14px 0 0 0; border-top: 2px solid var(--line); }
  .timeline li::before { display: none; }
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .pillars { grid-template-columns: 1fr; gap: 4px; }
  .pillar { padding-top: 22px; }
  .place { grid-template-columns: 1fr; }
  .place__map { order: -1; }
  .datalist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 12px; }
  .mosaic__cell { aspect-ratio: 1; }
  .mosaic__cell--lg { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 16/11; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__inner { padding-bottom: 48px; }
}

/* ==========================================================
   Páginas internas (actividades / donaciones / contacto / info / 404)
   ========================================================== */

/* Hero de página interna */
.page-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(280px, 40vh, 430px); color: #fff; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(92deg, rgba(36,14,42,.9), rgba(74,26,74,.6) 58%, rgba(122,47,119,.26)); }
.page-hero__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px 46px; }
.page-hero__crumb { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .73rem; color: #f4c98a; margin: 0 0 .7em; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0; }
.page-hero__lede { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.5; color: rgba(255,255,255,.94); max-width: 46ch; margin: .55em 0 0; }

/* Intro de sección a la izquierda */
.section-intro { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.section-intro p { margin: .5em 0 0; color: var(--ink-2); font-size: 1.08rem; }

/* Lista de proyectos/actividades (editorial, sin cajas) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 52px; }
.feature { padding: 30px 0; border-top: 1px solid var(--line); }
.feature__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--brand-050); color: var(--brand); margin-bottom: 16px; }
.feature h3 { font-size: 1.28rem; color: var(--ink); margin-bottom: .35em; }
.feature p { margin: 0; color: var(--ink-2); }

/* Galería (B&W, color al hover) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gallery a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--brand-050); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(1.02); transition: transform .5s ease, filter .5s ease; }
.gallery a:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,8,24,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .15s; }
.lightbox__btn:hover { background: var(--accent); color: #2a2004; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Donación online */
.donate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.donate-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.donate-card__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-050); color: var(--brand); margin-bottom: 18px; }
.donate-card h3 { font-size: 1.3rem; color: var(--ink); }
.donate-card p { color: var(--ink-2); flex: 1; }
.donate-card .btn { align-self: flex-start; margin-top: 14px; }

/* Datos bancarios + copiar */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.bankcard { border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; background: var(--bg-warm); }
.bankcard h3 { display: flex; align-items: center; gap: .55em; font-size: 1.08rem; color: var(--brand-700); margin-bottom: 8px; }
.bankcard h3 .ico { color: var(--brand); }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.bank-row dt { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; color: var(--ink-3); }
.bank-row dd { margin: 0; }
.copy-value { display: flex; align-items: center; gap: 10px; }
.copy-value code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .95rem; color: var(--ink); }
.copy-btn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--brand); border-radius: 9px; cursor: pointer; transition: .15s; }
.copy-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.copy-btn .ic-check { display: none; }
.copy-btn.copied { background: #e8f6ec; border-color: #58b368; color: #2e7d32; }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-check { display: inline-block; }
.copy-btn.copied::after { content: "¡Copiado!"; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 7px; background: #2e7d32; color: #fff; font-size: .72rem; font-weight: 650; padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.bank-note { color: var(--ink-3); font-size: .92rem; margin-top: 16px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.contact-list { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: .7em; color: var(--ink); }
.contact-list .ico { color: var(--brand); margin-top: .15em; }
.contact-list a { color: var(--brand); }
.contact-map { position: relative; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--brand-050); margin-top: 24px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 32px; }
.form-card h2 { font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .9rem; color: var(--brand-700); }
.field input, .field textarea { font-family: var(--font-sans); font-size: 1rem; padding: .72em .9em; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-050); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 650; min-height: 1.2em; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #c0392b; }

/* Social en fila */
.social-row { display: flex; gap: 12px; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: .18s; }
.social-row a:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-3px); }

/* 404 */
.error-page { text-align: center; padding: clamp(72px, 12vw, 150px) 0; }
.error-page__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(6rem, 20vw, 12rem); line-height: .9; color: var(--brand); letter-spacing: -.03em; }
.error-page h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: .05em; }
.error-page p { max-width: 48ch; margin: 18px auto 0; color: var(--ink-2); font-size: 1.1rem; }
.error-page__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.error-page__links { margin-top: 30px; color: var(--ink-3); }
.error-page__links a { color: var(--brand); }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; gap: 0; }
  .donate-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .error-page__actions { flex-direction: column; }
}
