/* Buenas Nuevas · site.css compartido (antes <style> de index.html). Requiere styles.css (Tailwind compilado) antes. */
  html { scroll-padding-top: 96px; }
  body { overflow-x: hidden; }
  .font-display { font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; }

  /* OCULTO (retirado: sin fade al hacer scroll bajo la portada)
  / * Reveal * /
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.8,.3,1), transform .8s cubic-bezier(.22,.8,.3,1); transition-delay: var(--d, 0ms); }
  .reveal.left { transform: translateX(-30px); }
  .reveal.right { transform: translateX(30px); }
  .reveal.zoom { transform: scale(.95); }
  .reveal.in { opacity: 1; transform: none; }
FIN OCULTO */

  /* Rings */
  .ring-bg { stroke: #d6eaf4; }
  .ring-fg { stroke: #126994; stroke-linecap: round; stroke-dasharray: 138.2px; stroke-dashoffset: calc(138.2px * (1 - var(--p, 0) / 100)); transition: stroke-dashoffset 1.6s cubic-bezier(.22,.8,.3,1) .3s; }
  .prog:not(.in) .ring-fg { stroke-dashoffset: 138.2px; }

  /* OCULTO (retirada la marquesina)
  / * Marquee * /
  .marquee { display: flex; width: max-content; animation: mq 38s linear infinite; }
  @keyframes mq { to { transform: translateX(-50%); } }
  .marquee-wrap:hover .marquee { animation-play-state: paused; }
FIN OCULTO */

  /* OCULTO (retirados los adornos animados sin fin)
  / * Floating decorations * /
  @keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
  .floaty { animation: floaty 6s ease-in-out infinite; }
  @keyframes spinslow { to { transform: rotate(360deg); } }
  .spin-slow { animation: spinslow 40s linear infinite; }
FIN OCULTO */
  .slashes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M3 11 L9 3' stroke='%23acd3e6' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  .dots { background-image: radial-gradient(#acd3e6 1.4px, transparent 1.6px); background-size: 12px 12px; }

  /* Buttons */
  .btn { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
  .btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%); transform: translateX(-120%); transition: transform .7s ease; }
  .btn:hover::after { transform: translateX(120%); }
  .btn:hover { transform: translateY(-2px); }

  /* Cards */
  .svc { transition: background-color .35s ease, color .35s ease, transform .35s ease, box-shadow .35s ease; }
  .svc.on { background: #126994; color: #fff; box-shadow: 0 22px 44px -16px rgba(18,105,148,.6); transform: translateY(-6px); }
  .svc.on .svc-text { color: rgba(255,255,255,.85); }
  .svc.on .svc-title { color: #fff; }
  .svc.on .svc-arrow { background: #fff; color: #126994; }
  .cause { transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease; }
  .cause:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -18px rgba(8,42,67,.22); background: #fff; }
  .cause .cause-btn { transition: all .25s ease; }
  .cause:hover .cause-btn { background: #126994; color: #fff; border-color: #126994; }
  .cause img { transition: transform .8s cubic-bezier(.22,.8,.3,1); }
  .cause:hover img { transform: scale(1.06); }

  /* Tabs */
  .tab { transition: all .25s ease; }
  .tab[aria-selected="true"] { background: #126994; color: #fff; box-shadow: 0 10px 22px -10px rgba(18,105,148,.7); }
  .tab[aria-selected="true"]::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #126994; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }

  .nav-l { transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
  .nav-l.nav-on { background: #fff; color: #126994; box-shadow: 0 6px 16px -8px rgba(8,42,67,.25); }

  /* Avatars */
  .av { transition: transform .3s ease, box-shadow .3s ease; opacity: .85; }
  .av[aria-selected="true"] { transform: scale(1.18); opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #126994; }
  .fade-swap { transition: opacity .35s ease, transform .35s ease; }
  .fade-swap.out { opacity: 0; transform: translateY(8px); }

  /* Slider dots */
  .sdot { transition: all .25s ease; }
  .sdot-b[aria-current="true"] .sdot { background: #126994; width: 10px; height: 10px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #126994; }

  /* Header */
  #header { transition: background-color .3s ease, box-shadow .3s ease; }
  #header.stuck { background: rgba(246,249,251,.88); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -18px rgba(8,42,67,.3); }
  #mobilePanel { transform: translateX(100%); transition: transform .4s cubic-bezier(.22,.8,.3,1); }
  #mobilePanel.open { transform: none; }
  #scrim { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  #scrim.open { opacity: 1; pointer-events: auto; }
  #progress { transform-origin: left; transform: scaleX(0); }
  #toTop { opacity: 0; pointer-events: none; transform: translateY(14px); transition: .35s ease; }
  #toTop.show { opacity: 1; pointer-events: auto; transform: none; }
  #modal, #donate { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility .3s; }
  #modal.open, #donate.open { opacity: 1; visibility: visible; pointer-events: auto; }

  /* Pulse de la tarjeta del hero */
  .pulse-card { position: relative; animation: breathe 2.6s ease-in-out infinite; }
  .pulse-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #126994; opacity: 0; pointer-events: none; animation: pulsering 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
  .pulse-card:hover, .pulse-card:focus-within, .pulse-card:hover::before, .pulse-card:focus-within::before { animation-play-state: paused; }
  @keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.018); } }
  @keyframes pulsering { 0% { opacity: .6; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(1.14,1.1); } }
  @media (max-width: 1023px) { @keyframes pulsering { 0% { opacity: .6; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(1.04,1.03); } } }
  main { overflow-x: clip; }
  .halo { animation: halo 2.6s ease-out .5s infinite; }
  @keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(18,105,148,.5); } 70%,100% { box-shadow: 0 0 0 14px rgba(18,105,148,0); } }

  /* Burbuja flotante */
  .bubble { position: fixed; right: 16px; top: 92px; z-index: 55; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-26px) scale(.88); transform-origin: 100% 0; transition: opacity .4s ease, transform .55s cubic-bezier(.2,1.15,.3,1), visibility .4s; }
  .bubble.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .bubble[data-state="open"] .b-mini { display: none; }
  .bubble[data-state="min"] .b-open { display: none; }
  .b-open, .b-mini { position: relative; animation: popin .45s cubic-bezier(.2,1.15,.3,1); }
  @keyframes popin { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
  .b-open::before, .b-mini::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #126994; opacity: 0; pointer-events: none; animation: pulsering 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
  .b-open:hover::before { animation-play-state: paused; }
  .b-mini { border-radius: 9999px; }
  .ring-fg-b { stroke: #126994; stroke-linecap: round; stroke-dasharray: 182.2px; stroke-dashoffset: calc(182.2px * (1 - var(--p, 0) / 100)); transition: stroke-dashoffset 1.2s cubic-bezier(.22,.8,.3,1) .15s; }
  .b-bar { transition: width 1.2s cubic-bezier(.22,.8,.3,1) .15s; }
  #toTop { bottom: 24px; }

  /* Mejoras de UX */
  .hscroll { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hscroll::-webkit-scrollbar { display: none; }
  .btn:active { transform: translateY(0) scale(.97); }
  .cause:active, .svc:active { transform: scale(.985); }
  .fld[aria-invalid="true"] { border-color: #b42318 !important; background: #fff; }
  .err { margin-top: 6px; font-size: 13px; line-height: 1.4; color: #b42318; }
  .dopt span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 14px; border: 1.5px solid #dde6ec; border-radius: 10px; font-size: 15px; line-height: 1.3; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
  .dopt span:hover { border-color: #acd3e6; }
  .dopt input:checked + span { border-color: #126994; background: #eef6fa; color: #0d5379; font-weight: 600; box-shadow: inset 0 0 0 1px #126994; }
  .dopt input:focus-visible + span { outline: 3px solid #126994; outline-offset: 2px; }
  /* OCULTO (retirada la barra #mbar; Donar se ve siempre en la cabecera móvil)
  #mbar { transform: translateY(110%); visibility: hidden; transition: transform .35s ease, visibility .35s; padding-bottom: env(safe-area-inset-bottom); }
  body.past-hero #mbar { transform: none; visibility: visible; }
  @media (max-width: 1023px) { body.past-hero #toTop { bottom: 84px; } body.past-hero #hdrDonate { display: none; } }
FIN OCULTO */

  .hc-slot { background: linear-gradient(to bottom, transparent 56px, #fff 56px); }
  @media (min-width: 1024px) { .hc-slot { background: none; } }
  .seg .lab-d { display: none; }
  @media (max-width: 1023px) {
    .seg .tab::after { display: none; }
    .seg .tab[aria-selected="true"] { box-shadow: 0 8px 18px -10px rgba(18,105,148,.7); }
  }
  /* Escritorio: Nosotros conserva el estilo original (pestañas sueltas, texto sin tarjeta) */
  @media (min-width: 1024px) {
    .nos-card { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
    .seg { display: flex; gap: .5rem; background: transparent; padding: 0; border-radius: 0; }
    .seg .tab { display: block; border-radius: 6px; padding-left: 1rem; padding-right: 1rem; }
    .seg .tab[aria-selected="false"] { background: #eef6fa; }
    .seg .lab-m { display: none; }
    .seg .lab-d { display: inline; }
    .nos-card #tabText { padding: 0; margin-top: 1.5rem; }
  }

  /* ===== Sitio nuevo: menú con submenús y secciones de contenido ===== */
  /* Colores de la página: brand-500 #126994, brand-700 #0d5379, brand-50 #eef6fa, brand-100 #d6eaf4,
     ink #082a43, paper #f6f9fb, line #dde6ec, body #3f5260, muted #5b6b76 */

  /* Menú de escritorio */
  #mainNav .nav-l { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 9999px; font-size: 15px; font-weight: 500; color: #3f5260; white-space: nowrap; background: transparent; cursor: pointer; }
  @media (min-width: 1280px) { #mainNav .nav-l { padding: 0 16px; } }
  .nav-g { position: relative; }
  .nav-chev { width: 12px; height: 12px; flex: none; transition: transform .2s cubic-bezier(.23,1,.32,1); }
  .nav-btn[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
  .nav-btn[aria-expanded="true"] { color: #0d5379; }
  .nav-sub { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 236px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #dde6ec; border-radius: 16px; box-shadow: 0 18px 40px -14px rgba(8,42,67,.14), 0 4px 14px -4px rgba(8,42,67,.06); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .18s cubic-bezier(.23,1,.32,1), transform .18s cubic-bezier(.23,1,.32,1), visibility 0s linear .18s; }
  .nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav-sub.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-sub-end { left: auto; right: 0; }
  .nav-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #3f5260; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
  @media (hover: hover) and (pointer: fine) {
    #mainNav .nav-l:hover { color: #0d5379; }
    .nav-sub a:hover { background: #eef6fa; color: #0d5379; }
  }

  /* Menú móvil: panel lateral con acordeón */
  #mobilePanel { visibility: hidden; transition: transform .4s cubic-bezier(.22,.8,.3,1), visibility 0s linear .4s; }
  #mobilePanel.open { visibility: visible; transition: transform .4s cubic-bezier(.22,.8,.3,1), visibility 0s; }
  .mpanel-top { margin-bottom: 16px; }
  .mnav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px; }
  .mgrp-btn, .mlink { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 12px; font-size: 18px; font-weight: 500; color: #082a43; text-align: left; background: transparent; cursor: pointer; }
  .mgrp-btn .nav-chev { width: 14px; height: 14px; color: #126994; }
  .mgrp-btn[aria-expanded="true"] { background: #eef6fa; color: #0d5379; }
  .mgrp-btn[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
  .mgrp-sub { margin: 2px 0 6px; padding: 0 0 0 14px; list-style: none; }
  .mgrp-sub a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-left: 2px solid #d6eaf4; font-size: 16px; color: #3f5260; overflow-wrap: anywhere; }
  .mdonar { margin-top: 16px; flex: none; }
  @media (hover: hover) and (pointer: fine) {
    .mgrp-btn:hover, .mlink:hover { background: #eef6fa; }
    .mgrp-sub a:hover { color: #0d5379; border-left-color: #126994; }
  }
  .bn-target:focus { outline: none; }
  /* Cabecera estrecha: el nombre junto al logo se montaba bajo "Donar" (reglas del logo en .bn-logo, al final) */
  @media (max-width: 389px) {
    #hdrDonate { padding-left: 16px; padding-right: 16px; }
  }

  /* Lectura */
  .bn-prose { max-width: 56ch; }
  .bn-prose p, p.bn-p { font-size: 16px; line-height: 1.7; color: #3f5260; }
  .bn-prose p + p { margin-top: 16px; }
  .bn-h2 { font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; font-size: 34px; line-height: 1.1; color: #082a43; }
  .bn-h2-lg { font-size: 34px; }
  .bn-h2-long { font-size: 30px; line-height: 1.15; }
  .bn-h3 { font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; font-size: 26px; line-height: 1.15; color: #082a43; }
  .bn-h4 { font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; font-size: 22px; line-height: 1.2; color: #082a43; }
  .bn-h5 { font-size: 16px; font-weight: 600; color: #082a43; margin-top: 20px; }
  @media (min-width: 640px) {
    .bn-h2 { font-size: 40px; }
    .bn-h2-lg { font-size: 48px; }
    .bn-h2-long { font-size: 40px; }
    .bn-h3 { font-size: 30px; }
    .bn-h4 { font-size: 26px; }
  }
  .bn-eyebrow { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; background: #eef6fa; padding: 4px 10px; font-size: 13px; font-weight: 500; color: #0d5379; }
  .bn-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: #126994; }
  .bn-wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 640px) { .bn-wrap { padding: 0 24px; } }
  .bn-sec { position: relative; padding: 64px 0; }
  @media (min-width: 1024px) { .bn-sec { padding: 96px 0; } }

  /* Nosotros */
  .bn-mv { margin-top: 56px; }
  .bn-mv-grid { display: grid; gap: 16px; margin-top: 24px; }
  .bn-mv-item { border-radius: 16px; background: #fff; padding: 24px; box-shadow: 0 10px 30px -12px rgba(8,42,67,.12); }
  .bn-mv-item p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: #3f5260; }
  @media (min-width: 768px) { .bn-mv-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .bn-mv-item { padding: 32px; } }
  @media (min-width: 1024px) { .bn-mv { margin-top: 80px; } }

  /* Equipo: listas de texto con línea */
  .bn-team { display: grid; gap: 40px; margin-top: 28px; }
  @media (min-width: 768px) { .bn-team { grid-template-columns: 1fr 1fr; gap: 56px; } }
  .bn-roster { margin-top: 12px; border-top: 1px solid #dde6ec; }
  .bn-roster > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid #dde6ec; }
  .bn-roster .r-name { font-size: 17px; font-weight: 600; color: #082a43; }
  .bn-roster .r-role { font-size: 15px; color: #3f5260; }

  /* Programas y comunidades: filas editoriales */
  .bn-rows { margin-top: 32px; border-top: 1px solid #dde6ec; }
  .bn-row { display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid #dde6ec; }
  @media (min-width: 768px) { .bn-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 36px 0; } }
  @media (min-width: 1024px) { .bn-row { gap: 56px; } }
  .bn-row .bn-sub { margin-top: 4px; font-size: 15px; color: #5b6b76; }
  .bn-intro { display: grid; gap: 24px; }
  @media (min-width: 1024px) { .bn-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; } }

  /* Plegables nativos */
  .bn-more { margin-top: 16px; }
  .bn-more > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: #0d5379; border-radius: 8px; }
  .bn-more > summary::-webkit-details-marker { display: none; }
  .bn-more > summary .nav-chev { width: 14px; height: 14px; }
  .bn-more[open] > summary .nav-chev { transform: rotate(180deg); }
  .bn-more > .bn-prose { padding: 4px 0 8px; }
  @media (hover: hover) and (pointer: fine) { .bn-more > summary:hover { text-decoration: underline; text-underline-offset: 4px; } }

  /* Indicadores de Guatemala */
  .bn-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  @media (min-width: 1024px) { .bn-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
  .bn-stat { display: flex; flex-direction: column; gap: 4px; border-radius: 12px; background: #fff; padding: 18px 16px; box-shadow: 0 10px 30px -12px rgba(8,42,67,.12); min-width: 0; }
  .bn-stat dt { order: 2; font-size: 15px; font-weight: 600; color: #082a43; }
  .bn-stat .s-num { order: 1; font-family: 'Newsreader', Georgia, serif; font-size: 44px; line-height: 1; color: #126994; }
  .bn-stat .s-det { order: 3; font-size: 13px; line-height: 1.45; color: #3f5260; }
  @media (min-width: 640px) { .bn-stat { padding: 20px 24px; } }

  /* Mapa */
  .bn-map { display: grid; gap: 28px; margin-top: 40px; align-items: center; }
  @media (min-width: 1024px) { .bn-map { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
  .bn-map img { display: block; width: 100%; max-width: 640px; height: auto; }
  .bn-places { margin-top: 20px; list-style: none; padding: 0; border-top: 1px solid #dde6ec; }
  .bn-places a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 2px; border-bottom: 1px solid #dde6ec; font-size: 16px; font-weight: 600; color: #0d5379; }
  .bn-places a span { font-weight: 400; font-size: 14px; color: #5b6b76; }
  @media (hover: hover) and (pointer: fine) { .bn-places a:hover { color: #126994; } }

  /* Dona */
  .bn-give { border-radius: 22px; background: #eef6fa; padding: 28px 20px; }
  .bn-give .bn-eyebrow { background: #fff; }
  @media (min-width: 640px) { .bn-give { padding: 48px; } }
  .bn-give-grid { display: grid; gap: 28px; }
  @media (min-width: 1024px) { .bn-give-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; } }
  .bn-cta { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 24px; padding: 0 28px; border-radius: 9999px; background: #126994; color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 22px 44px -14px rgba(18,105,148,.55); }
  @media (min-width: 640px) { .bn-cta { display: inline-flex; width: auto; min-height: 56px; } }
  @media (hover: hover) and (pointer: fine) { .bn-cta:hover { background: #0d5379; } }
  .bn-quote { border-left: 2px solid #126994; padding-left: 16px; }
  .bn-quote blockquote p { font-family: 'Newsreader', Georgia, serif; font-size: 22px; line-height: 1.4; color: #082a43; }
  .bn-quote figcaption { margin-top: 8px; font-size: 14px; color: #5b6b76; }
  .bn-note { display: flex; gap: 12px; margin-top: 20px; max-width: 65ch; border-radius: 12px; background: #fff; border: 1px solid #dde6ec; padding: 16px; font-size: 16px; line-height: 1.6; color: #3f5260; }
  .bn-note i { color: #126994; margin-top: 4px; }
  .bn-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 15px; font-weight: 600; color: #0d5379; text-decoration: underline; text-decoration-color: #acd3e6; text-underline-offset: 4px; }
  @media (hover: hover) and (pointer: fine) { .bn-link:hover { text-decoration-color: #0d5379; } }

  /* Involúcrate */
  .bn-ways { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid #dde6ec; }
  .bn-way { padding: 24px 0; border-bottom: 1px solid #dde6ec; }
  .bn-way p { margin-top: 8px; font-size: 16px; line-height: 1.7; color: #3f5260; max-width: 52ch; }
  @media (min-width: 1024px) {
    .bn-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 0; }
    .bn-way { border-bottom: 0; border-top: 1px solid #dde6ec; padding-top: 28px; }
  }

  :focus-visible { outline: 3px solid #126994; outline-offset: 3px; border-radius: 8px; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
  }

/* =====================================================================
   Multipágina (fase 1): menú partido, inicio sintetizado, plantilla de detalle.
   Mismos colores que arriba, ahora con nombre. Fase 2: añadir reglas al final,
   dentro de su propio bloque marcado; no reescribir esta parte.
   ===================================================================== */
:root {
  --bn-brand: #126994; --bn-brand-700: #0d5379; --bn-brand-50: #eef6fa; --bn-brand-100: #d6eaf4; --bn-brand-300: #acd3e6;
  --bn-ink: #082a43; --bn-paper: #f6f9fb; --bn-line: #dde6ec; --bn-body: #3f5260; --bn-muted: #5b6b76;
  --bn-ease-out: cubic-bezier(.23, 1, .32, 1);
  --bn-ease-in-out: cubic-bezier(.77, 0, .175, 1);
}
::selection { background: var(--bn-brand); color: #fff; }

/* Logo de la cabecera (antes se buscaba por href="#inicio") */
#header .bn-logo { min-width: 44px; }
@media (max-width: 389px) {
  #header .bn-logo > span { font-size: 19px; }
}
@media (max-width: 364px) {
  #header .bn-logo { gap: 8px; }
  #header .bn-logo > span { font-size: 16px; line-height: 1.05; white-space: normal; width: 4.2em; }
}

/* ---------- Menú de escritorio: grupo = enlace a la página + botón chevron ---------- */
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-g { display: flex; align-items: center; border-radius: 9999px; transition: background-color .2s ease, box-shadow .2s ease; }
#mainNav .nav-g > .nav-l { padding-right: 6px; }
.nav-chevbtn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; min-height: 44px; margin-right: 2px; padding: 0; border-radius: 9999px; color: var(--bn-body); background: transparent; cursor: pointer; transition: color .15s ease; }
.nav-chevbtn[aria-expanded="true"] { color: var(--bn-brand-700); }
.nav-chevbtn[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
@media (pointer: coarse) { .nav-chevbtn { width: 44px; } }
/* Página actual: pastilla blanca en todo el grupo + subrayado del nombre (no solo color) */
.nav-g:has(> .nav-l.nav-on) { background: #fff; box-shadow: 0 6px 16px -8px rgba(8,42,67,.25); }
#mainNav .nav-g > .nav-l.nav-on { background: transparent; box-shadow: none; }
#mainNav .nav-l.nav-on { color: var(--bn-brand-700); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--bn-brand); text-underline-offset: 7px; }
/* Foco por dentro para que el del enlace y el del chevron no se monten */
#mainNav .nav-l:focus-visible, .nav-chevbtn:focus-visible { outline-offset: -3px; border-radius: 9999px; }
.nav-sub a[aria-current="page"] { font-weight: 600; color: var(--bn-brand-700); background: var(--bn-brand-50); }
@media (hover: hover) and (pointer: fine) { .nav-chevbtn:hover { color: var(--bn-brand-700); } }

/* ---------- Panel móvil: fila = enlace (ancho) + chevron (48 px) ---------- */
.mgrp-row { display: flex; align-items: center; gap: 8px; }
.mgrp-link { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 12px; font-size: 18px; font-weight: 500; color: var(--bn-ink); }
.mgrp-chev { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--bn-line); border-radius: 12px; color: var(--bn-brand); background: transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.mgrp-chev .nav-chev { width: 14px; height: 14px; }
.mgrp-chev[aria-expanded="true"] { background: var(--bn-brand-50); border-color: var(--bn-brand-100); color: var(--bn-brand-700); }
.mgrp-chev[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.mgrp-link.nav-on, .mlink.nav-on { color: var(--bn-brand-700); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--bn-brand); text-underline-offset: 6px; }
.mgrp-sub a[aria-current="page"] { font-weight: 600; color: var(--bn-brand-700); border-left-color: var(--bn-brand); }
@media (hover: hover) and (pointer: fine) { .mgrp-link:hover, .mgrp-chev:hover { background: var(--bn-brand-50); } }

/* ---------- Botones y filas-enlace ---------- */
/* Botón de sección: lleva a una página (tinta). Donar sigue siendo el azul de .bn-cta */
.bn-go { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 9999px; background: var(--bn-ink); color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
@media (min-width: 640px) { .bn-go { display: inline-flex; width: auto; } }
@media (hover: hover) and (pointer: fine) { .bn-go:hover { background: var(--bn-brand-700); } }

.bn-lrows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bn-line); }
.bn-lrows > li { padding: 4px 0; border-bottom: 1px solid var(--bn-line); }
.bn-lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; min-height: 64px; padding: 10px 2px; color: var(--bn-ink); border-radius: 8px; }
.bn-lrow-t { display: block; font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; font-size: 22px; line-height: 1.2; transition: color .15s ease; }
.bn-lrow-d { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--bn-body); }
.bn-lrow-c { width: 16px; height: 16px; color: var(--bn-brand); transition: transform .2s var(--bn-ease-out); }
.bn-lrow:active .bn-lrow-c, .bn-lrow:focus-visible .bn-lrow-c { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) {
  .bn-lrow:hover .bn-lrow-t { color: var(--bn-brand-700); }
  .bn-lrow:hover .bn-lrow-c { transform: translateX(4px); }
}

/* ---------- Inicio ---------- */
/* Nosotros: texto antes del collage en móvil */
.bn-nos { display: grid; gap: 40px; align-items: center; }
.bn-nos-text { order: -1; }
.bn-nos-text .bn-p { margin-top: 20px; max-width: 52ch; }
.bn-nos-text .bn-go { margin-top: 28px; }
@media (min-width: 1024px) { .bn-nos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .bn-nos-text { order: 0; } }

/* Franja 3 · 3 · 5: una fila siempre, número sobre rótulo, sin icono ni tarjeta */
.bn-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--bn-line); border-bottom: 1px solid var(--bn-line); }
.bn-fig { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 4px 18px 10px; }
.bn-fig:first-child { padding-left: 0; }
.bn-fig + .bn-fig { border-left: 1px solid var(--bn-line); }
.bn-fig-n { font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; font-size: 44px; line-height: 1; color: var(--bn-brand); }
.bn-fig-l { font-size: 13px; line-height: 1.35; color: var(--bn-body); }
@media (min-width: 768px) {
  .bn-fig { flex-direction: row; align-items: center; gap: 16px; padding: 28px 24px; }
  .bn-fig:first-child { padding-left: 0; }
  .bn-fig-n { font-size: 60px; }
  .bn-fig-l { font-size: 15px; max-width: 16ch; }
}
@media (min-width: 1024px) { .bn-figs { margin-top: 88px; } }

/* ¿Qué hacemos?: titular + filas; en móvil el botón va después de las filas */
.bn-qh { display: grid; gap: 28px; grid-template-areas: "head" "rows" "btn"; }
.bn-qh-head { grid-area: head; }
.bn-qh-head .bn-p { margin-top: 20px; max-width: 52ch; }
.bn-qh-rows { grid-area: rows; }
.bn-qh-btn { grid-area: btn; }
@media (min-width: 1024px) {
  .bn-qh { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 32px; grid-template-areas: "head rows" "btn rows"; align-items: start; }
}
/* ¿Dónde servimos?: titular y frase antes que el mapa en móvil */
.bn-ds { display: grid; gap: 24px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--bn-line); grid-template-areas: "head" "map" "rows" "btn"; }
.bn-ds-head { grid-area: head; }
.bn-ds-head .bn-p { margin-top: 12px; }
.bn-ds-map { grid-area: map; }
.bn-ds-map img { display: block; width: 100%; max-width: 640px; height: auto; }
.bn-ds-rows { grid-area: rows; }
.bn-ds-btn { grid-area: btn; padding-top: 4px; }
@media (min-width: 1024px) {
  .bn-ds { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr; column-gap: 56px; margin-top: 104px; padding-top: 88px; grid-template-areas: "map head" "map rows" "map btn"; align-items: start; }
  .bn-ds-map { align-self: center; }
}

/* Dona en el inicio: Donar ahora (primario) y Ver cómo donar (secundario, menor) */
.bn-give-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; }
.bn-give-actions .bn-cta { margin-top: 0; }
.bn-give-actions .bn-link { align-self: flex-start; margin-top: 0; }
@media (min-width: 640px) { .bn-give-actions { flex-direction: row; align-items: center; gap: 28px; } .bn-give-actions .bn-link { align-self: center; } }

/* Involúcrate: tres filas (columnas desde 1024) */
.bn-inv-rows { margin-top: 28px; }
@media (min-width: 1024px) {
  .bn-inv-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
  .bn-inv-rows > li { border-bottom: 0; border-top: 1px solid var(--bn-line); padding-top: 8px; }
  .bn-inv-rows .bn-lrow { align-items: start; }
  .bn-inv-rows .bn-lrow-c { margin-top: 6px; }
}
.bn-sec-foot { margin-top: 32px; }

/* Contacto breve */
.bn-ct { display: grid; gap: 28px; }
.bn-ct-mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 600; color: var(--bn-brand-700); text-decoration: underline; text-decoration-color: var(--bn-brand-300); text-underline-offset: 4px; overflow-wrap: anywhere; }
.bn-ct-side .bn-go { margin-top: 28px; }
@media (min-width: 1024px) { .bn-ct { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; } }
@media (hover: hover) and (pointer: fine) { .bn-ct-mail:hover { text-decoration-color: var(--bn-brand-700); } }

/* Pie */
.bn-foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; max-width: 900px; margin: 0 auto; padding: 8px 0 48px; }
.bn-foot-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .bn-foot-grid > :first-child { grid-column: auto; } }
@media (min-width: 768px) { .bn-foot-grid { grid-template-columns: 1.2fr .9fr .9fr; } }
.bn-foot-bar { padding-top: 14px; padding-bottom: 14px; }

/* ---------- Plantilla de detalle ---------- */
body.bn-detail { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.bn-detail > main { flex: 1 0 auto; }

.bn-phead { padding: 116px 0 36px; background: var(--bn-paper); }
.bn-phead-in { display: grid; row-gap: 8px; }
@media (min-width: 1024px) {
  .bn-phead { padding: 140px 0 64px; }
  .bn-phead-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: end; }
  .bn-phead-in .bn-crumbs { grid-column: 1 / -1; }
}
.bn-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--bn-body); }
.bn-crumbs li + li::before { content: '/'; padding: 0 10px; color: var(--bn-muted); }
.bn-crumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--bn-brand-700); text-decoration: underline; text-decoration-color: var(--bn-brand-300); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .bn-crumbs a:hover { text-decoration-color: var(--bn-brand-700); } }
.bn-h1 { width: fit-content; max-width: 100%; font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; font-weight: 400; font-size: 46px; line-height: 1.02; letter-spacing: -.02em; color: var(--bn-ink); }
@media (min-width: 640px) { .bn-h1 { font-size: 62px; } }
@media (min-width: 1024px) { .bn-h1 { font-size: 80px; } }
.bn-lede { max-width: 48ch; margin-top: 8px; font-size: 19px; line-height: 1.5; color: var(--bn-body); }
@media (min-width: 1024px) { .bn-lede { margin-top: 0; padding-bottom: 10px; font-size: 21px; } }

.bn-dbody { padding: 32px 0 72px; background: #fff; }
.bn-dgrid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .bn-dbody { padding: 80px 0 112px; }
  .bn-dgrid { grid-template-columns: 13rem minmax(0, 1fr); gap: 72px; align-items: start; }
}
/* Columna de lectura: 58ch como máximo para texto */
.bn-read { min-width: 0; max-width: 46rem; }
.bn-read p { max-width: 58ch; }
.bn-read .bn-prose p { font-size: 17px; line-height: 1.7; }
.bn-block + .bn-block { margin-top: 64px; }
@media (min-width: 1024px) { .bn-block + .bn-block { margin-top: 96px; } }
.bn-block > .bn-h2 { margin-bottom: 20px; }
/* Subbloques con línea (Misión / Visión, programas, comunidades, categorías) */
.bn-part { padding: 24px 0; border-top: 1px solid var(--bn-line); }
.bn-part:last-child { border-bottom: 1px solid var(--bn-line); }
.bn-part > .bn-prose, .bn-part > p { margin-top: 12px; }
.bn-read .bn-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0; }
.bn-read .bn-map { grid-template-columns: minmax(0, 1fr); }
.bn-read .bn-team { margin-top: 8px; }
/* Subtítulo visible dentro del texto (sustituye al <summary> de las comunidades) */
.bn-subhead { margin-top: 36px; font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; font-size: 22px; line-height: 1.25; color: var(--bn-ink); }
@media (min-width: 640px) { .bn-subhead { font-size: 24px; } }
.bn-prose .bn-subhead + p, .bn-subhead + .bn-prose { margin-top: 12px; }

/* Índice "En esta página": lista arriba en móvil, columna fija en escritorio */
.bn-toc-t { font-size: 15px; font-weight: 600; color: var(--bn-ink); }
.bn-toc ul { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--bn-line); }
.bn-toc li { border-bottom: 1px solid var(--bn-line); }
.bn-toc ul ul { margin: 0; border-top: 1px solid var(--bn-line); }
.bn-toc ul ul li:last-child { border-bottom: 0; }
.bn-toc ul ul a { padding-left: 18px; font-size: 15px; }
.bn-toc a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 2px; font-size: 16px; color: var(--bn-brand-700); }
.bn-toc a[aria-current="location"] { font-weight: 600; }
.bn-toc-c { width: 12px; height: 12px; flex: none; color: var(--bn-brand); }
.bn-toc-mark { display: none; }
@media (min-width: 1024px) {
  .bn-toc { position: sticky; top: 112px; max-height: calc(100vh - 136px); overflow-y: auto; overscroll-behavior: contain; }
  .bn-toc > ul { position: relative; margin-top: 12px; border-top: 0; border-left: 1px solid var(--bn-line); }
  .bn-toc li, .bn-toc ul ul { border: 0; }
  .bn-toc a { min-height: 40px; padding: 6px 0 6px 16px; font-size: 15px; color: var(--bn-body); transition: color .15s ease; }
  .bn-toc ul ul a { padding-left: 30px; font-size: 14px; }
  .bn-toc a[aria-current="location"] { color: var(--bn-brand-700); }
  .bn-toc-c { display: none; }
  .bn-toc-mark { display: block; position: absolute; left: -1px; top: 0; width: 2px; height: 40px; background: var(--bn-brand); transform-origin: 0 0; opacity: 0; transition: transform .25s var(--bn-ease-out), opacity .2s ease; pointer-events: none; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .bn-toc a:hover { color: var(--bn-brand-700); } }

/* Banda final de donación */
.bn-band { padding: 0 0 64px; background: #fff; }
.bn-band-box { display: grid; gap: 24px; border-radius: 22px; background: var(--bn-brand-50); padding: 32px 20px; }
.bn-band-text { max-width: 40ch; font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; font-size: 24px; line-height: 1.3; color: var(--bn-ink); }
.bn-band .bn-cta { margin-top: 0; }
.bn-band-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
@media (min-width: 640px) { .bn-band-box { padding: 48px; } .bn-band-text { font-size: 30px; } .bn-band-actions { flex-direction: row; align-items: center; gap: 24px; } }
@media (min-width: 1024px) { .bn-band { padding-bottom: 88px; } .bn-band-box { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: 56px 64px; } }

/* Continuidad: Siguiente + Volver al inicio */
.bn-next { background: #fff; border-top: 1px solid var(--bn-line); }
.bn-next ul { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; padding: 20px 0 32px; list-style: none; }
@media (min-width: 640px) { .bn-next ul { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 0 40px; } }
.bn-next a { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 600; color: var(--bn-brand-700); text-decoration: underline; text-decoration-color: var(--bn-brand-300); text-underline-offset: 5px; }
.bn-next a.bn-next-main { font-family: 'Newsreader', Georgia, serif; font-optical-sizing: auto; font-weight: 400; font-size: 26px; letter-spacing: -.012em; color: var(--bn-ink); }
@media (hover: hover) and (pointer: fine) { .bn-next a:hover { text-decoration-color: currentColor; } }

/* ---------- Volver arriba: solo al subir; oculto = no enfocable ---------- */
#toTop { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); visibility: hidden; transition: opacity .2s var(--bn-ease-out), transform .2s var(--bn-ease-out), visibility 0s linear .2s; }
#toTop.show { visibility: visible; transition-delay: 0s; }
@media (min-width: 640px) { #toTop { right: 24px; bottom: 24px; } }

/* ---------- Movimiento (todo dentro de no-preference) ---------- */
@keyframes bn-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes bn-photo { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes bn-rise-sm { from { opacity: 0; transform: translateY(10px); } }
@keyframes bn-drop { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) {
  /* Inicio: la entrada de la portada es el único momento protagonista */
  .bn-in { animation: bn-rise .7s var(--bn-ease-out) backwards; }
  .bn-in-2 { animation-delay: 90ms; }
  .bn-in-3 { animation: bn-photo .9s var(--bn-ease-out) 180ms backwards; }
  /* Detalle: llegada de migas, título, frase e índice (≤ 600 ms en total) */
  .bn-phead .bn-crumbs, .bn-phead .bn-h1, .bn-phead .bn-lede, .bn-dgrid > .bn-toc { animation: bn-rise-sm .42s var(--bn-ease-out) backwards; }
  .bn-phead .bn-h1 { animation-delay: 60ms; }
  .bn-phead .bn-lede { animation-delay: 120ms; }
  .bn-dgrid > .bn-toc { animation-delay: 180ms; }
  html.vt-hilo .bn-phead .bn-h1 { animation: none; }
  /* Respuestas: acordeón del panel */
  .mgrp-sub:not([hidden]) { animation: bn-drop .2s var(--bn-ease-out); }

  /* Cambio de página: fundido con cabecera estable; hilo del título desde el inicio */
  @view-transition { navigation: auto; }
  #header { view-transition-name: site-header; }
  .bn-h1 { view-transition-name: titulo; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
  ::view-transition-group(titulo) { animation-duration: .3s; animation-timing-function: var(--bn-ease-in-out); }
  ::view-transition-old(titulo), ::view-transition-new(titulo) { animation-duration: .3s; }
}

/* fase 2A: que-hacemos.html y donde-servimos.html (solo dentro de .bn-read) */
/* Indicadores de Guatemala como filas con línea, sin tarjeta ni sombra */
.bn-read .bn-stats { gap: 0 24px; margin-top: 28px; border-bottom: 1px solid var(--bn-line); }
.bn-read .bn-stat { border-radius: 0; background: none; box-shadow: none; padding: 16px 0 18px; border-top: 1px solid var(--bn-line); }
@media (min-width: 1024px) { .bn-read .bn-stats { gap: 0 24px; } }
/* Lugar bajo el nombre de la comunidad */
.bn-read .bn-block > .bn-h2 + .bn-sub { margin: -12px 0 20px; font-size: 16px; color: var(--bn-muted); }
/* Ritmo: frase del mapa, mapa, lista de lugares, "Nuestra labor en la comunidad" */
.bn-read .bn-gap { margin-top: 36px; }
.bn-read .bn-map { margin-top: 24px; }
.bn-read .bn-map img { max-width: 100%; }
.bn-read .bn-subhead + .bn-places { margin-top: 16px; }
.bn-read .bn-prose .bn-h5 { margin-top: 32px; }
.bn-read .bn-prose .bn-h5 + p { margin-top: 8px; }
/* fin fase 2A */

/* fase 2B: dona.html, involucrate.html y contacto.html */
/* Páginas sin índice: una sola columna */
@media (min-width: 1024px) { .bn-dgrid-solo { grid-template-columns: minmax(0, 1fr); } }
/* dona.html: sin frase bajo el h1, Donación general sube a la primera pantalla */
.bn-phead-solo { padding-bottom: 28px; }
@media (min-width: 1024px) { .bn-phead-solo { padding-bottom: 56px; } }
.bn-dbody-dona { padding-top: 28px; }
@media (min-width: 1024px) { .bn-dbody-dona { padding-top: 72px; } }
.bn-read-wide { max-width: none; }
.bn-give-p { margin-top: 14px; }
.bn-read-wide .bn-give-grid { gap: 32px; }
@media (min-width: 1024px) { .bn-read-wide .bn-give-grid { gap: 72px; } .bn-read-wide .bn-quote { padding-bottom: 6px; } }
.bn-read-wide .bn-note { margin-top: 0; }
@media (min-width: 768px) { .bn-read-wide .bn-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 32px 0; } }
@media (min-width: 1024px) { .bn-read-wide .bn-row { gap: 56px; } }
.bn-read-wide .bn-row .bn-link { margin-top: 8px; }
.bn-inline { padding: 12px 0; color: var(--bn-brand-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--bn-brand-300); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .bn-inline:hover { text-decoration-color: var(--bn-brand-700); } }
/* Enlace secundario de la banda: texto largo; en móvil se ve "Escríbenos" y el nombre accesible sigue completo */
.bn-t-short { display: none; }
@media (max-width: 639.98px) {
  .bn-band-actions .bn-link { align-self: center; }
  .bn-t-long { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .bn-t-short { display: inline; }
}
/* involucrate.html: tres bloques con línea */
.bn-ways-page .bn-part { padding: 32px 0 28px; }
.bn-ways-page .bn-part > p { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--bn-body); }
.bn-ways-page .bn-part > .bn-link { margin-top: 8px; }
@media (min-width: 1024px) { .bn-ways-page .bn-part { padding: 40px 0 36px; } }
/* contacto.html: datos a la izquierda (columna del índice en las demás páginas), formulario a la derecha */
.bn-ctp { display: grid; gap: 36px; }
.bn-ctp-data { display: grid; gap: 20px; align-content: start; }
.bn-ctp-mail { display: flex; align-items: center; gap: 12px; }
.bn-ctp-mail .bn-ct-mail { font-size: 16px; }
.bn-ctp-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bn-ctp-form { max-width: 46rem; }
.bn-ctp-hint { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--bn-body); }
@media (min-width: 1024px) {
  .bn-ctp { grid-template-columns: 13rem minmax(0, 1fr); gap: 72px; align-items: start; }
  .bn-ctp-data { position: sticky; top: 112px; padding-top: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Respuesta del formulario: el error aparece con un leve descenso */
  .err:not([hidden]) { animation: bn-drop .2s var(--bn-ease-out); }
}
/* fin fase 2B */

/* ronda de corrección (B022) */
/* Foco de los campos del formulario: contorno de 2 px (antes solo borde de 1 px) */
#contactForm .fld:focus, #contactForm .fld:focus-visible { outline: 2px solid #126994; outline-offset: 2px; }
#contactForm .fld[aria-invalid="true"]:focus { outline-color: #b42318; }
/* fin ronda de corrección */

/* Giving Tuesday: tarjeta y burbuja */
.gt-sky { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(#9fd6ee, #e8f6fb); padding: 12px 6px 6px; }
.gt-balloon { width: 100%; max-width: 128px; height: auto; animation: gtbob 2.4s ease-in-out 2; }
@media (min-width: 1024px) { .gt-balloon { height: 140px; } }
.gt-mini { width: 46px; height: 46px; }
.gt-btn { background: #c81f2b; }
.gt-btn:hover { background: #a81722; }
.gt .pulse-card, .gt .pulse-card::before, .bubble.gt .b-open::before, .bubble.gt .b-mini::before { animation-iteration-count: 2; }
.gt .pulse-card::before, .bubble.gt .b-open::before, .bubble.gt .b-mini::before { border-color: #dc2430; }
@keyframes gtbob { 50% { transform: translateY(-7px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .gt-balloon, .gt .pulse-card, .gt .pulse-card::before, .bubble.gt, .bubble.gt * , .bubble.gt *::before { animation: none !important; transition: none !important; } }

/* foto de portada del inicio */
.bn-portada { height: clamp(240px, 52vw, 620px); }

/* Boton de idioma en telefonos */
@media (max-width: 479px) {
  header .bn-logo { gap: 6px; }
  header .bn-logo img { width: 32px; height: 32px; }
  header .bn-logo span { font-size: 15px; }
  header .bn-lang { width: 34px; }
  header .bn-lang + a + a#hdrDonate { padding-left: 13px; padding-right: 13px; }
  header div:has(> .bn-lang) { gap: 6px; }
}
