/* PWA Splash Screen Styles - Coherente con Tailwind y modo oscuro */

/* Variables CSS para colores */
:root {
  --splash-bg-light: #fdf2f8; /* from-pink-50 */
  --splash-bg-dark: #1f1f23;
  --splash-text-light: #831843; /* pink-900 */
  --splash-text-dark: #f9a8d4; /* pink-300 */
  --splash-accent: #ec4899; /* pink-500 */
}

/* Splash screen base */
.pwa-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--splash-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
}

.pwa-splash-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
  animation: splash-pulse 2s ease-in-out infinite;
}

.pwa-splash-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--splash-text-light);
  margin-bottom: 0.5rem;
  text-align: center;
}

.pwa-splash-subtitle {
  font-size: 0.875rem;
  color: var(--splash-text-light);
  opacity: 0.8;
  text-align: center;
  margin-bottom: 2rem;
}

.pwa-splash-loading {
  width: 32px;
  height: 32px;
  border: 3px solid transparent;
  border-top: 3px solid var(--splash-accent);
  border-radius: 50%;
  animation: splash-spin 1s linear infinite;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  .pwa-splash {
    background: var(--splash-bg-dark);
  }
  
  .pwa-splash-title,
  .pwa-splash-subtitle {
    color: var(--splash-text-dark);
  }
}

/* Animaciones */
@keyframes splash-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes splash-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade out cuando la app está lista */
.pwa-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 640px) {
  .pwa-splash-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
  }
  
  .pwa-splash-title {
    font-size: 1.25rem;
  }
  
  .pwa-splash-subtitle {
    font-size: 0.75rem;
    padding: 0 1rem;
  }
}
