/* ============ Festivos en Colombia ============ */
.fco-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  margin-bottom: 16px;
}
.fco-next-main strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text);
  margin-top: 2px;
}
.fco-next-date {
  color: var(--muted);
  font-size: .95rem;
}
.fco-countdown {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.fco-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fco-year-ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fco-year-ctrl input[type="number"] {
  width: 82px;
  text-align: center;
  font-weight: 700;
  padding: 8px 6px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.fco-year-ctrl input[type="number"]::-webkit-inner-spin-button,
.fco-year-ctrl input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fco-chip-btn {
  padding: 7px 12px;
  font-size: .9rem;
}

.fco-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.fco-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.fco-tag.puente {
  background: color-mix(in srgb, var(--ok) 16%, var(--surface));
  color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
}
.fco-tag.fijo {
  background: var(--primary-50);
  color: var(--primary);
}
.fco-tag.finde {
  background: color-mix(in srgb, var(--muted) 15%, var(--surface));
  color: var(--muted);
}
.fco-tag.santa {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
}

.fco-row-past {
  opacity: .62;
}
.fco-row-next td {
  background: var(--primary-50);
  font-weight: 600;
}
.fco-table td {
  white-space: normal;
  text-align: left;
  vertical-align: middle;
}
.fco-table th {
  text-align: left;
}
.fco-sub {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 400;
}

/* Calendario anual 12 meses */
.fco-cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.fco-month {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.fco-month h4 {
  margin: 0 0 8px;
  font-size: .98rem;
  text-align: center;
  text-transform: capitalize;
  color: var(--text);
}
.fco-days-head,
.fco-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.fco-days-head span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 4px;
}
.fco-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: .82rem;
  border-radius: 7px;
  color: var(--text);
  position: relative;
}
.fco-day.sun {
  color: var(--muted);
}
.fco-day.hol {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.fco-day.hol.puente {
  background: var(--ok);
}
.fco-day.today {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  font-weight: 700;
}
.fco-month-list {
  margin: 8px 0 0;
  padding: 6px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
}
.fco-month-list li {
  padding: 2px 0;
}
.fco-month-list b {
  color: var(--text);
}

.fco-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 12px;
}
.fco-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}

.fco-hol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.fco-hol-pill {
  font-size: .82rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (max-width: 520px) {
  .fco-table th:nth-child(4),
  .fco-table td:nth-child(4) {
    display: none;
  }
}
