/* =========================================================
   global.css — Sistema de diseño Fundación Germen de Paz
   Verde vivo + amarillo + blanco, elementos orgánicos
   ========================================================= */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Paleta oficial */
  --verde-oscuro: #3DAA1E;       /* verde principal, vivo y brillante */
  --verde-medio: #2E8A16;        /* verde para tarjetas oscuras / hover */
  --verde-claro: #6DC94E;        /* verde decorativo (hojas, íconos) */
  --verde-hoja: #6DC94E;
  --verde-noche: #0E2411;        /* verde muy oscuro, casi negro — footer */
  --dorado: #F5C800;             /* amarillo/dorado principal */
  --dorado-claro: #FFE066;       /* amarillo claro para acentos suaves */
  --tierra: #D1A700;             /* amarillo oscuro para hover de botones dorados */
  --crema: #F9F9F9;              /* fondo neutro secciones alternas */
  --crema-oscuro: #EFEFEF;
  --blanco: #FFFFFF;
  --texto-oscuro: #1A1A1A;
  --texto-medio: #4A4A4A;
  --texto-suave: #7A7A7A;
  --overlay-verde: rgba(61, 170, 30, 0.55);
  --sombra: 0 4px 24px rgba(61,170,30,0.14);
  --sombra-hover: 0 10px 40px rgba(61,170,30,0.24);
  --radio: 20px;
  --radio-grande: 40px;
  --radio-pill: 50px;
  --maxw: 1200px;
  --pad-seccion: 80px;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 5%; padding-right: 5%; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%;
  background: var(--blanco);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: all .3s ease;
}
.navbar.scrolled { padding: 10px 5%; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.navbar-logo { display: flex; align-items: center; }
.navbar-logo img,
.navbar-logo-img {
  height: 104px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height .3s ease;
}
.navbar.scrolled .navbar-logo-img { height: 78px; }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-links a {
  font-size: .92rem; font-weight: 500;
  color: var(--verde-oscuro);
  border: 2px solid var(--dorado);
  border-radius: var(--radio-pill);
  padding: 8px 20px;
  background: transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--dorado); color: var(--verde-oscuro); transform: translateY(-1px); }
.nav-links a.activo { background: var(--dorado); color: var(--verde-oscuro); }
.btn-donar-nav {
  background: var(--dorado) !important;
  border-color: var(--dorado) !important;
  color: var(--verde-oscuro) !important;
  font-weight: 700 !important;
}
.btn-donar-nav:hover { background: var(--tierra) !important; border-color: var(--tierra) !important; }
.lang-toggle {
  border: 2px solid var(--verde-oscuro);
  color: var(--verde-oscuro);
  background: transparent;
  border-radius: var(--radio-pill);
  padding: 8px 16px;
  font-weight: 700;
  font-size: .85rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .25s ease;
}
.lang-toggle:hover { background: var(--verde-oscuro); color: var(--blanco); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 101; }
.hamburger span { width: 24px; height: 2px; background: var(--verde-oscuro); transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Componentes de sección ─────────────────────────────────── */
.seccion-tag {
  display: inline-block;
  background: rgba(61,170,30,0.1);
  color: var(--verde-oscuro);
  padding: 6px 16px; border-radius: var(--radio-pill);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.seccion-titulo {
  font-family: 'Poppins', sans-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: normal; color: var(--dorado); }
.seccion-texto {
  font-size: 1rem;
  color: var(--texto-medio);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 24px;
}
.seccion-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }

section { padding: var(--pad-seccion) 5%; }

/* ── Botones globales ───────────────────────────────────────── */
.btn-primario {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dorado);
  color: var(--verde-oscuro);
  padding: 15px 30px; border-radius: var(--radio-pill);
  font-weight: 700; font-size: .95rem;
  transition: all .3s ease;
  border: 2px solid var(--dorado);
}
.btn-primario:hover {
  background: var(--tierra);
  border-color: var(--tierra);
  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: 15px 30px; border-radius: var(--radio-pill);
  font-weight: 600; font-size: .95rem;
  border: 2px solid var(--verde-oscuro);
  transition: all .3s ease;
}
.btn-secundario:hover {
  background: var(--verde-oscuro);
  color: var(--blanco);
  transform: translateY(-2px);
}

/* Botones sobre fondo verde (blanco/contorno) */
.sobre-verde .btn-secundario,
.btn-secundario.sobre-verde {
  color: var(--blanco);
  border-color: rgba(255,255,255,.6);
}
.sobre-verde .btn-secundario:hover,
.btn-secundario.sobre-verde:hover {
  background: var(--blanco);
  color: var(--verde-oscuro);
}

/* ── 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: 600; color: var(--texto-oscuro); }
.form-grupo input,
.form-grupo textarea,
.form-grupo select {
  padding: 13px 18px;
  border: 2px solid var(--crema-oscuro);
  border-radius: 8px;
  font-family: 'Inter', 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, .form-grupo select: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: 600;
}
.form-mensaje.exito { background: rgba(61,170,30,.1); color: var(--verde-oscuro); display: block; }
.form-mensaje.error { background: rgba(200,0,0,.1); color: #c80000; display: block; }

/* Formulario sobre fondo verde (spec: contacto) */
.sobre-verde .form-grupo label { color: var(--blanco); }
.sobre-verde .form-grupo input,
.sobre-verde .form-grupo textarea,
.sobre-verde .form-grupo select {
  background: rgba(255,255,255,.08);
  border: 2px solid var(--blanco);
  color: var(--blanco);
}
.sobre-verde .form-grupo input::placeholder,
.sobre-verde .form-grupo textarea::placeholder { color: rgba(255,255,255,.6); }
.sobre-verde .form-grupo input:focus,
.sobre-verde .form-grupo textarea:focus { border-color: var(--dorado); }

/* ── Íconos inline (reemplazo de emojis) ─────────────────────── */
.icono-inline { display: inline-flex; vertical-align: -4px; margin-right: 6px; color: currentColor; }
.icono-inline svg { display: block; }

/* ── Elementos decorativos globales ──────────────────────────── */

/* Línea punteada amarilla curva */
.deco-linea-punteada {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: .85;
}
.deco-linea-punteada svg path {
  fill: none;
  stroke: var(--dorado);
  stroke-width: 3;
  stroke-dasharray: 10 10;
  stroke-linecap: round;
}

/* Blob amarillo en esquina */
.deco-blob {
  position: absolute;
  width: 140px; height: 140px;
  background: var(--dorado);
  border-radius: 0 0 100% 0;
  top: 0; left: 0;
  z-index: 0;
  pointer-events: none;
}
.deco-blob.esquina-sup-der { left: auto; right: 0; border-radius: 0 0 0 100%; }
.deco-blob.esquina-inf-izq { top: auto; bottom: 0; border-radius: 0 100% 0 0; }
.deco-blob.esquina-inf-der { top: auto; bottom: 0; left: auto; right: 0; border-radius: 100% 0 0 0; }

/* Hojas decorativas (ramas verdes) */
.deco-hojas {
  position: absolute;
  pointer-events: none;
  opacity: .4;
  color: var(--verde-claro);
  z-index: 0;
}
.deco-hojas svg { display: block; }

/* Marco de foto circular */
.foto-circular {
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--blanco);
  box-shadow: var(--sombra);
  aspect-ratio: 1/1;
  position: relative;
}
.foto-circular img { width: 100%; height: 100%; object-fit: cover; }

/* Foto con overlay verde */
.foto-overlay-verde {
  position: relative;
  overflow: hidden;
}
.foto-overlay-verde img { width: 100%; height: 100%; object-fit: cover; }
.foto-overlay-verde::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--overlay-verde);
}

/* Divisor orgánico entre secciones (curva) */
.deco-divisor {
  position: relative;
  height: 70px;
  margin-top: -70px;
  pointer-events: none;
}
.deco-divisor svg { width: 100%; height: 100%; display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--verde-noche);
  color: rgba(255,255,255,0.75);
  padding: 60px 5% 30px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: 'Poppins', sans-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: 400; max-width: 280px; }
.footer-lema { font-size: .8rem; line-height: 1.6; font-style: italic; color: rgba(255,255,255,0.6); 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(--dorado); }
.footer-redes { display: flex; gap: 12px; margin-top: 20px; }
.red-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s;
  cursor: pointer;
}
.red-social:hover { background: var(--dorado); }
.footer-col h4 { color: var(--blanco); font-size: .9rem; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .85rem; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--dorado); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: .8rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.footer-bottom p { display: inline-flex; align-items: center; gap: 6px; }
.footer-cuenta { margin-bottom: 8px; }
.footer-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: var(--radio);
  padding: 24px 32px;
  margin-bottom: 16px;
  width: auto;
  max-width: 320px;
  height: auto;
}
.footer-logo-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}
.fab, .footer-social-icon {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  margin: 4px 6px 4px 0;
  transition: background .2s, transform .2s;
  color: var(--blanco);
}
.fab:hover, .footer-social-icon:hover { background: var(--dorado); color: var(--verde-oscuro); transform: translateY(-2px); }
.fab svg, .footer-social-icon svg { width: 18px; height: 18px; }

/* Cada red social resalta con su color de marca */
.fab.youtube { color: #FF0000; }
.fab.youtube:hover { background: #FF0000; color: var(--blanco); }
.fab.facebook { color: #1877F2; }
.fab.facebook:hover { background: #1877F2; color: var(--blanco); }
.fab.instagram { color: #E1306C; }
.fab.instagram:hover { background: #E1306C; color: var(--blanco); }
.fab.whatsapp { color: #25D366; }
.fab.whatsapp:hover { background: #25D366; color: var(--blanco); }

/* ── 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,
.dock-btn.whatsapp svg { width: 28px; height: 28px; }
.dock-btn.facebook {
  background: #1877F2;
  box-shadow: 0 4px 20px rgba(24,119,242,0.45);
}
.dock-btn.facebook svg { width: 24px; height: 24px; }

/* ── 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: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blanco);
    padding: 0 5%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease;
  }
  .nav-links.active { max-height: 600px; opacity: 1; padding: 16px 5% 24px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  .nav-links a { width: 100%; text-align: center; padding: 10px 0; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 56px 5%; }
}

/* ── Utilidades compartidas (reemplazan style="" inline repetidos) ── */
.hero-tag-icono { vertical-align: -3px; margin-right: 6px; }
.cta-en-paz { color: var(--dorado-claro); font-style: italic; }
.seccion-intro-texto { font-size: 1rem; color: var(--texto-medio); line-height: 1.7; font-weight: 300; margin-top: 12px; }
.max-w-540-centro { max-width: 540px; margin: 0 auto; }
.max-w-560-centro { max-width: 560px; margin: 0 auto; }
