/* ====== CONTENEDOR GENERAL ====== */
#ec {
  font-family: "Inter", "Roboto", sans-serif;
}

/* ====== TOOLBAR ====== */
#ec .ec-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
#ec .ec-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
}
#ec .ec-title::first-letter {
  text-transform: uppercase;
}

#ec .ec-button {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 0 2px;
  background: #222;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
#ec .ec-button:hover {
  background: #444;
}
#ec .ec-button.ec-active {
  background: #2196f3;
}

/* ====== CABECERA DE DÍAS ====== */
#ec .ec-header .ec-day {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 6px;
  background: #f7f7f7;
  border: 1px solid #eee;
}

/* ====== CELDAS ====== */
#ec .ec-day-grid .ec-day {
  border: 1px solid #eee;
  padding: 4px;
  min-height: 90px;
  transition: background 0.2s;
}
#ec .ec-day-grid .ec-day:hover {
  background: #f5f7fa;
}
#ec .ec-day.ec-other-month {
  background: #fafafa;
  color: #aaa;
}
#ec .ec-day.ec-today {
  background: #fff8e1;
  outline: 2px solid #ff9800;
}

/* ====== EVENTOS ====== */
#ec .ec-event {
  border-radius: 6px;
  padding: 3px 6px;
  margin: 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #2196f3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
#ec .ec-event:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ====== VISTA LISTA ====== */
#ec.ec-list .ec-list-event {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}
#ec.ec-list .ec-list-event:hover {
  background: #fafafa;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* ====== DARK MODE (cuando el body o wrapper tiene .likhun-dark) ====== */
.likhun-dark #ec {
  color: #e0e0e0;
}

/* Toolbar */
.likhun-dark #ec .ec-title {
  color: #f5f5f5;
}
.likhun-dark #ec .ec-button {
  background: #444;
  color: #fff;
}
.likhun-dark #ec .ec-button:hover {
  background: #666;
}
.likhun-dark #ec .ec-button.ec-active {
  background: #2196f3;
}

/* Cabecera de días */
.likhun-dark #ec .ec-header .ec-day {
  background: #222;
  border: 1px solid #333;
  color: #bbb;
}

/* Celdas */
.likhun-dark #ec .ec-day-grid .ec-day {
  border: 1px solid #333;
}
.likhun-dark #ec .ec-day-grid .ec-day:hover {
  background: #2a2a2a;
}
.likhun-dark #ec .ec-day.ec-other-month {
  background: #1a1a1a;
  color: #666;
}
.likhun-dark #ec .ec-day.ec-today {
  background: #333;
  outline: 2px solid #ff9800;
}

/* Eventos (colores por ciudad se mantienen, solo ajusta sombra y hover) */
.likhun-dark #ec .ec-event {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.likhun-dark #ec .ec-event:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Vista lista */
.likhun-dark #ec.ec-list .ec-list-event {
  background: #222;
  border: 1px solid #333;
  color: #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.likhun-dark #ec.ec-list .ec-list-event:hover {
  background: #2a2a2a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* ====== DARK MODE: encabezado de días en vista lista ====== */
#ec.ec-list .ec-day-head {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #ddd;
  font-weight: 600;
}

.likhun-dark #ec.ec-list .ec-day-head:hover {
  background: #2a2a2a;
  color: #fff;
}

/* ===== LEYENDA ===== */
#ec-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  font-size: 14px;
}

#ec-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

#ec-legend .legend-item .color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

#ec .ec-event.city-armenia,
#ec-legend .city-armenia {
  background: #8e24aa;
}

#ec .ec-event.city-barranquilla,
#ec-legend .city-barranquilla {
  background: #ffb300;
}

#ec .ec-event.city-bogota,
#ec-legend .city-bogota {
  background: #2eccb6;
}

#ec .ec-event.city-bucaramanga,
#ec-legend .city-bucaramanga {
  background: #388e3c;
}

#ec .ec-event.city-cali,
#ec-legend .city-cali {
  background: #1976d2;
}

#ec .ec-event.city-cartagena,
#ec-legend .city-cartagena {
  background: #f57c00;
}

#ec .ec-event.city-ibague,
#ec-legend .city-ibague {
  background: #7b1fa2;
}

#ec .ec-event.city-manizales,
#ec-legend .city-manizales {
  background: #0097a7;
}

#ec .ec-event.city-medellin,
#ec-legend .city-medellin {
  background: #2e7d32;
}

#ec .ec-event.city-neiva,
#ec-legend .city-neiva {
  background: #c9771a;
}

#ec .ec-event.city-pasto,
#ec-legend .city-pasto {
  background: #0288d1;
}

#ec .ec-event.city-pereira,
#ec-legend .city-pereira {
  background: #c2185b;
}

#ec .ec-event.city-santa-marta,
#ec-legend .city-santa-marta {
  background: #00796b;
}

#ec .ec-event.santander-de-quilichao,
#ec-legend .city-santander-de-quilichao {
  background: #4bde2e;
}

#ec .ec-event.city-villavicencio,
#ec-legend .city-villavicencio {
  background: #512da8;
}

/* Regla común */
#ec .ec-event[class*="city-"] {
  color: #fff;
}
