/* =====================================================================
   MENTE BELLA — Design System
   "El arte enciende la mente." Light, airy, premium. See DESIGN.md.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0E1B3D;
  --ink-soft:   #41507A;
  --ink-faint:  #6B789E;

  --blue:       #2C5BD8;
  --blue-bright:#3E7BF0;
  --azure:      #8FB6FF;
  --crystal:    #D9E6FF;
  --crystal-2:  #BFD4FF;

  --gold:       #FFC247;
  --gold-deep:  #F2A93B;

  --coral:      #FF6B5C;
  --coral-soft: #FF8B7E;

  --cream:      #FFFDF8;
  --sand:       #FBF4E6;
  --paper:      #FFFFFF;
  --line:       #ECE6D8;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 3rem);

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-soft: 0 14px 40px -28px rgba(28,55,120,.20);
  --shadow-lift: 0 22px 56px -34px rgba(28,55,120,.26);
  --shadow-card: 0 8px 22px -18px rgba(28,55,120,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.32,.72,0,1);

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.96rem, .94rem + .12vw, 1.04rem);
  --step-1:  clamp(1.06rem, .99rem + .32vw, 1.25rem);
  --step-2:  clamp(1.32rem, 1.16rem + .68vw, 1.8rem);
  --step-3:  clamp(1.6rem, 1.32rem + 1.25vw, 2.4rem);
  --step-4:  clamp(1.95rem, 1.55rem + 1.85vw, 2.95rem);
  --step-5:  clamp(2.35rem, 1.85rem + 2.6vw, 3.8rem);

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: linear-gradient(165deg, #FFEAB8 0%, #DFE9FF 16%, #FFEED2 37%, #DEE8FF 57%, #FFEBC6 77%, #E2EBFF 100%) fixed;
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

::selection { background: var(--gold); color: var(--ink); }

/* Background grain (fixed, pointer-events-none) — physical paper feel */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }
.maxw-narrow { max-width: 760px; }
.measure { max-width: 62ch; }
.section { padding-block: clamp(2.4rem, 2rem + 2.1vw, 4.25rem); position: relative; }
.section--sand { background: transparent; }
.section--tight { padding-block: clamp(1.6rem, 1.4rem + 1.2vw, 2.6rem); }
.center { text-align: center; }
.center .measure { margin-inline: auto; }
.stack > * + * { margin-top: .9rem; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; font-weight: 400; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: var(--step--1); }

/* Eyebrow — minimal uppercase label (no dash, no pill) */
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(.64rem, .62rem + .08vw, .72rem);
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--blue); padding: 0; background: none; border: none;
}
.eyebrow--gold { color: var(--gold-deep); }
.center .eyebrow, .eyebrow.is-centered { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .66em 1.15em;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .88rem; line-height: 1;
  white-space: nowrap;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 6px 16px -12px color-mix(in srgb, var(--btn-bg) 65%, transparent);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--btn-bg) 60%, transparent); }
.btn:active { transform: translateY(0) scale(.985); }
.btn__icon {
  display: inline-flex; align-items: center; justify-content: center; opacity: .85;
  transition: transform .35s var(--ease-spring);
}
.btn__icon svg { width: .92em; height: .92em; }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--blue-bright); }
.btn--gold, .btn--donate { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover, .btn--donate:hover { --btn-bg: var(--gold-deep); }
.btn--ghost {
  --btn-fg: var(--ink); background: transparent; color: var(--ink); box-shadow: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 26%, transparent); }
.btn--lg { font-size: .96rem; padding: .8em 1.4em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* Text link with drawn underline */
.tlink { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--blue); position: relative; }
.tlink::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--gold-deep); transition: right .4s var(--ease); }
.tlink:hover::after { right: 0; }
.tlink svg { width: 1em; height: 1em; transition: transform .35s var(--ease-spring); }
.tlink:hover svg { transform: translateX(3px); }

/* ---------- Bezel / Doppelrand cards ---------- */
.bezel {
  background: color-mix(in srgb, var(--ink) 4%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  padding: 7px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  height: 100%;
}
.bezel__core {
  background: var(--paper);
  border-radius: calc(var(--r-lg) - 7px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  padding: clamp(1.2rem, .9rem + 1.1vw, 1.65rem);
  height: 100%;
  display: flex; flex-direction: column; gap: .6rem;
}
a.bezel, .bezel--hover { cursor: pointer; }
a.bezel:hover, .bezel--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

/* ---------- Nav ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color:#fff; padding: .7em 1em; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }

.nav {
  position: fixed; inset: 1rem 0 auto; z-index: 60;
  display: flex; justify-content: center; pointer-events: none;
  animation: navDrop .8s var(--ease) both;
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.nav__inner {
  pointer-events: auto;
  width: min(var(--maxw), calc(100% - 2rem));
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem .65rem .55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(112deg, rgba(255,237,202,.74) 0%, rgba(255,253,248,.72) 46%, rgba(225,236,255,.74) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 10px 30px -20px rgba(28,55,120,.4);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}
.nav--scrolled .nav__inner { box-shadow: 0 16px 40px -22px rgba(28,55,120,.5); background: linear-gradient(112deg, rgba(255,241,213,.88) 0%, rgba(255,253,248,.86) 46%, rgba(228,238,255,.88) 100%); }
.nav__brand { display: flex; align-items: center; gap: .65rem; white-space: nowrap; flex: 0 0 auto; }
.nav__brand span { font-family: var(--font-display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink); }
.nav__right { flex: 0 0 auto; }
.nav__brand img { width: 40px; height: 40px; border-radius: 999px; transition: transform .45s var(--ease-spring); box-shadow: 0 4px 12px -3px rgba(28,55,120,.3); animation: logoPulse 3.6s ease-in-out infinite; }
.nav__brand:hover img { transform: rotate(-4deg) scale(1.07); }
@keyframes logoPulse { 0% { box-shadow: 0 4px 12px -3px rgba(28,55,120,.3), 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 70%, 100% { box-shadow: 0 4px 12px -3px rgba(28,55,120,.3), 0 0 0 10px color-mix(in srgb, var(--gold) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .nav__brand img { animation: none; } }
.nav__links { display: flex; align-items: center; gap: .2rem; margin-inline: auto; }
.nav__links a {
  position: relative; padding: .5em .55em; font-weight: 500; font-size: .94rem; color: var(--ink-soft); white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__links a::after { content: ""; position: absolute; left: .14em; right: .14em; bottom: .1em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--coral), var(--gold-deep)); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: .5rem; }

.langtoggle { display: inline-flex; align-items: center; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); padding: 3px; font-size: .8rem; font-weight: 600; }
.langtoggle button { padding: .35em .7em; border-radius: 999px; color: var(--ink-faint); transition: color .25s, background-color .25s; }
.langtoggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-card); }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 999px; position: relative; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-spring), opacity .25s var(--ease); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 27px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile overlay menu — premium frosted panel in the page's own warm gradient */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column;
  justify-content: center; gap: .15rem; padding: 7rem var(--pad) 3rem;
  background:
    linear-gradient(158deg, rgba(255,234,184,.9) 0%, rgba(223,233,255,.86) 30%, rgba(255,238,210,.9) 60%, rgba(226,235,255,.92) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(1.55); backdrop-filter: blur(30px) saturate(1.55);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 8.5vw, 2.7rem);
  letter-spacing: -.015em; line-height: 1.18;
  color: var(--ink); padding: .14em 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease-spring), color .25s var(--ease);
}
/* Nav links: a leading brand bar + full gradient text when it's the current page */
.mobile-menu a:not(.btn) { position: relative; padding-left: 1.05rem; }
.mobile-menu a:not(.btn)::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0); transform-origin: center;
  width: 5px; height: 58%; border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--coral), var(--gold-deep));
  transition: transform .4s var(--ease-spring);
}
.mobile-menu a:not(.btn):hover { color: var(--blue); }
.mobile-menu a:not(.btn)[aria-current="page"] {
  background: linear-gradient(100deg, var(--blue) 0%, var(--coral) 54%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mobile-menu a:not(.btn)[aria-current="page"]::before { transform: translateY(-50%) scaleY(1); }
body.menu-open .mobile-menu a { opacity: 1; transform: none; transition-delay: calc(var(--i,0) * 60ms + 120ms); }
.mobile-menu .btn { align-self: flex-start; margin-top: 1.5rem; font-size: 1.3rem; padding: .72em 1.5em; }
.mobile-menu__note {
  align-self: flex-start; max-width: 26ch; margin-top: .85rem;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem; line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease-spring);
}
body.menu-open .mobile-menu__note { opacity: 1; transform: none; transition-delay: calc(var(--i,0) * 60ms + 120ms); }
.mobile-menu .langtoggle { align-self: flex-start; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(6.5rem, 5.5rem + 4.5vw, 9rem); padding-bottom: clamp(2.75rem, 2.25rem + 2.6vw, 4.5rem); overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__sky { position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 8%, color-mix(in srgb, var(--gold) 36%, transparent), transparent 55%),
    radial-gradient(90% 70% at 12% 0%, color-mix(in srgb, var(--azure) 46%, transparent), transparent 52%),
    radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--crystal) 50%, transparent), transparent 60%);
}
/* The ambient light field is one fixed canvas created in js/brain.js (#mb-field, behind content). */

/* Photo media — curated, consistent treatment */
.photo { position: relative; overflow: hidden; height: 100%; min-height: 100%; }
.photo { overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.bezel:hover .photo img { transform: scale(1.05); }
.photo__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--ink) 50%, transparent)); pointer-events: none; }
.photo__chip { position: absolute; bottom: .85rem; left: .9rem; z-index: 2; }
.photo__cap { position: absolute; bottom: .9rem; left: 1rem; right: 1rem; z-index: 2; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* Map card (real static Tulum map + animated pin) */
.mapcard__pinwrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); z-index: 3; }
.mapcard__pin { position: relative; z-index: 2; filter: drop-shadow(0 5px 7px rgba(0,0,0,.35)); }
.mapcard__ping { position: absolute; left: 50%; bottom: 2px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: color-mix(in srgb, var(--coral) 55%, transparent); z-index: 1; animation: mapping 2.6s ease-out infinite; }
@keyframes mapping { 0% { transform: scale(.4); opacity: .75; } 80% { opacity: 0; } 100% { transform: scale(4); opacity: 0; } }
.mapcard__label { position: absolute; bottom: .85rem; left: .9rem; z-index: 4; background: rgba(255,253,248,.95); color: var(--ink); padding: .4em .85em; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; box-shadow: var(--shadow-card); }
.mapcard__attr { position: absolute; bottom: .35rem; right: .45rem; z-index: 4; font-size: .54rem; color: rgba(20,30,60,.62); background: rgba(255,255,255,.55); padding: .15em .4em; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .mapcard__ping { animation: none; } }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__copy { max-width: 40ch; }
.hero h1 { font-size: var(--step-5); margin-top: .6rem; line-height: 1.04; }
.hero h1 .ink-grad { background: linear-gradient(100deg, var(--blue) 10%, var(--coral) 55%, var(--gold-deep) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 1.1rem; font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; max-width: 46ch; }
.hero__cta { margin-top: 1.6rem; }
.hero__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero__art img { width: min(100%, 400px); filter: drop-shadow(0 30px 50px rgba(28,55,120,.24)); }
.hero__copy > * { animation: heroIn .85s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: .06s; }
.hero__copy > *:nth-child(2) { animation-delay: .18s; }
.hero__copy > *:nth-child(3) { animation-delay: .3s; }
.hero__copy > *:nth-child(4) { animation-delay: .42s; }
.hero__art { animation: heroIn 1.1s var(--ease) .26s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(-8px) } 50%{ transform: translateY(8px) } }

/* page header (interior pages) */
.pagehead { position: relative; padding-top: clamp(6.5rem, 5.5rem + 4.5vw, 9rem); padding-bottom: clamp(1.75rem, 1.5rem + 1.8vw, 3.25rem); overflow: clip; }
.pagehead__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(100% 70% at 85% -10%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 55%),
              radial-gradient(80% 70% at 5% 0%, color-mix(in srgb, var(--azure) 34%, transparent), transparent 50%); }
.section--sand + .section, .pagehead + .section--sand { } /* rhythm hook */

/* ---------- Pillars grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.pillar .ico, .feature .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--blue);
  background: linear-gradient(150deg, color-mix(in srgb, var(--azure) 52%, var(--paper)), color-mix(in srgb, var(--gold) 30%, var(--paper)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 7px 18px -9px rgba(28,55,120,.3); margin-bottom: .5rem;
  transition: transform .45s var(--ease-spring); }
.grid--4 .bezel, .grid--3 .bezel { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.grid--4 .bezel:hover, .grid--3 .bezel:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); }
.grid--4 .bezel:hover .ico, .grid--3 .bezel:hover .ico { transform: scale(1.1) rotate(-5deg); }
.pillar .ico svg, .feature .ico svg { width: 26px; height: 26px; }
.pillar h3, .feature h3 { margin-top: .2rem; }
.pillar p, .feature p { color: var(--ink-soft); font-size: var(--step-0); }
.pillar .tag { margin-top: auto; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Stats / evidence ---------- */
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 1.8rem + 4vw, 4.4rem); line-height: .95; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--blue), var(--blue-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat--coral .stat__num { background: linear-gradient(120deg, var(--coral), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--ink-soft); }
.stat__src { margin-top: auto; font-size: .76rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .01em; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; }
.step__n { counter-increment: step; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--blue);
  width: 2.6rem; height: 2.6rem; border-radius: 999px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); }
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); margin-top: .25rem; }

/* ---------- Team ---------- */
.member__photo { width: 110px; height: 110px; border-radius: 999px; object-fit: cover; border: 3px solid var(--paper); box-shadow: 0 14px 30px -14px rgba(28,55,120,.5); transition: transform .45s var(--ease-spring); }
.member .bezel:hover .member__photo, .grid--3 .bezel:hover .member__photo { transform: scale(1.05); }
.member__mono { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em; color: var(--blue);
  background: linear-gradient(160deg, color-mix(in srgb, var(--azure) 48%, var(--paper)), color-mix(in srgb, var(--gold) 26%, var(--paper)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 24px -14px rgba(28,55,120,.4); }
.member h3 { margin-top: .8rem; }
.member .role { color: var(--blue); font-weight: 600; font-size: .92rem; }
.member p { color: var(--ink-soft); font-size: var(--step-0); }

/* ---------- Feature split (image/art + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media .bezel__core { padding: 0; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Gold / blue feature band (use once per page) ---------- */
.band { position: relative; overflow: clip; color: var(--ink); }
.band--gold .container { position: relative; z-index: 2; }
.band--gold { background: linear-gradient(150deg, var(--gold) 0%, color-mix(in srgb, var(--gold) 70%, var(--coral)) 120%); }
.band--blue { background: linear-gradient(150deg, var(--blue) 0%, var(--ink) 130%); color: #fff; }
.band--blue h2, .band--blue h3 { color: #fff; }
.band--blue p { color: color-mix(in srgb, #fff 82%, transparent); }
.band__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; }

/* ---------- Cinematic photo band ---------- */
.photoband { position: relative; min-height: clamp(320px, 42vh, 460px); display: grid; align-items: end; overflow: hidden; color: #fff; z-index: 2; }
.photoband__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; z-index: 0; animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13) translateY(-1.5%); } }
.photoband__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, color-mix(in srgb, var(--ink) 74%, transparent) 0%, color-mix(in srgb, var(--ink) 34%, transparent) 44%, transparent 74%),
              linear-gradient(0deg, color-mix(in srgb, var(--ink) 52%, transparent) 0%, transparent 55%); }
.photoband__inner { position: relative; z-index: 2; padding-block: clamp(1.5rem, 3.4vw, 2.4rem); max-width: 640px; }
.photoband h2 { color: #fff; max-width: 16ch; }
.photoband .lead { color: color-mix(in srgb, #fff 90%, transparent); max-width: 40ch; margin-top: .5rem; }
.photoband .eyebrow { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .photoband__img { animation: none; } }

/* ---------- Feature band (real photo on a colored animated stage) ---------- */
.feature-band { position: relative; overflow: clip; isolation: isolate; background: linear-gradient(135deg, #E9F1FF 0%, #FFF1DB 55%, #FFE8D4 100%); }
.feature-band::before, .feature-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5; z-index: 0; pointer-events: none; mix-blend-mode: soft-light; }
.feature-band::before { width: 44vw; height: 44vw; background: radial-gradient(circle, var(--gold) 0%, transparent 66%); top: -22%; right: -6%; animation: ctaA 18s ease-in-out infinite; }
.feature-band::after { width: 40vw; height: 40vw; background: radial-gradient(circle, var(--blue) 0%, transparent 66%); bottom: -26%; left: -6%; animation: ctaB 22s ease-in-out infinite; }
.feature-band .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .feature-band::before, .feature-band::after { animation: none; } }

/* ---------- Premium animated CTA band (light, vivid drifting aurora) ---------- */
.band--cta { position: relative; overflow: clip; isolation: isolate; color: #fff;
  background: linear-gradient(125deg, #2C5BD8 0%, #4E73E0 26%, #FF8B6E 62%, #FFC247 100%);
  background-size: 220% 220%; animation: ctaFlow 18s ease infinite; }
.band--cta::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(62% 92% at 50% 50%, color-mix(in srgb, var(--ink) 30%, transparent), transparent 70%); }
.band--cta h2 { color: #fff; }
.band--cta .lead { color: color-mix(in srgb, #fff 90%, transparent); }
.band--cta .container { position: relative; z-index: 2; }
.band--cta .btn--gold { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: 0 14px 40px -8px rgba(0,0,0,.32); }
.band--cta .btn--gold:hover { --btn-bg: #fff; transform: translateY(-2px) scale(1.02); }
.band--cta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #fff 50%, transparent); }
.band--cta .btn--ghost:hover { background: color-mix(in srgb, #fff 12%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #fff 75%, transparent); }
@keyframes ctaA { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(10%,14%) scale(1.2); } }
@keyframes ctaB { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12%,-10%) scale(1.24); } }
@keyframes ctaFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .band--cta { animation: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; transition: box-shadow .3s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 1.4em; height: 1.4em; transition: transform .35s var(--ease-spring); color: var(--blue); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq__a { padding: 0 1.3rem 1.25rem; color: var(--ink-soft); }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.trust .badge { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-card); }
.trust .badge svg { width: 1.05em; height: 1.05em; color: var(--blue); }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; text-align: left; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.input, .textarea {
  width: 100%; padding: .85em 1em; border-radius: var(--r-sm);
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); font: inherit;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.textarea { min-height: 130px; resize: vertical; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; }

/* Donate amounts */
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; }
.amount { padding: .8em 1.3em; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; font-family: var(--font-display); transition: border-color .25s, transform .25s var(--ease-spring), background-color .25s; }
.amount:hover, .amount[aria-pressed="true"] { border-color: var(--blue); transform: translateY(-2px); }
.amount[aria-pressed="true"] { background: color-mix(in srgb, var(--blue) 10%, var(--paper)); }

/* ---------- Social icons (generic; footer overrides the colors) ---------- */
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease); }
.social a:hover { background: var(--gold); color: var(--ink); }
.social svg { width: 1.15em; height: 1.15em; }

/* ---------- Footer ---------- */
.footer { background: color-mix(in srgb, #FFFDF8 64%, transparent); color: var(--ink-soft); padding-block: clamp(3.25rem, 2.8rem + 3vw, 5.5rem) 2rem; position: relative; z-index: 2; border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.footer h3 { color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 2.5rem; }
.footer__brand img { width: 52px; height: 52px; border-radius: 999px; box-shadow: var(--shadow-card); }
.footer__brand p { margin-top: 1rem; max-width: 32ch; color: var(--ink-soft); }
.footer a { color: var(--ink-soft); transition: color .25s; }
.footer a:hover { color: var(--gold-deep); }
.footer__links { display: grid; gap: .6rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink-faint); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* On-dark variants (for band--blue / footer reuse) */
.band--blue .eyebrow, .footer .eyebrow { color: #fff; background: color-mix(in srgb, #fff 14%, transparent); border-color: color-mix(in srgb, #fff 28%, transparent); }
.band--blue .stat__num { background: linear-gradient(120deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band--blue .stat__src { color: color-mix(in srgb, #fff 65%, transparent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Focus ---------- */
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  /* Centering margin lived on .nav__links (now hidden); push the language
     toggle + Donate + burger group to the right edge of the pill.
     The toggle now lives on the bar (always visible), not only in the menu. */
  .nav__right { margin-left: auto; gap: .4rem; }
  .nav__inner { gap: .55rem; }
  .nav__right .langtoggle { font-size: .76rem; }
  .nav__right .langtoggle button { padding: .3em .62em; }
}
@media (max-width: 860px) {
  .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: -1; }
}
@media (max-width: 520px) {
  .nav__brand span { display: none; }
}
@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-row { width: 100%; }
  .btn-row .btn { width: 100%; justify-content: space-between; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 3.6rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .float { animation: none; }
}

/* When a live donation link is set (config.js adds .donate-live), the
   "coming soon / leave your email" block is no longer true — hide it so
   the page only shows the working Donate flow. */
html.donate-live #apoyar { display: none; }
