:root {
  --orange-glow: #ff8c00;
  --orange-brand: #ff7a00;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #050505;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Video de fondo */
#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Canvas de Partículas */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* BOTÓN RETORNO AL HOME (Estilo HUD / Cyberpunk) */
.back-home-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(255, 140, 0, 0.15);
}

.back-home-btn svg {
  transition:
    transform 0.3s ease,
    stroke 0.3s ease;
  stroke: var(--orange-glow);
}

.back-home-btn:hover {
  border-color: var(--orange-glow);
  background: rgba(255, 140, 0, 0.15);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.4);
  transform: translateX(-3px);
}

.back-home-btn:hover svg {
  transform: translateX(-4px);
}

/* CONTENEDOR DE TEXTO (Tarjeta HUD de Alta Visibilidad) */
#text-container {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  padding: 10px 24px;
  background: rgba(8, 8, 8, 0.75);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(255, 140, 0, 0.2);
  transition:
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s ease;
  width: fit-content;
  pointer-events: none;
  max-width: 90vw;
  white-space: nowrap;
}

#text-container.hidden {
  opacity: 0;
  transform: translateX(-50%) scale(0.95);
}

/* Tipografía y Neón para el H1 */
#text-container h1 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 8px;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 140, 0, 0.8),
    0 0 20px rgba(255, 140, 0, 0.4);
}

/* Subtítulo */
#text-container p {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 2px;
  color: #dddddd;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Responsivo para Celulares */
@media (max-width: 768px) {
  .back-home-btn {
    top: 20px;
    left: 20px;
    padding: 8px 14px;
    font-size: 0.7rem;
  }

  #text-container {
    bottom: 8%;
    padding: 14px 24px;
  }

  #text-container h1 {
    font-size: 24px;
    letter-spacing: 4px;
  }

  #text-container p {
    font-size: 12px;
  }
}
