/* =========================================================
   Fundación Esperanza — Alegría de Vivir
   Shared design system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Dancing+Script:wght@500;600;700&display=swap');

:root {
  /* Brand palette */
  --gold:        #b4a169; /* header bar / muted antique gold */
  --gold-bar-2:  #ab9659; /* header bottom gradient */
  --gold-deep:   #a98f4d; /* buttons */
  --gold-deep-2: #927a3d; /* button gradient end */
  --gold-text:   #b3974c; /* "Alegría" accent text */
  --gold-soft:   #d8cba6; /* soft gold lines / circles */

  --cream:       #f5f0e6; /* page background */
  --cream-2:     #ece3d2; /* large decorative blobs */
  --cream-3:     #efe7d8; /* soft tints */
  --card:        #ffffff;

  --ink:         #1c2333; /* dark navy headings */
  --ink-2:       #28304a; /* body navy */
  --body:        #313a52; /* paragraph text */
  --white:       #ffffff;

  --shadow-card: 0 24px 60px -24px rgba(40, 35, 20, .28);
  --shadow-btn:  0 14px 30px -10px rgba(120, 96, 40, .55);

  --maxw: 1240px;
  --nav-h: 92px;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Dancing Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://shigra.app/FundacionEsperanza/trazo-corazon2.png') center center / 60% auto no-repeat;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.01em;
}

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

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-bar-2) 100%);
  box-shadow: 0 2px 18px -8px rgba(70, 55, 20, .5);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand lockup */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 58px; width: auto; display: block; }
.footer-logo { height: 66px; }
@media (max-width: 860px) { .brand-logo { height: 46px; } }
.brand .mark {
  width: 46px; height: 56px;
  flex: none;
  display: grid; place-items: center;
}
.brand .mark svg { width: 100%; height: 100%; }
.brand .word { color: #fff; line-height: .98; }
.brand .word .l1,
.brand .word .l2 {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand .word .l1 { font-size: 15px; opacity: .95; }
.brand .word .l2 { font-size: 24px; }
.brand .word .tag {
  font-family: var(--script);
  font-weight: 600;
  text-transform: none;
  letter-spacing: .02em;
  font-size: 16px;
  opacity: .92;
  display: block;
  margin-top: -2px;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 44px; }
.nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: 19px;
  padding: 6px 2px;
  position: relative;
  opacity: .92;
  transition: opacity .18s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { font-weight: 600; opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex: none;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  cursor: pointer;
  border-radius: 12px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 2.5px;
  background: #fff;
  border-radius: 3px;
  position: relative;
  margin: 0 auto;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 19px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 18px 34px;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-deep-2) 100%);
  box-shadow: var(--shadow-btn);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(120,96,40,.6); }
.btn-white {
  color: var(--gold-deep);
  background: #fff;
  box-shadow: 0 18px 44px -16px rgba(40,30,10,.45);
}
.btn-white:hover { transform: translateY(-2px); }

/* =========================================================
   DECORATIVE BLOBS
   ========================================================= */
.blob {
  position: absolute;
  background: var(--cream-2);
  z-index: 0;
  pointer-events: none;
}

/* Organic image masks */
.organic-1 { border-radius: 62% 38% 47% 53% / 53% 46% 54% 47%; }
.organic-2 { border-radius: 47% 53% 40% 60% / 58% 42% 58% 42%; }
.organic-3 { border-radius: 50% 50% 48% 52% / 54% 50% 50% 46%; }

/* =========================================================
   IMAGE PLACEHOLDER (swap with real photos)
   ========================================================= */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #e7dcc4 0 14px, #ddd0b3 14px 28px);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: #7a6c4c;
  background: rgba(255,255,255,.78);
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  max-width: 84%;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::after { display: none; }
.ph:has(img) { background: #ece3d2; }

/* =========================================================
   SECTION HELPERS
   ========================================================= */
.section { position: relative; z-index: 1; }
.eyebrow-mark { width: 96px; height: 96px; margin: 0 auto 26px; }
.lead { font-size: 19px; color: var(--body); }
.center { text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #fff; padding: 70px 0 36px; position: relative; z-index: 2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 40px;
}
.footer-grid h4 { font-size: 21px; margin-bottom: 22px; }
.footer-brand .word { color: var(--gold-text); }
.footer-brand .word .tag { color: var(--gold-text); }
.footer-brand p { margin: 22px 0 0; font-size: 16px; max-width: 320px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-links a { font-size: 17px; transition: color .18s ease; }
.footer-links a:hover { color: var(--gold-deep); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.footer-contact li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.footer-contact svg { flex: none; width: 22px; height: 22px; color: var(--gold-deep); margin-top: 2px; }
.socials { display: flex; gap: 14px; margin-bottom: 26px; }
.socials a {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream-3);
  display: grid; place-items: center;
  color: var(--gold-deep);
  transition: transform .18s ease, background .2s ease;
}
.socials a:hover { transform: translateY(-2px); background: var(--gold-soft); }
.socials svg { width: 20px; height: 20px; }
.footer-legal { display: grid; gap: 12px; }
.footer-legal a { font-size: 16px; }
.footer-bottom {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid #ece6d8;
  text-align: center;
  font-size: 15px;
  color: #7c8198;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
}
@media (max-width: 860px) {
  :root { --nav-h: 76px; }
  .wrap { padding: 0 22px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--gold-bar-2);
    padding: 8px 22px 18px;
    box-shadow: 0 18px 30px -16px rgba(60,45,15,.6);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { width: 100%; padding: 14px 2px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .nav-links a.active::after { display: none; }
  .brand .word .l2 { font-size: 21px; }
  body { font-size: 17px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .btn { width: 100%; }
}
