/* ============================================================
   FUNDACIÓN — estilos de fundacion.html
   Reutiliza tokens, .container, .section, .btn, .eyebrow, etc.
   ============================================================ */

/* ---------- Hero ---------- */
.fund-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4.5rem));
}
.fund-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(212, 175, 55, 0.14), transparent 70%),
    radial-gradient(45% 45% at 8% 90%, rgba(212, 175, 55, 0.07), transparent 70%);
  /* difumina el borde inferior para que no se vea un corte entre secciones */
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.fund-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.fund-hero__title {
  font-size: var(--fs-hero);
  text-transform: uppercase;
  line-height: 1.12;
  margin-block: 0.4rem 1.2rem;
}
.fund-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.fund-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card), var(--glow-gold-soft);
  overflow: hidden;
}
.fund-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.fund-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 8, 6, 0.55));
}

/* ---------- Propósito ---------- */
.fund-mission__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.fund-mission__side {
  display: grid;
  gap: 1.1rem;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--border-gold);
  color: var(--text-dim);
}
.fund-stats {
  list-style: none;
  margin: clamp(2.2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.fund-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 1.2rem;
  text-align: center;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.fund-stats__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}
.fund-stats__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ---------- Líneas de acción ---------- */
.fund-lines__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.fund-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-deep));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fund-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-strong);
  box-shadow: var(--shadow-card), var(--glow-gold-soft);
}
.fund-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--gold-bright);
  border: 1px solid var(--border-gold-strong);
  border-radius: 50%;
  box-shadow: var(--glow-gold-soft);
}
.fund-card__icon svg { width: 24px; height: 24px; }
.fund-card h3 { font-size: 1.1rem; }
.fund-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Galería "En terreno" ---------- */
.fund-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.fund-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
}
.fund-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.fund-shot:hover img { transform: scale(1.05); }
.fund-shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: linear-gradient(180deg, transparent, rgba(8, 6, 4, 0.92));
}

/* ---------- Voluntariado ---------- */
.fund-volunteer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.fund-volunteer__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}
.fund-volunteer__media img { display: block; width: 100%; height: auto; }
.fund-volunteer .btn { margin-top: 1.6rem; }

/* ---------- Contacto directo (red de apoyo) ---------- */
.fund-contact {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.fund-contact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.fund-contact [data-icon] {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--gold-bright);
  border: 1px solid var(--border-gold-strong);
  border-radius: 50%;
}
.fund-contact svg { width: 17px; height: 17px; }
.fund-contact a { overflow-wrap: anywhere; }
.fund-contact a:hover { color: var(--gold-bright); }

/* ---------- Página 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; }
.notfound__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.notfound__box .section-lead { margin-inline: auto; }

/* ---------- Nota legal ---------- */
.fund-legal-wrap { padding-top: 0; }
.fund-legal {
  max-width: 78ch;
  margin-inline: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fund-hero__grid,
  .fund-mission__grid,
  .fund-volunteer__grid { grid-template-columns: 1fr; }
  .fund-hero__media { max-width: 560px; margin-inline: auto; }
  .fund-mission__side { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid var(--border-gold); }
  .fund-lines__grid { grid-template-columns: repeat(2, 1fr); }
  .fund-gallery__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .fund-shot { aspect-ratio: 16 / 11; }
}
@media (max-width: 600px) {
  .fund-stats { grid-template-columns: 1fr; }
  .fund-lines__grid { grid-template-columns: 1fr; }
  .fund-hero__cta .btn { width: 100%; justify-content: center; }
}
