/* ======================================================
   RESET GLOBAL
====================================================== */

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* 🔒 nunca scroll global */
  background: #f7f7fc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ======================================================
   LAYOUT GENERAL MONITOR
====================================================== */

.monitor-layout {
  height: 100vh;
  display: grid;
  grid-template-rows:
    40vh    /* zona superior (slider + video) */
    55vh    /* zona inferior (tarjetas) */
    5vh;    /* pie */
  background: #f8f9fa;
}

/* ======================================================
   ZONA SUPERIOR
====================================================== */

.zona-superior {
  overflow: hidden;
  padding: 0.5rem 1rem;
}

/* ======================================================
   SPLIDE – CINTA CONTINUA
====================================================== */

#colasSlider {
  width: 100%;
  height: 100%;
  padding: 10px;
}

#colasSlider .splide__track {
  height: 100%;
  overflow: hidden;
}

#colasSlider .splide__list {
  height: auto; /* ⚠️ NO forzar altura */
  transform: translateX(-2px);
}

#colasSlider .splide__slide {
  display: flex;
  align-items: stretch;
  height: auto !important;
  max-width: 320px; /* 👈 ancho real del slide */
}

/* ======================================================
   TARJETA DEL SLIDER
====================================================== */

.card-slider {
  width: 300px !important;   /* 👈 define el tamaño real */
  height: auto !important;
  margin: 0;
  padding: 1.5rem;

  border: 0;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #f1f3f5);

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

/* ======================================================
   TEXTO DEL SLIDER
====================================================== */

#colasSlider .slider-title {
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

#colasSlider .slider-qty {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
}


#colasSlider .slider-nombre {
  font-size: clamp(1.2rem, 2.2vw, 2.1rem);
  font-weight: 700;
  margin-top: 0.25rem;
  line-height: 1.2;
}

/* ======================================================
   ZONA INFERIOR (TARJETAS / LISTADOS)
====================================================== */

.zona-inferior {
  overflow: hidden;
}

.contenedor-tarjetas {
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
}

/* Ocultar scrollbar (Chrome / Edge) */
.contenedor-tarjetas::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Firefox */
.contenedor-tarjetas {
  scrollbar-width: none;
  -ms-overflow-style: none;
}


.pendientes-cola  {
  font-size: clamp(7rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
}




/* ======================================================
   PIE
====================================================== */

.zona-pie {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.zona-pie:hover {
  opacity: 1;
}

/* ======================================================
   VIDEO (SI APLICA)
====================================================== */

.video-wrapper {
  width: 100%;
  height: 100%;
}

.video-wrapper .ratio {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

/* Modo video expandido */
body.video-expand-active {
  overflow: hidden;
}

body.video-expand-active #videoPlayList {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border: none;
}

/* ======================================================
   DESACTIVAR INTERACCIONES INNECESARIAS EN TV
====================================================== */

.splide__slide:focus {
  outline: none;
}















/* ======================================================
   MODAL DE LLAMADOS
====================================================== */

#llamadosActivos .llamando_modulo {
  font-size: 0.7em!important;
}

#llamadosActivos .llamando_codigo {
  font-size: 1.2em!important;
}

#llamadosActivos .llamando_nombre {
  font-size: 1em!important;
}
