/* =============================================
   TV - Estilos específicos
   ============================================= */

:root {
  --text: #000;
}

/* TV pública */
.tv-logos {
  gap: 6vw;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.tv-logos img {
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

/* Imagen / Spinner */
.tv-main-row .col-6:first-child > div {
  border-bottom-left-radius: 16px;
}

#imgActual {
  opacity: 0;
  transition: opacity 0.3s;
  object-fit: contain;
  border-radius: inherit;
}

#spinnerImg {
  color: var(--accent);
}

/* Panel de texto */
.tv-panel-texto {
  background-image: url('../img/tv/fnd_col.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow-y: auto;
  border-bottom-right-radius: 16px;
}

#txtTurno {
  width: 100%;
  font-size: clamp(1.2rem, 1.6vw, 1.938rem);
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  color: var(--text);
}

#txtTurno .titulo, #txtTurno .subtitulo {
  font-size: clamp(1.938rem, 2.6vw, 2.5rem);
  font-family: var(--font-bold);
  letter-spacing: -0.01em;
}

#txtTurno .titulo {
  line-height: 1;
}

#txtTurno .subtitulo {
  line-height: 0.9;
  padding: 20px 0 70px 0;
}

#txtTurno .descripcion {
  line-height: 0.95;
  text-align: left;
}

#txtTurno .bloque {
  margin-bottom: 1.5rem;
}

#txtTurno .bloque:last-child {
  margin-bottom: 0;
}

#txtTurno .bloque p {
  margin-bottom: 0;
}

#txtTurno p.campo-label {
  font-weight: 700;
}

#txtTurno p.campo-valor {
  font-weight: 400;
}

/* Reportes TV */
.categoria-bloque:last-child {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.categoria-contenido {
  height: 350px;
}

/* Responsive */
@media (width <= 768px) {
  body.reportes-app {
    overflow-y: auto;
    display: block;
  }

  .tv-logos {
    flex-wrap: wrap;
  }

  .tv-logos img {
    height: 50px;
  }

  .container-fluid.flex-grow-1 {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .tv-main-row {
    flex-direction: column;
  }

  .tv-main-row > .col-6 {
    width: 100%;
    height: auto;
  }

  #txtTurno {
    font-size: 1.25rem;
  }

  .reportes-page {
    min-height: 100vh;
    flex: none;
  }

  .reportes-page > .categoria-bloque {
    height: auto !important;
  }

  .categoria-contenido {
    height: auto !important;
  }

  .tv-logos,
  .tv-main-row .col-6:first-child > div,
  .tv-panel-texto,
  .reportes-logo {
    border-radius: 0 !important;
  }
}
