/* PWA Splash Screen Styles - NHC */

/* Splash Screen Container */
.pwa-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.pwa-splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Logo Container */
.splash-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: splashFadeIn 1.5s ease-out;
}

/* Logo Principal */
.splash-logo {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: splashBounce 2s ease-out infinite;
}

.splash-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1e40af;
  text-align: center;
  line-height: 1;
}

/* Título Principal */
.splash-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Subtítulo */
.splash-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 48px;
}

/* Loading Spinner */
.splash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.splash-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: splashSpin 1s linear infinite;
}

.splash-loading-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Animaciones */
@keyframes splashFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes splashSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .splash-title {
    font-size: 28px;
  }
  
  .splash-subtitle {
    font-size: 14px;
    padding: 0 20px;
  }
  
  .splash-logo {
    width: 100px;
    height: 100px;
  }
  
  .splash-logo-text {
    font-size: 18px;
  }
}

/* Modo Landscape en móvil */
@media (max-height: 500px) and (orientation: landscape) {
  .splash-title {
    font-size: 24px;
    margin-bottom: 4px;
  }
  
  .splash-subtitle {
    font-size: 12px;
    margin-bottom: 24px;
  }
  
  .splash-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }
}

/* Tema Oscuro */
@media (prefers-color-scheme: dark) {
  .pwa-splash-screen {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
}

/* Reduce Motion para Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-spinner {
    animation: none;
  }
  
  .splash-logo-container {
    animation: none;
  }
}
