/* ===================================================================
   Rescatista.soy — Landing
   Paleta tomada de los logos: negro, crema, dorado y rojo.
   =================================================================== */

:root {
  --red:    #E63027;
  --red-dk: #c4231b;
  --gold:   #F5A623;
  --gold-dk:#e08e0b;
  --ink:    #16130f;
  --ink-soft:#3a342c;
  --cream:  #FFF9ED;
  --cream-2:#FDEFD4;
  --white:  #ffffff;
  --muted:  #6b6357;

  --shadow-sm: 0 4px 14px rgba(22, 19, 15, .08);
  --shadow-md: 0 14px 40px rgba(22, 19, 15, .14);
  --shadow-pop: 0 6px 0 var(--ink);

  --radius: 22px;
  --radius-lg: 32px;
  --maxw: 1140px;

  --ff-display: 'Fredoka', system-ui, sans-serif;
  --ff-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

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

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .7rem 1.4rem;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
  box-shadow: 0 4px 0 var(--ink);
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.1rem; }

.btn-donate { background: var(--gold); color: var(--ink); }
.btn-donate:hover { background: #ffb733; }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-whatsapp { background: #25D366; color: var(--ink); }
.btn-whatsapp:hover { background: #2ee577; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 237, .9);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 249, 237, .96); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { height: 56px; width: auto; }
.brand-name { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--ff-display);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: color .15s ease;
}
.nav a:not(.btn):hover { color: var(--red); }
.nav-cta { box-shadow: 0 3px 0 var(--ink); padding: .55rem 1.1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--ink); border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .35;
  z-index: 0;
}
.hero-blob--red { width: 380px; height: 380px; background: var(--red); top: -120px; right: -80px; }
.hero-blob--gold { width: 300px; height: 300px; background: var(--gold); bottom: -120px; left: -90px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  margin: 0 0 1.1rem;
  letter-spacing: -.5px;
}
.hero-title .accent { color: var(--red); }
.underline {
  position: relative;
  white-space: nowrap;
}
.underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .28em;
  background: var(--gold);
  z-index: -1;
  border-radius: 4px;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.1rem; }
.hero-note { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 0; }

/* Insignia / escudo */
.hero-badge {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.badge-mark {
  width: min(360px, 80%);
  filter: drop-shadow(0 18px 30px rgba(22,19,15,.25));
  animation: float 5s ease-in-out infinite;
}
.badge-glow {
  position: absolute;
  top: 46%; left: 50%;
  width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,166,35,.45) 0%, rgba(245,166,35,0) 65%);
  z-index: -1;
}
.badge-caption {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .9rem;
  box-shadow: var(--shadow-pop);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Secciones genéricas ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -.5px;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 2.4rem;
}
.section-intro em { color: var(--red); font-style: normal; font-weight: 700; }

/* ---------- Manifiesto ---------- */
.manifiesto { background: var(--white); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}
.pillar {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-pop);
}
.pillar h3 { font-family: var(--ff-display); font-size: 1.3rem; margin: 0 0 .5rem; }
.pillar p { margin: 0; color: var(--ink-soft); }
.pillar--accent { background: var(--gold); }

/* ---------- Cómo ayudar ---------- */
.ayudar { background: var(--cream); }
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.help-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  transition: transform .15s ease;
}
.help-card:hover { transform: translateY(-6px); }
.help-ico {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: .8rem;
}
.help-card h3 { font-family: var(--ff-display); font-size: 1.45rem; margin: 0 0 .5rem; }
.help-card p { color: var(--ink-soft); margin: 0 0 1.2rem; flex: 1; }
.card-link {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Donar ---------- */
.donar { background: var(--cream); }
.donar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.donar-note { color: var(--ink-soft); }
.donar-note a { color: var(--red); font-weight: 700; }
.donar-methods { display: grid; gap: 1.2rem; }
.donate-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-pop);
}
.donate-tag {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: .25rem .8rem;
  margin-bottom: .6rem;
}
.donate-card h3 { font-family: var(--ff-display); font-size: 1.3rem; margin: 0 0 .4rem; }
.donate-big {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
  margin: .2rem 0;
  letter-spacing: 1px;
}
.donate-sub { color: var(--muted); margin: 0; }
.donate-line { margin: .2rem 0; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contacto { background: var(--white); }
.contacto-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.social-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-pop);
}
.social-card h3 { font-family: var(--ff-display); font-size: 1.4rem; margin: 0 0 1rem; }
.social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.social-list a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--ff-display);
  font-weight: 600;
  text-decoration: none;
  padding: .7rem 1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  transition: transform .12s ease, background .15s ease;
}
.social-list a:hover { transform: translateX(4px); background: var(--cream-2); }
.social-list span { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--red);
  color: var(--white);
  text-align: center;
}
.cta-final h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0 0 .3rem;
}
.cta-final p { font-size: 1.25rem; margin: 0 0 1.8rem; opacity: .95; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 3rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { height: 88px; width: auto; }
.footer-meta p { margin: 0; }
.footer-small { color: rgba(255,249,237,.6); font-size: .9rem; margin-top: .3rem !important; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a {
  font-family: var(--ff-display);
  font-weight: 500;
  text-decoration: none;
  color: var(--cream);
}
.footer-nav a:hover { color: var(--gold); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 58px; height: 58px;
  background: #25D366;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  z-index: 60;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { order: -1; }
  .badge-mark { width: min(240px, 60%); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .donar-inner, .contacto-inner { grid-template-columns: 1fr; }

  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    padding: 1rem 22px 1.4rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(22,19,15,.08); }
  .nav-cta { margin-top: .8rem; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .brand-mark { height: 48px; }
  .brand-name { height: 42px; }
  .help-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-mark { animation: none; }
  * { scroll-behavior: auto; }
}
