/* ═════════════════════════════════════════════════════════════
   UTILITIES CSS
   
   Estilos para:
   - Loading indicators y spinners
   - Toast notifications
   - Clases helper (.hidden, etc)
   - Estados de carga general
═════════════════════════════════════════════════════════════ */

/* ── LOADING INDICATOR ── */
.loading-indicator {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 2px solid var(--gray-200)
}

.loading-indicator.visible {
  display: flex
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loading-text {
  font-size: 14px;
  color: var(--gray-600)
}

/* ── TOAST NOTIFICATIONS ── */
.toast {
  position: fixed;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-800);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all .3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  white-space: nowrap
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1
}

/* ── LOADING OVERLAY (BOOKING) ── */
.booking-loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all .3s
}

.booking-loading.visible {
  opacity: 1;
  visibility: visible
}

.booking-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

.booking-loading-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600)
}

/* ── HELPER CLASSES ── */
.hidden {
  display: none !important
}

/* ── ANIMATIONS ── */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(min-width:768px) {
  .toast {
    bottom: auto;
    top: 50%;
    transform: translateX(-50%) translateY(calc(-50% - 20px));
  }

  .toast.show {
    transform: translateX(-50%) translateY(-50%);
  }
}

[x-cloak] { display: none !important; }

.link-invalid-screen {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.link-invalid-card {
  max-width: 420px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 40px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.link-invalid-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #DC2626;
}
.link-invalid-icon svg { width: 100%; height: 100%; }
.link-invalid-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 12px;
}
.link-invalid-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #6B7280;
  margin: 0;
}
