/* ===========================================================
   Más Etica — campaña de aportes
   Paleta e ideas tomadas del mockup inicial
   =========================================================== */

:root {
  --coral: #f26a5f;
  --coral-dark: #d94b3f;
  --coral-soft: #ff8a80;
  --ink: #1c1b1b;
  --paper: #ffffff;
  --paper-off: #f6f2f0;
  --muted: #6b6664;
  --ring: rgba(28, 27, 27, 0.14);

  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;

  --font-display: "Anton", "Archivo Black", Impact, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0 0 1rem; }

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

.section { padding-block: clamp(3rem, 8vw, 6rem); }

.section--coral {
  background: var(--coral);
  color: var(--paper);
}

.section--soft { background: var(--paper-off); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 1.75rem;
}

.eyebrow--coral { color: var(--coral); }

/* ---------- Botón de aporte ---------- */

.btn {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 10px -5px rgba(217, 75, 63, 0.4);
}

.btn:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px rgba(217, 75, 63, 0.45);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn--lg { padding: 1.15rem 2.6rem; font-size: 1.25rem; }

.btn--on-coral {
  --btn-bg: #fff;
  --btn-fg: var(--coral-dark);
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.35);
}
.btn--on-coral:hover { --btn-bg: #fff5f3; background: #fff5f3; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ring);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--coral);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand img { width: 26px; height: auto; }
.brand span { color: var(--ink); }

/* enlace de accesibilidad */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.site-header .btn { padding: 0.6rem 1.3rem; font-size: 0.95rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 27, 27, 0.4) 0%, rgba(28, 27, 27, 0.18) 42%, rgba(242, 106, 95, 0.42) 100%),
    rgba(28, 27, 27, 0.3);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 5rem;
}

.hero__logo {
  width: clamp(52px, 9vw, 76px);
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-size: clamp(3.5rem, 14vw, 9rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__tagline {
  font-size: clamp(1.05rem, 3.4vw, 1.6rem);
  margin: 0.4rem 0 2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero__note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------- Quiénes somos ---------- */

.cards { display: grid; gap: 1rem; }

.card {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 1.15rem 1.75rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}
.card strong { font-weight: 700; }

@media (max-width: 640px) {
  .card { border-radius: var(--radius); }
}

/* ---------- Números ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.stat:nth-child(odd) { background: var(--coral); color: #fff; }
.stat:nth-child(even) {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
}
.stat__label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.stats-note {
  font-style: italic;
  text-align: center;
  max-width: 46ch;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Objetivo ---------- */

.objetivo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.objetivo h2 {
  color: var(--coral);
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin-bottom: 1.25rem;
}
.objetivo__media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 820px) {
  .objetivo { grid-template-columns: 1fr; }
}

/* ---------- Aporte / CTA final ---------- */

.aporte {
  position: relative;
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  margin-inline: var(--pad);
}
.aporte__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.aporte__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(217, 75, 63, 0.85), rgba(28, 27, 27, 0.55));
}
.aporte__content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 9vw, 6rem) 1.5rem;
}
.aporte h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-bottom: 1rem;
}
.aporte p { max-width: 42ch; margin-inline: auto; margin-bottom: 2rem; }

/* ---------- Selector de aportes (SiPago) ---------- */

#elegir-aporte { scroll-margin-top: 5rem; margin-top: clamp(2.5rem, 7vw, 4rem); }

.aportes__title {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.aportes__lead { color: var(--muted); margin-bottom: 2rem; }

.aportes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.aporte-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
}
.aporte-card__item {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.aporte-card__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--coral);
  line-height: 1;
}
.aporte-card__btn { margin-top: 0.75rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.aporte-libre {
  margin-top: 1.75rem;
  border: 2px dashed var(--ring);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.aporte-libre label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.aporte-libre__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.aporte-libre__sign {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--muted);
}
.aporte-libre input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.aporte-libre input:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; }

.aporte-error {
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: #fdecea;
  color: #9b2c22;
  border: 1px solid #f3b4ad;
}

/* ---------- Banner de retorno del pago ---------- */

.aporte-banner {
  position: relative;
  z-index: 70;
  font-size: 0.98rem;
}
.aporte-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.aporte-banner p { margin: 0; }
.aporte-banner__close {
  flex: none;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.aporte-banner__close:hover { opacity: 1; }
.aporte-banner--ok { background: #123d1f; color: #eafbef; }
.aporte-banner--error { background: #5c1a14; color: #ffe9e6; }
.aporte-banner--info { background: var(--ink); color: #fff; }

/* ---------- Cómo aportar (detalle) ---------- */

.como {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.como__item {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.como__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--coral-dark);
}
.como__item p { margin: 0; color: var(--muted); }

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

.site-footer {
  background: var(--ink);
  color: #fff;
  padding-block: 3rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-footer__logo {
  width: 54px;
  height: auto;
  margin-bottom: 0.75rem;
}
.site-footer h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}
.site-footer a { color: #fff; }
.site-footer small { color: rgba(255, 255, 255, 0.6); display: block; margin-top: 0.5rem; }

/* ---------- Barra de aporte fija (mobile) ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 0.75rem var(--pad);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--ring);
  backdrop-filter: blur(8px);
}
.sticky-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  .site-header .btn { display: none; }
  body { padding-bottom: 5rem; }
}

/* ---------- utilidades ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
