/* Overlay principal */
.orientation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenedor del mensaje */
.orientation-message {
  text-align: center;
  max-width: 300px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Icono animado */
.orientation-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: bounce 2s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Título principal */
.orientation-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
  line-height: 1.3;
}

/* Subtítulo */
.orientation-subtitle {
  font-size: 16px;
  color: #666666;
  line-height: 1.4;
  margin: 0;
}

/* Animación de rebote */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-12px) scale(1.05);
  }
  60% {
    transform: translateY(-6px) scale(1.02);
  }
}

/* Variante para tablets */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .orientation-overlay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .orientation-message {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .orientation-icon {
    font-size: 72px;
  }
  
  .orientation-title {
    font-size: 22px;
  }
  
  .orientation-subtitle {
    font-size: 18px;
  }
}

/* Modo oscuro (si el sistema lo soporta) */
@media (prefers-color-scheme: dark) {
  .orientation-overlay {
    background: #1a1a1a;
  }
  
  .orientation-message {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .orientation-title {
    color: #ffffff;
  }
  
  .orientation-subtitle {
    color: #cccccc;
  }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .orientation-icon {
    animation: none;
  }
}