/* Video transition styles */
.video-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease-out;
  overflow: hidden;
  /* Asegurar que esté visible por defecto cuando aparece */
  opacity: 1;
}

.video-screen.fade-out {
  opacity: 0;
}

.transition-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Overlay sutil solo para el texto de carga */
.video-overlay {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.9;
}

.video-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.8),
    0 0 12px rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-align: center;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.loading-dots {
  display: inline-block;
}

.loading-dots .dot {
  display: inline-block;
  animation: blink 1.5s infinite;
}

.loading-dots .dot:nth-child(2) { 
  animation-delay: .3s; 
}

.loading-dots .dot:nth-child(3) { 
  animation-delay: .6s; 
}

@keyframes blink {
  0%, 20%, 80%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Responsivo */
@media (max-width: 768px) {
  .video-text { 
    font-size: 1.2rem; 
  }
  .video-overlay {
    bottom: 40px;
  }
}

@media (max-width: 480px) {
  .video-text { 
    font-size: 1rem; 
  }
  .video-overlay {
    bottom: 30px;
  }
}