.fdc-schedule {
  --fdc-border: rgba(15, 23, 42, .10);
  --fdc-muted: #64748b;
  --fdc-text: #0f172a;
  --fdc-bg: #fff;
  --fdc-soft: #f8fafc;
  color: var(--fdc-text);
  margin: 22px auto;
}

.fdc-schedule__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--fdc-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.fdc-schedule__summary strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.025em;
}

.fdc-schedule__summary > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.fdc-schedule__eyebrow {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fdc-schedule-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 6px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eef2f7;
  scrollbar-width: thin;
}

.fdc-schedule-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  flex: 1 0 112px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.fdc-schedule-tab:hover {
  color: #0f172a;
}

.fdc-schedule-tab.is-active {
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}

.fdc-schedule-panel {
  display: none;
}

.fdc-schedule-panel.is-active {
  display: block;
}

.fdc-hour-group {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--fdc-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.fdc-hour-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  background: #fff;
  color: #111827;
  cursor: pointer;
  text-align: left;
  font-weight: 950;
}

.fdc-hour-group__toggle strong {
  font-size: 18px;
}

.fdc-hour-group__toggle span:last-child {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.fdc-hour-group__body {
  padding: 16px;
}

.fdc-hour-group.is-collapsed .fdc-hour-group__body {
  display: none;
}

.fdc-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fdc-class-card {
  display: block;
  min-height: 150px;
  padding: 16px;
  border-radius: 16px;
  background: var(--fdc-card-bg, #f3f4f6);
  color: var(--fdc-card-fg, #111827);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10), 0 8px 18px rgba(15, 23, 42, .08);
}

.fdc-class-card.is-hidden {
  opacity: .54;
  filter: saturate(.8);
}

.fdc-class-card__title {
  font-size: 15px;
  line-height: 1.22;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fdc-class-card__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid currentColor;
  padding-top: 7px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.3;
  opacity: .92;
}

.fdc-class-card__line span {
  opacity: .78;
}

.fdc-class-card__line strong {
  font-weight: 850;
  text-align: right;
}

.fdc-class-card__price {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 950;
}

.fdc-empty-state {
  padding: 22px;
  border: 1px dashed rgba(15, 23, 42, .18);
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-weight: 750;
}

@media (max-width: 980px) {
  .fdc-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fdc-schedule__summary,
  .fdc-hour-group__toggle {
    align-items: flex-start;
    flex-direction: column;
  }
  .fdc-schedule-tabs {
    border-radius: 14px;
  }
  .fdc-schedule-tab {
    flex: 0 0 auto;
  }
  .fdc-class-grid {
    grid-template-columns: 1fr;
  }
}

/* FDC 2.5.3 - cierre visual del shortcode de horarios */
.fdc-schedule--public {
  max-width: min(1240px, calc(100vw - 32px));
  margin: 26px auto 34px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .16);
}

.fdc-schedule--public .fdc-schedule__summary {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  background: #fff;
}

.fdc-schedule--public .fdc-schedule__summary strong {
  font-size: clamp(20px, 2.1vw, 30px);
}

.fdc-schedule--public .fdc-schedule-tabs {
  gap: 8px;
  padding: 7px;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #eef2f7;
}

.fdc-schedule-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fdc-schedule-tab small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  color: inherit;
  font-size: 11px;
  font-weight: 950;
}

.fdc-schedule-tab.is-empty {
  opacity: .46;
}

.fdc-schedule-tab.is-active small {
  background: rgba(255, 255, 255, .18);
}

.fdc-schedule--public .fdc-hour-group {
  margin-bottom: 18px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.fdc-hour-group__header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.fdc-hour-group__toggle {
  flex: 1 1 auto;
  min-width: 0;
}

.fdc-hour-group__day {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.fdc-hour-group__count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155 !important;
}

.fdc-schedule--public .fdc-hour-group__toggle {
  padding: 16px 18px;
  border-bottom: 0;
}

.fdc-schedule--public .fdc-hour-group__body {
  padding: 18px;
}

.fdc-class-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fdc-schedule--public .fdc-class-card {
  min-height: 142px;
  padding: 18px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 12px 24px rgba(15,23,42,.10);
}

.fdc-schedule--public .fdc-class-card__title {
  min-height: 38px;
  font-size: 16px;
}

.fdc-schedule--public .fdc-class-card__line {
  border-top-color: rgba(0, 0, 0, .42);
}

.fdc-schedule--public .fdc-class-card__price {
  font-size: 17px;
}

@media (min-width: 1300px) {
  .fdc-schedule--public .fdc-class-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .fdc-schedule--public {
    max-width: calc(100vw - 18px);
    padding: 10px;
    border-radius: 18px;
  }
  .fdc-schedule--public .fdc-schedule-tabs {
    border-radius: 16px;
  }
  .fdc-schedule-tab small {
    display: none;
  }
  .fdc-hour-group__header {
    display: block;
  }
}

/* FDC 2.5.4 - shortcode público más limpio y con tabs robustos */
.fdc-schedule-panel[hidden] {
  display: none !important;
}

.fdc-schedule--public {
  max-width: min(1160px, calc(100vw - 34px));
  margin: 30px auto 42px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.fdc-schedule--public .fdc-schedule__summary {
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}

.fdc-schedule--public .fdc-schedule-tabs {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  border-radius: 18px;
}

.fdc-schedule--public .fdc-schedule-tab {
  flex: initial;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
}

.fdc-schedule--public .fdc-hour-group {
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .055);
}

.fdc-schedule--public .fdc-hour-group__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.fdc-schedule--public .fdc-hour-group__toggle {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.fdc-schedule--public .fdc-hour-group__chevron {
  justify-self: end;
}

.fdc-schedule--public .fdc-class-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 16px;
}

.fdc-schedule--public .fdc-class-card {
  min-height: 154px;
  max-width: 100%;
}

@media (min-width: 1280px) {
  .fdc-schedule--public .fdc-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fdc-schedule--public {
    max-width: calc(100vw - 18px);
    padding: 10px;
  }
  .fdc-schedule--public .fdc-schedule-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fdc-schedule--public .fdc-hour-group__toggle {
    grid-template-columns: 1fr auto;
  }
}

/* FDC 2.5.5 - shortcode configurable */
.fdc-schedule.is-compact .fdc-class-card {
  min-height: auto;
  padding: 13px 14px;
}

.fdc-schedule.is-compact .fdc-class-card__line,
.fdc-schedule.is-compact .fdc-class-card__price {
  margin-top: 6px;
  padding-top: 6px;
}

.fdc-hour-group__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.fdc-hour-group.is-collapsed .fdc-hour-group__icon {
  background: #111827;
  color: #fff;
}


/* FDC 2.5.8 - Vistas shortcode compacta/cards reales */
.fdc-schedule-view-compacta .fdc-schedule-tabs,
.fdc-schedule-view-cards .fdc-schedule-tabs {
  display: none;
}

.fdc-schedule-view-compacta .fdc-schedule-panel,
.fdc-schedule-view-cards .fdc-schedule-panel {
  display: block;
}

.fdc-schedule-view-compacta .fdc-hour-group {
  margin-bottom: 10px;
  border-radius: 16px;
}

.fdc-schedule-view-compacta .fdc-hour-group__toggle {
  min-height: 42px;
  padding: 10px 13px;
  grid-template-columns: auto auto 1fr auto;
}

.fdc-schedule-view-compacta .fdc-hour-group__toggle strong {
  font-size: 14px;
}

.fdc-schedule-view-compacta .fdc-hour-group__body {
  padding: 11px 12px 13px;
}

.fdc-schedule-view-compacta .fdc-class-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.fdc-schedule-view-compacta .fdc-class-card {
  min-height: auto;
  padding: 11px 12px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.fdc-schedule-view-compacta .fdc-class-card__title {
  min-height: auto;
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.25;
}

.fdc-schedule-view-compacta .fdc-class-card__line {
  margin-top: 5px;
  padding-top: 5px;
  font-size: 11px;
}

.fdc-schedule-view-compacta .fdc-class-card__price {
  margin-top: 6px;
  font-size: 12px;
}

.fdc-schedule-view-cards .fdc-schedule-panel {
  margin-bottom: 18px;
}

.fdc-schedule-view-cards .fdc-hour-group {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.fdc-schedule-view-cards .fdc-hour-group__header {
  margin-bottom: 10px;
  border: 0;
}

.fdc-schedule-view-cards .fdc-hour-group__toggle {
  border-radius: 999px;
  background: #f1f5f9;
}

.fdc-schedule-view-cards .fdc-hour-group__body {
  padding: 0;
}

@media (min-width: 1200px) {
  .fdc-schedule-view-compacta .fdc-class-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* FDC 2.5.9 - Shortcode con filtros públicos y vistas sin tabs corregidas */
.fdc-schedule-collection {
  width: 100%;
}

.fdc-schedule-filters {
  max-width: min(1160px, calc(100vw - 34px));
  margin: 24px auto 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}

.fdc-schedule-filters__head {
  margin-bottom: 12px;
}

.fdc-schedule-filters__head strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.15;
}

.fdc-schedule-filters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.fdc-schedule-filters label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.fdc-schedule-filters label span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.fdc-schedule-filters select,
.fdc-schedule-filters button {
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 13px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.fdc-schedule-filters select {
  width: 100%;
  padding: 0 12px;
}

.fdc-schedule-filters button {
  padding: 0 14px;
}

.fdc-schedule-filter-empty {
  max-width: min(1160px, calc(100vw - 34px));
  margin: 18px auto;
}

.fdc-schedule-view-compacta .fdc-schedule-panel[hidden],
.fdc-schedule-view-cards .fdc-schedule-panel[hidden] {
  display: none !important;
}

.fdc-schedule-view-cards .fdc-schedule-panels {
  display: grid;
  gap: 18px;
}

.fdc-schedule-view-cards .fdc-hour-group__toggle {
  grid-template-columns: auto auto 1fr auto;
}

.fdc-schedule-view-cards .fdc-class-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.fdc-class-card[hidden],
.fdc-hour-group[hidden],
.fdc-schedule[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .fdc-schedule-filters {
    max-width: calc(100vw - 18px);
    padding: 12px;
  }
  .fdc-schedule-filters__grid {
    grid-template-columns: 1fr;
  }
}


/* FDC 2.5.10 - Shortcode público robusto */
.fdc-schedule-tab:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.fdc-schedule-tab:disabled small {
  opacity: .65;
}

.fdc-schedule-view-compacta .fdc-schedule-panel.is-active,
.fdc-schedule-view-cards .fdc-schedule-panel.is-active {
  display: block;
}

.fdc-schedule-view-compacta .fdc-schedule-panel:not([hidden]) + .fdc-schedule-panel:not([hidden]),
.fdc-schedule-view-cards .fdc-schedule-panel:not([hidden]) + .fdc-schedule-panel:not([hidden]) {
  margin-top: 10px;
}

.fdc-schedule-view-compacta .fdc-hour-group__count,
.fdc-schedule-view-cards .fdc-hour-group__count {
  white-space: nowrap;
}

.fdc-schedule-collection > .fdc-schedule + .fdc-schedule {
  margin-top: 28px;
}

.fdc-schedule-filters select:disabled {
  opacity: .75;
  cursor: not-allowed;
  background: #f8fafc;
}

/* FDC 2.5.11 - filtros públicos inteligentes */
.fdc-schedule-filters select option:disabled {
  color: #94a3b8;
}

.fdc-schedule-filter-empty {
  max-width: min(1180px, calc(100vw - 40px));
  margin: 18px auto 0;
  padding: 20px 24px;
  border-style: dashed;
  background: #f8fafc;
  color: #475569;
  font-size: 15px;
}

.fdc-schedule-collection .fdc-schedule[hidden],
.fdc-schedule-collection .fdc-hour-group[hidden],
.fdc-schedule-collection .fdc-schedule-panel[hidden],
.fdc-schedule-collection .fdc-class-card[hidden] {
  display: none !important;
}

/* FDC 2.5.12 - Temas light/dark y acabado premium del shortcode público */
.fdc-schedule-collection,
.fdc-schedule {
  --fdc-ui-text: #0f172a;
  --fdc-ui-muted: #64748b;
  --fdc-ui-soft: #f1f5f9;
  --fdc-ui-surface: #ffffff;
  --fdc-ui-shell: #f8fafc;
  --fdc-ui-border: rgba(15, 23, 42, .10);
  --fdc-ui-shadow: 0 22px 56px rgba(15, 23, 42, .14);
  --fdc-ui-accent: #111827;
  --fdc-ui-accent-text: #ffffff;
}

.fdc-schedule-theme-dark {
  --fdc-ui-text: #f8fafc;
  --fdc-ui-muted: #cbd5e1;
  --fdc-ui-soft: rgba(255, 255, 255, .08);
  --fdc-ui-surface: #101827;
  --fdc-ui-shell: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .96));
  --fdc-ui-border: rgba(255, 255, 255, .14);
  --fdc-ui-shadow: 0 28px 70px rgba(0, 0, 0, .42);
  --fdc-ui-accent: #ffffff;
  --fdc-ui-accent-text: #0f172a;
}

.fdc-schedule-theme-auto {
  --fdc-ui-text: #0f172a;
  --fdc-ui-muted: #64748b;
  --fdc-ui-soft: #f1f5f9;
  --fdc-ui-surface: rgba(255, 255, 255, .96);
  --fdc-ui-shell: rgba(248, 250, 252, .96);
  --fdc-ui-border: rgba(15, 23, 42, .10);
}

.fdc-schedule-width-narrow.fdc-schedule--public,
.fdc-schedule-width-narrow .fdc-schedule--public,
.fdc-schedule-width-narrow .fdc-schedule-filters,
.fdc-schedule-width-narrow .fdc-schedule-filter-empty {
  max-width: min(860px, calc(100vw - 34px));
}

.fdc-schedule-width-normal.fdc-schedule--public,
.fdc-schedule-width-normal .fdc-schedule--public,
.fdc-schedule-width-normal .fdc-schedule-filters,
.fdc-schedule-width-normal .fdc-schedule-filter-empty {
  max-width: min(1080px, calc(100vw - 34px));
}

.fdc-schedule-width-wide.fdc-schedule--public,
.fdc-schedule-width-wide .fdc-schedule--public,
.fdc-schedule-width-wide .fdc-schedule-filters,
.fdc-schedule-width-wide .fdc-schedule-filter-empty {
  max-width: min(1320px, calc(100vw - 34px));
}

.fdc-schedule-width-full.fdc-schedule--public,
.fdc-schedule-width-full .fdc-schedule--public,
.fdc-schedule-width-full .fdc-schedule-filters,
.fdc-schedule-width-full .fdc-schedule-filter-empty {
  max-width: calc(100vw - 34px);
}

.fdc-schedule--public {
  color: var(--fdc-ui-text);
  background: var(--fdc-ui-shell);
  border-color: var(--fdc-ui-border);
  box-shadow: var(--fdc-ui-shadow);
}

.fdc-schedule--public .fdc-schedule__summary,
.fdc-schedule-filters {
  position: relative;
  overflow: hidden;
  color: var(--fdc-ui-text);
  border-color: var(--fdc-ui-border);
  background: var(--fdc-ui-surface);
  box-shadow: var(--fdc-ui-shadow);
}

.fdc-schedule-filters::before,
.fdc-schedule--public .fdc-schedule__summary::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .18), transparent 34%);
  opacity: .45;
}

.fdc-schedule__summary > *,
.fdc-schedule-filters > * {
  position: relative;
}

.fdc-schedule__eyebrow,
.fdc-schedule-filters label span,
.fdc-schedule-filters__head span {
  color: var(--fdc-ui-muted);
}

.fdc-schedule-filters__head strong,
.fdc-schedule--public .fdc-schedule__summary strong {
  color: var(--fdc-ui-text);
}

.fdc-schedule--public .fdc-schedule__summary > span,
.fdc-schedule-tab small,
.fdc-hour-group__count {
  background: var(--fdc-ui-soft);
  color: var(--fdc-ui-text) !important;
}

.fdc-schedule-tabs {
  border-color: var(--fdc-ui-border) !important;
  background: var(--fdc-ui-soft) !important;
}

.fdc-schedule-tab {
  color: var(--fdc-ui-muted);
}

.fdc-schedule-tab:hover {
  color: var(--fdc-ui-text);
}

.fdc-schedule-tab.is-active {
  background: var(--fdc-ui-accent);
  color: var(--fdc-ui-accent-text);
}

.fdc-schedule--public .fdc-hour-group {
  border-color: var(--fdc-ui-border);
  background: var(--fdc-ui-surface);
}

.fdc-schedule--public .fdc-hour-group__toggle {
  color: var(--fdc-ui-text);
  background: transparent;
}

.fdc-hour-group__day {
  color: var(--fdc-ui-muted);
}

.fdc-hour-group__icon {
  border-color: var(--fdc-ui-border);
  background: var(--fdc-ui-surface);
  color: var(--fdc-ui-text);
}

.fdc-hour-group.is-collapsed .fdc-hour-group__icon {
  background: var(--fdc-ui-accent);
  color: var(--fdc-ui-accent-text);
}

.fdc-schedule-filters select,
.fdc-schedule-filters button {
  border-color: var(--fdc-ui-border);
  background: var(--fdc-ui-surface);
  color: var(--fdc-ui-text);
}

.fdc-schedule-filters button {
  background: var(--fdc-ui-accent);
  color: var(--fdc-ui-accent-text);
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease;
}

.fdc-schedule-filters button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

.fdc-schedule-theme-dark .fdc-schedule-filters select,
.fdc-schedule-theme-dark .fdc-schedule-filters button {
  color-scheme: dark;
}

.fdc-schedule-theme-dark .fdc-schedule-filters select:disabled {
  background: rgba(255, 255, 255, .06);
}

.fdc-schedule-filter-empty {
  border-color: var(--fdc-ui-border);
  background: var(--fdc-ui-surface);
  color: var(--fdc-ui-muted);
}

.fdc-schedule-view-compacta.fdc-schedule--public {
  padding: 14px;
}

.fdc-schedule-view-compacta .fdc-hour-group {
  background: var(--fdc-ui-surface);
}

.fdc-schedule-view-compacta .fdc-hour-group__toggle {
  border-radius: 16px 16px 0 0;
}

.fdc-schedule-view-compacta .fdc-class-card,
.fdc-schedule-view-cards .fdc-class-card {
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.fdc-schedule-view-compacta .fdc-class-card:hover,
.fdc-schedule-view-cards .fdc-class-card:hover {
  transform: translateY(-2px);
  filter: saturate(1.03);
}

.fdc-schedule-theme-dark .fdc-schedule-view-cards .fdc-hour-group__toggle,
.fdc-schedule-theme-dark.fdc-schedule-view-cards .fdc-hour-group__toggle {
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 760px) {
  .fdc-schedule-width-narrow.fdc-schedule--public,
  .fdc-schedule-width-normal.fdc-schedule--public,
  .fdc-schedule-width-wide.fdc-schedule--public,
  .fdc-schedule-width-full.fdc-schedule--public,
  .fdc-schedule-width-narrow .fdc-schedule--public,
  .fdc-schedule-width-normal .fdc-schedule--public,
  .fdc-schedule-width-wide .fdc-schedule--public,
  .fdc-schedule-width-full .fdc-schedule--public,
  .fdc-schedule-width-narrow .fdc-schedule-filters,
  .fdc-schedule-width-normal .fdc-schedule-filters,
  .fdc-schedule-width-wide .fdc-schedule-filters,
  .fdc-schedule-width-full .fdc-schedule-filters {
    max-width: calc(100vw - 18px);
  }

  .fdc-schedule-filters__head strong {
    font-size: 16px;
  }
}


/* FDC 2.5.13 - compacto = acordeones colapsados por defecto */
.fdc-schedule.is-compact .fdc-hour-group.is-collapsed .fdc-hour-group__header {
  border-bottom: 0;
}

.fdc-schedule.is-compact .fdc-hour-group.is-collapsed {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.fdc-schedule-theme-dark.fdc-schedule.is-compact .fdc-hour-group.is-collapsed,
.fdc-schedule-theme-dark .fdc-schedule.is-compact .fdc-hour-group.is-collapsed {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}


/* FDC 2.5.14 - compacto respeta la vista elegida */
.fdc-schedule.is-compact:not(.fdc-schedule-view-compacta):not(.fdc-schedule-view-cards) .fdc-schedule-tabs {
  display: grid;
}

.fdc-schedule.is-compact:not(.fdc-schedule-view-compacta):not(.fdc-schedule-view-cards) .fdc-schedule-panel[hidden] {
  display: none !important;
}

.fdc-schedule.is-compact:not(.fdc-schedule-view-compacta):not(.fdc-schedule-view-cards) .fdc-schedule-panel.is-active {
  display: block;
}

.fdc-schedule.is-compact:not(.fdc-schedule-view-compacta):not(.fdc-schedule-view-cards) .fdc-hour-group.is-collapsed .fdc-hour-group__body {
  display: none;
}


/* FDC 2.5.15 - Responsive fino del shortcode público */
.fdc-schedule--public .fdc-hour-group__toggle {
  display: grid !important;
  grid-template-columns: auto auto max-content minmax(18px, 1fr) 30px;
  align-items: center !important;
  gap: 8px 10px;
  flex-direction: initial !important;
}

.fdc-schedule--public .fdc-hour-group__day {
  grid-column: 1;
  white-space: nowrap;
}

.fdc-schedule--public .fdc-hour-group__toggle strong {
  grid-column: 2;
  white-space: nowrap;
}

.fdc-schedule--public .fdc-hour-group__count {
  grid-column: 3;
  width: auto !important;
  max-width: max-content;
  min-width: 0;
  flex: 0 0 auto !important;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

.fdc-schedule--public .fdc-hour-group__icon {
  grid-column: 5;
  justify-self: end;
  flex: 0 0 28px !important;
}

.fdc-schedule-theme-dark .fdc-hour-group__count {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.fdc-schedule--public .fdc-schedule__summary > span {
  width: auto;
  max-width: max-content;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .fdc-schedule-filters,
  .fdc-schedule--public {
    border-radius: 22px;
  }

  .fdc-schedule-filters {
    padding: 16px;
  }

  .fdc-schedule-filters__grid {
    gap: 12px;
  }

  .fdc-schedule--public {
    padding: 12px;
  }

  .fdc-schedule--public .fdc-schedule__summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 16px;
  }

  .fdc-schedule--public .fdc-schedule__summary > div {
    min-width: 0;
  }

  .fdc-schedule--public .fdc-schedule__summary > span {
    justify-self: end;
    align-self: center;
  }

  .fdc-schedule-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 8px;
    border-radius: 20px;
  }

  .fdc-schedule-tab {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    flex: initial !important;
    padding: 9px 10px;
    font-size: 12px;
    text-align: center;
  }

  .fdc-schedule-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .fdc-hour-group {
    margin-bottom: 10px;
    border-radius: 18px;
  }

  .fdc-schedule--public .fdc-hour-group__toggle {
    grid-template-columns: 1fr auto 30px;
    grid-template-areas:
      "day hour icon"
      "count count icon";
    padding: 13px 14px;
    gap: 8px 10px;
  }

  .fdc-schedule--public .fdc-hour-group__day {
    grid-area: day;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fdc-schedule--public .fdc-hour-group__toggle strong {
    grid-area: hour;
    justify-self: end;
    font-size: 15px;
  }

  .fdc-schedule--public .fdc-hour-group__count {
    grid-area: count;
    justify-self: start;
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
  }

  .fdc-schedule--public .fdc-hour-group__icon {
    grid-area: icon;
    align-self: center;
    justify-self: end;
    width: 28px;
    height: 28px;
  }

  .fdc-schedule--public .fdc-hour-group__body {
    padding: 12px;
  }

  .fdc-schedule--public .fdc-class-card {
    min-height: 0;
    padding: 14px;
    border-radius: 15px;
  }

  .fdc-schedule--public .fdc-class-card__title {
    min-height: auto;
    font-size: 13px;
    line-height: 1.25;
  }
}

@media (max-width: 460px) {
  .fdc-schedule-filters,
  .fdc-schedule--public {
    max-width: calc(100vw - 28px) !important;
  }

  .fdc-schedule--public .fdc-schedule__summary {
    grid-template-columns: 1fr;
  }

  .fdc-schedule--public .fdc-schedule__summary > span {
    justify-self: start;
  }

  .fdc-schedule-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fdc-schedule-tab {
    min-height: 40px;
  }

  .fdc-schedule--public .fdc-hour-group__toggle {
    grid-template-columns: 1fr auto 28px;
    padding: 12px;
  }

  .fdc-schedule--public .fdc-hour-group__toggle strong {
    font-size: 14px;
  }
}


/* FDC 2.5.16 - Responsive compacto real para filtros y días */
@media (max-width: 760px) {
  .fdc-schedule-filters {
    margin: 16px auto 14px;
    padding: 12px;
    border-radius: 18px;
  }

  .fdc-schedule-filters__head {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
  }

  .fdc-schedule-filters__head span {
    font-size: 9px;
    letter-spacing: .13em;
  }

  .fdc-schedule-filters__head strong {
    font-size: 15px !important;
    line-height: 1.05;
  }

  .fdc-schedule-filters__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
  }

  .fdc-schedule-filters label {
    gap: 4px;
    min-width: 0;
  }

  .fdc-schedule-filters label span {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .fdc-schedule-filters select,
  .fdc-schedule-filters button {
    min-height: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.05;
  }

  .fdc-schedule-filters select {
    padding: 0 24px 0 9px;
    text-overflow: ellipsis;
  }

  .fdc-schedule-filters button {
    grid-column: 1 / -1;
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
  }

  .fdc-schedule-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 6px;
    margin-bottom: 10px;
    border-radius: 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .fdc-schedule-tabs::-webkit-scrollbar {
    display: none;
  }

  .fdc-schedule-tab,
  .fdc-schedule-tab:last-child:nth-child(odd) {
    grid-column: auto;
    flex: 0 0 auto !important;
    width: auto;
    min-width: 86px;
    max-width: 112px;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    text-align: center;
    scroll-snap-align: start;
  }

  .fdc-schedule-tab small {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    font-size: 10px;
    line-height: 18px;
  }

  .fdc-schedule--public .fdc-schedule__summary {
    padding: 13px 14px;
    border-radius: 17px;
  }

  .fdc-schedule--public .fdc-schedule__summary strong {
    font-size: 17px;
  }

  .fdc-schedule--public .fdc-schedule__summary > span {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .fdc-schedule-filters__grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .fdc-schedule-filters label {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
  }

  .fdc-schedule-filters label span {
    font-size: 9px;
  }

  .fdc-schedule-filters select {
    min-width: 0;
  }

  .fdc-schedule-filters button {
    grid-column: 1 / -1;
  }

  .fdc-schedule-tab,
  .fdc-schedule-tab:last-child:nth-child(odd) {
    min-width: 82px;
    max-width: 104px;
    min-height: 32px;
    padding: 7px 10px;
  }
}

@media (max-width: 390px) {
  .fdc-schedule-filters {
    padding: 10px;
  }

  .fdc-schedule-filters select,
  .fdc-schedule-filters button {
    font-size: 10px;
  }

  .fdc-schedule-tab,
  .fdc-schedule-tab:last-child:nth-child(odd) {
    min-width: 76px;
    max-width: 94px;
    font-size: 10px;
  }
}
