/* =========================================================
   global.css — Estilos compartidos de todas las páginas públicas
   Fundación Germen de Paz
   ========================================================= */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --verde-oscuro: #1B4A1E;
  --verde-medio: #2D6A31;
  --verde-claro: #4A9050;
  --verde-hoja: #6AB04C;
  --dorado: #C8960C;
  --dorado-claro: #F0C040;
  --crema: #F8F4ED;
  --crema-oscuro: #EDE8DF;
  --tierra: #8B6914;
  --blanco: #FFFFFF;
  --texto-oscuro: #1A1A1A;
  --texto-medio: #4A4A4A;
  --texto-suave: #7A7A7A;
  --sombra: 0 4px 24px rgba(27,74,30,0.12);
  --sombra-hover: 0 8px 40px rgba(27,74,30,0.22);
  --radio: 16px;
  --radio-grande: 32px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--crema);
  color: var(--texto-oscuro);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 5%;
  background: rgba(248,244,237,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,74,30,0.1);
  transition: all .3s ease;
}
.navbar.scrolled { padding: 16px 5%; box-shadow: var(--sombra); }
.navbar-logo { display: flex; align-items: center; }
.navbar-logo img { height: 72px; width: auto; object-fit: contain; display: block; }
.navbar-logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 1rem; font-weight: 500;
  color: var(--texto-medio);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--verde-claro);
  transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover { color: var(--verde-oscuro); }
.nav-links a:hover::after, .nav-links a.activo::after { transform: scaleX(1); }
.nav-links a.activo { color: var(--verde-oscuro); }
.btn-donar-nav {
  background: var(--dorado);
  color: var(--blanco) !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 500;
  transition: background .2s !important;
}
.btn-donar-nav:hover { background: var(--tierra) !important; }
.btn-donar-nav::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--verde-oscuro); transition: all .3s; }

/* ── Componentes de sección ─────────────────────────────────── */
.seccion-tag {
  display: inline-block;
  background: rgba(27,74,30,0.1);
  color: var(--verde-oscuro);
  padding: 5px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 500;
  margin-bottom: 16px;
}
.seccion-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--verde-oscuro);
  line-height: 1.2;
  margin-bottom: 20px;
}
.seccion-titulo em { font-style: italic; color: var(--dorado); }
.seccion-texto {
  font-size: 1rem;
  color: var(--texto-medio);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}
.seccion-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }

/* ── Botones globales ───────────────────────────────────────── */
.btn-primario {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--verde-oscuro);
  color: var(--blanco);
  padding: 14px 28px; border-radius: 100px;
  font-weight: 500; font-size: .95rem;
  transition: all .2s;
  border: 2px solid var(--verde-oscuro);
}
.btn-primario:hover {
  background: var(--verde-medio);
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}
.btn-secundario {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--verde-oscuro);
  padding: 14px 28px; border-radius: 100px;
  font-weight: 500; font-size: .95rem;
  border: 2px solid var(--verde-oscuro);
  transition: all .2s;
}
.btn-secundario:hover {
  background: var(--verde-oscuro);
  color: var(--blanco);
  transform: translateY(-2px);
}

/* ── Formularios globales ───────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grupo { display: flex; flex-direction: column; gap: 6px; }
.form-grupo.full { grid-column: 1/-1; }
.form-grupo label { font-size: .85rem; font-weight: 500; color: var(--texto-oscuro); }
.form-grupo input,
.form-grupo textarea,
.form-grupo select {
  padding: 12px 16px;
  border: 1.5px solid var(--crema-oscuro);
  border-radius: var(--radio);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--texto-oscuro);
  background: var(--blanco);
  transition: border-color .2s;
  outline: none;
}
.form-grupo input:focus, .form-grupo textarea:focus { border-color: var(--verde-claro); }
.form-grupo textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; display: flex; justify-content: center; }
.form-mensaje {
  display: none; text-align: center; margin-top: 16px;
  padding: 12px; border-radius: var(--radio); font-weight: 500;
}
.form-mensaje.exito { background: rgba(74,144,80,.1); color: var(--verde-oscuro); display: block; }
.form-mensaje.error { background: rgba(200,0,0,.1); color: #c80000; display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--texto-oscuro);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--blanco);
  margin-bottom: 12px;
}
.footer-desc { font-size: .85rem; line-height: 1.7; font-weight: 300; max-width: 280px; }
.footer-lema { font-size: .8rem; line-height: 1.6; font-style: italic; color: rgba(255,255,255,0.55); max-width: 280px; margin: 10px 0; }
.footer-web { display: inline-block; font-size: .85rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; transition: color .2s; }
.footer-web:hover { color: var(--verde-hoja); }
.footer-redes { display: flex; gap: 12px; margin-top: 20px; }
.red-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s;
  cursor: pointer;
}
.red-social:hover { background: var(--verde-claro); }
.footer-col h4 { color: var(--blanco); font-size: .9rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--verde-hoja); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: .8rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1.5px solid #EDE8DF;
  border-radius: 12px;
  padding: 50px 60px;
  margin-bottom: 16px;
  width: 370px;
  height: 200px;
}
.footer-logo-img {
  width: 400px;
  height: 150px;
  object-fit: contain;
}

/* ── Social dock flotante ───────────────────────────────────── */
.social-dock {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.dock-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  color: #fff;
}
.dock-btn:hover { transform: scale(1.1); }
.dock-btn.whatsapp {
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
}
.dock-btn.whatsapp img {
  width: 28px; height: 28px;
}
.dock-btn.facebook {
  background: #1877F2;
  box-shadow: 0 4px 20px rgba(24,119,242,0.45);
  font-size: 1.45rem;
  font-weight: 900;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -1px;
}

/* ── Animaciones ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Responsive global ──────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
}
