/* ============================================================
   variables.css  –  Design tokens & reset
   (mismos tokens de marca que NexaCall/clinicaDental)
   ============================================================ */

:root {
  --petroleo:   #0C4F4A;   /* color de marca: fondos oscuros, titulares */
  --tinta:      #12211F;   /* texto principal */
  --hueso:      #F7F4EF;   /* fondo por defecto */

  --brand-50:  #E8F3F1;
  --brand-100: #D2E8E4;
  --brand-300: #27C9B2;    /* verde claro: sobre fondo petróleo */
  --brand-500: #1B8A7A;    /* verde: gráficos y fondos */
  --brand-600: #187C6E;    /* verde texto (4,6:1) */
  --brand-700: #0C4F4A;    /* petróleo */
  --brand-900: #083A36;

  --amber-50:  #FDF3E8;
  --amber-100: #FBEBD9;
  --amber-200: #F4D3B0;
  --amber-300: #ECA567;    /* ámbar claro: sobre fondo petróleo */
  --amber-500: #E8944A;    /* ámbar: gráficos y fondos */
  --amber-600: #A85A15;    /* ámbar texto (4,6:1) */
  --amber-700: #8C4A10;

  --red-50:  #FBE9E6;
  --red-100: #FBE3DF;
  --red-300: #E68F80;
  --red-500: #D9503D;
  --red-600: #A32E23;
  --red-700: #7E2219;

  /* Neutrals (cálidos, tinta / gris / hueso) */
  --gray-0:   #ffffff;
  --gray-50:  #FBF9F6;
  --gray-100: #F1EDE6;
  --gray-200: #E4DFD6;
  --gray-300: #D0CABF;
  --gray-400: #6B7976;
  --gray-500: #5C6B68;     /* gris: texto secundario */
  --gray-600: #47534F;
  --gray-700: #2E3D3A;
  --gray-800: #12211F;     /* tinta */
  --gray-900: #0B1614;

  /* Sobre fondo petróleo (sidebar) */
  --on-dark:       #F7F4EF;
  --on-dark-muted: #A9C7C2;

  /* Semantic */
  --success:  #1B8A7A;
  --warning:  #E8944A;
  --danger:   #C4402F;
  --info:     #1B8A7A;

  /* Estado de conversaciones / llamadas */
  --estado-pendiente: #E8944A;
  --estado-resuelto:  #1B8A7A;
  --estado-escalado:  #C4402F;

  /* Layout */
  --sidebar-w:  340px;
  --list-w:     380px;
  --header-h:   60px;

  /* Hilo de mensajes (estilo WhatsApp, solo lectura) */
  --wa-bg:        #EFEAE1;
  --wa-out:       #D4EDE7;
  --wa-out-dark:  #083A36;
  --wa-in:        #ffffff;
  --wa-header:    #0C4F4A;
  --wa-header-2:  #1B8A7A;

  /* Typography */
  --font-ui:   'Plus Jakarta Sans', system-ui, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Transition */
  --t-fast:   120ms ease;
  --t-normal: 220ms ease;
  --t-slow:   380ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--hueso);
  color: var(--tinta);
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}
img, svg { display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Scrollbars ─────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--gray-300); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Utilities ──────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.flex       { display: flex; }
.flex-col   { display: flex; flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.flex-1 { flex: 1; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.text-sm    { font-size: .8rem; }
.text-xs    { font-size: .72rem; }
.text-muted { color: var(--gray-500); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.rounded-full { border-radius: var(--r-full); }
