/* --- TRANSICIONES ENTRE PÁGINAS --- */
body {
  animation: fadeIn 0.3s ease-in-out;
}

main {
  animation: slideUp 0.4s ease-out;
}

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

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

/* --- TRANSICIONES PARA ELEMENTOS INTERACTIVOS --- */
a, button, .cta-button {
  transition: all 0.2s ease-in-out;
}

/* --- TRANSICIONES DE PÁGINA CON SWUP --- */
.transition-fade {
  transition: 0.4s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
  transform: translateY(20px);
}

html.is-leaving .transition-fade {
  opacity: 0;
  transform: translateY(-20px);
}

/* --- LOADING DE PANTALLA COMPLETA --- */
#fullscreen-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in-out;
}

#fullscreen-loading .loading-content {
  text-align: center;
  color: #fff;
}

#fullscreen-loading .loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border: 4px solid rgba(240, 185, 11, 0.2);
  border-top-color: #f0b90b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#fullscreen-loading p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0b90b;
  margin: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}