/*
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; }
/* overflow-x evita la barra horizontal que provocan los bloques
   de "Ancho completo", cuyo 100vw incluye la barra de desplazamiento. */
body { font-family: var(--font-body); color: var(--black); background: var(--white); line-height: 1.6; overflow-x: hidden; }
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; }
}

/* ═══════════════════════════════════════════════════════════
   PÁGINAS INTERIORES, BLOG Y ELEMENTOS DE WORDPRESS
   ═══════════════════════════════════════════════════════════ */

/* ── Accesibilidad ───────────────────────────────────────── */
.screen-reader-text {
  border: 0; clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0;
  overflow: hidden; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--white); border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
  clip-path: none;
  color: var(--black); display: block;
  font-size: 14px; font-weight: 700;
  height: auto; width: auto;
  left: 6px; top: 6px; z-index: 100000;
  padding: 12px 20px; text-decoration: none;
}
.skip-link { position: absolute; }

/* ── Compensación de la barra de navegación fija ─────────── */
.site-main { padding-top: 68px; }
.site-main--front { padding-top: 0; }

/* ── Cabecera de página interior ─────────────────────────── */
.page-hero { background: var(--cream); padding: 56px 48px; border-bottom: 1px solid var(--gray-border); }
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; line-height: 1.15;
}
.page-body { padding: 56px 48px 80px; }

/* ── Contenido editable (editor de bloques) ──────────────── */
.entry-content { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: #3a3a3a; }
.entry-content > * { margin-bottom: 22px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { font-family: var(--font-display); color: var(--black); line-height: 1.25; margin-top: 40px; margin-bottom: 14px; }
.entry-content h1 { font-size: 36px; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }
.entry-content a { color: var(--green-dark); text-decoration: underline; }
.entry-content a:hover { color: var(--green); }
.entry-content ul,
.entry-content ol { padding-left: 22px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img,
.entry-content figure img { border-radius: 12px; }
.entry-content figcaption { font-size: 12px; color: var(--gray-text); text-align: center; margin-top: 8px; }
.entry-content blockquote {
  border-left: 3px solid var(--green); padding: 6px 0 6px 22px;
  font-size: 18px; font-style: italic; color: #444;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th,
.entry-content td { border: 1px solid var(--gray-border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--gray-light); font-weight: 600; }
.entry-content code,
.entry-content pre { background: var(--gray-light); border-radius: 6px; font-size: 13px; }
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 16px 18px; overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--gray-border); margin: 40px 0; }

/* Alineaciones del editor de bloques */
.entry-content .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: none; width: auto; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .alignleft { float: left; margin: 0 24px 18px 0; }
.entry-content .alignright { float: right; margin: 0 0 18px 24px; }
.entry-content .wp-block-button__link { background: var(--green); color: #fff; border-radius: 8px; padding: 13px 28px; text-decoration: none; font-weight: 600; }
.entry-content .wp-block-button__link:hover { background: var(--green-dark); color: #fff; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Paleta de la marca en el editor de bloques.
   WordPress no genera estas clases solo en los temas clásicos: sin ellas,
   el color elegido se vería en el editor pero no en la web publicada. */
.has-verde-color         { color: #96B942; }
.has-verde-oscuro-color  { color: #7a9a34; }
.has-negro-color         { color: #292929; }
.has-gris-color          { color: #6A7282; }
.has-crema-color         { color: #FFFCFA; }
.has-blanco-color        { color: #ffffff; }

.has-verde-background-color        { background-color: #96B942; }
.has-verde-oscuro-background-color { background-color: #7a9a34; }
.has-negro-background-color        { background-color: #292929; }
.has-gris-background-color         { background-color: #6A7282; }
.has-crema-background-color        { background-color: #FFFCFA; }
.has-blanco-background-color       { background-color: #ffffff; }

/* Un bloque con fondo de color necesita aire por dentro. */
.entry-content .has-background { padding: 26px 28px; border-radius: 12px; }

/* Imagen destacada */
.post-thumbnail { max-width: 1100px; margin: 0 auto 36px; }
.post-thumbnail img { width: 100%; border-radius: 14px; }

.entry-footer { max-width: 820px; margin: 32px auto 0; font-size: 13px; color: var(--gray-text); }
.entry-footer a { color: var(--green-dark); }

/* ── Listados: index, archive, search, 404 ───────────────── */
.site-main > article,
.site-main > .page-header,
.site-main > .navigation,
.site-main > .comments-area,
.site-main > .not-found,
.site-main > header {
  max-width: 860px; margin-left: auto; margin-right: auto; padding: 0 24px;
}
.site-main > .page-header { padding-top: 56px; padding-bottom: 8px; }
.site-main > article { padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--gray-border); }
.site-main > article:last-of-type { border-bottom: 0; }
.page-title { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; }
.archive-description { color: var(--gray-text); font-size: 15px; margin-top: 10px; }
.entry-title { font-family: var(--font-display); font-size: 26px; line-height: 1.3; margin-bottom: 10px; }
.entry-title a { color: var(--black); }
.entry-title a:hover { color: var(--green-dark); }
.entry-meta { font-size: 12px; color: var(--gray-text); margin-bottom: 16px; }
.entry-meta a { color: var(--green-dark); }
.entry-summary { color: var(--gray-text); font-size: 15px; line-height: 1.8; }
.navigation { padding-top: 32px; padding-bottom: 64px; font-size: 14px; }
.navigation a { color: var(--green-dark); font-weight: 600; }
.nav-links { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.comments-area { padding-top: 48px; padding-bottom: 64px; }
.comments-title,
.comment-reply-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--gray-border); font-size: 14px; }
.not-found { padding-top: 56px; padding-bottom: 72px; }
.not-found .page-content { font-size: 15px; color: var(--gray-text); }

/* ── Widgets y buscador ──────────────────────────────────── */
.widget-area { max-width: 860px; margin: 0 auto 64px; padding: 0 24px; }
.widget { margin-bottom: 32px; font-size: 14px; }
.widget-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 12px; }
.widget ul { list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--gray-border); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--gray-border); border-radius: 8px;
}
.search-submit {
  background: var(--green); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 22px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.search-submit:hover { background: var(--green-dark); }

/* ── Logo por imagen (Personalizar → Identidad del sitio) ── */
.navbar-logo--image img { max-height: 44px; width: auto; }
.footer-logo--image img { max-height: 52px; width: auto; }

/* ── Menú: submenús y elemento activo ────────────────────── */
.navbar-nav .nav-menu { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.navbar-nav .menu-item { position: relative; }
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a { color: var(--green); }
.navbar-nav .sub-menu {
  list-style: none; position: absolute; top: 100%; left: 0;
  min-width: 200px; padding: 10px 0; margin: 0;
  background: rgba(26,26,26,0.98); border-radius: 8px;
  display: none; flex-direction: column; gap: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.navbar-nav .menu-item-has-children:hover > .sub-menu,
.navbar-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.navbar-nav .sub-menu li a { display: block; padding: 9px 18px; font-size: 13px; }

/* ── Botón de menú móvil ─────────────────────────────────── */
.navbar-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.navbar-toggle-bar {
  display: block; width: 22px; height: 2px; margin: 0 auto;
  background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.navbar.toggled .navbar-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.navbar.toggled .navbar-toggle-bar:nth-child(3) { opacity: 0; }
.navbar.toggled .navbar-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ── Columnas de enlaces del pie generadas por wp_nav_menu ── */
.footer-col ul.menu,
.footer-col div > 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); }

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; height: auto; min-height: 68px; padding: 12px 20px; }
  .navbar-toggle { display: flex; order: 3; margin-left: auto; }
  .navbar-actions { order: 2; }
  .navbar-nav { display: none; order: 4; width: 100%; }
  .navbar.toggled .navbar-nav { display: block; padding: 10px 0 16px; }
  .navbar-nav .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .navbar-nav .nav-menu > li { width: 100%; border-top: 1px solid rgba(255,255,255,0.10); }
  .navbar-nav .nav-menu > li > a { display: block; padding: 12px 2px; font-size: 14px; }
  .navbar-nav .sub-menu { position: static; display: flex; background: transparent; box-shadow: none; padding: 0 0 6px 14px; }
  .page-hero { padding: 40px 20px; }
  .page-body { padding: 40px 20px 60px; }
}

/* ═══════════════════════════════════════════════════════════
   REJILLA DE DATOS CON ICONO (bloque "HTML personalizado")
   Componente reutilizable en cualquier página interior.
   ═══════════════════════════════════════════════════════════ */

/* Se sale del ancho de lectura (820px) sin depender de la
   alineación del bloque, que el bloque HTML no admite. */
.entry-content .ba-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  width: min(1080px, calc(100vw - 96px));
  margin: 40px 0 40px 50%;
  transform: translateX(-50%);
}

.entry-content .ba-features-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
  text-align: center;
  margin: 0 0 8px;
}

.ba-features__col--left { text-align: right; }
.ba-features__col--right { border-left: 1px solid var(--gray-border); padding-left: 64px; }

.ba-feature + .ba-feature { margin-top: 44px; }

.ba-feature__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ba-features__col--left .ba-feature__head { justify-content: flex-end; }

.ba-feature__icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--green); }
.ba-feature__icon svg { display: block; width: 100%; height: 100%; }

.ba-feature .ba-feature__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin: 0;
}

.ba-feature p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-text);
  margin: 0;
}

@media (max-width: 900px) {
  .entry-content .ba-features { grid-template-columns: 1fr; gap: 40px; }
  .ba-features__col--left { text-align: left; }
  .ba-features__col--left .ba-feature__head { justify-content: flex-start; }
  .ba-features__col--right {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--gray-border); padding-top: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════
   GALERÍA (bloque nativo de WordPress) Y SU VISOR
   ═══════════════════════════════════════════════════════════ */

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
  border-radius: 12px;
  overflow: hidden;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
  border-radius: 0;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img {
  transform: scale(1.05);
}

/* ── Visor a pantalla completa ───────────────────────────── */
body.ba-lb-open { overflow: hidden; }

.ba-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(4px);
}
.ba-lightbox.is-open { display: flex; flex-direction: column; }

.ba-lb-close {
  position: absolute; top: 18px; right: 20px; z-index: 2;
  width: 44px; height: 44px; padding: 10px;
  background: rgba(255,255,255,0.10); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  transition: background 0.2s;
}
.ba-lb-close:hover { background: var(--green); }
.ba-lb-close svg { display: block; width: 100%; height: 100%; }

.ba-lb-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 64px 20px 16px;
}

.ba-lb-nav {
  flex-shrink: 0;
  width: 48px; height: 48px; padding: 12px;
  background: rgba(255,255,255,0.10); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  transition: background 0.2s;
}
.ba-lb-nav:hover { background: var(--green); }
.ba-lb-nav svg { display: block; width: 100%; height: 100%; }

.ba-lb-figure {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; margin: 0;
}
.ba-lb-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.ba-lb-caption {
  color: rgba(255,255,255,0.72);
  font-size: 13px; text-align: center; max-width: 720px;
}

.ba-lb-footer { flex-shrink: 0; padding: 0 20px 20px; }
.ba-lb-counter {
  color: rgba(255,255,255,0.55);
  font-size: 12px; letter-spacing: 1px;
  text-align: center; margin: 0 0 12px;
}

.ba-lb-strip {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 4px; justify-content: flex-start;
  scrollbar-width: thin;
}
.ba-lb-strip::-webkit-scrollbar { height: 6px; }
.ba-lb-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 3px; }

.ba-lb-thumb {
  flex: 0 0 auto;
  width: 84px; height: 60px; padding: 0;
  background: none; border: 0; border-radius: 6px;
  overflow: hidden; cursor: pointer;
  opacity: 0.5; filter: grayscale(1);
  transition: opacity 0.25s, filter 0.25s, outline-color 0.25s;
  outline: 2px solid transparent; outline-offset: 2px;
}
.ba-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* La activa y sus dos vecinas se ven a color; el resto, en gris. */
.ba-lb-thumb.is-adjacent { opacity: 0.85; filter: none; }
.ba-lb-thumb.is-active   { opacity: 1; filter: none; outline-color: var(--green); }
.ba-lb-thumb:hover       { opacity: 1; filter: none; }

@media (max-width: 768px) {
  .ba-lb-stage { gap: 6px; padding: 60px 8px 12px; }
  .ba-lb-nav { width: 40px; height: 40px; padding: 10px; }
  .ba-lb-thumb { width: 64px; height: 48px; }
}
