/* ============================================================
   RESGUARDO INDÍGENA ZENÚ DEL ALTO SAN JORGE
   Estilos principales — Identidad visual ancestral
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Lato:wght@300;400;700;900&display=swap');

/* ── Variables ── */
:root {
  --color-tierra:        #8B4513;
  --color-oro:           #C9A227;
  --color-selva:         #2D5A27;
  --color-selva-claro:   #4A7C59;
  --color-rio:           #1A4E6B;
  --color-agua:          #4A90A4;
  --color-crema:         #F5ECD7;
  --color-oscuro:        #1C1208;
  --color-blanco-calido: #FAF6EF;
  --color-acento:        #D4581A;

  --ff-heading:  'Playfair Display', Georgia, serif;
  --ff-body:     'Lato', Arial, sans-serif;
  --ff-quote:    'Crimson Text', Georgia, serif;

  --shadow-card:  0 4px 20px rgba(28,18,8,0.12);
  --shadow-hover: 0 8px 32px rgba(28,18,8,0.22);
  --radius:       10px;
  --transition:   all 0.3s ease;

  --max-w: 1200px;
  --max-w-wide: 1400px;
}

/* ── Reset y base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  color: var(--color-oscuro);
  background: var(--color-blanco-calido);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Skip-to-content accesibilidad */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-selva);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-selva); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-acento); }
ul { list-style: none; }

/* ── Tipografía ── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  color: var(--color-oscuro);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-selva);
  margin-bottom: .5rem;
  position: relative;
}

.section-subtitle {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-tierra);
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-oro), var(--color-acento));
  border-radius: 2px;
  margin-top: .5rem;
}

.title-center::after { margin-left: auto; margin-right: auto; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 80px 0; }
.section-alt { background: var(--color-crema); }

/* ── Patrón vueltiao SVG (fondo) ── */
.pattern-vueltiao {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.04'%3E%3Cpath d='M0 0l20 20L0 40 0 0zM40 0L20 20l20 20V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pattern-vueltiao-dark {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.06'%3E%3Cpath d='M0 0l20 20L0 40 0 0zM40 0L20 20l20 20V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Separador SVG decorativo ── */
.separator-zenu {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.separator-zenu svg { display: block; width: 100%; height: 30px; }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--color-acento);
  color: #fff;
  border-left: 4px solid var(--color-oro);
}
.btn-primary:hover {
  background: #b8450f;
  transform: scale(1.03);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,88,26,.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-oscuro);
  border: 2px solid var(--color-oro);
}
.btn-secondary:hover {
  background: var(--color-oro);
  color: var(--color-oscuro);
  transform: scale(1.03);
}

/* Botón secundario sobre fondos oscuros */
.btn-secondary-light {
  background: transparent;
  color: #fff;
  border: 2px solid var(--color-oro);
}
.btn-secondary-light:hover {
  background: var(--color-oro);
  color: var(--color-oscuro);
  transform: scale(1.03);
}

/* Override automático dentro de secciones oscuras */
.historia-section .btn-secondary,
.franja-censal .btn-secondary,
.donaciones-mini .btn-secondary {
  color: #fff;
}
.historia-section .btn-secondary:hover,
.franja-censal .btn-secondary:hover,
.donaciones-mini .btn-secondary:hover {
  color: var(--color-oscuro);
}

.btn-censal {
  background: var(--color-oro);
  color: var(--color-oscuro);
  border: none;
  font-weight: 900;
  letter-spacing: 1px;
}
.btn-censal:hover {
  background: #b88d1a;
  transform: scale(1.04);
  color: var(--color-oscuro);
  box-shadow: 0 6px 20px rgba(201,162,39,.5);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}

.navbar.scrolled {
  background: var(--color-selva);
  padding: .7rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.navbar-brand:hover { color: var(--color-oro); }

.brand-logo {
  width: 52px;
  height: 52px;
  background: rgb(214 210 199);
  border: 2px solid var(--color-oro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo svg { width: 32px; height: 32px; }

.brand-text span {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  font-family: var(--ff-body);
  opacity: .85;
  letter-spacing: .5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .65rem;
  border-radius: 4px;
  letter-spacing: .3px;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--color-oro);
  transition: left .3s ease, right .3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { left: .4rem; right: .4rem; }
.nav-link.active::after { left: .4rem; right: .4rem; }

.btn-nav-censal {
  background: var(--color-oro);
  color: var(--color-oscuro) !important;
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .5px;
  white-space: nowrap;
  position: relative;
}
.btn-nav-censal:hover {
  background: #fff;
  color: var(--color-selva) !important;
  transform: scale(1.05);
}

/* Tooltip censal */
.censal-tooltip {
  position: relative;
}
.censal-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: var(--color-oscuro);
  color: #fff;
  font-size: .75rem;
  font-weight: 400;
  padding: .5rem .75rem;
  border-radius: 6px;
  width: 260px;
  text-align: left;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 10;
}
.censal-tooltip::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  right: 20px;
  border: 6px solid transparent;
  border-top-color: var(--color-oscuro);
  opacity: 0;
  transition: opacity .3s;
}
.censal-tooltip:hover::before,
.censal-tooltip:hover::after { opacity: 1; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43,90,39,0.88) 0%, rgba(139,69,19,0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 120px 1.5rem 80px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-pattern-top,
.hero-pattern-bottom {
  font-size: 1.8rem;
  color: var(--color-oro);
  letter-spacing: 8px;
  margin-bottom: 1rem;
  opacity: .8;
}
.hero-pattern-bottom { margin-top: 1rem; margin-bottom: 0; }

.hero-pretitle {
  font-family: var(--ff-body);
  font-size: .95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-oro);
  margin-bottom: .5rem;
  font-weight: 300;
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-title span {
  color: var(--color-oro);
  display: block;
}

.hero-tagline {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,.9);
  margin-bottom: .5rem;
}

.hero-location {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
}
.hero-location i { color: var(--color-oro); }

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Contadores hero */
.hero-counters {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}

.counter-item {
  text-align: center;
}

.counter-num {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-oro);
  display: block;
  line-height: 1;
}

.counter-label {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll a { color: rgba(255,255,255,.6); font-size: 1.5rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ── FRANJA BIENVENIDA ── */
.bienvenida {
  background: var(--color-tierra);
  padding: 70px 0;
  text-align: center;
}

.bienvenida-cita {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-crema);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.bienvenida-cita::before { content: '"'; color: var(--color-oro); font-size: 3rem; line-height: 0; vertical-align: -.5em; }
.bienvenida-cita::after  { content: '"'; color: var(--color-oro); font-size: 3rem; line-height: 0; vertical-align: -.5em; }

.bienvenida-icons {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.bienvenida-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  color: var(--color-crema);
}

/* ── Badge circular ── */
.bien-badge {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: var(--badge-bg, linear-gradient(145deg,#2D5A27,#1a3318));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow:
    0 0 0 6px  rgba(255,255,255,.07),
    0 0 0 12px rgba(255,255,255,.03),
    0 18px 50px var(--badge-glow, rgba(0,0,0,.4));
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), box-shadow .38s ease;
  cursor: default;
}

.bien-badge:hover {
  transform: translateY(-9px) scale(1.09);
  box-shadow:
    0 0 0 6px  rgba(255,255,255,.13),
    0 0 0 14px rgba(255,255,255,.06),
    0 28px 65px var(--badge-glow, rgba(0,0,0,.55));
}

.bien-svg {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.25));
}

/* ── Iconos PNG (caimán, sombrero, río) ── */
.bien-img-wrap {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: linear-gradient(145deg,#2D5A27,#1a3318);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.22);
  box-shadow:
    0 0 0 6px  rgba(255,255,255,.07),
    0 0 0 12px rgba(255,255,255,.03),
    0 18px 50px rgba(0,0,0,.4);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), box-shadow .38s ease;
  cursor: default;
  overflow: hidden;
  flex-shrink: 0;
}
.bien-img-wrap:hover {
  transform: translateY(-9px) scale(1.09);
  box-shadow:
    0 0 0 6px  rgba(255,255,255,.13),
    0 0 0 14px rgba(255,255,255,.06),
    0 28px 65px rgba(0,0,0,.55);
}
.bien-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)) brightness(1.1);
}

.bien-label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-oro);
  text-align: center;
}

.bien-sub {
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  text-align: center;
  max-width: 130px;
  margin: 0;
  line-height: 1.5;
}

/* ── CARDS SOBRE EL RESGUARDO ── */
.sobre-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.sobre-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-oro);
  transition: var(--transition);
}
.sobre-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.sobre-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-selva), var(--color-selva-claro));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: #fff;
}

.sobre-card h3 {
  font-size: 1.25rem;
  color: var(--color-selva);
  margin-bottom: .75rem;
}

.sobre-card p {
  font-size: .95rem;
  color: #555;
  line-height: 1.7;
}

/* ── COMUNIDADES ── */
.comunidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.comunidad-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border-bottom: 3px solid var(--color-selva);
}
.comunidad-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.comunidad-img {
  height: 140px;
  background: linear-gradient(135deg, var(--color-selva) 0%, var(--color-rio) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.comunidad-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.comunidad-img-placeholder {
  font-size: 2.5rem;
  color: rgba(255,255,255,.6);
  z-index: 1;
}

.comunidad-body { padding: 1.25rem; }
.comunidad-body h3 {
  font-size: 1rem;
  color: var(--color-selva);
  margin-bottom: .5rem;
}
.comunidad-num {
  font-size: .85rem;
  color: var(--color-tierra);
  font-weight: 600;
}
.comunidad-icons {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  color: var(--color-selva-claro);
  font-size: .9rem;
}

/* ── TIMELINE HISTORIA ── */
.historia-section {
  background: var(--color-oscuro);
  position: relative;
  overflow: hidden;
}
.historia-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A227' fill-opacity='0.05'%3E%3Cpath d='M0 0l20 20L0 40 0 0zM40 0L20 20l20 20V0z'/%3E%3C/g%3E%3C/svg%3E");
}
.historia-section .container { position: relative; z-index: 1; }

.historia-section .section-title { color: var(--color-oro); }
.historia-section .section-subtitle { color: var(--color-crema); }
.historia-section .timeline-content { color: rgba(255,255,255,.85); }
.historia-section .timeline-content h3 { color: var(--color-oro); }
.historia-section .timeline-year { color: var(--color-crema); }

.timeline {
  position: relative;
  margin-top: 3rem;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-oro), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  width: calc(50% - 40px);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,162,39,.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.timeline-content:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--color-oro);
}

.timeline-item:nth-child(odd) .timeline-content { margin-right: 40px; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 40px; }

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-oro);
  border-radius: 50%;
  border: 3px solid var(--color-oscuro);
  z-index: 1;
  margin-top: 1.5rem;
  box-shadow: 0 0 12px var(--color-oro);
}

.timeline-year {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-oro);
  margin-bottom: .5rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .5rem;
}

.timeline-content p {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

/* ── CULTURA GRID ── */
.cultura-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.cultura-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.25rem;
  transition: var(--transition);
  border-left: 4px solid var(--color-selva);
}
.cultura-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--color-oro);
}

.cultura-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-crema), #fff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-tierra);
  border: 1px solid var(--color-oro);
}

.cultura-card-body h3 {
  font-size: 1.05rem;
  color: var(--color-selva);
  margin-bottom: .5rem;
}

.cultura-card-body p {
  font-size: .9rem;
  color: #666;
  line-height: 1.6;
}

/* ── NOTICIAS ── */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.noticia-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.noticia-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.noticia-img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-selva), var(--color-rio));
  position: relative;
}
.noticia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.noticia-card:hover .noticia-img img { transform: scale(1.08); }

.noticia-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.4);
}

.noticia-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}
.badge-noticia    { background: rgba(212,88,26,.12); color: var(--color-acento); }
.badge-comunicado { background: rgba(26,78,107,.12); color: var(--color-rio); }
.badge-actualidad { background: rgba(45,90,39,.12);  color: var(--color-selva); }

.noticia-body h3 {
  font-size: 1.1rem;
  color: var(--color-oscuro);
  margin-bottom: .6rem;
  line-height: 1.35;
}
.noticia-body h3 a { color: inherit; }
.noticia-body h3 a:hover { color: var(--color-selva); }

.noticia-resumen {
  font-size: .9rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.noticia-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: #999;
  padding-top: .75rem;
  border-top: 1px solid #f0f0f0;
}

.noticia-meta a {
  color: var(--color-selva);
  font-weight: 600;
  font-size: .85rem;
}

/* ── FRANJA CENSAL ── */
.franja-censal {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--color-selva) 0%, var(--color-rio) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.franja-censal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A227' fill-opacity='0.08'%3E%3Cpath d='M0 0l20 20L0 40 0 0zM40 0L20 20l20 20V0z'/%3E%3C/g%3E%3C/svg%3E");
}

.franja-censal * { position: relative; z-index: 1; }

.franja-censal h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.franja-censal p {
  font-family: var(--ff-quote);
  font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ── GALERÍA PREVIEW ── */
.galeria-masonry {
  columns: 4;
  column-gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 1024px) { .galeria-masonry { columns: 3; } }
@media (max-width: 768px)  { .galeria-masonry { columns: 2; } }
@media (max-width: 480px)  { .galeria-masonry { columns: 1; } }

.galeria-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.galeria-item:hover img { transform: scale(1.08); }

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,18,8,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  font-size: 2rem;
  color: #fff;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }

/* Placeholder galería */
.galeria-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.galeria-placeholder-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-selva-claro), var(--color-rio));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}
.galeria-placeholder-item:hover { transform: scale(1.03); }
.galeria-placeholder-item:nth-child(1) { height: 200px; }
.galeria-placeholder-item:nth-child(2) { height: 140px; }
.galeria-placeholder-item:nth-child(3) { height: 180px; }
.galeria-placeholder-item:nth-child(4) { height: 160px; }
.galeria-placeholder-item:nth-child(5) { height: 150px; }
.galeria-placeholder-item:nth-child(6) { height: 200px; }
.galeria-placeholder-item:nth-child(7) { height: 130px; }
.galeria-placeholder-item:nth-child(8) { height: 170px; }

/* ── DONACIONES MINI ── */
.donaciones-mini {
  padding: 70px 0;
  background: var(--color-tierra);
  position: relative;
  text-align: center;
  overflow: hidden;
}
.donaciones-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000' fill-opacity='0.06'%3E%3Cpath d='M0 0l20 20L0 40 0 0zM40 0L20 20l20 20V0z'/%3E%3C/g%3E%3C/svg%3E");
}

.donaciones-mini * { position: relative; z-index: 1; }

.donaciones-mini h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--color-oro);
  margin-bottom: 1rem;
}

.donaciones-mini p {
  color: var(--color-crema);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── FRANJA PLAN DE VIDA ── */
.franja-plan-vida {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-selva) 0%, var(--color-oro) 100%);
  text-align: center;
}

.franja-plan-vida h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
  z-index: 10001;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: .5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-top: 1rem;
  text-align: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--color-oscuro);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-selva), var(--color-oro), var(--color-acento));
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='20' viewBox='0 0 40 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L20 20 L40 0' fill='none' stroke='%23C9A227' stroke-width='1' stroke-opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-brand-logo {
  width: 48px;
  height: 48px;
  background: rgb(214 210 199);
  border: 1px solid var(--color-oro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-name {
  font-family: var(--ff-heading);
  font-size: .95rem;
  color: #fff;
  line-height: 1.3;
}

.footer-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  color: var(--color-oro);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(201,162,39,.2);
}

.footer-links li {
  margin-bottom: .5rem;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover {
  color: var(--color-oro);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .9rem;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.footer-contact-item i {
  color: var(--color-oro);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-credits {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  text-align: right;
}

/* ── SECTION CENSAL BTN (HOME) ── */
.censal-cta-section {
  text-align: center;
  padding: 2rem 0;
}

/* ── PÁGINAS INTERNAS HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--color-selva) 0%, var(--color-rio) 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A227' fill-opacity='0.07'%3E%3Cpath d='M0 0l20 20L0 40 0 0zM40 0L20 20l20 20V0z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero * { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: .75rem;
}
.page-hero p {
  font-family: var(--ff-quote);
  font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--color-oro); }

/* ── FORMULARIOS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-oscuro);
  margin-bottom: .4rem;
}
.form-group label span.req { color: var(--color-acento); }

.form-control {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--color-oscuro);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-selva);
  box-shadow: 0 0 0 3px rgba(45,90,39,.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: .82rem;
  color: #c00;
  margin-top: .3rem;
}

/* ── ALERTAS ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .95rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert-success { background: rgba(45,90,39,.1); border: 1px solid var(--color-selva); color: var(--color-selva); }
.alert-error   { background: rgba(212,88,26,.1); border: 1px solid var(--color-acento); color: var(--color-acento); }
.alert-info    { background: rgba(26,78,107,.1); border: 1px solid var(--color-rio); color: var(--color-rio); }

/* ── PAGINACIÓN ── */
.paginacion {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.paginacion a, .paginacion span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid #e0d5c8;
  color: var(--color-oscuro);
  transition: var(--transition);
}
.paginacion a:hover { background: var(--color-selva); color: #fff; border-color: var(--color-selva); }
.paginacion .active { background: var(--color-selva); color: #fff; border-color: var(--color-selva); }

/* ── FILTROS GALERÍA ── */
.galeria-filtros {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filtro-btn {
  padding: .45rem 1.1rem;
  border-radius: 20px;
  border: 1.5px solid var(--color-selva);
  background: transparent;
  color: var(--color-selva);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filtro-btn:hover, .filtro-btn.active {
  background: var(--color-selva);
  color: #fff;
}

/* ── TABLA INVERSIÓN ── */
.tabla-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
th {
  background: var(--color-selva);
  color: #fff;
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #e8ddd0;
  color: var(--color-oscuro);
}
tr:nth-child(even) td { background: var(--color-crema); }
tr:hover td { background: rgba(201,162,39,.08); }

/* ── ANIMACIONES ENTRADA (JS-activadas) ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVIDAD ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: column; padding-left: 50px; }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { width: 100%; margin: 0; }
  .timeline-dot { left: 20px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  /* Navbar siempre visible en móvil (fondo siempre verde) */
  .navbar {
    background: var(--color-selva) !important;
    padding: .65rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
  }
  .hamburger {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  /* Panel lateral de navegación */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-selva);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    transition: right .35s ease;
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0,0,0,.3);
    gap: .25rem;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1rem; padding: .6rem 0; width: 100%; }
  .btn-nav-censal { width: 100%; justify-content: center; margin-top: .5rem; }

  /* Grids responsivos de páginas internas */
  .responsive-2col,
  .contacto-grid,
  .noticias-detalle-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .responsive-3col { grid-template-columns: 1fr 1fr !important; }

  .galeria-placeholder { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-counters { gap: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .bienvenida-icons { gap: 2rem; }
  .historia-section .section-title { text-align: center; }
}

@media (max-width: 480px) {
  .comunidades-grid { grid-template-columns: 1fr 1fr; }
  .noticias-grid { grid-template-columns: 1fr; }
  .galeria-placeholder { grid-template-columns: 1fr; }
  .cultura-grid { grid-template-columns: 1fr; }
  .responsive-3col { grid-template-columns: 1fr !important; }
}

/* ── NOSOTROS — CARDS DE COMUNIDADES ── */
.nos-comunidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.nos-com-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid #ece5d9;
}
.nos-com-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Foto / placeholder */
.nos-com-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}
.nos-com-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.nos-com-card:hover .nos-com-img img { transform: scale(1.05); }

.nos-com-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.35);
}

/* Cuerpo */
.nos-com-body {
  padding: 1.1rem 1.1rem .75rem;
  flex: 1;
}
.nos-com-nombre {
  font-size: 1rem;
  color: var(--color-selva);
  margin-bottom: .5rem;
  font-family: var(--ff-heading);
}
.nos-com-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  font-size: .8rem;
  color: #777;
  margin-bottom: .6rem;
}
.nos-com-meta i { color: var(--color-selva-claro); margin-right: .2rem; }
.nos-com-resumen {
  font-size: .82rem;
  color: #888;
  line-height: 1.55;
}

/* Botón */
.nos-com-footer {
  padding: .85rem 1.1rem 1.1rem;
  border-top: 1px solid #f0e8dc;
}

@media (max-width: 900px) {
  .nos-comunidades-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nos-comunidades-grid { grid-template-columns: 1fr; }
  .nos-com-img { height: 180px; }
}

/* ── CONTACTO GRID ── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── NOTICIAS DETALLE GRID ── */
.noticias-detalle-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── DONACIONES ── */
.monto-btn.active {
  background: var(--color-selva);
  color: #fff;
  border-color: var(--color-selva);
}

/* ── UTILIDADES ── */
.text-center { text-align: center; }
.text-oro    { color: var(--color-oro); }
.text-selva  { color: var(--color-selva); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

/* ── TRES COMARCAS ZENÚ ── */
.comarcas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.comarca-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(201,162,39,.2);
}
.comarca-zenufana {
  background: linear-gradient(135deg,rgba(201,162,39,.1),rgba(139,69,19,.05));
  border-color: rgba(201,162,39,.25);
}
.comarca-zenufana h3 { color: var(--color-tierra); }
.comarca-panxenu {
  background: linear-gradient(135deg,rgba(45,90,39,.1),rgba(74,124,89,.05));
  border-color: rgba(45,90,39,.2);
}
.comarca-panxenu h3 { color: var(--color-selva); }
.comarca-finxenu {
  background: linear-gradient(135deg,rgba(26,78,107,.1),rgba(74,144,164,.05));
  border-color: rgba(26,78,107,.2);
}
.comarca-finxenu h3 { color: var(--color-rio); }

.comarca-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}
.comarca-zenufana .comarca-icon { background: rgba(201,162,39,.15); color: var(--color-tierra); }
.comarca-panxenu  .comarca-icon { background: rgba(45,90,39,.15);  color: var(--color-selva); }
.comarca-finxenu  .comarca-icon { background: rgba(26,78,107,.15); color: var(--color-rio); }

.comarca-card h3 { margin-bottom: .75rem; }
.comarca-card p   { color: #666; font-size: .9rem; }

@media (max-width: 768px) {
  .comarcas-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .comarcas-grid { grid-template-columns: 1fr 1fr; }
}

/* ── SIDEBAR LINKS (fondo claro) ── */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li + li { margin-top: .35rem; }
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-selva);
  font-size: .88rem;
  font-weight: 600;
  padding: .3rem 0;
  transition: color .2s, gap .2s;
}
.sidebar-links a:hover {
  color: var(--color-tierra);
  gap: .75rem;
}
.sidebar-links a i {
  font-size: .7rem;
  color: var(--color-oro);
}

/* ── COMUNIDAD DETALLE ── */
.comunidad-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.comunidad-resumen {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-tierra);
  font-style: italic;
  border-left: 4px solid var(--color-oro);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.comunidad-descripcion.prose p {
  margin-bottom: 1.1rem;
  line-height: 1.8;
  color: var(--color-oscuro);
}
.comunidad-card-datos {
  background: var(--color-crema);
  border: 1px solid #e8ddd0;
  border-radius: 12px;
  padding: 1.5rem;
}
.comunidad-card-datos h3 {
  font-size: 1rem;
  color: var(--color-selva);
  margin-bottom: 1rem;
  border-bottom: 1px solid #e8ddd0;
  padding-bottom: .5rem;
}
.datos-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .75rem;
  font-size: .9rem;
}
.datos-list dt {
  font-weight: 700;
  color: var(--color-tierra);
  white-space: nowrap;
}
.datos-list dd { color: var(--color-oscuro); }

.comunidad-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8ddd0;
}
.comunidad-nav-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.25rem;
  background: var(--color-crema);
  border: 1px solid #e8ddd0;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-selva);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}
.comunidad-nav-btn:hover {
  background: var(--color-selva);
  color: #fff;
  border-color: var(--color-selva);
}

@media (max-width: 768px) {
  .comunidad-layout { grid-template-columns: 1fr; }
  .comunidad-nav { flex-direction: column; }
}

/* ── Contenido de publicaciones (desde editor WYSIWYG) ── */
.pub-contenido h2 { font-size: 1.4rem; color: var(--color-selva); margin: 1.5rem 0 .75rem; }
.pub-contenido h3 { font-size: 1.15rem; color: var(--color-tierra); margin: 1.25rem 0 .5rem; }
.pub-contenido p { margin-bottom: 1rem; }
.pub-contenido strong { color: var(--color-oscuro); }
.pub-contenido ul, .pub-contenido ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.pub-contenido li { margin-bottom: .35rem; }
.pub-contenido blockquote {
  border-left: 4px solid var(--color-oro);
  background: rgba(201,162,39,.06);
  padding: .75rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-tierra);
}
.pub-contenido a { color: var(--color-selva); text-decoration: underline; }
.pub-contenido a:hover { color: var(--color-oro); }
