/* Loader inline - CSS puro, funciona antes de que React cargue */
#loader-inline {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#loader-inline .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  letter-spacing: -0.05em;
  color: #e0e0e0;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

#loader-inline .logo span {
  color: #00f0ff;
}

#loader-inline .line {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  margin-top: 8px;
  animation: expandLine 0.6s ease 0.8s forwards;
}

#loader-inline .progress-bar {
  width: 192px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 24px;
  opacity: 0;
  animation: fadeIn 0.3s ease 0.8s forwards;
}

#loader-inline .progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00f0ff, #8b5cf6, #ec4899);
  border-radius: 999px;
  transition: width 0.8s ease;
}

#loader-inline .status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  margin-top: 16px;
  opacity: 0;
  animation: fadeIn 0.3s ease 0.8s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
  to { width: 100%; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Cortinas - se activan con clase .closing */
#loader-inline .curtain {
  position: absolute;
  left: 0;
  right: 0;
  height: 51%;
  background: #0a0a0a;
  z-index: 101;
}

#loader-inline .curtain-top { top: 0; }
#loader-inline .curtain-bottom { bottom: 0; }

#loader-inline.closing .curtain-top {
  animation: slideUp 0.5s ease forwards;
}

#loader-inline.closing .curtain-bottom {
  animation: slideDown 0.5s ease forwards;
}

@keyframes slideUp {
  to { transform: translateY(-100%); }
}

@keyframes slideDown {
  to { transform: translateY(100%); }
}
