/* ============================================================
   Reserva de horas de entrenamiento — paleta e identidad BORA
   (azul #1f9fff sobre fondos oscuros, igual que el resto del sitio)
   ============================================================ */

:root {
  --r-bg: #0b0f14;
  --r-surface: #0f141c;
  --r-surface-2: #131a24;
  --r-border: #232c38;
  --r-text: #f4f7fa;
  --r-muted: #8a96a5;
  --r-azul: #1f9fff;
  --r-azul-fuerte: #0f7fe0;
  --r-verde: #25d366;
  --r-ambar: #f4b942;
  --r-rojo: #ff5d6c;
}

[hidden] {
  display: none !important;
}

body.sin-scroll {
  overflow: hidden;
}

/* ============ Fondo decorativo ============ */

.fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 159, 255, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(15, 127, 224, 0.06), transparent 60%),
    var(--r-bg);
}

.fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.fx__orb--a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(31, 159, 255, 0.22);
  animation: orbFloat 18s ease-in-out infinite;
}

.fx__orb--b {
  width: 340px;
  height: 340px;
  bottom: 8%;
  left: -100px;
  background: rgba(15, 127, 224, 0.18);
  animation: orbFloat 22s ease-in-out infinite reverse;
}

.fx__orb--c {
  width: 260px;
  height: 260px;
  top: 45%;
  right: 12%;
  background: rgba(31, 159, 255, 0.12);
  animation: orbFloat 26s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-24px, 30px, 0) scale(1.08);
  }
}

/* ============ Cabecera de la sección ============ */

.res {
  padding: 48px 0 72px;
  color: var(--r-text);
}

.res__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--r-azul);
  background: rgba(31, 159, 255, 0.1);
  border: 1px solid rgba(31, 159, 255, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.res__title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.res__title span {
  color: var(--r-azul);
}

.res__subtitle {
  color: var(--r-muted);
  font-size: 16px;
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 34px;
}

.res__layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 26px;
  align-items: start;
}

.res__nota {
  margin-top: 28px;
  color: var(--r-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.res__nota i {
  color: var(--r-azul);
}

/* ============ Calendario ============ */

.calendario {
  background: rgba(15, 20, 28, 0.72);
  border: 1px solid var(--r-border);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: calc(var(--header-h) + 18px);
  animation: subir 0.6s ease-out both;
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.calendario__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.calendario__mes {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.6px;
}

.calendario__nav {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--r-border);
  background: var(--r-surface-2);
  color: var(--r-text);
  cursor: pointer;
  transition: 0.2s;
  display: grid;
  place-items: center;
}

.calendario__nav:hover {
  background: var(--r-azul);
  border-color: var(--r-azul);
  color: #06121d;
  transform: translateY(-2px);
}

.calendario__semana,
.calendario__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendario__semana {
  margin-bottom: 8px;
}

.calendario__semana span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--r-muted);
  padding: 4px 0;
}

.calendario__grid.is-cargando {
  opacity: 0.4;
  pointer-events: none;
}

.calDia {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(19, 26, 36, 0.65);
  color: var(--r-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  animation: aparecerDia 0.35s ease-out both;
  animation-delay: calc(var(--d, 0) * 18ms);
}

@keyframes aparecerDia {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.calDia--vacio {
  background: none;
  cursor: default;
  animation: none;
}

.calDia__punto {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.calDia--hay {
  border-color: rgba(31, 159, 255, 0.35);
}

.calDia--hay .calDia__punto {
  background: var(--r-azul);
  box-shadow: 0 0 8px rgba(31, 159, 255, 0.8);
}

.calDia--sin {
  color: var(--r-muted);
}

.calDia--sin .calDia__punto {
  background: var(--r-border);
}

.calDia--pasado {
  opacity: 0.28;
  cursor: not-allowed;
  background: transparent;
  text-decoration: line-through;
}

.calDia--hoy .calDia__num {
  position: relative;
}

.calDia--hoy .calDia__num::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--r-azul);
}

.calDia:not(:disabled):hover {
  background: rgba(31, 159, 255, 0.14);
  border-color: var(--r-azul);
  transform: translateY(-3px);
}

.calDia.is-activo {
  background: var(--r-azul);
  border-color: var(--r-azul);
  color: #06121d;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 159, 255, 0.35);
}

.calDia.is-activo .calDia__punto {
  background: #06121d;
  box-shadow: none;
}

.calendario__leyenda {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--r-border);
  font-size: 12px;
  color: var(--r-muted);
}

.punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.punto--hay {
  background: var(--r-azul);
  box-shadow: 0 0 8px rgba(31, 159, 255, 0.8);
}

.calendario__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
  color: var(--r-verde);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
}

.calendario__wa:hover {
  background: rgba(37, 211, 102, 0.16);
  transform: translateY(-2px);
}

/* ============ Bloques del día ============ */

.bloques {
  min-height: 320px;
}

.bloques__head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--r-border);
}

/* Sin capitalize: la fecha ya viene bien escrita («Miércoles 26 de agosto»),
   capitalizarla daría «26 De Agosto». */
.bloques__fecha {
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
}

.bloques__meta {
  color: var(--r-muted);
  font-size: 14px;
  margin-top: 4px;
}

.bloques__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}

.bloques__estado {
  text-align: center;
  padding: 56px 20px;
  color: var(--r-muted);
  border: 1px dashed var(--r-border);
  border-radius: 20px;
}

.bloques__estado i {
  font-size: 34px;
  color: var(--r-azul);
  opacity: 0.7;
  margin-bottom: 14px;
  display: block;
}

.bloques__estado small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.75;
}

/* ---- Tarjeta de bloque ---- */

.bloque {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 20, 28, 0.78);
  border: 1px solid var(--r-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: subir 0.45s ease-out both;
}

/* Franja de color según el estado */
.bloque::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--r-border);
  transition: background 0.25s ease;
}

.bloque--disponible::before {
  background: var(--r-azul);
}

.bloque--ultimos::before {
  background: var(--r-ambar);
}

.bloque:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 159, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Hora: el inicio manda, el término va discreto al lado */
.bloque__horas {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bloque__inicio {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.bloque__fin {
  font-size: 13px;
  color: var(--r-muted);
}

.bloque__profe {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--r-text);
}

.bloque__nota {
  font-size: 12.5px;
  color: var(--r-muted);
  line-height: 1.45;
}

.bloque__cupos {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--r-muted);
}

.bloque__cupos i {
  font-size: 12px;
  opacity: 0.8;
}

/* Pocos cupos: el aviso se pinta en ámbar, sin insignia aparte */
.bloque--ultimos .bloque__cupos {
  color: var(--r-ambar);
  font-weight: 700;
}

.bloque__btn {
  margin-top: 2px;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--r-azul);
  color: #06121d;
  transition: 0.22s;
}

.bloque__btn:hover {
  background: var(--r-azul-fuerte);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 159, 255, 0.3);
}

.bloque--ultimos .bloque__btn {
  background: var(--r-ambar);
}

.bloque--ultimos .bloque__btn:hover {
  background: #e09a1f;
  box-shadow: 0 10px 24px rgba(244, 185, 66, 0.3);
}

/* ============ Modal de reserva ============ */

.resModal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.resModal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.resModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.78);
  backdrop-filter: blur(6px);
}

.resModal__dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.resModal.is-open .resModal__dialog {
  transform: none;
}

.resModal__cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--r-border);
  background: var(--r-surface-2);
  color: var(--r-muted);
  cursor: pointer;
  transition: 0.2s;
}

.resModal__cerrar:hover {
  color: var(--r-text);
  border-color: var(--r-rojo);
}

.resModal__titulo {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-right: 34px;
}

.resumen {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(31, 159, 255, 0.08);
  border: 1px solid rgba(31, 159, 255, 0.25);
  margin-bottom: 20px;
}

.resumen__hora {
  font-size: 26px;
  font-weight: 800;
  color: var(--r-azul);
  line-height: 1;
}

.resumen__fecha {
  font-weight: 700;
  font-size: 14.5px;
}

.resumen__profe {
  font-size: 12.5px;
  color: var(--r-muted);
  margin-top: 3px;
}

.resForm__group {
  margin-bottom: 16px;
}

.resForm__group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--r-text);
}

.resForm__group input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--r-border);
  background: var(--r-surface-2);
  color: var(--r-text);
  font-family: inherit;
  font-size: 15px;
  transition: 0.2s;
}

.resForm__group input::placeholder {
  color: #5c6775;
}

.resForm__group input:focus {
  outline: none;
  border-color: var(--r-azul);
  box-shadow: 0 0 0 3px rgba(31, 159, 255, 0.18);
}

.resForm__help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--r-muted);
}

.resForm__error {
  background: rgba(255, 93, 108, 0.12);
  border: 1px solid rgba(255, 93, 108, 0.4);
  color: #ffb3ba;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 14px;
  animation: temblar 0.35s ease;
}

@keyframes temblar {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.resForm__submit {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 12px;
  background: var(--r-azul);
  color: #06121d;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.resForm__submit:hover:not(:disabled) {
  background: var(--r-azul-fuerte);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 159, 255, 0.32);
}

.resForm__submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.resForm__spinner {
  display: none;
  animation: girar 0.9s linear infinite;
}

.resForm__submit.is-cargando .resForm__spinner {
  display: inline-block;
}

.resForm__submit.is-cargando .resForm__submitTexto {
  opacity: 0.7;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.resForm__cancelar {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  border: none;
  background: none;
  color: var(--r-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.resForm__cancelar:hover {
  color: var(--r-text);
}

/* ---- Confirmación ---- */

.exito {
  text-align: center;
  padding: 8px 0;
}

.exito__check svg {
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
}

.exito__circulo {
  fill: none;
  stroke: var(--r-verde);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: trazarCirculo 0.6s ease-out forwards;
}

.exito__tick {
  fill: none;
  stroke: var(--r-verde);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: trazarTick 0.35s 0.5s ease-out forwards;
}

@keyframes trazarCirculo {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes trazarTick {
  to {
    stroke-dashoffset: 0;
  }
}

.exito__titulo {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 8px;
}

.exito__texto {
  color: var(--r-muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.exito__detalle {
  text-align: left;
  background: var(--r-surface-2);
  border: 1px solid var(--r-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.exito__detalle p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 5px 0;
}

.exito__detalle i {
  color: var(--r-azul);
  width: 16px;
  text-align: center;
}

.exito__aviso {
  display: block !important;
  margin-top: 10px;
  padding-top: 12px !important;
  border-top: 1px solid var(--r-border);
  font-size: 12.5px !important;
  color: var(--r-muted);
}

.exito__btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--r-azul);
  color: #06121d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s;
}

.exito__btn:hover {
  background: var(--r-azul-fuerte);
  transform: translateY(-2px);
}

/* ============ Toast ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 4000;
  background: var(--r-surface-2);
  border: 1px solid var(--r-border);
  color: var(--r-text);
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: min(420px, 92vw);
}

.toast.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .res__layout {
    grid-template-columns: 1fr;
  }

  .calendario {
    position: static;
  }
}

@media (max-width: 560px) {
  .res {
    padding: 30px 0 56px;
  }

  .calendario {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .calDia {
    border-radius: 10px;
    font-size: 13px;
  }

  /* En móvil los bloques van de a dos por fila */
  .bloques__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bloque {
    padding: 14px 12px;
    gap: 8px;
    border-radius: 16px;
  }

  .bloque__horas {
    flex-wrap: wrap;
    gap: 6px;
  }

  .bloque__inicio {
    font-size: 22px;
  }

  .bloque__fin {
    font-size: 11.5px;
  }

  .bloque__profe {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .bloque__nota {
    font-size: 11.5px;
  }

  .bloque__cupos {
    gap: 6px;
    font-size: 12px;
  }

  .bcupo {
    padding: 2px 8px;
    gap: 4px;
    font-size: 12px;
  }

  /* "cupos libres" pasa a su propia línea para que las píldoras no se aprieten */
  .bloque__cuposPie {
    flex-basis: 100%;
    font-size: 11px;
  }

  .bloque__btn {
    min-height: 40px;
    border-radius: 10px;
    font-size: 13.5px;
  }

  .resModal {
    padding: 0;
    place-items: end center;
  }

  .resModal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }

  .res__nota {
    align-items: flex-start;
    font-size: 13px;
  }
}

/* Pantallas muy angostas: se mantienen las dos columnas, todo un poco más chico */
@media (max-width: 380px) {
  .bloques__grid {
    gap: 8px;
  }

  .bloque {
    padding: 12px 10px;
  }

  .bloque__inicio {
    font-size: 20px;
  }

  .bcupo {
    padding: 2px 7px;
    font-size: 11.5px;
  }

  .bloque__btn {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   Gestionar mi reserva: acceso, aviso de cambio y listado
   ============================================================ */

.res__gestionar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -18px 0 34px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--r-border);
  background: rgba(19, 26, 36, 0.7);
  color: var(--r-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.22s;
}

.res__gestionar:hover {
  border-color: var(--r-azul);
  color: var(--r-azul);
  transform: translateY(-2px);
}

.res__gestionar i {
  color: var(--r-azul);
}

/* ---- Aviso mientras se mueve una reserva ---- */

.cambioBanner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(244, 185, 66, 0.45);
  background: rgba(244, 185, 66, 0.1);
  animation: subir 0.35s ease-out both;
}

.cambioBanner > i {
  color: var(--r-ambar);
  font-size: 18px;
  flex-shrink: 0;
}

.cambioBanner p {
  flex: 1 1 240px;
  font-size: 14px;
  line-height: 1.5;
}

.cambioBanner strong {
  color: var(--r-ambar);
}

.cambioBanner button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--r-border);
  background: transparent;
  color: var(--r-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.cambioBanner button:hover {
  color: var(--r-text);
  border-color: var(--r-text);
}

/* ---- Listado de mis reservas ---- */

.resModal__ayuda {
  color: var(--r-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: -8px 0 20px;
}

.miReserva {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--r-border);
  background: var(--r-surface-2);
}

.miReserva__hora {
  font-size: 22px;
  font-weight: 800;
  color: var(--r-azul);
  line-height: 1;
}

.miReserva__datos {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.miReserva__datos strong {
  font-size: 14.5px;
}

.miReserva__datos span {
  font-size: 12.5px;
  color: var(--r-muted);
}

.miReserva__acciones {
  grid-column: 1 / -1;
  display: flex;
  gap: 9px;
  margin-top: 6px;
}

.miReserva__btn {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--r-azul);
  background: transparent;
  color: var(--r-azul);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.miReserva__btn:hover:not(:disabled) {
  background: var(--r-azul);
  color: #06121d;
}

.miReserva__btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.miReserva__btn--anular {
  border-color: rgba(255, 93, 108, 0.5);
  color: var(--r-rojo);
}

.miReserva__btn--anular:hover:not(:disabled) {
  background: var(--r-rojo);
  color: #fff;
}

/* Reserva que ya no se puede tocar (dentro de los 30 min o iniciada) */
.miReserva__aviso {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--r-ambar);
  line-height: 1.45;
}

.misVacio {
  color: var(--r-muted);
  font-size: 13.5px;
  line-height: 1.55;
  padding: 10px 0 6px;
}

@media (max-width: 560px) {
  .res__gestionar {
    width: 100%;
    justify-content: center;
  }

  .cambioBanner button {
    width: 100%;
  }
}
/* Etiqueta de grupo en Â«mis reservasÂ» */
.gtag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  vertical-align: middle;
  border: 1px solid rgba(31, 159, 255, 0.4);
  background: rgba(31, 159, 255, 0.12);
  color: var(--r-azul);
}

.gtag--mujer {
  border-color: rgba(233, 122, 197, 0.45);
  background: rgba(233, 122, 197, 0.12);
  color: #e97ac5;
}



/* ============================================================
   Grupo dentro del formulario de reserva: el paso que sÃ­ se ve
   ============================================================ */

.grupoPick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.grupoPick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 10px;
  min-height: 84px;
  border-radius: 14px;
  border: 2px solid var(--r-border);
  background: var(--r-surface-2);
  color: var(--r-muted);
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
}

.grupoPick__btn i {
  font-size: 20px;
  opacity: 0.85;
}

.grupoPick__nombre {
  font-size: 14.5px;
  font-weight: 700;
}

.grupoPick__cupos {
  font-size: 11.5px;
  opacity: 0.8;
}

.grupoPick__btn:hover:not(:disabled):not(.is-activo) {
  border-color: rgba(31, 159, 255, 0.5);
  color: var(--r-text);
}

.grupoPick__btn.is-activo {
  border-color: var(--r-azul);
  background: rgba(31, 159, 255, 0.12);
  color: var(--r-azul);
}

/* El grupo de mujeres se distingue por color al estar elegido */
.grupoPick__btn[data-genero="mujer"].is-activo {
  border-color: #e97ac5;
  background: rgba(233, 122, 197, 0.12);
  color: #e97ac5;
}

.grupoPick__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-style: dashed;
}

.grupoPick__btn:disabled .grupoPick__cupos {
  color: var(--r-rojo);
  opacity: 1;
}


/* ============================================================
   Cupos por grupo dentro de la tarjeta de horario
   ============================================================ */

.bloque__cupos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bcupo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 159, 255, 0.35);
  background: rgba(31, 159, 255, 0.1);
  color: var(--r-azul);
  font-size: 13px;
  font-weight: 700;
}

.bcupo i {
  font-size: 11px;
  opacity: 0.9;
}

.bcupo--mujer {
  border-color: rgba(233, 122, 197, 0.4);
  background: rgba(233, 122, 197, 0.1);
  color: #e97ac5;
}

/* Grupo sin cupo en este bloque: se ve, pero apagado */
.bcupo--lleno {
  border-color: var(--r-border);
  background: transparent;
  color: var(--r-muted);
  text-decoration: line-through;
}

.bloque__cuposPie {
  font-size: 11.5px;
  color: var(--r-muted);
}
