/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f6f3eb 0%, #f0ebe0 50%, #f6f3eb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
  overflow: hidden;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  animation: fadeInUp 1.5s ease-out 0.5s both;
  position: relative;
  z-index: 2;
}

.splash-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(45, 76, 57, 0.3);
  animation: logoFloat 4s ease-in-out infinite;
  border: 4px solid rgba(45, 76, 57, 0.2);
  background: #ffffff;
  padding: 20px;
}

.splash-title {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #2d4c39;
  margin-bottom: 0.8rem;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 10px rgba(45, 76, 57, 0.2);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.splash-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: #2d4c39;
  margin-bottom: 3rem;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0.8;
}

.splash-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.splash-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite both;
}

.splash-dot:nth-child(1) {
  animation-delay: 0s;
}

.splash-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .splash-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 2rem;
  }
  
  .splash-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .splash-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .splash-loading {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
  }
  
  .splash-title {
    font-size: 1.4rem;
  }
  
  .splash-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Nuevas animaciones mejoradas */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 2px 10px rgba(45, 76, 57, 0.2);
  }
  100% {
    text-shadow: 0 2px 10px rgba(45, 76, 57, 0.2), 0 0 20px rgba(45, 76, 57, 0.3);
  }
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes geometricShift {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(20px) rotate(180deg);
    opacity: 0.1;
  }
  100% {
    transform: translateX(0) rotate(360deg);
    opacity: 0.3;
  }
}

/* Fondo dinámico empresarial */
.splash-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(45, 76, 57, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(45, 76, 57, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(45, 76, 57, 0.05) 0%, transparent 50%);
  animation: backgroundShift 12s ease-in-out infinite;
  z-index: 1;
}

.splash-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(45, 76, 57, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(45, 76, 57, 0.02) 50%, transparent 70%);
  animation: geometricShift 15s ease-in-out infinite;
  z-index: 1;
}

/* Variables CSS para consistencia */
:root {
  --primary-color: #2d4c39;
  --secondary-color: #f6f3eb;
  --accent-color: #f6f3eb;
  --text-dark: #2d2d2d;
  --text-light: #ffffff;
  --background-light: #fafafa;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}
