/* ============================================
   FUNDACIÓN CRISTIANA Y MISIONERA
   Paleta: Azul marino #0d1a4a + Dorado #e8c44a
   Layout: Top navbar + contenido full-width
   ============================================ */

:root {
  --navy:       #0d1a4a;
  --navy-2:     #0a1238;
  --navy-light: #1a2b6b;
  --gold:       #e8c44a;
  --gold-2:     #f5d96e;
  --white:      #ffffff;
  --bg:         #f4f6fb;
  --surface:    #ffffff;
  --text:       #0d1a4a;
  --muted:      #5c6b9a;
  --border:     rgba(13,26,74,0.10);
  --radius:     14px;
  --radius-sm:  8px;
  --shadow-sm:  0 2px 12px rgba(13,26,74,0.08);
  --shadow-md:  0 6px 30px rgba(13,26,74,0.12);
  --nav-h:      62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== TOP NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.navbar-brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 9px;
  background: #fff;
}
.navbar-brand .brand-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.navbar-brand .brand-sub {
  color: rgba(255,255,255,0.50);
  font-size: 10px;
  font-weight: 400;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  margin-left: 12px;
}
.navbar-nav a {
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 20px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.navbar-nav a:hover { background: rgba(255,255,255,0.10); color: #fff; }
.navbar-nav a.active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 500; }
.navbar-cta {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.navbar-cta:hover { background: var(--gold-2); transform: translateY(-1px); }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  margin-left: auto;
  padding: 4px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  background: var(--navy);
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a.active { color: var(--gold); }
.mobile-menu .mobile-cta {
  display: block;
  margin-top: 14px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* ===== PAGE WRAPPER ===== */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(232,196,74,0.07);
  pointer-events: none;
}
.hero-content { flex: 1; position: relative; }
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 20px;
  transition: background .15s, transform .15s;
}
.hero-btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.hero-btn-ghost {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 20px;
  transition: border-color .15s, background .15s;
}
.hero-btn-ghost:hover { border-color: rgba(255,255,255,0.50); background: rgba(255,255,255,0.07); }
.hero-flags { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.flag-chip {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  white-space: nowrap;
}

/* ===== STAT CARDS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #eef1fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: 12px; color: var(--muted); }

/* ===== GENERIC CARD ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.70; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card ul { padding-left: 18px; margin-top: 8px; }
.card li { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 4px; }
.card strong { color: var(--navy); }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }

/* ===== NAVY CARD ===== */
.card-navy {
  background: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}
.card-navy .quote-mark { font-size: 48px; color: var(--gold); line-height: 0.8; margin-bottom: 12px; font-family: Georgia, serif; }
.card-navy p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.75; font-style: italic; margin-bottom: 14px; }
.card-navy cite { font-size: 12px; font-style: normal; font-weight: 600; color: var(--gold); }

/* ===== PILLAR ROWS ===== */
.pillar-list { display: flex; flex-direction: column; gap: 0; }
.pillar-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.pillar-row:last-child { border-bottom: none; }
.pillar-icon { width: 36px; height: 36px; border-radius: 9px; background: #eef1fb; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.pillar-body .pillar-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.pillar-body .pillar-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ===== MISSION CARDS ===== */
.mission-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.mission-flag { font-size: 26px; margin-bottom: 8px; }
.mission-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.mission-loc { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 10px; }
.mission-tag { display: inline-block; background: #eef1fb; color: var(--navy); font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

/* ===== GALLERY — fotos múltiples (recortadas para cuadrícula) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.gitem {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.gitem:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Fotos múltiples — altura fija, recortada centrada */
.gitem img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .25s;
}
.gitem:hover img { transform: scale(1.04); }

/* ===== GALERÍA FOTO ÚNICA — imagen completa, sin recortar ===== */
.gallery-single .gitem img,
.gitem.gallery-single img {
  height: auto !important;
  max-height: 560px;
  object-fit: contain !important;
  object-position: center;
  background: #f0f2f8;
}
.gallery-single .gitem:hover img,
.gitem.gallery-single:hover img { transform: none; }

/* ===== ESTRATEGIA ICONS ===== */
.estrategia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.estrategia-item { background: #eef1fb; border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.estrategia-item .e-icon { font-size: 28px; margin-bottom: 8px; }
.estrategia-item .e-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.estrategia-item .e-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ===== MAP ===== */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 16px; }
.map-wrap iframe { display: block; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--navy); font-size: 13px; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #eef1fb; transform: translateY(-1px); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.btn-gold:hover { background: var(--gold-2); }

/* ===== CONTACT ROW ===== */
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ===== DONATION ===== */
.donation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.donation-method { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.donation-method h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.donation-method p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 4px; }
.donation-method strong { color: var(--navy); }

/* ===== BUDGET ===== */
.budget-box { background: var(--navy); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 20px; }
.budget-box .budget-amount { font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.budget-box .budget-lbl { font-size: 13px; color: rgba(255,255,255,0.60); }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.55); font-size: 12px; padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.55); transition: color .15s; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .navbar-nav, .navbar-cta { display: none; }
  .navbar-toggle { display: block; }
  .hero { flex-direction: column; padding: 24px; }
  .hero-flags { flex-direction: row; flex-wrap: wrap; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .donation-grid { grid-template-columns: 1fr; }
  .page { padding: 20px 16px 50px; }
  .hero h1 { font-size: 22px; }
}
@media (max-width: 500px) {
  .stats-row { grid-template-columns: 1fr; }
}
