/* ===============================
   JUMPTONE - PÁGINA HORARIOS
   Compatible con Leosoftec Custom Pages
================================ */

.jt-schedules-page {
  --jt-black: #050505;
  --jt-bg: #080b10;
  --jt-bg-soft: #0b0f16;
  --jt-panel: #141922;
  --jt-panel-2: #171d27;
  --jt-panel-3: #1b212c;
  --jt-border: rgba(255, 255, 255, 0.1);
  --jt-border-strong: rgba(215, 191, 120, 0.34);
  --jt-white: #f5f7fb;
  --jt-text: #e8ecf3;
  --jt-muted: #aeb4c0;
  --jt-muted-2: #7d8594;
  --jt-gold: #d7bf78;
  --jt-gold-soft: #f0dc9c;

  background: var(--jt-black);
  color: var(--jt-text);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.jt-schedules-page,
.jt-schedules-page * {
  box-sizing: border-box;
}

.jt-schedules-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Limpieza del contenedor del tema */
body,
#page.site,
.container.content-wrapper,
.container.content-wrapper .main-row,
#primary,
.site-main {
  background: #050505 !important;
}

.container.content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.container.content-wrapper .main-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.content-wrapper,
#primary,
.site-main,
.main-row {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* HERO */

.jt-schedules-hero {
  position: relative;
  padding: 96px 0 76px;
  background:
    radial-gradient(circle at 14% 18%, rgba(215, 191, 120, 0.12), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(215, 191, 120, 0.08), transparent 30%),
    var(--jt-bg);
  border-bottom: 1px solid rgba(215, 191, 120, 0.16);
}

.jt-schedules-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.16;
  pointer-events: none;
}

.jt-schedules-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
}

.jt-schedules-label,
.jt-schedules-header span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--jt-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.jt-schedules-label::before,
.jt-schedules-header span::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--jt-gold);
}

.jt-schedules-label-center {
  justify-content: center;
}

.jt-schedules-label-center::before {
  display: none;
}

.jt-schedules-hero h1 {
  max-width: 860px;
  margin: 22px 0 22px;
  color: var(--jt-white) !important;
  font-size: clamp(46px, 7vw, 90px);
  line-height: 0.96;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.jt-schedules-hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--jt-gold);
  text-stroke: 1.2px var(--jt-gold);
}

.jt-schedules-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--jt-muted);
  font-size: 18px;
  line-height: 1.75;
}

.jt-schedules-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.jt-schedules-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: 0.22s ease;
}

.jt-schedules-btn-primary {
  background: var(--jt-white);
  color: #050505 !important;
  border: 1px solid rgba(255,255,255,0.14);
}

.jt-schedules-btn-outline {
  background: transparent;
  color: var(--jt-white) !important;
  border: 1px solid var(--jt-border-strong);
}

.jt-schedules-btn:hover {
  transform: translateY(-2px);
}

.jt-schedules-btn-primary:hover {
  background: var(--jt-gold);
}

.jt-schedules-hero-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--jt-border-strong);
  background: rgba(20, 25, 34, 0.76);
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
}

.jt-schedules-hero-card > div {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--jt-border);
  background: rgba(255,255,255,0.025);
}

.jt-schedules-hero-card > div + div {
  margin-top: 10px;
}

.jt-schedules-hero-card strong {
  display: block;
  color: var(--jt-gold);
  font-size: 22px;
  font-weight: 900;
}

.jt-schedules-hero-card span {
  display: block;
  margin-top: 6px;
  color: var(--jt-muted);
  font-size: 13px;
  font-weight: 800;
}

/* SECTION */

.jt-schedules-section {
  padding: 76px 0 96px;
  background: var(--jt-black);
}

.jt-schedules-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.jt-schedules-header h2 {
  margin: 14px 0 0;
  color: var(--jt-white) !important;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.jt-schedules-header p {
  margin: 0;
  color: var(--jt-muted);
  line-height: 1.75;
}

/* SEARCH */

.jt-schedules-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
  background: var(--jt-panel);
  border: 1px solid var(--jt-border);
}

.jt-schedules-search-wrap label {
  display: block;
  margin-bottom: 10px;
  color: var(--jt-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jt-schedules-search-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--jt-border);
  background: #080c12;
  color: var(--jt-white);
  outline: none;
  font-weight: 800;
}

.jt-schedules-search-wrap input:focus {
  border-color: var(--jt-border-strong);
}

.jt-schedules-filter-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--jt-muted);
  line-height: 1.55;
}

.jt-schedules-filter-note span {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--jt-gold);
  box-shadow: 0 0 0 7px rgba(215,191,120,0.08);
  flex: 0 0 9px;
}

.jt-schedules-filter-note p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

/* SHORTCODE HORARIOS */

.jt-schedules-shortcode-wrap {
  position: relative;
}

.jt-schedules-page .lgb-schedule-shortcode,
.jt-schedules-page .lgb-schedule-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  overflow: visible !important;
  width: 100% !important;
}

.jt-schedules-page .lgb-schedule-day-group {
  width: 100% !important;
  min-width: 0 !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background: var(--jt-panel) !important;
  border: 1px solid var(--jt-border) !important;
  box-shadow: none !important;
}

.jt-schedules-page .lgb-schedule-day-heading {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 8px 14px !important;
  margin-bottom: 14px !important;
  border-radius: 999px !important;
  background: rgba(215, 191, 120, 0.10) !important;
  border: 1px solid rgba(215, 191, 120, 0.35) !important;
  color: var(--jt-gold) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.jt-schedules-page .lgb-schedule-day-items {
  display: grid !important;
  gap: 10px !important;
}

.jt-schedules-page .lgb-schedule-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px 12px !important;
  align-items: center !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: var(--jt-panel-3) !important;
  border: 1px solid var(--jt-border) !important;
  color: var(--jt-text) !important;
}

.jt-schedules-page .lgb-schedule-class {
  color: var(--jt-white) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.jt-schedules-page .lgb-schedule-time {
  color: var(--jt-white) !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.jt-schedules-page .lgb-schedule-capacity,
.jt-schedules-page .lgb-schedule-instructor {
  color: var(--jt-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.jt-schedules-page .lgb-schedule-capacity {
  grid-column: 1 / 2;
}

.jt-schedules-page .lgb-schedule-instructor {
  grid-column: 1 / -1;
  padding-top: 8px !important;
  border-top: 1px dashed rgba(255,255,255,0.10) !important;
}

.jt-schedules-no-results::after {
  content: "No se encontraron horarios con esa búsqueda.";
  display: block;
  padding: 22px;
  border-radius: 18px;
  background: var(--jt-panel);
  border: 1px solid var(--jt-border);
  color: var(--jt-muted);
  font-weight: 800;
}

.jt-schedules-empty {
  padding: 30px;
  border-radius: 24px;
  background: var(--jt-panel);
  border: 1px solid var(--jt-border-strong);
}

.jt-schedules-empty h3 {
  color: var(--jt-white) !important;
  margin: 0 0 10px;
}

.jt-schedules-empty p {
  color: var(--jt-muted);
  margin: 0;
}

/* CTA */

.jt-schedules-cta {
  padding: 80px 0 96px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(215,191,120,0.10), transparent 32%),
    var(--jt-bg-soft);
  border-top: 1px solid rgba(215,191,120,0.16);
}

.jt-schedules-cta h2 {
  margin: 18px auto 14px;
  color: var(--jt-white) !important;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.jt-schedules-cta p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--jt-muted);
  line-height: 1.75;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .jt-schedules-hero-grid,
  .jt-schedules-header,
  .jt-schedules-filter-panel {
    grid-template-columns: 1fr;
  }

  .jt-schedules-hero-card {
    max-width: 560px;
  }

  .jt-schedules-page .lgb-schedule-shortcode,
  .jt-schedules-page .lgb-schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .jt-schedules-container {
    width: min(100% - 28px, 1180px);
  }

  .jt-schedules-hero {
    padding: 60px 0 54px;
  }

  .jt-schedules-hero h1 {
    font-size: clamp(40px, 13vw, 62px);
    letter-spacing: -1.7px;
  }

  .jt-schedules-hero p,
  .jt-schedules-header p,
  .jt-schedules-cta p {
    font-size: 15px;
  }

  .jt-schedules-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jt-schedules-btn {
    width: 100%;
  }

  .jt-schedules-section {
    padding: 54px 0 72px;
  }

  .jt-schedules-header {
    gap: 18px;
  }

  .jt-schedules-header h2 {
    font-size: clamp(34px, 12vw, 52px);
    letter-spacing: -1.4px;
  }

  .jt-schedules-filter-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .jt-schedules-page .lgb-schedule-shortcode,
  .jt-schedules-page .lgb-schedule-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .jt-schedules-page .lgb-schedule-day-group {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .jt-schedules-page .lgb-schedule-row {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }

  .jt-schedules-page .lgb-schedule-time {
    justify-self: start !important;
  }

  .jt-schedules-cta {
    padding: 64px 0 80px;
  }
}

/* ==========================================================
   FIX FINAL - HORARIOS JUMPTONE
   Mantener esta sección al final del CSS.
========================================================== */

/* Buscador */
.jt-schedules-page .jt-schedules-filter-panel {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.jt-schedules-page .jt-schedules-search-wrap input,
.jt-schedules-page input#jt-schedules-search[type="search"] {
  width: 100% !important;
  min-height: 54px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: #080c12 !important;
  color: #f5f7fb !important;
  box-shadow: none !important;
  outline: none !important;
}

.jt-schedules-page .jt-schedules-search-wrap input::placeholder {
  color: rgba(245,247,251,.46) !important;
}

/* Contenedor del shortcode */
.jt-schedules-page .jt-schedules-shortcode-wrap {
  width: 100% !important;
  overflow: visible !important;
}

/* Forzar grilla semanal real */
.jt-schedules-page .lgb-schedule-shortcode,
.jt-schedules-page .lgb-schedule-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: initial !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  scroll-snap-type: none !important;
}

/* Columna por día */
.jt-schedules-page .lgb-schedule-day-group {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018)),
    #141922 !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 22px 50px rgba(0,0,0,.18) !important;
  overflow: hidden !important;
  scroll-snap-align: unset !important;
}

.jt-schedules-page .lgb-schedule-day-heading {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 9px 16px !important;
  margin: 0 0 16px !important;
  border-radius: 999px !important;
  background: rgba(215,191,120,.10) !important;
  border: 1px solid rgba(215,191,120,.40) !important;
  color: #d7bf78 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

/* Lista interna */
.jt-schedules-page .lgb-schedule-day-items {
  display: grid !important;
  gap: 12px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* Card de cada horario */
.jt-schedules-page .lgb-schedule-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 15px !important;
  border-radius: 18px !important;
  background: #1b212c !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #e8ecf3 !important;
  box-shadow: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease !important;
}

.jt-schedules-page .lgb-schedule-row:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(215,191,120,.36) !important;
  background: #202735 !important;
}

.jt-schedules-page .lgb-schedule-class {
  display: block !important;
  min-width: 0 !important;
  color: #f5f7fb !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

.jt-schedules-page .lgb-schedule-time {
  display: inline-flex !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(215,191,120,.10) !important;
  border: 1px solid rgba(215,191,120,.22) !important;
  color: #f0dc9c !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.jt-schedules-page .lgb-schedule-capacity {
  display: block !important;
  color: #aeb4c0 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.jt-schedules-page .lgb-schedule-instructor {
  display: block !important;
  margin-top: 2px !important;
  padding-top: 9px !important;
  border-top: 1px dashed rgba(255,255,255,.10) !important;
  color: #e8ecf3 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

@media (max-width: 1180px) {
  .jt-schedules-page .lgb-schedule-shortcode,
  .jt-schedules-page .lgb-schedule-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .jt-schedules-page .jt-schedules-filter-panel {
    grid-template-columns: 1fr !important;
  }

  .jt-schedules-page .lgb-schedule-shortcode,
  .jt-schedules-page .lgb-schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 620px) {
  .jt-schedules-page .lgb-schedule-shortcode,
  .jt-schedules-page .lgb-schedule-list {
    grid-template-columns: 1fr !important;
  }

  .jt-schedules-page .lgb-schedule-day-group {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .jt-schedules-page .lgb-schedule-row {
    padding: 14px !important;
    border-radius: 16px !important;
  }
}
