/*
Theme Name: Nación Mosetén
Theme URI: https://moseten.org
Author: Pueblo Indígena Mosetén — OPIM
Author URI: https://moseten.org
Description: Tema oficial de la Nación Mosetén. Pueblo indígena originario de la Amazonía boliviana. Guardián del Alto Beni.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moseten
Tags: indigenous, one-page, custom-colors, full-width-template
*/

/* ─── TOKENS ─── */
:root {
  --verde-profundo: #0d3b1e;
  --verde-oscuro:   #1a5c30;
  --verde-medio:    #2e7d32;
  --verde-claro:    #4caf50;
  --verde-palido:   #c8e6c9;
  --dorado:         #c8860a;
  --dorado-claro:   #f5c842;
  --tierra:         #8b5e3c;
  --crema:          #fdf6e3;
  --blanco:         #ffffff;
  --fuente-titulo:  'Playfair Display', Georgia, serif;
  --fuente-cuerpo:  'Source Serif 4', Georgia, serif;
  --fuente-mono:    'Space Mono', 'Courier New', monospace;
}

/* ─── RESET Y BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fuente-cuerpo);
  background: var(--crema);
  color: var(--verde-profundo);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }

/* ─── LAYOUT HELPERS ─── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }

/* ─── HEADER / NAV ─── */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--verde-profundo);
  border-bottom: 2px solid var(--dorado);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 2rem;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo svg { width: 34px; height: 34px; }
.site-title {
  font-family: var(--fuente-titulo);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dorado-claro);
  letter-spacing: 0.05em;
  margin: 0;
}
.site-title a { color: inherit; }

/* WordPress menu */
#site-navigation ul { display: flex; gap: 1.5rem; }
#site-navigation ul li a {
  color: rgba(255,255,255,0.8);
  font-family: var(--fuente-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#site-navigation ul li a:hover { color: var(--dorado-claro); }
#site-navigation ul li.current-menu-item a { color: var(--dorado-claro); }

/* ─── HERO ─── */
.moseten-hero {
  min-height: 92vh;
  background: var(--verde-profundo);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(60deg, #fff 0, #fff 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-60deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 40px 70px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}
.hero-eyebrow {
  font-family: var(--fuente-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--dorado-claro);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero-title em { color: var(--dorado-claro); font-style: normal; }
.hero-subtitle {
  font-family: var(--fuente-titulo);
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin: 1.5rem auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
  max-width: 560px;
  line-height: 1.55;
}
.hero-tags {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}
.hero-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: var(--fuente-mono);
  letter-spacing: 0.05em;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.62rem;
  font-family: var(--fuente-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.5s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ─── STATS STRIP ─── */
.stats-strip {
  background: var(--dorado);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--fuente-titulo);
  font-size: 2rem;
  font-weight: 900;
  color: var(--verde-profundo);
  line-height: 1;
}
.stat-label {
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  color: var(--verde-oscuro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ─── SECTION SHARED ─── */
.moseten-section { padding: 5rem 0; }
.section-label {
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--verde-medio);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.section-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--verde-profundo);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.section-title em { color: var(--dorado); font-style: normal; }
.section-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #3a3a3a;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ─── DARK SECTIONS ─── */
.section-dark { background: var(--verde-profundo); color: #fff; }
.section-dark .section-label { color: var(--dorado-claro); }
.section-dark .section-title { color: #fff; }
.section-dark .section-body { color: rgba(255,255,255,0.8); }
.section-dark .section-title em { color: var(--dorado-claro); }

.section-mid { background: var(--verde-oscuro); color: #fff; }
.section-mid .section-label { color: var(--dorado-claro); }
.section-mid .section-title { color: #fff; }
.section-mid .section-body { color: rgba(255,255,255,0.8); }
.section-mid .section-title em { color: var(--dorado-claro); }

.section-white { background: #fff; }
.section-crema { background: var(--crema); }

/* ─── IDENTIDAD ─── */
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.identity-pilares { display: flex; flex-direction: column; gap: 1.25rem; }
.pilar {
  background: #fff;
  border: 1px solid var(--verde-palido);
  border-left: 4px solid var(--verde-medio);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}
.pilar-titulo {
  font-family: var(--fuente-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verde-medio);
  margin-bottom: 0.4rem;
}
.pilar-texto { font-size: 0.88rem; color: #444; line-height: 1.65; }
.cosmovisión-box {
  background: var(--verde-profundo);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.cosmovisión-box::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(200,134,10,0.15);
}
.cosmo-eyebrow {
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--dorado-claro);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cosmo-item {
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cosmo-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cosmo-nombre {
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dorado-claro);
  margin-bottom: 0.25rem;
}
.cosmo-desc { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.55; }

/* ─── TERRITORIO ─── */
.territorio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.territorio-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background 0.2s;
}
.territorio-card:hover { background: rgba(255,255,255,0.1); }
.tc-icon { font-size: 1.4rem; margin-bottom: 0.75rem; }
.tc-title {
  font-family: var(--fuente-titulo);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dorado-claro);
  margin-bottom: 0.5rem;
}
.tc-text { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.comunidades-label {
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.comunidades-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
.comunidad-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-family: var(--fuente-mono);
}
.comunidad-chip.en-proceso {
  border-color: rgba(200,134,10,0.4);
  color: rgba(245,200,66,0.8);
}

/* ─── AUTONOMÍA ─── */
.proceso-steps { position: relative; }
.proceso-steps::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--verde-medio), var(--verde-palido));
}
.step { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.step-num {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: var(--verde-medio);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fuente-titulo);
  font-weight: 900;
  font-size: 1.1rem;
  z-index: 1;
  position: relative;
}
.step-title {
  font-family: var(--fuente-titulo);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-bottom: 0.3rem;
}
.step-text { font-size: 0.88rem; color: #555; line-height: 1.65; }
.marco-legal {
  background: var(--crema);
  border: 1px solid var(--verde-palido);
  border-radius: 12px;
  padding: 1.75rem;
  height: fit-content;
}
.marco-title {
  font-family: var(--fuente-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--verde-medio);
  margin-bottom: 1rem;
}
.marco-items { display: flex; flex-direction: column; gap: 0.6rem; }
.marco-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.87rem;
  color: #444;
  line-height: 1.5;
}
.marco-item::before {
  content: '';
  display: block;
  width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%;
  background: var(--dorado);
  margin-top: 0.45rem;
}

/* ─── AUTORIDADES ─── */
.autoridades-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.autoridad-card {
  background: #fff;
  border: 1px solid #e0e0d0;
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.autoridad-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.autoridad-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--verde-medio);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fuente-titulo);
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.autoridad-nombre {
  font-family: var(--fuente-titulo);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--verde-profundo);
  margin-bottom: 0.25rem;
}
.autoridad-cargo {
  font-family: var(--fuente-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verde-medio);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.autoridad-org { font-size: 0.82rem; color: #777; font-style: italic; }
.afiliaciones-nota {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--verde-palido);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.65;
}

/* ─── NOTICIAS ─── */
.noticia-principal {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,134,10,0.4);
  border-left: 4px solid var(--dorado);
  border-radius: 0 12px 12px 0;
  padding: 2rem;
  margin-bottom: 1.25rem;
}
.noticia-fecha {
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--dorado-claro);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.noticia-titulo {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.noticia-texto { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.7; }
.noticia-badge {
  display: inline-block;
  background: rgba(200,134,10,0.2);
  border: 1px solid var(--dorado);
  color: var(--dorado-claro);
  font-family: var(--fuente-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
}
.noticias-secundarias { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.noticia-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.5rem;
}
.noticia-card-titulo {
  font-family: var(--fuente-titulo);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.noticia-card-texto { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ─── CONTACTO ─── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.contacto-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contacto-icon {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 8px;
  background: var(--verde-palido);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.contacto-label {
  font-family: var(--fuente-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verde-medio);
  margin-bottom: 0.2rem;
}
.contacto-valor { font-size: 0.95rem; color: var(--verde-profundo); font-weight: 600; }
.contacto-sub { font-size: 0.82rem; color: #777; margin-top: 0.1rem; }
.contacto-cta {
  background: var(--verde-profundo);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
}
.cta-title {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dorado-claro);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.cta-text { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 1.5rem; }
.cta-btn {
  display: inline-block;
  background: var(--dorado);
  color: var(--verde-profundo);
  font-family: var(--fuente-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--dorado-claro); }

/* ─── FOOTER ─── */
#colophon {
  background: var(--verde-profundo);
  border-top: 2px solid var(--dorado);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dorado-claro);
  margin-bottom: 0.4rem;
}
.footer-sub {
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-nav { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-nav a {
  color: rgba(255,255,255,0.5);
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--dorado-claro); }
.site-info { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ─── ANIMACIONES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .identity-grid,
  .grid-2,
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .territorio-grid { grid-template-columns: 1fr 1fr; }
  .noticias-secundarias { grid-template-columns: 1fr; }
  #site-navigation ul { gap: 0.75rem; }
  .stats-strip { gap: 1.5rem; }
  .site-header-inner { padding: 0 1rem; }
}
@media (max-width: 540px) {
  .territorio-grid { grid-template-columns: 1fr; }
  #site-navigation { display: none; } /* usar plugin de menú móvil */
  .moseten-section { padding: 3rem 0; }
}
