@charset "UTF-8";
:root {
  --blue-950: #040F1C;
  --blue-900: #0A2846;
  --blue-800: #0F3D6B;
  --blue-700: #145290;
  --blue-600: #1A68B5;
  --blue-500: #2080D0;
  --blue-400: #4DA3E0;
  --blue-300: #80C4EE;
  --blue-200: #B3DDF7;
  --blue-100: #E0F2FD;
  --blue-50: #F0F8FF;
  --teal-900: #0D3330;
  --teal-800: #164F4A;
  --teal-700: #1E6B64;
  --teal-600: #27877E;
  --teal-500: #2FA398;
  --teal-400: #50BDB4;
  --teal-300: #7DD4CC;
  --teal-200: #AEEAE5;
  --teal-100: #D6F5F2;
  --teal-50: #EDFAF9;
  --earth-700: #7A4614;
  --earth-600: #9A5C1E;
  --earth-500: #BC7530;
  --earth-400: #D4944F;
  --earth-300: #E8B880;
  --earth-200: #F4D9B5;
  --earth-100: #FAF0E2;
  --earth-50: #FDFAF5;
  --neutral-950: #080C10;
  --neutral-900: #111823;
  --neutral-800: #1E2A38;
  --neutral-700: #2E3D50;
  --neutral-600: #445566;
  --neutral-500: #607080;
  --neutral-400: #8A9BAC;
  --neutral-300: #B8C6D2;
  --neutral-200: #D8E4EC;
  --neutral-100: #EDF3F7;
  --neutral-50: #F6F9FB;
  --success: #2A9D6E;
  --warning: #D97706;
  --danger: #DC2626;
  --color-primary: var(--blue-800);
  --color-primary-light: var(--blue-600);
  --color-primary-dark: var(--blue-950);
  --color-accent: var(--teal-600);
  --color-accent-light: var(--teal-400);
  --bg-body: var(--neutral-50);
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-nav: var(--blue-950);
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-400);
  --text-inverse: #FFFFFF;
  --text-on-dark: var(--blue-100);
  --border: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-focus: var(--blue-500);
  --shadow-xs: 0 1px 2px rgba(10,40,70,0.06);
  --shadow-sm: 0 2px 8px rgba(10,40,70,0.08), 0 1px 2px rgba(10,40,70,0.05);
  --shadow-md: 0 8px 24px rgba(10,40,70,0.12), 0 2px 6px rgba(10,40,70,0.06);
  --shadow-lg: 0 16px 40px rgba(10,40,70,0.16), 0 4px 12px rgba(10,40,70,0.08);
  --font-body: 'europa', sans-serif;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition: 280ms ease;
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 240px;
  --nav-height: 60px;
  --tipo-medio: var(--blue-600);
  --tipo-red-social: var(--teal-600);
  --tipo-hito: var(--earth-600);
  --tipo-evento: #6D4FA0;
  --aliado-modelo: #B8860B;
  --aliado-coca: #CC0000;
  --aliado-giz: #006B3C;
  --aliado-todos: var(--blue-600);
  --region-calera: #7C3AED;
  --region-apan: #059669;
  --region-cdmx: #D97706;
  --region-general: var(--blue-500);
}

.fuente-selector {
  position: relative;
}
.fuente-selector__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}
.fuente-selector__trigger:hover {
  background: var(--neutral-100);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.fuente-selector__trigger.is-active {
  background: var(--blue-50);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  font-weight: var(--weight-semibold);
}
.fuente-selector__trigger[aria-expanded=true] {
  border-color: var(--color-primary-light);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
.fuente-selector__trigger-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  overflow: hidden;
}
.fuente-selector__trigger-label i {
  font-size: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}
.fuente-selector__trigger-label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fuente-selector__chevron {
  font-size: 10px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  opacity: 0.5;
}
.fuente-selector__trigger[aria-expanded=true] .fuente-selector__chevron {
  transform: rotate(180deg);
}
.fuente-selector__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-surface);
  border: 1px solid var(--color-primary-light);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.fuente-selector__dropdown[hidden] {
  display: none;
}
.fuente-selector__search-wrap {
  position: relative;
  border-bottom: 1px solid var(--border);
}
.fuente-selector__search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}
.fuente-selector__search {
  width: 100%;
  padding: var(--space-2) var(--space-8) var(--space-2) var(--space-8);
  border: none;
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
}
.fuente-selector__search::-moz-placeholder {
  color: var(--text-muted);
}
.fuente-selector__search::placeholder {
  color: var(--text-muted);
}
.fuente-selector__search-clear {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--neutral-200);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all var(--transition-fast);
}
.fuente-selector__search-clear:hover {
  background: var(--neutral-300);
  color: var(--text-primary);
}
.fuente-selector__search-clear[hidden] {
  display: none;
}
.fuente-selector__list {
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0;
  max-height: 220px;
  overflow-y: auto;
}
.fuente-selector__list::-webkit-scrollbar {
  width: 4px;
}
.fuente-selector__list::-webkit-scrollbar-track {
  background: transparent;
}
.fuente-selector__list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}
.fuente-selector__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fuente-selector__item i {
  font-size: 11px;
  opacity: 0.6;
  flex-shrink: 0;
}
.fuente-selector__item:hover {
  background: var(--neutral-100);
  color: var(--text-primary);
}
.fuente-selector__item.is-active {
  background: var(--blue-50);
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}
.fuente-selector__item.is-active i {
  opacity: 1;
}
.fuente-selector__item[hidden] {
  display: none;
}
.fuente-selector__item-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fuente-selector__item-count {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--neutral-100);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.fuente-selector__item.is-active .fuente-selector__item-count {
  background: var(--blue-100);
  color: var(--color-primary);
}
.fuente-selector__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.fuente-selector__empty i {
  font-size: 12px;
}
.fuente-selector__empty[hidden] {
  display: none;
}

.app-tabs {
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
}
.app-tabs__inner {
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-1);
  height: 44px;
  justify-content: center;
}
@media (max-width: 768px) {
  .app-tabs__inner {
    padding: 0 var(--space-3);
  }
}
.app-tabs__btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--blue-300);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--transition-fast);
  height: 100%;
}
.app-tabs__btn i {
  font-size: 13px;
}
.app-tabs__btn:hover {
  color: var(--blue-100);
}
.app-tabs__btn.is-active {
  color: white;
  border-bottom-color: var(--teal-400);
}
@media (max-width: 768px) {
  .app-tabs__btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
}

.app-tab-panel {
  display: none;
}
.app-tab-panel.is-active, .app-tab-panel:not([hidden]) {
  display: flex;
  flex-direction: row;
}
.app-tab-panel[hidden] {
  display: none !important;
}

#app-body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-height) - 44px);
}
#app-body[data-active-tab=timeline] #panel-timeline {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
}
#app-body[data-active-tab=dashboard] #panel-dashboard {
  display: flex;
  flex: 1;
}

#panel-timeline .app-sidebar {
  width: var(--sidebar-width, 260px);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: calc(var(--nav-height) + 44px);
  height: calc(100vh - var(--nav-height) - 44px);
  overflow-y: auto;
  padding: var(--space-5) var(--space-4);
  flex-shrink: 0;
  transition: width var(--transition), opacity var(--transition), padding var(--transition), transform var(--transition);
}
#panel-timeline .app-sidebar.is-collapsed {
  width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}
#panel-timeline .app-sidebar::-webkit-scrollbar {
  width: 4px;
}
#panel-timeline .app-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}
#panel-timeline .app-content {
  flex: 1;
  min-width: 0;
  padding: var(--space-6);
  overflow-y: auto;
}

@media (max-width: 768px) {
  #app-body {
    width: 100%;
    overflow-x: hidden;
  }
  .app-tab-panel.is-active, .app-tab-panel:not([hidden]) {
    width: 100%;
    flex-direction: column;
  }
  #panel-timeline {
    flex-direction: column;
    width: 100%;
  }
  #panel-timeline .app-sidebar {
    position: fixed;
    top: calc(var(--nav-height) + 44px);
    left: 0;
    bottom: 0;
    width: 280px !important;
    height: auto;
    z-index: 200;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform var(--transition);
    opacity: 1 !important;
    padding: var(--space-5) var(--space-4) !important;
    overflow-y: auto;
  }
  #panel-timeline .app-sidebar.is-collapsed {
    transform: translateX(-100%);
    width: 280px !important;
    padding: var(--space-5) var(--space-4) !important;
    opacity: 1 !important;
  }
  #panel-timeline .app-sidebar.is-open {
    transform: translateX(0);
  }
  #panel-timeline .app-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
  }
  #panel-timeline .app-sidebar-overlay.is-visible {
    display: block;
  }
  #panel-timeline .app-content {
    width: 100%;
    min-width: 0;
    padding: var(--space-4) var(--space-3);
  }
  #panel-dashboard {
    width: 100%;
  }
}
.dash-wrapper {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .dash-wrapper {
    padding: var(--space-3) var(--space-3);
    max-width: 100%;
  }
}

.timeline-controls__sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.timeline-controls__sidebar-toggle i {
  font-size: 14px;
}
.timeline-controls__sidebar-toggle:hover {
  background: var(--neutral-100);
  color: var(--text-primary);
}
.timeline-controls__sidebar-toggle.is-active {
  background: var(--blue-50);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.dash {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.dash__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.dash__section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.dash__section-title i {
  color: var(--color-primary);
  font-size: 13px;
}
.dash__section-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-regular);
  margin-left: var(--space-1);
}
.dash__section-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  background: var(--blue-50);
  border: 1px solid var(--color-primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash__delta {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  font-weight: var(--weight-bold);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.dash__delta i {
  font-size: 13px;
}
.dash__delta--up {
  background: #DCFCE7;
  color: #166534;
}
.dash__delta--down {
  background: #FEE2E2;
  color: #991B1B;
}
.dash__delta--neutral {
  background: var(--neutral-100);
  color: var(--text-muted);
}
.dash__delta--sm {
  font-size: 10px;
  padding: 1px 5px;
}
.dash__delta--sm i {
  font-size: 12px;
}
.dash__totales {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1024px) {
  .dash__totales {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .dash__totales {
    grid-template-columns: 1fr;
  }
}
.dash__total-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.dash__total-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.dash__total-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}
.dash__total-card--web::before {
  background: #3B82F6;
}
.dash__total-card--redes::before {
  background: #8B5CF6;
}
.dash__total-card--impacto::before {
  background: #0D9488;
}
.dash__total-card-inner {
  padding: var(--space-6) var(--space-6) var(--space-6) calc(var(--space-6) + 4px);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1;
}
.dash__total-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash__total-tipo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dash__total-tipo i {
  font-size: 14px;
}
.dash__total-card--web .dash__total-tipo {
  color: #3B82F6;
}
.dash__total-card--redes .dash__total-tipo {
  color: #8B5CF6;
}
.dash__total-card--impacto .dash__total-tipo {
  color: #0D9488;
}
.dash__total-principal {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.dash__total-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.dash__total-num-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-regular);
}
.dash__total-año-bloque {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dash__total-año-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.dash__total-año-etiqueta {
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 32px;
}
.dash__total-año-num {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  flex: 1;
}
.dash__total-share-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dash__total-share-bar {
  flex: 1;
  height: 3px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dash__total-share-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}
.dash__total-card--web .dash__total-share-fill {
  background: #3B82F6;
}
.dash__total-card--redes .dash__total-share-fill {
  background: #8B5CF6;
}
.dash__total-card--impacto .dash__total-share-fill {
  background: #0D9488;
}
.dash__total-share-pct {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}
.dash__total-metricas {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.dash__total-metrica {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dash__total-metrica-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex: 1;
}
.dash__total-metrica-vals {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dash__total-metrica-total {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  min-width: 32px;
  text-align: right;
}
.dash__total-metrica-año {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
}
.dash__mes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 768px) {
  .dash__mes {
    grid-template-columns: 1fr;
  }
}
.dash__mes-grupo {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.dash__mes-grupo-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.dash__mes-grupo-title i {
  color: var(--color-primary);
  font-size: 13px;
}
.dash__mes-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.dash__mes-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-body);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.dash__mes-card-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.dash__mes-card-label i {
  font-size: 11px;
  color: var(--color-primary);
}
.dash__mes-valor {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.dash__mes-deltas {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: var(--space-1);
}
.dash__mes-delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
}
.dash__mes-delta-label {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}
.dash__periodo-selector {
  display: flex;
  gap: 2px;
  margin-left: auto;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--border);
}
.dash__periodo-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  background: none;
  border: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dash__periodo-btn:hover {
  color: var(--text-primary);
}
.dash__periodo-btn.is-active {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.dash__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1100px) {
  .dash__row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .dash__row {
    grid-template-columns: 1fr;
  }
}
.dash__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.dash__card--wide {
  grid-column: span 2;
}
.dash__card-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.dash__card-title i {
  font-size: 12px;
  color: var(--color-primary);
}
.dash__bars-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dash__bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 140px;
}
.dash__bars-empty, .dash__empty-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.dash__bars-legend {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}
.dash__bars-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 11px;
  color: var(--text-muted);
}
.dash__bars-legend-item span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.dash__bars-legend-item--medios span {
  background: #3B82F6;
}
.dash__bars-legend-item--redes span {
  background: #8B5CF6;
}
.dash__bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 3px;
  height: 100%;
}
.dash__bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.dash__bar-stack {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.dash__bar {
  flex: 1;
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  transition: opacity var(--transition-fast);
  cursor: default;
}
.dash__bar:hover {
  opacity: 0.75;
}
.dash__bar--medios {
  background: #3B82F6;
}
.dash__bar--redes {
  background: #8B5CF6;
}
.dash__bar-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}
.dash__bar-count {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  text-align: center;
}
.dash__tono {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dash__tono-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash__tono-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash__tono-pct {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
}
.dash__tono-bar {
  height: 6px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dash__tono-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.dash__tono-count {
  font-size: 10px;
  color: var(--text-muted);
}
.dash__top-fuentes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dash__fuente-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dash__fuente-rank {
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  min-width: 14px;
  text-align: right;
}
.dash__fuente-nombre {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  flex: 0 0 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash__fuente-bar {
  flex: 1;
  height: 5px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dash__fuente-fill {
  height: 100%;
  background: var(--teal-400);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.dash__fuente-count {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 20px;
  text-align: right;
  font-weight: var(--weight-semibold);
}
.dash__aliados {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dash__aliado {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.dash__aliado-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 14px;
}
.dash__aliado-info {
  flex: 1;
  min-width: 0;
}
.dash__aliado-nombre {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.dash__aliado-bar {
  height: 5px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dash__aliado-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.dash__aliado-count {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
  font-weight: var(--weight-semibold);
}
.dash__regiones {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dash__region {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.dash__region-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash__region-info {
  flex: 1;
  min-width: 0;
}
.dash__region-nombre {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.dash__region-bar {
  height: 5px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dash__region-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.dash__region-count {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
  font-weight: var(--weight-semibold);
}
.dash__row--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .dash__row--3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .dash__row--3 {
    grid-template-columns: 1fr;
  }
}
.dash__bars--compact {
  height: 120px;
  gap: var(--space-1);
}
.dash__bar--eng {
  background: #F59E0B;
  flex: 1;
}
.dash__bars-legend-item--eng span {
  background: #F59E0B;
}

.dash__totales {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1024px) {
  .dash__totales {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .dash__totales {
    grid-template-columns: 1fr;
  }
}

.dash__total-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash__tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}
.dash__total-card--web .dash__tc-header {
  background: #2563EB;
}
.dash__total-card--redes .dash__tc-header {
  background: #7C3AED;
}
.dash__total-card--impacto .dash__tc-header {
  background: #0F766E;
}
.dash__tc-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dash__tc-ano-tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.dash__tc-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4) var(--space-4);
  gap: var(--space-4);
}

.dash__tc-section {
  display: flex;
  flex-direction: column;
}
.dash__tc-section--total {
  flex: 1 0 auto;
  min-width: 110px;
  align-items: center;
  padding-right: var(--space-4);
  border-right: 1px solid var(--border);
}
.dash__tc-section--actual {
  flex: 1;
  padding-left: var(--space-4);
  align-items: flex-start;
}
.dash__tc-section--donut {
  flex: 0 0 auto;
  align-items: flex-end;
}

.dash__tc-col-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dash__tc-num {
  font-size: 3rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.dash__tc-num-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.dash__tc-ano-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.dash__total-card--web .dash__tc-ano-num {
  color: #3B82F6;
}
.dash__total-card--redes .dash__tc-ano-num {
  color: #8B5CF6;
}
.dash__total-card--impacto .dash__tc-ano-num {
  color: #0D9488;
}

.dash__tc-donut {
  position: relative;
  width: 74px;
  height: 74px;
}
.dash__tc-donut .dash__tc-donut-svg {
  width: 100%;
  height: 100%;
}
.dash__total-card--web .dash__tc-donut .dash__tc-donut-svg circle:last-child {
  color: #3B82F6;
}
.dash__total-card--redes .dash__tc-donut .dash__tc-donut-svg circle:last-child {
  color: #8B5CF6;
}
.dash__total-card--impacto .dash__tc-donut .dash__tc-donut-svg circle:last-child {
  color: #0D9488;
}

.dash__tc-donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash__tc-donut-pct {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.dash__tc-donut-sub {
  font-size: 8px;
  color: var(--text-muted);
}

.dash__tc-composicion {
  padding: 0 var(--space-4) var(--space-4);
}
.dash__tc-composicion .dash__tc-comp-bar {
  width: 100%;
  height: 10px;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
}
.dash__tc-composicion .dash__tc-comp-seg--medios {
  background: #3B82F6;
}
.dash__tc-composicion .dash__tc-comp-seg--redes {
  background: #8B5CF6;
}
.dash__tc-composicion .dash__tc-comp-legend {
  display: flex;
  gap: var(--space-4);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.dash__tc-composicion .dash__tc-comp-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dash__tc-composicion .dash__tc-comp-legend .dash__tc-comp-item--medios .dot {
  background: #3B82F6;
}
.dash__tc-composicion .dash__tc-comp-legend .dash__tc-comp-item--redes .dot {
  background: #8B5CF6;
}

.dash__tc-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dash__tc-footer-headers {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.dash__tc-footer-headers span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}
.dash__tc-footer-headers span:first-child {
  text-align: left;
}

.dash__tc-metrica {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2);
  align-items: center;
  padding: 2px 0;
}
.dash__tc-metrica-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.dash__tc-metrica-total {
  font-size: var(--text-xs);
  text-align: right;
}
.dash__tc-metrica-ano {
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: right;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  min-height: 100vh;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .app-nav {
    padding: 0 var(--space-3);
    gap: var(--space-2);
  }
}
.app-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .app-nav__brand {
    gap: var(--space-2);
  }
}
.app-nav__logo {
  height: 32px;
  width: auto;
}
.app-nav__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
}
@media (max-width: 480px) {
  .app-nav__divider {
    display: none;
  }
}
.app-nav__name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: white;
  letter-spacing: -0.01em;
}
.app-nav__name span {
  color: var(--teal-400);
}
.app-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
@media (max-width: 768px) {
  .app-nav__actions {
    gap: var(--space-2);
  }
}
.app-nav__search {
  position: relative;
}
.app-nav__search input {
  height: 34px;
  width: 220px;
  padding: 0 var(--space-4) 0 var(--space-8);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: all var(--transition);
}
.app-nav__search input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.app-nav__search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.app-nav__search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--teal-400);
}
@media (max-width: 900px) {
  .app-nav__search input {
    width: 160px;
  }
  .app-nav__search input:focus {
    width: 200px;
  }
}
@media (max-width: 600px) {
  .app-nav__search input {
    width: 32px;
    padding: 0;
    background: transparent;
    border-color: transparent;
    cursor: pointer;
  }
  .app-nav__search input:focus {
    width: 180px;
    padding: 0 var(--space-4) 0 var(--space-8);
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--teal-400);
    cursor: text;
  }
}
.app-nav__search i {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  pointer-events: none;
}
@media (max-width: 600px) {
  .app-nav__search i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition);
  }
}
@media (max-width: 600px) {
  .app-nav__search:focus-within i {
    left: var(--space-3);
    transform: translateY(-50%);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
  }
}
@media (max-width: 600px) {
  .app-nav .btn--nav {
    padding: var(--space-2);
  }
  .app-nav .btn--nav span {
    display: none;
  }
}

.logo-makemeideas {
  width: 150px;
  height: auto;
}
@media (max-width: 900px) {
  .logo-makemeideas {
    width: 110px;
  }
}
@media (max-width: 480px) {
  .logo-makemeideas {
    display: none;
  }
}

.app-body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-height));
  width: 100%;
  overflow-x: hidden;
}

.app-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .app-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3);
  }
  .app-footer__left {
    display: none;
  }
  .app-footer__right {
    justify-content: center;
  }
}
.app-footer__left {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.app-footer__center {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
}
.app-footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: flex-end;
}
.app-footer__credit-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}
.app-footer__credit-link {
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}
.app-footer__credit-link:hover {
  opacity: 1;
}
.app-footer__credit-link--main {
  opacity: 0.9;
}
.app-footer__logo {
  height: 18px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
.app-footer__logo--main {
  height: 30px;
}
.app-footer__logo--dha {
  height: 16px;
  max-width: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: white;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: white;
}
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--neutral-100);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--nav {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
}
.btn--nav:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.btn--sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  white-space: nowrap;
}
.badge i {
  font-size: 10px;
}
.badge--medio {
  background: var(--tipo-medio);
  color: white;
}
.badge--red_social {
  background: var(--tipo-red-social);
  color: white;
}
.badge--hito {
  background: var(--tipo-hito);
  color: white;
}
.badge--evento {
  background: var(--tipo-evento);
  color: white;
}
.badge--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.badge--positivo {
  background: #DCFCE7;
  color: #166534;
}
.badge--neutro {
  background: var(--neutral-100);
  color: var(--text-secondary);
}
.badge--negativo {
  background: #FEE2E2;
  color: #991B1B;
}

.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.timeline-controls__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.timeline-controls__count {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.timeline-controls__count strong {
  color: var(--text-primary);
}
.timeline-controls__nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .timeline-controls__nav {
    gap: var(--space-1);
  }
  .timeline-controls__nav .btn span {
    display: none;
  }
}
.timeline-controls__sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.timeline-controls__sidebar-toggle i {
  font-size: 14px;
}
.timeline-controls__sidebar-toggle:hover {
  background: var(--neutral-100);
  color: var(--text-primary);
}
.timeline-controls__sidebar-toggle.is-active {
  background: var(--blue-50);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.timeline-wrapper {
  position: relative;
}

.timeline-loading {
  display: none;
  text-align: center;
  padding: var(--space-12);
  color: var(--text-muted);
}
.timeline-loading.is-visible {
  display: block;
}
.timeline-loading__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto var(--space-3);
}
.timeline-loading p {
  font-size: var(--text-sm);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.timeline-empty {
  text-align: center;
  padding: var(--space-16);
  color: var(--text-muted);
}
.timeline-empty i {
  font-size: 2.5rem;
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-4);
}
.timeline-empty h3 {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.timeline-empty p {
  font-size: var(--text-sm);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in {
  animation: fadeInUp 0.25s ease forwards;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.timeline-year {
  margin-bottom: var(--space-6);
}
.timeline-year__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--blue-900);
  border-radius: var(--radius-md);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background var(--transition-fast);
  margin-bottom: var(--space-3);
}
.timeline-year__header:hover {
  background: var(--blue-800);
}
.timeline-year__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.timeline-year__header-año {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: white;
}
.timeline-year__header-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.timeline-year__header-stat {
  font-size: var(--text-xs);
  color: var(--blue-200);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.timeline-year__header-stat i {
  font-size: 11px;
}
.timeline-year__header-toggle {
  color: var(--blue-300);
  font-size: var(--text-lg);
  transition: transform var(--transition);
}
.is-open .timeline-year__header-toggle {
  transform: rotate(180deg);
}
.timeline-year__body {
  display: none;
  padding-left: var(--space-4);
  border-left: 2px solid var(--blue-200);
  margin-left: var(--space-3);
}
.timeline-year__body.is-open {
  display: block;
}

.timeline-month {
  margin-bottom: var(--space-4);
}
.timeline-month__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--neutral-100);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin-bottom: var(--space-3);
  transition: background var(--transition-fast);
  border: 1px solid var(--border);
}
.timeline-month__header:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
}
.timeline-month__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.timeline-month__header-nombre {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-transform: capitalize;
}
.timeline-month__header-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.timeline-month__header-stat {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.timeline-month__header-toggle {
  color: var(--text-muted);
  font-size: var(--text-base);
  transition: transform var(--transition);
}
.is-open .timeline-month__header-toggle {
  transform: rotate(180deg);
}
.timeline-month__body {
  display: none;
}
.timeline-month__body.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.entry-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  border-left: 5px solid #cbd5e1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.entry-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.entry-card[data-tipo=medio] {
  border-left-color: #3b82f6;
  background: linear-gradient(to right, #f8fafc 0%, #ffffff 100px);
}
.entry-card[data-tipo=medio] .entry-card__source-name i {
  color: #3b82f6;
}
.entry-card[data-tipo=red_social] {
  border-left-color: #14b8a6;
  background: linear-gradient(to right, #f0fdfa 0%, #ffffff 100px);
}
.entry-card[data-tipo=red_social] .entry-card__source-name i {
  color: #14b8a6;
}
.entry-card[data-tipo=hito] {
  border-left-color: #f59e0b;
  background: linear-gradient(to right, #fffbeb 0%, #ffffff 100px);
}
.entry-card[data-tipo=hito] .entry-card__source-name i {
  color: #f59e0b;
}
.entry-card[data-tipo=evento] {
  border-left-color: #8b5cf6;
  background: linear-gradient(to right, #f5f3ff 0%, #ffffff 100px);
}
.entry-card[data-tipo=evento] .entry-card__source-name i {
  color: #8b5cf6;
}
.entry-card--destacado {
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.entry-card__body {
  padding: 1.25rem 1.5rem;
}
.entry-card__header-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
  margin-bottom: 1rem;
}
.entry-card__logo-col {
  grid-column: 1;
  grid-row: 1/3;
  display: flex;
  align-items: center;
}
.entry-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 6px;
  overflow: hidden;
}
.entry-card__logo-wrap--icon {
  background: #f1f5f9;
}
.entry-card__logo-wrap--icon i {
  font-size: 1.5rem;
  color: #94a3b8;
}
.entry-card__logo-img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.entry-card__meta {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.entry-card__source-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-card__cuenta {
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.5rem;
}
.entry-card__date {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}
.entry-card__badges {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.entry-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0.75rem 0 0.5rem 0;
}
.entry-card__title a {
  color: inherit;
  text-decoration: none;
}
.entry-card__title a:hover {
  color: #3b82f6;
}
.entry-card__desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-card__hito {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.entry-card__hito-valor {
  font-size: 1.75rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}
.entry-card__hito-info {
  flex: 1;
}
.entry-card__hito-unidad {
  font-size: 0.75rem;
  color: #92400e;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.entry-card__hito-barra {
  height: 6px;
  background: #fde68a;
  border-radius: 10px;
  overflow: hidden;
}
.entry-card__hito-barra-fill {
  height: 100%;
  background: #f59e0b;
  transition: width 0.8s ease;
}
.entry-card__hito-pct {
  font-size: 0.7rem;
  color: #b45309;
  margin-top: 4px;
}
.entry-card__lugar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.entry-card__lugar i {
  color: #8b5cf6;
}
.entry-card__footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}
.entry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.entry-card__tag {
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  opacity: 0.9;
}
.entry-card__tag:hover {
  opacity: 1;
}
.entry-card__action {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.entry-card__action:hover {
  text-decoration: underline;
}
.entry-card__metrics {
  background: #f8fafc;
  border-top: 1px dashed #e2e8f0;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.entry-card__metrics .entry-card__metric {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
}
.entry-card__metrics .entry-card__metric-val {
  font-weight: 700;
  color: #1e293b;
}
.entry-card__metrics .entry-card__metric--engagement {
  margin-left: auto;
  color: #14b8a6;
}
.entry-card__metrics .entry-card__metric--engagement .entry-card__metric-val {
  color: #14b8a6;
}
.entry-card__social-spread {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 1rem 1.5rem;
}
.entry-card__social-spread-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-card__social-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.78rem;
}
.entry-card__social-row {
  display: grid;
  grid-template-columns: 1fr 52px 52px 52px 52px 64px 28px;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  min-height: 36px;
}
.entry-card__social-row:last-child {
  border-bottom: none;
}
.entry-card__social-row--header {
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.72rem;
  min-height: 30px;
}
.entry-card__social-row--total {
  background: #f0fdf4;
  border-top: 2px solid #bbf7d0;
  font-weight: 700;
  color: #166534;
}
.entry-card__social-row--alcance {
  background: #fafafa;
  color: #94a3b8;
  font-style: italic;
  font-size: 0.74rem;
}
.entry-card__social-col {
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.entry-card__social-col--red {
  padding-left: 0.75rem;
}
.entry-card__social-col--red i {
  font-size: 0.9rem;
  color: #64748b;
  flex-shrink: 0;
}
.entry-card__social-col--stat {
  justify-content: center;
  border-left: 1px solid #f1f5f9;
  font-variant-numeric: tabular-nums;
  color: #374151;
}
.entry-card__social-col--engagement {
  color: #0d9488;
}
.entry-card__social-col--engagement strong {
  color: #0d9488;
}
.entry-card__social-col--link {
  justify-content: center;
  border-left: 1px solid #f1f5f9;
}
.entry-card__social-col--alcance-wide {
  grid-column: 2/7;
  gap: 0.5rem;
  padding-left: 0.6rem;
}
.entry-card__social-red-nombre {
  font-weight: 600;
  color: #374151;
}
.entry-card__social-cuenta {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.entry-card__social-empty {
  color: #d1d5db;
  font-size: 0.7rem;
}
.entry-card__social-link {
  color: #3b82f6;
  font-size: 0.75rem;
}
.entry-card__social-link:hover {
  color: #1d4ed8;
}
.entry-card__social-alcance-pendiente {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #9ca3af;
}
.entry-card__social-alcance-pendiente i {
  font-size: 0.7rem;
}
.entry-card__social-alcance-label {
  font-size: 0.7rem;
  color: #6b7280;
}

.stats-header {
  /* Gradiente más profundo y elegante */
  background: linear-gradient(135deg, #020617 0%, #0f172a 55%, #134e4a 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8); /* Aumentamos padding superior/inferior */
  margin-bottom: var(--space-8);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.stats-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.stats-header__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-400); /* Un poco más de contraste */
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
  opacity: 0.9;
}
.stats-header__title {
  font-size: var(--text-4xl); /* Un poco más grande para dominar el espacio */
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stats-header__subtitle {
  font-size: var(--text-base);
  color: var(--blue-100);
  margin-bottom: var(--space-10); /* Más espacio antes de los KPIs */
  position: relative;
  z-index: 1;
  max-width: 600px; /* Evita que el texto se estire demasiado */
  line-height: 1.5;
  opacity: 0.85;
}
.stats-header__kpis {
  display: grid; /* Cambiamos a Grid para mejor control que Flex */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}
.stats-header__kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}
.stats-header__kpi:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.stats-header__kpi-valor {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums; /* Mejora la alineación de números */
}
.stats-header__kpi-label {
  font-size: 0.65rem;
  color: var(--blue-200);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  font-weight: 500;
}
.stats-header__kpi-icon {
  font-size: 1.25rem;
  color: var(--teal-400);
  margin-bottom: var(--space-4);
  display: inline-block;
  opacity: 0.8;
}
.stats-header__kpi {
  /* Estilo especial para el KPI destacado */
}
.stats-header__kpi--hito-mayor {
  grid-column: span 2; /* Ocupa dos columnas para dar peso al dato grande */
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.2);
}
@media (max-width: 768px) {
  .stats-header__kpi--hito-mayor {
    grid-column: span 1;
  }
}
.stats-header__kpi--hito-mayor .stats-header__kpi-valor {
  font-size: var(--text-4xl);
  color: var(--teal-300);
  margin-bottom: var(--space-1);
}
.stats-header__kpi--hito-mayor .stats-header__kpi-label {
  color: white;
  font-weight: 600;
}

.filtros {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.filtros__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filtros__title button {
  font-size: 10px;
  color: var(--color-primary-light);
  font-weight: var(--weight-semibold);
  font-family: var(--font-body);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.filtros__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.filtros__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
.filtros__option-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.filtros__option i {
  font-size: 12px;
  opacity: 0.7;
}
.filtros__option:hover {
  background: var(--neutral-100);
  color: var(--text-primary);
}
.filtros__option.is-active {
  background: var(--blue-50);
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}
.filtros__option.is-active i {
  opacity: 1;
}
.filtros__option-count {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--neutral-100);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.filtros__clear {
  font-size: var(--text-xs);
  color: var(--color-primary-light);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  text-align: center;
  transition: all var(--transition-fast);
  width: 100%;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.filtros__clear:hover {
  background: var(--blue-50);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.timeline-controls__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.timeline-controls__count {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.timeline-controls__count strong {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}
.timeline-controls__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}/*# sourceMappingURL=main.css.map */