/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #000;
}

/* CONTENEDOR */
.container {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

/* VIDEO */
video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

/* OVERLAY */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding-top: 80px;
  text-align: center;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.6) 100%
  );
}

/* TEXTO */
h1 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);

  opacity: 0;
  transform: translateY(-20px);
  animation: fadeIn 1.2s ease-out forwards;
}

/* ANIMACIÓN */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LÍNEA DECORATIVA */
h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 2px;
}

/* BOTÓN SONIDO */
#sound-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  padding: 10px 18px;
  font-size: 14px;

  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;

  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

#sound-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .overlay {
    padding-top: 60px;
  }

  #sound-btn {
    bottom: 20px;
    right: 20px;
    font-size: 12px;
  }
}