/* Calendario radial: estilos aislados para no alterar el resto del sitio */
.cr-main {
  min-height: 55vh;
  padding: 145px 22px 65px;
  background: var(--bg-color);
  color: var(--text-color);
}
.cr-heading, .cr-calendar { width: min(1440px, 100%); margin-inline: auto; }
.cr-heading { text-align:center; margin-bottom:30px; }
.cr-eyebrow { color:var(--accent-color); font-size:.78rem; font-weight:800; letter-spacing:.13em; }
.cr-heading h1 { font-size:clamp(2rem,5vw,3.3rem); margin:10px 0; line-height:1.1; }
.cr-heading p { color:var(--text-secondary); font-size:1rem; }
.cr-calendar {
  background:var(--surface-color);
  border:1px solid var(--border-color);
  border-radius:18px;
  padding:20px;
  box-shadow:0 12px 35px rgba(0,0,0,.12);
}
.cr-toolbar { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:18px; }
.cr-week-label { font-size:1.05rem; font-weight:800; }
.cr-actions { display:flex; gap:8px; }
.cr-actions button {
  border:1px solid var(--border-color); background:var(--surface-card); color:var(--text-color);
  border-radius:9px; padding:9px 13px; cursor:pointer; font:inherit; font-weight:700;
}
.cr-actions button:hover { border-color:var(--accent-color); color:var(--accent-color); }
.cr-status { padding:30px 12px; text-align:center; color:var(--text-secondary); }
.cr-week-scroll { overflow-x:auto; padding-bottom:8px; }
.cr-week-grid { display:grid; grid-template-columns:repeat(7,minmax(165px,1fr)); gap:10px; min-width:1190px; align-items:stretch; }
.cr-day { background:var(--surface-card); border:1px solid var(--border-color); border-radius:12px; overflow:hidden; min-height:230px; }
.cr-day.is-today { border:2px solid var(--accent-color); }
.cr-day-head { padding:12px 10px; text-align:center; background:rgba(127,127,127,.09); border-bottom:1px solid var(--border-color); }
.cr-day-name { display:block; font-size:.78rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.cr-day-date { display:block; margin-top:4px; color:var(--text-secondary); font-size:.8rem; }
.cr-day-body { padding:9px; display:flex; flex-direction:column; gap:9px; }
.cr-program { border:1px solid var(--border-color); border-left:3px solid var(--accent-color); border-radius:9px; padding:9px; background:var(--surface-color); min-width:0; }
.cr-program-time { color:var(--accent-color); font-size:.76rem; font-weight:900; margin-bottom:5px; }
.cr-program-name { color:var(--text-color); font-size:.88rem; line-height:1.25; font-weight:850; overflow-wrap:anywhere; }
.cr-program-meta { color:var(--text-secondary); font-size:.73rem; margin-top:5px; line-height:1.35; }
.cr-program-img { display:block; width:100%; height:76px; object-fit:cover; border-radius:6px; margin:0 0 7px; }
.cr-radios { display:flex; flex-wrap:wrap; gap:4px; margin-top:7px; }
.cr-radio { display:inline-flex; align-items:center; gap:4px; border-radius:20px; padding:3px 6px; font-size:.67rem; font-weight:750; color:var(--text-color); background:rgba(127,127,127,.13); }
.cr-radio img { width:15px; height:15px; object-fit:contain; border-radius:50%; }
.cr-empty { color:var(--text-secondary); font-size:.76rem; text-align:center; padding:18px 4px; }
.cr-legend { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:15px; color:var(--text-secondary); font-size:.75rem; }
.cr-legend i { color:var(--accent-color); margin-right:5px; }
@media(max-width:700px) {
 .cr-main { padding:120px 12px 42px; }
 .cr-calendar { padding:13px 10px; border-radius:13px; }
 .cr-toolbar { align-items:flex-start; flex-direction:column; }
 .cr-week-label { font-size:.95rem; }
 .cr-actions { width:100%; }
 .cr-actions button { flex:1; }
 .cr-week-grid { grid-template-columns:repeat(7,minmax(155px,1fr)); min-width:1085px; }
 .cr-legend { flex-direction:column; }
}


/* Filtros del calendario: panel compacto estilo oscuro */
.cr-filters {
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr);
  align-items:start;
  gap:13px 24px;
  padding:16px 20px;
  margin:0 0 14px;
  border:1px solid #293a59;
  border-radius:12px;
  background:#141f35;
  color:#f7f9ff;
}
.cr-filter-group {
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}
/* Emisión a la izquierda y radios a la derecha, como en la referencia */
.cr-filter-group:nth-of-type(2) { grid-column:1; grid-row:1; }
.cr-filter-group:nth-of-type(1) { grid-column:2; grid-row:1; }
.cr-filter-group legend {
  padding:0;
  margin:0 0 11px;
  color:#f7f9ff;
  font-size:.88rem;
  font-weight:800;
  letter-spacing:0;
}
.cr-filter-options {
  display:flex;
  flex-wrap:wrap;
  gap:8px 9px;
}
.cr-filter-options label {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:37px;
  padding:7px 11px;
  border:1px solid #354967;
  border-radius:9px;
  color:#f7f9ff;
  background:#111b30;
  font-size:.82rem;
  line-height:1.2;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.cr-filter-options label:hover {
  border-color:#7185a5;
  background:#1a2942;
}
.cr-filter-options label:has(input:checked) {
  border-color:#536987;
  background:#17243a;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}
.cr-filter-options input {
  width:16px;
  height:16px;
  margin:0;
  accent-color:#f4c400;
  cursor:pointer;
  flex:0 0 auto;
}
.cr-filter-clear {
  grid-column:1 / -1;
  justify-self:end;
  border:0;
  padding:0 2px;
  color:#aab8ce;
  background:transparent;
  font:inherit;
  font-size:.74rem;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}
.cr-filter-clear:hover { color:#f4c400; }
.cr-current {
  margin:0 0 14px;
  padding:10px 13px;
  border:1px solid var(--accent-color);
  border-radius:10px;
  color:var(--text-color);
  background:rgba(127,127,127,.07);
  font-size:.82rem;
  line-height:1.45;
}
.cr-current strong { color:var(--accent-color); }
.cr-current .fa-circle { font-size:.55em; vertical-align:middle; }
.cr-program.is-current {
  border:2px solid var(--accent-color);
  box-shadow:0 0 0 2px rgba(127,127,127,.10);
  background:var(--surface-card);
}
.cr-current-tag {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin:-2px 0 7px;
  color:#ff0000;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.06em;
}
.cr-current-tag .fa-circle { font-size:.55em; }
@media(max-width:700px) {
  .cr-filters { grid-template-columns:minmax(0,1fr); gap:14px; padding:13px; }
  .cr-filter-group:nth-of-type(1),
  .cr-filter-group:nth-of-type(2) { grid-column:1; grid-row:auto; }
  .cr-filter-options { gap:7px; }
  .cr-filter-options label { min-height:35px; padding:7px 9px; font-size:.76rem; }
  .cr-filter-clear { grid-column:1; justify-self:start; }
}
