/* BILLARCAN - base.min.css - Auto-generado */

/* === colores.css === */
/* ============================================================
   BILLARCAN — Variables de color
   Unificado para web pública y panel admin
   ============================================================ */

:root {
  /* Fondos */
  --bg-base:      #080808;
  --bg-surface:   #111111;
  --bg-surface2:  #161616;
  --bg-surface3:  #202020;

  /* Texto */
  --text-primary: #ffffff;
  --text-muted:   #777777;
  --text-faint:   #555555;

  /* Acento (blanco, elegante) */
  --accent:        #ffffff;
  --accent-hover:  #e8e8e8;
  --accent-light:  rgba(255,255,255,0.10);

  /* Semánticos */
  --success:       #22c55e;
  --success-light: rgba(34,197,94,0.12);
  --danger:        #ef4444;
  --danger-light:  rgba(239,68,68,0.12);
  --warning:       #f59e0b;
  --warning-light: rgba(245,158,11,0.12);

  /* Bordes */
  --border:        rgba(255,255,255,0.09);
  --border-light:  rgba(255,255,255,0.18);
}


/* === tipografia.css === */
/* ============================================================
   BILLARCAN — Tipografía
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-base: 15px;
}

/* === sombras.css === */
/* ============================================================
   BILLARCAN — Sombras
   ============================================================ */

:root {
  --shadow:    none;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55);
}


/* === espaciado.css === */
/* ============================================================
   BILLARCAN — Espaciado y layout
   ============================================================ */

:root {
  --radius:    6px;
  --radius-lg: 8px;

  --topnav-h:  56px;
  --header-h:  48px;
}


/* === reset.css === */
/* ============================================================
   BILLARCAN — Reset y estilos base
   Compartido por web pública y admin
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #080808;
  color-scheme: dark;
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

img { max-width: 100%; display: block; }

input, select, textarea, button {
  font: inherit;
}


/* === botones.css === */
/* ============================================================
   BILLARCAN — Botones (unificado)
   ============================================================ */

/* Botón base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover { transform: translateY(-1px); }

/* Variantes */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-surface3);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-secondary:hover { background: var(--border-light); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--text-faint);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }

/* Tamaños */
.btn-sm  { padding: 4px 10px; font-size: 0.8rem; }
.btn-lg  { padding: 10px 20px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* Botón CTA (página pública) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-cta:hover { opacity: 0.88; }

/* Botón outline (página pública) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--text-primary); }

/* Botón nav */
.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--text-primary); color: var(--bg-base); }


/* === badges.css === */
/* ============================================================
   BILLARCAN — Badges (unificado)
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light);  color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info    { background: var(--accent-light);  color: var(--accent); }
.badge-muted   { background: var(--bg-surface3);   color: var(--text-muted); }


/* === spinner.css === */
/* ============================================================
   BILLARCAN — Spinner y estados vacíos (unificado)
   ============================================================ */

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.loading-row td {
  padding: 32px;
  text-align: center;
}

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

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 0.9rem;
}


/* === toast.css === */
/* ============================================================
   BILLARCAN — Toast notifications (unificado)
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(18,23,32,0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  font-size: 0.875rem;
  min-width: 260px;
  max-width: 360px;
  animation: slideIn 0.2s ease;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--accent); }

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


/* === utilidades.css === */
/* ============================================================
   BILLARCAN — Utilidades (unificado)
   ============================================================ */

.hidden        { display: none !important; }
.flex          { display: flex; }
.flex-1        { flex: 1; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 12px; }
.mt-1          { margin-top: 4px; }
.mt-2          { margin-top: 8px; }
.mt-3          { margin-top: 12px; }
.mt-4          { margin-top: 16px; }
.mb-4          { margin-bottom: 16px; }
.text-muted    { color: var(--text-muted); }
.text-small    { font-size: 0.8rem; }
.text-right    { text-align: right; }
.text-center   { text-align: center; }
.fw-bold       { font-weight: 700; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

