/* First screen and "no fixed spot" page (design D2, 1440 and 390). Both are pages over the map (the second screen):
   they scroll on their own, so the page scroll never fights the map's gestures. */
.screen { position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; background: #FFFFFF; color: #111111;
  font-family: var(--bhm-font); -webkit-overflow-scrolling: touch; }
.screen[hidden] { display: none; }
/* The phone sheet under a page over the map is inert and covered; it is built after the page shows, and must not count as a layout shift then. */
body[data-screen="home"] #phone, body[data-screen="away"] #phone { opacity: 0; }
.screen { overflow-x: hidden; }
.np-group > *, .np-group__cards > * { min-width: 0; }
.screen a { color: inherit; }

.pill-ink, .pill-line { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; white-space: nowrap; font-family: inherit; }
.pill-ink { background: #111111; color: #FFFFFF !important; font-weight: 500; }
.pill-line { border: 1px solid #E3E3E3; color: #111111; background: #FFFFFF; }
.pill-ink:focus-visible, .pill-line:focus-visible, .scene:focus-visible, .give-chip:focus-visible, .np-tab:focus-visible,
.site-nav a:focus-visible, .site-nav button:focus-visible, .give-result__locate:focus-visible, .np-group__more:focus-visible { outline: 2px solid #1F5BD8; outline-offset: 2px; }

.site-header { height: 80px; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; }
.site-header__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav__link { text-decoration: none; }
.site-nav__link[aria-current="page"] { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.site-nav__lang { display: none; height: 44px; min-width: 44px; border: 0; background: transparent; font: 400 14px var(--bhm-font); color: #111111; cursor: pointer; }
.site-nav__open { height: 40px; padding: 0 18px; font-size: 15px; }
.site-nav__narrow { display: none; }

.hero { padding: 64px 64px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero__title { margin: 0; font-size: 84px; line-height: 1.02; font-weight: 400; letter-spacing: -0.04em; outline: none; }
.hero__sub { margin: 0; max-width: 620px; font-size: 20px; line-height: 1.5; color: #6B6B6B; }
.hero__actions { display: flex; gap: 12px; margin-top: 6px; }
.hero__cta { height: 58px; padding: 0 28px; font-size: 17px; }
.hero__cta.pill-line { padding: 0 24px; }

.scenes { margin-top: 56px; padding: 0 64px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.scene { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; border-radius: 24px; }
.scene__art { width: 240px; max-width: 100%; height: auto; aspect-ratio: 1; }
.scene__title { font-size: 20px; font-weight: 500; text-align: center; }
.scene__count { font-size: 15px; color: #737373; }

.give { margin: 64px 64px 0; padding: 40px; border-radius: 32px; background: #F7F7F7; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: start; }
.home { padding-bottom: 64px; }
.home-foot { margin: 48px 64px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: #737373; }
.home-foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.home-foot__links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: #111111; text-underline-offset: 3px; }
.home-foot__map { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: #111111; text-underline-offset: 3px; }
.give__head { display: flex; flex-direction: column; gap: 12px; }
.give__title { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 400; letter-spacing: -0.03em; }
.give__sub { margin: 0; font-size: 17px; line-height: 1.5; color: #6B6B6B; }
.give__body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.give__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.give-chip { height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid #E3E3E3; background: #FFFFFF; color: #111111; font: 400 17px var(--bhm-font);
  display: flex; align-items: center; gap: 8px; cursor: pointer; }
.give-chip[aria-pressed="true"] { border-color: #111111; background: #111111; color: #FFFFFF; }
.give-result { padding: 20px 22px; border-radius: 20px; background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.give-result__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.give-result__title { font-size: 19px; font-weight: 500; }
.give-result__detail { font-size: 15px; color: #737373; }
.give-result__locate { padding: 0; min-height: 24px; border: 0; background: none; font: 400 15px var(--bhm-font); color: #737373; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.give-result__map { height: 48px; padding: 0 20px; font-size: 16px; font-weight: 400; }

/* "Sin punto fijo" */
.np { padding-bottom: 64px; }
.np-hero { padding: 56px 64px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.np-hero__title { margin: 0; font-size: 72px; line-height: 1.04; font-weight: 400; letter-spacing: -0.04em; outline: none; }
.np-hero__sub { margin: 0; max-width: 640px; font-size: 20px; line-height: 1.5; color: #6B6B6B; }
.np-tabs { display: flex; gap: 8px; margin-top: 8px; }
.np-tab { height: 44px; padding: 0 16px; flex-shrink: 0; border-radius: 999px; border: 1px solid #E3E3E3; background: #FFFFFF; color: #111111; font: 400 15px var(--bhm-font); white-space: nowrap; cursor: pointer; }
.np-tab[aria-selected="true"] { border-color: #111111; background: #111111; color: #FFFFFF; }
.np-group { padding: 48px 64px 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.np-group__head { display: flex; flex-direction: column; gap: 10px; }
.np-group__art { width: 200px; height: 200px; }
.np-group__titles { display: flex; flex-direction: column; gap: 10px; }
.np-group__title { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; }
.np-group__count { font-size: 15px; color: #737373; }
.np-group__text { margin: 0; font-size: 15px; line-height: 1.5; color: #6B6B6B; }
.np-group__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.np-group__more { display: none; }
.np-card { padding: 20px; border-radius: 24px; border: 1px solid #EDEDED; background: #FFFFFF; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.np-card__org { display: flex; align-items: center; gap: 10px; min-width: 0; }
.np-card__mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.np-card__name { font-size: 14px; line-height: 1.35; color: #6B6B6B; overflow-wrap: anywhere; }   /* the full name, on two lines if needed */
.np-card__title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.np-card__meta { font-size: 14px; color: #737373; }
.np-card__cta { margin-top: auto; height: 44px; font-size: 15px; }
.np-empty { margin: 48px 64px 0; font-size: 17px; color: #6B6B6B; }
.np-foot { margin: 48px 64px 0; font-size: 13px; color: #737373; }

/* Map filter chosen on the first screen: shown above the list, removable. */
.filter-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0 0 8px; padding: 0 8px 0 14px; border-radius: 999px; border: 0; background: var(--bhm-ink); color: #FFFFFF; font: 500 14px var(--bhm-font); cursor: pointer; }

@media (max-width: 1180px) and (min-width: 640px) {
  .scenes { padding: 0 32px; }
  .scene__art { width: 180px; }
  .give { grid-template-columns: minmax(0, 1fr); margin: 48px 32px 0; }
  .np-group { grid-template-columns: minmax(0, 1fr); padding: 40px 32px 0; }
  .np-group__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__title { font-size: 64px; }
}

@media (max-width: 639px) {
  .site-header { height: 60px; padding: 0 16px; }
  .site-header__brand .brand-plaque, .site-header__brand .brand-city { display: none; }
  .site-header__brand .brand-compact { display: flex; }
  .site-nav { gap: 4px; }
  .site-nav__link { display: none; }
  .site-nav__lang { display: block; }
  .site-nav__open { height: 44px; padding: 0 16px; font-size: 14px; }
  .site-nav__wide { display: none; }
  .site-nav__narrow { display: inline; }

  .hero { padding: 36px 16px 0; gap: 16px; }
  .hero__title { font-size: 44px; line-height: 1.04; }
  .hero__break { display: none; }
  .hero__sub { font-size: 17px; }
  .hero__actions { width: 100%; flex-direction: column; gap: 10px; margin-top: 4px; }
  .hero__cta, .hero__cta.pill-line { height: 54px; padding: 0; }

  .scenes { margin-top: 36px; padding: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scene { min-height: 44px; padding: 12px 8px 16px; border: 1px solid #EFEFEF; gap: 6px; }
  .scene:last-child:nth-child(odd) { grid-column: span 2; }
  .scene__art { width: 150px; }
  .scene__title { font-size: 16px; }
  .scene__count { font-size: 13px; }

  .give { margin: 36px 16px 0; padding: 22px 18px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px; }
  .give__title { font-size: 30px; line-height: 1.08; }
  .give__sub { display: none; }
  .give__body { gap: 14px; }
  .give__chips { gap: 8px; }
  .give-chip { height: 44px; padding: 0 14px; font-size: 15px; gap: 6px; }
  .give-chip svg { width: 18px; height: 18px; }
  .give-result { padding: 16px; border-radius: 18px; flex-direction: column; align-items: stretch; gap: 12px; }
  .give-result__title { font-size: 17px; }
  .give-result__detail, .give-result__locate { font-size: 14px; line-height: 1.4; }
  .give-result__locate { min-height: 44px; }
  .home { padding-bottom: 36px; }
  .home-foot { margin: 32px 16px 0; }

  .np-hero { padding: 32px 16px 0; align-items: flex-start; text-align: left; }
  .np-hero__title { font-size: 40px; }
  .np-hero__sub { font-size: 16px; }
  .np-tabs { overflow-x: auto; width: 100%; margin-top: 0; }
  .np-group { padding: 32px 16px 0; display: flex; flex-direction: column; gap: 14px; }
  .np-group__head { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 14px; }
  .np-group__art { width: 96px; height: 96px; }
  .np-group__titles { gap: 4px; }
  .np-group__title { font-size: 24px; }
  .np-group__count { font-size: 14px; }
  .np-group__text { grid-column: 1 / -1; }
  .np-group__cards { display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .np-group[data-open="false"] .np-card:nth-child(n+3) { display: none; }
  .np-group__more { display: flex; align-items: center; height: 44px; padding: 0; border: 0; background: none; font: 400 15px var(--bhm-font); color: #111111; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .np-empty { margin: 32px 16px 0; }
  .np-foot { margin: 32px 16px 0; }
  .np { padding-bottom: 32px; }
}
