/* ============================================================
   New Start Gym — Panel de gestión
   Dark UI + acento dorado de marca.
   ============================================================ */
:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --panel: #17171a;
  --panel-2: #1e1e22;
  --line: #27272c;
  --line-2: #33333a;
  --text: #f3f3f1;
  --muted: #9a9aa3;
  --muted-2: #6c6c75;
  --oro: #F5B301;
  --oro-2: #ffcf3d;
  --oro-dim: rgba(245, 179, 1, .14);
  --verde: #3ddc84;
  --verde-dim: rgba(61, 220, 132, .14);
  --rojo: #ff4d5e;
  --rojo-dim: rgba(255, 77, 94, .14);
  --amarillo: #ffb020;
  --amarillo-dim: rgba(255, 176, 32, .16);
  --azul: #5aa9ff;
  --azul-dim: rgba(90, 169, 255, .14);
  --gris-dim: rgba(154, 154, 163, .14);
  --radius: 14px;
  --radius-s: 9px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Bebas Neue', 'Inter', sans-serif;
  --side-w: 258px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--oro-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
small, .muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); letter-spacing: .02em; font-weight: 400; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hide { display: none !important; }
.oro { color: var(--oro); }
.verde { color: var(--verde); }
.rojo { color: var(--rojo); }
.amarillo { color: var(--amarillo); }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }

/* ---------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w); background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: .04em; line-height: 1; font-weight: 400; }
.brand b em { font-style: normal; color: var(--oro); }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.sidebar nav { padding: 10px 12px; flex: 1; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav-item.on { background: var(--oro-dim); color: var(--oro-2); }
.nav-item .pill { margin-left: auto; }
.ic { width: 18px; height: 18px; flex: 0 0 18px; display: inline-block; background: currentColor; opacity: .85;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-home  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v9a2 2 0 0 1-2 2h-4v-6H9v6H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.ic-users { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-7 7-7s7 3 7 7M16 4a4 4 0 0 1 0 8M22 21c0-3.5-2-6-5-6.7'/%3E%3C/svg%3E"); }
.ic-card  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.ic-check { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
.ic-cash  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.ic-kiosk { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 16v5'/%3E%3C/svg%3E"); }
.ic-bolt  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.ic-tag   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-10-10V2h8z'/%3E%3Ccircle cx='7' cy='7' r='1.5'/%3E%3C/svg%3E"); }
.ic-badge { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M7 18c1-2.5 3-3.5 5-3.5s4 1 5 3.5'/%3E%3C/svg%3E"); }
.ic-mail  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 7l10 7 10-7'/%3E%3C/svg%3E"); }
.ic-chart { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.ic-key   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='15' r='5'/%3E%3Cpath d='M12 11l9-9M17 6l3 3'/%3E%3C/svg%3E"); }
.ic-gear  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E"); }

.side-bottom { border-top: 1px solid var(--line); padding: 14px 18px; }
.user { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.user small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--oro); color: #111; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 34px; }
.side-links { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; }
.side-links a { color: var(--muted); }
.firma { margin-top: 10px; font-size: 11px; color: var(--muted-2); }
.firma a { color: var(--muted); }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 26px; border-bottom: 1px solid var(--line); background: rgba(11, 11, 12, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar-title { font-family: var(--display); font-size: 26px; letter-spacing: .03em; }
.topbar-search { flex: 1; max-width: 460px; margin-left: auto; }
.topbar-search input { width: 100%; }
.topbar-date { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 9px; position: relative; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { content: ''; position: absolute; left: 10px; width: 16px; height: 2px; background: var(--text); border-radius: 2px; }
.burger span { top: 17px; }
.burger span::before { top: -5px; left: 0; }
.burger span::after { top: 5px; left: 0; }
.main { padding: 24px 26px 60px; width: 100%; }

/* ---------------------------------------------------------- page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------- cards / grid */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

/* KPI tiles */
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; display: block; color: var(--text); }
.kpi:hover { text-decoration: none; border-color: var(--line-2); }
.kpi .k-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kpi .k-value { font-family: var(--display); font-size: 40px; line-height: 1; margin-top: 8px; letter-spacing: .02em; }
.kpi .k-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kc, var(--oro)); }
.kpi.verde { --kc: var(--verde); }
.kpi.rojo { --kc: var(--rojo); }
.kpi.amarillo { --kc: var(--amarillo); }
.kpi.azul { --kc: var(--azul); }
.kpi.gris { --kc: var(--muted-2); }

/* ---------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.verde { background: var(--verde-dim); color: var(--verde); }
.badge.rojo { background: var(--rojo-dim); color: var(--rojo); }
.badge.amarillo { background: var(--amarillo-dim); color: var(--amarillo); }
.badge.gris { background: var(--gris-dim); color: var(--muted); }
.badge.azul { background: var(--azul-dim); color: var(--azul); }
.badge.oro { background: var(--oro-dim); color: var(--oro-2); }
.badge.sin-punto::before { display: none; }
.pill { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; }
.pill.rojo { background: var(--rojo); color: #fff; }
.pill.oro { background: var(--oro); color: #111; }
.pill.gris { background: var(--line-2); color: var(--text); }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl a.row-link { color: var(--text); font-weight: 600; }
.tbl .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.tbl tr.clickable { cursor: pointer; }
.persona { display: flex; align-items: center; gap: 10px; }
.persona .av { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; color: var(--muted); flex: 0 0 36px; overflow: hidden; }
.persona .av img { width: 100%; height: 100%; object-fit: cover; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------------------------------------------------------- forms */
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; letter-spacing: .02em; }
label:first-child { margin-top: 0; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=url], input[type=month], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius-s); padding: 9px 12px; font: inherit; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--oro); box-shadow: 0 0 0 3px var(--oro-dim); }
input::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9aa3' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
select option { background: #1a1a1e; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { accent-color: var(--oro); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-row > div > label:first-child { margin-top: 12px; }
.form-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input-money { position: relative; }
.input-money input { padding-left: 26px; }
.input-money::before { content: '$'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { background: #26262b; text-decoration: none; }
.btn-oro { background: var(--oro); border-color: var(--oro); color: #111; }
.btn-oro:hover { background: var(--oro-2); }
.btn-verde { background: var(--verde); border-color: var(--verde); color: #062; }
.btn-rojo { background: transparent; border-color: var(--rojo); color: var(--rojo); }
.btn-rojo:hover { background: var(--rojo-dim); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; margin-top: 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------- filters / tabs */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters label { margin: 0 0 4px; }
.filters > div { min-width: 150px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--oro-2); border-bottom-color: var(--oro); }
.tabs a .pill { margin-left: 6px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg a, .seg button { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 12.5px; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.seg .on { background: var(--panel-2); color: var(--text); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.pager .on { background: var(--oro); color: #111; border-color: var(--oro); }

/* ---------------------------------------------------------- flash */
.flash { padding: 11px 14px; border-radius: var(--radius-s); margin-bottom: 14px; font-weight: 500; border: 1px solid; }
.flash.ok { background: var(--verde-dim); border-color: rgba(61, 220, 132, .3); color: var(--verde); }
.flash.error { background: var(--rojo-dim); border-color: rgba(255, 77, 94, .3); color: var(--rojo); }
.flash.warn { background: var(--amarillo-dim); border-color: rgba(255, 176, 32, .3); color: var(--amarillo); }

/* ---------------------------------------------------------- modal */
dialog.modal { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; padding: 0; width: min(560px, 94vw); box-shadow: var(--shadow); }
dialog.modal.wide { width: min(820px, 94vw); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 20px; max-height: 75vh; overflow-y: auto; }
.modal-x { background: transparent; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }

/* ---------------------------------------------------------- misc */
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat-row > div { min-width: 120px; }
.stat-row .v { font-family: var(--display); font-size: 30px; line-height: 1; }
.stat-row .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { color: var(--muted); min-width: 50px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--oro); border-radius: 99px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12px; margin: 2px 4px 2px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.chart-wrap { position: relative; height: 260px; }
.chart-wrap.sm { height: 200px; }
.sticky-side { position: sticky; top: 84px; }
.socio-hero { display: flex; gap: 20px; align-items: center; }
.socio-hero .av { width: 84px; height: 84px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 32px; overflow: hidden; flex: 0 0 84px; }
.socio-hero .av img { width: 100%; height: 100%; object-fit: cover; }
.socio-hero h1 { font-size: 26px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.print-only { display: none; }

/* ---------------------------------------------------------- login */
.login-body { background: radial-gradient(1200px 600px at 20% -10%, rgba(245, 179, 1, .18), transparent 60%), var(--bg); }
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; }
.login-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 32px; width: min(400px, 100%); box-shadow: var(--shadow); text-align: center; }
.login-logo { width: 190px; height: auto; object-fit: contain; margin: 0 auto 4px; }
.login-card .sub { color: var(--muted); margin-bottom: 20px; letter-spacing: .04em; }
.login-card label { text-align: left; }
.login-kiosk { display: block; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.firma-login { margin-top: 18px; font-size: 12px; color: var(--muted-2); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .grid-4, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .burger { display: block; }
  .topbar { padding: 10px 14px; }
  .topbar-date { display: none; }
  .main { padding: 16px 14px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .kpi .k-value { font-size: 32px; }
  .socio-hero { flex-direction: column; text-align: center; }
  .kv { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, .actions, .btn, .filters, .tabs { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .kpi { border-color: #ccc; background: #fff; color: #000; }
  .print-only { display: block; }
}

/* título de sección dentro de una página del panel */
.sec-titulo { font-family: var(--display); font-size: 24px; letter-spacing: .04em; font-weight: 400; margin: 30px 0 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-titulo small { font-family: var(--font); font-size: 12.5px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
