html,
body.tv-body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0d10;
  -webkit-tap-highlight-color: transparent;
}

.tv {
  --tv-fondo: #0b0d10;
  --tv-cristal: rgba(16, 18, 22, 0.52);
  --tv-cristal-fuerte: rgba(16, 18, 22, 0.78);
  --tv-borde: rgba(255, 255, 255, 0.14);
  --tv-texto: #ffffff;
  --tv-texto-suave: rgba(255, 255, 255, 0.68);
  --tv-acento: #ffffff;
  --tv-radio: 14px;
  --tv-fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--tv-fondo);
  color: var(--tv-texto);
  font-family: var(--tv-fuente);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.tv svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tv-lienzo,
.tv-lienzo canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

.tv.tv-arrastrando .tv-lienzo canvas {
  cursor: grabbing;
}

.tv.tv-sobre-suelo .tv-lienzo canvas {
  cursor: pointer;
}

.tv-sombra-superior,
.tv-sombra-inferior {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}

.tv-sombra-superior {
  top: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.tv-sombra-inferior {
  bottom: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.tv-capa-puntos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  transition: opacity 0.45s ease;
}

.tv-punto {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.25s ease;
}

.tv-punto-disco {
  position: absolute;
  left: -36px;
  top: -36px;
  width: 72px;
  height: 72px;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: 50% 50%;
}

.tv-punto-disco::before,
.tv-punto-disco::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.tv-punto-disco::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 52%, rgba(255, 255, 255, 0) 70%);
  border: 2px solid var(--tv-color-punto, rgba(255, 255, 255, 0.92));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 6px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.tv-punto-disco::after {
  inset: 26px;
  background: var(--tv-color-punto, #ffffff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  animation: tv-latido 2.4s ease-in-out infinite;
}

.tv-punto-onda {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--tv-color-punto, rgba(255, 255, 255, 0.85));
  pointer-events: none;
  animation: tv-onda 2.6s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

@keyframes tv-onda {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.tv-titulo-escena.tv-entrando {
  animation: tv-titulo 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes tv-titulo {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.tv-punto-disco.tv-con-icono::after {
  display: none;
}

.tv-punto-disco img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  object-fit: contain;
  pointer-events: none;
}

.tv-punto:hover .tv-punto-disco::before,
.tv-punto.tv-activo .tv-punto-disco::before {
  transform: scale(1.12);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.2) 55%, rgba(255, 255, 255, 0) 72%);
}

.tv-punto-etiqueta {
  position: absolute;
  left: 0;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--tv-cristal-fuerte);
  border: 1px solid var(--tv-borde);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--tv-texto);
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tv-punto-etiqueta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tv-color-punto, #ffffff);
  flex-shrink: 0;
}

.tv-punto-etiqueta.tv-oculta {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
}

.tv-punto:hover .tv-punto-etiqueta.tv-oculta,
.tv-punto.tv-activo .tv-punto-etiqueta.tv-oculta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes tv-latido {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.72);
    opacity: 0.75;
  }
}

.tv-cursor-suelo {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tv-cursor-suelo.tv-visible {
  opacity: 1;
}

.tv-cursor-anillo {
  position: absolute;
  left: -30px;
  top: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transform-origin: 50% 50%;
}

.tv-cursor-suelo.tv-con-destino .tv-cursor-anillo {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.tv-cursor-texto {
  position: absolute;
  left: 0;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tv-cristal-fuerte);
  border: 1px solid var(--tv-borde);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tv-cursor-suelo.tv-con-destino .tv-cursor-texto {
  opacity: 1;
}

.tv-cabecera {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) 22px 0 22px;
  pointer-events: none;
}

.tv-marca,
.tv-acciones {
  pointer-events: auto;
}

.tv-marca {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 8px 18px 8px 8px;
  border-radius: var(--tv-radio);
  background: var(--tv-cristal);
  border: 1px solid var(--tv-borde);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.tv-logo {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 9px;
  background: #ffffff;
  padding: 4px 8px;
  box-sizing: border-box;
}

.tv-marca-textos {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 6px;
}

.tv-etiqueta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-texto-suave);
}

.tv-titulo-escena {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
  transition: opacity 0.3s ease;
}

.tv-acciones {
  display: flex;
  gap: 8px;
}

.tv-chip-3d {
  display: none;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0d10;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tv-chip-3d.tv-visible {
  display: inline-block;
}

.tv-miniatura em {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b0d10;
  font-family: var(--tv-fuente);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tv-boton {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--tv-borde);
  background: var(--tv-cristal);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--tv-texto);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  outline: none;
}

.tv-boton:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tv-boton:active {
  transform: scale(0.94);
}

.tv-boton:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.tv-boton.tv-on {
  background: #ffffff;
  color: #0b0d10;
}

.tv-boton[disabled] {
  opacity: 0.35;
  cursor: default;
}

.tv-solo-movil {
  display: none;
}

.tv.tv-tactil .tv-solo-movil {
  display: inline-flex;
}

.tv-zoom {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-joystick {
  display: none;
  position: absolute;
  left: 18px;
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 6;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--tv-cristal);
  border: 1px solid var(--tv-borde);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  touch-action: none;
  transition: opacity 0.2s ease;
  opacity: 0.75;
}

.tv.tv-tactil .tv-joystick {
  display: block;
}

.tv.tv-modo-clasico .tv-joystick,
.tv.tv-modo-clasico .tv-solo-3d {
  display: none !important;
}

.tv-joystick.tv-activo {
  opacity: 1;
}

.tv-joystick-mando {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.tv-joystick:not(.tv-activo) .tv-joystick-mando {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-estancias {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-estancias.tv-plegada {
  transform: translateY(calc(100% - 52px - max(18px, env(safe-area-inset-bottom))));
}

.tv-estancias-asa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--tv-borde);
  background: var(--tv-cristal);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--tv-texto);
  font-family: var(--tv-fuente);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.tv-estancias-asa svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

.tv-estancias.tv-plegada .tv-estancias-asa svg {
  transform: rotate(0deg);
}

.tv-tira {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  padding: 10px;
  border-radius: 18px;
  background: var(--tv-cristal);
  border: 1px solid var(--tv-borde);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  scrollbar-width: none;
  box-sizing: border-box;
}

.tv-tira::-webkit-scrollbar {
  display: none;
}

.tv-miniatura {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  height: 84px;
  border-radius: 11px;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #1a1d22;
  outline: none;
  transition: transform 0.2s ease;
}

.tv-miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  transform: scale(1.6);
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.82);
}

.tv-miniatura:hover img {
  transform: scale(1.75);
  filter: brightness(1);
}

.tv-miniatura span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 9px 7px 9px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  color: #ffffff;
  font-family: var(--tv-fuente);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-miniatura::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0);
  transition: box-shadow 0.2s ease;
}

.tv-miniatura.tv-actual::after {
  box-shadow: inset 0 0 0 2px #ffffff;
}

.tv-miniatura.tv-actual img {
  filter: brightness(1);
}

.tv-miniatura:focus-visible::after {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.tv-aviso {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 6;
  transform: translate(-50%, -8px);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--tv-cristal-fuerte);
  border: 1px solid var(--tv-borde);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tv-aviso.tv-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tv-carga {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #1b1f26 0%, #0b0d10 70%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.tv-carga.tv-lista {
  background: radial-gradient(ellipse at 50% 40%, rgba(11, 13, 16, 0.35) 0%, rgba(11, 13, 16, 0.78) 75%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tv-carga.tv-fuera {
  opacity: 0;
  visibility: hidden;
}

.tv-carga-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.tv-carga-icono svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.4;
  animation: tv-girar 3.2s linear infinite;
}

@keyframes tv-girar {
  to {
    transform: rotate(360deg);
  }
}

.tv-carga-texto {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tv-texto-suave);
}

.tv-carga-barra {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.tv-carga-barra span {
  display: block;
  width: 0;
  height: 100%;
  background: #ffffff;
  transition: width 0.3s ease;
}

.tv-intro {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tv-carga.tv-lista .tv-carga-icono,
.tv-carga.tv-lista .tv-carga-texto,
.tv-carga.tv-lista .tv-carga-barra {
  display: none;
}

.tv-carga.tv-lista .tv-intro {
  display: flex;
  animation: tv-aparecer 0.5s ease both;
}

@keyframes tv-aparecer {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tv-intro-fila {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.tv-intro-fila svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.tv-intro-boton {
  margin-top: 12px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #0b0d10;
  font-family: var(--tv-fuente);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.tv-intro-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.tv-intro-botones .tv-intro-boton {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tv-intro-boton svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.tv-intro-secundario {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.tv-boton-guiada {
  width: auto;
  padding: 0 18px 0 14px;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--tv-fuente);
  font-size: 13px;
  font-weight: 700;
}

.tv-boton-guiada svg {
  width: 16px;
  height: 16px;
}

.tv-boton-guiada .tv-icono-play {
  fill: currentColor;
  stroke: none;
}

.tv-boton-guiada .tv-icono-pausa,
.tv-boton-guiada.tv-on .tv-icono-play {
  display: none;
}

.tv-boton-guiada.tv-on .tv-icono-pausa {
  display: block;
  stroke-width: 2.6;
}

.tv-intro-boton:hover {
  transform: translateY(-1px);
}

.tv-intro-boton:active {
  transform: scale(0.97);
}

.tv-no-disponible {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-no-disponible img {
  max-width: 100%;
}

@media (max-width: 640px) {
  .tv-cabecera {
    padding: max(12px, env(safe-area-inset-top)) 12px 0 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tv-marca {
    align-self: flex-start;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tv-logo {
    height: 32px;
    max-width: 90px;
  }

  .tv-titulo-escena {
    font-size: 16px;
    max-width: 60vw;
  }

  .tv-acciones {
    justify-content: flex-end;
  }

  .tv-boton {
    width: 40px;
    height: 40px;
  }

  .tv-zoom {
    display: none;
  }

  .tv-boton-guiada span {
    display: none;
  }

  .tv-boton-guiada {
    width: 40px;
    padding: 0;
  }

  .tv-miniatura {
    width: 104px;
    height: 68px;
  }

  .tv-intro-fila {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tv-punto-disco::after,
  .tv-punto-onda,
  .tv-titulo-escena.tv-entrando,
  .tv-carga-icono svg {
    animation: none;
  }
}

.tv-medida {
  display: none;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.tv-medida.tv-visible {
  display: inline-block;
}

.tv-capa-info {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.tv-info-punto {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0;
  margin: -17px 0 0 -17px;
  padding: 0 14px 0 0;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 18, 22, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--tv-fuente);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
  transition: background 0.2s ease;
}

.tv-info-icono {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b0d10;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  flex-shrink: 0;
}

.tv-info-nombre {
  margin-left: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.2s ease;
}

.tv-info-punto:hover .tv-info-nombre,
.tv-info-punto.tv-activo .tv-info-nombre {
  margin-left: 8px;
  max-width: 220px;
  opacity: 1;
}

.tv-info-punto:not(:hover):not(.tv-activo) {
  padding-right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tv-info-punto.tv-activo {
  background: rgba(16, 18, 22, 0.86);
}

.tv-ficha {
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 7;
  width: 300px;
  max-width: calc(100vw - 44px);
  box-sizing: border-box;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: var(--tv-cristal-fuerte);
  border: 1px solid var(--tv-borde);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transform: translate(-12px, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tv-ficha.tv-visible {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.tv-ficha-titulo {
  display: block;
  padding-right: 28px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tv-ficha-texto {
  margin: 8px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.tv-ficha-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.tv-ficha-cerrar svg {
  width: 14px;
  height: 14px;
}

.tv-subtitulos {
  position: absolute;
  left: 50%;
  bottom: calc(160px + env(safe-area-inset-bottom));
  z-index: 6;
  width: min(720px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tv-subtitulos.tv-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tv-subtitulo-titulo {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.tv-subtitulo-texto {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.tv-subtitulo-texto:empty {
  display: none;
}

.tv-plano {
  position: absolute;
  right: 22px;
  top: calc(84px + env(safe-area-inset-top));
  z-index: 5;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(11, 13, 16, 0.6);
  border: 1px solid var(--tv-borde);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.tv-plano.tv-visible {
  opacity: 1;
  transform: scale(1);
}

.tv-plano svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tv-plano .tv-plano-suelo {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  stroke-linejoin: round;
}

.tv-plano .tv-plano-mueble {
  fill: rgba(255, 255, 255, 0.32);
  stroke: none;
}

.tv-plano .tv-plano-vista {
  fill: rgba(255, 255, 255, 0.28);
  stroke: none;
}

.tv-plano .tv-plano-yo {
  fill: #ffffff;
  stroke: none;
}

.tv.tv-en-guiada .tv-joystick,
.tv.tv-en-guiada .tv-cursor-suelo {
  display: none !important;
}

@media (max-width: 640px) {
  .tv-plano {
    width: 112px;
    height: 112px;
    top: auto;
    bottom: calc(150px + env(safe-area-inset-bottom));
    right: 12px;
  }

  .tv-ficha {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(150px + env(safe-area-inset-bottom));
    width: auto;
    transform: translate(0, 12px);
  }

  .tv-ficha.tv-visible {
    transform: translate(0, 0);
  }

  .tv-subtitulos {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
}

.tv-boton-idioma {
  font-family: var(--tv-fuente);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tv-boton-grabar {
  display: none;
  width: auto;
  gap: 8px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  font-family: var(--tv-fuente);
  font-size: 13px;
  font-weight: 700;
}

.tv.tv-modo-grabar .tv-boton-grabar {
  display: inline-flex;
}

.tv-grabar-punto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5484d;
}

.tv-boton-grabar.tv-on .tv-grabar-punto {
  animation: tv-grabando 1s ease-in-out infinite;
}

@keyframes tv-grabando {
  50% {
    opacity: 0.3;
  }
}

.tv.tv-grabando .tv-lienzo canvas {
  object-fit: contain;
  background: #0b0d10;
}

.tv.tv-grabando .tv-capa-puntos,
.tv.tv-grabando .tv-capa-info,
.tv.tv-grabando .tv-subtitulos,
.tv.tv-grabando .tv-ficha,
.tv.tv-grabando .tv-estancias,
.tv.tv-grabando .tv-plano,
.tv.tv-grabando .tv-zoom {
  visibility: hidden;
}
