/* ================================================
   LA CULEBRA NO SE CALLA — Design System v1.0
   ================================================ */

/* --- TOKENS ------------------------------------ */
:root {
  /* Brand colors */
  --fire:          #C41E1E;
  --fire-dark:     #921515;
  --fire-light:    #e53e3e;
  --ember:         #FF6B35;
  --night:         #0A0A14;
  --smoke:         #141422;
  --smoke-light:   #1e1e30;
  --snow:          #F8F8F2;
  --snow-dark:     #EDEDEA;
  --forest:        #2D6A1F;
  --forest-light:  #3d8a2a;
  --earth:         #8B7355;
  --text:          #1A1A24;
  --text-light:    #4A4A5A;
  --muted:         #9090A8;
  --border:        rgba(0,0,0,0.10);
  --border-light:  rgba(255,255,255,0.10);

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Raleway', sans-serif;

  /* Spacing */
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 24px; --s6: 32px;  --s7: 48px;  --s8: 64px;
  --s9: 80px; --s10:96px;

  /* Radius */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px; --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.16);
  --shadow-fire: 0 4px 20px rgba(196,30,30,0.30);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s cubic-bezier(0.16,1,0.3,1);

  /* Max widths */
  --w-content: 1100px;
  --w-narrow:  740px;
  --w-wide:    1400px;
}

/* --- RESET ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--snow);
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* --- TYPOGRAPHY -------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
.lead { font-size: 1.2rem; line-height: 1.7; color: var(--text-light); }

/* --- LAYOUT ------------------------------------ */
.container { max-width: var(--w-content); margin: 0 auto; padding: 0 var(--s5); }
.container--wide  { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--s5); }
.container--narrow{ max-width: var(--w-narrow); margin: 0 auto; padding: 0 var(--s5); }

.section { padding: var(--s9) 0; }
.section--sm { padding: var(--s7) 0; }
.section--dark {
  background: var(--smoke);
  color: var(--snow);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--snow); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--s2); } .gap-3 { gap: var(--s3); } .gap-4 { gap: var(--s4); } .gap-5 { gap: var(--s5); }

/* --- HEADER & NAV ------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--t-base), box-shadow var(--t-base), padding var(--t-base);
  padding: var(--s4) 0;
}
.site-header.scrolled {
  background: rgba(10,10,20,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding: var(--s2) 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.site-logo {
  display: flex; align-items: center; gap: var(--s3);
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-logo span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-menu { display: flex; align-items: center; gap: var(--s2); }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--fire-light); }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,10,20,0.98);
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s4);
}
.nav-overlay.open { display: flex; }
.nav-overlay .nav-link {
  font-size: 1.8rem;
  padding: var(--s3) var(--s5);
}
.nav-overlay-close {
  position: absolute; top: var(--s5); right: var(--s5);
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* Mobile: panel secundario La Asociación (slide desde derecha) */
.nav-panel {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,20,0.98);
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s4);
}
.nav-panel.open { display: flex; }
.nav-panel-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s5);
}
.nav-panel-back {
  background: none; border: none; color: rgba(255,255,255,0.65);
  font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: color var(--t-fast);
}
.nav-panel-back:hover { color: #fff; }
.nav-panel-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--fire);
  margin-bottom: var(--s3);
}
/* Trigger button en el overlay principal */
.nav-panel-trigger {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.8rem; color: #fff;
  font-family: var(--font-display); font-weight: 600;
  padding: var(--s3) var(--s5);
  transition: color var(--t-fast);
}
.nav-panel-trigger:hover { color: var(--fire); }
.nav-panel-trigger .nav-chevron { transition: transform var(--t-fast); }
.nav-panel-trigger:hover .nav-chevron { transform: rotate(-90deg); }

/* --- HERO -------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--night);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  opacity: 0.45;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,20,0.2) 0%,
    rgba(10,10,20,0.5) 50%,
    rgba(10,10,20,0.92) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  padding: var(--s10) 0 var(--s7);
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: rgba(196,30,30,0.2);
  border: 1px solid rgba(196,30,30,0.4);
  color: #ff9999;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s5);
}
.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: var(--s4);
}
.hero h1 span { color: var(--fire-light); }
.hero .lead { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto var(--s7); }
.hero-actions { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: var(--s6); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* --- BUTTONS ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s6);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--fire);
  color: #fff;
  box-shadow: var(--shadow-fire);
}
.btn-primary:hover { background: var(--fire-dark); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(196,30,30,0.4); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--fire); border-color: var(--fire); }
.btn-ghost:hover { background: var(--fire); color: #fff; }
.btn-sm { padding: var(--s2) var(--s4); font-size: 0.85rem; }
.btn-lg { padding: var(--s4) var(--s7); font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* --- CARDS ------------------------------------ */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--snow-dark);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: var(--s5); flex: 1; display: flex; flex-direction: column; }
.card-meta {
  display: flex; align-items: center; gap: var(--s3);
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: var(--s3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.card-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: var(--s3); line-height: 1.25; }
.card-title a:hover { color: var(--fire); }
.card-excerpt { font-size: 0.92rem; color: var(--text-light); flex: 1; margin-bottom: var(--s4); }
.card-footer { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--border); }

/* Card featured */
.card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.card--featured .card-img { aspect-ratio: unset; min-height: 260px; flex: 1; }
.card--featured .card-body { flex: 1; padding: var(--s7); }
.card--featured .card-title { font-size: 1.7rem; }

/* Card dark */
.card--dark {
  background: var(--smoke-light);
  color: var(--snow);
}
.card--dark .card-title, .card--dark .card-excerpt { color: var(--snow); }
.card--dark .card-meta { color: rgba(255,255,255,0.5); }

/* --- SECTION HEADERS -------------------------- */
.section-header { text-align: center; margin-bottom: var(--s8); }
.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fire);
  margin-bottom: var(--s2);
  line-height: 1;
}
.section-header h2 { margin-bottom: var(--s4); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; letter-spacing: 0.02em; }
.section-header p { color: var(--text-light); margin: 0 auto; }

/* --- BADGES / TAGS ----------------------------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px var(--s3);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-fire   { background: rgba(196,30,30,0.12); color: var(--fire); }
.badge-forest { background: rgba(45,106,31,0.12); color: var(--forest); }
.badge-earth  { background: rgba(139,115,85,0.12); color: var(--earth); }
.badge-ember  { background: rgba(255,107,53,0.12); color: var(--ember); }

/* --- NOTICIAS GRID ----------------------------- */
.noticias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 900px) { .noticias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .noticias-grid { grid-template-columns: 1fr; } }

/* --- GALERIA ---------------------------------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s4);
}
.galeria-album {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  background: var(--smoke);
}
.galeria-album img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.galeria-album:hover img { transform: scale(1.08); }
.galeria-album-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s5);
  transition: background var(--t-base);
}
.galeria-album:hover .galeria-album-overlay {
  background: linear-gradient(to top, rgba(196,30,30,0.8) 0%, rgba(0,0,0,0.2) 60%);
}
.galeria-album-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin-bottom: var(--s2);
}
.galeria-album-count { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* Fotos grid */
.fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s3);
}
.foto-item {
  aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; background: var(--smoke);
}
.foto-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.foto-item:hover img { transform: scale(1.06); }

/* --- EVENTOS ---------------------------------- */
.evento-card {
  display: flex; gap: var(--s5);
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.evento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.evento-date {
  flex-shrink: 0; width: 80px;
  background: var(--fire); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s4);
  text-align: center;
}
.evento-date .day { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.evento-date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }

.evento-body { padding: var(--s5); flex: 1; }
.evento-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: var(--s2); }
/* Especificidad mayor que .section--dark h3 para que el color no se herede de la sección oscura */
.evento-card .evento-title { color: var(--text); }
.evento-location { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: var(--s2); }

.eventos-pasados { opacity: 0.65; }
.eventos-pasados .evento-date { background: var(--text-light); }

/* --- DOCUMENTOS ------------------------------- */
.doc-item {
  display: flex; align-items: center; gap: var(--s4);
  background: #fff; border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  border-left: 3px solid var(--fire);
}
.doc-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.doc-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: rgba(196,30,30,0.08);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--fire); font-size: 1.3rem;
}
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta  { font-size: 0.8rem; color: var(--muted); margin-top: var(--s1); }
.doc-filters {
  display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6);
}
.doc-filter-btn {
  padding: var(--s2) var(--s4); border-radius: var(--r-full);
  font-size: 0.85rem; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--text-light);
  cursor: pointer; transition: all var(--t-fast);
}
.doc-filter-btn:hover, .doc-filter-btn.active {
  background: var(--fire); color: #fff; border-color: var(--fire);
}

/* --- TRANSPARENCIA / CHARTS ------------------- */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s6);
}
.chart-box {
  background: #fff; border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--shadow-card);
}
.chart-box h3 { font-size: 1rem; color: var(--text-light); margin-bottom: var(--s5); text-transform: uppercase; letter-spacing: 0.05em; }
.chart-box canvas { max-height: 280px; }

.trans-summary {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5);
  margin-bottom: var(--s6);
}
.trans-stat {
  background: #fff; border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--shadow-card); text-align: center;
}
.trans-stat .number {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--fire); display: block; margin-bottom: var(--s2);
}
.trans-stat .label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.trans-period-selector {
  display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s7);
}
.period-btn {
  padding: var(--s2) var(--s4); border-radius: var(--r-full);
  border: 1.5px solid var(--border); background: #fff;
  font-size: 0.85rem; cursor: pointer; transition: all var(--t-fast);
}
.period-btn.active { background: var(--fire); color: #fff; border-color: var(--fire); }

/* --- HERO STATS (home) ------------------------ */
.stats-bar {
  background: var(--fire);
  padding: var(--s6) 0;
}
.stats-bar-inner {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--s5); text-align: center;
}
.stat-item .number {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: #fff; display: block;
}
.stat-item .label { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* --- CONTACTO --------------------------------- */
.contact-form {
  background: #fff; border-radius: var(--r-xl);
  padding: var(--s8); box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto;
}
.form-group { margin-bottom: var(--s5); }
.form-label {
  display: block; font-weight: 600; font-size: 0.9rem;
  margin-bottom: var(--s2); color: var(--text);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: var(--s3) var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.95rem; color: var(--text);
  background: var(--snow);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--fire);
  box-shadow: 0 0 0 3px rgba(196,30,30,0.12);
  background: #fff;
}
.form-textarea { resize: vertical; min-height: 140px; }

/* --- BREADCRUMB ------------------------------- */
.breadcrumb {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 0.85rem; color: var(--muted);
  padding: var(--s4) 0;
}
.breadcrumb a:hover { color: var(--fire); }
.breadcrumb-sep { color: var(--muted); opacity: 0.5; }

/* --- PAGE HERO -------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--night) 0%, var(--smoke) 100%);
  padding: calc(var(--s9) + 60px) 0 var(--s8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(196,30,30,0.2) 0%, transparent 70%);
}
.page-hero h1 { color: #fff; position: relative; }
.page-hero .lead { color: rgba(255,255,255,0.7); position: relative; margin: var(--s4) auto 0; }

/* --- FOOTER ---------------------------------- */
.site-footer {
  background: var(--night);
  color: rgba(255,255,255,0.7);
  padding: var(--s9) 0 var(--s6);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s8); margin-bottom: var(--s8);
}
.footer-brand .site-logo { margin-bottom: var(--s4); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: var(--s4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--s2); }
.footer-links a { font-size: 0.88rem; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--fire-light); }
.footer-social { display: flex; gap: var(--s3); margin-top: var(--s4); }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.social-btn:hover { background: var(--fire); color: #fff; }
.footer-bottom {
  padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}

/* --- PAGINATION -------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  margin-top: var(--s8);
}
.page-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); border: 1.5px solid var(--border);
  font-size: 0.9rem; font-weight: 500;
  transition: all var(--t-fast);
}
.page-link:hover { border-color: var(--fire); color: var(--fire); }
.page-link.active { background: var(--fire); border-color: var(--fire); color: #fff; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* --- ALERTS / FLASH --------------------------- */
.alert {
  padding: var(--s4) var(--s5); border-radius: var(--r-md);
  margin-bottom: var(--s5); font-size: 0.92rem;
  display: flex; align-items: center; gap: var(--s3);
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.alert-info    { background: #dbeafe; color: #2563eb; border: 1px solid #93c5fd; }

/* --- NOTICIA SINGLE --------------------------- */
.article-hero { aspect-ratio: 16/6; overflow: hidden; border-radius: var(--r-xl); margin-bottom: var(--s7); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-content {
  font-size: 1.05rem; line-height: 1.8;
}
.article-content h2, .article-content h3 { margin: var(--s7) 0 var(--s4); }
.article-content p  { margin-bottom: var(--s5); }
.article-content img { border-radius: var(--r-md); margin: var(--s5) 0; }
.article-content blockquote {
  border-left: 4px solid var(--fire);
  padding: var(--s4) var(--s5);
  background: rgba(196,30,30,0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic; margin: var(--s6) 0;
}

/* --- SCROLL REVEAL ---------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- UTILS ------------------------------------ */
.text-center { text-align: center; }
.text-fire   { color: var(--fire); }
.text-muted  { color: var(--muted); }
.mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); }
.mb-4 { margin-bottom: var(--s4); } .mb-6 { margin-bottom: var(--s6); }

/* --- RESPONSIVE ------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .trans-summary { grid-template-columns: 1fr 1fr; }
  .card--featured { flex-direction: column; grid-column: span 1; }
  .card--featured .card-img { min-height: 220px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: clamp(2rem, 8vw, 4rem); }
  .hero-bg { background-attachment: scroll; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-bottom { flex-direction: column; gap: var(--s3); text-align: center; }
  .evento-card { flex-direction: column; }
  .evento-date { width: 100%; flex-direction: row; padding: var(--s3) var(--s4); justify-content: flex-start; gap: var(--s3); }
  .charts-grid { grid-template-columns: 1fr; }
  .trans-summary { grid-template-columns: 1fr; }
  .contact-form { padding: var(--s6); }
  .section { padding: var(--s7) 0; }
  .page-hero { padding: calc(var(--s7) + 60px) 0 var(--s6); }
}
@media (max-width: 480px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .hero-actions { flex-direction: column; align-items: center; }
  .noticias-grid { grid-template-columns: 1fr; }
}

/* --- NAV DROPDOWN ----------------------------- */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--s2) var(--s3);
}
.nav-chevron {
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.open  .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;           /* sin gap → el área hover es continua */
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 6px 0;
  z-index: 900;
  border-top: 3px solid var(--fire);
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.open  .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: var(--snow-dark);
  color: var(--fire);
}
.nav-dropdown-item.has-sub {
  background: var(--fire);
  color: #fff;
}
.nav-dropdown-item.has-sub:hover {
  background: var(--fire-dark);
  color: #fff;
}

/* Sub-dropdown (Textos Legales → hijos) */
.nav-sub-wrap { position: relative; }
.nav-subdropdown {
  display: none;
  position: absolute;
  top: -3px;           /* compensa el border-top del padre para alinearse */
  left: 100%;
  min-width: 300px;
  background: #fff;
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 6px 0;
  z-index: 901;
  border-top: 3px solid var(--fire);
}
.nav-sub-wrap:hover .nav-subdropdown { display: block; }

/* Transparencia — tabla de movimientos responsive */
.trans-mov-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

@media (max-width: 640px) {
  .trans-mov-table thead { display: none; }
  .trans-mov-table,
  .trans-mov-table tbody,
  .trans-mov-table tfoot { display: block; }

  /* Cada fila → tarjeta en grid 2 columnas */
  .trans-mov-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    padding: 12px 16px 12px 20px;
    border-bottom: 1px solid var(--border) !important;
    position: relative;
    background: none !important; /* quitar hover inline */
  }
  /* Borde izquierdo de color por tipo */
  .trans-mov-table tbody tr[data-tipo="ingreso"] { border-left: 4px solid #2D6A1F !important; }
  .trans-mov-table tbody tr[data-tipo="gasto"]   { border-left: 4px solid #C41E1E !important; }

  .trans-mov-table tbody td {
    padding: 0 !important; border: none !important;
  }
  /* Fecha → fila 2, col 1 */
  .trans-mov-table tbody td:nth-child(1) { grid-column:1; grid-row:2; font-size:0.73rem; align-self:center; }
  /* Tipo → oculto (color en borde) */
  .trans-mov-table tbody td:nth-child(2) { display: none; }
  /* Concepto → fila 1, col 1 */
  .trans-mov-table tbody td:nth-child(3) { grid-column:1; grid-row:1; }
  /* Importe → fila 1, col 2 */
  .trans-mov-table tbody td:nth-child(4) { grid-column:2; grid-row:1; text-align:right !important; white-space:nowrap; align-self:start; }
  /* Doc → fila 2, col 2 */
  .trans-mov-table tbody td:nth-child(5) { grid-column:2; grid-row:2; text-align:right; align-self:center; }

  /* Footer */
  .trans-mov-table tfoot tr {
    display: flex; align-items: center;
    border-top: 2px solid var(--border) !important;
  }
  .trans-mov-table tfoot td { padding: 10px 16px !important; border: none !important; }
  .trans-mov-table tfoot td:nth-child(1) { flex: 1; }
  .trans-mov-table tfoot td:nth-child(3) { display: none; }
}

/* --- CONTENT TYPOGRAPHY ENHANCEMENTS ---------- */

/* Serif body → slightly bigger base for readability */
.article-content {
  font-size: 1.07rem;
  line-height: 1.85;
}

/* Links en rojo dentro de contenido */
.article-content a {
  color: var(--fire);
  text-decoration: underline;
  text-decoration-color: rgba(196,30,30,0.35);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.article-content a:hover {
  color: var(--fire-dark);
  text-decoration-color: var(--fire-dark);
}

/* Tipografía Montserrat para h2/h3 en contenido de artículos */
.article-content h2,
.article-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Línea roja bajo h2 en contenido */
.article-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-top: var(--s7);
  margin-bottom: var(--s5);
}
.article-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--fire);
  margin-top: var(--s3);
  border-radius: 2px;
}
.article-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-top: var(--s6);
  margin-bottom: var(--s4);
}

/* Línea roja bajo h1 en page-hero (centrada) */
.page-hero h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  background: var(--fire);
  margin: var(--s3) auto 0;
  border-radius: 2px;
}

/* Bullets rojos con flecha en contenido */
/* Usar > (hijo directo) para evitar conflicto cuando ul está dentro de ol */
.article-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--s5);
}
.article-content ul > li {
  position: relative;
  padding-left: 2em;
  margin-bottom: var(--s4);
}
/* Círculo rojo con flecha derecha (SVG inline) — idéntico al estilo web anterior */
.article-content ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.2em;
  height: 1.2em;
  background-color: var(--fire);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z'/%3E%3C/svg%3E");
  background-size: 65%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
}

/* Ordered lists también coherentes */
.article-content ol {
  padding-left: 1.4rem;
  margin-bottom: var(--s5);
}
.article-content ol > li {
  margin-bottom: var(--s3);
  padding-left: 0.4rem;
}
.article-content ol > li::marker {
  color: var(--fire);
  font-weight: 700;
  font-family: var(--font-display);
}

/* --- PUEBLOS ---------------------------------- */

/* Leyenda */
.pueblos-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s6);
  margin-bottom: var(--s7);
  padding: var(--s4) var(--s5);
  background: var(--snow-dark);
  border-radius: var(--r-md);
  font-size: 0.88rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-item.fire1 .legend-dot  { background: var(--fire); }
.legend-item.fire2 .legend-dot  { background: var(--ember); }
.legend-item.fire-both .legend-dot {
  background: linear-gradient(135deg, var(--fire) 50%, var(--ember) 50%);
}

/* Tabs de comarca */
.pueblos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s5);
}
.pueblos-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s5);
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  background: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--t-fast);
}
.pueblos-tab-btn:hover {
  border-color: var(--fire);
  color: var(--fire);
}
.pueblos-tab-btn.active {
  background: var(--fire);
  border-color: var(--fire);
  color: #fff;
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  font-weight: 700;
}
.pueblos-tab-btn.active .tab-badge { background: rgba(255,255,255,0.25); }
.pueblos-tab-btn:not(.active) .tab-badge {
  background: rgba(196,30,30,0.12);
  color: var(--fire);
}

/* Panel de pueblos */
.pueblos-panel { display: none; }
.pueblos-panel.active { display: block; }

.pueblos-summary {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}
.pueblos-summary strong { color: var(--fire); }

.pueblos-list {
  list-style: none;
  padding: 0;
  columns: 4;
  column-gap: var(--s6);
  margin-bottom: var(--s5);
}
.pueblos-list li {
  padding: 5px 0;
  font-size: 0.92rem;
  break-inside: avoid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Pueblos afectados — fuego 1 (Sierra Culebra) */
.pueblos-list li.fire1 {
  color: var(--fire);
  font-weight: 700;
}
/* Pueblos afectados — fuego 2 (Losacio/Vegalatrave) */
.pueblos-list li.fire2 {
  color: var(--ember);
  font-weight: 700;
}
/* Pueblos afectados por ambos */
.pueblos-list li.fire-both {
  font-weight: 700;
}

/* Marcadores de incendio */
.fire-marker {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.fire1 .fire-marker  { background: var(--fire); }
.fire2 .fire-marker  { background: var(--ember); }

.fire-dots {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.fire-dots .dot1 {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fire);
  display: inline-block;
}
.fire-dots .dot2 {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ember);
  display: inline-block;
}
/* Nombre en ambos colores: mitad rojo / mitad naranja */
.pueblos-list li.fire-both {
  background: linear-gradient(90deg, var(--fire) 0%, var(--ember) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 900px) {
  .pueblos-list { columns: 3; }
}
@media (max-width: 768px) {
  .pueblos-list { columns: 2; }
  .pueblos-legend { flex-direction: column; }
}
@media (max-width: 480px) {
  .pueblos-list { columns: 1; }
  .pueblos-tabs { flex-direction: column; }
  .pueblos-tab-btn { justify-content: space-between; border-radius: var(--r-md); }
}

/* --- PRINT ------------------------------------ */
@media print {
  .site-header, .site-footer, .btn, .pagination { display: none; }
  body { font-size: 12pt; }
  .article-content { max-width: 100%; }
}
