/* Splash Screen CSS - SIG CAZEL PWA */

/* Splash screen container */
.pwa-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #730111 0%, #5a0d0e 50%, #41090b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.pwa-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Logo container */
.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: splash-fade-in 1.2s ease-out;
}

/* Logo icon */
.splash-icon {
  width: 120px;
  height: 120px;
  background: transparent;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: splash-scale 1s ease-out;
}

.splash-icon svg,
.splash-icon img {
  width: 120px;
  height: auto;
  max-height: 120px;
  filter: brightness(0) invert(1);
}

/* App name */
.splash-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.splash-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Loading spinner */
.splash-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: splash-spin 1s linear infinite;
}

/* Animaciones */
@keyframes splash-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splash-scale {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* Responsive */
@media (max-width: 480px) {
  .splash-icon {
    width: 100px;
    height: 100px;
  }
  
  .splash-icon svg,
  .splash-icon img {
    width: 100px;
    height: auto;
    max-height: 100px;
  }
  
  .splash-title {
    font-size: 28px;
  }
  
  .splash-subtitle {
    font-size: 14px;
    padding: 0 24px;
  }
}

/* Tema oscuro */
@media (prefers-color-scheme: dark) {
  .pwa-splash {
    background: linear-gradient(135deg, #730111 0%, #5a0d0e 50%, #41090b 100%);
  }
  
  .splash-icon {
    background: transparent;
  }
}

/* Orientación horizontal */
@media (orientation: landscape) and (max-height: 480px) {
  .pwa-splash {
    flex-direction: row;
    gap: 32px;
  }
  
  .splash-logo {
    margin-bottom: 0;
  }
  
  .splash-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 24px;
  }
  
  .splash-icon svg,
  .splash-icon img {
    width: 80px;
    height: auto;
    max-height: 80px;
  }
  
  .splash-title {
    font-size: 24px;
    margin-bottom: 4px;
  }
  
  .splash-subtitle {
    font-size: 14px;
    margin-bottom: 0;
  }
}

