/* Estilos para la animación 3D de BUENA SEÑAL */

.bs-3d-animation {
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* Ancho máximo más amplio */
  margin: 0 auto;
  /* Centrar el contenedor */
  aspect-ratio: 16/9;
  /* Proporción más ancha */
  display: none;

  @media (width >=1024px) {
    display: block;
  }
}

.bs-3d-animation canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: pointer;
  object-fit: contain;
  /* Mantener proporciones */
  margin: 0 auto;
  /* Centrar horizontalmente */
}

.bs-3d-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bs-3d-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #000000;
  border-radius: 50%;
  animation: bs-3d-spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes bs-3d-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.bs-3d-loading p {
  margin: 0;
  color: #666666;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .bs-3d-animation {
    border-radius: 4px;
  }

  .bs-3d-loading p {
    font-size: 12px;
  }

  .bs-3d-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
  }
}

/* Asegurar que el canvas ocupe todo el espacio */
.bs-3d-animation canvas {
  position: absolute;
  top: 0;
  left: 0;
}