/* ============================================
   BIANCHI AUTOMOTORES — admin.css
   Panel Staff · Identidad visual Bianchi (Negro + Dorado + Outfit & Bebas Neue)
   ============================================ */
:root {
  --gold: #C9A84C;
  --gold-light: #E0C074;
  --gold-d: #A88732;
  --red: #DC2626;
  --red-d: #B91C1C;
  --black: #0A0A0A;
  --dark2: #111111;
  --dark3: #1A1A1A;
  --ink: #1A1A1D;
  --grey: #F5F4F0;
  --muted: #6E6A60;
  --white: #FFFFFF;
  --g1: #0A5A3C;
  --g2: #15803D;
  --y: #D99B00;
  --line: #E3E0D8;
  --side: 252px;
  --radius: 8px;
  --radius-sm: 6px;
  --font-main: 'Outfit', system-ui, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--grey);
  line-height: 1.5;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
code { background: var(--grey); padding: .12rem .4rem; border-radius: 4px; font-size: .85em; border: 1px solid var(--line); }

.eyebrow {
  display: block;
  color: var(--gold-d);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1.35rem;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: .2s ease;
  text-align: center;
  font-family: inherit;
  background: none;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,.3); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(220,38,38,.28); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #262626; }
.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--outline-w { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--outline-w:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--danger { border-color: var(--red); color: var(--red); }
.btn--danger:hover { background: var(--red); color: var(--white); }
.btn--sm { padding: .52rem 1rem; font-size: .74rem; }
.btn--block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.link { background: none; border: 0; color: var(--gold-d); font-weight: 700; cursor: pointer; font-size: .82rem; padding: .2rem .1rem; }
.link:hover { text-decoration: underline; color: var(--black); }
.link--mut { color: var(--muted); }

/* ---------- formularios ---------- */
.f { display: flex; flex-direction: column; gap: .32rem; margin-bottom: .9rem; min-width: 0; }
.f > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #D5D1C7;
  border-radius: var(--radius-sm);
  padding: .65rem .82rem;
  font-size: .92rem;
  transition: .15s ease;
  outline: none;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.16); }
input:disabled, select:disabled { background: var(--grey); color: var(--muted); }
.f--chk { flex-direction: row; align-items: center; gap: .6rem; margin-bottom: .7rem; cursor: pointer; }
.f--chk input { width: 18px; height: 18px; accent-color: var(--gold-d); flex: none; }
.f--chk > span { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; color: var(--ink); }
.row2, .row3 { display: grid; gap: .9rem; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
.sub {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--black);
  margin: .4rem 0 .85rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--gold);
}
.cur { display: grid; grid-template-columns: 1fr 88px; gap: .5rem; }

/* ---------- login ---------- */
.login {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--black);
  overflow: auto;
}
.login__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.76) 55%, rgba(201,168,76,.18) 100%),
    url('BANNER.jpeg') center/cover no-repeat;
}
.login__card {
  position: relative;
  width: min(430px, 100%);
  background: var(--white);
  padding: 2rem 2rem 1.7rem;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.login__logo-wrap {
  background: var(--black);
  padding: .9rem 1.3rem;
  border-radius: var(--radius-sm);
  margin: 0 auto 1.1rem;
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--gold);
}
.login__logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}
.login__card h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--black);
  margin-bottom: 1.15rem;
}
.login__err { color: var(--red); font-weight: 600; font-size: .85rem; min-height: 1.2rem; margin-bottom: .4rem; }
.login__hint { font-size: .78rem; color: var(--muted); margin-top: .95rem; text-align: center; }
.login__back { display: block; text-align: center; margin-top: .85rem; font-size: .84rem; font-weight: 600; color: var(--muted); }
.login__back:hover { color: var(--gold-d); }
body:not(.is-login) .login { display: none; }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 60;
  border-right: 3px solid var(--gold);
  transition: transform .3s ease;
}
.side__brand {
  padding: 1.2rem 1.3rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.side__brand img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.side__nav { padding: 1rem 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-i {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: none;
  border: 0;
  border-left: 4px solid transparent;
  color: rgba(255,255,255,.72);
  padding: .9rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  font-size: .92rem;
  text-align: left;
  transition: .2s ease;
}
.nav-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-i:hover { background: var(--dark3); color: var(--white); }
.nav-i.is-active {
  background: linear-gradient(90deg, rgba(201,168,76,.16) 0%, rgba(201,168,76,0) 100%);
  color: var(--gold-light);
  border-left-color: var(--gold);
  font-weight: 700;
}
.side__foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: .7rem;
}
.who b { display: block; font-size: .9rem; word-break: break-all; color: var(--white); }
.who small { color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.side__link { font-size: .82rem; color: rgba(255,255,255,.65); transition: .2s; }
.side__link:hover { color: var(--gold-light); }

.main { margin-left: var(--side); min-height: 100vh; padding-bottom: 3rem; }
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.8rem;
  height: 66px;
}
.top h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--black);
  flex: 1;
}
.top__right { display: flex; align-items: center; gap: 1rem; }
.top__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 4px; padding: 6px; }
.top__burger span { width: 24px; height: 2.5px; background: var(--black); display: block; border-radius: 2px; }
.tc { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); font-weight: 700; }
.tc input { width: 88px; padding: .4rem .5rem; font-size: .85rem; }
.role-pill {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: .38rem .78rem;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
}
body.role-admin .role-pill { background: var(--gold); color: var(--black); }
body.role-vendedor .admin-only { display: none !important; }
.view { display: none; padding: 1.6rem 1.8rem; }
.view.is-active { display: block; }

/* ---------- tarjetas / kpis / tablas ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(10,10,10,.03); }
.pad { padding: 1.4rem; margin-bottom: 1rem; }
.pad h3 { font-family: var(--font-display); letter-spacing: .05em; font-weight: 400; margin-bottom: 1rem; font-size: 1.45rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.kpis--3 { grid-template-columns: repeat(3, 1fr); }
.kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(10,10,10,.03);
}
.kpi small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; letter-spacing: .03em; line-height: 1.1; margin-top: .25rem; color: var(--black); }
.kpi em { font-style: normal; font-size: .78rem; color: var(--muted); }
.kpi--g { border-left-color: var(--g2); }
.kpi--y { border-left-color: var(--gold); }
.kpi--k { border-left-color: var(--black); }
.kpi--r { border-left-color: var(--red); }

.toolbar { display: flex; gap: .7rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.toolbar input[type=search] { flex: 1; min-width: 220px; width: auto; }
.toolbar select { width: auto; min-width: 175px; }
.toolbar__sp { flex: 1; }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 860px; }
.tbl th {
  background: var(--black);
  color: var(--gold-light);
  text-align: left;
  padding: .8rem 1rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  white-space: nowrap;
}
.tbl td { padding: .82rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: #FAF8F2; }
.tbl tr.click { cursor: pointer; }
.tbl tr.muted td { color: var(--muted); }
.tbl .t1 { font-weight: 700; display: block; color: var(--ink); }
.tbl .t2 { font-size: .78rem; color: var(--muted); display: block; }
.tbl .num { white-space: nowrap; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.acts { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.tbl select.inl { padding: .4rem .5rem; font-size: .8rem; min-width: 170px; }

/* ---------- badges ---------- */
.b {
  display: inline-block;
  padding: .24rem .62rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  background: var(--grey);
  color: var(--ink);
  border: 1px solid var(--line);
}
.b--disponible { background: #E6F4EC; color: var(--g1); border-color: #B7DEC8; }
.b--senado { background: #FBF3DC; color: #7C5B0B; border-color: #E8CF84; }
.b--taller { background: #ECEBE6; color: #3D3B35; border-color: #D2CFC6; }
.b--vendido { background: var(--black); color: var(--gold-light); border-color: var(--black); }
.b--red { background: #FEE2E2; color: var(--red-d); border-color: #FCA5A5; }
.b--amber { background: #FBF3DC; color: #7C5B0B; border-color: #E8CF84; }
.b--ok { background: #E6F4EC; color: var(--g1); border-color: #B7DEC8; }
.chip-miss { display: inline-block; background: #FEE2E2; color: var(--red-d); font-size: .7rem; font-weight: 700; padding: .16rem .5rem; border-radius: 4px; margin: 0 .25rem .25rem 0; }
.prog { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .8rem; }
.prog i { display: block; width: 60px; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; position: relative; }
.prog i::after { content: ""; position: absolute; inset: 0; width: var(--p); background: var(--g2); }
.prog.low i::after { background: var(--red); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: .8rem 1.25rem;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
  transition: .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--black); border-bottom-color: var(--gold); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(2px); z-index: 80; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(650px, 100%);
  background: var(--white);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--gold);
  box-shadow: -12px 0 40px rgba(0,0,0,.22);
}
.drawer.open { transform: none; }
.drawer__head, .modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3, .modal__head h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--black);
}
.x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.x:hover { color: var(--gold-d); }
.drawer__form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tabs--drawer { padding: 0 1.5rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.4rem 1.5rem; }
.drawer__foot, .modal__foot {
  display: flex;
  gap: .6rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #FAF9F5;
}
.pane { display: none; }
.pane.is-active { display: block; }

.profit {
  background: var(--black);
  color: var(--white);
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  margin: .6rem 0 1rem;
}
.profit h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-light); margin-bottom: .6rem; }
.profit div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; font-size: .9rem; }
.profit div.big { border-top: 1px solid rgba(255,255,255,.12); margin-top: .45rem; padding-top: .6rem; font-size: 1.08rem; font-weight: 800; }
.pos { color: #4ADE80; }
.neg { color: #F87171; }
.debt-box { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 1rem 1rem .2rem; margin-bottom: 1rem; }
.note { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.alert-res { background: #FBF3DC; border: 1px solid #E8CF84; color: #5C4306; padding: .75rem .95rem; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 1rem; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(10,10,10,.65); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 1rem; }
.modal__box {
  background: var(--white);
  width: min(720px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.modal__box form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal__body { padding: 1.3rem 1.5rem; overflow-y: auto; flex: 1; }
.modal__foot { justify-content: flex-end; }

/* ---------- data view ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin-bottom: 1.2rem; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 700; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.steps { padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .9rem; }
.code {
  background: var(--black);
  color: #EAE7DE;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  overflow-x: auto;
  font-size: .8rem;
  line-height: 1.65;
  font-family: Consolas, monospace;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--black);
  color: var(--white);
  border-left: 4px solid var(--gold);
  padding: .85rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
  z-index: 120;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-left-color: var(--g2); }

/* ---------- galería de fotos en ficha ---------- */
.photo-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.photo-bar .note { flex: 1; margin: 0; min-width: 200px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.thumb { position: relative; aspect-ratio: 4/3; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--grey); }
.thumb.is-cover { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(10,10,10,.75); color: var(--white); font-size: 1rem; line-height: 1; cursor: pointer; }
.thumb__x:hover { background: var(--red); }
.thumb__cover { position: absolute; left: 0; bottom: 0; right: 0; background: var(--gold); color: var(--black); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: .18rem; }
.thumb__make { position: absolute; left: 0; bottom: 0; right: 0; border: 0; background: rgba(10,10,10,.75); color: var(--white); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .22rem; cursor: pointer; opacity: 0; transition: .2s; }
.thumb:hover .thumb__make, .thumb__make:focus-visible { opacity: 1; }
.thumb__make:hover { background: var(--gold); color: var(--black); }

/* ---------- gastos por unidad y comprobantes ---------- */
.ghead, .grow { display: grid; grid-template-columns: 1.1fr 1.6fr .8fr 72px 28px; gap: .4rem; align-items: center; }
.ghead { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.grow { margin-bottom: .45rem; }
.grow input, .grow select { padding: .5rem .55rem; font-size: .85rem; min-width: 0; }
.grow .g-concepto { text-transform: uppercase; font-weight: 700; }
.grow__x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--grey); color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.grow__x:hover { background: var(--red); color: var(--white); }
.gfoot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .7rem; }
.gtotal {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  background: var(--black);
  color: var(--white);
  padding: .58rem .95rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: .85rem;
}
.gtotal span { color: var(--gold-light); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 700; }
.gtotal b { font-size: 1rem; }
.gtotal small { color: rgba(255,255,255,.65); }

.docfile {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  margin: -.2rem 0 .95rem 1.7rem;
  padding: .55rem .75rem;
  background: var(--grey);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.docfile small { color: var(--muted); }
.docfile__name { flex: 1; min-width: 150px; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docfile__name b { display: inline-block; background: var(--black); color: var(--gold-light); font-size: .62rem; padding: .12rem .38rem; border-radius: 3px; margin-right: .35rem; }

/* ---------- bloques diferenciados en Registrar Operación ---------- */
.ops-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.ops-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(10,10,10,.03);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  border-top: 4px solid var(--gold);
}
.ops-card:nth-child(2) { border-top-color: var(--black); }
.ops-card:nth-child(3) { border-top-color: var(--g1); }
.ops-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10,10,10,.08); }
.ops-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--black);
  margin: .15rem 0 .35rem;
}
.ops-card__info p { font-size: .84rem; color: var(--muted); line-height: 1.45; margin-bottom: .65rem; }
.ops-card__info small { display: inline-block; background: var(--grey); border: 1px solid var(--line); padding: .2rem .58rem; border-radius: 4px; font-size: .72rem; font-weight: 700; color: var(--ink); }
.ops-card__btn { font-size: .8rem; font-weight: 700; padding: .68rem 1rem; letter-spacing: .06em; }

/* ---------- responsive ---------- */
@media (hover: none) { .thumb__make { opacity: 1; } }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .side { transform: translateX(-100%); }
  .side.open { transform: none; }
  .main { margin-left: 0; }
  .top__burger { display: flex; }
  .top { padding: 0 1rem; }
  .view { padding: 1.2rem 1rem; }
  .tc span:first-child, .role-pill { display: none; }
}
@media (max-width: 850px) { .ops-blocks { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .kpis, .kpis--3, .row2, .row3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi strong { font-size: 1.75rem; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .ghead { display: none; }
  .grow { grid-template-columns: 1fr 1fr 1fr 72px 28px; }
  .grow .g-concepto { grid-column: 1 / -1; }
  .grow input[data-k=detalle] { grid-column: 1 / 4; }
}
