/* ===== Fundación HAPI — Hoja de estilos ===== */
:root {
  --navy: #1c3a5e;
  --navy-deep: #14293f;
  --gold: #b8894e;
  --gold-light: #cda36a;
  --cream: #f7f4ee;
  --cream-alt: #efe9df;
  --ink: #23303c;
  --muted: #5c6b78;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px -20px rgba(28, 58, 94, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(28, 58, 94, 0.28);
  --max: 1160px;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Tipografía ===== */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold-light); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto; }
.lead-light { color: rgba(255,255,255,0.82); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); box-shadow: var(--shadow-sm); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,58,94,0.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 46px; width: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-list a { font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: color .2s; }
.nav-list a:hover { color: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: clamp(48px, 8vw, 96px) 0; background:
  radial-gradient(120% 90% at 100% 0%, rgba(184,137,78,0.10), transparent 55%),
  radial-gradient(120% 90% at 0% 100%, rgba(28,58,94,0.07), transparent 55%),
  var(--cream); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin: 22px 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 32px; margin-top: 46px; flex-wrap: wrap; }
.hero-badges div { display: flex; flex-direction: column; }
.hero-badges strong { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); }
.hero-badges span { font-size: 0.85rem; color: var(--muted); }
.hero-logo-card {
  background: transparent; padding: 10px; display: grid; place-items: center;
}
.hero-logo-card img { width: 118%; max-width: 118%; height: auto; }

/* ===== Secciones ===== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--cream-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head-light h2 { color: #fff; }

/* ===== Misión / Visión / Valores ===== */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mv-card {
  background: #fff; border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(28,58,94,0.06);
  transition: transform .2s ease;
}
.mv-card:hover { transform: translateY(-4px); }
.mv-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #fff;
  font-size: 1.3rem; margin-bottom: 20px;
}
.mv-card p { color: var(--muted); }
.values-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.values-list li { color: var(--muted); padding-left: 20px; position: relative; }
.values-list li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 4px; }
.values-list strong { color: var(--navy); }

/* ===== Líneas de acción ===== */
.lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.line-card {
  background: #fff; border-radius: var(--radius); padding: 38px 30px;
  border: 1px solid rgba(28,58,94,0.06); box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold); transition: transform .2s ease;
}
.line-card:hover { transform: translateY(-4px); }
.line-num { font-family: var(--serif); font-size: 2.4rem; color: var(--cream-alt); font-weight: 700; line-height: 1; margin-bottom: 8px; -webkit-text-stroke: 1px var(--gold); }
.line-card p { color: var(--muted); margin: 14px 0 20px; }
.line-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.line-tags li { background: var(--cream); color: var(--navy); font-size: 0.8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; }

/* ===== Métricas ===== */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 60px; }
.metric { text-align: center; padding: 30px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metric strong { display: block; font-family: var(--serif); font-size: 2.8rem; color: var(--gold); line-height: 1; }
.metric span { font-size: 0.9rem; color: var(--muted); margin-top: 8px; display: block; }

/* ===== Testimonios ===== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--navy); }
.testimonial p { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); font-style: italic; }
.testimonial footer { margin-top: 16px; font-size: 0.9rem; color: var(--gold); font-weight: 600; }

/* ===== Sección Navy (Participar) ===== */
.section-navy { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; }
.participate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.part-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 34px 28px; }
.part-card h3 { color: #fff; margin-bottom: 12px; }
.part-card p { color: rgba(255,255,255,0.78); margin-bottom: 24px; }

/* ===== Aliados (franja discreta al pie) ===== */
.allies { padding: 44px 0 48px; background: var(--cream-alt); border-top: 1px solid rgba(28,58,94,0.08); }
.allies-head { text-align: center; margin-bottom: 28px; }
.allies-head h2 { font-size: 1.3rem; }
.allies-head p { color: var(--muted); margin-top: 6px; font-size: 0.92rem; }
.allies-row { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.ally { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 200px; transition: transform .2s ease; }
.ally:hover { transform: translateY(-4px); }
.ally-logo { background: transparent; padding: 0; width: 130px; height: 110px; display: grid; place-items: center; }
.ally-logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.ally-name { font-weight: 600; color: var(--navy); margin-top: 10px; font-size: 0.9rem; }
.ally-role { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.allies-cta { text-align: center; margin-top: 30px; font-size: 0.92rem; color: var(--muted); }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
.contact-form { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(28,58,94,0.18);
  border-radius: var(--radius-sm); font-family: var(--sans); font-size: 0.95rem; color: var(--ink); background: var(--cream);
  transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,78,0.15); background: #fff;
}
.form-note { margin-top: 14px; color: var(--navy); font-weight: 600; text-align: center; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-block h3 { font-size: 1.1rem; margin-bottom: 12px; }
.info-block p { color: var(--muted); margin-bottom: 6px; }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social a { color: var(--navy); font-weight: 600; font-size: 0.9rem; padding: 8px 14px; border: 1px solid rgba(28,58,94,0.15); border-radius: 999px; transition: .2s; }
.social a:hover { background: var(--navy); color: #fff; }
.info-transparency { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.link-gold { color: var(--gold); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #fff; padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-logo { height: 54px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.95rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.88rem; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; }
  .hero-logo-card img { width: 100%; max-width: 100%; }
  .mv-grid, .lines-grid, .metrics, .testimonials, .participate-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 74px; right: 0; left: 0; flex-direction: column; align-items: flex-start;
    background: var(--cream); padding: 18px 24px; gap: 16px; border-bottom: 1px solid rgba(28,58,94,0.1);
    box-shadow: var(--shadow-sm); display: none;
  }
  .nav-list.open { display: flex; }
  .mv-grid, .lines-grid, .metrics, .testimonials, .participate-grid, .allies-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 22px; }
}
