:root {
  --bg: #0b0b0b;
  --panel: #111;
  --panel-2: #1a1a1a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #a3e635;
  --stroke: #2a2a2a;
  --radius: 16px;
  --sidebar-w: 260px;
  --topbar-h: 72px;
}

/*------------------------------------------------ LOGIN -- */
body {
  background-color: #c11068;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, Segoe UI, Roboto, Arial;
}

.cont-login {
  width: 100%;
}

.logotipo {
  width: 100%;
  text-align: center;
  margin: 50px 0;
}

.logotipo img {
  width: 30%;
  height: auto;
}

@media(min-width: 425px) {
  .logotipo img {
    width: 120px;
    height: auto;
  }
}

@media(min-width: 768px) {
  .logotipo img {
    width: 160px;
    height: auto;
  }
}

.cont-fomr {
  background-color: #D8D8D8;
  width: 70%;
  padding: 20px 30px;
  border-radius: 20px;
  margin: 0 auto 100px auto;
}

@media(min-width: 320px) {
  .cont-fomr {
    width: 90%;
  }
}

@media(min-width: 425px) {
  .cont-fomr {
    width: 80%;
  }
}

@media(min-width: 768px) {
  .cont-fomr {
    width: 600px;
  }
}

.cont-fomr h1 {
  text-align: center;
  color: #212529;
  font-size: 1.5rem;
}

.cont-fomr form {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cont-fomr form .form-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cont-fomr form .form-inputs label {
  color: #212529;
}

@media(min-width: 768px) {
  .cont-fomr form .form-inputs {
    width: 80%;
    display: flex;
    flex-direction: column;
  }
}

.cont-fomr form .form-inputs input {
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 7px;
  border: none;
  padding-left: 10px;
  padding-right: 0;
}

.cont-fomr form .button {
  margin-bottom: 20px;
}

.cont-fomr form .button button {
  width: 150px;
  height: auto;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #E825C4;
  color: white;
  padding: 13px 0;
}

.cont-fomr form .recuperacion {
  text-align: center;
}

.cont-fomr form .recuperacion a {
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #429bd2;
}

/* flash */
.flash-message {
  padding: 10px;
  margin: 15px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.flash-success {
  background-color: #d4edda;
  color: #155724;
}

.flash-error {
  background-color: #f8d7da;
  color: #721c24;
}

.flash-warning {
  background-color: #fff3cd;
  color: #856404;
}

.flash,
#flashMessage {
  transition: opacity .5s ease;
}

.flash.is-fading,
#flashMessage.is-fading {
  opacity: 0;
}

.disciplinas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.disciplina-card {
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.disciplina-card:hover {
  transform: scale(1.05);
  background: #e0e0e0;
}

.paquetes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.paquete-card {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.paquete-card:hover {
  transform: scale(1.05);
}

.btn-comprar {
  display: inline-block;
  padding: 8px 12px;
  background: #4caf50;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

/* CALENDARIO */
/* Contenedor general */
.cal-modern .fc {
  --fc-border-color: transparent;
  --fc-button-text-color: #111827;
  --fc-button-bg-color: #ffffff;
  --fc-button-border-color: #e5e7eb;
  --fc-button-hover-bg-color: #f3f4f6;
  --fc-button-hover-border-color: #d1d5db;
  --fc-button-active-bg-color: #e5e7eb;
  --fc-today-bg-color: transparent;
  /* controlamos "hoy" a mano */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Toolbar minimalista */
.cal-modern .fc-toolbar {
  margin-bottom: 14px;
}

.cal-modern .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: capitalize;
  color: #fff;
}

.cal-modern .fc .fc-button {
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

/* Encabezado de dÃ­as (Lu, Ma, ...) */
.cal-modern .fc-col-header-cell {
  font-size: 1.3rem;
  border: 0;
  color: #fff;
}

.cal-modern .fc-col-header-cell-cushion {
  font-size: .9rem;
  padding: 10px 0;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .2px;
  text-transform: capitalize;
  /* Lunes, Martes, ... */
  white-space: nowrap;
  /* Evita que corte "MiÃ©rcoles" en dos */
}

@media(min-width: 500px) {
  .cal-modern .fc-col-header-cell-cushion {
    font-size: 1.2rem;
    padding: 10px 0;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: .2px;
    text-transform: capitalize;
    /* Lunes, Martes, ... */
    white-space: nowrap;
    /* Evita que corte "MiÃ©rcoles" en dos */
  }
}

/* Celdas del mes: crear â€œgapâ€ visual con padding y tarjeta interna redondeada */
.cal-modern .fc-daygrid-day {
  padding: 3px;
  /* â€œseparaciÃ³nâ€ entre dÃ­as */
  border: 0;
}

@media(min-width: 500px) {
  .cal-modern .fc-daygrid-day {
    padding: 6px;
    /* â€œseparaciÃ³nâ€ entre dÃ­as */
    border: 0;
  }
}

.cal-modern .fc-daygrid-day-frame {
  background: #ffffff;
  border-radius: 10px;
  min-height: 100px;
  /* alto mÃ­nimo agradable */
  padding: 8px;
  transition: box-shadow .2s ease, transform .05s ease;
}

.cal-modern .fc-daygrid-day-frame:hover {
  box-shadow: 0 0 0 2px #dbeafe inset;
}

/* DÃ­a actual (hoy) con anillo */
.cal-modern .fc-day-today .fc-daygrid-day-frame {
  box-shadow: 0 0 0 2px #93c5fd inset;
  background: #aed1ff;
}

/* DÃ­as fuera del mes atenuados */
.cal-modern .fc-day-other .fc-daygrid-day-frame {
  opacity: .55;
  background: #737373;
}

/* NÃºmero del dÃ­a */
.cal-modern .cal-daynum {
  display: inline-block;
  font-weight: 700;
  color: #3f3f3f;
  font-size: .8rem;
}

@media(min-width: 500px) {
  .cal-modern .cal-daynum {

    font-size: 1.2rem;
  }
}

/* DÃ­a seleccionado (clic) */
.cal-modern .fc-daygrid-day.is-selected .fc-daygrid-day-frame {
  box-shadow: 0 0 0 2px #8fdf82 inset;
  /* verde menta */
  background: #8fdf8299;
}

/* Fondo especial si el dÃ­a tiene eventos */
.cal-modern .fc-daygrid-day.has-events .fc-daygrid-day-frame {
  background: #f7fff9;
  box-shadow: 0 0 0 2px #bbf7d0 inset;
  /* verde pÃ¡lido */
}

/* Eventos tipo â€œpillâ€ (sin puntito) */
.cal-modern .fc-daygrid-event-dot {
  display: none;
}

.cal-modern .fc-daygrid-event {
  border: 0;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: .82rem;
  line-height: 1.5;
  background: #e5e7eb;
  /* color por defecto si no envÃ­as 'color' */
  color: #111827;
  margin: 2px 0;
}

.cal-modern .fc-daygrid-event:hover {
  filter: brightness(.96);
  cursor: pointer;
}

/* Si tus eventos envÃ­an 'color', FullCalendar ya aplica el fondo;
   esto mejora texto sobre fondo oscuro */
.cal-modern .fc-daygrid-event[style*="background-color"] {
  color: #0b1020;
}

/* Responsive pequeÃ±o: baja altura mÃ­nima un poquito */
@media (max-width: 640px) {
  .cal-modern .fc-daygrid-day-frame {
    min-height: 72px;
    padding: 6px;
  }

  .cal-modern .fc-toolbar-title {
    font-size: 1.1rem;
  }
}

/* Contador (badge) de clases por dÃ­a */
.cal-modern .cal-badge {
  position: absolute;
  bottom: 8px;
  /* o top: 8px si lo prefieres arriba */
  right: 8px;
  /* o left: 8px */
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.6;
  background: #e0f2fe;
  /* azul claro */
  color: #0b1020;
  box-shadow: 0 0 0 1px #bae6fd inset;
  pointer-events: none;
  /* no interfiere con clicks */
}

/* Asegura posicionamiento relativo en la tarjeta del dÃ­a */
.cal-modern .fc-daygrid-day-frame {
  position: relative;
}

.cal-modern .fc-daygrid-day.has-events .fc-daygrid-day-frame {
  box-shadow: 0 0 0 2px #bbf7d0 inset;
}

.cal-modern .cal-badge {
  background: #dcfce7;
  box-shadow: 0 0 0 1px #86efac inset;
}



* {
  box-sizing: border-box
}

/*modifciado*/
.calendario .contenido-principal {
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

/* Tipos/tamaÃ±os bÃ¡sicos */
.cal-modern .fc {
  --cell-padding: 6px;
  --radius: 14px;
  --num-size: clamp(12px, 2.9vw, 16px);
}

.cal-modern .fc-daygrid-day-frame {
  padding: var(--cell-padding);
}

.cal-modern .fc-daygrid-day {
  border-radius: var(--radius);
  overflow: hidden;
}

.cal-modern .fc-daygrid-day-number,
.cal-daynum {
  font-size: var(--num-size);
  line-height: 1.1;
}

/* Badge centrado al fondo del dÃ­a */
.cal-modern .cal-badge {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  max-width: 90%;
}

/* En mÃ³vil: mostrar SOLO el nÃºmero; ocultar el texto */
@media (max-width: 640px) {
  .cal-modern .cal-badge .count-label {
    display: none;
  }

  .cal-modern .cal-badge .only-count {
    display: inline;
  }
}

/* En tablet y superior: mostrar â€œ1 clase / n clasesâ€ */
@media (min-width: 641px) {
  .cal-modern .cal-badge .count-label {
    display: inline;
  }
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: grid;
  grid-row: 1 / 3;
  grid-column: 1 / 2;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  background: var(--panel);
  padding: 12px;
}

.menu-links {
  flex: 1;
  /* ocupa el espacio disponible arriba */
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav {
  position: relative;
  height: 95vh;
}

.nav .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 45px
}

.nav .brand img {
  width: 30%;
}

@media(min-width: 1024px) {
  .nav .brand img {
    width: 60%;
  }
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.nav li.active a,
.nav a:hover {
  background: var(--panel-2);
  outline: 1px solid var(--stroke)
}

.nav .logout {
  position: absolute;
  bottom: 0;
  left: 20%;
  margin-top: auto;
  color: #98fb98;
  padding: 10px 12px;
  text-decoration: none
}

/* Topbar */
.topbar {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel);
}

.topbar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  justify-content: space-between;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 12px;
  width: min(720px, 80%)
}

.search input {
  all: unset;
  flex: 1;
  color: var(--text)
}

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

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--stroke)
}

.name {
  font-weight: 600
}

/* Content */
.content {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  padding: 18px;
  overflow: auto;
  min-height: 0;
  /* importante para que el scroll se quede aquÃ­ */
  scrollbar-width: none;
  /* oculta en Firefox */
}

.content::-webkit-scrollbar {
  display: none;
}

/* Responsive */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    --sidebar-w: 76px;
  }

  .nav a span.label {
    display: none;
  }

  .nav a i {
    margin: 0 auto;
  }
}

/* BotÃ³n icÃ³nico genÃ©rico */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  outline: 1px solid var(--stroke)
}

/* Animaciones suaves de layout */
.layout {
  transition: grid-template-columns .18s ease;
}

.sidebar {
  transition: width .18s ease, padding .18s ease
}

.nav a {
  transition: padding .18s ease
}

/* Colapsado: se controla con una clase en <body class="layout sidebar-collapsed"> */
.sidebar-collapsed {
  --sidebar-w: 76px;
  /* ancho compacto */
}

.sidebar-collapsed .nav a span {
  display: none
}

/* oculta etiquetas de texto */
.sidebar-collapsed .nav a i {
  margin: 0 auto
}

/* centra iconos */
.sidebar-collapsed .sidebar {
  padding: 12px 10px
}

/* margen mÃ¡s compacto */

/* (Opcional) marca visual del item activo en compacto */
.sidebar-collapsed .nav li.active a {
  outline: 1px solid var(--stroke)
}

/* Evita saltos de contenido al colapsar */
.content {
  transition: padding .18s ease
}

/* NUEVO: Estado oculto (ancho 0) */
.sidebar-hidden {
  --sidebar-w: 0px;
}

.sidebar-hidden .sidebar {
  padding: 0 !important;
  border-right: none !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Evita desbordes cuando el sidebar estÃ¡ oculto */
.sidebar,
.nav a {
  overflow: hidden;
  white-space: nowrap;

}

/* Quitar el marco/blanco externo del calendario */
.cal-modern .fc {
  --fc-border-color: transparent;
  /* ya lo tenÃ­as, lo reforzamos */
  --fc-page-bg-color: transparent;
  /* evita fondo blanco del grid */
  background: transparent;
  /* por si el contenedor trae blanco */
}

/* Elimina el borde del scrollgrid que rodea todo */
.cal-modern .fc-theme-standard .fc-scrollgrid {
  border: 0 !important;
  background: transparent;
}

/* Asegura que filas/cols del grid no dibujen bordes residuales */
.cal-modern .fc-theme-standard td,
.cal-modern .fc-theme-standard th {
  border: 0 !important;
}

/* Por si tu wrapper tiene borde o fondo */
#calendario,
.cal-modern {
  background: transparent;
  box-shadow: none;
  border: 0px;
}

.fc-theme-standard .fc-scrollgrid {
  border: none !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: none !important;
}


/* -------------------------------------------------------------- SERVICIOS */
/* Grid responsive */
  .lista-disciplinas{
    list-style:none;margin:0;padding:0;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
    gap:18px;
  }

  /* Tarjeta */
  .item-disciplina{
    position:relative;
    background:#1b1b1b;
    border:1px solid #2a2a2a;
    border-radius:18px;
    min-height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px 18px 18px;
    transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  }
  .item-disciplina:hover{
    transform:translateY(-1px);
    border-color:#3a3a3a;
    box-shadow:0 10px 22px rgba(0,0,0,.35);
  }

  /* Enlace que ocupa la tarjeta */
  .disc-link{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    text-decoration:none;color:#fff;gap:10px;
    width:100%;height:100%;
  }

  /* Imagen circular */
  .disciplina-img{
    width:150px;height:150px;border-radius:50%;
    object-fit:cover;display:block;
    border:1px solid #2e2e2e;background:#111;
  }

  .disciplina-nombre{
    font-size:1.1rem;font-weight:600;color:#fff;text-align:center;
  }

  /* BotÃ³n editar flotante */
  .disc-edit{
    position:absolute;top:10px;right:10px;
    display:inline-flex;align-items:center;justify-content:center;
    width:38px;height:38px;border-radius:10px;
    background:#111;border:1px solid #333;color:#ddd;
    text-decoration:none;
  }
  .disc-edit:hover{ background:#151515;color:#fff;border-color:#444; }

  /* Accesibilidad */
  .sr-only{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
  }

  @media (max-width:520px){
    .disciplina-img{ width:120px; height:120px; }
  }


/*------------------------------------------------------------------------ CLASES DISCIPLINAS */
/* ===== Crear/editar Disciplina ===== */
.svc-wrap {
  max-width: 100%;
  margin: 50px auto 0 auto;
  padding: 4px 8px;
}

.svc-title {
  margin: 6px 0 35px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

.svc-card {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, .25);
  color: var(--text);
}

/* Formulario base (coherente con tus inputs dark) */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.form-row label {
  font-size: .95rem;
  color: var(--muted);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="number"],
.form-row input[type="password"] {
  background: #111;
  border: 1px solid #2a2a2a;
  color: #fff;
  border-radius: 10px;
  padding: .6rem .75rem;
}

.form-row input:focus {

  outline: none;
  border-color: #E825C4;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

.form-row.check label {
  color: var(--text);
  font-weight: 600;
  gap: 10px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1rem;
}

.file-input {
  display: block;
  width: 100%;
  background: #111;
  border: 1px dashed #2a2a2a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: .7rem .8rem;
}

.file-input:hover {
  border-color: #3b82f6;
}

/* Color + swatch */
.svc-color {
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-color input[type="color"] {
  background: #111;
}

.svc-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: transparent;
}

/* Ayudas */
.help {
  color: var(--muted);
  font-size: .85rem;
}

.titulo-bottom {
  display: flex;
  justify-content: space-between;
}

.pg-title-servicios {
  font-size: 1.2rem;
}

@media(min-width: 400px) {
  .pg-title-servicios {
    font-size: 1.5rem;
  }
}

.btn-add-disciplina {
  display: flex;
  justify-content: flex-end;
}

.text-botton {
  display: none;
}

@media(min-width: 500px) {
  .text-botton {
    display: inline;
  }
}

.btn:hover {
  background: #547954;
  filter: brightness(1.05);
  transition: .3s ease-in-out;
}

/* Empty state (por si lo reusas) */
.empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px dashed #2a2a2a;
  border-radius: 12px;
  color: var(--muted);
}

.ac-des {

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.ac-des .add_horario {
  font-size: 1.1rem;
  background-color: #98fb98;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
  color: #3d3d3d;

}

.ac-des .add_horario:hover {
  border: 1px solid #98fb98;
}

.ac-des .add_horario i {
  margin-right: 5px;
  font-size: .9rem;
}

.ac-des .add_horario a {
  text-decoration: none;
  color: #333333;
}

/* Contenedor del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* Oculta el checkbox original */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
}

/* Bolita dentro */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Cuando estÃ¡ activado */
.switch input:checked+.slider {
  background-color: #15e115;
}

/* Mueve la bolita a la derecha */
.switch input:checked+.slider:before {
  transform: translateX(24px);
}

.table_horarios {

  width: 100%;
  text-align: center;
}

.table_horarios thead {
  font-size: 1.3rem;

}

.table_horarios tbody:before {
  content: "-";
  display: block;
  line-height: 2em;
  color: transparent;
}

.table_horarios tbody {
  font-size: 1rem;
}

.table_horarios tbody tr td {
  height: 40px;
}

.table_horarios tbody tr td:last-child a {
  font-size: 1.1rem;
}

.table_horarios tbody tr td:last-child a:first-child i {
  color: #a3e635;
}

.table_horarios tbody tr td:last-child a:first-child i:hover {
  color: #fff;
}

.table_horarios tbody tr td:last-child a:last-child i {
  color: #e63535;
}

.table_horarios tbody tr td:last-child a:last-child i:hover {
  color: #6b1e1e;
}

.table_horarios tbody tr td:last-child a:first-child {
  margin-right: 15px;
}

/* =======================
   AGREGAR HORARIO (Servicios)
   ======================= */
.titulo-agregar-horarios {
  font-size: 1.5rem;
  text-align: center;
  margin: 50px 0;
}

@media(min-width: 500px) {
  .titulo-agregar-horarios {
    font-size: 1.8rem;
    text-align: center;
    margin: 50px 0;
  }
}

.titulos-labels {
  margin-bottom: 4333330px;
}

.form-add-horario {
  width: 100%;
  margin-top: 24px;
  padding-left: 0;
}

.form-add-horario h2 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
}

.form-add-horario form {
  width: 100%;
}

.form-add-horario .row-inline {
  display: flex;
  gap: 50px;
  margin: 8px 0 56px;
  flex-direction: column;

}

@media(min-width: 500px) {
  .form-add-horario .row-inline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.form-add-horario form label {
  color: #fff;
  font-size: 1.3rem;
}

@media(min-width: 500px) {
  .form-add-horario form label {
    color: #fff;
    font-size: 1.5rem;
  }
}

.form-add-horario form input {
  padding: 8px 12px;
  border-radius: 10px;
  background: #111;
  border: 1px solid #2a2a2a;
  color: #fff;
  font-size: 1rem;
  margin: 15px 0;
}

.form-add-horario form input[type="number"] {
  width: 140px;
}

.form-add-horario form input[type="date"],
.form-add-horario form input[type="time"] {
  width: 100%;
}

@media(min-width: 1024px) {

  .form-add-horario form input[type="date"],
  .form-add-horario form input[type="time"] {
    width: 300px;
  }
}

/* Icono de picker claro sobre fondo oscuro */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* ----- Coaches grid / cards (re-apply) ----- */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.coach-item {
  list-style: none;
}

.coach-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  border: 1px solid #2a2a2a;
  color: #e5e7eb;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.coach-card:hover {
  outline: 1px solid #2a2a2a;
  background: #151515;
  transform: scale(1.01);
}

.coach-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22d3ee;
}

.coach-avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  background: #000;
}

.coach-name {
  font-weight: 600;
}

/* ----- Botones ----- */
.form-add-horario form button[type="submit"] {
  padding: 10px 20px;
  border: 1px solid #98fb98;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  float: right;
}

.form-add-horario form button[type="submit"]:hover {
  transform: scale(1.01);
  background: #98fb98;
  color: #000;
}

/* Link "Volver" si se usa .btn y .btn-sec globales */
.form-add-horario .btn.btn-sec {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #e5e7eb;
  float: right;
  margin-right: 10px;


}

@media(min-width: 500px) {
  .form-add-horario form button[type="submit"] {
    float: right;
  }

  .form-add-horario .btn.btn-sec {

    float: right;
    margin-right: 20px;
  }
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .form-add-horario .row-inline {
    gap: 10px;
  }
}

/* -------------------------------------------------------------- editar horario */
/* Grid de dÃ­as */
.dias-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5x;
  margin: 10px 0 50px 0;

}

.dia-card {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  cursor: pointer;
  background: #232323;
  transition: background 0.2s;
}

.dia-card:hover {
  background-color: #98fb98;
  transform: scale(1.03);
  border: 1px solid #98fb98;
  color: #232323;
}

.dia-card input {
  display: none;
}

.dia-card span {
  font-size: 14px;
  font-weight: 600;
}

.dia-card input:checked+span,
.dia-card input:checked~span {
  color: #232323;
  background: #98fb98;
  padding: 4px 8px;
  border-radius: 5px;
}

/* Grid de coaches */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
}

.coach-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #232323;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.coach-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coach-card input {
  margin-bottom: 5px;
}

.coach-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 5px;
}

.coach-card span {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

/* ====== Utilidades de cabecera y acciones ====== */
.u-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.u-page-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ====== PÃ­ldora informativa (dÃ­a) ====== */
.pill {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111;
  border: 1px solid #ddd;
  font-weight: 600;
}

/* ====== Formulario editar horario ====== */
.form-editar-horario label {
  display: block;
  margin: 10px 0 6px;
  color: #fff;
  /* si tu admin es tema oscuro */
}

.form-editar-horario .campo {
  margin-bottom: 10px;
}

.form-editar-horario .row-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 8px 0 16px;
}

.form-editar-horario input[type="date"],
.form-editar-horario input[type="time"],
.form-editar-horario input[type="number"] {
  padding: 8px 12px;
  border-radius: 10px;
  background: #111;
  border: 1px solid #2a2a2a;
  color: #fff;
  min-width: 180px;
}

.form-editar-horario input[type="date"] {
  min-width: 200px;
}

.form-editar-horario input[type="time"] {
  min-width: 180px;
}

.form-editar-horario input[type="number"] {
  min-width: 140px;
}

/* Picker claro sobre fondo oscuro */
.form-editar-horario input[type="date"]::-webkit-calendar-picker-indicator,
.form-editar-horario input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* ====== Coaches ====== */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.coaches-empty {
  color: #9ca3af;
}

.coach-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  border: 1px solid #2a2a2a;
  color: #e5e7eb;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.coach-card:hover {
  outline: 1px solid #2a2a2a;
  background: #151515;
  transform: scale(1.01);
}

.coach-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22d3ee;
}

.coach-avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  background: #000;
}

/* ====== Acciones al pie ====== */
.form-actions-inline {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.titulo-admin-center {

  text-align: center;
}

@media(min-width: 850px) {
  .titulo-admin-center {
    text-align: left;
  }
}

/* ---------------------------------------- ESTADISTICAS */
.titulo-estadisticas {
  text-align: center;
}

.titulo-estadisticas p {
  margin-bottom: 0px;
  font-size: 1rem;
}

.titulo-estadisticas h2 {
  font-size: 1.2rem;
}

@media(min-width: 850px) {
  .titulo-estadisticas h2 {
    font-size: 1.8rem;
  }

}

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 20px auto 30px auto;
  justify-content: center;
}

@media(min-width: 850px) {
  .kpis {
    display: flex;
    gap: 40px;
    width: 80%;
    margin: 20px auto 30px auto;
  }
}

.kpi {
  background: #fff;
  width: 40%;
  height: 120px;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px
}

@media(min-width: 850px) {
  .kpi {
    background: #fff;
    width: 20%;
    height: 120px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px
  }
}

.kpi-num {
  font-size: 1.3rem;
}

.kpi-label {
  font-size: .8rem;
}

@media(min-width: 1024px) {
  .kpi-num {
    font-size: 1.6rem;
  }

  .kpi-label {
    font-size: 1.2rem;
  }
}

.tabla-wrapper {
  background: #fff;
  width: 90%;
  height: auto;
  margin: 0 auto;
  color: #000;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow-x: scroll;
}

@media(min-width: 850px) {
  .tabla-wrapper {
    overflow-x: hidden;
  }
}

.tabla-wrapper .tabla {
  width: 600px;
  text-align: center;
  font-size: 1rem;
}

@media(min-width: 850px) {
  .tabla-wrapper .tabla {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }
}

.paginador-semana {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 50px;
}

.paginador-semana .btn {
  background: #FF2A5D;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-size: .8rem;
}

@media(min-width: 500px) {
  .paginador-semana .btn {
    font-size: 1.3rem;
  }
}

.content-section {
  background: #fff;
  color: #000;
  width: 95%;
  margin: 0 auto;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  min-height: 500px;
}

.tabla-pagos {
  width: 100%;
}

.tabla-pagos tbody tr {
  height: 40px;
}

/* ===== Admin Â· Paquetes ===== */
.pk-shell {
  width: 100%;
  display: flex;
  min-height: calc(100vh - 64px);
}

.pk-content {
  width: 100%;
  flex: 1;
  /* padding: 1.25rem; */
}

@media(min-width: 500px) {
  .pk-content {
    padding: 1.25rem;
  }
}

.pk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pk-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.btn-mini {
  padding: .35rem .6rem;
  border-radius: .4rem;
  font-size: .9em;
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}

.btn-danger-soft {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.btn-success-soft {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.pk-new {
  background: #FF2A5D;
  border-color: #FF2A5D;
}

.pk-filters {
  display: grid;
  gap: .75rem;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.pk-filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: .75rem;
  align-items: center;
  align-content: center;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
}

.form-row input[type="text"],
.form-row select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: .5rem;
  background: #111;
  color: #fff;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

.pk-filter-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-top: 23px;
}

.pk-table-wrap {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: auto;
}


.u-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161616;
  color: #e5e7eb;
  text-align: left;
  font-weight: 700;
  padding: .75rem;
  border-bottom: 1px solid var(--stroke);
}

.u-table tbody td {
  padding: .75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke) 80%, transparent);
  color: #e5e7eb;
}

.u-table tbody tr:nth-child(odd) {
  background: #141414;
}

.u-table tbody tr:hover {
  background: #1b1b1b;
}

.ta-center {
  text-align: center;
}

.ta-right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.pk-empty {
  color: #9ca3af;
  padding: 1rem;
}

.pk-desc {
  color: #9ca3af;
  font-size: .9em;
  margin-top: .15rem;
}

/* Pills / badges */
.pill {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 9999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.pill-ok {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.pill-bad {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.badge {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: .4rem;
  font-size: .85em;
}

.badge-sync {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-pending {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* PaginaciÃ³n */
.pk-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: .75rem;
  flex-wrap: wrap;
}

.pk-pager-meta {
  color: #9ca3af;
}

.pk-pager-nav {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.pk-pager-pos {
  padding: .25rem .5rem;
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
  .pk-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .pk-filters-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Admin Â· Paquetes Â· Crear ===== */
.pkc-shell {
  display: flex;
  min-height: calc(100vh - 64px);
}

.pkc-content {
  flex: 1;
  margin: 20px 0;
}

@media(min-width: 500px) {
  .pkc-content {
    flex: 1;
    margin: 0px;
    padding: 1.25rem;
  }
}

.pkc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pkc-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.pkc-title.title-nuevoPaquete {
  font-size: 1rem;
}

@media(min-width: 500px) {
  .pkc-title.title-nuevoPaquete {
    font-size: 1.3rem;
  }
}

/* Alertas */
.alert {
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--stroke);
}

.alert-error {
  background: #2a0f12;
  border-color: #7f1d1d;
  color: #fecaca;
}

.alert-error ul {
  margin: .5rem 0 0 1.2rem;
}

/* Form */
.pkc-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: .6rem;
  background: #111;
  color: #fff;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

.help {
  color: var(--muted);
  font-size: .85rem;
}

.help-warn {
  color: #fca5a5;
}

/* Grid compacto para datos numÃ©ricos */
.pkc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

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

.check .check-wrap {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--stroke);
  border-radius: .6rem;
  padding: .6rem .7rem;
}


/* ===== Admin Â· Coaches ===== */
.co-shell {
  width: 100%;
  display: flex;
  min-height: calc(100vh - 64px);
}

.co-content {
  width: 100%;
  flex: 1;
  margin: 20px 0;
}

@media(min-width: 500px) {
  .co-content {
    width: 100%;
    flex: 1;
    margin: 0px;
    padding: 1.25rem;
  }
}

.co-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.co-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.co-new {
  background: #FF2A5D;
  border: 1px solid #FF2A5D;
  color: #fff;
}

.btn-mini {
  padding: .35rem .6rem;
  border-radius: .4rem;
  font-size: .9em;
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}

.btn-danger-soft {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.btn-success-soft {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.co-filters {
  display: grid;
  gap: .75rem;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.co-filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: .75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
}

.form-row input[type="text"],
.form-row select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: .5rem;
  background: #111;
  color: #fff;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

.co-filter-actions {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}

.co-table-wrap {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: auto;
}



.u-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161616;
  color: #e5e7eb;
  text-align: left;
  font-weight: 700;
  padding: .75rem;
  border-bottom: 1px solid var(--stroke);
}

.u-table tbody td {
  padding: .75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke) 80%, transparent);
  color: #e5e7eb;
}

.u-table tbody tr:nth-child(odd) {
  background: #141414;
}

.u-table tbody tr:hover {
  background: #1b1b1b;
}

.ta-center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.co-empty {
  color: #9ca3af;
  padding: 1rem;
}

/* Avatar */
.co-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: #000;
}

/* Pills estado */
.pill {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 9999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.pill-ok {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.pill-bad {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.co-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  /* espacio entre botones */

  /* por si no cabe en mÃ³viles */
}

.inline-form {
  display: inline;
}

/* evita que el <form> rompa lÃ­nea */
.co-actions .btn {
  vertical-align: middle;
}

/* alineaciÃ³n visual */
/* Responsive */
@media (max-width: 880px) {
  .co-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .co-filters-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Admin Â· Coaches Â· Form ===== */
.cof-shell {
  display: flex;
  min-height: calc(100vh - 64px);
}

.cof-content {
  flex: 1;
  padding: 1.25rem;
}

.cof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cof-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Form base (coherente con admin) */
.cof-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: .6rem;
  background: #111;
  color: #fff;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

/* Grid para datos de contacto + activo */
.cof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
}

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

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

.check .check-wrap {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--stroke);
  border-radius: .6rem;
  padding: .6rem .7rem;
}

/* Archivo */
.file-input {
  display: block;
  width: 100%;
  background: #111;
  border: 1px dashed #2a2a2a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: .7rem .8rem;
}

.file-input:hover {
  border-color: #3b82f6;
}

.help {
  color: var(--muted);
  font-size: .7rem;
}

@media(min-width: 400px) {
  .help {
    font-size: .85rem;
  }
}

.muted {
  color: var(--muted);
  font-size: .9rem;
}

/* Preview */
.cof-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.cof-avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: #000;
}

.cof-preview-meta {
  display: flex;
  flex-direction: column;
}

/* ===== Admin Â· Usuarios ===== */
.ua-shell {
  width: 100%;
  display: flex;
  min-height: calc(100vh - 64px);
}

.ua-content {
  width: 100%;
  flex: 1;
  margin: 20px 0;
}

@media(min-width: 500px) {
  .ua-content {
    margin: 0px;
    padding: 1.25rem;
  }
}

.ua-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ua-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Filtros */
.ua-filters {
  display: grid;
  gap: .75rem;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.ua-filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: .75rem;
  align-items: center;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
}

.form-row input[type="text"],
.form-row select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: .5rem;
  background: #111;
  color: #fff;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

.ua-filter-actions {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  margin-top: 20px;
}

/* Tabla */
.ua-table-wrap {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: auto;
}



.u-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161616;
  color: #e5e7eb;
  text-align: left;
  font-weight: 700;
  padding: .75rem;
  border-bottom: 1px solid var(--stroke);
}

.u-table tbody td {
  padding: .75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke) 80%, transparent);
  color: #e5e7eb;
  vertical-align: top;
}

.u-table tbody tr:nth-child(odd) {
  background: #141414;
}

.u-table tbody tr:hover {
  background: #1b1b1b;
}

.ta-center {
  text-align: center;
}

/* Avatar y subtextos */
.ua-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: #000;
}

.ua-sub {
  color: #9ca3af;
  font-size: .85rem;
  margin-top: .1rem;
}

.ua-empty {
  color: #9ca3af;
  padding: 1rem;
  text-align: center;
}

/* Badges y botones */
.badge {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: .4rem;
  font-size: .85em;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.btn-mini {
  padding: .35rem .6rem;
  border-radius: .4rem;
  font-size: .9em;
}

.btn.active {
  outline: 1px solid #3b82f6;
}

/* Acciones en lÃ­nea */
.ua-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

/* PaginaciÃ³n */
.ua-pager {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 880px) {
  .ua-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .ua-filters-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Admin Â· Usuario Â· Detalle ===== */
.us-shell {
  width: 100%;
  display: flex;
  min-height: calc(100vh - 64px);
}

.us-content {
  width: 100%;
  flex: 1;
  margin: 20px 0;
}

@media(min-width: 500px) {
  .us-content {
    margin: 0;
    padding: 1.25rem;
  }
}

.us-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.us-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Summary */
.us-summary {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}
/* Campo que ocupa toda la fila en el grid de usuario */
.us-field--full {
  grid-column: 1 / -1;
}

/* Etiqueta más pequeña para subtítulos */
.label.label--sm {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Contenedor de badges por disciplina */
.coins-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.coins-badges--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.coins-actions {
  margin-top: 0.6rem;
}
/* Badge individual */
.coin-badge {
  --disc-color: #888888;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--disc-color);
  font-size: 0.78rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.02); /* se ve bien en tema oscuro */
  color: #f5f5f5;
  white-space: nowrap;
}

/* Punto de color de la disciplina */
.coin-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--disc-color);
  flex-shrink: 0;
}

/* Nombre de la disciplina */
.coin-badge__name {
  font-weight: 600;
}

/* Cantidad de coins */
.coin-badge__coins {
  opacity: 0.9;
}

/* Expiración (más tenue) */
.coin-badge__exp {
  opacity: 0.7;
}
.us-avatar {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: #000;
}

.us-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.us-field {
  display: flex;
  flex-direction: column;
}

.us-field .label {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 5px;
}

.us-field .value {
  font-weight: 600;
}

.us-sub {
  color: #9ca3af;
  font-weight: 500;
}

/* Secciones y tablas */
.us-section {
  margin-top: 24px;
}

.us-h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.us-table-wrap {
  overflow: auto;
}

.u-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161616;
  color: #e5e7eb;
  text-align: left;
  font-weight: 700;
  padding: .75rem;
  border-bottom: 1px solid var(--stroke);
}

.u-table tbody td {
  padding: .75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke) 80%, transparent);
  color: #e5e7eb;
  vertical-align: top;
}

.u-table tbody tr:nth-child(odd) {
  background: #141414;
}

.u-table tbody tr:hover {
  background: #1b1b1b;
}

.us-empty {
  color: #9ca3af;
  text-align: center;
  padding: 1rem;
}

/* Badge rol y botones */
.badge {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: .4rem;
  font-size: .6em;
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 780px) {
  .us-summary {
    grid-template-columns: 1fr;
  }

  .us-avatar {
    width: 96px;
    height: 96px;
  }

  .us-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Admin Â· Pagos ===== */
.pg-shell {
  width: 100%;
  display: flex;
  min-height: calc(100vh - 64px);
}

.pg-content {
  width: 100%;
  flex: 1;
  padding: 0;
}

@media(min-width: 1024px) {
  .pg-content {
    padding: 1.25rem;
  }
}

.pg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pg-title {
  margin: 20px 0 30px 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
}

@media(min-width: 1024px) {
  .pg-title {
    font-size: 1.25rem;
    justify-content: left;



  }
}

.pg-table {
  border-collapse: collapse;
  table-layout: auto;
  width: max-content;
  /* se adapta al contenido */
  min-width: 900px;
  /* fuerza ancho mÃ­nimo razonable */
}

.pg-table th,
.pg-table td {
  white-space: nowrap;
  /* no rompas lÃ­neas */
}

.pg-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* un poco mÃ¡s alto por seguridad */
}

/* Un toque de compacidad en mÃ³vil */
@media (max-width: 1023px) {

  .pg-table th,
  .pg-table td {
    padding: .6rem .8rem;
  }
}


.pg-table-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  /* scroll horizontal aquÃ­ */
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background-clip: padding-box;
  /* respeta el borde redondeado */
  padding-bottom: 8px;
}



/*
.u-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161616;
  color: #e5e7eb;
  text-align: left;
  font-weight: 700;
  padding: .75rem;
  border-bottom: 1px solid var(--stroke);
}

.u-table tbody td {
  padding: .75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke) 80%, transparent);
  color: #e5e7eb;
  vertical-align: top;
}
*/
.u-table tbody tr:nth-child(odd) {
  background: #141414;
}

.u-table tbody tr:hover {
  background: #1b1b1b;
}

.pg-empty {
  color: #9ca3af;
  text-align: center;
  padding: 1rem;
}

/* Pills de estado */
.pill {
  display: inline-block;
  padding: .22rem .55rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: .9em;
  border: 1px solid transparent;
}

.pill-ok {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
  font-size: .6rem;
}

/* paid / succeeded */
.pill-warn {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}

/* pending */
.pill-bad {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

/* failed / canceled */

/* PaginaciÃ³n */
.pg-pager {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn:hover {
  filter: brightness(1.05);
}


.btn.active {
  outline: 1px solid #3b82f6;
}


/* ===== Admin Â· Servicios Â· Clases por disciplina ===== */
.svccl-shell {

  display: flex;
  min-height: calc(100vh - 64px);
}

.svccl-content {
  width: 100%;

  flex: 1;
  padding: 1.25rem;
}

.svccl-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

@media(min-width: 500px) {
  .svccl-head {
    justify-content: space-between;
  }
}

.svccl-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.svccl-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.svccl-add {
  background: #FF2A5D;
  border: 1px solid #FF2A5D;
  color: #fff;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-mini {
  padding: .35rem .6rem;
  border-radius: .4rem;
  font-size: .7em;
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}

/* Toggle disciplina */
.svccl-toggle {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  padding: .35rem .55rem;
  border-radius: .6rem;
}

.svccl-toggle-label {
  color: var(--muted);
  font-size: .92rem;
}

/* Switch base (hereda tu estilo global si ya lo tienes) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border-radius: 26px;
  background: #3a3a3a;
  transition: .25s;
  border: 1px solid #2a2a2a;
}

.slider:before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: .25s;
}

.switch input:checked+.slider {
  background: #15e115;
}

.switch input:checked+.slider:before {
  transform: translateX(24px);
}

.empty-state {
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.svccl-table-wrap {
  overflow: auto;
}

.u-table {
  width: 100%;
}

.u-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #161616;
  color: #e5e7eb;
  text-align: center;
  font-weight: 700;
  padding: .75rem;
  border-bottom: 1px solid var(--stroke);
  font-size: .8rem;
}
.pg-table .is-disabled,
.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none; /* evita clic */
}
.btn-comprobante{
  background: #46b470d9;
  color: #222;
  border-radius: 5px;
  font-size:.7rem;
  border: none;
  cursor: pointer;
  padding: 7px;
}
.btn-comprobante:hover{
    background: #277d48d9;
  transition: .3s ease;
}
.u-table tbody td {
  padding: .75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke) 80%, transparent);
  color: #e5e7eb;
  vertical-align: top;
}

.u-table tbody tr:nth-child(odd) {
  background: #141414;
}

.u-table tbody tr:hover {
  background: #1b1b1b;
}

.ta-center {
  text-align: center;
}

.inline-form {
  display: inline;
}

.svccl-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}

/* Alertas */
.alert {
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--stroke);
}

.alert-error {
  background: #2a0f12;
  border-color: #7f1d1d;
  color: #fecaca;
}



/* ===== Admin Â· Servicios Â· Agregar horario ===== */
.svca-shell {
  display: flex;
  min-height: calc(100vh - 64px);
}

.svca-content {
  flex: 1;
  padding: 1.25rem;
}

.svca-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.svca-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}



/* Form base */
.svca-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
}

.form-row input[type="date"],
.form-row input[type="time"] {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: .6rem;
  background: #111;
  color: #fff;
}

.form-row input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

/* Grid fecha/hora */
.svca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

/* Coaches (coincide con tu estilo existente) */
.coaches-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.coach-item {
  display: block;
}

.coach-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  border: 1px solid var(--stroke);
  color: #e5e7eb;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, outline .12s ease, background .12s ease;
}

.coach-card:hover {
  outline: 1px solid var(--stroke);
  background: #151515;
  transform: scale(1.01);
}

.coach-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22d3ee;
}

.coach-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: #000;
}

.coach-name {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.btn:hover {
  filter: brightness(1.05);
}


/* ===== Admin Â· Clases por dÃ­a ===== */
.cpd-shell {
  display: flex;
  min-height: calc(100vh - 64px);
}

.cpd-content {
  flex: 1;
  padding: 1.25rem;
}

.cpd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cpd-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Tarjetas y contenedor de lista */


.cpd-empty {
  padding: 1rem;
  color: var(--muted);
}

.cpd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: .75rem;
}

/* Item con acento a la izquierda */
.cpd-item {
  position: relative;
  padding: .85rem 1rem;
  overflow: hidden;
}

.cpd-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent, #98fb98);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

/* Cabecera del item */
.cpd-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.cpd-item-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.cpd-time {
  display: inline-block;
  padding: .18rem .5rem;
  border-radius: .4rem;
  background: #111;
  border: 1px solid var(--stroke);
  font-weight: 700;
}

/* Meta */
.cpd-item-meta {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.cpd-item-meta .label {
  color: var(--muted);
}

.cpd-item-meta .value {
  color: var(--text);
  font-weight: 600;
}

/* Responsive refinado */
@media (max-width: 460px) {
  .cpd-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Admin Â· Servicios Â· Editar horario ===== */
.svce-shell {
  display: flex;
  min-height: calc(100vh - 64px);
}

.svce-content {
  flex: 1;
  padding: 1.25rem;
}

.svce-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.svce-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.card {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  box-shadow: 0 10px 28px rgba(2, 6, 23, .25);

}

@media(min-width: 1024px) {
  .card {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--text);
    box-shadow: 0 10px 28px rgba(2, 6, 23, .25);

  }
}

/* Form base */
.svce-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
  font-size: .6rem;
}

@media(min-width: 400px) {
  .form-row label {
    font-size: 1rem;
  }
}

.form-row input[type="date"],
.form-row input[type="time"] {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--stroke);
  border-radius: .6rem;
  background: #111;
  color: #fff;
}

.form-row input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

.svce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

/* Pills informativas */
.pill {
  display: inline-block;
  padding: .25rem .6rem;
  border: 1px solid var(--stroke);
}

.pill-info {
  background: #111;
}

/* Coaches (mismo patrÃ³n que agregar_horario) */
.coaches-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.coach-item {
  display: block;
}

.coach-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  border: 1px solid var(--stroke);
  color: #e5e7eb;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, outline .12s ease, background .12s ease;
}

.coach-card:hover {
  outline: 1px solid var(--stroke);
  background: #151515;
  transform: scale(1.01);
}

.coach-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22d3ee;
}

.coach-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: #000;
}

.coach-name {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

/* Acciones */
.form-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
}

.form-actions>button,
a {
  font-size: .8rem;
}

@media(min-width: 1024px) {

  .form-actions>button,
  a {
    font-size: 1rem;
  }
}

@media(min-width: 500px) {
  .form-actions {
    justify-content: right;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: .6rem;
  text-decoration: none;
  border: 1px solid var(--stroke);
  background: #111;
  color: #fff;
  font-weight: 700;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-sec {
  background: transparent;
  color: var(--text);
}

.btn-sec-cancel {
  background: #e92856;
}

.btn-sec-cancel:hover {
  background: #811630;
}

/* <1024px: ocultar sidebar y buscador; usar panel mÃ³vil desplegable */
@media (max-width: 1023px) {

  /* layout sin columna de sidebar */
  .layout {
    grid-template-columns: 0 1fr;
  }

  .sidebar {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border-right: 0 !important;
    overflow: hidden !important;
  }

  .topbar-inner .search {
    display: none !important;
  }

  /* ocultar buscador */
  #btnSidebarToggle {
    display: inline-flex;
  }

  /* mostrar botÃ³n */
}

/* (Opcional) ocultar botÃ³n hamburguesa en desktop */
@media (min-width: 1024px) {
  #btnSidebarToggle {
    display: none;
  }
}

/* Panel mÃ³vil (despliega de arriba hacia abajo) */
.mobile-sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  background: var(--panel);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
  overflow: hidden;
  max-height: 0;
  /* cerrado */
  transition: max-height .28s ease;
  z-index: 60;
}

.mobile-sidebar.is-open {
  max-height: 70vh;
  /* abierto */
}

/* Ajustes del menÃº dentro del panel mÃ³vil (reusa tus estilos de .nav) */
.mobile-sidebar .nav {
  height: auto;
}

.mobile-sidebar .nav .brand {
  margin: 10px 0 10px;
}

.mobile-sidebar .nav ul {
  padding: 8px;
}

.mobile-sidebar .nav a {
  padding: 12px 14px;
  font-size: 1.2rem;
}

.mobile-sidebar .logout {
  position: static;
  margin: 10px 0;
  left: auto;
}

/* ====== Fix: menÃº dentro del panel mÃ³vil ====== */

/* 1) Cuando estÃ¡ abierto, que el panel pueda hacer scroll interno */
.mobile-sidebar.is-open {
  max-height: 100vh;
  /* un poco mÃ¡s alto por si tu lista es larga */
  overflow: auto;
  /* antes estaba oculto: permite ver todo el menÃº */
}

/* 2) El <nav class="nav"> dentro del panel debe comportarse como contenido fluido */
.mobile-sidebar .nav {
  height: auto !important;
  /* en el sidebar es 95vh; aquÃ­ no */
}

/* 3) Asegura que la lista se vea y se apile normal */
.mobile-sidebar .nav ul {
  display: flex !important;
  flex-direction: column;
  padding: 8px;
}

/* 4) Fuerza que las etiquetas de texto del menÃº se VEAN en mÃ³vil */
.mobile-sidebar .nav a span.label {
  display: inline !important;
}

/* 5) Ãconos alineados normal (no centrados como en modo compacto de 1024â€“1279px) */
.mobile-sidebar .nav a i {
  margin: 0 !important;
}

/* 6) El logout en mÃ³vil no debe estar â€œpegadoâ€ al fondo absoluto del nav */
.mobile-sidebar .logout {
  position: static !important;
  margin: 10px 0;
  left: auto;
}

/* MÃ³vil: que vaya primero el usuario (izquierda) y al extremo derecho el botÃ³n */
@media (max-width: 1023px) {
  .topbar-inner {
    justify-content: space-between;
    /* separa a los extremos */
  }

  .topbar-inner .user {
    order: 1;
    /* primero */
    min-width: 0;
    /* evita desbordes si el nombre es largo */
  }

  #btnSidebarToggle {
    order: 2;
    /* Ãºltimo */
    margin-left: auto;
    /* empuja al extremo derecho */
  }

  /* la bÃºsqueda ya la ocultamos en este breakpoint */
}

/* ===== Topbar mÃ³vil: usuario a la izquierda, botÃ³n a la derecha, sin traslapes */
/* ðŸ”’ FIX DEFINITIVO: topbar mÃ³vil en 2 columnas (usuario | botÃ³n), sin empalmes */
@media (max-width: 1023px) {
  header.topbar {
    /* asegÃºrate que el <header> tiene class="topbar" */
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  header.topbar>.topbar-inner {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    /* usuario ocupa, botÃ³n fijo */
    align-items: center !important;
    column-gap: 12px !important;
    height: var(--topbar-h) !important;
    padding: 0 16px !important;
    width: 100% !important;
  }

  header.topbar>.topbar-inner>* {
    min-width: 0 !important;
  }

  header.topbar>.topbar-inner .user {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    position: relative !important;
    z-index: 2 !important;
  }

  header.topbar>.topbar-inner .user .name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  header.topbar>.topbar-inner #btnSidebarToggle {
    grid-column: 2 !important;
    justify-self: end !important;
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  header.topbar>.topbar-inner .search {
    display: none !important;
  }
}

/* Asegura orden de capas con el panel mÃ³vil */
.mobile-sidebar {
  z-index: 90;
  top: var(--topbar-h);
}

@media (max-width: 1023px) {
  header.topbar .search {
    display: none !important;
  }

  .mobile-sidebar .search {
    display: none !important;
  }

  /* por si acaso */
}

/* ---------------------------------------------------------------------------------- breadcrumbs */
.breadcrumbs {
  margin: 6px 0 14px;
  font-size: .95rem;
  color: #98fb98;
}

.content .breadcrumbs a {
  font-size: .6rem;
}

@media(min-width: 500px) {
  .breadcrumbs a {
    font-size: 1rem;
  }
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  color: #d1d5db;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 8px;
}

.breadcrumbs a:hover {
  background: #1f2937;
  color: #98fb98;
}

.bc-current {
  color: #98fb98;
  font-size: .6rem;
}

@media(min-width: 500px) {
  .bc-current {
    font-size: 1rem;
  }
}

/* ===== Mis clases Â· Cards ===== */
.mcg-title {
  margin: 6px 0 14px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.mcg-wrap {
  width: min(1200px, 95%);
  margin: 0 auto;
}

.mcg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.mcg-card {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, .18);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mcg-head {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.mcg-coach {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.mcg-disc {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: .9;
}

.mcg-head-meta .mcg-title-3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.mcg-head-meta .mcg-sub {
  color: var(--muted);
  font-size: .92rem;
}

.mcg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mcg-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 6px;
}

.mcg-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

/* Wrapper */
.table-wrap.dark{
  overflow:auto; background:#111; border:1px solid #222; border-radius:14px;
}
.minitable.dark{ width:100%; border-collapse:separate; border-spacing:0; color:#e9e9e9; }
.minitable.dark thead th{
  text-align:left; font-weight:600; font-size:.85rem; color:#bdbdbd;
  padding:12px; border-bottom:1px solid #222; background:#151515;
}
.minitable.dark tbody td{
  padding:14px 12px; border-bottom:1px solid #1e1e1e; vertical-align:middle;
}
.minitable.dark tbody tr:hover{ background:#151515; }

.avatar.dark{
  width:42px; height:42px; border-radius:10px; object-fit:cover; border:1px solid #2a2a2a; display:block;
}

.name{ font-weight:600; color:#eee; }
.link.dark{ color:#9cd3ff; text-decoration:none; }
.link.dark:hover{ text-decoration:underline; }

.pill.dark{
  display:inline-block; padding:6px 10px; border-radius:999px; font-size:.75rem; line-height:1;
  border:1px solid #2a2a2a; background:#181818; color:#cfcfcf;
}
.pill--ok.dark   { border-color:#0f3b2a; background:#0b1f18; color:#56df9a; }
.pill--warn.dark { border-color:#4a1f12; background:#24130d; color:#ffb08a; }

.row-actions{ display:flex; gap:10px; align-items:center; }
.btn-ico.dark{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:8px; border:1px solid #2a2a2a; color:#e6e6e6; background:#141414;
}
.btn-ico.dark:hover{ background:#1b1b1b; }
.btn-ico.danger.dark{ border-color:#3a1c1c; color:#ff8e8e; }
.btn-ico.danger.dark:hover{ background:#2a1515; }

.btn.small.dark{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:8px; border:1px solid #2a2a2a; color:#e6e6e6; background:#141414; font-size:.8rem;
}
.btn.small.dark:hover{ background:#1b1b1b; }
.btn.small.ghost.dark{
  background:transparent; border-color:#2a2a2a; color:#a2d7a2;
}
.btn.small.ghost.dark:hover{ background:#162116; }
.filterbar.dark{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    margin: 10px 0 16px; padding:10px; border-radius:12px; background:#111; border:1px solid #222;
  }
  .filterbar .filter-left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .input-wrap{ position:relative; min-width:280px; }
  .input-wrap .ico{
    position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9a9a9a; font-size:.9rem;
  }
  .input-wrap input{
    background:#161616; border:1px solid #262626; color:#eee; border-radius:10px;
    padding:10px 32px 10px 32px; width:100%;
  }
  .input-wrap .clear{
    position:absolute; right:8px; top:50%; transform:translateY(-50%);
    color:#aaa; text-decoration:none; font-size:18px; line-height:1; padding:2px 6px; border-radius:6px;
  }
  .input-wrap .clear:hover{ background:#202020; color:#fff; }

  .select.dark{
    appearance:none; background:#161616; border:1px solid #262626; color:#eee; border-radius:10px; padding:10px 12px;
  }

  .filterbar .result-count{ font-size:.9rem; color:#bbb; }
  
  /* ====== EDITAR STAFF Â· DARK MINIMAL ====== */
.admin-page { color:#eaeaea; }
.admin-page__header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom:16px;
}
.page-title{ font-size:1.25rem; margin:0; color:#fff; }

.form{
  background:#111; border:1px solid #222; border-radius:14px;
  padding:16px; 
}
.grid{
  display:grid; grid-template-columns: repeat(12, 1fr); gap:14px;
}
.form-group{ grid-column: span 6; }
@media (max-width: 920px){ .form-group{ grid-column: span 12; } }
.modal-footer{
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  margin: 10px
}
.form-group label{
  display:block; font-size:.9rem; color:#cfcfcf; margin:0 0 6px;
}
.req{ color:#ff9f7a; font-weight:600; }

/* Inputs + Selects */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="search"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group select,
.select.dark{
  width:100%; background:#161616; color:#eee;
  border:1px solid #2a2a2a; border-radius:10px;
  padding:10px 12px; outline:none; transition:border-color .15s, box-shadow .15s;
}
.form-group input[type="file"]{ padding:8px 10px; }
.form-group select:focus,
.form-group input:focus{
  border-color:#3a8ad6; box-shadow:0 0 0 3px rgba(58,138,214,.15);
}

.help{ display:block; color:#9a9a9a; font-size:.8rem; margin-top:6px; }

/* Avatar preview */
#preview-foto{
  width:96px; height:96px; border-radius:12px; object-fit:cover;
  border:1px solid #2a2a2a; background:#0f0f0f;
}

/* Actions */
.actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:#141414; color:#eaeaea; border:1px solid #2a2a2a;
  padding:10px 14px; border-radius:10px; cursor:pointer; text-decoration:none;
}
.btn:hover{ background:#1b1b1b; }
.btn:active{ transform: translateY(1px); }

.btn.small.dark{ padding:6px 10px; font-size:.85rem; }
.btn.btn-primary{
  background:#1a5fb6; border-color:#1a5fb6; color:#fff;
}
.btn.btn-primary:hover{ background:#1f6bcb; border-color:#1f6bcb; }

/* Estado select */
.select.dark{ appearance:none; }

/* Tarjeta contenedora opcional (para bloques auxiliares) */
.card{
  background:#111; border:1px solid #222; border-radius:14px; padding:14px;
}
.card + .card{ margin-top:12px; }

/* Tabla/inputs compactos en mobile */
@media (max-width:640px){
  .actions{ gap:8px; }
  .btn{ padding:8px 12px; }
}

.btn-close { border:0; background:transparent; width:1.2rem; height:1.2rem; position:relative; cursor:pointer; }
.btn-close::before,.btn-close::after{content:'';position:absolute;left:50%;top:50%;width:1rem;height:2px;background:#555;transform-origin:center;}
.btn-close::before{transform:translate(-50%,-50%) rotate(45deg);}
.btn-close::after{transform:translate(-50%,-50%) rotate(-45deg);}

.form-label { display:block; font-weight:600; margin-bottom:.35rem; }
.form-control { width:100%; height: 40px; padding:.5rem .6rem; border:.1px solid #cccccc4a; border-radius:.375rem; background: var(--panel-2); color: #fff}
.mb-3 { margin-bottom:1rem; }
.actions { display:flex; align-items:center; gap:.5rem; margin-top:.5rem; }
.form-msg { margin-left:.5rem; color:#666; }

.d-none { display:none !important; }

/* Modal base (vanilla) */
.modal { display:none; position:fixed; inset:0; z-index:1060; overflow:auto; }
.modal .modal-dialog { margin: 2rem auto; max-width: 520px; padding: 0 .75rem; }
.modal .modal-header{display: flex;justify-content: space-between;}
.modal .modal-content { background:#262626; border-radius:.5rem; box-shadow:0 10px 30px rgba(0,0,0,.2); border: .2px solid white }

.modal .modal-header, .modal .modal-body { padding:1rem 1.25rem; }
.modal .modal-title { margin:0; }
.modal.show .modal-dialog { animation: modalIn .18s ease-out both; }
@keyframes modalIn { from { transform: translateY(-8px); opacity:.95; } to { transform:none; opacity:1; } }

/* Backdrop creado por JS */
.modal-open { overflow:hidden; }
/* -------- Modal base -------- */
.vmodal { position: fixed; inset: 0; display: none; z-index: 1000; }
.vmodal.vmodal--open { display: block; }
.vmodal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.vmodal__head, .vmodal__foot { padding: 14px 16px; background: #fafafa; }
.vmodal__title { margin: 0; font-size: 18px; font-weight: 700; }
.vmodal__body { padding: 16px; overflow: auto; }
.vmodal__close {
  border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer;
  margin-left: auto;
}

/* Imagen y meta */
.mc-imgwrap {text-align: center;/* margin-bottom: 14px; */}
.mc-imgwrap img { max-width: 100%; height: auto; border-radius: 10px; }
.mc-meta {display: flex;gap: 16px;flex-wrap: wrap;align-items: center;}

/* Utilidades/estilos existentes en tu tema */
.muted { color: #7c8699; font-size: .7rem}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #d1d5db; background: #111827; color:#fff; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; font-weight: 600; transition: transform .02s ease, box-shadow .2s;
}
.btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-sec { border-color:#cbd5e1; }
.btn-ghost { background: #fff; }
.btn-ok { background: #16a34a; color:#fff; border-color:#16a34a; }
.btn-ok:hover { box-shadow: 0 8px 20px rgba(22,163,74,.25); }
.btn-danger { background: #dc2626; color:#fff; border-color:#dc2626; }
.btn-danger:hover { box-shadow: 0 8px 20px rgba(220,38,38,.25); }

/* Pills (usa tus clases; colores exactos los afinamos en el punto 3) */
.pill { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700; }
.pill-ok { background:#16a34a; color:#fff; }
.pill-warn { background:#f472b6; color:#fff; }   /* rosa provisional */
.pill-bad { background:#dc2626; color:#fff; }
/* Contenedor del filtro */
.pg-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: #16181d;          /* negro/gris muy oscuro */
  border: 1px solid #262a33;     /* borde sutil */
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Grupos de campo */
.pg-filters .pg-filters__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  flex: 1 1 220px;
}

/* Etiquetas */
.pg-filters .pg-label {
  color: #b7bdc7;                /* texto gris claro */
  font-size: 0.95rem;
  font-weight: 600;
}

/* Inputs / selects */
.pg-filters .pg-input,
.pg-filters .pg-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  background: #1c2027;           /* campo oscuro */
  color: #e7ecf4;                /* texto claro */
  border: 1px solid #2b313d;     /* borde sutil */
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.pg-filters .pg-input::placeholder {
  color: #6e7685;                /* placeholder tenue */
}

.pg-filters .pg-input:focus,
.pg-filters .pg-select:focus {
  border-color: #3b82f6;         /* azul de foco */
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  background: #1e2430;
}

/* Acciones (usa tus .btn existentes, solo ajusta separaciÃ³n local) */
.pg-filters .pg-filters__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pg-filters .pg-filters__actions .btn {
  min-height: 38px;
  padding: 8px 10px;             /* no invadir estilos globales */
  border-radius: 10px;
}

/* Contador a la derecha */
.pg-filters .pg-filters__counter {
  margin-left: auto;
  color: #8b93a6;
  font-size: 0.95rem;
}
/* Contenedor de la paginaciÃ³n (oscuro, minimalista) */
.pg-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* background: #16181d; */
  /* border: 1px solid #262a33; */
  border-radius: 12px;
  padding: 10px;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Texto/estado opcional (ej. "24 resultados" o "PÃ¡gina 2 de 10") */
.pg-pager .pg-pager__info {
  color: #8b93a6;
  font-size: 0.95rem;
  margin-right: 6px;
}

/* Botones/links de pÃ¡gina (funciona con .pg-page o con .btn) */
.pg-pager .pg-page,
.pg-pager .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2b313d;
  background: #1c2027;
  color: #e7ecf4;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
}

.pg-pager .pg-page:hover,
.pg-pager .btn:hover {
  background: #202634;
  border-color: #3b82f6;
}

.pg-pager .pg-page:focus-visible,
.pg-pager .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
  border-color: #3b82f6;
}

/* Estado activo / pÃ¡gina actual */
.pg-pager .pg-page.active,
.pg-pager .pg-page[aria-current="page"],
.pg-pager .btn.active,
.pg-pager .btn[aria-current="page"] {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Deshabilitados */
.pg-pager .pg-page[aria-disabled="true"],
.pg-pager .btn[aria-disabled="true"],
.pg-pager .pg-page.disabled,
.pg-pager .btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Elipsis entre pÃ¡ginas (no clickeable) */
.pg-pager .pg-ellipsis {
  color: #8b93a6;
  padding: 0 4px;
  user-select: none;
}

/* Responsive: un poco mÃ¡s compacto en mÃ³vil */
@media (max-width: 600px) {
  .pg-pager { gap: 8px; padding: 8px; }
  .pg-pager .pg-page,
  .pg-pager .btn { min-width: 36px; padding: 7px 10px; font-size: 0.9rem; }
}

/* ===== Modal de comprobante (scopeado) ===== */
.vmodal { position: fixed; inset: 0; display: none; z-index: 1000; }
.vmodal.vmodal--open { display: block; }
.vmodal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }

/* Contenedor del diÃ¡logo: tamaÃ±o contenido, no gigante */
.vmodal__dialog {
  position: relative;
  margin: 6vh auto;
  width: 80%;
  height: 550px;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media(min-width: 500px){
  .vmodal__dialog {
  position: relative;
  margin: 6vh auto;
  width: 350px;
  height: 550px;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
}
/* Cabecera minimalista */
.vmodal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e8ee;
  background: #222;
}
.vmodal__title { font-size: .8rem; font-weight: 700; color: #dedede; }
.vmodal__close { background: #00000000; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: #ffffff; opacity: .55; }
.vmodal__close:hover { opacity: .95; }

/* Cuerpo con scroll interno y layout en columnas */
.vmodal__body {
  /* flex: 1 1 auto; */
  overflow: auto;
  padding: 0;
  display: grid;
  min-height: 0;
  position: relative;
}

/* Panel de imagen: fondo oscuro para resaltar, centrado */
.vmodal .mc-imgwrap {
  width:100%;
  background: #03220fcf;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.vmodal #mc-img {
  max-width: 100%;
  height: 100%;/* evita que se salga del modal */
  object-fit: contain;
  border-radius: 8px;
  object-fit:cover;
}

/* Panel de metadatos a la derecha */
.vmodal .mc-meta {
  padding: 14px;
  background: #222222;
  color: #d7d7d7;
  display: grid;
  gap: 10px;
}
.vmodal .mc-coins-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vmodal .mc-coins-edit input[type="number"] {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

/* Pie siempre visible; el scroll queda solo en el body */
.vmodal__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  /* padding: 10px 16px; */
  border-top: 1px solid #e6e8ee;
  background: #222222;
  justify-content: center;
}

/* Modo oscuro (si tu layout ya es oscuro, opcional) */
@media (prefers-color-scheme: dark) {
  .vmodal__dialog { background: #171a21; color: #e6eaf2; }
  .vmodal__head { background: #1d212a; border-bottom-color: #2a3140; }
  .vmodal__title { color: #e6eaf2; }
  .vmodal__close { color: #e6eaf2; }
  .vmodal .mc-imgwrap { background: #0b0d12; }
  .vmodal .mc-meta { background: #1b2029; color: #c7cdd8; border-left-color: #2a3140; }
  .vmodal .mc-coins-edit input[type="number"] {
    background: #0f1218; color: #e6eaf2; border-color: #2b313d;
  }
  .vmodal__foot { background: #171a21; border-top-color: #2a3140; }
}
.au-search{
  width: 330px;
  height: 30px;
  position: fixed;
}
#au-search{
  position: relative;
  width: 100%;
  padding:10px;
  border: none;
  height: auto;

  
}
.au-results{
    margin-top:40px;
    min-height:500px;
    overflow:auto;
    border:1px solid #eee;
    border-radius:8px;
    padding:6px;
}
/* CONTENEDOR GENERAL */
.canc-hist {
    margin-top: 1.5rem;
}

/* HEADER: título + botón a la derecha */
.canc-hist__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.canc-hist__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* que el botón no se corte en responsive */
.canc-hist__back {
    white-space: nowrap;
}

/* CARD / TABLA */
.canc-hist__card {
    border-radius: 18px;       /* similar a las demás cards */
    overflow: hidden;
}

.canc-hist__card-body {
    padding: 0;
}

/* WRAPPER PARA SCROLL HORIZONTAL SI HACE FALTA */
.canc-hist__table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* TABLA */
.canc-hist__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.canc-hist__table thead th {
    background-color: #121212;   /* ajusta al mismo header de tus tablas */
    border-bottom: 1px solid #222;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: none;
    white-space: nowrap;
}

.canc-hist__table tbody td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* FILAS HOVER (si ya lo tienes global puedes omitir) */
.canc-hist__table tbody tr:hover {
    background-color: #181818;
}

/* FOTO / AVATAR */
.canc-hist__th-foto,
.canc-hist__td-foto {
    width: 72px;
}

.canc-hist__td-foto {
    text-align: center;
}

.canc-hist__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #2c2c2c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* Inicial del usuario */
.canc-hist__avatar-initial {
    display: inline-block;
}

/* MENSAJE VACÍO */
.canc-hist__empty {
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 0.95rem;
    color: #aaa;
}
.canc-hist__table thead th,
.canc-hist__table tbody td {
    text-align: left;          /* todos alineados igual por defecto */
}

/* Para la columna Foto: centrar tanto encabezado como datos */
.canc-hist__th-foto,
.canc-hist__td-foto {
    width: 72px;
    text-align: center;
}

/* Ya no necesitas esto duplicado si lo tenías antes */
.canc-hist__td-foto {
    /* text-align: center;  <- ya está arriba */
}
.coin-delta {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.coin-delta--pos {
  background: rgba(0, 180, 0, 0.16);
  color: #7dff7d;
}

.coin-delta--neg {
  background: rgba(220, 0, 0, 0.2);
  color: #ff9a9a;
}
/* Cancelación dentro de 3h (sin reembolso) */
.canc-hist__row-tardia {
  background: #ffe5e5 !important;      /* rojo suave */
  color: #8a0000;
  font-weight: 600;
}

.canc-hist__row-tardia td {
  border-color: #f5b5b5;
}
/* ===========================
   Estadísticas - Dark Table UI
   =========================== */

.tabla-wrapper.tabla-estadisticas{
  background: transparent;
}

/* tabla base */
.tabla-estadisticas .tabla{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border-radius: 14px;
  overflow: hidden;
}

/* header */
.tabla-estadisticas thead th{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 14px;
}

/* rows */
.tabla-estadisticas tbody tr td{
  background: rgba(0,0,0,.38);
  color: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 12px 14px;
  vertical-align: top;
}

/* zebra sutil */
.tabla-estadisticas tbody tr:nth-child(even) td{
  background: rgba(0,0,0,.30);
}

.tabla-estadisticas .muted{ opacity:.65; }

/* columnas (ajusta si quieres) */
.tabla-estadisticas .col-fecha{ width: 120px; }
.tabla-estadisticas .col-hora{ width: 90px; }
.tabla-estadisticas .col-disciplina{ width: 150px; }
.tabla-estadisticas .col-coach{ width: 150px; }

/* Pills de usuario (links) */
.tabla-estadisticas a.u-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  margin: 0 8px 8px 0;
  transition: background .12s ease, border-color .12s ease, transform .12s ease, opacity .12s ease;
  max-width: 240px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabla-estadisticas a.u-pill:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

/* Botón VER destacado */
.tabla-estadisticas .btn-ver{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255, 0, 96, .18); /* acento tipo tus botones */
  color: rgba(255,255,255,.95);
  font-weight: 700;
  font-size: 12px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.tabla-estadisticas .btn-ver:hover{
  background: rgba(255, 0, 96, .26);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

/* Detalle desplegable */
.tabla-estadisticas tr.fila-detalle{ display:none; }
.tabla-estadisticas tr.fila-detalle.is-open{ display: table-row; }

.tabla-estadisticas tr.fila-detalle td{
  background: rgba(0,0,0,.38);
  padding: 0 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tabla-estadisticas .detalle-card{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 14px;
}

.tabla-estadisticas .detalle-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 10px;
}

.tabla-estadisticas .detalle-head strong{
  color: rgba(255,255,255,.92);
  font-size: 13px;
}

/* botón cerrar discreto */
.tabla-estadisticas .btn-cerrar{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor:pointer;
  transition: background .12s ease, transform .12s ease;
}
.tabla-estadisticas .btn-cerrar:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.tabla-estadisticas .detalle-list{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 180px;
  overflow:auto;
  padding-right: 6px;
}

/* scroll */
.tabla-estadisticas .detalle-list::-webkit-scrollbar { width: 8px; }
.tabla-estadisticas .detalle-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.tabla-estadisticas .detalle-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}
/* KPI general */
.kpi {
    background:#111;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:22px 28px;
  min-width:200px;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}

/* KPI que es link */
.kpi a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Hover elegante */
.kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Número */
.kpi-num {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Texto */
.kpi-label {
    font-size: 14px;
    opacity: .7;
}
.kpi:hover {
    border-bottom: 3px solid #ff3d6d;
}

/* ===========================
   Estadísticas - Responsive móvil
   Tabla -> Cards
   =========================== */
@media (max-width: 900px){

  /* El wrapper se vuelve un contenedor con scroll */
  .tabla-wrapper.tabla-estadisticas{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }

  /* La tabla NO se comprime: se mantiene ancha y se scrollea */
  .tabla-wrapper.tabla-estadisticas .tabla{
    min-width: 760px;  /* ajusta si quieres, pero con 5 cols es ideal */
  }

  /* Que los chips no se aplasten y sigan viéndose bien */
  .tabla-estadisticas .clientes-preview{
    flex-wrap: nowrap;
  }

  /* Para que Cliente(s) tenga ancho razonable */
  .tabla-estadisticas .col-clientes{
    width: 260px;
  }
}
@media (max-width: 900px){
  .tabla-wrapper.tabla-estadisticas::-webkit-scrollbar{
    height: 10px;
  }
  .tabla-wrapper.tabla-estadisticas::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.18);
    border-radius: 999px;
  }
  .tabla-wrapper.tabla-estadisticas::-webkit-scrollbar-track{
    background: rgba(255,255,255,.06);
    border-radius: 999px;
  }
}

/* =========================================
   Estadísticas - Top horarios más llenos
   ========================================= */
.top-fill-card{
  width: 88%;
  margin: 0 auto 26px auto;
  background: #111 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.top-fill-head{
  padding: 18px 20px 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #111 !important;
}

.top-fill-head h3{
  margin: 0;
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-fill-head h3 i{
  color: #ff7a59;
}

.top-fill-head p{
  margin: 6px 0 0 0;
  color: rgba(255,255,255,.62) !important;
  font-size: .9rem;
}

.top-fill-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #111 !important;
}

.top-fill-table{
  width: 88%;
  table-layout: fixed;
  min-width: 100%;
  border-collapse: collapse;
  color: rgba(255,255,255,.88) !important;
  background: #111 !important;
}

.top-fill-table th,
.top-fill-table td{
  width: 25%;
}

.top-fill-table th:last-child,
.top-fill-table td:last-child{
  width: 28%;
}

.top-fill-table th:nth-child(1),
.top-fill-table td:nth-child(1){
  width: 25%;
}

.top-fill-table th:nth-child(2),
.top-fill-table td:nth-child(2){
  width: 17%;
}

.top-fill-table th:nth-child(3),
.top-fill-table td:nth-child(3){
  width: 30%;
}

.top-fill-table thead th{
  text-align: left;
  font-weight: 700;
  font-size: .92rem;
  color: rgba(255,255,255,.88) !important;
  background: #171717 !important;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.top-fill-table tbody td{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .95rem;
  color: rgba(255,255,255,.88) !important;
  background: transparent !important;
}

.top-fill-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,.02) !important;
}

.top-fill-table tbody tr:nth-child(even){
  background: rgba(255,255,255,.01) !important;
}

.top-fill-table tbody tr:hover{
  background: rgba(255,255,255,.04) !important;
}

.ocup-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ocup-high{
  background: rgba(34,197,94,.16);
  color: #86efac;
  border-color: rgba(34,197,94,.28);
}

.ocup-mid{
  background: rgba(250,204,21,.14);
  color: #fde68a;
  border-color: rgba(250,204,21,.24);
}

.ocup-low{
  background: rgba(239,68,68,.14);
  color: #fca5a5;
  border-color: rgba(239,68,68,.24);
}

@media (max-width: 900px){
  .top-fill-card{
    width: 95%;
  }
}
/* =========================================
   Estadísticas - Top usuarios de la semana
   ========================================= */
.top-users-card{
  width: 88%;
  margin: 0 auto 26px auto;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.top-users-head{
  padding: 18px 20px 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.top-users-head h3{
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-users-head h3 i{
  color: #facc15;
}

.top-users-head p{
  margin: 6px 0 0 0;
  color: rgba(255,255,255,.62);
  font-size: .9rem;
}

.top-users-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-users-table{
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  color: rgba(255,255,255,.88);
  table-layout: fixed;
}

.top-users-table thead th{
  text-align: left;
  font-weight: 700;
  font-size: .92rem;
  color: rgba(255,255,255,.88);
  background: #171717;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.top-users-table tbody td{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .95rem;
  color: rgba(255,255,255,.88);
}

.top-users-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,.02);
}

.top-users-table tbody tr:nth-child(even){
  background: rgba(255,255,255,.01);
}

.top-users-table tbody tr:hover{
  background: rgba(255,255,255,.04);
}

.top-users-table th:nth-child(1),
.top-users-table td:nth-child(1){
  width: 34%;
}

.top-users-table th:nth-child(2),
.top-users-table td:nth-child(2),
.top-users-table th:nth-child(3),
.top-users-table td:nth-child(3),
.top-users-table th:nth-child(4),
.top-users-table td:nth-child(4){
  width: 14%;
}

.top-users-table th:nth-child(5),
.top-users-table td:nth-child(5){
  width: 24%;
}

.btn-ver-perfil{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.btn-ver-perfil:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

@media (max-width: 900px){
  .top-users-card{
    width: 95%;
  }
}

.kpi-activos{
  width:90%;
  margin:30px auto;
  display:flex;
  gap:20px;
  justify-content:center;
  flex-wrap:wrap;
}

.kpi-box{
  background:#111;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:22px 28px;
  min-width:200px;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}

.kpi-num{
  font-size:28px;
  font-weight:700;
  color:#fff;
}

.kpi-label{
  margin-top:6px;
  font-size:13px;
  color:rgba(255,255,255,.65);
}

@media(max-width:900px){
  .kpi-activos{
    width:95%;
  }
}

/* =========================================
   Estadísticas - Estado de clases
   ========================================= */
.estado-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  border:1px solid transparent;
  white-space:nowrap;
}

.estado-activa{
  background: rgba(34,197,94,.16);
  color: #86efac;
  border-color: rgba(34,197,94,.28);
}

.estado-cancelada{
  background: rgba(239,68,68,.14);
  color: #fca5a5;
  border-color: rgba(239,68,68,.24);
}
/* =========================================
   Filas de clases canceladas
   ========================================= */

.fila-cancelada{
  background: rgba(239,68,68,0.08);
}

.fila-cancelada:hover{
  background: rgba(239,68,68,0.12);
}

/* opcional: texto un poco más tenue */
.fila-cancelada td{
  opacity: 0.9;
}
.cu-item.is-closed {
  opacity: 0.65;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.cu-badge-closed {
  background: rgba(239, 68, 68, .16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, .25);
}