* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden !important;
  overflow-y: hidden;
  background: black;
  font-family: sans-serif;
  touch-action: pan-y;
}

.video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}

.background-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(20px) brightness(0.5);
  object-fit: cover;
}

video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#video0 {
  z-index: 6;
}

#video1 {
  z-index: 5;
  display: none;
}

#video2 {
  z-index: 4;
  display: none;
}

#video3 {
  z-index: 3;
  display: none;
}

#video4 {
  z-index: 2;
  display: none;
}

#video5 {
  z-index: 1;
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
}

#unsupported-browser {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: white;
}

/* Pantalla de Carga Premium */
#start-fallback {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #111111 0%, #000000 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  width: 100%;
}

#loader-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 5px;
  color: #3251dc;
  /* CAMBIAR COLOR AQUI - Bienvenidos */
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

#loader-subtitle {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #aaaaaa;
  margin-bottom: 20px;
}

#loader-progress-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3251dc, #5e7af5);
  /* CAMBIAR COLOR AQUI - Barra de carga (los 2 colores del degradado) */
  transition: width 0.3s ease;
  box-shadow: 0 0 8px #460e42;
  /* CAMBIAR COLOR AQUI - Sombra de la barra */
}

#loader-percentage {
  font-size: 14px;
  font-weight: 400;
  color: #3251dc;
  /* CAMBIAR COLOR AQUI - Porcentaje 0% */
  letter-spacing: 1px;
}

/* Spinner animado dorado */
.loader-ring {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(212, 175, 55, 0.1);
  border-top: 2px solid #3251dc;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.loader-ring.ready {
  animation: pulse-gold 2s infinite ease-in-out;
  border: 2px solid #3251dc;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-gold {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
  }
}

#start-button {
  background: transparent;
  border: 1px solid #3251dc;
  /* CAMBIAR COLOR AQUI - Borde Botón Comenzar */
  color: #3251dc;
  /* CAMBIAR COLOR AQUI - Texto Botón Comenzar */
  padding: 12px 35px;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  animation: pulse-button 1.5s infinite;
}

#start-button:hover {
  background: #d4af37;
  color: black;
  box-shadow: 0 0 15px #d4af37;
}

@keyframes pulse-button {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.continue-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 11;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  color: white;
  cursor: pointer;
  font-size: 12px;
  display: none;
  border-radius: 12px;
  animation: pulse 1.5s infinite;
}

.continue-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  margin: 0 auto;
  display: block;
  max-width: 100%;
}

.buttons-container {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 11;
  padding: 0 20px;
  overflow-x: auto;
  max-width: 100%;
}

.buttons-container.enabled {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.button-img {
  width: 67px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.button-img:hover {
  opacity: 0.8;
}

.inactive-link {
  pointer-events: none;
}

@media (max-width: 480px) {
  .button-img {
    width: 65px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .button-img {
    width: 80px;
  }
}

@media (min-width: 769px) {
  .button-img {
    width: 90px;
  }
}

#main-footer {
  width: 100%;
  background: black;
  color: white;
  text-align: center;
  padding: 10px 8px;
  font-size: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#main-footer a {
  color: #b81304;
  text-decoration: none;
}

#main-footer a:hover {
  text-decoration: underline;
}

#main-footer a.inactive-link {
  pointer-events: none;
}

#bottom-bar:not(.enabled),
#main-footer:not(.enabled) {
  pointer-events: none;
}

#video1-thumbnail {
  position: relative;
  z-index: 6;
  /* encima del video1 */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}