/*
Theme Name: bancoalimentos
Theme URI: https://bancodealimentos.org.do
Author: Banco de Alimentos RD
Author URI: https://bancodealimentos.org.do
Description: Tema oficial del Banco de Alimentos de la República Dominicana.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bancoalimentos
Tags: custom-logo, menu, responsive-layout
*/

/* ── RESET & ROOT ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #96B942;
  --green-light: #A3C644;
  --green-dark:  #7a9a34;
  --black:       #292929;
  --gray-text:   #6A7282;
  --gray-light:  #F3F4F6;
  --gray-border: #D1D5DC;
  --cream:       #FFFCFA;
  --white:       #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.6; }
img  { display: block; max-width: 100%; }
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: 0 48px; height: 68px;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(8px);
}
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
}
.navbar-logo-icon svg { width: 18px; height: 18px; fill: white; }
.navbar-logo-text { color: white; font-size: 12px; font-weight: 700; line-height: 1.3; }
.navbar-logo-text span { color: var(--green); }
.navbar-nav { display: flex; gap: 26px; }
.navbar-nav a,
.navbar-nav ul { list-style: none; display: flex; gap: 26px; }
.navbar-nav a,
.navbar-nav li a { color: rgba(255,255,255,0.82); font-size: 13px; font-weight: 500; transition: color 0.2s; }
.navbar-nav a:hover,
.navbar-nav li a:hover { color: var(--green); }
.navbar-actions { display: flex; align-items: center; gap: 14px; }
.btn-donate {
  background: var(--green); color: white !important;
  padding: 9px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
.btn-donate:hover { background: var(--green-dark) !important; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.60)),
              url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600&q=80') center/cover no-repeat;
}
.hero-content { padding: 0 20px; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(150,185,66,0.18); border: 1px solid rgba(150,185,66,0.45);
  color: var(--green-light); border-radius: 20px;
  padding: 6px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display); color: white;
  font-size: clamp(40px, 6vw, 70px); line-height: 1.1; font-weight: 800;
  margin-bottom: 20px;
}
.hero p {
  color: rgba(255,255,255,0.80); font-size: 16px;
  max-width: 500px; margin: 0 auto 36px; line-height: 1.75;
}
.btn-primary {
  display: inline-block; background: var(--green);
  color: white; padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.hero-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(18,18,18,0.88);
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 48px; flex-wrap: wrap; gap: 12px;
}
.hero-bar-left { display: flex; gap: 28px; }
.hero-bar-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.72); font-size: 12px; }
.hero-bar-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-bar-right { display: flex; gap: 20px; }
.hero-bar-right a { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.2s; }
.hero-bar-right a:hover { color: var(--green); }

/* ── COMMONS ─────────────────────────────────────────────── */
section { padding: 88px 48px; }
.section-eyebrow {
  display: flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.section-eyebrow svg { width: 15px; height: 15px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.2; color: var(--black);
}
.container { max-width: 1180px; margin: 0 auto; }

/* ── QUÉ HACEMOS ─────────────────────────────────────────── */
.que-hacemos { background: var(--white); }
.que-hacemos-header { text-align: center; margin-bottom: 56px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-border); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.10); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.card-body p  { font-size: 13px; color: var(--gray-text); line-height: 1.75; margin-bottom: 16px; }
.card-link { color: var(--green); font-size: 13px; font-weight: 600; }
.card-link:hover { color: var(--green-dark); }

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-wrap { overflow: hidden; background: var(--white); border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--green); padding: 0 28px; white-space: nowrap; letter-spacing: 2px; }
.marquee-item.filled { -webkit-text-stroke: 0; color: var(--green-light); }

/* ── QUIÉNES SOMOS ───────────────────────────────────────── */
.quienes { background: var(--cream); }
.quienes-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.quienes-img-wrap { border-radius: 16px; overflow: hidden; }
.quienes-img { width: 100%; height: 440px; object-fit: cover; }
.quienes-text .section-title { margin-bottom: 18px; }
.quienes-text p { color: var(--gray-text); font-size: 15px; line-height: 1.85; margin-bottom: 36px; }
.stats-row { display: flex; gap: 40px; }
.stat-num { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-size: 11px; color: var(--gray-text); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* ── CÓMO AYUDAR ─────────────────────────────────────────── */
.como-ayudar { background: var(--white); }
.como-ayudar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.como-ayudar-text .section-title { margin-bottom: 30px; }
.donation-types { display: flex; flex-direction: column; gap: 24px; }
.donation-type { display: flex; gap: 16px; align-items: flex-start; }
.donation-icon { width: 42px; height: 42px; flex-shrink: 0; background: var(--gray-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.donation-icon svg { width: 20px; height: 20px; }
.donation-type h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.donation-type p { font-size: 13px; color: var(--gray-text); line-height: 1.75; }
.como-ayudar-img { border-radius: 16px; overflow: hidden; }
.como-ayudar-img img { width: 100%; height: 440px; object-fit: cover; }

/* ── ICON BAR ────────────────────────────────────────────── */
.icon-bar { background: var(--green); padding: 22px 48px; }
.icon-bar-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; gap: 20px; }
.icon-bar-item { display: flex; flex-direction: column; align-items: center; gap: 7px; color: white; }
.icon-bar-item svg { width: 22px; height: 22px; }
.icon-bar-item span { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.92; text-align: center; }

/* ── PROGRAMAS ───────────────────────────────────────────── */
.programas { background: var(--cream); }
.programas-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.programas-img { border-radius: 16px; overflow: hidden; }
.programas-img img { width: 100%; height: 440px; object-fit: cover; }
.programas-text .section-title { margin-bottom: 28px; }
.checklist { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; }
.check-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.check-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.check-item p { font-size: 13px; color: var(--gray-text); line-height: 1.75; }

/* ── VIDEO ───────────────────────────────────────────────── */
.video-section {
  position: relative; padding: 130px 48px; text-align: center;
  background: linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.58)),
              url('https://images.unsplash.com/photo-1509099836639-18ba1795216d?w=1600&q=80') center/cover no-repeat;
}
.video-title { font-family: var(--font-display); color: white; font-size: clamp(30px, 5vw, 58px); font-weight: 800; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 44px; }
.play-btn { width: 72px; height: 72px; border-radius: 50%; border: 3px solid white; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.play-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.08); }
.play-btn svg { width: 28px; height: 28px; margin-left: 5px; }

/* ── GALERÍA ─────────────────────────────────────────────── */
.galeria { background: var(--white); }
.galeria-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.btn-secondary { display: inline-block; background: var(--green); color: white; padding: 11px 22px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.btn-secondary:hover { background: var(--green-dark); }
.galeria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.galeria-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.galeria-item:hover img { transform: scale(1.04); }
.galeria-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-border); cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--green); width: 24px; border-radius: 4px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: #191919; color: rgba(255,255,255,0.7); padding: 64px 48px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; max-width: 1180px; margin-left: auto; margin-right: auto; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { width: 18px; height: 18px; fill: white; }
.footer-logo-text { color: white; font-size: 12px; font-weight: 700; line-height: 1.3; }
.footer-logo-text span { color: var(--green); }
.footer-brand p { font-size: 13px; line-height: 1.85; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, background 0.2s; }
.social-btn:hover { border-color: var(--green); background: rgba(150,185,66,0.15); }
.social-btn svg { width: 15px; height: 15px; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.58); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.58); }
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); max-width: 1180px; margin: 0 auto; }

/* ── BLOG (single.php y archive.php) ─────────────────────── */
.blog-header { padding: 120px 48px 60px; background: var(--cream); text-align: center; }
.blog-header h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); margin-bottom: 12px; }
.blog-header p { color: var(--gray-text); font-size: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 60px 48px; max-width: 1180px; margin: 0 auto; }
.blog-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-border); transition: transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-body .meta { font-size: 11px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.blog-card-body h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 13px; color: var(--gray-text); line-height: 1.7; }
.single-post { max-width: 740px; margin: 120px auto 80px; padding: 0 24px; }
.single-post h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); margin-bottom: 20px; line-height: 1.2; }
.single-post .post-meta { color: var(--gray-text); font-size: 13px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-border); }
.single-post .post-content p { font-size: 16px; line-height: 1.85; color: #333; margin-bottom: 20px; }
.single-post .post-content h2 { font-family: var(--font-display); font-size: 26px; margin: 36px 0 14px; }
.single-post .post-content img { border-radius: 12px; margin: 24px 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  section { padding: 70px 32px; }
  .navbar { padding: 0 32px; }
  .cards-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .quienes-inner, .como-ayudar-inner, .programas-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar { padding: 0 20px; }
  section { padding: 56px 20px; }
  .cards-grid, .galeria-grid, .blog-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; flex-wrap: wrap; }
  .hero-bar { padding: 16px 20px; }
  .hero-bar-left { flex-direction: column; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .icon-bar { padding: 20px; }
  .icon-bar-inner { gap: 20px; justify-content: center; }
  .site-footer { padding: 48px 20px 24px; }
  .single-post { margin-top: 90px; }
}
