/* =========================================================
   GLOW Calendar — calendario/booking reutilizable
   (landing pública + panel de miembro). Estética de marca:
   negro, dorado, crema. Tira de días + agenda del día.
   ========================================================= */
.glowcal {
  width: 100%;
  max-width: 820px;
}

/* ---- Tira de días (scroll horizontal) ---- */
.glowcal-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.glowcal-days::-webkit-scrollbar { display: none; }

.glowcal-day {
  flex: 0 0 auto;
  width: 58px;
  padding: 10px 0 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--gold-line-soft);
  border-radius: 13px;
  color: var(--cream-mute);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  font-family: var(--sans);
}
.glowcal-day:hover { border-color: var(--gold-line); color: var(--cream); }
.glowcal-day .gc-wd {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.glowcal-day .gc-num {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--serif);
  line-height: 1;
}
.glowcal-day .gc-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  bottom: 6px;
}
.glowcal-day.is-active {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  color: #0a0805;
}
.glowcal-day.is-active .gc-dot { background: #0a0805; opacity: 0.5; }

/* ---- Agenda del día ---- */
.glowcal-date {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold-soft);
  text-transform: capitalize;
  margin: 8px 0 14px;
  letter-spacing: 0.01em;
}
.glowcal-agenda {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.glowcal-empty {
  color: var(--cream-mute);
  font-size: 14px;
  padding: 18px 4px;
  font-style: italic;
}

/* ---- Tarjeta de clase ---- */
.gc-class {
  --disc: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 16px;
  background: rgba(20, 15, 10, 0.5);
  border: 1px solid var(--gold-line-soft);
  border-left: 3px solid var(--disc);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.gc-class:hover { border-color: var(--gold-line); border-left-color: var(--disc); }

.gc-time {
  flex: 0 0 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--mono);
  line-height: 1.3;
}
.gc-time .gc-start { font-size: 15px; font-weight: 600; color: var(--gold-soft); }
.gc-time .gc-end { font-size: 11px; color: var(--cream-dim); }

.gc-info { flex: 1 1 auto; min-width: 0; }
.gc-info h4 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
  line-height: 1.25;
}
.gc-meta {
  font-size: 12.5px;
  color: var(--cream-mute);
  margin: 3px 0 0;
  line-height: 1.4;
}
.gc-cap { font-size: 12px; color: var(--cream-dim); margin: 4px 0 0; }
.gc-cap.is-full { color: #d98a8a; }

.gc-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 150, 63, 0.16);
  color: var(--glow-light);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gc-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--glow-light);
  display: inline-block;
  animation: gcPulse 1.5s ease-in-out infinite;
}
@keyframes gcPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.gc-action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.gc-action .gc-cta {
  display: inline-block;
  background: var(--gold);
  color: #0a0805;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter 0.2s var(--ease);
}
.gc-action .gc-cta:hover { filter: brightness(1.08); }

/* ---- Móvil ---- */
@media (max-width: 600px) {
  .gc-class {
    flex-wrap: wrap;
    padding: 13px 15px;
    gap: 10px 14px;
  }
  .gc-time { flex-basis: 54px; flex-direction: row; align-items: baseline; gap: 6px; }
  .gc-time .gc-end::before { content: "–"; margin-right: 4px; }
  .gc-info { flex: 1 1 60%; }
  .gc-action { flex: 1 1 100%; flex-direction: row; align-items: stretch; }
  .gc-action > * { flex: 1; }
  .gc-action .gc-cta { text-align: center; }
}

/* =========================================================
   Horario semanal ancho (cartel informativo de la landing)
   ========================================================= */
.whor {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
}
.whor-day {
  display: flex;
  flex-direction: column;
  background: rgba(20, 15, 10, 0.5);
  border: 1px solid var(--gold-line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.whor-dayhead {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-soft);
  text-align: center;
  padding: 11px 6px;
  background: rgba(201, 162, 78, 0.06);
  border-bottom: 1px solid var(--gold-line-soft);
  letter-spacing: 0.02em;
}
.whor-slots {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px 11px 13px;
  flex: 1;
}
.whor-slot {
  border-left: 3px solid var(--k, var(--gold));
  padding: 3px 0 3px 10px;
}
.whor-time {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}
.whor-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  margin-top: 2px;
}
.whor-sub {
  display: block;
  font-size: 11.5px;
  color: var(--cream-mute);
  line-height: 1.35;
}
@media (max-width: 880px) {
  .whor { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .whor { grid-template-columns: 1fr; gap: 8px; }
  .whor-day { flex-direction: row; }
  .whor-dayhead {
    flex: 0 0 88px;
    border-bottom: none;
    border-right: 1px solid var(--gold-line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }
  .whor-slots { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .whor-slot { flex: 1 1 40%; }
}

/* =========================================================
   Calendario semanal ANCHO (booking del miembro) — .gcw
   ========================================================= */
.gcw { width: 100%; }
.gcw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gcw-title { font-family: var(--serif); font-size: 16px; color: var(--gold-soft); text-transform: capitalize; }
.gcw-nav { display: flex; gap: 8px; }
.gcw-nav button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-line); background: rgba(255,255,255,0.03);
  color: var(--gold-soft); font-size: 18px; line-height: 1; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.gcw-nav button:hover:not(:disabled) { border-color: var(--gold); color: inherit; }
.gcw-nav button:disabled { opacity: 0.35; cursor: default; }

.gcw-grid { display: flex; flex-direction: column; gap: 10px; }
.gcw-col { display: flex; flex-direction: row; background: rgba(201,162,78,0.04); border: 1px solid var(--gold-line-soft); border-radius: 12px; overflow: hidden; }
.gcw-colhead { flex: 0 0 92px; padding: 12px 6px; border-right: 1px solid var(--gold-line-soft); background: rgba(201,162,78,0.05); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gcw-colhead .wd { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: inherit; }
.gcw-colhead .num { display: block; font-family: var(--serif); font-size: 17px; font-weight: 700; color: inherit; line-height: 1.1; }
.gcw-colhead.is-today { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.gcw-colhead.is-today .wd, .gcw-colhead.is-today .num { color: #0a0805; }
.gcw-colbody { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px; flex: 1; align-items: stretch; min-height: 54px; }
.gcw-empty { color: inherit; opacity: 0.5; text-align: center; font-size: 14px; padding: 6px 0; align-self: center; }

.gcw-chip { border: 1px solid var(--gold-line-soft); border-left: 3px solid var(--disc, var(--gold)); border-radius: 9px; padding: 8px 9px; background: rgba(201,162,78,0.06); flex: 0 1 230px; }
.gcw-chip .t { display: block; font-family: var(--mono); font-size: 11px; color: var(--gold-soft); }
.gcw-chip h5 { margin: 2px 0 3px; font-size: 12.5px; font-weight: 600; color: inherit; line-height: 1.25; font-family: var(--sans); }
.gcw-chip .cap { display: block; font-size: 10.5px; color: inherit; margin-bottom: 6px; }
.gcw-chip .cap.is-full { color: #d98a8a; }
.gcw-chip .gc-live { margin-bottom: 5px; font-size: 9px; padding: 1px 6px; }
.gcw-act { display: flex; flex-direction: column; gap: 6px; }
.gcw-act .btn-mini, .gcw-act button, .gcw-act > a { width: 100%; font-size: 12px; text-align: center; }
.gcw-chip .gc-cta { display: block; text-align: center; background: var(--gold); color: #0a0805; font-weight: 700; font-size: 12px; text-decoration: none; padding: 7px; border-radius: 999px; }

@media (max-width: 600px) {
  .gcw-colhead { flex: 0 0 58px; padding: 8px 4px; }
  .gcw-chip { flex: 1 1 100%; }
}

/* =========================================================
   Calendario MENSUAL (Reservar) — .gcm
   Cuadrícula tipo calendario + detalle del día seleccionado.
   ========================================================= */
.gcm { width: 100%; }
.gcm-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; }
.gcm-title { font-family: var(--serif); font-size: 19px; color: inherit; text-transform: capitalize; min-width: 170px; text-align: center; }
.gcm-head button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold-line); background: transparent;
  color: var(--gold-soft); font-size: 19px; line-height: 1; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.gcm-head button:hover { border-color: var(--gold); color: var(--gold); }

.gcm-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.gcm-weekdays span { text-align: center; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; opacity: 0.55; font-weight: 600; }

.gcm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.gcm-cell {
  min-height: 90px;
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 6px 5px;
  text-align: left;
  border: 1px solid var(--gold-line-soft);
  border-radius: 10px;
  background: rgba(201, 162, 78, 0.03);
  color: inherit;
  font-family: var(--sans);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.gcm-cell:hover { border-color: var(--gold-line); }
.gcm-cell.out { opacity: 0.32; cursor: default; }
.gcm-cell.has { background: rgba(201, 162, 78, 0.09); }
.gcm-cell.today .gcm-num { color: var(--gold); font-weight: 800; }
.gcm-cell.sel { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.gcm-num { font-family: var(--serif); font-size: 14px; font-weight: 700; }
.gcm-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gcm-chip {
  font-size: 9.5px; line-height: 1.25;
  padding: 1px 4px;
  border-left: 2px solid var(--disc, var(--gold));
  background: rgba(201, 162, 78, 0.14);
  border-radius: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gcm-more { font-size: 9px; opacity: 0.6; padding-left: 2px; }

/* Detalle del día seleccionado */
.gcm-detail { margin-top: 20px; border-top: 1px solid var(--gold-line-soft); padding-top: 16px; }
.gcm-detail h4 { font-family: var(--serif); font-size: 17px; color: inherit; text-transform: capitalize; margin: 0 0 12px; }
.gcm-empty { opacity: 0.55; font-size: 14px; font-style: italic; }
.gcm-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--gold-line-soft);
  border-left: 3px solid var(--disc, var(--gold));
  border-radius: 12px;
  margin-bottom: 8px;
}
.gcm-row .t { flex: 0 0 56px; font-family: var(--mono); font-size: 14px; color: var(--gold-soft); }
.gcm-row .info { flex: 1 1 auto; min-width: 0; }
.gcm-row .info h5 { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: inherit; line-height: 1.25; }
.gcm-row .info p { margin: 3px 0 0; font-size: 12.5px; opacity: 0.72; line-height: 1.4; }
.gcm-row .act { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.gcm-row .gc-cta { display: inline-block; background: var(--gold); color: #0a0805; font-weight: 700; font-size: 13px; text-decoration: none; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }

@media (max-width: 640px) {
  .gcm-grid { gap: 4px; }
  .gcm-cell { min-height: 46px; align-items: center; justify-content: flex-start; padding: 6px 2px; }
  .gcm-num { font-size: 13px; }
  .gcm-chips { display: none; }
  .gcm-cell.has::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 1px; }
  .gcm-row { flex-wrap: wrap; gap: 8px 12px; }
  .gcm-row .act { flex: 1 1 100%; flex-direction: row; }
  .gcm-row .act > * { flex: 1; }
}

/* =========================================================
   Horario landing como lista de franjas (hora + actividad) — .whor2
   ========================================================= */
.whor2 { width: 100%; max-width: 660px; display: flex; flex-direction: column; gap: 10px; }
.whor2-row {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px;
  background: rgba(20, 15, 10, 0.5);
  border: 1px solid var(--gold-line-soft);
  border-left: 3px solid var(--k, var(--gold));
  border-radius: 14px;
}
.whor2-time { flex: 0 0 108px; font-family: var(--mono); font-size: 13px; color: var(--gold-soft); letter-spacing: 0.04em; }
.whor2-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.whor2-title { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--cream); line-height: 1.3; }
.whor2-sub { font-family: var(--sans); font-size: 13px; color: var(--cream-mute); line-height: 1.4; }
@media (max-width: 560px) {
  .whor2-row { gap: 12px; padding: 12px 14px; }
  .whor2-time { flex-basis: 78px; font-size: 12px; }
}

/* =========================================================
   Horario en columnas/grupos ("Lunes a Viernes" + "Sábado") — .whg
   Adaptable a tema claro (panel) y oscuro (landing).
   ========================================================= */
.whg {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  max-width: 600px;
  background: rgba(201, 162, 78, 0.03);
  border: 1px solid var(--gold-line-soft);
  border-radius: 16px;
  overflow: hidden;
}
.whg-col { display: flex; flex-direction: column; }
.whg-col + .whg-col { border-left: 1px solid var(--gold-line-soft); }
.whg-head {
  font-family: var(--serif); font-size: 15px; color: var(--gold-soft);
  text-align: center; padding: 13px 10px;
  border-bottom: 1px solid var(--gold-line-soft);
  background: rgba(201, 162, 78, 0.06);
  letter-spacing: 0.01em;
}
.whg-slots { display: flex; flex-direction: column; gap: 13px; padding: 16px; flex: 1; }
.whg-slot { border-left: 3px solid var(--k, var(--gold)); padding: 2px 0 2px 11px; }
.whg-time { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--gold-soft); letter-spacing: 0.04em; }
.whg-title { display: block; font-size: 14px; font-weight: 600; color: inherit; line-height: 1.3; margin-top: 2px; }
.whg-sub { display: block; font-size: 12px; color: inherit; opacity: 0.62; line-height: 1.35; }
@media (max-width: 640px) {
  .whg { grid-template-columns: 1fr; }
  .whg-col + .whg-col { border-left: none; border-top: 1px solid var(--gold-line-soft); }
}
