/* Identidad Visual Institucional EjeData - RAP Eje Cafetero (v11 Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --rap-forest: #153d24;
  --rap-forest-deep: #0e2b19;
  --rap-green: #00853e;       /* Verde institucional */
  --rap-gold: #f0ad00;        /* Amarillo dorado institucional */
  --rap-blue: #004e8c;        /* Azul institucional */
  --rap-crimson: #9b222a;     /* Rojo vino institucional (footer RAP) */
  --gov-blue: #3366cc;        /* Azul GOV.CO */
  --surface-bg: #f4f6f9;
}

html, body, button, input, select, textarea {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
  background-color: var(--surface-bg);
  color: #1e293b;
}

.rap-topbar {
  background: linear-gradient(90deg, var(--rap-forest-deep) 0%, var(--rap-forest) 60%, #1b4d2e 100%);
  border-bottom: 3px solid var(--rap-gold);
}

.rap-tab {
  color: rgba(255, 255, 255, 0.86);
  transition: all 0.18s ease;
  border-bottom: 2px solid transparent;
}
.rap-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}
.rap-tab.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: var(--rap-gold);
  font-weight: 700;
}

.sit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.sit-card-header {
  background: linear-gradient(90deg, var(--rap-forest) 0%, #1e5231 100%);
  color: #ffffff;
  border-radius: 11px 11px 0 0;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}

/* Tarjetas de indicadores estilo píldora institucional RAP (con bloque diagonal de color) */
.rap-stat-pill {
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 10px 26px rgba(14, 43, 25, 0.14);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 98px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rap-stat-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(14, 43, 25, 0.22);
}
.rap-stat-badge {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0% 100%);
  padding-right: 10px;
}

.btn-rap-gold {
  background-color: var(--rap-gold);
  color: var(--rap-forest-deep);
  font-weight: 700;
}
.btn-rap-gold:hover {
  background-color: #d99b00;
}

.section-badge {
  display: inline-block;
  background-color: var(--rap-forest);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}

/* Footer Institucional Rojo Vino RAP + Franja GOV.CO */
.rap-footer-main {
  background-color: #9b222a;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.rap-footer-gov {
  background-color: #3366cc;
  color: #ffffff;
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 45;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.wa-float:hover {
  transform: scale(1.08);
}

/* Clústeres institucionales Leaflet */
.rap-cluster-icon { background: transparent; }
.rap-cluster-badge {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(21, 61, 36, 0.88);
  border: 3px solid #f0ad00;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}

.map-fullscreen-card {
  position: fixed !important;
  inset: 16px !important;
  z-index: 60 !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
}
.map-fullscreen-card #map-ods {
  flex: 1;
  height: auto !important;
  min-height: 500px;
}

.zoom-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  transition: all 0.15s ease;
}
.zoom-pill:hover {
  border-color: #00853e;
  color: #153d24;
  background: #f0fdf4;
}
.zoom-pill.active {
  background: #153d24;
  color: #ffffff;
  border-color: #153d24;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.matrix-table th, .matrix-table td { white-space: nowrap; }
.matrix-table td.sticky-col, .matrix-table th.sticky-col {
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 10;
  white-space: normal;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 2px 0 5px rgba(15, 23, 42, 0.05);
}
.matrix-table thead th.sticky-col { background: #f8fafc; z-index: 20; }
