/*
 * cedo mi asiento — Estilos personalizados mínimos
 * Tailwind CSS CDN cubre el 95%; esto agrega lo que no está en el base stylesheet
 */

/* ── Variables CSS ───────────────────────────── */
:root {
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --dark-900: #0a0a0f;
  --dark-800: #13131a;
  --dark-700: #1e1e2e;
  --dark-600: #2a2a3e;
}

/* ── Reset mínimo ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ── Scrollbar premium (Webkit) ─────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-800); }
::-webkit-scrollbar-thumb { background: var(--dark-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a5a; }

/* ── Inputs datetime-local (color en dark) ──── */
input[type="datetime-local"],
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

/* ── Animación fade-in ───────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.25s ease-out;
}

/* ── Card hover con glow verde ───────────────── */
.card-glow:hover {
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.08);
}

/* ── Skeleton loader ─────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--dark-700) 25%, var(--dark-600) 50%, var(--dark-700) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Botón loading state ─────────────────────── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Line clamp (truncar texto) ──────────────── */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Gradiente de texto animado ──────────────── */
.gradient-text-animate {
  background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a, #4ade80);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Pulse verde para badges ─────────────────── */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.pulse-green {
  animation: pulse-green 2s ease-in-out infinite;
}

/* ── Toast container ─────────────────────────── */
#ts-toast-container {
  z-index: 9999;
}

/* ── Responsive table ────────────────────────── */
@media (max-width: 640px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Transición suave para modales ───────────── */
[id^="modal-"] {
  transition: opacity 0.2s ease;
}

/* ── Focus ring accesible ────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* ── Prevent layout shift en imágenes ────────── */
img {
  max-width: 100%;
  height: auto;
}
