/* ============================================================
   Survivors Pathway design system
   Type: Bricolage Grotesque (display) + Instrument Sans (body)
   Radius rule: buttons are pill, cards/media are 14px, small UI is 8px
   Motion: transform/opacity only, all gated by prefers-reduced-motion
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --ink: #072a2e;
  --ink-2: #33585c;
  --teal: #0b7d7a;
  --teal-deep: #085f5e;
  --aqua: #35b8ac;
  --aqua-soft: #9ce8dd;
  --coral: #e0654f;
  --paper: #faf6ef;
  --paper-2: #fffdf8;
  --white: #ffffff;
  --mist: #eaf4f1;
  --line: rgba(7, 42, 46, 0.12);
  --shadow: 0 26px 80px rgba(7, 42, 46, 0.14);
  --soft-shadow: 0 12px 38px rgba(7, 42, 46, 0.08);
  --radius-card: 14px;
  --radius-small: 8px;
  --max: 1220px;

  /* Bienestar sub-brand */
  --b-ink: #1c1145;
  --b-azure: #14a5dc;
  --b-violet: #7c5ce0;
  --b-magenta: #e23b8e;
  --b-sun: #ffb447;
  --b-paper: #fdfbff;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  color-scheme: light;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 480px);
  color: var(--ink);
  line-height: 1.58;
  font-size: 16.5px;
  max-width: 100%;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-sentinel,
.actions-sentinel {
  position: absolute;
  width: 1px;
  height: 1px;
}

.actions-sentinel {
  position: relative;
  height: 90vh;
  width: 0;
  float: left;
  margin-bottom: -90vh;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-small);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.04;
  margin: 0;
  font-weight: 720;
  letter-spacing: -0.005em;
}

h3 {
  line-height: 1.2;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 650;
}

h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  max-width: 17ch;
}

h2 {
  font-size: clamp(1.95rem, 3.3vw, 2.95rem);
  max-width: 24ch;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.path-flourish {
  display: block;
  width: 82px;
  height: 12px;
  margin: 14px 0 0;
  color: var(--aqua);
}

.section-heading .path-flourish {
  margin-bottom: 4px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--white);
  box-shadow: 0 14px 34px rgba(11, 125, 122, 0.28);
}

.button-primary:hover {
  box-shadow: 0 20px 44px rgba(11, 125, 122, 0.36);
}

.button-light {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-color: rgba(7, 42, 46, 0.12);
  box-shadow: 0 10px 26px rgba(7, 42, 46, 0.08);
}

.button-ghost {
  background: transparent;
  border-color: rgba(7, 42, 46, 0.22);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--teal);
  background: rgba(11, 125, 122, 0.06);
}

.text-link {
  color: var(--teal);
  font-weight: 650;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.text-link:hover {
  color: var(--teal-deep);
}

.text-link.quiet {
  color: var(--ink-2);
}

.text-link.quiet:hover {
  color: var(--teal);
}

/* ------------------------------------------------------------
   Header + navigation
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(7, 42, 46, 0.06);
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(22px) saturate(1.3);
  transition: box-shadow 260ms ease, background 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 40px rgba(7, 42, 46, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand-copy small {
  color: var(--ink-2);
  font-size: 0.74rem;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.primary-nav > a,
.nav-group-toggle {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 13px;
  text-decoration: none;
  color: rgba(7, 42, 46, 0.84);
  font-size: 0.95rem;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"],
.nav-group:hover .nav-group-toggle,
.nav-group.is-open .nav-group-toggle,
.nav-group.is-active-branch .nav-group-toggle {
  background: rgba(11, 125, 122, 0.09);
  color: var(--ink);
}

.nav-group {
  position: relative;
}

.nav-group-toggle svg {
  width: 10px;
  height: 6px;
  transition: transform 200ms ease;
}

.nav-group.is-open .nav-group-toggle svg {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 220px;
  display: grid;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 24px 60px rgba(7, 42, 46, 0.16);
  opacity: 0;
  transform: translate(-50%, -6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 180ms;
}

.nav-group.is-open .nav-submenu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

@media (hover: hover) and (min-width: 981px) {
  .nav-group:hover .nav-submenu,
  .nav-group:focus-within .nav-submenu {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }
}

.nav-submenu a {
  padding: 10px 14px;
  border-radius: var(--radius-small);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 550;
  color: rgba(7, 42, 46, 0.86);
}

.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  background: rgba(11, 125, 122, 0.09);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(7, 42, 46, 0.16);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-width: 40px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 18px;
}

.nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.45);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-extras {
  display: none;
}

/* ------------------------------------------------------------
   Home hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.86) 30%, rgba(255, 253, 248, 0.3) 58%, rgba(255, 253, 248, 0.02) 82%),
    linear-gradient(0deg, rgba(250, 246, 239, 0.9), rgba(250, 246, 239, 0.05) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  padding: 120px clamp(24px, 6vw, 96px) 40px;
}

.hero-subtitle {
  max-width: 32rem;
  margin: 20px 0 26px;
  color: rgba(7, 42, 46, 0.76);
  font-size: 1.12rem;
}

.safety-note {
  max-width: 34rem;
  margin: 20px 0 0;
  color: rgba(7, 42, 46, 0.64);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.safety-note::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 4px;
  border: 1.5px solid rgba(11, 125, 122, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(11, 125, 122, 0.12);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, calc(100% - clamp(48px, 12vw, 192px)));
  margin: 34px clamp(24px, 6vw, 96px) 56px;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(7, 42, 46, 0.1);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 48px rgba(7, 42, 46, 0.1);
  backdrop-filter: blur(16px) saturate(1.2);
}

.hero-stats div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 720;
  line-height: 1.05;
}

.hero-stats span {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: rgba(7, 42, 46, 0.66);
}

/* ------------------------------------------------------------
   Sections and shared layout
   ------------------------------------------------------------ */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px clamp(20px, 4vw, 34px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.center .path-flourish {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  color: var(--ink-2);
  margin-bottom: 0;
  font-size: 1.06rem;
}

/* Pillars: asymmetric bento */

.pillars-section {
  padding-top: 72px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 125, 122, 0.24);
  box-shadow: 0 26px 70px rgba(7, 42, 46, 0.13);
}

.pillar-1 { grid-column: span 7; }
.pillar-2 { grid-column: span 5; }
.pillar-3 { grid-column: span 5; }
.pillar-4 { grid-column: span 7; }

.pillar-media {
  height: 190px;
  overflow: hidden;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.pillar-card:hover .pillar-media img {
  transform: scale(1.035);
}

.pillar-body {
  display: grid;
  gap: 10px;
  padding: 28px;
  align-content: start;
  flex: 1;
}

.pillar-card:not(:has(.pillar-media)) .pillar-body {
  align-content: center;
}

.pillar-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.pillar-card p {
  margin: 0;
  color: var(--ink-2);
}

.pillar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
}

/* Process band with drawn pathway */

.band {
  max-width: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(53, 184, 172, 0.18), transparent 32%),
    linear-gradient(135deg, #07282c, #0a4a4a 62%, #14584b);
  color: var(--white);
}

.band > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.band .eyebrow {
  color: var(--aqua-soft);
}

.band .path-flourish {
  color: var(--aqua-soft);
}

.band h2 {
  color: var(--white);
}

.band p,
.band .section-heading p,
.band .check-list {
  color: rgba(255, 255, 255, 0.85);
}

.process-track {
  position: relative;
  max-width: var(--max);
}

.process-path {
  position: absolute;
  top: 16px;
  left: 4%;
  width: 92%;
  height: 60px;
  color: var(--aqua);
  opacity: 0.85;
}

.process-path path.is-drawn {
  transition: stroke-dashoffset 1900ms cubic-bezier(0.4, 0, 0.2, 1);
  stroke-dashoffset: 0 !important;
}

.step-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 58px;
}

.step-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.09);
  padding: 26px;
  position: relative;
}

.step-node {
  position: absolute;
  top: -46px;
  left: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 6px rgba(53, 184, 172, 0.22);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--white);
}

.step-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
}

/* Editorial split */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.image-panel {
  height: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-panel img,
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.image-panel:hover img,
.page-hero-image:hover img {
  transform: scale(1.02);
}

.content-panel {
  max-width: 600px;
}

.content-panel > p {
  color: var(--ink-2);
}

.service-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.service-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 16px;
  align-items: start;
}

.service-row span {
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(224, 101, 79, 0.14);
}

.service-row h3 {
  margin-bottom: 6px;
}

.service-row p,
.service-card p,
.info-card p,
.appointment-card p {
  margin: 0;
  color: var(--ink-2);
}

/* Partner rail */

.partners-section {
  padding-top: 30px;
  padding-bottom: 44px;
  overflow: hidden;
}

.partners-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 12px;
}

.partners-intro h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
}

.partners-intro p {
  margin: 0;
  color: var(--ink-2);
}

.partner-rail {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.partner-track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
  width: max-content;
  padding: 24px 0;
  animation: partner-scroll 28s linear infinite;
}

.partner-rail:hover .partner-track {
  animation-play-state: paused;
}

.partner-mark {
  display: grid;
  place-items: center;
  width: 156px;
  height: 74px;
  flex: 0 0 auto;
}

.partner-mark img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

/* Community work */

.community-section {
  max-width: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(224, 101, 79, 0.09), transparent 30%),
    linear-gradient(180deg, #fffdf8, #edf7f3);
}

.community-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.community-photo {
  aspect-ratio: 0.94;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #dfeee9;
  box-shadow: var(--shadow);
}

.community-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 700ms ease;
}

.community-photo:hover img {
  transform: scale(1.02);
}

.community-copy {
  max-width: 640px;
}

.community-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.community-copy > p {
  color: var(--ink-2);
  font-size: 1.06rem;
}

.community-items {
  display: grid;
  margin-top: 28px;
}

.community-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(7, 42, 46, 0.12);
}

.community-item:last-child {
  border-bottom: 1px solid rgba(7, 42, 46, 0.12);
}

.community-marker {
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(224, 101, 79, 0.14);
}

.community-item h3 {
  margin-bottom: 5px;
  font-size: 1.12rem;
}

.community-item p {
  margin: 0;
  color: var(--ink-2);
}

/* Quote carousel */

.quote-band {
  max-width: none;
  background: linear-gradient(180deg, var(--mist), #f6fbf8);
}

.quote-shell {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.quote-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.quote-stage {
  display: grid;
  min-height: 150px;
}

.quote-slide {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
}

.quote-slide::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 3rem;
  line-height: 0.6;
  margin-bottom: 18px;
  color: var(--aqua);
}

.quote-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.quote-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 42, 46, 0.2);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.quote-dots button[aria-current="true"] {
  background: var(--teal);
  transform: scale(1.25);
}

/* Info / location cards */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  padding: 26px;
  box-shadow: var(--soft-shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(7, 42, 46, 0.12);
}

.info-card.has-map {
  grid-template-columns: minmax(0, 0.72fr) minmax(220px, 1fr);
  align-items: stretch;
  gap: 18px;
}

.info-card > span {
  color: var(--teal);
  font-weight: 700;
}

.info-card a {
  color: var(--ink);
  font-weight: 600;
}

.map-preview {
  grid-row: 1 / span 3;
  grid-column: 2;
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border-radius: var(--radius-small);
  border: 1px solid rgba(7, 42, 46, 0.12);
  background:
    linear-gradient(32deg, transparent 45%, rgba(11, 125, 122, 0.2) 46%, rgba(11, 125, 122, 0.2) 49%, transparent 50%),
    linear-gradient(138deg, transparent 42%, rgba(224, 101, 79, 0.18) 43%, rgba(224, 101, 79, 0.18) 46%, transparent 47%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(135deg, #dfeee9, #f8fbf7);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  text-decoration: none;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(111, 159, 84, 0.22), transparent 18%),
    radial-gradient(circle at 24% 72%, rgba(11, 125, 122, 0.16), transparent 22%);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--teal);
  box-shadow: 0 8px 26px rgba(7, 42, 46, 0.22);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--white);
}

.map-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(7, 42, 46, 0.9);
  padding: 8px 12px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 650;
}

/* Donate strip */

.donate-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.donate-strip h2 {
  margin-bottom: 8px;
}

.donate-strip p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-2);
}

/* ------------------------------------------------------------
   Page heroes
   ------------------------------------------------------------ */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 44px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px clamp(20px, 4vw, 34px) 56px;
}

.page-hero.text-only {
  display: block;
  padding-top: 112px;
  padding-bottom: 56px;
}

.page-hero-copy {
  max-width: 720px;
}

.page-hero-copy h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
}

.page-hero-copy p:not(.eyebrow) {
  color: var(--ink-2);
  max-width: 620px;
  font-size: 1.1rem;
}

.page-hero-copy .hero-actions {
  margin-top: 26px;
}

.page-hero-image {
  height: 480px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-notice {
  margin: 26px 0 0;
  max-width: 560px;
  padding: 14px 18px;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: rgba(224, 101, 79, 0.08);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.page-hero.tone-calm {
  background:
    radial-gradient(circle at 85% 20%, rgba(53, 184, 172, 0.12), transparent 42%),
    transparent;
}

.page-hero.tone-warm {
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 101, 79, 0.1), transparent 42%),
    transparent;
}

.page-hero.tone-justice .eyebrow {
  color: var(--teal-deep);
}

/* ------------------------------------------------------------
   Service grids, timelines, FAQs
   ------------------------------------------------------------ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  padding: 26px;
  box-shadow: var(--soft-shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 125, 122, 0.22);
  box-shadow: 0 22px 60px rgba(7, 42, 46, 0.12);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.timeline-section {
  padding-top: 64px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 760px;
}

.timeline li {
  position: relative;
  padding: 0 0 34px 42px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(11, 125, 122, 0.35), rgba(11, 125, 122, 0.08));
}

.timeline li:last-child::before {
  display: none;
}

.timeline-node {
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--teal);
  background: var(--paper-2);
  box-shadow: 0 0 0 5px rgba(11, 125, 122, 0.1);
}

.timeline h3 {
  margin-bottom: 6px;
}

.timeline p {
  margin: 0;
  color: var(--ink-2);
}

.timeline.compact li {
  padding-bottom: 26px;
}

.faq-section {
  padding-top: 44px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  padding: 18px 22px;
  transition: border-color 200ms ease;
}

details[open] {
  border-color: rgba(11, 125, 122, 0.28);
}

summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

details p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

.band-note {
  margin: 0;
  font-size: 1.15rem;
  max-width: 760px;
}

.compact-band {
  padding-top: 56px;
  padding-bottom: 56px;
}

.compact-band h2 {
  margin-bottom: 16px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 0;
}

/* ------------------------------------------------------------
   Appointments, donate, about, contact
   ------------------------------------------------------------ */

.appointment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.appointment-card {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  padding: 30px;
  box-shadow: var(--soft-shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}

.appointment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(7, 42, 46, 0.12);
}

.appointment-card h2 {
  font-size: 1.6rem;
}

.appointment-card .button {
  justify-self: start;
}

.pending-note {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(201, 155, 63, 0.16);
  color: #74551d;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 650;
}

.center-note {
  text-align: center;
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--ink-2);
}

.donate-hero {
  padding-bottom: 30px;
}

.donate-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}

.impact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.impact-card,
.donation-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.impact-card {
  display: grid;
  gap: 10px;
  padding: 26px;
  align-content: start;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}

.impact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(7, 42, 46, 0.12);
}

.impact-card strong {
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 2.1rem;
  font-weight: 720;
  line-height: 1;
}

.impact-card p,
.donation-panel p,
.donation-trust-list {
  color: var(--ink-2);
}

.donation-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 20px;
  padding: 30px;
}

.donation-panel h2 {
  font-size: 1.7rem;
}

.donation-panel .button {
  width: 100%;
}

.donation-trust-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.donation-note {
  margin: 0;
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 30px;
}

.founder-copy > p {
  color: var(--ink-2);
  font-size: 1.08rem;
  margin-top: 20px;
}

.founder-quote {
  margin: 0;
  padding: 34px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(11, 125, 122, 0.08), rgba(53, 184, 172, 0.1));
  border: 1px solid rgba(11, 125, 122, 0.16);
}

.founder-quote blockquote {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}

.founder-quote figcaption {
  color: var(--teal-deep);
  font-weight: 650;
  font-size: 0.95rem;
}

.contact-note {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--ink-2);
}

.contact-note p {
  flex-basis: 100%;
  margin: 0;
}

.narrow-section {
  max-width: 820px;
}

.policy-date {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 700;
}

.policy-document {
  display: grid;
  gap: 32px;
}

.policy-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.policy-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-section h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.policy-section p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 0;
}

.policy-list li {
  margin-bottom: 10px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------
   Team directory
   ------------------------------------------------------------ */

.team-directory {
  padding-top: 18px;
}

.team-group {
  margin-top: 34px;
}

.team-group > h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.staff-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.88);
  padding: 16px;
  box-shadow: var(--soft-shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}

.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(7, 42, 46, 0.12);
}

.staff-photo {
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, var(--teal), var(--ink));
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.staff-card h4 {
  margin: 0 0 4px;
  line-height: 1.15;
  font-size: 1rem;
}

.staff-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------
   Bienestar sub-brand
   ------------------------------------------------------------ */

body[data-page="bienestar"] {
  background: var(--b-paper);
}

.b-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 92, 224, 0.35), transparent 42%),
    radial-gradient(circle at 92% 100%, rgba(226, 59, 142, 0.3), transparent 46%),
    linear-gradient(135deg, #221356, var(--b-ink) 55%, #2a0f4d);
  color: var(--white);
  padding: 110px clamp(24px, 6vw, 96px) 90px;
  min-height: min(88vh, 780px);
}

.b-hero-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(20, 165, 220, 0.16), rgba(226, 59, 142, 0.18), rgba(255, 180, 71, 0.12), rgba(124, 92, 224, 0.18), rgba(20, 165, 220, 0.16));
  filter: blur(70px);
  pointer-events: none;
}

.b-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.b-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.b-hero h1 {
  color: var(--white);
  font-size: clamp(2.9rem, 5.6vw, 4.8rem);
  max-width: 14ch;
}

.b-subtitle {
  margin: 20px 0 28px;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.b-hero-media {
  position: relative;
  z-index: 1;
  height: 460px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(12, 5, 40, 0.5);
  transform: rotate(1.5deg);
}

.b-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-button-primary {
  background: linear-gradient(120deg, #c81f74, #5f3fce);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(200, 31, 116, 0.4);
}

.b-button-primary:hover {
  box-shadow: 0 22px 52px rgba(226, 59, 142, 0.5);
}

.b-button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.b-button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.b-marquee {
  overflow: hidden;
  background: #140b33;
  padding: 16px 0;
}

.b-marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: partner-scroll 24s linear infinite;
}

.b-marquee span {
  color: var(--b-sun);
  font-family: var(--font-display);
  font-weight: 720;
  font-size: 1.1rem;
  white-space: nowrap;
}

.b-marquee span:nth-child(3n + 2) {
  color: var(--b-azure);
}

.b-marquee span:nth-child(3n) {
  color: #f06aab;
}

.b-section h2 {
  margin-bottom: 30px;
}

.b-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.b-card {
  position: relative;
  border-radius: 18px;
  background: var(--white);
  padding: 28px 26px 26px;
  border: 1px solid rgba(28, 17, 69, 0.08);
  box-shadow: 0 14px 44px rgba(28, 17, 69, 0.08);
  overflow: hidden;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}

.b-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--b-azure), var(--b-violet), var(--b-magenta));
}

.b-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(28, 17, 69, 0.14);
}

.b-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--b-ink);
}

.b-card p {
  margin: 0;
  color: #4a4468;
}

.b-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.b-chip {
  border-radius: 22px;
  padding: 26px 28px;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(120deg, var(--b-azure), var(--b-magenta)) border-box;
  border: 2px solid transparent;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}

.b-chip:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 20px 54px rgba(28, 17, 69, 0.12);
}

.b-chip h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--b-ink);
}

.b-chip p {
  margin: 0;
  color: #4a4468;
}

.b-uu {
  max-width: none;
  text-align: center;
  background: linear-gradient(120deg, var(--b-ink), #35156b 60%, #531a5e);
  color: var(--white);
  padding-top: 76px;
  padding-bottom: 76px;
}

.b-uu h2 {
  color: var(--white);
  max-width: none;
  margin: 0 auto 14px;
}

.b-uu p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.b-row-list {
  display: grid;
  gap: 0;
  max-width: 860px;
}

.b-row {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(28, 17, 69, 0.1);
}

.b-row:last-child {
  border-bottom: 0;
}

.b-row h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--b-ink);
}

.b-row p {
  margin: 0;
  color: #4a4468;
}

.b-wellness {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.b-wellness .b-row-list {
  max-width: none;
}

.b-wellness-media {
  height: 440px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(28, 17, 69, 0.2);
  transform: rotate(-1.2deg);
}

.b-wellness-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-cta-band {
  max-width: none;
  text-align: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 165, 220, 0.28), transparent 44%),
    linear-gradient(120deg, var(--b-ink), #3c1370);
  color: var(--white);
  padding-top: 84px;
  padding-bottom: 84px;
}

.b-cta-band h2 {
  color: var(--white);
  margin: 0 auto 12px;
}

.b-cta-band p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

body[data-page="bienestar"] .faq-section .section-heading h2 {
  color: var(--b-ink);
}

body[data-page="bienestar"] details {
  border-radius: 18px;
}

body[data-page="bienestar"] summary::after {
  border-color: var(--b-magenta);
}

body[data-page="bienestar"] .path-flourish {
  color: var(--b-magenta);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  display: grid;
  gap: 34px;
  padding: 64px clamp(20px, 4vw, 46px) 92px;
  background:
    radial-gradient(circle at 16% 14%, rgba(11, 125, 122, 0.18), transparent 30%),
    #041d1f;
  color: rgba(255, 255, 255, 0.8);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 40px;
}

.footer-identity p {
  margin: 6px 0;
}

.footer-brand {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
}

.footer-free {
  color: var(--aqua-soft);
  font-weight: 600;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-col {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-col-title {
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 0.94rem;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}

.location-mini {
  display: grid;
  gap: 6px;
}

.location-mini > span {
  color: var(--aqua-soft);
  font-weight: 700;
}

.location-mini strong,
.location-mini a {
  color: var(--white);
  font-weight: 550;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
}

.social-links a:hover {
  color: var(--white);
}

.social-links span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--aqua-soft);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
}

.footer-safety {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.74);
}

/* ------------------------------------------------------------
   Mobile priority actions
   ------------------------------------------------------------ */

.mobile-actions {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 60px rgba(7, 42, 46, 0.25);
  backdrop-filter: blur(14px);
}

.nav-open .mobile-actions {
  display: none;
}

.mobile-actions a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 8px 10px;
  text-decoration: none;
  background: var(--teal);
  color: var(--white);
  font-weight: 650;
}

.fallback {
  padding: 40px;
}

/* ------------------------------------------------------------
   Motion
   ------------------------------------------------------------ */

.reveal {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid rgba(11, 125, 122, 0.4);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms ease, transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-load {
    animation: rise-in 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--load, 0) * 95ms);
  }

  .hero-media img {
    animation: hero-settle 1600ms ease-out both;
  }

  .b-hero-glow {
    animation: glow-spin 26s linear infinite;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

@keyframes glow-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes partner-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes mobile-nav-link-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1460px) {
  .site-header {
    gap: 12px;
    padding-inline: clamp(16px, 3vw, 40px);
  }

  .brand {
    min-width: 190px;
  }

  .brand-copy small {
    display: none;
  }

  .primary-nav > a,
  .nav-group-toggle {
    padding-inline: 10px;
    font-size: 0.92rem;
  }
}

@media (max-width: 1180px) {
  .header-actions .button-ghost {
    display: none;
  }
}

@media (max-width: 980px) {
  body {
    padding-bottom: 74px;
  }

  .site-header {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px 76px 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 18px;
    top: 13px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    color: var(--ink);
  }

  .header-actions {
    display: none;
  }

  .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 10px;
    border: 0 solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 48px rgba(7, 42, 46, 0.12);
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      max-height 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 220ms ease,
      padding 300ms ease,
      transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 300ms;
  }

  .primary-nav.is-open {
    max-height: 640px;
    padding: 10px;
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
    overflow-y: auto;
  }

  .primary-nav.is-open > a,
  .primary-nav.is-open .nav-group,
  .primary-nav.is-open .nav-mobile-extras {
    animation: mobile-nav-link-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .primary-nav > a,
  .nav-group-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius-small);
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-group {
    display: grid;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    transform: none;
    box-shadow: none;
    border: 0;
    background: rgba(11, 125, 122, 0.05);
    border-radius: var(--radius-small);
    margin: 0 0 0 12px;
    max-height: 0;
    padding: 0 8px;
    opacity: 1;
    visibility: hidden;
    transition: max-height 260ms cubic-bezier(0.2, 0.8, 0.2, 1), padding 260ms ease, visibility 0s linear 260ms;
  }

  .nav-group.is-open .nav-submenu {
    max-height: 220px;
    padding: 8px;
    margin: 2px 0 4px 12px;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-mobile-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 14px;
  }

  .hero {
    min-height: 640px;
    align-items: end;
  }

  .hero-media img {
    object-position: 78% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.58)),
      linear-gradient(0deg, rgba(250, 246, 239, 0.88), rgba(250, 246, 239, 0.08));
  }

  .hero-content {
    padding: 88px 20px 28px;
  }

  h1 {
    font-size: clamp(2.35rem, 8.4vw, 3rem);
  }

  h2 {
    font-size: clamp(1.65rem, 6vw, 2.05rem);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 40px);
    margin: 12px 20px 40px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .pillar-1,
  .pillar-2,
  .pillar-3,
  .pillar-4 {
    grid-column: auto;
  }

  .process-path {
    display: none;
  }

  .step-grid {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .step-node {
    display: none;
  }

  .split-section,
  .split-section.reverse,
  .info-grid,
  .appointment-grid,
  .donate-page-grid,
  .impact-card-grid,
  .about-grid,
  .community-inner,
  .partners-intro,
  .page-hero,
  .founder-section,
  .footer-top,
  .b-hero,
  .b-wellness {
    grid-template-columns: 1fr;
  }

  .info-card.has-map {
    grid-template-columns: 1fr;
  }

  .map-preview {
    grid-row: auto;
    grid-column: auto;
    min-height: 200px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .service-grid,
  .staff-grid,
  .footer-links,
  .footer-locations,
  .b-card-grid,
  .b-chip-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-panel,
  .page-hero-image,
  .community-photo {
    height: 340px;
  }

  .community-photo {
    aspect-ratio: auto;
  }

  .page-hero {
    padding-top: 56px;
  }

  .page-hero-copy h1 {
    font-size: clamp(2.2rem, 7.4vw, 2.9rem);
  }

  .donation-panel {
    position: static;
  }

  .donate-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .b-hero {
    padding: 84px 20px 56px;
    min-height: 0;
  }

  .b-hero-media {
    height: 300px;
    transform: none;
  }

  .b-wellness-media {
    height: 300px;
    transform: none;
  }

  .b-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mobile-actions {
    display: none;
  }

  .show-mobile-actions:not(.nav-open) .mobile-actions {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 68px;
    padding-left: 16px;
    padding-right: 70px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    right: 16px;
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding-top: 64px;
  }

  .hero-subtitle,
  .safety-note {
    font-size: 1rem;
  }

  .pillar-body,
  .service-card,
  .info-card,
  .appointment-card {
    padding: 22px;
  }

  .page-hero-image,
  .image-panel {
    height: 280px;
  }

  .quote-slide {
    font-size: 1.15rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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

  .process-path path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}
