/* ==========================================================================
   Fundación Yo Pinto Una Sonrisa — Hoja de estilos principal
   Paleta derivada del logotipo oficial:
     verde lima  #C6D300
     naranja     #EA4E1B
     salmón      #F5CEBF
   ========================================================================== */

/* ---------------------------------------------------------------
   1. Tokens de diseño
   --------------------------------------------------------------- */
:root {
  /* Marca */
  --brand-green: #c6d300;
  --brand-green-soft: #dbe662;
  --brand-green-deep: #8f9900;
  --brand-green-ink: #5c6300;
  --brand-orange: #ea4e1b;
  --brand-orange-deep: #c33c0e;
  --brand-orange-soft: #ff8b62;
  --brand-salmon: #f5cebf;

  /* Neutros cálidos */
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-muted: #8a827c;
  --cream: #fffbf7;
  --sand: #f7f2ec;
  --sand-deep: #efe7de;
  --line: #e9e1d8;
  --white: #ffffff;

  /* Tipografía */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Métricas */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(28, 25, 23, .06);
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, .06), 0 1px 2px rgba(28, 25, 23, .04);
  --shadow-md: 0 12px 28px -12px rgba(28, 25, 23, .18), 0 2px 8px rgba(28, 25, 23, .05);
  --shadow-lg: 0 28px 60px -24px rgba(28, 25, 23, .28), 0 8px 20px -8px rgba(28, 25, 23, .10);

  /* Movimiento */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s var(--ease);
  --t: .32s var(--ease);
  --t-slow: .6s var(--ease);

  /* Header */
  --header-h: 78px;
}

/* ---------------------------------------------------------------
   2. Reset
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-orange-deep); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-orange); }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-green-ink);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-orange));
}
.section-head--center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); }

/* ---------------------------------------------------------------
   4. Botones
   --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-orange);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), color var(--t-fast);
  box-shadow: 0 10px 22px -12px rgba(234, 78, 27, .8);
}
.btn:hover {
  transform: translateY(-2px);
  color: var(--btn-fg);
  box-shadow: 0 18px 32px -14px rgba(234, 78, 27, .85);
}
.btn:active { transform: translateY(0); }

.btn--green {
  --btn-bg: var(--brand-green);
  --btn-fg: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(198, 211, 0, .9);
}
.btn--green:hover { box-shadow: 0 18px 32px -14px rgba(198, 211, 0, .95); }

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  box-shadow: 0 10px 22px -14px rgba(28, 25, 23, .7);
}
.btn--dark:hover { box-shadow: 0 18px 32px -16px rgba(28, 25, 23, .8); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(28, 25, 19, .18);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--white); border-color: transparent; color: var(--ink); box-shadow: var(--shadow-sm); }

.btn--onDark {
  --btn-bg: rgba(255, 255, 255, .12);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .32);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.btn--onDark:hover { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--shadow-md); }

.btn--lg { padding: 18px 38px; font-size: 1.04rem; }
.btn--sm { padding: 11px 22px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-orange-deep);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------
   5. Barra superior
   --------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar__contacts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .82); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--brand-green); }
.topbar svg { width: 15px; height: 15px; opacity: .75; }
.topbar__socials { display: flex; align-items: center; gap: 4px; }
.topbar__socials a { padding: 7px; border-radius: 50%; }
.topbar__socials a:hover { background: rgba(255, 255, 255, .1); color: var(--brand-green); }
.topbar__socials svg { width: 16px; height: 16px; opacity: 1; }

/* ---------------------------------------------------------------
   6. Header
   --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 251, 247, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
}
.header.is-stuck {
  box-shadow: 0 8px 28px -18px rgba(28, 25, 23, .35);
  border-bottom-color: var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: auto; height: 42px; }
.brand__text { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-orange));
}

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}
.burger span {
  position: relative;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background var(--t-fast);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t), top var(--t);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Drawer móvil */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  background: var(--cream);
  z-index: 950;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(102%);
  transition: transform var(--t-slow);
  box-shadow: -20px 0 50px -30px rgba(28, 25, 23, .5);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__head img { height: 38px; width: auto; }
.drawer__close {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
.drawer a.drawer__link {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 12px;
  border-radius: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer a.drawer__link:hover { background: var(--sand); }
.drawer a[aria-current="page"] { color: var(--brand-orange); }
.drawer .btn { margin-top: 22px; }
.drawer__contact { margin-top: 26px; font-size: .9rem; color: var(--ink-muted); }
.drawer__contact a { display: block; margin-bottom: 6px; }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, .5);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  z-index: 940;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 17, 15, .94) 6%, rgba(20, 17, 15, .78) 42%, rgba(20, 17, 15, .34) 74%, rgba(20, 17, 15, .18) 100%),
    linear-gradient(180deg, rgba(20, 17, 15, .35), transparent 40%);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner {
  padding: clamp(74px, 11vw, 148px) 0 clamp(96px, 12vw, 168px);
  max-width: 780px;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .accent {
  background: linear-gradient(96deg, var(--brand-green) 10%, var(--brand-green-soft) 55%, var(--brand-orange-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.04rem, 1.9vw, 1.28rem);
  color: rgba(255, 255, 255, .87);
  max-width: 590px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 26px;
}
.hero__badge b {
  display: inline-grid;
  place-items: center;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: var(--brand-green);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__overlap,
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-bottom: 8px;
}

/* ---------------------------------------------------------------
   8. Contadores
   --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat {
  padding: 34px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}
.stat__value .suffix { color: var(--brand-orange); }
.stat__label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------
   9. Tarjetas genéricas
   --------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card h3 { margin-bottom: .5em; }
.card p { font-size: .96rem; }

.card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 20px;
  background: linear-gradient(140deg, var(--brand-green-soft), var(--brand-green));
  color: var(--ink);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--orange { background: linear-gradient(140deg, var(--brand-orange-soft), var(--brand-orange)); color: #fff; }
.card__icon--dark { background: var(--ink); color: var(--brand-green); }
.card__icon--sand { background: var(--sand); color: var(--brand-orange-deep); }

/* Programas (con imagen) */
.program {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  color: #fff;
  isolation: isolate;
}
.program img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform var(--t-slow);
}
.program::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 15, .1) 20%, rgba(20, 17, 15, .78) 68%, rgba(20, 17, 15, .94) 100%);
}
.program:hover img { transform: scale(1.06); }
.program__body { padding: 26px; }
.program h3 { color: #fff; margin-bottom: .35em; font-size: 1.32rem; }
.program p { color: rgba(255, 255, 255, .84); font-size: .93rem; margin: 0; }
.program__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-green);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   10. Split (imagen + texto)
   --------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}
.split__media--offset::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--brand-green), var(--brand-orange));
  opacity: .16;
  z-index: -1;
}
.split__media-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-width: 230px;
}
.split__media-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brand-orange);
  margin-bottom: 4px;
}
.split__media-badge span { font-size: .82rem; color: var(--ink-muted); line-height: 1.35; display: block; }

.check-list { list-style: none; padding: 0; margin: 26px 0 30px; }
.check-list li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------------------------------------------------------------
   11. Cita / valores
   --------------------------------------------------------------- */
.quote {
  position: relative;
  padding: clamp(34px, 5vw, 54px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2a2522, var(--ink));
  color: #fff;
  overflow: hidden;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -34px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 13rem;
  line-height: 1;
  color: var(--brand-green);
  opacity: .18;
}
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.36;
  font-weight: 500;
  color: #fff;
  text-wrap: balance;
}
.quote cite {
  font-style: normal;
  font-size: .92rem;
  color: var(--brand-green);
  font-weight: 600;
  letter-spacing: .02em;
}

/* ODS */
.ods { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ods span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
}
.ods span b {
  font-family: var(--font-display);
  color: var(--brand-orange);
  font-size: .82rem;
}

/* ---------------------------------------------------------------
   12. Noticias
   --------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 26px; }

.post {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.post__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-green); }
.post h3 { font-size: 1.16rem; margin-bottom: .5em; }
.post p { font-size: .93rem; color: var(--ink-soft); flex: 1; }
.post__link {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand-orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post__link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.post:hover .post__link svg { transform: translateX(4px); }

/* ---------------------------------------------------------------
   13. Donar
   --------------------------------------------------------------- */
.donate {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-orange) 0%, #d9410f 52%, #b8360a 100%);
  color: #fff;
  padding: clamp(38px, 6vw, 68px);
}
.donate::before,
.donate::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.donate::before {
  width: 420px; height: 420px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(198, 211, 0, .5), transparent 68%);
}
.donate::after {
  width: 300px; height: 300px;
  left: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
}
.donate__inner { position: relative; z-index: 1; }
.donate h2 { color: #fff; }
.donate .lead { color: rgba(255, 255, 255, .9); max-width: 620px; }

.bank-card {
  margin-top: 34px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.bank-card__title {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 18px;
}
.bank-rows { display: grid; gap: 12px; }
.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, .22);
}
.bank-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bank-row dt { font-size: .84rem; color: rgba(255, 255, 255, .76); margin: 0; }
.bank-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  color: #fff;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.copy-btn {
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 8px;
  padding: 4px 11px;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.copy-btn:hover { background: #fff; color: var(--brand-orange-deep); }
.copy-btn.is-done { background: var(--brand-green); color: var(--ink); border-color: transparent; }

.donate__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------------------------------------------------------------
   14. CTA final
   --------------------------------------------------------------- */
.cta-final {
  text-align: center;
  padding: clamp(52px, 8vw, 92px) clamp(24px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-green) 0%, #b9c400 60%, #a8b300 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28, 25, 23, .12) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--ink); max-width: 720px; margin-inline: auto; }
.cta-final p { max-width: 560px; margin: 0 auto 32px; color: rgba(28, 25, 23, .78); }
.cta-final .hero__actions { justify-content: center; }

/* ---------------------------------------------------------------
   15. Formularios
   --------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .96rem;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(234, 78, 27, .12);
}
.field .hint { font-size: .8rem; color: var(--ink-muted); }
.field .error { font-size: .82rem; color: var(--brand-orange-deep); font-weight: 600; display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--brand-orange); }
.field.is-invalid .error { display: block; }

.form-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  border: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-soft);
}
.form-note svg { width: 20px; height: 20px; flex: none; color: var(--brand-green-deep); margin-top: 2px; }

.form-status {
  display: none;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  background: rgba(198, 211, 0, .18);
  border: 1px solid var(--brand-green);
  color: var(--brand-green-ink);
}
.form-status.is-visible { display: block; }

/* Info de contacto */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--t), transform var(--t);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.contact-card__icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--sand);
  color: var(--brand-orange-deep);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card h4 { margin-bottom: 3px; font-size: .98rem; }
.contact-card a, .contact-card p { font-size: .92rem; margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   16. Footer
   --------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding-top: clamp(56px, 7vw, 84px);
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer__logo {
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  display: inline-block;
  margin-bottom: 20px;
}
.footer__logo img { height: 40px; width: auto; }
.footer h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 11px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--brand-green); }
.footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.footer__socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.footer__socials a:hover { background: var(--brand-green); color: var(--ink); transform: translateY(-3px); }
.footer__socials svg { width: 19px; height: 19px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255, 255, 255, .52);
}

/* ---------------------------------------------------------------
   17. Flotantes
   --------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 20px 13px 14px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 38px -12px rgba(37, 211, 102, .8); }
.wa-float svg { width: 26px; height: 26px; flex: none; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 790;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t), visibility var(--t), transform var(--t);
  box-shadow: var(--shadow-sm);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------------
   18. Page hero (páginas internas)
   --------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(46px, 6vw, 72px);
  background: linear-gradient(160deg, var(--sand) 0%, var(--cream) 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -180px; top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 211, 0, .34), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  left: -140px; bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 78, 27, .18), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 660px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--brand-orange); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .55; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus { top: 16px; color: #fff; }

/* Utilidades */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.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;
}

/* ---------------------------------------------------------------
   19. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 940px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media--offset::before { display: none; }
  .split__media-badge { right: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .topbar__contacts span.hide-sm { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__overlap, .hero__stats { margin-top: -46px; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
  .bank-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bank-row dd { text-align: left; justify-content: flex-start; }
  .card { padding: 26px 22px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

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

@media print {
  .header, .topbar, .footer, .wa-float, .to-top, .drawer, .scrim { display: none !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------
   20. Franja de Instagram
   --------------------------------------------------------------- */
.ig-band {
  position: relative;
  background: linear-gradient(165deg, #241f1d 0%, var(--ink) 55%, #171311 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
}
.ig-band::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  top: -320px; right: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 78, 27, .38), transparent 66%);
  pointer-events: none;
}
.ig-band::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  bottom: -260px; left: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 211, 0, .26), transparent 68%);
  pointer-events: none;
}
.ig-band .container { position: relative; z-index: 1; }

.ig-band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.ig-band__title { max-width: 620px; }
.ig-band__title h2 { color: #fff; margin-bottom: .35em; }
.ig-band__title p { color: rgba(255, 255, 255, .74); margin: 0; }

.ig-handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-green);
  margin-bottom: 14px;
}
.ig-handle svg { width: 20px; height: 20px; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2a2522;
  isolation: isolate;
}
.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.ig-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0) 40%, rgba(28, 25, 23, .68) 100%);
  opacity: 0;
  transition: opacity var(--t);
}
.ig-tile__icon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity var(--t), transform var(--t);
}
.ig-tile__icon svg {
  width: 42px;
  height: 42px;
  color: #fff;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
}
.ig-tile:hover img,
.ig-tile:focus-visible img { transform: scale(1.08); }
.ig-tile:hover::after,
.ig-tile:focus-visible::after { opacity: 1; }
.ig-tile:hover .ig-tile__icon,
.ig-tile:focus-visible .ig-tile__icon { opacity: 1; transform: scale(1); }

.ig-band__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.ig-band__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .7);
}
.ig-band__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.1;
}
.ig-avatar {
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 7px;
  box-shadow: 0 0 0 2px var(--brand-green), 0 0 0 4px rgba(234, 78, 27, .55);
}
.ig-avatar img { width: 100%; height: auto; }

/* Espacio reservado para un widget de feed en vivo (opcional) */
.ig-embed-slot { margin-top: 30px; }
.ig-embed-slot:empty { display: none; }

@media (max-width: 940px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ig-band__cta { flex-direction: column; align-items: flex-start; }
  .ig-tile__icon svg { width: 32px; height: 32px; }
}

/* ---------------------------------------------------------------
   21. Franja de emergencia (campaña terremoto)
   --------------------------------------------------------------- */
:root {
  --emergency: #c1121f;
  --emergency-mid: #e03131;
  --emergency-deep: #8c0d17;
}

.alert-bar {
  position: relative;
  z-index: 910;
  background: linear-gradient(96deg, var(--emergency-deep) 0%, var(--emergency) 42%, var(--emergency-mid) 100%);
  color: #fff;
  overflow: hidden;
}
.alert-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-58deg, transparent 0 22px, rgba(255, 255, 255, .05) 22px 44px);
  pointer-events: none;
}
.alert-bar .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  min-height: 58px;
  padding-block: 9px;
  flex-wrap: wrap;
  text-align: center;
}
.alert-bar__flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .01em;
}
.alert-bar__flag .dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .85);
  animation: alertPulse 2s infinite;
}
@keyframes alertPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.alert-bar__text {
  font-size: .9rem;
  color: rgba(255, 255, 255, .92);
}
.alert-bar__text strong { color: #fff; }
.alert-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--emergency-deep);
  font-family: var(--font-display);
  font-size: .87rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55);
}
.alert-bar__cta:hover { color: var(--emergency-deep); transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .6); }
.alert-bar__cta svg { width: 15px; height: 15px; }

@media (max-width: 680px) {
  .alert-bar__text { font-size: .84rem; }
  .alert-bar__flag { font-size: .87rem; }
}

/* ---------------------------------------------------------------
   22. Ventana emergente de campaña
   --------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 12, .78);
  backdrop-filter: blur(5px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  width: 100%;
  max-width: 900px;
  max-height: min(88vh, 620px);
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  transform: translateY(22px) scale(.97);
  transition: transform var(--t-slow);
}
.modal.is-open .modal__panel { transform: none; }

.modal__media { position: relative; background: var(--ink); min-height: 260px; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.modal__body {
  padding: clamp(26px, 3.4vw, 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(193, 18, 31, .1);
  color: var(--emergency);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.modal__tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emergency);
  animation: alertPulse 2s infinite;
}
.modal__body h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: .5em; }
.modal__body p { font-size: .96rem; margin-bottom: 1em; }
.modal__body .modal__actions { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.modal__dismiss {
  margin-top: 6px;
  background: none;
  border: 0;
  color: var(--ink-muted);
  font-size: .85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
}
.modal__dismiss:hover { color: var(--ink); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 25, 23, .55);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--t-fast), transform var(--t-fast);
}
.modal__close:hover { background: rgba(28, 25, 23, .85); transform: rotate(90deg); }

.modal__small {
  font-size: .78rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 0;
}

@media (max-width: 760px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .modal__media { min-height: 185px; }
  .modal__body { padding: 24px 22px 28px; }
  .modal__close { background: rgba(28, 25, 23, .7); }
}

/* ---------------------------------------------------------------
   23. Campaña: datos y galería
   --------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--white); padding: 26px 20px; text-align: center; }
.fact__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--emergency);
  margin-bottom: 8px;
}
.fact__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform var(--t-slow); }
.photo-grid figure:hover img { transform: scale(1.05); }
.photo-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid figure:first-child img { aspect-ratio: auto; height: 100%; }
.photo-grid figcaption {
  font-size: .78rem;
  color: var(--ink-muted);
  padding: 10px 12px 0;
}

/* Barra de progreso de la campaña */
.progress {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.progress__track {
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--sand-deep);
  overflow: hidden;
  margin-bottom: 16px;
}
.progress__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--emergency), var(--brand-orange) 60%, var(--brand-green));
  transition: width 1.2s var(--ease);
}
.progress__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.progress__amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.progress__amount span { font-size: .9rem; font-weight: 500; color: var(--ink-muted); }
.progress__meta { font-size: .85rem; color: var(--ink-muted); }

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.share-row__label {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  width: 100%;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast);
}
.share-btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-btn svg { width: 17px; height: 17px; }
.share-btn--wa { background: #25d366; border-color: transparent; color: #fff; }
.share-btn--wa:hover { color: #fff; background: #1fb959; }
.share-btn--fb { background: #1877f2; border-color: transparent; color: #fff; }
.share-btn--fb:hover { color: #fff; background: #1466d6; }

@media (max-width: 940px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid figure:first-child { grid-column: span 2; grid-row: auto; }
  .photo-grid figure:first-child img { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid figure:first-child { grid-column: span 1; }
}

/* ---------------------------------------------------------------
   24. Hero de campaña de emergencia
   --------------------------------------------------------------- */
.page-hero--alert {
  background: linear-gradient(158deg, #2b0e11 0%, #451216 52%, #241f1d 100%);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.page-hero--alert::before {
  background: radial-gradient(circle, rgba(193, 18, 31, .55), transparent 70%);
}
.page-hero--alert::after {
  background: radial-gradient(circle, rgba(234, 78, 27, .28), transparent 70%);
}
.page-hero--alert h1 { color: #fff; }
.page-hero--alert .lead { color: rgba(255, 255, 255, .82); }
.page-hero--alert .breadcrumb,
.page-hero--alert .breadcrumb a { color: rgba(255, 255, 255, .62); }
.page-hero--alert .breadcrumb a:hover { color: var(--brand-green); }
.page-hero--alert .eyebrow { color: var(--brand-green); }

.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(193, 18, 31, .22);
  border: 1px solid rgba(224, 49, 49, .55);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.alert-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5b5b;
  animation: alertPulse 2s infinite;
}

.note-box {
  border-left: 4px solid var(--brand-green);
  background: rgba(198, 211, 0, .1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.note-box strong { color: var(--ink); font-family: var(--font-display); display: block; margin-bottom: 6px; }

/* ---------------------------------------------------------------
   25. Franja de donaciones (protagonista del hero)
   --------------------------------------------------------------- */
.donate-band {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.donate-band__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  background: linear-gradient(96deg, var(--brand-green) 0%, #bcc700 42%, var(--brand-orange-soft) 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.donate-band__head svg { width: 17px; height: 17px; flex: none; }

.donate-band__options { display: grid; grid-template-columns: 1fr 1fr; }

.donate-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px;
  border-right: 1px solid var(--line);
  transition: background var(--t-fast);
}
.donate-opt:last-child { border-right: 0; }
.donate-opt:hover { background: var(--sand); }

.donate-opt__icon {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}
.donate-opt__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.donate-opt__body { flex: 1; min-width: 0; }
.donate-opt__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 3px;
}
.donate-opt__body span {
  display: block;
  font-size: .86rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.donate-opt__arrow {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-orange);
  transition: transform var(--t-fast);
}
.donate-opt:hover .donate-opt__arrow { transform: translateX(5px); }

.donate-band__local { border-top: 1px solid var(--line); background: var(--sand); }

.donate-band__local-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 26px 0;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.donate-band__local-head > span { display: inline-flex; align-items: center; gap: 9px; }
.donate-band__local-head > span svg { width: 15px; height: 15px; color: var(--brand-orange); flex: none; }
.donate-band__local-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand-orange-deep);
  white-space: nowrap;
}
.donate-band__local-head a svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.donate-band__local-head a:hover svg { transform: translateX(4px); }

.donate-band__local-grid { display: grid; grid-template-columns: 1fr 1fr; }

.pay-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 26px 18px;
  border-right: 1px solid var(--line);
}
.pay-item:last-child { border-right: 0; }

.pay-item__icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.pay-item__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pay-item__body { flex: 1; min-width: 0; }
.pay-item__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.pay-item__label { display: block; font-size: .77rem; color: var(--ink-muted); margin-bottom: 8px; }

.pay-item__value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-item__value code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .89rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 11px;
  letter-spacing: .01em;
}

.copy-btn--light { border-color: var(--line); background: var(--white); color: var(--ink); }
.copy-btn--light:hover { background: var(--brand-green); color: var(--ink); border-color: transparent; }

.donate-band__holder {
  margin: 0;
  padding: 12px 26px 15px;
  border-top: 1px dashed var(--line);
  font-size: .83rem;
  color: var(--ink-muted);
}
.donate-band__holder strong { color: var(--ink); }

@media (max-width: 780px) {
  .donate-band__head { padding: 13px 22px; font-size: .74rem; }
  .donate-band__options { grid-template-columns: 1fr; }
  .donate-opt {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 22px;
    gap: 14px;
  }
  .donate-opt:last-child { border-bottom: 0; }
  .donate-opt__icon { width: 48px; height: 48px; border-radius: 13px; }
  .donate-opt__body strong { font-size: 1rem; }
  .donate-band__local-head { padding: 14px 22px 0; }
  .donate-band__local-grid { grid-template-columns: 1fr; }
  .pay-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 22px 16px;
  }
  .pay-item:last-child { border-bottom: 0; }
  .pay-item__icon { width: 42px; height: 42px; border-radius: 12px; }
  .donate-band__holder { padding: 11px 22px 14px; }
}

@media (max-width: 420px) {
  .donate-opt { padding: 17px 18px; }
  .donate-opt__icon { width: 42px; height: 42px; }
  .donate-opt__body span { font-size: .8rem; }
  .pay-item { padding: 14px 18px; gap: 12px; }
  .pay-item__value code { font-size: .8rem; padding: 4px 9px; }
  .pay-item__label { margin-bottom: 6px; }
  .donate-band__local-head { padding: 13px 18px 0; font-size: .7rem; }
  .donate-band__holder { padding: 10px 18px 13px; font-size: .78rem; }
}

/* ---------------------------------------------------------------
   26. Equipo (quienes-somos)
   --------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.member__photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform var(--t-slow); }
.member:hover .member__photo img { transform: scale(1.06); }
.member__body { padding: 20px 22px 24px; }
.member__body h3 { font-size: 1.1rem; margin-bottom: .3em; }
.member__role {
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.member__role span { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------
   27. Voluntarios
   --------------------------------------------------------------- */
.vol-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.vol-hero__bg { position: absolute; inset: 0; z-index: -2; }
.vol-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.vol-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,17,15,.9) 8%, rgba(20,17,15,.72) 46%, rgba(20,17,15,.36) 100%);
}
.vol-hero .container { position: relative; z-index: 1; }
.vol-hero__inner { padding: clamp(68px, 10vw, 128px) 0; max-width: 720px; }
.vol-hero h1 { color: #fff; }
.vol-hero .lead { color: rgba(255,255,255,.86); max-width: 560px; }

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 26px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 5.4rem;
  line-height: 1;
  color: var(--brand-green);
  opacity: .26;
}
.testimonial p { font-size: .95rem; position: relative; z-index: 1; margin-bottom: 1em; }
.testimonial p:last-of-type { margin-bottom: 0; }
