body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.background-video {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#bgvideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.4);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4vh 2vw;
  width: 100%;
  box-sizing: border-box;
}

.logo-top {
  height: 15vh;
  max-height: 120px;
  width: auto;
}

.buttons {
  display: flex;
  gap: 1em;
}

.btn {
  background: transparent;
  border: 3px solid white;
  color: white;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background-color: white;
  color: black;
}

@media (max-width: 768px) {
    #bgvideo {
      position: fixed;
      top: 0;
      left: 50%;
      height: 100vh;         /* iguala la altura del viewport */
      width: auto;           /* ajusta el ancho proporcionalmente */
      transform: translateX(-50%);
      object-fit: contain;   /* asegura que el video no se recorte */
      z-index: -1;
      background-color: black; /* útil si hay espacio sobrante a los lados */
    }    
  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 3em;
    padding: 8vh 2vw;
  }

  .logo-top {
    height: 12vh;
    max-height: 100px;
  }

  .btn {
    padding: 0.5em 1em;
    font-size: 0.9em;
    border-width: 2px;
    border-radius: 8px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
}

