/* Identidad por cuenta dentro de Chatwoot. Se activa con <html data-cuenta="N"> (ver cuentas.js).
   Chatwoot pinta su acento con la escala --blue-1..12 (tripletas RGB) y las clases n-brand / n-blue.
   Cambiar la escala dentro de la cuenta cambia todo el acento sin tocar nada más. */

/* Cuenta 2: CÍTRICO No.7. Referencia: citrico7.com — verde botella, dorado, crema de piedra, serif. */
html[data-cuenta="2"] {
  --blue-1: 248 250 247;
  --blue-2: 241 246 240;
  --blue-3: 228 239 228;   /* fondo del ítem activo */
  --blue-4: 211 229 211;
  --blue-5: 189 216 189;
  --blue-6: 162 199 162;
  --blue-7: 128 176 128;
  --blue-8: 84 143 84;
  --blue-9: 36 71 40;      /* el verde de la etiqueta: acento principal */
  --blue-10: 28 58 32;
  --blue-11: 22 46 26;     /* texto en acento */
  --blue-12: 15 28 18;
  --text-blue: 12 24 14;
  --border-blue: 36, 71, 40, .5;
  --border-blue-strong: 22 46 26;
  --solid-blue: 211 229 211;
  --solid-blue-2: 248 250 247;
}
/* En modo oscuro Chatwoot pone «dark» en <body> y ahí redefine su escala azul: la de arriba, que vive en <html>, quedaba
   tapada y N7 salía azul (visto en la captura de David, 17-oct). Esta es la misma marca en oscuro: los verdes de la escala
   «grass» de Radix (la familia de colores de Chatwoot) y el verde de la etiqueta como acento, igual que en claro. */
html[data-cuenta="2"] body.dark, html[data-cuenta="2"].dark body {
  --blue-1: 14 21 17;
  --blue-2: 20 26 21;
  --blue-3: 27 42 30;      /* fondo del ítem activo */
  --blue-4: 29 58 36;
  --blue-5: 37 72 45;
  --blue-6: 45 87 54;
  --blue-7: 54 103 64;
  --blue-8: 62 121 73;
  --blue-9: 36 71 40;      /* el verde de la etiqueta, como en claro */
  --blue-10: 45 87 50;
  --blue-11: 113 208 131;  /* texto en acento: tiene que leerse sobre fondo oscuro */
  --blue-12: 194 240 194;
  --text-blue: 205 240 210;
  --border-blue: 70, 167, 88, .5;
  --border-blue-strong: 194 240 194;
  --solid-blue: 27 52 31;
  --solid-blue-2: 22 28 24;
}

/* La marca arriba a la izquierda, en vez de la casita de Creative House */
html[data-cuenta="2"] img.size-4 {
  content: url('/marca/n7.svg');
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px;
}
html[data-cuenta="2"] .size-6:has(> img.size-4) { width: 26px; height: 26px; }

/* Chatwoot v4.17.1 compila el color «n-brand» en azul fijo, sin variable. Estas reglas son las suyas, una por una,
   con el verde de N7 y limitadas a la cuenta 2. Se regeneran al actualizar Chatwoot (ver SERVIDOR.md). */
html[data-cuenta="2"] .border-n-brand { border-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .border-n-brand\/50 { border-color: rgba(36, 71, 40, 0.5); }
html[data-cuenta="2"] .border-t-n-brand { border-top-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .bg-n-brand { background-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .bg-n-brand\/10 { background-color: rgba(36, 71, 40, 0.1); }
html[data-cuenta="2"] .bg-n-brand\/20 { background-color: rgba(36, 71, 40, 0.2); }
html[data-cuenta="2"] .bg-n-brand\/5 { background-color: rgba(36, 71, 40, 0.05); }
html[data-cuenta="2"] .from-n-brand\/15 { --tw-gradient-from: rgb(36 71 40 / .15) var(--tw-gradient-from-position); --tw-gradient-to: rgb(36 71 40 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
html[data-cuenta="2"] .text-n-brand { color: rgb(36, 71, 40); }
html[data-cuenta="2"] .\!outline-n-brand { outline-color: rgb(36, 71, 40) !important; }
html[data-cuenta="2"] .outline-n-brand { outline-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .ring-n-brand { --tw-ring-color: rgb(36 71 40 / var(--tw-ring-opacity, 1)); }
html[data-cuenta="2"] .before\:\!border-t-n-brand::before { border-top-color: rgb(36, 71, 40) !important; }
html[data-cuenta="2"] .before\:bg-n-brand::before { background-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .after\:bg-n-brand::after { background-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .checked\:border-n-brand:checked { border-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .checked\:bg-n-brand:checked { background-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .indeterminate\:border-n-brand:indeterminate { border-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .indeterminate\:bg-n-brand:indeterminate { background-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .focus-within\:outline-n-brand:focus-within { outline-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .focus-within\:ring-n-brand:focus-within { --tw-ring-color: rgb(36 71 40 / var(--tw-ring-opacity, 1)); }
html[data-cuenta="2"] .hover\:border-n-brand:hover { border-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .hover\:bg-n-brand\/10:hover { background-color: rgba(36, 71, 40, 0.1); }
html[data-cuenta="2"] .hover\:bg-n-brand\/80:hover { background-color: rgba(36, 71, 40, 0.8); }
html[data-cuenta="2"] .hover\:text-n-brand:hover { color: rgb(36, 71, 40); }
html[data-cuenta="2"] .focus\:border-n-brand:focus { border-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .focus\:outline-n-brand:focus { outline-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .focus\:ring-n-brand:focus { --tw-ring-color: rgb(36 71 40 / var(--tw-ring-opacity, 1)); }
html[data-cuenta="2"] .focus-visible\:bg-n-brand\/20:focus-visible { background-color: rgba(36, 71, 40, 0.2); }
html[data-cuenta="2"] .focus-visible\:outline-n-brand:focus-visible { outline-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .focus-visible\:ring-n-brand:focus-visible { --tw-ring-color: rgb(36 71 40 / var(--tw-ring-opacity, 1)); }
html[data-cuenta="2"] .hover\:enabled\:bg-n-brand\/20:enabled:hover { background-color: rgba(36, 71, 40, 0.2); }
html[data-cuenta="2"] .group:focus-within .group-focus-within\:text-n-brand { color: rgb(36, 71, 40); }
html[data-cuenta="2"] .group:hover .group-hover\:bg-n-brand { background-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .has-\[\:focus\]\:outline-n-brand:has(:focus) { outline-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .dark\:border-n-brand:is(.dark *) { border-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .dark\:bg-n-brand\/10:is(.dark *) { background-color: rgba(36, 71, 40, 0.1); }
html[data-cuenta="2"] .dark\:\!outline-n-brand:is(.dark *) { outline-color: rgb(36, 71, 40) !important; }
html[data-cuenta="2"] .dark\:ring-n-brand:is(.dark *) { --tw-ring-color: rgb(36 71 40 / var(--tw-ring-opacity, 1)); }
html[data-cuenta="2"] .dark\:checked\:border-n-brand:checked:is(.dark *) { border-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .dark\:checked\:bg-n-brand:checked:is(.dark *) { background-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .dark\:focus-within\:outline-n-brand:focus-within:is(.dark *) { outline-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .dark\:hover\:text-n-brand:hover:is(.dark *) { color: rgb(36, 71, 40); }
html[data-cuenta="2"] .dark\:focus\:outline-n-brand:focus:is(.dark *) { outline-color: rgb(36, 71, 40); }
html[data-cuenta="2"] .dark\:has-\[\:focus\]\:outline-n-brand:has(:focus):is(.dark *) { outline-color: rgb(36, 71, 40); }

/* Nuestras pantallas dentro de Chatwoot (17-oct, David: «el mismo look de la plataforma siempre, para que visualmente no
   sea un parche»). El marco va encima del contenido de Chatwoot, a la derecha de su menú (ver cuentas.js). Mientras está
   abierto, el ítem de Chatwoot que estaba activo deja de verse activo: el activo es el nuestro. */
#ch-pantalla { position: absolute; inset: 0; z-index: 30; background: rgb(var(--surface-1)); }
#ch-pantalla iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
html[data-ch-pantalla] nav li:not([id^="ch-"]) a.bg-n-alpha-2 { background-color: transparent !important; color: rgb(var(--slate-11)) !important; }
