/* =========================================================
   FUNDACIÓN AMOR — Premium redesign
   Concepto: "Pinceladas de amor"
   El corazón del logo está hecho de pinceladas (coral, ámbar,
   verde, teal). Ese gesto de pintar es el lenguaje de motion.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Neutros cálidos */
  --paper: #FFFFFF;
  --ivory: #FAF7F2;
  --sand: #F1EBE1;
  --line: #E7E0D6;
  --stone: #C9C1B4;
  --muted: #6B6B75;
  --ink: #2B2B33;

  /* Teal (marca) */
  --teal-50: #EEF6F5;
  --teal-100: #D5EBE9;
  --teal-300: #7AC6C2;
  --teal-500: #2BA8A8;
  --teal-600: #1E7F7F;
  --teal-700: #166060;
  --teal-900: #0D3E3E;
  --teal-950: #082B2B;

  /* Acentos del logo */
  --coral: #F04E45;
  --coral-600: #D93A32;
  --coral-300: #F79A90;
  --amber: #F0B41E;
  --amber-300: #F5D169;
  --green: #7FAF2A;
  --green-600: #668D20;

  /* Tipografía */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Jost", system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
  --radius: 28px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
em { font-style: italic; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ink);
}
.display em, .hero__title em, .finale__title em, .footer__claim em, .manifesto__text em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-600);
}
.display--light { color: var(--ivory); }
.display--light em { color: var(--amber); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 34ch; line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 28px;
}
.eyebrow__line { width: 36px; height: 1px; background: currentColor; transform-origin: left; }
.eyebrow--light { color: var(--teal-300); }

/* Líneas enmascaradas para reveals */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */
.btn {
  --bh: 52px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding: 0 28px;
  border-radius: 999px;
  font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn::before { /* relleno que sube desde abajo en hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn__label { position: relative; }
.btn--sm { --bh: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { --bh: 60px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -12px rgba(240,78,69,.7); }
.btn--coral::before { background: var(--coral-600); }
.btn--coral:hover { box-shadow: 0 18px 40px -14px rgba(240,78,69,.85); }

.btn--line { border: 1px solid var(--stone); color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--ivory); border-color: var(--ink); }

.btn--light { border: 1px solid rgba(250,247,242,.35); color: var(--ivory); }
.btn--light::before { background: var(--ivory); }
.btn--light:hover { color: var(--teal-900); }

.btn--white { background: #fff; color: var(--coral-600); }
.btn--white::before { background: var(--ink); }
.btn--white:hover { color: #fff; }
.btn--outline-white { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn--outline-white::before { background: #fff; }
.btn--outline-white:hover { color: var(--coral-600); }

.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); position: relative; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__heart { width: 18px; height: 18px; position: relative; display: inline-block; }
.btn:hover .btn__heart { animation: beat 1s var(--ease-out) infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 20% { transform: scale(1.22); } 40% { transform: scale(.96); } 60% { transform: scale(1.1); } }

/* Texto que rueda en hover */
.roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; }
.roll span { display: inline-block; position: relative; transition: transform .55s var(--ease-out); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--coral); font-style: italic; }
.roll:hover span { transform: translateY(-100%); }

/* ---------- Corazón de pinceladas (SVG generado por JS) ---------- */
[data-heart] svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- Grano ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); }
  60% { transform: translate(-2%,6%); } 80% { transform: translate(5%,2%); } 100% { transform: translate(0,0); }
}


/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--ivory);
}
.preloader__heart { width: 108px; height: 98px; }
.preloader__word { font-family: var(--f-display); font-size: 28px; letter-spacing: .01em; color: var(--ink); overflow: hidden; }
.preloader__word em { color: var(--teal-600); }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-family: var(--f-display); font-size: clamp(3rem, 8vw, 7rem); line-height: 1; color: var(--sand);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: transform .7s var(--ease-out), background .5s, box-shadow .5s, height .5s var(--ease-out);
}
.header.is-scrolled {
  --header-h: 70px;
  background: rgba(250,247,242,.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(43,43,51,.06);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { width: 140px; height: auto; transition: width .5s var(--ease-out); }
.header.is-scrolled .header__logo img { width: 124px; }
.header__nav { display: flex; gap: 34px; font-size: 15px; font-weight: 400; }
.header__actions { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 400; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease-out); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Menú móvil ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ivory);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-in-out); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.15;
  display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.menu__nav small { font-family: var(--f-body); font-size: 12px; color: var(--coral); letter-spacing: .1em; }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; } .menu-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .35s; } .menu-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .45s; } .menu-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot { display: flex; flex-direction: column; gap: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 80px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__wash { position: absolute; width: min(58vw, 860px); aspect-ratio: 1; left: -22vw; bottom: -34vw; opacity: .11; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(3.4rem, 9.4vw, 9.6rem); line-height: .9; letter-spacing: -.035em;
  margin-bottom: 36px;
}
.brush-word { position: relative; display: inline-block; padding-right: .05em; }
.brush-underline {
  position: absolute; left: -2%; right: -4%; bottom: -.02em; width: 106%; height: .22em;
  fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; z-index: -1;
}
.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 44ch; margin-bottom: 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.arch {
  position: relative; aspect-ratio: 4 / 5.4; width: 100%;
  border-radius: 999px 999px 32px 32px; overflow: hidden;
  background: var(--sand);
  box-shadow: 0 50px 100px -40px rgba(13,62,62,.45);
}
.arch__slides { position: absolute; inset: -8% 0; }
.arch__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
}
.arch__img.is-active { opacity: 1; transform: scale(1); }
.arch__img:nth-child(1) { object-position: 40% 50%; }

.hero__counter {
  position: absolute; left: -64px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top;
  display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero__counter-bar { width: 64px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__counter-bar i { position: absolute; inset: 0; background: var(--coral); transform-origin: left; transform: scaleX(0); }

.seal {
  position: absolute; left: -64px; bottom: 36px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--ivory);
  display: grid; place-items: center;
  box-shadow: 0 20px 50px -20px rgba(43,43,51,.35);
}
.seal__ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 18s linear infinite; }
.seal__ring text { font-family: var(--f-body); font-size: 15.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; fill: var(--ink); }
.seal__heart { width: 46px; height: 42px; transition: transform .6s var(--ease-out); }
.seal:hover .seal__heart { transform: scale(1.18) rotate(-6deg); }
.seal:hover .seal__ring { animation-duration: 6s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.marquee__row { display: flex; width: max-content; }
.marquee__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 60px); padding-right: clamp(28px, 4vw, 60px); flex-shrink: 0; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.1; white-space: nowrap; }
.marquee__track em { color: var(--teal-600); }
.marquee__track i { width: clamp(28px, 3vw, 44px); height: clamp(26px, 2.8vw, 40px); display: block; flex-shrink: 0; }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(110px, 16vw, 220px) 0; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 4.3rem); line-height: 1.12; letter-spacing: -.015em;
  max-width: 19em;
}
.manifesto__text .w { transition: none; }
.pill {
  display: inline-block; vertical-align: middle;
  width: 1.9em; height: .95em; border-radius: 999px; overflow: hidden;
  margin: -.12em .08em 0; background: var(--sand);
}
.pill img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Impacto ---------- */
.impact { padding-bottom: clamp(100px, 12vw, 180px); }
.impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(3.4rem, 6vw, 5.8rem); line-height: .9;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat__num small { font-size: .38em; margin-left: .15em; color: var(--coral); font-style: italic; letter-spacing: 0; }
.stat__num em { color: var(--teal-600); font-size: .78em; }
.stat__label { font-size: 15px; color: var(--muted); max-width: 22ch; }

/* ---------- Programas ---------- */
.programs { background: var(--paper); padding: clamp(90px, 10vw, 140px) 0; }
.programs__track {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.programs__intro { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 22px; margin-bottom: 20px; }
.programs__intro .eyebrow { margin-bottom: 0; }
.programs__hint { display: none; }
.programs__progress { display: none; }

.pcard { display: flex; flex-direction: column; gap: 26px; }
.pcard__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3.4; background: var(--sand);
}
.pcard__media::after { /* barra de color del programa */
  content: ""; position: absolute; left: 22px; top: 22px; width: 42px; height: 6px; border-radius: 4px; background: var(--accent);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.08); }
.pcard__body { display: grid; grid-template-columns: auto 1fr; gap: 22px; }
.pcard__num {
  font-family: var(--f-display); font-style: italic; font-size: 3.2rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--stone);
  transition: color .6s var(--ease-out), -webkit-text-stroke-color .6s;
}
.pcard:hover .pcard__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.pcard h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.05; margin-bottom: 12px; }
.pcard p { color: var(--muted); font-size: 16px; max-width: 40ch; }
.pcard__link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .6s var(--ease-out);
}
.pcard__link:hover { background-size: 100% 1px; }
.pcard__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.pcard__link:hover svg { transform: translateX(4px); }

/* Horizontal (desktop, con JS) */
.programs.is-h { padding: 0; }
.programs.is-h .programs__pin { height: 100vh; overflow: hidden; position: relative; display: flex; align-items: center; }
.programs.is-h .programs__track {
  display: flex; gap: clamp(32px, 4vw, 64px); align-items: center;
  max-width: none; margin: 0; width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 12vw;
}
.programs.is-h .programs__intro { width: 30vw; min-width: 340px; margin: 0; flex-shrink: 0; }
.programs.is-h .programs__hint { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.programs.is-h .programs__hint span { width: 48px; height: 1px; background: var(--ink); animation: hint 1.8s var(--ease-in-out) infinite; transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.programs.is-h .pcard { width: clamp(360px, 34vw, 520px); flex-shrink: 0; }
.programs.is-h .pcard:nth-of-type(even) { margin-top: 12vh; }
.programs.is-h .pcard:nth-of-type(odd) { margin-bottom: 8vh; }
.programs.is-h .pcard__media { aspect-ratio: 4 / 3.6; }
.programs.is-h .pcard__media img { transition: none; }
.programs.is-h .programs__progress {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 1px; background: var(--line);
}
.programs.is-h .programs__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Lo Espejo ---------- */
.territory { padding: clamp(24px, 3vw, 40px) 0; background: var(--paper); }
.territory__panel {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 85% 10%, var(--teal-700) 0%, var(--teal-900) 45%, var(--teal-950) 100%);
  color: var(--ivory);
  padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px);
}
.territory__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.territory__copy .display { margin-bottom: 44px; }
.territory__quote {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.25; color: var(--ivory);
  padding-left: 28px; border-left: 2px solid var(--coral); max-width: 26ch;
}
.territory__cite { display: block; margin-top: 18px; padding-left: 30px; font-style: normal; font-size: 14px; color: var(--teal-300); letter-spacing: .02em; }

.map { position: relative; aspect-ratio: 1438 / 1251; }
.map img { width: 100%; height: 100%; object-fit: contain; opacity: .85; }
.map__pin { position: absolute; left: 52%; top: 46%; width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.map__pin i { position: absolute; inset: 0; border-radius: 50%; background: var(--coral); }
.map__pin i:nth-child(2), .map__pin i:nth-child(3) { background: transparent; border: 1px solid var(--coral); animation: ping 2.8s var(--ease-out) infinite; }
.map__pin i:nth-child(3) { animation-delay: 1.4s; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(7); opacity: 0; } }
.map__tag {
  position: absolute; left: calc(52% + 22px); top: calc(46% - 16px);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  background: rgba(250,247,242,.1); border: 1px solid rgba(250,247,242,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}

.territory__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(80px, 9vw, 130px); }
.fact { padding: 32px 36px 0 0; border-top: 1px solid rgba(250,247,242,.18); }
.fact + .fact { padding-left: 36px; border-left: 1px solid rgba(250,247,242,.18); }
.fact__n { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--amber); }
.fact h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.1; margin: 10px 0 12px; }
.fact p { color: rgba(250,247,242,.7); font-size: 16px; max-width: 34ch; }
.territory__cta { margin-top: 64px; }

/* ---------- Donar ---------- */
.donate { padding: clamp(110px, 13vw, 190px) 0 clamp(100px, 11vw, 160px); position: relative; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 40px; margin-bottom: clamp(56px, 6vw, 88px); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.donate__grid { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 24px; align-items: stretch; perspective: 1200px; }
.dcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: 40px 36px 36px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .6s var(--ease-out), border-color .6s;
}
.dcard:hover { box-shadow: 0 40px 80px -40px rgba(43,43,51,.3); border-color: transparent; }
.dcard__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(43,168,168,.14), transparent 60%);
}
.dcard:hover .dcard__glow { opacity: 1; }
.dcard__icon { width: 64px; height: 58px; margin-bottom: 18px; }
.dcard__kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.dcard h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 2.4vw, 2.3rem); line-height: 1.05; }
.dcard > p:not(.dcard__kicker) { color: var(--muted); font-size: 16px; flex: 1; margin-bottom: 18px; }
.dcard--featured {
  background: radial-gradient(120% 90% at 100% 0%, var(--teal-700), var(--teal-900) 55%, var(--teal-950));
  color: var(--ivory); border: 0;
  box-shadow: 0 40px 90px -40px rgba(13,62,62,.7);
}
.dcard--featured .dcard__glow { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240,180,30,.18), transparent 60%); }
.dcard--featured .dcard__kicker { color: var(--teal-300); }
.dcard--featured > p:not(.dcard__kicker) { color: rgba(250,247,242,.75); }
.dcard__badge {
  position: absolute; top: 28px; right: 28px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; color: var(--teal-950); background: var(--amber);
}
.trust { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--muted); font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 20px; height: 20px; fill: none; stroke: var(--teal-600); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Voces ---------- */
.voices { padding: 0 0 clamp(110px, 13vw, 190px); }
.voices__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.voices__media { border-radius: 32px 32px 999px 999px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sand); }
.voices__media img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.quotes { display: grid; }
.quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease-out), visibility 0s .8s; }
.quote.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease-out); }
.quote blockquote {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.15; letter-spacing: -.01em;
  margin-bottom: 28px;
}
.quote figcaption { font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 500; }
.quotes__nav { display: flex; align-items: center; gap: 18px; margin-top: 48px; }
.quotes__btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--stone); display: grid; place-items: center; transition: background .4s, border-color .4s, color .4s; }
.quotes__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.quotes__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quotes__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quotes__count b { color: var(--ink); font-weight: 500; }

/* ---------- Galería ---------- */
.gallery { padding: clamp(100px, 11vw, 160px) 0 clamp(120px, 14vw, 200px); background: var(--paper); overflow: hidden; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(56px, 6vw, 80px); }
.gallery__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.gallery__col { display: flex; flex-direction: column; gap: 20px; }
.gallery__col:nth-child(even) { padding-top: 80px; }
.gitem { display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 1; background: var(--sand); }
.gitem--tall { aspect-ratio: 4 / 5; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: saturate(.9); }
.gitem:hover img { transform: scale(1.07); filter: saturate(1.1); }

/* ---------- Finale ---------- */
.finale { background: var(--coral); color: #fff; }
.finale__pin { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 120px var(--gutter); }
.finale__heart { display: none; }
.finale__intro { display: none; }
.finale__content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.finale__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: .98; letter-spacing: -.025em; }
.finale__title em { color: #fff; }
.finale__content > p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); opacity: .9; }
.finale__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }

/* Con JS: el corazón coral crece hasta cubrir la pantalla */
.js .finale.is-anim { background: var(--ivory); }
.js .finale.is-anim .finale__heart {
  display: block; position: absolute; left: 50%; top: 50%;
  width: 220px; height: 200px; margin: -100px 0 0 -110px;
  will-change: transform;
}
.js .finale.is-anim .finale__intro {
  display: block; position: absolute; inset: auto 0 12vh; text-align: center; color: var(--ink);
}
.js .finale.is-anim .finale__intro .display { font-size: clamp(2rem, 4vw, 3.6rem); }
.js .finale.is-anim .finale__pin { padding: 0 var(--gutter); height: 100vh; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-950); color: var(--ivory); padding-top: clamp(90px, 10vw, 140px); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(250,247,242,.14); }
.footer__claim { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.1; max-width: 20ch; }
.footer__claim em { color: var(--amber); }
.footer__up { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(250,247,242,.3); display: grid; place-items: center; transition: background .4s, color .4s; }
.footer__up:hover { background: var(--ivory); color: var(--teal-950); }
.footer__up svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col h4 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--teal-300); margin-bottom: 8px; }
.footer__col a { color: rgba(250,247,242,.78); width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--amber); }
.footer__mark {
  display: flex; justify-content: center; align-items: flex-end; gap: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(8rem, 30vw, 30rem); line-height: .78; letter-spacing: -.04em;
  color: var(--ivory); padding-inline: var(--gutter);
  user-select: none; overflow: hidden;
}
.footer__mark span { display: inline-block; }
.footer__mark-heart { width: .32em; height: .29em; margin: 0 0 .5em .06em; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 28px 32px; font-size: 13px; color: rgba(250,247,242,.55); border-top: 1px solid rgba(250,247,242,.14); }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 0; height: 56px; padding: 0 16px;
  border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: 0 20px 40px -16px rgba(43,43,51,.6);
  transition: gap .5s var(--ease-out), padding .5s var(--ease-out), background .4s;
}
.wa svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
.wa span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 500; transition: max-width .6s var(--ease-out); }
.wa:hover { gap: 10px; padding: 0 22px 0 18px; background: #1FA855; }
.wa:hover span { max-width: 140px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__nav, .link-volunteer { display: none; }
  .burger { display: block; }
  .hero__counter { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 100px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 440px; margin-top: 20px; }
  .seal { left: -18px; bottom: 18px; width: 118px; height: 118px; }
  .seal__heart { width: 36px; height: 33px; }
  .hero__scroll { display: none; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 36px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .territory__grid, .section-head, .voices__grid { grid-template-columns: 1fr; }
  .territory__facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0 32px; border-left: 0; }
  .donate__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .dcard--featured { order: -1; }
  .gallery__cols { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery__col { gap: 12px; }
  .gallery__col:nth-child(even) { padding-top: 48px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .voices__media { max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__actions .btn--sm { display: none; }
  .programs__track { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(3.3rem, 15vw, 5rem); }
  .hero__ctas .btn { width: 100%; }
  .stat, .stat + .stat { padding-inline: 0 12px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .pcard__num { font-size: 2.4rem; }
  .dcard { padding: 34px 26px 28px; }
  .dcard__badge { top: 22px; right: 22px; }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
  .wa { right: 16px; bottom: 16px; }
}

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

/* =========================================================
   Donaciones — modales (transferencia, socio, Webpay)
   ========================================================= */
html.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 24px 16px; border: 0; background: transparent; color: var(--ink);
  display: none; overflow-y: auto; overscroll-behavior: contain;
}
.modal[open] { display: grid; }
.modal::backdrop { background: rgba(8,43,43,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: modal-fade .4s var(--ease-out) both; }
.modal.is-closing::backdrop { animation: modal-fade .26s ease reverse both; }

.modal__panel {
  position: relative; width: min(560px, 100%); margin: auto; /* margin auto: centra sin cortar si es más alto que la pantalla */
  background: var(--paper); border-radius: 32px; overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(8,43,43,.65);
}
.modal[open] .modal__panel { animation: modal-in .7s var(--ease-out) both; }
.modal.is-closing .modal__panel { animation: modal-out .26s ease-in both; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(24px) scale(.98); } }

.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.7); transition: background .3s, transform .5s var(--ease-out);
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.modal__head { position: relative; padding: 40px 40px 30px; background: var(--teal-50); overflow: hidden; }
.modal__head::after { /* pincelada decorativa */
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,168,168,.16), transparent 70%); pointer-events: none;
}
.modal--socio .modal__head { background: radial-gradient(120% 120% at 100% 0%, var(--teal-700), var(--teal-900) 55%, var(--teal-950)); color: var(--ivory); }
.modal--socio .modal__head::after { background: radial-gradient(circle, rgba(240,180,30,.2), transparent 70%); }
.modal--socio .modal__close { background: rgba(255,255,255,.12); color: var(--ivory); }
.modal--socio .modal__close:hover { background: rgba(255,255,255,.22); }
.modal--webpay .modal__head { background: #F2F6EA; }
.modal--webpay .modal__head::after { background: radial-gradient(circle, rgba(127,175,42,.18), transparent 70%); }

.modal__icon { width: 52px; height: 47px; margin-bottom: 18px; }
.is-painting .band { animation: paint .7s var(--ease-in-out) both; }
.is-painting .band:nth-child(2) { animation-delay: .12s; }
.is-painting .band:nth-child(3) { animation-delay: .24s; }
.is-painting .band:nth-child(4) { animation-delay: .36s; }
@keyframes paint { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.modal__kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--teal-600); margin-bottom: 8px; }
.modal--socio .modal__kicker { color: var(--teal-300); }
.modal--webpay .modal__kicker { color: var(--green-600); }
.modal__test { letter-spacing: .08em; font-size: 10px; padding: 3px 9px; border-radius: 999px; background: var(--amber); color: var(--teal-950); }
.modal__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.1rem, 5vw, 2.8rem); line-height: 1; letter-spacing: -.01em; }
.modal__title em { color: var(--teal-600); }
.modal--socio .modal__title em { color: var(--amber); }
.modal--webpay .modal__title em { color: var(--green-600); }
.modal__sub { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 42ch; }
.modal--socio .modal__sub { color: rgba(250,247,242,.75); }
.modal__body { padding: 30px 40px 36px; }
.modal__note { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.modal__note a { color: var(--teal-600); font-weight: 500; border-bottom: 1px solid currentColor; }

/* Pasos del socio */
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 8px; counter-reset: s; }
.steps[hidden] { display: none; }
.steps li { counter-increment: s; flex: 1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(250,247,242,.5); padding-top: 10px; border-top: 2px solid rgba(250,247,242,.2); transition: color .4s, border-color .4s; }
.steps li::before { content: "0" counter(s) " · "; }
.steps li.is-on { color: var(--ivory); border-color: var(--amber); }

/* Transferencia */
.bank { margin: 0 0 22px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.bank__row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; }
.bank__row + .bank__row { border-top: 1px solid var(--line); }
.bank__row dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.bank__row dd { margin: 0; font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.bank__row--main { background: var(--teal-50); }
.bank__row--main dd { font-family: var(--f-display); font-variant-numeric: lining-nums; font-size: 1.6rem; letter-spacing: .04em; color: var(--teal-900); line-height: 1.1; }
.copy {
  font-size: 13px; font-weight: 500; color: var(--teal-600); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--teal-100); white-space: nowrap; transition: background .3s, color .3s, border-color .3s;
}
.copy:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.copy.is-done { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.btn.is-done { background: var(--teal-600); box-shadow: none; }

/* Formularios */
.form { display: block; }
.form__step { display: none; }
.form__step.is-on { display: block; animation: step-in .6s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.field { display: grid; gap: 8px; border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.field legend, .field > span { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 10px; }
.field > span { margin-bottom: 0; }
.field i { font-style: normal; color: var(--muted); font-weight: 300; }
.field input, .field__other {
  width: 100%; height: 52px; padding: 0 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--ivory); font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(43,168,168,.14); }
.field.has-error input, .field.has-error .field__other { border-color: var(--coral); }
.field__error { display: block; min-height: 0; font-size: 13px; color: var(--coral-600); font-weight: 400; }
.field__error:empty { display: none; }
.field__other { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0 0 0 18px; }
.field__other[hidden] { display: none; }
.field__other input { border: 0; background: transparent; height: 100%; padding: 0 18px 0 0; box-shadow: none !important; }
.field__other:focus-within { border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(43,168,168,.14); }
.field__prefix { font-weight: 500; color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field--full { grid-column: 1 / -1; }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chips--4 { grid-template-columns: repeat(4, 1fr); }
.chip--wide { grid-column: 1 / -1; }
.chip { position: relative; cursor: pointer; }
.chip input, .option input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: grid; place-items: center; height: 54px; border-radius: 16px; border: 1px solid var(--line);
  font-weight: 500; font-size: 16px; background: var(--paper); transition: all .35s var(--ease-out);
}
.chip:hover span { border-color: var(--stone); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(43,43,51,.6); }
.modal--socio .chip input:checked + span { background: var(--coral); border-color: var(--coral); box-shadow: 0 12px 24px -12px rgba(240,78,69,.7); }
.chip input:focus-visible + span, .option input:focus-visible + span { outline: 2px solid var(--teal-600); outline-offset: 3px; }

.options { display: grid; gap: 10px; }
.option { cursor: pointer; }
.option span {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; align-items: center;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, background .3s;
}
.option span::before { content: ""; grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--stone); transition: all .3s; }
.option b { font-weight: 500; }
.option small { color: var(--muted); font-size: 13px; }
.option input:checked + span { border-color: var(--coral); background: #FFF6F5; }
.option input:checked + span::before { border: 6px solid var(--coral); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; margin: 4px 0 8px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--coral); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__summary { margin: 18px 0; padding: 14px 18px; border-radius: 16px; background: var(--sand); font-size: 15px; }
.form__summary b { font-weight: 600; color: var(--coral-600); }
.form__alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #FDECEB; color: #A5281F; font-size: 14px; font-weight: 400; }
.form__alert[hidden] { display: none; }
.form__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn.is-busy .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-busy .btn__heart, .btn.is-busy .btn__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn b { font-weight: 600; }

.form__done { text-align: center; padding: 8px 0 0; animation: step-in .6s var(--ease-out) both; }
.form__done[hidden] { display: none; }
.form__done-heart { width: 84px; height: 76px; margin: 0 auto 18px; }
.form__done h3 { font-family: var(--f-display); font-weight: 500; font-size: 2.3rem; line-height: 1.05; }
.form__done h3 em { color: var(--coral); }
.form__done > p { color: var(--muted); margin: 10px auto 0; max-width: 38ch; }
.form__done-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.form__done-cta p { font-weight: 500; margin-bottom: 4px; }

.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.secure svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--green-600); stroke-width: 1.6; }

@media (max-width: 640px) {
  .modal { padding: 12px 0 0; }
  .modal__panel { width: 100%; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .modal__head { padding: 32px 22px 24px; }
  .modal__body { padding: 24px 22px 30px; }
  .form__grid { grid-template-columns: 1fr; }
  .chips, .chips--4 { grid-template-columns: repeat(2, 1fr); }
  .bank__row { grid-template-columns: 1fr auto; row-gap: 2px; padding: 12px 14px 12px 18px; }
  .bank__row dt { grid-column: 1; }
  .bank__row dd { grid-column: 1; grid-row: 2; }
  .bank__row .copy { grid-row: 1 / span 2; grid-column: 2; }
  .form__actions { grid-template-columns: 1fr; }
  .form__actions .btn--line { order: 2; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
}

/* =========================================================
   Resultado de la donación (gracias.php)
   ========================================================= */
.result-page { min-height: 100vh; background: radial-gradient(90% 60% at 50% 0%, var(--teal-50), var(--ivory) 70%); }
.result__top { padding-block: 26px; display: flex; justify-content: center; }
.result { display: grid; place-items: center; padding-bottom: 80px; }
.result__card {
  width: min(640px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 36px;
  padding: clamp(36px, 6vw, 60px); text-align: center; box-shadow: 0 50px 100px -60px rgba(13,62,62,.5);
  animation: modal-in .9s var(--ease-out) both;
}
.result__card .eyebrow { justify-content: center; margin-bottom: 18px; }
.result__card .display { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.result__heart { width: 92px; height: 84px; margin: 0 auto 26px; }
.result__heart .band { animation: paint .8s var(--ease-in-out) both; }
.result__heart .band:nth-child(2) { animation-delay: .15s; }
.result__heart .band:nth-child(3) { animation-delay: .3s; }
.result__heart .band:nth-child(4) { animation-delay: .45s; }
.result__lead { color: var(--muted); margin: 18px auto 0; max-width: 44ch; }
.result__note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.result__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.receipt { margin: 32px 0 0; text-align: left; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 22px; }
.receipt div + div { border-top: 1px solid var(--line); }
.receipt dt { color: var(--muted); font-size: 14px; }
.receipt dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.receipt__amount { background: var(--teal-950); color: var(--ivory); align-items: center; padding-block: 20px !important; }
.receipt__amount dt { color: var(--teal-300); }
.receipt__amount dd { font-family: var(--f-display); font-variant-numeric: lining-nums; font-size: 2.2rem; color: var(--amber); line-height: 1; }
@media (max-width: 640px) { .result__btns .btn { width: 100%; } }
@media print {
  .result-page { background: #fff; }
  .result__btns, .result__heart { display: none; }
  .result__card { box-shadow: none; border: 0; }
}
