/* =====================================================================
   CRM Aurum — estilos compartidos
   Todo lo que antes estaba repetido en <style> de cada vista.
   ===================================================================== */

:root {
    --aurum-gold: #d4af37;
    --aurum-ink: #0f172a;
}

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

body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.heading,
.heading-font { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; }

.aurum-gold { color: var(--aurum-gold); }

/* ---------- Sidebar ---------- */
.sidebar { transition: transform .3s ease; }
.nav-link { transition: background-color .2s ease, color .2s ease; border-left: 3px solid transparent; }
.nav-link:hover { background-color: #1e2937; color: #fff; }
.nav-link.active { background-color: #0f172a; color: #fff; border-left-color: var(--aurum-gold); }

@media (max-width: 1023px) {
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; transform: translateX(-100%); display: flex !important; }
    .sidebar.is-open { transform: none; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5); }
}
.sidebar-backdrop { display: none; }
.sidebar-backdrop.is-open { display: block; }

/* ---------- Tarjetas ---------- */
.premium-card { transition: transform .2s ease, box-shadow .2s ease; }
.premium-card:hover { transform: translateY(-2px); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.premium-shadow { box-shadow: 0 25px 50px -12px rgb(15 23 42 / .25), 0 10px 10px -6px rgb(15 23 42 / .15); }

/* ---------- Componentes reutilizables (opcionales) ---------- */
.au-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.au-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.1rem; border-radius: 1rem; font-size: .875rem; font-weight: 600; transition: background-color .15s, box-shadow .15s, color .15s; cursor: pointer; }
.au-btn:disabled { opacity: .55; cursor: not-allowed; }
.au-btn-primary { background: var(--aurum-gold); color: #fff; box-shadow: 0 8px 16px -8px rgb(212 175 55 / .6); }
.au-btn-primary:hover { background: #b8962a; }
.au-btn-dark { background: var(--aurum-ink); color: #fff; }
.au-btn-dark:hover { background: #000; }
.au-btn-light { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.au-btn-light:hover { background: #f8fafc; }
.au-input { width: 100%; border: 1px solid #e2e8f0; border-radius: .875rem; padding: .55rem .8rem; font-size: .875rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.au-input:focus { outline: none; border-color: var(--aurum-ink); box-shadow: 0 0 0 3px rgb(15 23 42 / .08); }
.au-badge { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600; }

/* Inputs de login / recuperación */
.input-focus { transition: all .2s cubic-bezier(.4, 0, .2, 1); }
.input-focus:focus { outline: none; box-shadow: 0 0 0 3px rgb(15 23 42 / .08); border-color: var(--aurum-ink); }

/* Zona de arrastre de archivos */
.dropzone { border: 2px dashed #cbd5e1; border-radius: 1.5rem; transition: border-color .15s, background-color .15s; }
.dropzone.is-over { border-color: var(--aurum-gold); background: #fbf7e9; }

/* Scrollbars finos */
.thin-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

@media print {
    .sidebar, .no-print { display: none !important; }
}
