/* ==========================================================================
   CircuitoGym: panel central (al final del archivo, la capa de la marca)
   Lenguaje visual: piso de caucho, tiza y discos de pesas con código de color.
   Los estados usan los colores de los discos olímpicos:
   verde = vigente, amarillo = por vencer, rojo = vencido, azul = acción principal.
   ========================================================================== */

/* Tipografías alojadas en el propio servidor (licencia OFL) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --caucho: #23272b;
  --caucho-2: #2f3439;
  --caucho-3: #40464c;
  --tiza: #eef0ec;
  --papel: #ffffff;
  --linea: #d5d9d3;
  --linea-2: #e6e9e4;
  --texto: #1c2024;
  --texto-2: #596069;
  --azul: #1d5fc4;
  --azul-osc: #164a9a;
  --azul-claro: #e4edf9;
  --rojo: #c9352a;
  --rojo-claro: #fbe7e5;
  --amarillo: #e8a600;
  --amarillo-claro: #fdf3d6;
  --verde: #1f8a4c;
  --verde-claro: #e2f2e8;
  --gris: #8a9097;
  --gris-claro: #eceeed;
  --acero: #c9ced2;
  --wa: #1b7f54;
  --radio: 4px;
  --radio-panel: 6px;
  --f-display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tiza);
  color: var(--texto);
  font: 400 1rem/1.5 var(--f-body);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--azul); text-underline-offset: 2px; }
a:hover { color: var(--azul-osc); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: .005em; }
h1 { font-size: 1.95rem; font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.1rem; }
p { margin: 0 0 .75rem; }
small { font-size: .82rem; }
hr { border: 0; border-top: 1px dashed var(--linea); margin: .8rem 0; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.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; }
.skip { position: absolute; left: -999px; top: 0; background: var(--papel); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.muted { color: var(--texto-2); }
.block { display: block; }
.small { font-size: .85rem; }
.center { text-align: center; }
.amt-neg { color: var(--rojo); }
.amt-pos { color: var(--verde); }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Disco de pesas: identidad y estados ---------- */
.brand-plate {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--caucho) 0 3px, var(--acero) 3.5px 7px, var(--azul) 7.5px);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18);
}
.plate-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 1.6px, currentColor 2px);
}
.plate {
  --tone: var(--gris);
  width: 168px; height: 168px; border-radius: 50%; flex: none;
  position: relative; display: grid; place-items: center; align-content: center;
  background: var(--tone);
  box-shadow: inset 0 0 0 7px rgba(0,0,0,.16), inset 0 0 0 9px rgba(255,255,255,.18);
}
.plate::before {
  content: ""; position: absolute; inset: 37px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4f6f7, var(--acero));
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.12), 0 0 0 4px rgba(0,0,0,.08);
}
.plate-num { position: relative; font: 700 2.6rem/1 var(--f-display); color: var(--caucho); }
.plate-unit { position: relative; font: 600 .82rem/1 var(--f-display); color: var(--texto-2); margin-top: 2px; }
.plate-green { --tone: var(--verde); }
.plate-yellow { --tone: var(--amarillo); }
.plate-red { --tone: var(--rojo); }
.plate-blue { --tone: var(--azul); }
.plate-grey { --tone: var(--gris); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .12rem .55rem .12rem .4rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; line-height: 1.5;
  background: var(--gris-claro); color: var(--texto-2);
}
.badge.tone-green { background: var(--verde-claro); color: var(--verde); }
.badge.tone-yellow { background: var(--amarillo-claro); color: #8a6200; }
.badge.tone-red { background: var(--rojo-claro); color: var(--rojo); }
.badge.tone-blue { background: var(--azul-claro); color: var(--azul); }

/* ---------- Estructura del área de personal ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--caucho) 248px, var(--tiza) 248px); }
.topbar { display: none; }
.sidebar {
  background: var(--caucho); color: #d9dde0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 18px 12px 12px;
}
.sidebar .brand, .topbar .brand {
  display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none;
  font: 700 1.2rem/1.1 var(--f-display); padding: 4px 8px 18px;
}
.sidebar .brand img, .topbar .brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; background: #fff; }
.nav-group { margin-bottom: 14px; }
.nav-label { margin: 0 0 4px; padding: 0 10px; font-size: .78rem; color: #8f979e; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  display: flex; align-items: center; gap: .7rem; padding: 8px 10px; border-radius: var(--radio);
  color: #d9dde0; text-decoration: none; font-weight: 500;
}
.sidebar li a:hover { background: var(--caucho-2); color: #fff; }
.sidebar li a.active { background: var(--caucho-3); color: #fff; box-shadow: inset 3px 0 0 var(--azul); }
.nav-user { margin-top: auto; border-top: 1px solid var(--caucho-3); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-user a, .nav-user button {
  display: flex; align-items: center; gap: .7rem; padding: 8px 10px; border-radius: var(--radio);
  color: #d9dde0; text-decoration: none; font: inherit; width: 100%; text-align: left;
}
.nav-user a:hover, .nav-user button:hover { background: var(--caucho-2); color: #fff; }
.nav-user small { display: block; color: #8f979e; font-size: .78rem; }
.main { padding: 28px 32px 56px; max-width: 1280px; width: 100%; min-width: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.sub { color: var(--texto-2); margin: .25rem 0 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 40px; padding: .45rem 1rem; border-radius: var(--radio);
  border: 1px solid transparent; font: 600 .95rem/1.2 var(--f-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-osc); color: #fff; }
.btn-quiet { background: var(--papel); color: var(--texto); border-color: var(--linea); }
.btn-quiet:hover { border-color: var(--texto-2); color: var(--texto); }
.btn-danger { background: var(--rojo); color: #fff; }
.btn-danger:hover { background: #a92a21; color: #fff; }
.btn-wa { background: var(--papel); color: var(--wa); border-color: #b7dcc9; }
.btn-wa:hover { background: #eaf6f0; color: var(--wa); }
.btn-sm { min-height: 32px; padding: .25rem .65rem; font-size: .85rem; }
.btn-lg { min-height: 50px; padding: .6rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--azul); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike.danger { color: var(--rojo); }
.sidebar .linklike, .nav-user .linklike { text-decoration: none; }
form.inline { display: inline; }

/* ---------- Avisos ---------- */
.flash { padding: .75rem 1rem; border-radius: var(--radio); margin-bottom: 1rem; border-left: 4px solid; background: var(--papel); }
.flash-success { border-color: var(--verde); background: var(--verde-claro); }
.flash-error { border-color: var(--rojo); background: var(--rojo-claro); }
.flash-info { border-color: var(--azul); background: var(--azul-claro); }

/* ---------- Paneles y rejillas ---------- */
.panel { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.panel > h2:first-child { margin-bottom: .85rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2 > .panel, .grid-2 > div > .panel:last-child { margin-bottom: 0; }
.grid-2 { margin-bottom: 20px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.empty { background: var(--papel); border: 1px dashed var(--linea); border-radius: var(--radio-panel); padding: 40px 24px; text-align: center; color: var(--texto-2); }
.empty-title { font: 600 1.25rem/1.2 var(--f-display); color: var(--texto); }
.panel.empty { text-align: left; border-style: solid; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); margin-bottom: 20px; }
.kpi { padding: 18px 22px; border-right: 1px solid var(--linea-2); display: flex; flex-direction: column; gap: .2rem; }
.kpi:last-child { border-right: 0; }
.kpi-value { font: 700 2.2rem/1 var(--f-display); color: var(--caucho); }
.kpi-label { color: var(--texto-2); font-size: .9rem; }
.delta { font-size: .82rem; font-weight: 600; }
.delta.amt-neg { color: var(--rojo); }
.delta.amt-pos { color: var(--verde); }

.cash-strip { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--papel); border: 1px solid var(--linea); border-left: 6px solid var(--gris); border-radius: var(--radio-panel); padding: .7rem 1rem; }
.cash-strip.tone-green { border-left-color: var(--verde); }
.cash-strip.tone-yellow { border-left-color: var(--amarillo); }

.setup .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .4rem 1.5rem; counter-reset: s; }
.setup .steps li { counter-increment: s; display: flex; gap: .6rem; align-items: baseline; }
.setup .steps li::before { content: counter(s); font: 700 1rem/1 var(--f-display); width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--azul-claro); color: var(--azul); }
.setup .steps li.done { color: var(--texto-2); }
.setup .steps li.done::before { content: "✓"; background: var(--verde-claro); color: var(--verde); }

/* ---------- Listas de personas ---------- */
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--linea-2); flex-wrap: wrap; }
.people li:last-child { border-bottom: 0; }
.people li > a { font-weight: 600; text-decoration: none; color: var(--texto); }
.people li > a:hover { color: var(--azul); }
.when { font-size: .88rem; color: var(--texto-2); }
.when.tone-yellow { color: #8a6200; }
.when.tone-red { color: var(--rojo); }
.row-actions { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .35rem 0; border-bottom: 1px solid var(--linea-2); }
.plain li:last-child { border-bottom: 0; }
.cols-list { columns: 2 260px; }

.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--caucho-2); color: #fff; font: 600 .9rem/1 var(--f-display); }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.6rem; }

/* ---------- Registro de entrada ---------- */
.checkin { max-width: 980px; }
.checkin-form { background: var(--caucho); color: #fff; border-radius: var(--radio-panel); padding: 22px; margin-bottom: 20px; display: grid; gap: .7rem; }
.checkin-form label { font: 600 1.05rem/1.2 var(--f-display); }
.checkin-input { display: flex; gap: .5rem; }
.checkin-input input { flex: 1; min-width: 0; height: 58px; font-size: 1.35rem; padding: 0 1rem; border-radius: var(--radio); border: 2px solid transparent; }
.checkin-input input:focus { border-color: var(--azul); outline: none; }
.checkin-input .btn { height: 58px; padding: 0 1.6rem; font-size: 1.05rem; }
.checkin-form .btn-quiet { justify-self: start; background: transparent; color: #fff; border-color: var(--caucho-3); }
.scanner { background: #000; border-radius: var(--radio); overflow: hidden; max-width: 420px; }
.result { display: flex; gap: 28px; align-items: center; background: var(--papel); border: 1px solid var(--linea); border-left: 8px solid var(--gris); border-radius: var(--radio-panel); padding: 22px 26px; margin-bottom: 20px; }
.result.tone-green { border-left-color: var(--verde); }
.result.tone-yellow { border-left-color: var(--amarillo); }
.result.tone-red { border-left-color: var(--rojo); }
.result-none { display: block; border-left-color: var(--amarillo); }
.result-title { font: 600 1.3rem/1.2 var(--f-display); }
.result-body { min-width: 0; }
.result-verdict { font: 700 2.4rem/1 var(--f-display); margin-bottom: .6rem; }
.result.tone-green .result-verdict { color: var(--verde); }
.result.tone-yellow .result-verdict { color: #8a6200; }
.result.tone-red .result-verdict { color: var(--rojo); }
.result-name { display: flex; align-items: center; gap: .75rem; font: 600 1.4rem/1.15 var(--f-display); }
.result-name small { display: block; font: 500 .9rem var(--f-body); color: var(--texto-2); }
.result-reason { font-size: 1.05rem; font-weight: 600; }
.result-meta { color: var(--texto-2); }
.result-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.result .plate { animation: plate-in .35s ease-out; }
@keyframes plate-in { from { transform: rotate(-70deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); margin-bottom: 16px; }
.panel .table-wrap { border: 0; border-radius: 0; margin: 0 -22px 8px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .6rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea-2); }
thead th { font-weight: 600; color: var(--texto-2); font-size: .85rem; background: #f6f7f5; border-bottom: 1px solid var(--linea); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbf9; }
tfoot td { border-top: 1px solid var(--linea); border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.cell-person { display: flex; align-items: center; gap: .6rem; }
.cell-person a { font-weight: 600; color: var(--texto); text-decoration: none; }
.cell-person a:hover { color: var(--azul); }
.cell-actions { text-align: right; }
tr.voided td { color: var(--texto-2); text-decoration: line-through; text-decoration-color: rgba(201,53,42,.5); }
tr.voided td .badge { text-decoration: none; }
tr.muted-row td { color: var(--texto-2); }
.group-row th { background: var(--tiza); font-family: var(--f-display); font-size: 1rem; color: var(--texto); }
.perm-table td.center { width: 120px; }
.perm-table input { width: 20px; height: 20px; }

/* ---------- Filtros y paginación ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--texto-2); font-weight: 500; }
.filters label.grow { flex: 1 1 260px; }
.filters .quick { display: flex; gap: .9rem; flex-wrap: wrap; align-self: center; font-size: .9rem; }
.pager { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 12px; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--linea); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; text-decoration: none; color: var(--texto-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--texto); }
.tabs a.active { color: var(--texto); border-bottom-color: var(--azul); }

/* ---------- Formularios ---------- */
input, select, textarea { font: inherit; color: inherit; }
.form label, .field, .filters input, .filters select { display: block; }
.form label, .field { margin-bottom: .9rem; font-weight: 500; font-size: .93rem; }
.form label > small, .field > small { display: block; color: var(--texto-2); font-weight: 400; margin-top: .25rem; }
.field .label { display: block; margin-bottom: .3rem; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea,
.filters input, .filters select, .picker input[type=search], .copy-row input, .lines input, .lines select {
  width: 100%; min-height: 42px; margin-top: .3rem; padding: .45rem .7rem;
  background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio);
}
.filters input, .filters select { margin-top: 0; }
.form textarea { min-height: 0; line-height: 1.45; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus, .lines input:focus, .lines select:focus { border-color: var(--azul); outline: 2px solid var(--azul-claro); outline-offset: 0; }
.form input[readonly] { background: var(--tiza); }
.form input[type=file] { margin-top: .4rem; font-size: .9rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }
.form legend { font: 600 1.15rem/1.2 var(--f-display); margin-bottom: .7rem; padding: 0; }
.form-grid fieldset { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 18px 22px 6px; }
.form-grid legend { float: left; width: 100%; margin-bottom: .9rem; }
.form-grid legend + * { clear: both; }
.form-narrow { max-width: 680px; }
.row-2, .row-3, .row-4 { display: grid; gap: 0 1rem; }
.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form label.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--azul); }
.check-pad { padding-top: 1.7rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: flex-end; }
.inline-form label { margin-bottom: .5rem; }
.copy-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.copy-row input { flex: 1 1 280px; margin: 0; font-size: .85rem; }
.status-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--rojo); }
.danger-zone[open] summary { margin-bottom: 1rem; }
.w-xs { max-width: 80px; }
.w-sm { max-width: 120px; }
.lines { width: 100%; }
.lines td { padding: .35rem .4rem; vertical-align: middle; }
.lines input, .lines select { margin: 0; }
.lines-routine td:first-child { min-width: 130px; }
.lines-routine td:nth-child(2) { min-width: 220px; }

/* Selector de socios con búsqueda */
.picker { position: relative; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: 0 8px 22px rgba(28,32,36,.12); max-height: 260px; overflow: auto; }
.picker-list li { padding: .5rem .6rem; border-radius: var(--radio); cursor: pointer; }
.picker-list li:hover, .picker-list li[aria-selected=true] { background: var(--azul-claro); }
.picker.has-value input[type=search] { border-color: var(--verde); background: var(--verde-claro); }

/* ---------- Ficha del socio ---------- */
.member-head { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.member-head h1 { margin: 0; }
.member-head > div:nth-child(2) { flex: 1; min-width: 220px; }
.member-head .sub { margin-bottom: .45rem; }
.member-head.small { margin-bottom: 1rem; }
.member-head.small h2 { margin: 0; }
.facts { margin: 0 0 1rem; display: grid; gap: .1rem; }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--linea-2); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--texto-2); }
.facts dd { margin: 0; font-weight: 500; }
.facts .fact-strong dd { font: 700 1.25rem/1.2 var(--f-display); }
.facts-cash > div { grid-template-columns: 1fr auto; }
.facts-cash dd { text-align: right; }
.credential { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--linea-2); padding-top: 1rem; }
.credential-code { font: 700 1.8rem/1 var(--f-display); letter-spacing: .06em; margin-bottom: .3rem; }
.qr { width: 120px; height: 120px; flex: none; background: #fff; padding: 6px; border: 1px solid var(--linea); border-radius: var(--radio); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
.qr-lg { width: 220px; height: 220px; margin: .5rem auto; padding: 10px; }
.note-health { background: var(--amarillo-claro); padding: .6rem .8rem; border-radius: var(--radio); }
.invite-box { border-left: 6px solid var(--azul); }
.member-strip { display: flex; align-items: center; gap: .9rem; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 14px 18px; margin-bottom: 20px; flex-wrap: wrap; }
.member-strip > div { flex: 1; min-width: 220px; }

/* ---------- Cobro ---------- */
.charge { max-width: 900px; }
.plan-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.plan-option { position: relative; display: grid !important; gap: .15rem; margin: 0 !important; padding: 14px 16px; background: var(--papel); border: 2px solid var(--linea); border-radius: var(--radio-panel); cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option:has(input:checked) { border-color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); }
.plan-option:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 2px; }
.plan-name { font: 600 1.1rem/1.15 var(--f-display); }
.plan-price { font: 700 1.6rem/1.1 var(--f-display); }
.plan-dur { color: var(--texto-2); font-size: .88rem; }
.pay-methods { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.pay-option { display: inline-flex !important; align-items: center; gap: .45rem; margin: 0 !important; padding: .5rem .9rem; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--papel); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }
.pay-option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pay-option input { accent-color: var(--azul); }
.charge-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 2px solid var(--caucho); margin-top: .5rem; }
.charge-total span { font: 600 1.1rem var(--f-display); }
.charge-total strong { font: 700 2.4rem/1 var(--f-display); }
[data-change] { font-weight: 600; color: var(--verde) !important; }

/* ---------- Comprobante ---------- */
.ticket { background: var(--papel); border: 1px solid var(--linea); width: 100%; max-width: 380px; padding: 22px 20px; font-size: .93rem; margin-bottom: 20px; box-shadow: 0 1px 0 var(--linea); }
.ticket header, .ticket footer { text-align: center; }
.ticket header p, .ticket footer p { margin: 0; }
.ticket-gym { font: 700 1.35rem/1.2 var(--f-display) !important; margin-bottom: .3rem !important; }
.ticket footer { margin-top: 1rem; }
.ticket-row { display: flex; justify-content: space-between; gap: 1rem; margin: .2rem 0; }
.ticket-row span:last-child { text-align: right; }
.ticket-total { font: 700 1.3rem/1.3 var(--f-display); }
.ticket-void { position: relative; }
.ticket-voidnote { color: var(--rojo); font-weight: 700; border: 2px solid var(--rojo); padding: .4rem; text-align: center; }

/* ---------- Punto de venta ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.pos-search input { width: 100%; height: 48px; padding: 0 1rem; font-size: 1.05rem; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--papel); margin-bottom: .8rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); font: 500 .9rem var(--f-body); color: var(--texto); cursor: pointer; text-decoration: none; }
.chip.active { background: var(--caucho); border-color: var(--caucho); color: #fff; }
.pos-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.pos-item { width: 100%; min-height: 108px; display: grid; align-content: space-between; gap: .3rem; text-align: left; padding: 12px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); cursor: pointer; font: inherit; }
.pos-item:hover { border-color: var(--azul); }
.pos-item:active { transform: scale(.98); }
.pos-item.is-out { opacity: .5; cursor: not-allowed; }
.pos-name { font-weight: 600; line-height: 1.25; }
.pos-price { font: 700 1.3rem/1 var(--f-display); }
.pos-stock { font-size: .8rem; color: var(--texto-2); }
.pos-cart { position: sticky; top: 16px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 18px; }
.pos-cart label, .pos-cart .field { display: block; margin-bottom: .8rem; font-weight: 500; font-size: .93rem; }
.pos-cart input:not([type=radio]) { width: 100%; min-height: 42px; margin-top: .3rem; padding: .45rem .7rem; border: 1px solid var(--linea); border-radius: var(--radio); }
.cart-lines { list-style: none; margin: 0 0 1rem; padding: 0; max-height: 40vh; overflow: auto; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .55rem 0; border-bottom: 1px solid var(--linea-2); }
.cart-lines .qty { display: inline-flex; align-items: center; gap: .3rem; }
.cart-lines .qty button { width: 30px; height: 30px; border: 1px solid var(--linea); background: var(--papel); border-radius: var(--radio); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.cart-empty { display: block !important; padding: 1rem 0 !important; }

/* ---------- Ejercicios y rutinas ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.ex-card { display: grid; gap: .2rem; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); overflow: hidden; text-decoration: none; color: var(--texto); padding-bottom: 12px; }
.ex-card:hover { border-color: var(--azul); color: var(--texto); }
.ex-card img, .ex-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .4rem; }
.ex-ph { display: grid; place-items: center; background: var(--caucho); color: var(--acero); font: 700 2.2rem var(--f-display); }
.ex-name { font-weight: 600; padding: 0 12px; line-height: 1.25; }
.ex-meta { color: var(--texto-2); font-size: .85rem; padding: 0 12px; }
.ex-card.is-off { opacity: .55; }
.ex-image { width: 100%; border-radius: var(--radio); margin-bottom: 1rem; }
.thumb { max-width: 160px; border-radius: var(--radio); border: 1px solid var(--linea); }
.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 1rem; background: #000; border-radius: var(--radio); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { max-width: 70ch; line-height: 1.6; }
.day { margin-bottom: 1.2rem; }
.day h3 { margin: 0 0 .4rem; padding-bottom: .3rem; border-bottom: 2px solid var(--caucho); }
.ex-list { margin: 0; padding-left: 1.4rem; }
.ex-list li { padding: .45rem 0; border-bottom: 1px solid var(--linea-2); }
.ex-list li a { font-weight: 600; }
.dose { display: block; font: 600 1rem var(--f-display); }
.rest { margin-left: .6rem; color: var(--texto-2); font-weight: 500; }
.ex-note { display: block; color: var(--texto-2); font-size: .9rem; }

/* ---------- Gráficas ligeras ---------- */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: .7rem; align-items: center; }
.bar-label { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; background: var(--gris-claro); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--azul); border-radius: 999px; }
.bar-fill.tone-green { background: var(--verde); }
.bar-value { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.cols { margin: 0; }
.cols-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 190px; padding-bottom: 22px; position: relative; border-bottom: 1px solid var(--linea); }
.col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.col-bar { display: block; width: 100%; max-width: 34px; background: var(--azul); border-radius: 3px 3px 0 0; min-height: 0; }
.col:hover .col-bar { background: var(--azul-osc); }
.col-label { position: absolute; bottom: -20px; font-size: .7rem; color: var(--texto-2); white-space: nowrap; }
.cols figcaption { font-size: .82rem; color: var(--texto-2); margin-top: 1.4rem; }

.numbered { padding-left: 1.3rem; }
.numbered li { margin-bottom: .6rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { padding: .25rem 0 .25rem 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--verde); }
.checklist li.fail::before { background: var(--rojo); }

/* ---------- Pantallas de acceso ---------- */
.auth { background: var(--caucho); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--papel); border-radius: var(--radio-panel); padding: 30px 28px; }
.auth-card-wide { max-width: 640px; }
.auth-brand { display: flex; align-items: center; gap: .7rem; font: 700 1.35rem/1.1 var(--f-display); margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linea-2); }
.auth-brand img { width: 40px; height: 40px; object-fit: contain; }
.auth-foot { margin-top: 1rem; font-size: .92rem; }

/* ---------- Portal del socio (móvil primero) ---------- */
.portal { background: var(--tiza); }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 12px 16px; background: var(--caucho); color: #fff; }
.portal-top .brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font: 700 1.15rem/1.1 var(--f-display); }
.portal-top .brand img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 4px; }
.portal-top .btn-quiet { background: transparent; color: #fff; border-color: var(--caucho-3); }
.portal-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--papel); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
.portal-nav ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 720px; }
.portal-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; font-size: .72rem; color: var(--texto-2); text-decoration: none; font-weight: 500; }
.portal-nav a.active { color: var(--azul); box-shadow: inset 0 3px 0 var(--azul); }
.portal-main { max-width: 720px; margin: 0 auto; padding: 18px 16px 96px; }
.portal-hello { font-size: 1.6rem; }
.member-card { display: flex; gap: 18px; align-items: center; background: var(--caucho); color: #fff; border-radius: 10px; padding: 20px; margin-bottom: 14px; }
.member-card .plate { width: 132px; height: 132px; }
.member-card .plate::before { inset: 29px; }
.member-card .plate-num { font-size: 2.1rem; }
.mc-state { font: 700 1.6rem/1.1 var(--f-display); margin-bottom: .3rem; }
.tone-green .mc-state { color: #7fd6a3; }
.tone-yellow .mc-state { color: #ffd36b; }
.tone-red .mc-state { color: #ff9b91; }
.mc-plan { font-weight: 600; margin-bottom: .2rem; }
.mc-date { color: #c5cbd0; margin: 0; font-size: .95rem; }
.mc-date strong { color: #fff; }
.portal-note { padding: .7rem .9rem; border-radius: var(--radio); background: var(--papel); border-left: 4px solid var(--gris); }
.portal-note.tone-yellow { border-color: var(--amarillo); background: var(--amarillo-claro); }
.portal-note.tone-red { border-color: var(--rojo); background: var(--rojo-claro); }
.portal-note.tone-blue { border-color: var(--azul); background: var(--azul-claro); }
.access-card { text-align: center; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { display: grid; gap: .25rem; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 14px; text-decoration: none; color: var(--texto); }
.tile:hover { border-color: var(--azul); color: var(--texto); }
.tile-k { font-size: .82rem; color: var(--texto-2); }
.tile-v { font: 600 1.1rem/1.2 var(--f-display); }
.notice h3, .notice h2 { margin-top: 0; }
.notice + .notice { border-top: 1px solid var(--linea-2); padding-top: .8rem; }
.pay-list { list-style: none; padding: 0; margin: 0; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); }
.pay-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 12px 14px; border-bottom: 1px solid var(--linea-2); }
.pay-list li:last-child { border-bottom: 0; }
.pay-list .amount { font: 700 1.15rem var(--f-display); white-space: nowrap; }
.pay-list li.voided .amount { text-decoration: line-through; color: var(--texto-2); }
.section-title { margin-top: 1.6rem; }
.tip summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.tip[open] summary { margin-bottom: .6rem; }
.routine-days .day { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 14px 16px; }

/* ---------- Versión 2: cuestionarios, pagos en línea, contenido ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.choice-grid.small { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 .8rem; }
.choice-grid .check { margin-bottom: .3rem; }
.choice { position: relative; display: block !important; margin: 0 !important; padding: 14px 16px; border: 2px solid var(--linea); border-radius: var(--radio-panel); background: var(--papel); cursor: pointer; font-weight: 600 !important; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }
.choice:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 2px; }
.questionnaire fieldset { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 16px 18px 8px; }
.questionnaire legend { float: left; width: 100%; }
.questionnaire legend + * { clear: both; }
.cta-panel { border-left: 6px solid var(--azul); }
.cta-panel .actions { margin-top: .6rem; }
.portal-actions { margin: 14px 0; }
.referral { border-left: 6px solid var(--amarillo); }
.note-review { background: var(--azul-claro); padding: .7rem .9rem; border-radius: var(--radio); margin: 0 0 1rem; }
.kpis-inline { margin: 1rem 0; }
.meal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 1rem; }
.meal { border: 1px solid var(--linea); border-radius: var(--radio-panel); padding: 12px 14px; }
.meal h4 { margin: 0 0 .4rem; font: 600 1.05rem var(--f-display); }
.meal ul { list-style: none; padding: 0; margin: 0; }
.meal li { padding: .15rem 0; font-size: .93rem; }
.eq { display: inline-grid; place-items: center; min-width: 2rem; height: 1.6rem; padding: 0 .35rem; margin-right: .3rem; border-radius: 999px; background: var(--caucho); color: #fff; font: 700 .85rem var(--f-display); }
.eq-list > div { grid-template-columns: 200px 1fr; }
.grid-2.tight { gap: 16px; margin-bottom: 0; }
.equip-table td:first-child { width: 90px; }
.equip-table input[type=checkbox] { width: 20px; height: 20px; }
.equip-table input:not([type=checkbox]) { width: 100%; min-height: 36px; padding: .3rem .5rem; border: 1px solid var(--linea); border-radius: var(--radio); }
.result-mini { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.result-mini h1 { margin-bottom: .3rem; }
.plate-sm { width: 72px; height: 72px; }
.plate-sm::before { inset: 18px; }
.vendor { text-align: center; margin-top: 2rem; }
/* Contenido */
.content-list { display: grid; gap: 10px; }
.content-date { margin: 1rem 0 .2rem; font-size: 1rem; color: var(--texto-2); }
.content-card { display: grid; gap: .25rem; background: var(--papel); border: 1px solid var(--linea); border-left: 5px solid var(--azul); border-radius: var(--radio-panel); padding: 12px 16px; text-decoration: none; color: var(--texto); }
.content-card:hover { border-color: var(--azul); color: var(--texto); }
.content-card .badge { justify-self: start; }
.content-meta { font-size: .82rem; color: var(--texto-2); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.studio-stage { background: #15181b; border-radius: var(--radio-panel); padding: 16px; display: grid; place-items: center; min-height: 420px; }
.studio-stage canvas { width: 100%; max-width: 560px; height: auto; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.studio.is-video .studio-stage canvas { max-width: 340px; }
.studio-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.photo-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: .4rem; }
.thumb-btn { padding: 0; border: 3px solid transparent; border-radius: var(--radio); background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.selected { border-color: var(--azul); }
.scene-list { display: grid; gap: .4rem; margin-bottom: .9rem; }
.scene-row { display: grid; grid-template-columns: 1fr 72px auto; gap: .4rem; align-items: center; }
.scene-row input { min-height: 38px; padding: .3rem .5rem; border: 1px solid var(--linea); border-radius: var(--radio); width: 100%; }
.video-result { width: 100%; max-width: 280px; border-radius: var(--radio); margin: .6rem 0; background: #000; }
@media (max-width: 1080px) { .studio { grid-template-columns: 1fr; } .studio-panel { position: static; max-height: none; } }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1080px) {
  .pos { grid-template-columns: 1fr; }
  .pos-cart { position: static; }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { display: block; background: var(--tiza); }
  .topbar { display: flex; align-items: center; gap: .5rem; position: sticky; top: 0; z-index: 40; background: var(--caucho); padding: 8px 12px; }
  .topbar .brand { padding: 0; font-size: 1.1rem; }
  .menu-btn { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
  .menu-btn .ico { width: 24px; height: 24px; }
  .sidebar { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .main { padding: 20px 16px 48px; }
  .grid-2 { grid-template-columns: 1fr; }
  .row-3, .row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 16px; border-bottom: 1px solid var(--linea-2); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi-value { font-size: 1.7rem; }
  .result { flex-direction: column; text-align: center; }
  .result-name, .result-actions { justify-content: center; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .checkin-input { flex-direction: column; }
  .checkin-input .btn { width: 100%; }
  .panel { padding: 16px; }
  .panel .table-wrap { margin: 0 -16px 8px; }
  .member-card { flex-direction: column; text-align: center; }
  .credential { flex-direction: column; text-align: center; }
  .bars li { grid-template-columns: 1fr auto; }
  .bars .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Impresión ---------- */
@media print {
  @page { margin: 10mm; }
  body { background: #fff; }
  .sidebar, .topbar, .page-head .actions, .flash, .danger-zone, .tabs, .portal-nav, .portal-top, .filters, .pager, .menu-btn, .form-actions { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .panel, .table-wrap { border: 0; }
  form .btn, .row-actions { display: none !important; }
  /* Comprobante: solo se imprime el ticket */
  body:has(#ticket) * { visibility: hidden; }
  body:has(#ticket) #ticket, body:has(#ticket) #ticket * { visibility: visible; }
  body:has(#ticket) #ticket { position: absolute; left: 0; top: 0; border: 0; box-shadow: none; max-width: 76mm; padding: 0; }
  /* Credencial del socio */
  body.print-credential * { visibility: hidden; }
  body.print-credential .credential, body.print-credential .credential * { visibility: visible; }
  body.print-credential .credential { position: absolute; left: 0; top: 0; border: 1px solid #000; border-radius: 8px; padding: 12px; width: 86mm; }
  body.print-credential .credential .btn, body.print-credential .credential .muted { display: none; }
}

/* Panel */
code.break { display: block; word-break: break-all; background: var(--tiza); padding: .6rem; border-radius: var(--radio); font-size: .82rem; }


/* ==========================================================================
   Marca CircuitoGym (manual de marca: hule, gis y verde de 10 kg).
   El verde fuerte (#156B3B) es el color de acción: texto blanco encima 6.57:1.
   El azul queda solo para estados («Prueba») y avisos informativos.
   ========================================================================== */
@font-face { font-family: "Archivo Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-condensed-800.woff2") format("woff2"); }
:root {
  --caucho: #17191c;
  --caucho-2: #22262a;
  --caucho-3: #30353a;
  --tiza: #f3f4f0;
  --marca: #156b3b;
  --marca-osc: #0f5530;
  --marca-claro: #e2f2e8;
  --f-display: "Archivo Condensed", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
}
h1, h2 { font-weight: 800; letter-spacing: -.005em; }
a { color: var(--marca); }
a:hover { color: var(--marca-osc); }
:focus-visible { outline-color: var(--marca); }
.btn-primary { background: var(--marca); }
.btn-primary:hover { background: var(--marca-osc); }
.linklike { color: var(--marca); }
.sidebar li a.active { box-shadow: inset 3px 0 0 #1e8c4e; }
.tabs a.active { border-bottom-color: var(--marca); }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--marca); outline-color: var(--marca-claro); }
.check input { accent-color: var(--marca); }
.setup .steps li::before { background: var(--marca-claro); color: var(--marca); }
.cg-logo { display: block; height: 32px; width: auto; }
.sidebar .brand .cg-logo { height: 28px; }
.topbar .brand .cg-logo { height: 24px; }
.auth-brand .cg-logo { height: 34px; width: auto; }
.auth-brand .cg-sub { font: 500 1rem/1.2 "Barlow", system-ui, sans-serif; color: var(--texto-2); }
.sidebar .brand img.cg-logo, .topbar .brand img.cg-logo { width: auto; height: 28px; border-radius: 0; background: none; object-fit: contain; }
.topbar .brand img.cg-logo { height: 24px; }
