/* =============================================
   SSVP BOGOTÁ — Sistema de Gestión Web
   Design System · Variables · Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Brand Colors */
  --color-primary:     #1A3A5C;   /* azul oscuro institucional */
  --color-primary-lt:  #2E5D8E;
  --color-accent:      #C8992A;   /* dorado cálido */
  --color-accent-lt:   #E5B84A;
  --color-warm:        #D94F3D;   /* rojo solidaridad */
  --color-white:       #FDFAF6;
  --color-bg:          #F5F1EA;
  --color-surface:     #FFFFFF;
  --color-text:        #1C1C1C;
  --color-text-2:      #4A4A4A;
  --color-text-3:      #7A7A7A;
  --color-border:      #E0D9CE;
  --color-danger:      #C0392B;
  --color-success:     #1A7A4A;

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   40px;
  --sp-2xl:  64px;
  --sp-3xl:  96px;

  /* Layout */
  --nav-h:        68px;
  --topbar-h:     38px;
  --max-w:        1180px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-pill:  100px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);

  /* Transitions */
  --ease:       cubic-bezier(.4,0,.2,1);
  --dur-fast:   180ms;
  --dur-med:    300ms;
  --dur-slow:   500ms;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }
ul, ol { list-style: none; }

/* ---- Topbar ---- */
.topbar {
  height: var(--topbar-h);
  background: var(--color-primary);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.topbar-contact { display: flex; align-items: center; gap: var(--sp-lg); flex-wrap: wrap; }
.topbar-contact a {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.8);
  transition: color var(--dur-fast) var(--ease);
}
.topbar-contact a:hover { color: var(--color-accent-lt); }
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-social a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: all var(--dur-fast) var(--ease);
  font-size: 13px;
}
.topbar-social a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---- Main Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) var(--ease);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.nav-logo span { line-height: 1.2; }
.nav-logo .logo-sub { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-2);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--color-bg); color: var(--color-primary); }
.nav-link .chevron { font-size: 10px; transition: transform var(--dur-fast) var(--ease); }
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-med) var(--ease);
  /* padding-top reemplaza el gap de 8px: el menú queda
     visualmente separado pero el hover es continuo */
  padding: 8px 6px 6px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text-2);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.dropdown a:hover { background: var(--color-bg); color: var(--color-primary); }
.dropdown a .dd-icon { font-size: 15px; width: 20px; text-align: center; }

.nav-cta {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
/* Botones dentro del nav más compactos sin alterar el resto de la app */
.nav-cta .btn {
  padding: 8px 8px;
  font-size: 13px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200,153,42,.35);
}
.btn-primary:hover { background: var(--color-accent-lt); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,153,42,.45); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-login {
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  padding: 7px 8px;
}
.btn-login:hover { background: var(--color-primary-lt); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none; background: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--dur-med) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Page Wrapper ---- */
.page { display: none; }
.page.active { display: block; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
  background-color: var(--color-primary);
}
/* ── Hero slider ─────────────────────────────────────────────── */
.hero-slider {
  position: absolute; inset: 0;
  overflow: hidden;
}

/* Cada diapositiva ocupa todo el contenedor */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  /* Ken Burns individual por diapositiva */
  transform: scale(1.06);
  transition:
    opacity 1.1s cubic-bezier(.4,0,.2,1),
    transform 8s ease;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.01);
}
/* Salida suave de la diapositiva anterior */
.hero-slide.leaving {
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.1s cubic-bezier(.4,0,.2,1),
    transform 1.1s ease;
}

/* ── Overlay de legibilidad ── */
.hero-pattern {
  position: absolute; inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(10, 26, 50, 0.82) 0%,
      rgba(14, 36, 64, 0.72) 45%,
      rgba(14, 36, 64, 0.40) 100%
    ),
    radial-gradient(circle at 72% 50%, rgba(200,153,42,.10) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Flechas de navegación ── */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  background: rgba(10,26,50,.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--dur-fast) var(--ease);
}
.hero-arrow:hover {
  background: rgba(10,26,50,.70);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* ── Dots indicadores ── */
.hero-dots {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 10px; align-items: center;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--dur-fast) var(--ease);
}
.hero-dot.active {
  background: #fff;
  border-color: #fff;
  width: 28px;
  border-radius: 5px;
}
.hero-dot:hover:not(.active) {
  background: rgba(255,255,255,.45);
}

/* ── Responsive del slider ── */
@media (max-width: 768px) {
  .hero-slide { background-position: center top; }
  .hero-arrow { width: 38px; height: 38px; font-size: 20px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
}
@media (max-width: 480px) {
  /* Ocultar flechas en pantallas muy pequeñas, los dots son suficientes */
  .hero-arrow { display: none; }
  .hero-dots { bottom: 14px; }
}

/* ── Respeta movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.active,
  .hero-slide.leaving {
    transition: opacity .4s ease;
    transform: none !important;
  }
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-xl);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}
.hero-content { color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,153,42,.2);
  border: 1px solid rgba(200,153,42,.4);
  color: var(--color-accent-lt);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: var(--sp-lg);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: var(--sp-lg);
  color: #fff;
}
.hero-title span { color: var(--color-accent-lt); }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  margin-bottom: var(--sp-xl);
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-md);
}
.stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  text-align: center;
  color: #fff;
  transition: all var(--dur-med) var(--ease);
}
.stat-card:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--color-accent-lt);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.65); }

/* ---- Section ---- */
.section { padding: var(--sp-3xl) var(--sp-xl); max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: var(--sp-2xl); }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-sm);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}
.section-desc {
  font-size: 16px;
  color: var(--color-text-2);
  max-width: 580px;
  margin: 0 auto;
}

/* ---- Program Cards ---- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-lg);
}
.program-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease);
  cursor: pointer;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}
.card-body { padding: var(--sp-lg); }
.card-tag {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-accent);
  margin-bottom: var(--sp-sm);
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}
.card-desc { font-size: 14px; color: var(--color-text-2); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--sp-md);
  font-size: 14px; font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--dur-fast) var(--ease);
}
.card-link:hover { gap: 10px; color: var(--color-accent); }

/* ---- Donation Banner ---- */
.donation-banner {
  background:
    linear-gradient(
      105deg,
      rgba(10, 26, 50, 0.82) 0%,
      rgba(14, 36, 64, 0.72) 45%,
      rgba(14, 36, 64, 0.40) 100%
    ),
    url('../img/hogarterceraedad.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: var(--sp-3xl) var(--sp-xl);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.donation-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200,153,42,.15) 0%, transparent 60%);
  pointer-events: none;
}
.donation-banner-inner { position: relative; max-width: 700px; margin: 0 auto; }
.donation-banner h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin-bottom: var(--sp-md); }
.donation-banner p { color: rgba(255,255,255,.78); margin-bottom: var(--sp-xl); font-size: 17px; }

/* ---- Footer ---- */
.site-footer {
  background: #0e2440;
  color: rgba(255,255,255,.7);
  padding: var(--sp-3xl) var(--sp-xl) var(--sp-xl);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-md); }
.footer-brand .logo-icon { width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: var(--sp-lg); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 14px; transition: all var(--dur-fast) var(--ease); }
.footer-social a:hover { background: var(--color-accent); color: #fff; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: var(--sp-md); }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 10px; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--color-accent-lt); }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.8; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: var(--sp-lg); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: var(--sp-md); }
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--dur-fast) var(--ease); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ---- WhatsApp Float ---- */
.wa-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wa-bubble {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-md);
  width: 260px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  pointer-events: none;
  transition: all var(--dur-med) var(--ease);
  border: 1px solid var(--color-border);
}
.wa-bubble.open { opacity: 1; transform: none; pointer-events: all; }
.wa-bubble-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.wa-bubble-head .wa-avatar { width: 36px; height: 36px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.wa-bubble-head .wa-name { font-weight: 600; color: var(--color-text); font-size: 14px; }
.wa-bubble-head .wa-status { font-size: 11px; color: var(--color-success); }
.wa-bubble p { color: var(--color-text-2); margin-bottom: 12px; }
.wa-chat-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.wa-chat-btn:hover { background: #1ebe5d; }
.wa-btn {
  width: 58px; height: 58px;
  background: #25D366;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  animation: wa-pulse 2.5s ease-in-out infinite;
  color: #fff;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,.08); }
}

/* ---- Page Inner Content ---- */
.page-hero {
  background:
    linear-gradient(
      105deg,
      rgba(10, 26, 50, 0.82) 0%,
      rgba(14, 36, 64, 0.72) 45%,
      rgba(14, 36, 64, 0.40) 100%
    ),
    url('../img/ssvpfondo.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
  color: #fff;
  position: relative;
}

/* ── page-hero alto (igual al Slider Hero) para páginas internas ── */
#page-quienes-somos .page-hero,
#page-como-ayudar   .page-hero,
#page-noticias      .page-hero,
#page-permanencia   .page-hero,
#page-contacto      .page-hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Imagen propia de cada sección */
#page-quienes-somos .page-hero {
  background-image:
    linear-gradient(105deg, rgba(10,26,50,.82) 0%, rgba(14,36,64,.72) 45%, rgba(14,36,64,.40) 100%),
    url('../img/ssvpfondo.jpg');
}
#page-como-ayudar .page-hero {
  background-image:
    linear-gradient(105deg, rgba(10,26,50,.82) 0%, rgba(14,36,64,.72) 45%, rgba(14,36,64,.40) 100%),
    url('../img/ayuda.jpg');
}
#page-noticias .page-hero {
  background-image:
    linear-gradient(105deg, rgba(10,26,50,.82) 0%, rgba(14,36,64,.72) 45%, rgba(14,36,64,.40) 100%),
    url('../img/noticias.jpg');
}
#page-permanencia .page-hero {
  background-image:
    linear-gradient(105deg, rgba(10,26,50,.82) 0%, rgba(14,36,64,.72) 45%, rgba(14,36,64,.40) 100%),
    url('../img/direcciongeneral.jpg');
}
#page-contacto .page-hero {
  background-image:
    linear-gradient(105deg, rgba(10,26,50,.82) 0%, rgba(14,36,64,.72) 45%, rgba(14,36,64,.40) 100%),
    url('../img/contacto.jpg');
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ---- Content blocks ---- */
.content-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-lg);
}
.content-block h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-md);
}
.content-block p { color: var(--color-text-2); margin-bottom: var(--sp-md); }
.content-block ul { padding-left: var(--sp-lg); }
.content-block ul li { color: var(--color-text-2); margin-bottom: 8px; position: relative; }
.content-block ul li::before { content: '✦'; color: var(--color-accent); font-size: 10px; position: absolute; left: -18px; top: 4px; }

/* ---- Two-col layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: start; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---- How to Help ---- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-lg); }
.help-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  text-align: center;
  transition: all var(--dur-med) var(--ease);
}
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.help-card .hc-icon { font-size: 44px; margin-bottom: var(--sp-md); }
.help-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-primary); margin-bottom: var(--sp-sm); }
.help-card p { font-size: 14px; color: var(--color-text-2); margin-bottom: var(--sp-lg); }

/* ---- News ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-lg); }
.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.news-card-body { padding: var(--sp-lg); }
.news-meta { font-size: 12px; color: var(--color-text-3); margin-bottom: 8px; }
.news-card-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; line-height: 1.3; }
.news-card-body p { font-size: 14px; color: var(--color-text-2); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-sm); }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 48px; cursor: pointer; transition: all var(--dur-fast) var(--ease); overflow: hidden; }
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ---- Contact ---- */
.contact-form { display: grid; gap: var(--sp-md); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--color-text-2); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,58,92,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 8px; }

/* ---- Login Page ---- */
.login-wrapper {
  min-height: calc(100vh - var(--nav-h) - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.login-wrapper::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,58,92,.08) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.login-wrapper::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,153,42,.06) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.login-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl) var(--sp-xl);
  box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: var(--sp-xl); }
.login-logo { width: 56px; height: 56px; background: var(--color-primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; margin: 0 auto var(--sp-md); }
.login-header h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.login-header p { font-size: 14px; color: var(--color-text-3); }
.login-form { display: flex; flex-direction: column; gap: var(--sp-md); }
.input-icon { position: relative; }
.input-icon input { padding-left: 46px; width: 100%; }
.input-icon .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--color-text-3); font-size: 16px; pointer-events: none; }
.input-icon .toggle-pass { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--color-text-3); cursor: pointer; font-size: 14px; }
.btn-full { width: 100%; padding: 13px; font-size: 15px; border-radius: var(--radius-sm); }
.login-footer { margin-top: var(--sp-xl); text-align: center; font-size: 13px; color: var(--color-text-3); }
.login-footer a { color: var(--color-primary); font-weight: 600; }
.login-divider { display: flex; align-items: center; gap: var(--sp-md); margin: var(--sp-md) 0; color: var(--color-border); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.security-badge { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--sp-lg); font-size: 12px; color: var(--color-text-3); }
.security-badge .lock { color: var(--color-success); }
.login-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: var(--sp-md);
  display: none;
}
.login-alert.error { background: #fef2f2; border: 1px solid #fecaca; color: var(--color-danger); display: flex; align-items: center; gap: 8px; }
.login-alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--color-success); display: flex; align-items: center; gap: 8px; }
.forgot-link { text-align: right; font-size: 13px; margin-top: -8px; }
.forgot-link a { color: var(--color-primary-lt); }

/* ---- Multimedia ---- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-lg); }
.video-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--dur-med) var(--ease); }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-thumb { height: 160px; background: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; cursor: pointer; }
.video-thumb::after { content: '▶'; position: absolute; width: 48px; height: 48px; background: rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--color-primary); }
.video-body { padding: var(--sp-md); }
.video-body h4 { font-weight: 600; color: var(--color-primary); margin-bottom: 4px; font-size: 15px; }
.video-body p { font-size: 13px; color: var(--color-text-3); }

/* ---- DIAN ---- */
.dian-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-lg); }
.dian-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--sp-xl); display: flex; align-items: flex-start; gap: var(--sp-md); transition: all var(--dur-med) var(--ease); }
.dian-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.dian-icon { font-size: 32px; flex-shrink: 0; }
.dian-info h4 { font-weight: 600; color: var(--color-primary); margin-bottom: 4px; }
.dian-info p { font-size: 14px; color: var(--color-text-2); }
.dian-info a { color: var(--color-primary-lt); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }

/* ---- Toast ---- */
.toast {
  position: fixed; top: 24px; right: 24px;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  transform: translateX(120%);
  transition: transform var(--dur-med) var(--ease);
  max-width: 320px;
}
.toast.show { transform: none; }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }

/* ---- Responsive ---- */
/* Compresión progresiva: entre 1280 y 1024 px el menú ajusta */
@media (max-width: 1280px) {
  .nav-link { padding: 6px 7px; font-size: 12.5px; }
  .nav-logo  { font-size: 15px; }
  .nav-cta .btn { padding: 7px 12px; font-size: 12.5px; }
}
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .hero-stats { max-width: 480px; }
  /* Ocultar "Ingresar" para ganar espacio; queda solo "Donar" */
  .nav-cta .btn-login { display: none; }
  .nav-link { padding: 6px 6px; font-size: 12px; }
}
@media (max-width: 768px) {
  :root { --sp-xl: 24px; --sp-3xl: 60px; }
  .topbar-contact { display: none; }
  .nav-menu { display: none; flex-direction: column; position: fixed; inset: calc(var(--topbar-h) + var(--nav-h)) 0 0; background: var(--color-surface); padding: var(--sp-lg); overflow-y: auto; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .dropdown { position: static; transform: none; opacity: 1; pointer-events: all; box-shadow: none; border: none; border-radius: 0; background: var(--color-bg); display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .wa-bubble { width: 240px; }
  .hero { min-height: 620px; }

  /* Desactivar parallax fijo en móvil (iOS/Android no lo soportan correctamente) */
  .donation-banner,
  .page-hero {
    background-attachment: scroll;
    background-position: center center;
  }
  /* Quiénes somos: alto igual al hero en móvil */
  #page-quienes-somos .page-hero,
  #page-como-ayudar   .page-hero,
  #page-noticias      .page-hero,
  #page-permanencia   .page-hero,
  #page-contacto      .page-hero { min-height: 620px; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 240px; margin: 0 auto; }
  .nav-cta { gap: 6px; }
  .section { padding: var(--sp-2xl) var(--sp-md); }
  .hero { min-height: 680px; }
  #page-quienes-somos .page-hero,
  #page-como-ayudar   .page-hero,
  #page-noticias      .page-hero,
  #page-permanencia   .page-hero,
  #page-contacto      .page-hero { min-height: 680px; }
}
@media (min-height: 900px) {
  .hero { min-height: 640px; }
  #page-quienes-somos .page-hero,
  #page-como-ayudar   .page-hero,
  #page-noticias      .page-hero,
  #page-permanencia   .page-hero,
  #page-contacto      .page-hero { min-height: 640px; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.fade-in { animation: fadeInUp var(--dur-slow) var(--ease) both; }
.fade-in-d1 { animation-delay: .1s; }
.fade-in-d2 { animation-delay: .2s; }
.fade-in-d3 { animation-delay: .3s; }
.fade-in-d4 { animation-delay: .4s; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mt-xl { margin-top: var(--sp-xl); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-md { gap: var(--sp-md); }
.accent { color: var(--color-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
