/* 
 * styles.css — Estilos globales JQ
 */

/* ── Variables CSS globales ── */
:root {
  --color-crimson: #A31D1D;
  --color-crimson-dark: #8b1515;
  --color-crimson-light: #cf2929;
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-2: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f5f5f5;
  --color-text-muted: #9ca3af;
}

/* ── Reset y base ── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar personalizada ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-crimson);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-crimson-light);
}

/* ── Selección de texto ── */
::selection {
  background-color: rgba(163, 29, 29, 0.4);
  color: #fff;
}

/* ── Utilidades personalizadas ── */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-hover:hover {
  background: rgba(163, 29, 29, 0.08);
  border-color: rgba(163, 29, 29, 0.3);
  box-shadow: 0 8px 48px rgba(163, 29, 29, 0.15);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #e5e5e5 50%, #A31D1D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #cf2929 0%, #A31D1D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-crimson {
  background: linear-gradient(135deg, #A31D1D 0%, #8b1515 100%);
  color: #fff;
  border: 1px solid rgba(163, 29, 29, 0.5);
  transition: all 0.3s ease;
}

.btn-crimson:hover {
  box-shadow: 0 0 30px rgba(163, 29, 29, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #A31D1D;
  border: 1px solid #A31D1D;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(163, 29, 29, 0.1);
  box-shadow: 0 0 20px rgba(163, 29, 29, 0.2);
}

/* ── Tabla del admin ── */
.admin-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem;
}

.admin-table tr:hover td {
  background: rgba(163, 29, 29, 0.04);
}

/* ── Animaciones de entrada ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Delay helpers */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
