/* Smarttrack ensayo — Plus Jakarta Sans, navy structure, orange 15% action */
:root {
  --orange: #F97B0C;
  --orange-d: #B4610A;
  --orange-200: #FFD0A2;
  --orange-50: #FFF1E2;
  --navy: #0E2A5C;
  --navy-2: #1B3D7E;
  --navy-btn: #0E2A5C;
  --tabbar: #FFFFFF;
  --ink: #10203D;
  --muted: #8A99B8;
  --muted-2: #6D7C99;
  --disabled: #B4C2D9;
  --canvas: #F7F9FC;
  --hair: #E9EDF5;
  --azul-50: #EAF0FB;
  --ok: #16A46F;
  --ok-bg: #E8F7F0;
  --pause: #F2A63B;
  --pause-bg: #FFF1E2;
  --inc: #D64545;
  --inc-bg: #FDECEC;
  --away: #B4C2D9;
  --away-bg: #F1F4F9;
  --white: #FFFFFF;
  --shadow: 0 10px 26px rgba(14, 42, 92, 0.10);
  --shadow-lg: 0 18px 44px rgba(14, 42, 92, 0.13);
  --nav-h: 72px;
  --bot-h: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-btn: 11px;
  --r-row: 14px;
  --r-card: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--canvas); color: var(--ink); overflow-x: hidden; touch-action: pan-y; overscroll-behavior-x: none; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", "SF Pro", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
#app { min-height: 100vh; min-height: 100dvh; overflow-x: clip; touch-action: pan-y; }
#app:has(> .topnav) { padding-top: var(--nav-h); }

.iso {
  width: 32px; height: 32px; border-radius: 30%;
  background: var(--orange);
  display: grid; place-items: center; flex-shrink: 0;
}
.iso svg { width: 18px; height: 18px; }
.iso.lg { width: 40px; height: 40px; }
.iso.lg svg { width: 22px; height: 22px; }
.word { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.word .s { color: var(--orange); }
.word .t { color: var(--navy); }
.brand { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-btn);
  background: var(--navy-btn); color: #fff; font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 42, 92, 0.18);
  transition: transform 160ms var(--ease), filter 160ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(14, 42, 92, 0.16); }
.btn.block { width: 100%; }
.btn.lg { height: 76px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.btn.brand {
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(249, 123, 12, 0.22);
  font-weight: 800;
}
.btn.brand:active { box-shadow: 0 2px 8px rgba(249, 123, 12, 0.18); }
.btn:disabled, .btn[disabled] {
  background: var(--hair); color: var(--disabled); box-shadow: none; cursor: not-allowed;
  transform: none; filter: none;
}
.btn .face {
  display: inline-block;
  animation: face-in 200ms var(--ease);
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 12px; border: 0; background: none;
  color: var(--navy); font-weight: 700;
  transition: transform 160ms var(--ease), opacity 160ms ease;
}
.btn-ghost:active { transform: scale(0.97); opacity: 0.8; }
.btn-out {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; width: 100%;
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: var(--r-btn); font-weight: 700;
  transition: transform 160ms var(--ease), background 160ms ease;
}
.btn-out:hover { background: var(--azul-50); }
.btn-out:active { transform: scale(0.97); }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 28px; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.ok .dot { background: var(--ok); animation: pulse-ok 1.6s ease-out infinite; }
.badge.bad { color: var(--inc); background: var(--inc-bg); }
.badge.bad .dot { background: var(--inc); }
.badge.pend { color: var(--pause); background: var(--pause-bg); }
.badge.pend .dot { background: var(--pause); animation: pulse-or 1.8s ease-out infinite; }
.badge.off { color: var(--away); background: var(--away-bg); }
.badge.off .dot { background: var(--away); }
.badge.ej {
  color: var(--navy-2); background: var(--azul-50);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; gap: 0;
}

.kicker {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
h1 {
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1.15;
}

/* ===== MOTION ===== */
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes face-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(-50%) translateY(12px); }
}
@keyframes pulse-ok {
  0% { box-shadow: 0 0 0 0 rgba(22, 164, 111, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(22, 164, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 164, 111, 0); }
}
@keyframes pulse-or {
  0% { box-shadow: 0 0 0 0 rgba(249, 123, 12, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(249, 123, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 123, 12, 0); }
}
@keyframes login-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.page { animation: page-in 200ms var(--ease); }
.row { animation: row-in 220ms var(--ease) both; }
.row:nth-child(1) { animation-delay: 0ms; }
.row:nth-child(2) { animation-delay: 40ms; }
.row:nth-child(3) { animation-delay: 80ms; }
.row:nth-child(4) { animation-delay: 120ms; }
.card { animation: card-in 240ms var(--ease) both; }
.card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2) { animation-delay: 50ms; }
.card:nth-child(3) { animation-delay: 100ms; }
.card:nth-child(4) { animation-delay: 150ms; }

/* ===== LOGIN ===== */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}
.login-card {
  width: min(440px, 100%);
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 44px 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: login-in 240ms var(--ease);
}
.login h1 { margin-top: 32px; }
.login .sub { margin-top: 10px; color: var(--muted-2); font-size: 15px; font-weight: 400; }
.fld { margin-top: 18px; }
.fld label {
  display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 8px; font-weight: 600;
}
.fld input {
  width: 100%; height: 44px; border: 1px solid var(--hair); border-radius: var(--r-btn);
  padding: 0 16px; color: var(--ink); background: var(--white); font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.fld input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.fld input::placeholder { color: var(--muted); }
.roles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px;
}
.roles.three { grid-template-columns: 1fr 1fr 1fr; }
.roles.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
.roles button {
  height: 44px; border-radius: var(--r-btn); border: 1px solid var(--hair);
  background: var(--canvas); color: var(--muted-2); font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 160ms var(--ease);
}
.roles button:active { transform: scale(0.97); }
.roles button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.login .btn { margin-top: 22px; }
.fine { display: block; margin-top: 20px; text-align: center; font-size: 12.5px; color: var(--muted-2); font-weight: 400; }
.hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; font-weight: 400; }

/* ===== SHELL ===== */
.topnav {
  height: var(--nav-h);
  background: var(--tabbar);
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: stretch; gap: 26px;
  padding: 0 26px;
  padding-left: max(26px, env(safe-area-inset-left, 0px));
  padding-right: max(26px, env(safe-area-inset-right, 0px));
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(14,42,92,0.04);
}
.topnav .brand,
.topnav .sp,
.topnav .who,
.topnav .btn-ghost,
.topnav .co-switch,
.topnav .theme-tog { align-self: center; }
.topnav .links {
  display: flex; align-items: stretch; gap: 22px;
  min-width: 0;
}
.topnav a {
  color: var(--muted-2); font-weight: 700; font-size: 15px;
  position: relative;
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.topnav a.on { color: var(--navy); }
.topnav .bn-short { display: none; }
.topnav .bn-full { display: inline; }
.topnav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--navy); border-radius: 3px 3px 0 0;
  pointer-events: none;
}
.topnav .sp { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 13px; font-weight: 600; }
.ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.stage {
  background: var(--navy); color: #fff;
  padding: 26px 28px 52px;
}
.stage .kicker { color: #8A99B8; }
.stage h1 { color: #fff; margin-top: 8px; font-size: 30px; line-height: 1.15; }
.stage p { margin-top: 8px; color: #B4C2D9; font-size: 14.5px; font-weight: 400; }
.stage-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.clock-live { text-align: right; }
.clock-live b {
  display: block; font-size: 42px; font-weight: 800;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05;
}
.clock-live b .sec { font-size: 0.52em; opacity: 0.72; letter-spacing: -0.02em; }
.clock-live > span { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A99B8; font-weight: 600; }
.stage .clock-live > span { color: #F7F9FC; }
.stage .clock-live b,
.stage .clock-live b span { color: #fff; }
.wrap { padding: 28px 26px 48px; max-width: 1440px; width: 100%; margin: 0 auto; box-sizing: border-box; }

/* ===== FICHAR ===== */
.fichar {
  min-height: calc(100vh - var(--nav-h) - var(--bot-h));
  display: flex; flex-direction: column;
  padding: 28px 24px 32px;
  max-width: 540px; margin: 0 auto;
}
.fichar-top { display: flex; justify-content: space-between; align-items: center; }
.emp { text-align: right; }
.emp .n { font-weight: 800; color: var(--ink); font-size: 16px; }
.emp .r { font-size: 13px; color: var(--muted-2); margin-top: 2px; font-weight: 600; }
.fichar-mid {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 28px 8px 20px;
}
.day {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; font-weight: 600;
}
.bigtime {
  font-size: clamp(64px, 16vw, 92px);
  font-weight: 800; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; color: var(--ink); line-height: 0.95;
}
.bigtime .sec {
  font-size: 0.42em; letter-spacing: -0.02em; color: var(--muted-2);
  margin-left: 2px; vertical-align: 0.12em;
}
.fichar-mid .st { margin-top: 22px; font-size: 14px; }
.kpis-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: min(380px, 100%); margin-top: 28px;
}
.kpi-mini {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 16px 18px; text-align: left;
  box-shadow: var(--shadow);
}
.kpi-mini .l { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi-mini .v { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ej-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.fichar-act { padding-top: 12px; }
.fichar-act .btn-ghost { width: 100%; margin-top: 6px; }

/* ===== TIMELINE ===== */
.tline {
  width: 100%;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
  text-align: left;
}
.tline-h {
  display: flex; justify-content: space-between;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.tline-track {
  position: relative; height: 18px;
  background: var(--canvas);
  border: 1px solid var(--hair);
  border-radius: 999px;
  overflow: hidden;
}
.tline-work {
  position: absolute; top: 3px; bottom: 3px; border-radius: 999px;
  background: var(--navy);
}
.tline-pause {
  position: absolute; top: 3px; bottom: 3px; border-radius: 999px;
  background: repeating-linear-gradient(-60deg, var(--pause), var(--pause) 3px, #fff 3px, #fff 6px);
}
.tline-abs {
  position: absolute; top: 3px; bottom: 3px; border-radius: 999px;
  background: var(--away-bg); border: 1px dashed var(--away);
}
.tline-now {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--orange); border-radius: 2px; z-index: 2;
}
.tline-now::after {
  content: "";
  position: absolute; top: -3px; left: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.tline-leg {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 10px; font-size: 12px; color: var(--muted-2); font-weight: 600;
}
.tline-leg b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.dayboard {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 18px 20px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.dayboard .ht {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 12px;
}
.drow {
  display: grid; grid-template-columns: 168px 1fr 72px;
  gap: 12px; align-items: center;
  min-height: 42px; padding: 6px 0;
}
.drow + .drow { border-top: 1px solid var(--hair); }
.drow .nm { font-size: 13.5px; }
.drow .hrs { text-align: right; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ===== JORNADA ===== */
.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: -38px; position: relative; padding: 0 26px;
  max-width: 1440px;
}
.kpi {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 20px 22px 18px;
  box-shadow: var(--shadow-lg);
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}
.kpi:nth-child(even) { transform: translateY(10px); }
.kpi:hover { transform: translateY(-2px); }
.kpi:nth-child(even):hover { transform: translateY(6px); }
.kpi .l { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi .v { margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi .v em { font-style: normal; color: var(--muted-2); font-size: 18px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--white); color: var(--muted-2);
  font-weight: 600; font-size: 13.5px;
  transition: background 180ms ease, color 180ms ease, transform 160ms var(--ease), border-color 180ms ease;
}
.chip:active { transform: scale(0.96); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip b { font-variant-numeric: tabular-nums; }

.split {
  display: grid; grid-template-columns: 1fr 300px; gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 0;
}
.split > .list,
.split > .panel { margin-top: 0; height: 100%; }
.list {
  background: transparent; border: 0; border-radius: 0;
  padding: 6px; box-shadow: none;
  display: flex; flex-direction: column;
}
.row {
  display: grid;
  grid-template-columns: 40px 1fr 68px 76px auto;
  gap: 10px; align-items: center;
  min-height: 62px; padding: 8px 10px; border-radius: 10px;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease);
}
.row + .row { margin-top: 2px; }
.row:hover { background: #F4F7FC; }
.row.sel { background: var(--azul-50); box-shadow: inset 0 0 0 1px #C5D2EA; }
.nm { font-weight: 800; color: var(--ink); font-size: 14px; }
.rl { font-size: 12px; color: var(--muted-2); margin-top: 1px; font-weight: 600; }
.live { font-size: 12px; color: var(--muted-2); margin-top: 2px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  animation: pulse-ok 1.6s ease-out infinite;
}
.live .dot.pause { background: var(--pause); animation: pulse-or 1.8s ease-out infinite; }
.live .dot.off { background: var(--away); animation: none; }
.ent, .hrs {
  text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px;
}
.ent s, .hrs s {
  display: block; font-size: 11px; color: var(--muted-2);
  text-decoration: none; font-weight: 700; margin-top: 3px;
}
.panel {
  background: #F7F9FC; border: 0; border-left: 1px solid var(--hair);
  border-radius: 0; padding: 16px 16px 14px; box-shadow: none;
  position: relative; top: auto; align-self: stretch;
  display: flex; flex-direction: column;
}
.panel .who-n { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.panel .who-r { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.panel .badge { margin-top: 8px; }
.panel .btn-out { margin-top: auto; }
.orig {
  margin-top: 12px; background: var(--white);
  border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px;
}
.orig .ht { font-size: 11.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.orig .hs { font-size: 12px; color: var(--muted-2); margin-top: 3px; font-weight: 400; }
.kv { margin-top: 10px; display: grid; gap: 6px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv span { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.kv b { font-weight: 800; font-variant-numeric: tabular-nums; }
.kv b.bad { color: var(--inc); }
.kv b.ok { color: var(--ok); }
.fine-p { margin-top: 10px; font-size: 11.5px; color: var(--muted-2); line-height: 1.4; font-weight: 400; }

.ini {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
  font-size: 13px; letter-spacing: -0.02em;
}
.ini.c-navy { background: var(--navy); color: #fff; }
.ini.c-blue { background: var(--navy-2); color: #fff; }
.ini.c-sky { background: var(--azul-50); color: var(--navy); }
.ini.c-mist { background: #C5D2EA; color: var(--navy); }

/* ===== EQUIPO ===== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 268px;
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.meta2 { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.meta2 .l { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.meta2 .in { margin-top: 5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hrs-lg {
  margin-top: 18px; font-size: 32px; font-weight: 800;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1;
}
.hrs-lg s { font-size: 14px; color: var(--muted-2); text-decoration: none; font-weight: 700; margin-left: 8px; }
.acts { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; }
.layout { display: grid; grid-template-columns: 1fr 268px; gap: 18px; align-items: start; }
.sum {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow);
}
.sum h2 {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.sum .rowx { padding: 16px 0; border-top: 1px solid var(--hair); }
.sum .rowx:first-of-type { border-top: 0; }
.sum .n { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.sum .k { margin-top: 5px; font-size: 13px; color: var(--muted-2); font-weight: 600; }

/* ===== EMPRESA ===== */
.sheet {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.fld.wide { grid-column: 1 / -1; }
.block { margin-top: 28px; }
.block h2 {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; font-weight: 600;
}
.hgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.hcard {
  background: var(--canvas); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: 18px 16px 16px; min-height: 168px;
}
.hcard .t { font-weight: 800; font-size: 15px; }
.hcard .d { margin-top: 6px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.hcard .m { margin-top: 4px; font-size: 12.5px; color: var(--muted-2); font-weight: 600; }
.week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  margin-top: 14px;
}
.wd { text-align: center; }
.wd-n {
  font-size: 11px; font-weight: 800; color: var(--muted-2);
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.wd-bar {
  position: relative; height: 72px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 8px;
  overflow: hidden;
}
.wd-bar i {
  position: absolute; left: 4px; right: 4px; border-radius: 5px;
  background: var(--navy);
}
.wd-bar i.split {
  background: var(--navy-2);
}
.wd-bar.empty { background: var(--away-bg); border-style: dashed; }
.wd-t { margin-top: 6px; font-size: 10.5px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.festivos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fest {
  min-height: 32px; padding: 4px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--hair);
  font-size: 12px; font-weight: 800; color: var(--navy);
}
.actions { margin-top: 24px; display: flex; justify-content: flex-end; }
.tog { display: flex; gap: 8px; }
.tog button {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-btn);
  border: 1px solid var(--hair); background: var(--canvas); color: var(--muted-2); font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 160ms var(--ease);
}
.tog button:active { transform: scale(0.97); }
.tog button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.toast {
  position: fixed; bottom: 28px; left: 50%;
  background: var(--navy); color: #fff; padding: 14px 20px;
  border-radius: var(--r-row); box-shadow: var(--shadow-lg); z-index: 50;
  font-size: 14px; font-weight: 700;
  animation: toast-in 220ms var(--ease);
}
.toast.out { animation: toast-out 180ms ease-in forwards; }

.botnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  min-height: 56px; background: var(--tabbar);
  border-top: 1px solid var(--hair);
  padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
}
.botnav a, .botnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--navy); font-size: 11px; font-weight: 700;
  background: none; border: 0; min-height: 44px; min-width: 44px; padding: 4px 2px;
}
.botnav .bn-short { display: none; }
.botnav a.on { color: var(--orange); }

@media (max-width: 920px) {
  .split, .layout, .grid, .hgrid, .form, .kpis { grid-template-columns: 1fr 1fr; }
  .kpis { padding: 0 16px; }
  .wrap { padding: 18px 16px 36px; }
  .stage { padding: 20px 16px 44px; }
  .login-card { padding: 36px 24px 28px; }
  .drow { grid-template-columns: 120px 1fr 56px; }
  .kpi:nth-child(even) { transform: none; }
}
@media (max-width: 720px) {
  .mods { grid-template-columns: 1fr; }
  .mod + .mod { border-left: 0; border-top: 1px solid var(--hair); }
  :root { --bot-h: 72px; --r-card: 18px; }
  .topnav { gap: 10px; padding: 0 12px; }
  .topnav .links {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topnav .links::-webkit-scrollbar { display: none; }
  .topnav .links a { flex: 0 0 auto; padding: 0 10px; font-size: 13.5px; }
  .topnav .who .who-full { display: none; }
  .topnav .who .who-short { display: inline; }
  .topnav .btn-ghost { display: none; }
  .botnav { display: flex; }
  .botnav .bn-full { display: none; }
  .botnav .bn-short { display: inline; }
  body { padding-bottom: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px)); }
  /* Portada / alta / login: sin botnav → no reservar 72px */
  body:has(.portada.landing-v2),
  body:has(.alta.alta-v2),
  body:has(main.login),
  body.no-botnav {
    --bot-h: 0px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .jn, .eq, .em { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .jn-hours {
    padding-left: 70px;
    padding-right: 0;
    font-size: 10px;
    letter-spacing: 0;
  }
  .jn-hours span { flex: 1; min-width: 0; text-align: center; }
  .jn-hours span:last-child { flex: 1; width: auto; text-align: center; }
  .jn-who { width: 62px; gap: 6px; }
  .jn-who b { font-size: 12px; }
  .jn-hrs { display: none; }
  .jn-hero-r {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
  }
  .jn-hero-r .jn-ghost, .jn-hero-r .jn-orange {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }
  .em-fields, .em-flags { grid-template-columns: 1fr; }
  .em-in { min-width: 0; font-size: 14px; }
  .em-h .em-logo { display: none; }

  .split, .layout, .grid, .hgrid, .form, .kpis { grid-template-columns: 1fr; }
  .panel { position: static; }
  .row { grid-template-columns: 40px 1fr auto; }
  .row .ent, .row .hrs { display: none; }
  .clock-live { display: none; }
  .kpi:nth-child(even) { transform: none; }
  .week { grid-template-columns: repeat(7, 1fr); }
  .btn:not(.lg), .btn-out, .fld input, .roles button, .tog button { height: 48px; min-height: 48px; }
}


/* Módulos contratados — home administrador */
.modboard {
  position: relative;
  width: 100%;
  min-height: 560px;
  background: var(--canvas);
  border: 1px solid var(--hair);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mods {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(340px, 36%);
  margin-left: 0;
  margin-right: auto;
  padding: 28px 0 28px 24px;
  border: 0;
  max-width: none;
}
.mod {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  width: 100%; padding: 18px 20px 16px;
  border: 1px solid rgba(19,38,92,0.06);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 38px rgba(19,38,92,0.10);
  animation: card-in 240ms var(--ease) both;
  backdrop-filter: blur(8px);
  transition: transform 160ms var(--ease), box-shadow 180ms ease;
}
.mod + .mod { border-left: 1px solid rgba(19,38,92,0.06); transform: translateX(-18px); }
.mod + .mod:active { transform: translateX(-18px) scale(0.99); }
.mod:active { transform: scale(0.99); }
.mod-top { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.mod-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--azul-50); color: var(--navy);
}
.mod.on .mod-ico { background: var(--navy); color: #fff; }
.mod.off { opacity: 0.82; box-shadow: none; cursor: default; background: #F4F6FA; }
.mod.off .mod-name, .mod.off .mod-desc { color: #8A99B8; }
.mod.off .lamp { filter: none; }
.mod.off .mod-ico { background: #EEF1F6; color: var(--muted); }
.mod-name { margin-top: 14px; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.mod-desc { margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); line-height: 1.35; }
.mod-st { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.mod.off .mod-st { color: var(--inc); }
.lamp {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22,164,111,0.12);
  background: var(--ok);
}
.lamp.ok { background: var(--ok); animation: pulse-ok 1.8s ease-out infinite; }
.lamp.bad {
  background: #E11D2E;
  box-shadow: 0 0 0 4px rgba(225,29,46,0.22);
  animation: pulse-bad 1.6s ease-out infinite;
}
@keyframes pulse-bad {
  0% { box-shadow: 0 0 0 0 rgba(214,69,69,0.35); }
  70% { box-shadow: 0 0 0 8px rgba(214,69,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(214,69,69,0); }
}


/* Hero animado (diseño Claude) */
.login { position: relative; overflow: hidden; }
.login-amb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; pointer-events: none;
}
.login-card { position: relative; z-index: 1; }

.hero-vid {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 38%;
  width: 62%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  background: #F3F6FB;
}
.hero-vid iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; pointer-events: none;
}


/* Fichar empleado — diseño Claude */
.fc { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--canvas); }
.fc-amb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.fc-bar {
  position: relative; z-index: 2; height: 64px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.fc-salir {
  background: none; border: 0; font-weight: 700; font-size: 16px; color: #13265C; cursor: pointer;
}
.fc-body {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 28px 36px;
}
.fc-who { align-self: flex-end; text-align: right; }
.fc-who .n { font-size: 20px; font-weight: 800; color: #13265C; }
.fc-who .r { font-size: 15px; font-weight: 600; color: #8494B0; margin-top: 2px; }
.fc-fecha {
  margin-top: 18px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #93A2BC;
}
.fc-clock { display: flex; align-items: baseline; margin-top: 8px; color: #13265C; }
.fc-clock span { font-size: clamp(72px, 14vw, 132px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.fc-clock em { font-style: normal; font-size: clamp(32px, 6vw, 60px); font-weight: 700; color: #5F6E8C; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; animation: om-tick 1s steps(2, end) infinite; }
.fc-st {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 10px 20px; border-radius: 999px; background: #EDF1F7; font-weight: 600; color: #7B8AA6;
}
.fc-st i { width: 11px; height: 11px; border-radius: 50%; background: #B4C0D4; }
.fc-st.on { background: rgba(249,115,22,0.12); color: #C2570A; }
.fc-st.on i { background: #F97316; animation: om-blink 2.4s ease-in-out infinite; }
.fc-st.pause { background: #FFF1E2; color: #B4610A; }
.fc-st.pause i { background: #F97B0C; animation: om-blink 2.4s ease-in-out infinite; }
.fc-tline {
  width: 100%; max-width: 820px; margin-top: 24px; padding: 18px 22px 16px;
  border-radius: 20px; background: var(--white); box-shadow: var(--shadow-lg);
}
.fc-hours { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: #A6B2C9; font-variant-numeric: tabular-nums; }
.fc-track { position: relative; height: 16px; margin-top: 12px; border-radius: 10px; background: #F2F5FA; }
.fc-fill { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, rgba(249,115,22,0.85), #F97316); }
.fc-now { position: absolute; top: -7px; bottom: -7px; width: 3px; border-radius: 2px; background: #F97316; }
.fc-leg { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; font-weight: 600; color: #5F6E8C; gap: 12px; }
.fc-leg b { color: #13265C; font-weight: 800; font-variant-numeric: tabular-nums; }
.fc-note { margin-top: 16px; font-size: 14px; font-weight: 500; color: #93A2BC; }
.fc-note b { color: #5F6E8C; font-weight: 800; }
.fc-act { margin-top: auto; width: 100%; max-width: 820px; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.fc-btn {
  width: 100%; height: 76px; border: none; border-radius: 16px; color: #fff;
  font-weight: 800; font-size: 24px; cursor: pointer;
  animation: om-pulse 3.6s ease-in-out infinite;
}
.fc-btn.in { background: #F97316; }
.fc-btn.out { background: var(--navy-btn); animation-name: none; box-shadow: 0 12px 28px rgba(19,38,92,0.22); }
.fc-pause { background: none; border: 0; font-weight: 700; color: #5F6E8C; padding: 8px; }

.fc-veil {
  position: absolute; inset: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(7px);
  animation: om-veil 3.4s ease-out forwards; pointer-events: none;
}
.fc-seal-wrap { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.fc-burst { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(249,115,22,0.5); animation: om-burst 1.5s ease-out forwards; }
.fc-burst.b2 { border-color: rgba(249,115,22,0.4); animation-delay: 0.22s; }
.fc-burst.b3 { border-color: rgba(19,38,92,0.28); animation-delay: 0.44s; }
.fc-ring { position: absolute; inset: 14px; border-radius: 50%; border: 3px solid rgba(19,38,92,0.08); }
.fc-draw { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); transform: rotate(-90deg); }
.fc-draw circle { stroke-dasharray: 302; stroke-dashoffset: 302; animation: om-draw 1.15s cubic-bezier(0.4,0,0.2,1) 0.1s forwards; }
.fc-sweep {
  position: absolute; inset: 14px; border-radius: 50%;
  -webkit-mask-image: conic-gradient(#000, transparent 42%);
  mask-image: conic-gradient(#000, transparent 42%);
  background: radial-gradient(circle, rgba(249,115,22,0) 58%, rgba(249,115,22,0.16) 100%);
  animation: om-sweep 1.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
.fc-sello {
  position: relative; width: 140px; height: 140px; border-radius: 42px;
  display: grid; place-items: center;
  box-shadow: 0 26px 60px rgba(19,38,92,0.22);
  animation: om-seal 3.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.fc-spark { position: absolute; left: calc(50% - 5px); top: calc(50% - 5px); border-radius: 50%; animation: om-spark 1.1s ease-out forwards; }
.fc-spark.s1 { width: 10px; height: 10px; background: #F97316; --dx: 120px; --dy: -96px; animation-delay: 0.42s; }
.fc-spark.s2 { width: 8px; height: 8px; background: #13265C; --dx: -116px; --dy: -70px; animation-delay: 0.5s; }
.fc-spark.s3 { width: 9px; height: 9px; background: #F97316; --dx: 104px; --dy: 88px; animation-delay: 0.58s; }
.fc-spark.s4 { width: 7px; height: 7px; background: #13265C; --dx: -98px; --dy: 98px; animation-delay: 0.66s; }
.fc-cap { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: om-caption 3.4s ease-out forwards; }
.fc-tit { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: #13265C; text-align: center; }
.fc-pill {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px;
  background: #fff; box-shadow: 0 16px 40px rgba(19,38,92,0.12);
}
.fc-pill b { font-size: 22px; font-weight: 800; color: #F97316; font-variant-numeric: tabular-nums; }
.fc-pill i { width: 1px; height: 20px; background: #E6EAF3; }
.fc-pill span { font-size: 16px; font-weight: 600; color: #5F6E8C; }
.fc-sub { font-size: 15px; font-weight: 600; color: #93A2BC; }

/* Empleado Hoy — panel con topNav */
.fc.fc-app {
  min-height: calc(100vh - var(--nav-h) - var(--bot-h, 64px));
  overflow: auto;
  padding-bottom: 12px;
}
.fc.fc-app .fc-body {
  padding-top: 12px;
  padding-bottom: 28px;
}
.fc-sum {
  width: 100%; max-width: 820px; margin-top: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.fc-card {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: 16px; padding: 14px 16px 12px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.fc-card.wide { grid-column: 1 / -1; }
.fc-card.due b { color: #B4610A; }
.em-bolsa {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px;
  background: #FFF1E2; border: 1px solid #FFD0A2;
}
.em-bolsa s { font-size: 11.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: #B4610A; text-decoration: none; }
.em-bolsa b { font-size: 18px; font-weight: 800; color: #B4610A; font-variant-numeric: tabular-nums; }
.em-bolsa span { font-size: 13px; font-weight: 600; color: #8A6A3A; }
html.dark .em-bolsa { background: rgba(249,123,12,.16); border-color: #F97B0C; }
html.dark .em-bolsa s, html.dark .em-bolsa b { color: #FFD0A2; }
html.dark .em-bolsa span { color: #E8C49A; }

.fc-card s {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #93A2BC; text-decoration: none;
}
.fc-card b {
  font-size: 22px; font-weight: 800; color: #13265C;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.fc-card b.ok { color: #16A46F; }
.fc-card b.bad { color: #D64545; }
.fc-card b.pend { color: #B4610A; }
.fc-card b.off { color: #7B8AA6; }
.fc-card em {
  font-style: normal; font-size: 13px; font-weight: 600; color: #8494B0;
  display: inline-flex; align-items: center; gap: 6px;
}
.fc-card .jn-pill { align-self: flex-start; margin-top: 2px; }
.fc-mini-tline { margin-top: 4px; }
.fc-hours.sm { font-size: 12px; }
.fc-track.sm { height: 12px; margin-top: 8px; }
.fc-track .tline-work,
.fc-track .tline-pause,
.fc-track .tline-abs {
  top: 2px; bottom: 2px;
}
.fc-links {
  width: 100%; max-width: 820px; margin-top: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.fc-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--hair);
  box-shadow: var(--shadow-lg); text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.fc-link:hover { border-color: rgba(249,115,22,.45); transform: translateY(-1px); }
.fc-link b { font-size: 16px; font-weight: 800; color: #13265C; }
.fc-link span { font-size: 13px; font-weight: 600; color: #8494B0; }

.jn-emp .jn-kpis-emp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jn-emp-acts {
  display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin-top: 14px;
}
.jn-emp-acts .jn-go,
.jn-emp-acts .jn-go.ghost {
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; height: 46px; min-height: 46px; margin: 0; box-sizing: border-box;
  line-height: 1; flex: 1 1 0;
}

@media (max-width: 720px) {
  .fc-sum { grid-template-columns: 1fr 1fr; }
  .fc-card.wide { grid-column: 1 / -1; }
.fc-card.due b { color: #B4610A; }
.em-bolsa {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px;
  background: #FFF1E2; border: 1px solid #FFD0A2;
}
.em-bolsa s { font-size: 11.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: #B4610A; text-decoration: none; }
.em-bolsa b { font-size: 18px; font-weight: 800; color: #B4610A; font-variant-numeric: tabular-nums; }
.em-bolsa span { font-size: 13px; font-weight: 600; color: #8A6A3A; }
html.dark .em-bolsa { background: rgba(249,123,12,.16); border-color: #F97B0C; }
html.dark .em-bolsa s, html.dark .em-bolsa b { color: #FFD0A2; }
html.dark .em-bolsa span { color: #E8C49A; }

  .fc-links { grid-template-columns: 1fr; }
  .jn-emp .jn-kpis-emp { grid-template-columns: 1fr 1fr; }
  .fc.fc-app { min-height: calc(100dvh - var(--nav-h) - var(--bot-h, 64px)); }
}


@keyframes om-tick { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes om-veil { 0% { opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes om-burst { 0% { transform: scale(0.35); opacity: 0.65; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes om-seal { 0% { transform: scale(0.4) rotate(-14deg); opacity: 0; } 34% { transform: scale(1.12) rotate(4deg); opacity: 1; } 48% { transform: scale(1) rotate(0deg); } 84% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.94); opacity: 0; } }
@keyframes om-draw { to { stroke-dashoffset: 0; } }
@keyframes om-sweep { 0% { transform: rotate(0deg); opacity: 0; } 10% { opacity: 1; } 100% { transform: rotate(360deg); opacity: 1; } }
@keyframes om-caption { 0% { opacity: 0; transform: translate3d(0,22px,0); } 26% { opacity: 1; transform: translate3d(0,0,0); } 84% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0,-10px,0); } }
@keyframes om-spark { 0% { transform: translate3d(0,0,0) scale(1); opacity: 0.9; } 100% { transform: translate3d(var(--dx), var(--dy), 0) scale(0.2); opacity: 0; } }
@keyframes om-pulse { 0%, 100% { box-shadow: 0 14px 30px rgba(249,115,22,0.30); } 50% { box-shadow: 0 22px 54px rgba(249,115,22,0.50); } }
@keyframes om-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }


@media (max-width: 720px) {
  .modboard {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-vid {
    position: relative;
    top: 0; right: 0; bottom: auto; left: 0;
    width: 100%;
    height: 168px;
    min-height: 168px;
    max-height: 168px;
    order: -1;
  }
  .hero-vid iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .mods { width: 100%; padding: 14px 14px 16px; margin: 0; }
  .mod + .mod { transform: none; }
  .wrap { padding: 12px 14px 28px; }
}

/* Jornada — modelo HTML subido */
.jn { background: var(--canvas); min-height: calc(100vh - var(--nav-h) - var(--bot-h)); padding-bottom: 44px; }
.jn > .jn-hero {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 35;
}
.jn-chrome-s { flex: none; }
.jn-hero {
  background: var(--navy); color: #fff;
  padding: 24px 26px 22px;
  display: flex; align-items: center; gap: 24px;
}
.jn-hero h1 { margin: 8px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1; color: #fff; }
.jn-hero p { margin-top: 8px; font-size: 14.5px; font-weight: 600; color: #A9BCE0; }
.jn-hero .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 2.2px; color: #8FA8D4; }
.jn-hero-r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.jn-hero .clock-live > span { color: #F7F9FC; }
.jn-hero .clock-live b,
.jn-hero .clock-live b span { color: #fff; }
.jn-hero .clock-live b { font-size: 34px; }
.jn-hero .clock-live b .sec { color: #D7E2F5; opacity: 1; }
.jn-ghost, .jn-orange {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; min-height: 46px; padding: 0 18px; border-radius: 13px;
  font-weight: 700; font-size: 14px; line-height: 1; box-sizing: border-box;
}
.jn-ghost { border: 1.5px solid rgba(255,255,255,.34); background: transparent; color: #fff; }
.jn-orange { border: 0; background: #F97B0C; color: #fff; font-weight: 800; }
.jn-body { max-width: 1680px; margin: 18px auto 0; padding: 0 26px; display: flex; flex-direction: column; gap: 20px; }
.jn-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.jn-kpi {
  background: #fff; border-radius: 18px; padding: 18px 22px;
  box-shadow: 0 12px 30px rgba(14,42,92,.11);
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.jn-kpi.bad::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #D64545; }
.jn-kpi s { font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; color: #8A99B8; text-decoration: none; text-transform: uppercase; }
.jn-kpi .v { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; display: flex; align-items: flex-end; gap: 9px; }
.jn-kpi .v em { font-style: normal; font-size: 15px; font-weight: 700; color: #8A99B8; padding-bottom: 3px; }
.jn-kpi .v.ok { color: #16A46F; }
.jn-kpi .v.bad { color: #D64545; }
.jn-kpi .v.pend { color: #B4610A; }
.jn-kpi .tag { font-size: 12px; font-weight: 800; border-radius: 20px; padding: 5px 10px; margin-bottom: 4px; }
.jn-kpi .tag.ok { color: #16A46F; background: #E8F7F0; }
.jn-kpi .tag.bad { color: #B03A34; background: #FDECEC; }
.jn-kpi .tag.pend { color: #B4610A; background: #FFF1E2; }
.jn-kpi p { margin: 0; font-size: 12.5px; font-weight: 600; color: #8A99B8; }
.jn-kpi .segs { display: flex; gap: 5px; }
.jn-kpi .segs i { flex: 1; height: 6px; border-radius: 3px; background: #E3E9F4; }
.jn-kpi .segs i.on { background: #0E2A5C; }

.jn-grid { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 20px; align-items: start; }
.jn-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.jn-card { background: var(--white); border-radius: 20px; border: 1px solid var(--hair); padding: 22px 24px; }
.jn-card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.jn-card-h h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.chip-lite { font-size: 12px; font-weight: 800; color: #6D7C99; background: #F4F7FC; border-radius: 20px; padding: 6px 11px; }
.chip-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #16A46F; background: #E8F7F0; border-radius: 20px; padding: 6px 11px; text-transform: uppercase; }
.chip-live i { width: 7px; height: 7px; border-radius: 50%; background: #16A46F; }
.jn-leg { margin-left: auto; display: flex; gap: 16px; font-size: 12px; font-weight: 700; color: #6D7C99; }
.jn-leg i, .jn-sum i { display: inline-block; width: 14px; height: 8px; border-radius: 4px; vertical-align: middle; }
.jn-leg i.w, .jn-sum i.w { background: #0E2A5C; }
.jn-leg i.p, .jn-sum i.p { background: #F2A63B; }
.jn-leg i.a { width: 14px; height: 8px; border: 1px dashed #B4C2D9; background: transparent; box-sizing: border-box; }
.jn-sum i.b { background: #D64545; }

.jn-hours { display: flex; gap: 0; padding-left: 118px; padding-right: 86px; font-size: 11.5px; font-weight: 700; color: #A5B2C9; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.jn-hours span { flex: 1; }
.jn-hours span:last-child { flex: 0; width: 0; text-align: right; }
.jn-hours.sm { padding: 0; }

.jn-trow { display: flex; align-items: center; gap: 16px; padding: 9px 0; }
.jn-who { width: 102px; display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.jn-who b { font-size: 13.5px; font-weight: 800; }
.jn-trow.off .jn-who b { color: #8A99B8; }
.jn-hrs { min-width: 88px; width: auto; padding-left: 8px; text-align: right; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jn-trow.off .jn-hrs { color: #B4C2D9; }

.jn-bar { flex: 1; position: relative; height: 26px; background: #F4F7FC; border-radius: 13px; }
.jn-bar.sm { height: 22px; }
.jn-bar .g { position: absolute; top: 0; bottom: 0; width: 1px; background: #E6EBF4; }
.jn-bar .tline-work { position: absolute; top: 4px; bottom: 4px; background: #0E2A5C; border-radius: 9px; }
.jn-bar .tline-pause { position: absolute; top: 4px; bottom: 4px; background: #F2A63B; border-radius: 0 9px 9px 0; }
.jn-bar .tline-abs { display: none; }
.jn-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #F97B0C; border-radius: 2px; }
.jn-abs {
  position: absolute; inset: 0; display: flex; align-items: center; padding-left: 14px;
  font-size: 11px; font-weight: 800; color: #A5B2C9; letter-spacing: 1px;
  border: 1px dashed #D3DCEA; border-radius: 13px; background: #F9FBFD;
}

.jn-av { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: #0E2A5C; flex-shrink: 0; }
.jn-av.lg { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; }
.jn-av.or { background: #F97B0C; }
.jn-av.c-blue { background: #1B3D7E; }
.jn-av.c-sky { background: #EAF0FB; color: #1B3D7E; }
.jn-av.c-mist { background: #E3E9F4; color: #8A99B8; }

.jn-list { display: flex; flex-direction: column; gap: 10px; }
.jn-row {
  display: flex; align-items: center; gap: 16px; padding: 15px 16px;
  border-radius: 16px; border: 1px solid #E6EBF4; cursor: pointer; position: relative;
  background: #fff;
}
.jn-row.sel { background: #F4F7FC; border: 1.5px solid #0E2A5C; }
.jn-mark { position: absolute; left: -1.5px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: #F97B0C; }
.jn-id { min-width: 0; width: 220px; display: flex; flex-direction: column; gap: 4px; }
.jn-id b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.jn-id .live { font-size: 12.5px; font-weight: 600; color: #6D7C99; display: flex; align-items: center; gap: 8px; }
.jn-meta { display: flex; flex-direction: column; align-items: center; width: 72px; }
.jn-meta b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jn-meta s { font-size: 11px; font-weight: 700; color: #8A99B8; text-decoration: none; }
.jn-prog { flex: 1; min-width: 80px; display: flex; flex-direction: column; gap: 6px; }
.jn-prog i { display: block; height: 8px; border-radius: 4px; background: #0E2A5C; max-width: 100%; }
.jn-prog { background: linear-gradient(#E3E9F4,#E3E9F4) top / 100% 8px no-repeat; padding-top: 0; }
.jn-prog span { font-size: 11.5px; font-weight: 700; color: #8A99B8; }
.jn-pill { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; border-radius: 20px; padding: 8px 13px; flex-shrink: 0; }
.jn-pill i { width: 7px; height: 7px; border-radius: 50%; }
.jn-pill.bad { color: #B03A34; background: #FDECEC; }
.jn-pill.bad i { background: #D64545; }
.jn-pill.ok { color: #16A46F; background: #E8F7F0; }
.jn-pill.ok i { background: #16A46F; }
.jn-pill.pend { color: #B4610A; background: #FFF1E2; }
.jn-pill.pend i { background: #F97B0C; }
.jn-pill.off { color: #6D7C99; background: #F4F7FC; }
.jn-pill.off i { background: #B4C2D9; }

.jn-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + var(--jn-hero-h, 168px) + 12px); z-index: 1; }
.jn-panel { background: var(--white); border-radius: 20px; border: 1px solid var(--hair); overflow: hidden; }
.jn-side-h { background: #0E2A5C; padding: 20px 22px; display: flex; align-items: center; gap: 14px; }
.jn-side-h b { display: block; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.jn-side-h span { font-size: 12.5px; font-weight: 600; color: #A9BCE0; }
.jn-side-b { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.jn-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 11px 14px; border-radius: 13px; }
.jn-alert i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.jn-alert b { font-size: 13.5px; font-weight: 800; min-width: 0; }
.jn-alert em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; max-width: 100%; }
.jn-alert.bad { background: #FDECEC; }
.jn-alert.bad i, .jn-alert.bad b, .jn-alert.bad em { color: #B03A34; }
.jn-alert.bad i { background: #D64545; }
.jn-alert.ok { background: #E8F7F0; }
.jn-alert.ok i { background: #16A46F; }
.jn-alert.ok b, .jn-alert.ok em { color: #16A46F; }
.jn-alert.pend { background: #FFF1E2; }
.jn-alert.pend i { background: #F97B0C; }
.jn-alert.pend b, .jn-alert.pend em { color: #B4610A; }
.jn-alert.off { background: #F4F7FC; }
.jn-alert.off i { background: #B4C2D9; }
.jn-go {
  height: 46px; border: 0; border-radius: 13px; background: #0E2A5C; color: #fff;
  font-size: 14px; font-weight: 800; cursor: pointer;
}
.jn-sum { background: var(--white); border-radius: 20px; border: 1px solid var(--hair); padding: 20px 22px; display: flex; flex-direction: column; gap: 13px; }
.jn-sum s { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: #8A99B8; text-decoration: none; text-transform: uppercase; }
.jn-sum div { display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 600; color: #3C4C6B; }
.jn-sum b { margin-left: auto; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .jn-grid { grid-template-columns: 1fr; }
  .jn-side { position: static; }
  .jn-kpis { grid-template-columns: 1fr 1fr; }
  .jn-hero { flex-wrap: wrap; padding: 24px 16px 64px; }
  .jn-body { padding: 0 16px; }
  .jn-prog, .jn-meta { display: none; }
}

/* Equipo — mock v2 (hero overlap + cards + sticky side) */
.eq { background: #EEF2F8; min-height: calc(100vh - var(--nav-h) - var(--bot-h)); padding-bottom: 44px; }
.eq-chrome {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 35;
  background: var(--navy);
}
.eq-chrome-s { flex: none; }
.eq-hero {
  background: var(--navy); color: #fff;
  padding: 18px 34px 48px;
  display: flex; align-items: flex-end; gap: 30px;
}
.eq-hero h1 { margin: 6px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; color: #fff; }
.eq-hero p { margin-top: 6px; font-size: 14px; font-weight: 600; color: #A9BCE0; }
.eq-hero .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 2.2px; color: #8FA8D4; }
.eq-hero-r { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.eq-hero-r .eq-toggle { flex: 0 0 auto; }
.eq-body {
  max-width: 1680px; margin: 12px auto 0; padding: 0 34px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; z-index: 2;
}
.eq-filters {
  background: var(--white); border-radius: 18px;
  box-shadow: 0 12px 30px rgba(14,42,92,.11);
  padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  position: relative; top: auto; z-index: 1;
  max-width: 1680px;
  margin: -36px auto 12px;
  width: calc(100% - 68px);
}
.eq-filters .chips { margin: 0; gap: 8px; }
.eq-filters .chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #3C4C6B;
  border: 1px solid #E3E8F1; border-radius: 20px; padding: 9px 16px;
  background: #fff;
}
.eq-filters .chip.on { background: #0E2A5C; color: #fff; border-color: #0E2A5C; font-weight: 800; }
.eq-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block;
}
.eq-dot.g { background: #16A46F; }
.eq-dot.y { background: #F2A63B; }
.eq-dot.z { background: #B4C2D9; }
.eq-filters .chip.on .eq-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.eq-sep { width: 1px; height: 26px; background: #E9EDF5; }
.eq-faint { font-size: 13px; font-weight: 700; color: #6D7C99; }
.eq-cover { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.eq-cover s { font-size: 12.5px; font-weight: 700; color: #8A99B8; text-decoration: none; }
.eq-cover b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.eq-segs { display: flex; gap: 4px; }
.eq-segs i { width: 26px; height: 8px; border-radius: 4px; background: #E3E9F4; }
.eq-segs i.g { background: #16A46F; }
.eq-segs i.y { background: #F2A63B; }

.eq-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; }
.eq-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; align-items: stretch; }
.eq-card {
  background: var(--white); border-radius: 20px; border: 1px solid #E6EBF4;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 15px;
  height: 100%; box-sizing: border-box;
}
.eq-card.pause { border-color: #FFE0BF; }
.eq-card.off { background: #FBFCFE; border-style: dashed; border-color: #D3DCEA; }
.eq-card .jn-av.lg {
  width: 46px; height: 46px; border-radius: 15px; font-size: 14.5px;
}
.eq-top { display: flex; align-items: center; gap: 13px; }
.eq-top div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eq-top b { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.eq-card.off .eq-top b { color: #6D7C99; }
.eq-top span { font-size: 12.5px; font-weight: 600; color: #8A99B8; }
.eq-pill { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; border-radius: 20px; padding: 7px 12px; flex-shrink: 0; }
.eq-pill i { width: 7px; height: 7px; border-radius: 50%; }
.eq-pill.on { color: #0F7C55; background: #E8F7F0; }
.eq-pill.on i { background: #16A46F; }
.eq-pill.pause { color: #B4610A; background: #FFF1E2; }
.eq-pill.pause i { background: #F2A63B; }
.eq-pill.off { color: #6D7C99; background: #EEF2F8; }
.eq-pill.off i { background: #B4C2D9; }

.eq-stats { display: flex; align-items: flex-end; gap: 14px; }
.eq-stats > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.eq-stats s {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: #A5B2C9;
  text-decoration: none; text-transform: uppercase;
}
.eq-stats b.lg { font-size: 30px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eq-kv { margin-left: auto; display: flex; gap: 10px; }
.eq-kv.wide { margin-left: 0; }
.eq-kv.wide > div { flex: 1; }
.eq-kv > div {
  background: #F9FBFD; border: 1px solid #E6EBF4; border-radius: 11px;
  padding: 9px 13px; display: flex; flex-direction: column; gap: 1px;
}
.eq-kv s {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #A5B2C9;
  text-decoration: none; text-transform: uppercase;
}
.eq-kv b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

.eq-track { display: flex; flex-direction: column; gap: 7px; }
.eq-bar { position: relative; height: 14px; background: #F4F7FC; border-radius: 7px; }
.eq-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: #E6EBF4; pointer-events: none; }
.eq-bar .tline-work { position: absolute; top: 2px; bottom: 2px; background: #0E2A5C; border-radius: 6px; }
.eq-bar .tline-pause { position: absolute; top: 2px; bottom: 2px; background: #F2A63B; border-radius: 0 6px 6px 0; }
.eq-bar .jn-now { z-index: 2; }
.eq-ends {
  display: flex; align-items: center;
  font-size: 11px; font-weight: 700; color: #A5B2C9; font-variant-numeric: tabular-nums;
}
.eq-ends span:nth-child(2) { margin: 0 auto; }

.eq-vac {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border-radius: 14px; background: #fff; border: 1px solid #E6EBF4;
}
.eq-vac b { display: block; font-size: 14px; font-weight: 800; }
.eq-vac span { display: block; font-size: 12.5px; font-weight: 600; color: #8A99B8; }
.eq-vac em { margin-left: auto; font-style: normal; font-size: 13.5px; font-weight: 800; color: #6D7C99; font-variant-numeric: tabular-nums; }

.eq-acts { display: flex; gap: 9px; margin-top: auto; padding-top: 2px; }
.eq-ghost, .eq-navy {
  flex: 1; height: 42px; border-radius: 12px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.eq-ghost { border: 1.5px solid #C9D5EA; background: #fff; color: #0E2A5C; }
.eq-navy { border: 0; background: #0E2A5C; color: #fff; }

.eq-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.eq-box { background: var(--white); border-radius: 20px; border: 1px solid #E6EBF4; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.eq-box s { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: #8A99B8; text-decoration: none; text-transform: uppercase; }
.eq-donut-row { display: flex; align-items: center; gap: 18px; }
.eq-donut {
  width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(#16A46F 0 50%, #F2A63B 50% 75%, #E3E9F4 75% 100%);
  display: grid; place-items: center;
}
.eq-donut div { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.eq-donut b { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.8px; }
.eq-donut em { font-size: 10.5px; font-weight: 800; color: #8A99B8; letter-spacing: .6px; font-style: normal; text-transform: uppercase; }
.eq-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.eq-legend div { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #3C4C6B; }
.eq-legend i { width: 9px; height: 9px; border-radius: 3px; }
.eq-legend i.g { background: #16A46F; }
.eq-legend i.y { background: #F2A63B; }
.eq-legend i.z { background: #B4C2D9; }
.eq-legend b { margin-left: auto; font-size: 14px; font-weight: 800; }
.eq-hours { display: flex; align-items: center; padding-top: 14px; border-top: 1px solid #EEF2F8; font-size: 13.5px; font-weight: 600; color: #6D7C99; }
.eq-hours b { margin-left: auto; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: #10203D; }
.eq-dept { display: flex; flex-direction: column; gap: 5px; }
.eq-dept div { display: flex; align-items: center; }
.eq-dept b { font-size: 13px; font-weight: 700; flex: 1; }
.eq-dept em { font-style: normal; font-size: 13px; font-weight: 800; }
.eq-dept i { display: block; height: 7px; border-radius: 4px; background: #F4F7FC; overflow: hidden; }
.eq-dept u { display: block; height: 100%; background: #0E2A5C; text-decoration: none; }
.eq-cta { background: #0E2A5C; border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 11px; }
.eq-cta b { font-size: 14.5px; font-weight: 800; color: #fff; }
.eq-cta p { margin: 0; font-size: 12.5px; font-weight: 600; color: #A9BCE0; line-height: 1.5; }
.eq-cta button { height: 44px; border: 0; border-radius: 12px; background: #F97B0C; color: #fff; font-size: 13.5px; font-weight: 800; margin-top: 4px; cursor: pointer; }

@media (max-width: 1100px) {
  .eq-grid { grid-template-columns: 1fr; }
  .eq-cards { grid-template-columns: 1fr; }
  .eq-side { position: static; }
  .eq-hero { flex-wrap: wrap; padding: 16px 16px 40px; }
  .eq-filters { width: calc(100% - 32px); margin: -28px auto 10px; }
  .eq-body { margin-top: 10px; padding: 0 16px; }
}

/* Empresa — modelo HTML subido */
.em { background: var(--canvas); min-height: calc(100vh - var(--nav-h) - var(--bot-h)); padding-bottom: 44px; }
.em-hero {
  background: var(--navy); color: #fff;
  padding: 28px 34px 28px;
  display: flex; align-items: flex-end; gap: 30px;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.em-hero.has-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,42,92,.92) 0%, rgba(14,42,92,.72) 48%, rgba(14,42,92,.48) 100%);
  pointer-events: none;
}
.em-hero > * { position: relative; z-index: 1; }
.em-hero-l { display: flex; align-items: flex-end; gap: 16px; min-width: 0; }
.em-logo.on-hero, .em-logo.sm.on-hero {
  width: 56px; height: 56px; flex: 0 0 56px;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 6px 18px rgba(8,20,48,.28);
}
.em-hero h1 { margin: 8px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1; color: #fff; }
.em-hero p { margin-top: 8px; font-size: 14.5px; font-weight: 600; color: #A9BCE0; }
.em-hero .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 2.2px; color: #8FA8D4; }
.em-hero-r { margin-left: auto; display: flex; gap: 11px; }
.em { overflow: visible; }
.em-body { max-width: 1680px; margin: 18px auto 0; padding: 0 34px; display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; position: relative; z-index: 2; }
.em-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.em-card { background: var(--white); border-radius: 20px; border: 1px solid var(--hair); padding: 24px 26px; }
.em-card.lift { box-shadow: 0 12px 30px rgba(14,42,92,.11); border: 0; position: relative; z-index: 2; }
.em-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.em-h h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.em-h .eq-pill { margin-left: auto; }
.em-ico { width: 36px; height: 36px; border-radius: 11px; background: #EAF0FB; }
.em-ico.clk { background: #FFF1E2; }
.em-add { margin-left: auto; height: 38px; padding: 0 15px; border-radius: 11px; border: 1.5px solid #C9D5EA; background: #fff; color: #0E2A5C; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.em-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.em-fields .wide { grid-column: 1 / -1; }
.em-fields s, .em-flags s { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: #A5B2C9; text-decoration: none; text-transform: uppercase; display: block; margin-bottom: 7px; }
.em-in {
  height: 50px; border: 1px solid #E3E8F1; border-radius: 13px; background: #F9FBFD;
  display: flex; align-items: center; padding: 0 16px; font-size: 15.5px; font-weight: 800;
}
.em-in.tab { font-variant-numeric: tabular-nums; }
.em-in em { margin-left: 10px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #6D7C99; background: #EEF2F8; border-radius: 16px; padding: 4px 9px; }
.em-flags { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-top: 20px; margin-top: 20px; border-top: 1px solid #EEF2F8; }
.em-flags b.lg { font-size: 26px; font-weight: 800; letter-spacing: -.9px; }
.em-flags span { font-size: 14px; font-weight: 700; color: #6D7C99; }
.em-tog { display: flex; border: 1px solid #E3E8F1; border-radius: 12px; overflow: hidden; width: max-content; }
.em-tog button { height: 42px; padding: 0 24px; border: 0; background: #F9FBFD; color: #8A99B8; font-weight: 700; cursor: pointer; }
.em-tog button.on { background: #0E2A5C; color: #fff; font-weight: 800; }

.em-hors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.em-hor { border: 1px solid #E6EBF4; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.em-hor.on { border: 1.5px solid #0E2A5C; }
.em-hor b { display: block; font-size: 15.5px; font-weight: 800; }
.em-hor strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.em-def { align-self: flex-start; font-size: 11.5px; font-weight: 800; color: #fff; background: #0E2A5C; border-radius: 20px; padding: 6px 11px; text-transform: uppercase; }
.em-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; color: #6D7C99; background: #F4F7FC; border-radius: 20px; padding: 6px 11px; text-transform: uppercase; }
.em-week { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.em-wd { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.em-wd s { font-size: 11.5px; font-weight: 800; color: #8A99B8; text-decoration: none; }
.em-wd em { font-size: 10.5px; font-weight: 800; font-style: normal; font-variant-numeric: tabular-nums; }
.em-wd.off s, .em-wd.off em { color: #C4CEE0; }
.em-bar { width: 100%; height: 44px; border-radius: 9px; background: #F4F7FC; display: flex; align-items: center; padding: 0 4px; }
.em-bar i { display: block; width: 100%; height: 22px; border-radius: 6px; background: #0E2A5C; }
.em-bar.split { flex-direction: column; justify-content: center; gap: 4px; }
.em-bar.split i { height: 12px; border-radius: 5px; }
.em-bar.split i.or { background: #F97B0C; }
.em-bar.empty { background: #F9FBFD; border: 1px dashed #E3E8F1; }
.em-foot { display: flex; align-items: center; padding-top: 14px; border-top: 1px solid #EEF2F8; font-size: 13px; font-weight: 600; color: #6D7C99; }
.em-foot button { margin-left: auto; background: none; border: 0; font-size: 13px; font-weight: 800; color: #0E2A5C; cursor: pointer; }

.em-fests { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.em-fest { border: 1px solid #E6EBF4; border-radius: 14px; padding: 14px 16px; }
.em-fest b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.7px; line-height: 1.1; }
.em-fest span { font-size: 12.5px; font-weight: 700; color: #6D7C99; }

.em-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; }
.em-id { background: #fff; border-radius: 20px; border: 1px solid #E6EBF4; overflow: hidden; }
.em-id-h { background: #0E2A5C; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.em-logo { width: 64px; height: 64px; border-radius: 20px; background: #F97B0C; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.em-id-h b { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.em-id-h span { font-size: 12.5px; font-weight: 600; color: #A9BCE0; }
.em-badges { display: flex; gap: 8px; }
.em-badges em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(255,255,255,.20); border: 1px solid rgba(255,255,255,.55); border-radius: 20px; padding: 6px 12px; text-transform: uppercase; }
.em-badges em.dim { color: #EAF0FB; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.40); }
.em-id-b { padding: 20px 22px; display: flex; flex-direction: column; gap: 13px; }
.em-id-b div { display: flex; align-items: center; font-size: 13.5px; font-weight: 600; color: #6D7C99; }
.em-id-b b { margin-left: auto; font-size: 15px; font-weight: 800; color: #10203D; }
.em-id-b .last { padding-top: 13px; border-top: 1px solid #EEF2F8; }
.em-box { background: #fff; border-radius: 20px; border: 1px solid #E6EBF4; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.em-box s { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: #8A99B8; text-decoration: none; text-transform: uppercase; }
.em-comp { display: flex; align-items: center; }
.em-comp b { margin-left: auto; font-size: 13.5px; font-weight: 800; }
.em-bar86 { height: 9px; border-radius: 5px; background: #F4F7FC; }
.em-bar86::after { content: ""; display: block; width: 86%; height: 100%; background: #16A46F; border-radius: 5px; }
.em-ok, .em-warn { font-size: 13px; font-weight: 600; color: #3C4C6B; padding-left: 28px; position: relative; }
.em-ok::before, .em-warn::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 7px; background: #E8F7F0; color: #16A46F;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.em-warn::before { content: "!"; background: #FFF1E2; color: #B4610A; }
.em-box p { margin: 0; font-size: 13.5px; font-weight: 600; color: #3C4C6B; line-height: 1.5; }
.em-box button { height: 44px; border: 0; border-radius: 12px; background: #0E2A5C; color: #fff; font-size: 13.5px; font-weight: 800; cursor: pointer; }

@media (max-width: 1100px) {
  .em-body, .em-hors, .em-fields, .em-flags, .em-fests { grid-template-columns: 1fr 1fr; }
  .em-body { grid-template-columns: 1fr; padding: 0 16px; }
  .em-side { position: static; }
  .em-hero { flex-wrap: wrap; padding: 24px 16px 56px; }
}

@keyframes st-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.chip-live i, .clock-live .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #F97B0C;
  display: inline-block; margin-right: 6px; vertical-align: middle;
  animation: st-pulse 1.6s ease-in-out infinite;
}
.chip-live i { background: #16A46F; }
.jn-trow { cursor: pointer; border-radius: 12px; }
.jn-trow:hover { background: #F4F7FC; }
.jn-trow.sel { background: #F4F7FC; }
.jn-orange { cursor: pointer; }

button.jn-av, button.em-logo {
  border: 0; padding: 0; font: inherit; line-height: 1;
  cursor: pointer; position: relative; overflow: hidden;
}
.jn-av img, .em-logo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.jn-av.has-pic, .em-logo.has-pic { background: #D9DEE8; color: transparent; }
.jn-av:hover::after, .em-logo:hover::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(14,42,92,.38);
}
.em-logo { cursor: pointer; position: relative; overflow: hidden; }

.em-logo.sm { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; flex-shrink: 0; }
.em-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.em-who s {
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; color: #8A99B8;
  text-decoration: none; text-transform: uppercase;
}
.em-who h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: #0E2A5C; }

.em-id-h { cursor: pointer; background-size: cover; background-position: center; position: relative; }
.em-id-h.has-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,92,.38), rgba(14,42,92,.86));
  pointer-events: none;
}
.em-id-h > * { position: relative; z-index: 1; }

input.em-in {
  width: 100%; box-sizing: border-box; font-family: inherit; color: #0E2A5C;
  outline: none;
}
input.em-in:focus { border-color: #0E2A5C; background: #fff; }
input.em-in.vac { max-width: 92px; height: 50px; font-size: 26px; font-weight: 800; letter-spacing: -.9px; padding: 0 12px; }
.em-fest { cursor: pointer; }
.em-fest:hover { border-color: #D64545; }
.st-mod {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(14,42,92,.42);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.st-mod-card {
  width: min(460px, 100%);
  margin: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 20px; padding: 18px 20px 16px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  min-height: 0;
}
.st-mod-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: var(--ink); flex: 0 0 auto; }
.st-mod-body {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; min-height: 0; flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.st-mod-act {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--hair, #EEF2F8);
  flex: 0 0 auto;
}

.login-card.auth { width: min(460px, 100%); padding: 36px 34px 28px; position: relative; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-top: 22px; padding: 5px; background: var(--canvas); border-radius: 12px;
}
.auth-tabs button {
  height: 40px; border: 0; border-radius: 9px; background: transparent;
  color: #6D7C99; font-weight: 800; font-size: 13.5px;
}
.auth-tabs button.on { background: #fff; color: #0E2A5C; box-shadow: 0 4px 12px rgba(14,42,92,.08); }
.login-card.auth h1 { margin-top: 20px; font-size: 26px; }
.soc { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.soc-btn {
  height: 46px; border-radius: 12px; border: 1.5px solid #E3E8F1; background: #fff;
  color: #10203D; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.soc-btn:hover { background: #F7F9FC; }
.soc-btn i { width: 20px; height: 20px; display: grid; place-items: center; flex-shrink: 0; }
.soc-g {
  background:
    conic-gradient(from 0deg, #EA4335 0 90deg, #FBBC05 90deg 180deg, #34A853 180deg 270deg, #4285F4 270deg 360deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 40%);
  mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 40%);
}
.soc-a { background: #111; border-radius: 5px; position: relative; }
.soc-a::after { content: ""; width: 10px; height: 12px; border: 1.6px solid #fff; border-radius: 6px 6px 3px 3px; }
.soc-l { background: #0E2A5C; border-radius: 50%; }
.soc-l::after { content: ""; width: 9px; height: 9px; border: 1.7px solid #fff; border-radius: 50%; border-top-color: transparent; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: #8A99B8; font-size: 12px; font-weight: 800; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #E6EBF4; }
.or span { white-space: nowrap; }
.auth-sheet {
  position: absolute; inset: 12px; background: #fff; border-radius: 16px;
  padding: 22px 22px 18px; box-shadow: 0 16px 40px rgba(14,42,92,.16);
  z-index: 3; display: flex; flex-direction: column;
}
.auth-sheet h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #0E2A5C; }
.auth-sheet p { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: #6D7C99; }
.auth-sheet-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.demo-enter { display: grid; gap: 8px; margin-top: 8px; }
.demo-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hair); background: #fff; cursor: pointer;
}
.demo-btn b { font-size: 14px; font-weight: 700; color: var(--navy); }
.demo-btn span { font-size: 12px; color: var(--muted); font-weight: 500; }
.demo-btn:hover { border-color: var(--navy); }
.demo-btn.admin { box-shadow: inset 3px 0 0 var(--navy); }
.demo-btn.mgr { box-shadow: inset 3px 0 0 #2A6B9E; }
.demo-btn.emp { box-shadow: inset 3px 0 0 var(--orange); }

/* VeriFactu — misma densidad que Jornada */
.st-mod-act .jn-ghost { border-color: #C9D5EA; color: #0E2A5C; }
select.em-in, textarea.em-in {
  width: 100%; box-sizing: border-box; font-family: inherit; color: #0E2A5C;
  outline: none; appearance: none;
}
.vf-tabs {
  display: flex; background: rgba(255,255,255,.12); border-radius: 12px; padding: 4px; gap: 4px;
}
.vf-tabs button {
  height: 38px; padding: 0 16px; border: 0; border-radius: 9px;
  background: transparent; color: #A9BCE0; font-weight: 800; font-size: 13.5px;
}
.vf-tabs button.on { background: #fff; color: #0E2A5C; }
.vf-settings {
  background: #fff; border-radius: 18px; box-shadow: 0 12px 30px rgba(14,42,92,.11);
  padding: 16px 20px; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
}
.vf-settings label { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.vf-settings s {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: #8A99B8;
  text-decoration: none; text-transform: uppercase;
}
.vf-settings .em-in { height: 44px; max-width: 160px; }
.vf-settings .chip-lite { margin-bottom: 6px; }
.vf-list { display: flex; flex-direction: column; gap: 8px; }
.vf-row {
  display: grid;
  grid-template-columns: 128px minmax(180px, 1.8fr) 112px 120px 124px 34px;
  align-items: center; gap: 14px 16px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid #E6EBF4; cursor: pointer; position: relative;
  background: #fff;
}
.vf-row.sel { background: #F4F7FC; border: 1.5px solid #0E2A5C; }
.vf-cli-row {
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 12px;
}
.vf-row-num { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vf-row-num b { font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.vf-ico { width: 34px; height: 34px; border-radius: 11px; background: #F4F7FC; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.vf-row-cli { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.vf-row-cli b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vf-row-cli span { font-size: 12px; font-weight: 600; color: #8A99B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vf-row-date { font-size: 13.5px; font-weight: 700; color: #6D7C99; font-variant-numeric: tabular-nums; }
.vf-row-amt { font-size: 16px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.vf-row-chev { color: #B4C2D9; font-size: 20px; font-weight: 700; text-align: center; transform: rotate(-90deg); }
.vf-row.sel .vf-row-chev { color: #0E2A5C; }
.vf-id { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.vf-id b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.vf-id span { font-size: 12.5px; font-weight: 600; color: #6D7C99; }
.vf-meta-d { display: flex; flex-direction: column; align-items: center; width: 78px; }
.vf-meta-d b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vf-meta-d s { font-size: 11px; font-weight: 700; color: #8A99B8; text-decoration: none; }
.vf-amt { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vf-doc .jn-side-h { justify-content: space-between; }
.vf-paper { gap: 18px; }
.vf-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vf-parties s, .vf-doc-meta s, .vf-pays s {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  color: #8A99B8; text-decoration: none; text-transform: uppercase; margin-bottom: 2px;
}
.vf-parties b { display: block; font-size: 14.5px; font-weight: 800; color: #0E2A5C; }
.vf-parties span { display: block; font-size: 12.5px; font-weight: 600; color: #6D7C99; }
.vf-doc .jn-side-b.vf-paper {
  background: #fff;
  gap: 20px;
}
.vf-doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.vf-doc-meta > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.vf-doc-meta.static { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
@media (min-width: 721px) {
  .vf-doc-meta.static { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vf-doc-meta.static b { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: #0E2A5C; }
.vf-in {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  height: 44px;
  border: 1px solid #E3E8F1;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0E2A5C;
  font-family: inherit;
  line-height: 1.3;
  overflow: visible;
}
.vf-in:focus {
  outline: none;
  border-color: #0E2A5C;
  box-shadow: 0 0 0 3px rgba(14,42,92,.08);
}
select.vf-in {
  appearance: auto;
  padding-right: 28px;
}
.vf-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  box-sizing: border-box;
}
.vf-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  table-layout: fixed;
}
.vf-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #6D7C99;
  text-transform: uppercase;
  padding: 0 6px 8px;
  border-bottom: 1px solid #E9EDF5;
  white-space: nowrap;
}
.vf-table td {
  padding: 6px;
  border-bottom: 1px solid #E9EDF5;
  font-weight: 700;
  vertical-align: middle;
  height: 52px;
  overflow: hidden;
}
.vf-table .vf-c-desc { width: auto; min-width: 0; }
.vf-table .vf-c-desc .vf-in,
.vf-table .vf-desc-txt {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

/* Concepto desplegable (borrador) */
.vf-table .vf-c-desc .vf-desc-trig {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #E3E8F1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #0E2A5C;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  line-height: 42px;
}
.vf-table .vf-c-desc .vf-desc-trig .ph {
  color: #9AA8C2;
  font-weight: 600;
}
.vf-table .vf-c-desc .vf-desc-trig:focus {
  outline: none;
  border-color: #0E2A5C;
  box-shadow: 0 0 0 3px rgba(14,42,92,.08);
}
.vf-desc-pop {
  position: fixed;
  z-index: 80;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 16px));
  padding: 12px;
  border: 1px solid #E3E8F1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(14, 42, 92, 0.16);
  box-sizing: border-box;
}
.vf-desc-pop .vf-desc-lab {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vf-desc-pop .vf-desc-lab s {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8A99B8;
  text-decoration: none;
  text-transform: uppercase;
}
.vf-desc-ta {
  box-sizing: border-box;
  width: 100%;
  min-width: 280px;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #E3E8F1;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #0E2A5C;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
}
.vf-desc-ta:focus {
  outline: none;
  border-color: #0E2A5C;
  box-shadow: 0 0 0 3px rgba(14,42,92,.08);
}
.vf-desc-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-height: 96px;
  overflow: auto;
}
.vf-desc-hint {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 2px;
  border: 1px solid #E3E8F1;
  background: #F5F7FB;
  color: #3C4C6B;
  border-radius: 999px;
  padding: 2px 4px 2px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.vf-desc-hint:hover {
  background: #EAF0FA;
  color: #0E2A5C;
  border-color: #C9D5EA;
}
.vf-desc-hint-pick {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 3px 2px;
  cursor: pointer;
}
.vf-desc-hint-x {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8A99B8;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.vf-desc-hint-x:hover {
  background: #E3E8F1;
  color: #0E2A5C;
}
.vf-table .vf-c-qty { width: 58px; }
.vf-table .vf-c-price { width: 78px; }
.vf-table .vf-c-iva { width: 64px; }
.vf-table .vf-c-imp { width: 84px; text-align: right; }
.vf-table .vf-c-x { width: 44px; text-align: center; padding-left: 2px; padding-right: 8px; }
.vf-table th.vf-c-x { padding-right: 8px; }
.vf-table td.vf-c-qty,
.vf-table td.vf-c-price,
.vf-table td.vf-c-iva,
.vf-table td.vf-c-imp {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vf-table .vf-c-qty .vf-in,
.vf-table .vf-c-price .vf-in {
  padding: 0 6px;
  font-size: 13.5px;
}
.jn-grid.vf-grid {
  grid-template-columns: minmax(0,1fr) 460px;
}
.vf-doc .jn-side-b.vf-paper {
  padding-left: 16px;
  padding-right: 16px;
}
.vf-imp {
  display: block;
  text-align: right;
  font-size: 14.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #0E2A5C;
  line-height: 44px;
}
.vf-x {
  width: 36px;
  height: 36px;
  border: 1px solid #E3E8F1;
  background: #fff;
  color: #6D7C99;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.vf-x:hover { color: #B03A34; border-color: #F0C9C6; background: #FFF7F6; }
.vf-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 12px;
  margin-left: auto;
  min-width: min(280px, 100%);
}
.vf-totals div {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  font-size: 14.5px;
  font-weight: 600;
  color: #3C4C6B;
}
.vf-totals b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0E2A5C;
}
.vf-totals .sum {
  font-size: 18px;
  color: #0E2A5C;
  padding-top: 10px;
  border-top: 1px solid #E9EDF5;
}
.vf-totals .sum span { font-size: 15px; font-weight: 800; }
.vf-totals .sum b {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.4px;
  line-height: 1;
}
.vf-totals .vf-cobrado { font-size: 13px; color: #6D7C99; }
.vf-pays { display: flex; flex-direction: column; gap: 6px; }
.vf-pays div { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: #6D7C99; }
.vf-pays b { color: #10203D; font-variant-numeric: tabular-nums; }
.vf-aet {
  border: 1px solid #E6EBF4;
  border-radius: 14px;
  background: #F7F9FC;
  padding: 0;
}
.vf-aet > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0E2A5C;
  letter-spacing: .2px;
}
.vf-aet > summary::-webkit-details-marker { display: none; }
.vf-aet[open] > summary { border-bottom: 1px solid #E6EBF4; }
.vf-aet-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px 14px;
}
.vf-aet img { border-radius: 8px; background: #fff; flex-shrink: 0; }
.vf-aet-st {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 1px;
  color: #B4610A; background: #FFF1E2; border-radius: 20px; padding: 5px 10px; margin-bottom: 8px;
}
.vf-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 700; color: #0E2A5C; word-break: break-all; line-height: 1.4;
}
.vf-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.vf-acts .jn-orange { flex: 1 1 140px; min-width: 120px; }
.vf-acts .eq-navy, .vf-acts .eq-ghost { flex: 1 1 120px; min-width: 110px; height: 46px; border-radius: 13px; }
.vf-acts .eq-ghost.danger {
  flex: 1 1 100%;
  margin-top: 0;
  color: #B03A34;
  border-color: #F0C9C6;
  background: #fff;
}
.vf-acts .eq-ghost.danger:hover { background: #FFF7F6; }
@media (max-width: 1100px) {
  .jn-grid.vf-grid, .vf-grid { grid-template-columns: 1fr; }
  .vf-parties, .vf-doc-meta { grid-template-columns: 1fr; }
  .vf-meta-d { display: none; }
  .vf-table .vf-c-iva { display: none; }
  .vf-table-wrap { overflow-x: visible; }
}
@media (max-width: 720px) {
  .vf-table { min-width: 0; table-layout: auto; }
  .vf-table thead { display: none; }
  .vf-table, .vf-table tbody, .vf-table tr, .vf-table td {
    display: block;
    width: 100%;
  }
  .vf-table tr {
    border: 1px solid #E6EBF4;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
  }
  .vf-table td {
    height: auto;
    padding: 8px 0;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .vf-table td.vf-c-desc::before { content: "Concepto"; }
  .vf-table td.vf-c-qty::before { content: "Cant."; }
  .vf-table td.vf-c-price::before { content: "Precio"; }
  .vf-table td.vf-c-iva::before { content: "IVA"; }
  .vf-table td.vf-c-imp::before { content: "Importe"; }
  .vf-table .vf-c-iva { display: none; }
  .vf-table td.vf-c-desc::before,
  .vf-table td.vf-c-qty::before,
  .vf-table td.vf-c-price::before,
  .vf-table td.vf-c-imp::before {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #6D7C99;
    text-transform: uppercase;
  }
  .vf-table td.vf-c-x {
    flex-direction: row;
    justify-content: flex-end;
    padding-top: 4px;
  }
  .vf-table .vf-c-qty,
  .vf-table .vf-c-price,
  .vf-table .vf-c-iva,
  .vf-table .vf-c-imp,
  .vf-table .vf-c-x { width: 100%; }
  .vf-imp { line-height: 1.4; text-align: left; }
  .vf-totals { align-items: stretch; min-width: 0; width: 100%; }
  .vf-totals .sum b { font-size: 26px; }
}

.st-mod-body s, .st-mod-card s, .st-mod label s {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: #8A99B8;
  text-decoration: none; text-transform: uppercase; display: block; margin-bottom: 6px;
}


.co-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0;
}
.co-add {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid #D5DDE9; border-radius: 10px;
  background: #0E2A5C; color: #fff;
  font-size: 20px; font-weight: 700; line-height: 1;
  cursor: pointer; font-family: inherit;
}
.co-add:hover { background: #F97B0C; border-color: #F97B0C; }
.co-switch select {
  height: 34px;
  min-width: 168px;
  max-width: 240px;
  padding: 0 28px 0 12px;
  border: 1px solid #D5DDE9;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230E2A5C' d='M1 1.2l5 5 5-5'/></svg>") no-repeat right 10px center;
  background-size: 12px 8px;
  color: #0E2A5C;
  font-weight: 800;
  font-size: 12.5px;
  font-family: inherit;
  letter-spacing: -.1px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.co-switch select:focus {
  outline: none;
  border-color: #0E2A5C;
}
@media (max-width: 720px) {
  .co-switch select { min-width: 0; font-size: 12px; }
}
@media (max-width: 430px) {
  .topnav {
    gap: 6px;
    padding: 0 8px;
    padding-top: env(safe-area-inset-top, 0px);
    overflow: visible;
  }
  .co-switch { gap: 4px; flex-shrink: 1; min-width: 0; }
  .co-switch select {
    max-width: calc(100vw - 196px);
    padding: 0 22px 0 8px;
    font-size: 12px;
  }
  .co-add { width: 40px; height: 40px; flex-shrink: 0; }
}

.st-empty {
  margin: 28px 24px 40px;
  padding: 36px 28px;
  border: 1px dashed #D5DDE9;
  border-radius: 16px;
  background: #F9FBFD;
  text-align: center;
}
.st-empty b { display: block; font-size: 18px; font-weight: 800; color: #0E2A5C; margin-bottom: 8px; }
.st-empty p { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: #6D7C99; }

.vf-search {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px;
  border-radius: 12px; background: rgba(255,255,255,.12); width: 250px; max-width: 100%;
  box-sizing: border-box;
}
.vf-search-ico { color: #8FA8D4; font-size: 15px; line-height: 1; opacity: .9; }
.vf-q {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  color: #fff; font: inherit; font-weight: 600; font-size: 13.5px; padding: 0;
}
.vf-q::placeholder { color: #8FA8D4; }
.vf-q:focus { outline: none; }
@media (max-width: 720px) {
  .vf .jn-hero-r {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .vf-tabs { width: 100%; }
  .vf-tabs button { flex: 1; min-height: 44px; height: 44px; }
  .vf-search { width: 100%; }
  .vf-q { min-width: 0; width: 100%; max-width: none; height: 44px; box-sizing: border-box; }
  .vf .jn-hero-r .jn-ghost,
  .vf .jn-hero-r .jn-orange {
    flex: 1 1 auto;
    width: 100%;
    white-space: nowrap;
    overflow: visible;
  }
}

.mod-pulse {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1120px;
  margin: 16px auto 4px;
  padding: 0 28px;
  position: relative;
  z-index: 3;
}
.mod-pulse .mp {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px 16px;
  background: #fff; border: 1px solid #E3E8F1; border-radius: 14px;
  text-decoration: none; color: inherit;
  box-shadow: 0 8px 24px rgba(14,42,92,.06);
}
.mod-pulse .mp s {
  text-decoration: none; font-size: 11px; font-weight: 800;
  letter-spacing: 1.1px; text-transform: uppercase; color: #8A99B8;
}
.mod-pulse .mp b { font-size: 26px; font-weight: 800; color: #0E2A5C; letter-spacing: -.6px; line-height: 1; }
.mod-pulse .mp span { font-size: 12.5px; font-weight: 600; color: #6D7C99; }
.mod-pulse .mp.warn b { color: #B4610A; }
.mod-pulse .mp.bad b { color: #D64545; }
@media (max-width: 720px) {
  .mod-pulse { grid-template-columns: 1fr 1fr; padding: 0 16px; margin-top: 12px; }
}


/* Kiosko Lite — tablet-first, navy structure, orange ~15% action */
.kk {
  min-height: 100vh;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  padding: 22px 28px 28px;
  position: relative;
}
.kk-admin {
  position: absolute;
  top: 14px;
  right: 16px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.45;
  z-index: 5;
}
.kk-admin:hover { opacity: 0.8; }
.kk-head { text-align: center; padding: 8px 40px 10px; }
.kk-co {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kk-clock {
  margin-top: 6px;
  font-size: clamp(72px, 13vw, 124px);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--navy);
  line-height: 0.95;
}
.kk-clock .sec { font-size: 0.42em; color: var(--muted); font-weight: 700; }
.kk-day { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted-2); text-transform: capitalize; }
.kk-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px auto 18px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px;
  width: min(420px, 100%);
}
.kk-tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted-2);
  font-weight: 800;
  font-size: 13.5px;
}
.kk-tabs button.on { background: var(--navy); color: #fff; }
.kk-body { flex: 1; width: min(880px, 100%); margin: 0 auto; }
.kk-empty {
  margin: 48px 12px;
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed #D5DDE9;
  border-radius: 16px;
  background: #F9FBFD;
}
.kk-empty b { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.kk-empty p { margin-top: 8px; color: var(--muted-2); font-weight: 600; }
.kk-faces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.kk-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px 18px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 168px;
}
.kk-face:active { transform: scale(0.98); }
.kk-face b { font-size: 14.5px; font-weight: 800; color: var(--navy); text-align: center; }
.kk-face em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.kk-av {
  width: 72px; height: 72px; border-radius: 22px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #fff;
  background: #0E2A5C;
  overflow: hidden;
}
.kk-av.xl { width: 96px; height: 96px; border-radius: 28px; font-size: 28px; }
.kk-av.c-blue { background: #1B3D7E; }
.kk-av.c-sky { background: #EAF0FB; color: #1B3D7E; }
.kk-av.c-mist { background: #E3E9F4; color: #8A99B8; }
.kk-av.has-pic { background: #D9DEE8; color: transparent; }
.kk-av img { width: 100%; height: 100%; object-fit: cover; }
.kk-pin { width: min(360px, 100%); margin: 0 auto; text-align: center; }
.kk-pin.admin {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(16, 32, 61, 0.46);
  display: flex; align-items: center; justify-content: center;
  width: auto; margin: 0; padding: 24px;
}
.kk-pin-card {
  position: relative;
  width: min(360px, 100%);
  padding: 28px 22px 22px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.kk-pin-h { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.kk-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; }
.kk-dots i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
}
.kk-dots i.on { background: var(--navy); }
.kk-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kk-key {
  height: 64px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
}
.kk-key:active { transform: scale(0.96); background: var(--azul-50); }
.kk-key.go { background: var(--orange); color: #fff; border-color: var(--orange); }
.kk-admin-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--muted-2);
  font-weight: 700;
  font-size: 13px;
}
.kk-who { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 20px; }
.kk-who h2 { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.kk-who p { font-weight: 600; color: var(--muted-2); }
.kk-st {
  margin: 6px 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--azul-50);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}
.kk-acts { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }
.kk-back {
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--muted-2);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 0 8px;
}
.kk-qr { display: flex; flex-direction: column; gap: 12px; width: min(520px, 100%); margin: 0 auto; }
.kk-cam {
  height: 120px;
  border: 1.5px dashed #D5DDE9;
  border-radius: 16px;
  background: #EEF2F8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--navy);
}
.kk-cam span { font-weight: 800; }
.kk-cam em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted-2); margin-top: 4px; }
.kk-qr-in {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.kk-qr-in:focus { outline: none; border-color: var(--navy); }
.kk-qr-list { display: flex; flex-direction: column; gap: 8px; }
.kk-qr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.kk-qr-item img { border-radius: 8px; background: #fff; }
.kk-qr-item b { display: block; color: var(--navy); font-weight: 800; }
.kk-qr-item span { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.kk-qr-modal { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.kk-qr-modal img { border-radius: 12px; background: #fff; }
.kk-qr-modal b { color: var(--navy); }
.kk-qr-modal span { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
@media (max-width: 720px) {
  .kk { padding: 16px 16px 20px; }
  .kk-clock { font-size: 52px; }
  .kk-faces { grid-template-columns: repeat(2, 1fr); }
  .kk-key { height: 56px; }
}

body.kiosk-on { padding-bottom: 0; background: var(--canvas); }
.kk-av.c-navy { background: #0E2A5C; color: #fff; }
.kk-qr { width: min(880px, 100%); }
.kk-qr-hint { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted-2); margin: 0 0 8px; }
.kk-qr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.kk-qr-item {
  flex-direction: column;
  text-align: center;
  padding: 16px 12px 14px;
  min-height: 210px;
}
.kk-qr-item img { width: 140px; height: 140px; }
@media (max-width: 720px) {
  .kk-qr-list { grid-template-columns: repeat(2, 1fr); }
}

.jn-bar { position: relative; }
.jn-onbar {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 2px 7px;
  border-radius: 99px;
  background: #E8EEF6;
  color: var(--navy);
  pointer-events: none;
  z-index: 2;
}
.jn-onbar.ok { background: #D9F0E3; color: #1B7A45; }
.jn-onbar.bad { background: #F8D4D4; color: #B42318; }
.jn-onbar.pend { background: #FDE8C8; color: #9A6700; }
.eq-toggle {
  display: flex; align-items: center; gap: 3px;
  border: 0; border-radius: 12px; padding: 4px;
  background: rgba(255,255,255,.12);
}
.eq-toggle button {
  height: auto; padding: 9px 18px; border: 0; border-radius: 9px;
  background: transparent; color: #A9BCE0;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.eq-toggle button.on { background: #fff; color: #0E2A5C; font-weight: 800; }
.eq-toggle button:not(.on):hover { color: #fff; background: rgba(255,255,255,0.12); }
.eq-dense { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid #E4EAF2; border-radius: 14px; overflow: hidden; flex: 1; min-width: 0; }
.eq-dense { display: table; width: 100%; border-collapse: collapse; table-layout: fixed; }
.eq-dhead, .eq-drow:not(.hist) {
  display: table-row;
}
.eq-dhead > *,
.eq-drow:not(.hist) > * {
  display: table-cell;
  vertical-align: middle;
  padding: 12px 14px;
  border-bottom: 1px solid #EEF2F7;
}
.eq-dhead > .h-name, .eq-drow:not(.hist) > .eq-who { width: 22%; }
.eq-dhead > .h-role, .eq-drow:not(.hist) > .eq-drole { width: 16%; }
.eq-dhead > .h-st, .eq-drow:not(.hist) > .eq-stbox { width: 22%; }
.eq-dhead > .h-in, .eq-drow:not(.hist) > .eq-din { width: 10%; }
.eq-dhead > .h-hrs, .eq-drow:not(.hist) > .eq-dhrs { width: 10%; }
.eq-dhead > .h-acts, .eq-drow:not(.hist) > .eq-dacts { width: 20%; }
.eq-stbox {
  display: table-cell;
}
.eq-stbox-in {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; width: max-content; max-width: 100%;
}
.eq-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eq-who .jn-av { width: 32px; height: 32px; flex: 0 0 32px; }
.eq-dbolsa { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: #B4610A; white-space: nowrap; }
.eq-dhead {
  background: #F7F9FC;
  padding: 8px 14px;
  border-bottom: 1px solid #E4EAF2;
}
.eq-dhead b, .eq-dhead span, .eq-dhead em, .eq-dhead u, .eq-dhead i, .eq-dhead s {
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  color: #8A99B8; font-style: normal; text-decoration: none;
}
.eq-drow { min-height: 52px; cursor: default; }
.eq-drow:last-child { border-bottom: 0; }
.eq-drow:hover { background: #F7F9FC; }
.eq-dname { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-dname b { font-size: 13.5px; color: var(--navy); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-dmobile { display: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.eq-drole { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-drow u, .eq-dhrs {
  font-size: 13px; color: var(--navy); font-style: normal; text-decoration: none;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.eq-dst {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; font-style: normal;
  padding: 4px 10px; border-radius: 999px; width: fit-content;
  background: #F1F4F9; color: #6D7C99;
}
.eq-dst i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.eq-dst.ok { background: #E8F7F0; color: #16A46F; }
.eq-dst.pause { background: #FFF1E2; color: #C97A0A; }
.eq-dst.off { background: #F1F4F9; color: #8A99B8; }
.eq-dacts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.eq-ghost.sm, .eq-navy.sm {
  height: 32px; padding: 0 10px; font-size: 12px; border-radius: 9px;
}
.eq-drow span, .eq-drow em, .eq-drow u { font-size: 12.5px; color: var(--muted); font-style: normal; text-decoration: none; font-weight: 600; }
.kk-admin { opacity: 0.22; font-size: 18px; letter-spacing: 0; font-weight: 800; }

.ex-range { margin: 2px 0 0; }
.st-mod .ex-range .chip { cursor: pointer; }

.kk-rgpd{margin:14px 18px 0;font-size:11.5px;font-weight:600;color:var(--muted);text-align:center;line-height:1.35;max-width:420px}

.eq-ghost.danger { color: #B03A34; border-color: #F0C9C6; margin-top: 10px; }


.eq-drow.hist {
  grid-template-columns: 1.4fr 1fr .9fr .9fr .8fr;
  cursor: default;
}
.eq-drow.hist.baja { opacity: 0.7; }
.eq-drow.hist.baja u { color: #B03A34; }
.eq-drow.hist i { font-size: 12px; color: var(--muted); font-style: normal; font-weight: 600; }
@media (max-width: 720px) {
  .eq-drow.hist { grid-template-columns: 1fr auto; }
  .eq-drow.hist span, .eq-drow.hist i { display: none; }
}


/* === movil 720 lote === */
@media (max-width: 720px) {
  .fc {
    min-height: calc(100dvh - var(--bot-h));
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .fc-bar {
    height: auto;
    min-height: 52px;
    padding: 8px 16px;
  }
  .fc-body { padding: 4px 16px 16px; }
  .fc-act { padding-top: 16px; padding-bottom: 4px; }
  .fc-btn { height: 64px; font-size: 20px; }

  .vf .jn-hero-r {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .vf .jn-hero-r .jn-ghost,
  .vf .jn-hero-r .jn-orange {
    flex: 0 0 auto;
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
  }

  .em-fields,
  .em-flags,
  .em-hors,
  .em-fests {
    grid-template-columns: 1fr;
  }
  .em-fields .wide { grid-column: 1; }
  .em-in,
  input.em-in {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .em-hero {
    min-height: 168px;
    background-size: cover;
    background-position: center;
  }

  .eq-grid > .eq-dense { min-width: 0; width: 100%; }
  .eq-dense { width: 100%; min-width: 0; }
  .eq-dense { display: block; }
  .eq-dhead { display: none; }
  .eq-drow:not(.hist) {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name acts"
      "st acts";
    gap: 6px 10px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    align-items: center;
  }
  .eq-drow:not(.hist) > * { display: block; width: auto; padding: 0; border: 0; }
  .eq-drow:not(.hist) > .eq-who { grid-area: name; }
  .eq-drow:not(.hist) > .eq-stbox { grid-area: st; }
  .eq-drow:not(.hist) > .eq-dacts { grid-area: acts; }
  .eq-dacts-in { flex-direction: column; }
  .eq-stbox-in { align-items: flex-start; }
  .eq-drow:not(.hist) > .eq-drole,
  .eq-drow:not(.hist) > .eq-din,
  .eq-drow:not(.hist) > u,
  .eq-drow:not(.hist) > .eq-dhrs { display: none !important; }
  .eq-dmobile { display: block !important; }
  .eq-dname b { font-size: 15px; }

  .login { overflow-y: auto; min-height: 100dvh; }
  .login-card.auth { padding: 20px 16px 28vh; width: min(460px, calc(100% - 24px)); }
  .login-card.auth input,
  .login .fld input {
    font-size: 16px;
    min-height: 44px;
    height: 44px;
  }
  .auth-tabs button { height: 44px; }
  .login .btn.brand { position: relative; z-index: 2; }

  .topnav {
    gap: 8px;
    padding: 0 10px;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(56px + env(safe-area-inset-top, 0px));
    overflow: visible;
  }
  .topnav .who,
  .topnav .btn-ghost { display: none; }
  .co-switch {
    min-width: 0;
    flex-shrink: 1;
    max-width: 100%;
    overflow: visible;
  }
  .co-switch select {
    height: 44px;
    min-width: 0;
    max-width: min(42vw, 148px);
    width: auto;
    flex: 1 1 auto;
    padding: 0 24px 0 8px;
    font-size: 13px;
  }
  .co-add { width: 44px; height: 44px; flex-shrink: 0; }

  .modboard {
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
  }
  .hero-vid {
    position: relative !important;
    top: auto; right: auto; bottom: auto; left: auto;
    width: 100%;
    height: 168px;
    z-index: 0;
    order: -1;
    transform: none;
  }
  .mods {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 14px 16px;
    transform: none;
  }
  .mod,
  .mod + .mod {
    transform: none;
  }
  .mod-pulse { position: relative; z-index: 1; }
}


.mod-offer {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  background: #0E2A5C;
  color: #fff;
  border-radius: 14px;
  box-sizing: border-box;
  width: calc(100% - 56px);
}
.mod-offer b { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.mod-offer span { font-size: 13px; font-weight: 600; color: #A9BCE0; }
.mod-pulse { position: relative; margin-top: 8px; }
.mod-pulse .mp-kicker {
  grid-column: 1 / -1;
  position: static;
  display: block;
  margin: 0 0 2px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: #8A99B8; text-decoration: none;
  pointer-events: none;
}
@media (max-width: 720px) {
  .mod-offer { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; padding: 12px 14px; }
  .mod-pulse { margin-top: 8px; }
  .mod-pulse .mp-kicker { display: none; }
}


/* === movil 720 chips/cnae === */
@media (max-width: 720px) {
  .jn-card, .vf .jn-card, .jn-main { overflow: visible; }
  .jn-card-h { align-items: flex-start; }
  .jn .chips, .vf .chips, .eq .chips {
    width: 100%;
    margin: 8px 0 0 !important;
    flex-wrap: wrap;
  }
  .chip {
    min-height: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
    flex: 0 1 auto;
  }

  .em { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .em-hero { min-width: 0; }
  .em-hero-l, .em-hero-l > div { min-width: 0; max-width: 100%; }
  .em-hero h1 {
    font-size: 28px;
    letter-spacing: -0.6px;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }
  .em-hero p {
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }
  .em-fields { grid-template-columns: 1fr !important; }
  .em-fields label { min-width: 0; max-width: 100%; }
  .em-in, input.em-in {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }
}


/* === movil 720 horas/vid/iban === */
@media (max-width: 720px) {
  .jn-hours,
  .jn .jn-hours {
    display: flex !important;
    padding-left: 64px !important;
    padding-right: 6px !important;
    font-size: 10px !important;
    letter-spacing: 0 !important;
    gap: 0 !important;
  }
  .jn-hours span,
  .jn .jn-hours span,
  .jn-hours span:last-child,
  .jn .jn-hours span:last-child {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .page { display: flex; flex-direction: column; }
  .page > .wrap,
  .page .modboard { display: contents; }
  .page > .stage { order: 1; }
  .hero-vid {
    order: 2;
    position: relative !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    width: 100% !important;
    height: 168px !important;
    max-height: 168px !important;
  }
  .mod-offer { order: 3; width: calc(100% - 32px); margin: 12px 16px 0; }
  .mod-pulse { order: 4; }
  .mods { order: 5; width: 100%; }
  .page .fine-p { order: 6; padding: 0 16px 20px; }

  .em-fields { grid-template-columns: 1fr !important; }
  .em-fields .wide { grid-column: 1 / -1 !important; }
  .em-fields label { min-width: 0; max-width: 100%; }
  input.em-in,
  .em-in {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    font-size: 13px !important;
    font-weight: 700;
    padding: 0 10px !important;
    overflow-x: auto;
    text-overflow: clip;
  }
}


.eq-cta.geo { background: #EAF0FB; border: 1px solid #D8E2F3; }
.eq-cta.geo b { color: #10203D; }
.eq-cta.geo p { color: #3C4C6B; }
.eq-cta.geo button { background: #0E2A5C; color: #fff; }
.jn-go.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0; height: 46px; padding: 0 14px;
  border-radius: 13px; border: 1.5px solid #C9D5EA;
  background: #fff; color: #0E2A5C; font-size: 14px; font-weight: 800;
  text-decoration: none; line-height: 1; box-sizing: border-box;
}
.jn-side .kv div span { flex-shrink: 0; }


/* VeriFactu — layout mock HTML (hero / KPIs / lista / panel) */
.vf-hero { padding-bottom: 70px; }
.vf-hero-r {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.vf-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.vf-hero-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.vf-hero-sub > span:first-child { font-size: 14.5px; font-weight: 600; color: #A9BCE0; }
.vf-aeat-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; color: #FFD0A2;
  background: rgba(249,123,12,.22); border-radius: 20px; padding: 6px 12px; letter-spacing: .6px;
}
.vf-serie-bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 15px;
  border-radius: 12px; background: rgba(255,255,255,.09); flex-wrap: wrap;
}
.vf-serie-lab {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: #8FA8D4; text-transform: uppercase;
}
.vf-serie-in {
  width: 64px; height: 28px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 14px; font-weight: 800;
  text-align: center; padding: 0 6px;
}
.vf-serie-in.num { width: 72px; font-variant-numeric: tabular-nums; }
.vf-serie-in:focus { outline: none; background: rgba(255,255,255,.2); }
.vf-serie-sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); display: inline-block; }
.vf-serie-hint { font-size: 12.5px; font-weight: 700; color: #A9BCE0; }

.vf-kpis .v { font-size: 29px; letter-spacing: -1.2px; }
.vf-kpi-pend::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #F97B0C;
}
.vf-mini-bar {
  height: 7px; border-radius: 4px; background: #F1F4F9; overflow: hidden;
}
.vf-mini-bar i {
  display: block; height: 100%; border-radius: 4px; background: #0E2A5C; max-width: 100%;
}
.vf-mini-bar i.ok { background: #16A46F; }

.vf-list-card .jn-card-h { margin-bottom: 14px; }
.vf-filter-chips { margin: 0 0 0 auto; }
.vf-list-head {
  display: grid;
  grid-template-columns: 128px minmax(180px, 1.8fr) 112px 120px 124px 34px;
  gap: 14px 16px; padding: 0 16px 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .8px; color: #A5B2C9; text-transform: uppercase;
}
.vf-list-head > span {
  min-width: 0;
  padding-right: 8px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vf-list-head .r { text-align: right; padding-right: 0; }
.vf-list { display: flex; flex-direction: column; gap: 10px; }
.vf-list-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 16px; margin-top: 16px; border-top: 1px solid #EEF2F8;
  font-size: 13px; font-weight: 700; color: #6D7C99;
}
.vf-list-foot .muted { font-weight: 600; color: #8A99B8; }
.vf-list-foot b { margin-left: auto; font-size: 15px; font-weight: 800; color: #10203D; font-variant-numeric: tabular-nums; }
.vf-empty {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 34px 0; text-align: center;
}
.vf-empty b { font-size: 14.5px; font-weight: 800; color: #10203D; }
.vf-empty span { font-size: 13px; font-weight: 600; color: #8A99B8; }

.vf-lower {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px;
}
.vf-lower.one { grid-template-columns: 1fr; }
.vf-side-card { display: flex; flex-direction: column; gap: 16px; }
.vf-cobro-bar {
  display: flex; height: 38px; border-radius: 12px; overflow: hidden; background: #F1F4F9;
}
.vf-cobro-bar .ok {
  background: #16A46F; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.vf-cobro-bar .pend {
  background: #F97B0C; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.vf-cobro-bar .empty { background: #E3E9F4; }
.vf-cobro-leg { display: flex; flex-direction: column; gap: 12px; }
.vf-cobro-leg > div { display: flex; align-items: center; gap: 11px; }
.vf-cobro-leg i {
  width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex-shrink: 0;
}
.vf-cobro-leg i.ok { background: #16A46F; }
.vf-cobro-leg i.pend { background: #F97B0C; }
.vf-cobro-leg i.draft { background: #E3E9F4; }
.vf-cobro-leg span { flex: 1; font-size: 13.5px; font-weight: 600; color: #3C4C6B; }
.vf-cobro-leg b { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vf-cobro-leg .sep { padding-top: 12px; border-top: 1px solid #EEF2F8; }
.vf-link {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  font-size: 12.5px; font-weight: 800; color: #0E2A5C;
}
.vf-link:hover { color: #F97B0C; }
.vf-cli-bars { display: flex; flex-direction: column; gap: 14px; }
.vf-cli-bar { display: flex; flex-direction: column; gap: 7px; }
.vf-cli-bar-h { display: flex; align-items: center; gap: 11px; }
.vf-cli-bar-h b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-cli-bar-h > span:last-child { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vf-av {
  width: 28px; height: 28px; border-radius: 9px; background: #0E2A5C; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}

.vf-aside {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: calc(var(--nav-h, 64px) + 12px);
}
.vf-doc-meta-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.vf-totals {
  border-radius: 16px; background: #F9FBFD; border: 1px solid #E6EBF4;
  padding: 16px 18px; margin-left: 0; min-width: 0; width: 100%;
  align-items: stretch; box-sizing: border-box;
}
.vf-acts-row { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; }
.vf-acts-row > button { flex: 1 1 140px; min-width: 120px; height: 46px; border-radius: 13px; }
.vf-del-draft { width: 100%; margin-top: 2px; }
.vf-local-card {
  background: #fff; border-radius: 20px; border: 1px solid #FFE0BF;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
}
.vf-local-h { display: flex; align-items: center; gap: 11px; }
.vf-local-ico {
  width: 34px; height: 34px; border-radius: 11px; background: #FFF1E2; color: #B4610A;
  display: grid; place-items: center; font-size: 16px;
}
.vf-local-h b { display: block; font-size: 14px; font-weight: 800; color: #10203D; }
.vf-local-h span { display: block; font-size: 12px; font-weight: 600; color: #8A99B8; }
.vf-local-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #3C4C6B; }
.vf-local-row i {
  width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.vf-local-row.ok i { background: #E8F7F0; color: #16A46F; }
.vf-local-row.warn i { background: #FFF1E2; color: #B4610A; }

@media (max-width: 1200px) {
  .vf-lower { grid-template-columns: 1fr; }
  .jn-grid.vf-grid { grid-template-columns: 1fr; }
  .vf-aside { position: static; }
}
@media (max-width: 1100px) {
  /* Tabla vf se mantiene en columnas hasta 721px; el apilado va en ≤720px */
  .vf-cli-row { grid-template-columns: 36px minmax(0,1fr) auto; }
}
@media (max-width: 720px) {
  .vf-hero-r { width: 100%; align-items: stretch; }
  .vf-hero-actions { flex-direction: column; align-items: stretch; }
  .vf-serie-bar { justify-content: flex-start; }
  .vf-kpis { grid-template-columns: 1fr 1fr; }
  .vf-doc-meta-3 { grid-template-columns: 1fr !important; }
}



/* —— Mi espacio —— */
.me { max-width: 1120px; margin: 0 auto; padding: 18px 20px 96px; }
.me-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.me-hero .kicker { font-size: 12px; font-weight: 700; color: #6B7C99; letter-spacing: .02em; margin-bottom: 4px; }
.me-hero h1 { margin: 0; font-size: 28px; font-weight: 800; color: #0E2A5C; letter-spacing: -.02em; }
.me-hero p { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #5A6B85; }
.me-hero-r { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.me-hero-r a.jn-ghost { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 14px; height: 40px; border-radius: 12px; border: 1px solid #D5E0F5; color: #0E2A5C; font-weight: 700; font-size: 13px; background: #fff; }
.me-body { display: flex; flex-direction: column; gap: 16px; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.me-grid .me-card:last-child { grid-column: 1 / -1; }
.me-card { background: #fff; border: 1px solid #E3E9F4; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(14,42,92,.04); }
.me-card.accent { border-color: #FCD9B8; background: linear-gradient(180deg, #FFF8F1 0%, #fff 48%); }
.me-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.me-card-h b { font-size: 15px; font-weight: 800; color: #0E2A5C; }
.me-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #F5F8FD; border-radius: 14px; padding: 12px 14px; }
.me-file b { display: block; font-size: 13.5px; color: #10203D; }
.me-file span { display: block; font-size: 12px; font-weight: 600; color: #6B7C99; margin-top: 2px; }
a.me-link { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-size: 13px; }
.me-cal-nav { display: flex; align-items: center; gap: 6px; }
.me-cal-nav span { font-size: 13px; font-weight: 800; color: #0E2A5C; min-width: 120px; text-align: center; }
.me-cal-nav .jn-ghost { width: 36px; height: 36px; padding: 0; }
.me-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; font-weight: 700; color: #5A6B85; }
.me-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.me-legend i.a { background: #16A46F; }
.me-legend i.p { background: #F97B0C; }
.me-legend i.f { background: #7B8DB0; }
.me-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11px; font-weight: 800; color: #8A98B0; }
.me-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.me-cal .me-empty { min-height: 42px; }
.me-day { position: relative; min-height: 42px; border: 1px solid #E8EEF8; border-radius: 12px; background: #FBFCFE; color: #10203D; font-weight: 700; cursor: default; padding: 6px 4px 10px; }
.me-day b { font-size: 12.5px; }
.me-day.today { border-color: #0E2A5C; box-shadow: inset 0 0 0 1px #0E2A5C; }
.me-day.apro { background: #E8F8F0; border-color: #B7E7CE; }
.me-day.pend { background: #FFF3E8; border-color: #FBD0A8; }
.me-day.fest { background: #EEF1F7; }
.me-day em { position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; transform: translateX(-50%); }
.me-day em.a { background: #16A46F; }
.me-day em.p { background: #F97B0C; }
.me-day em.f { background: #7B8DB0; }
.me-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-form label { display: flex; flex-direction: column; gap: 5px; }
.me-form label.full { grid-column: 1 / -1; }
.me-form s { font-size: 11px; font-weight: 800; color: #6B7C99; text-decoration: none; }
.me-form .jn-orange { grid-column: 1 / -1; height: 44px; }
.me-reqs { display: flex; flex-direction: column; gap: 8px; }
.me-req { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; border-radius: 14px; background: #F5F8FD; border: 1px solid #E3E9F4; }
.me-req b { display: block; font-size: 13.5px; color: #10203D; }
.me-req span { display: block; font-size: 12px; font-weight: 600; color: #6B7C99; margin-top: 2px; }
.me-req u { grid-column: 1 / -1; font-size: 12px; color: #5A6B85; text-decoration: none; }
.me-st { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; align-self: start; }
.me-req.pendiente .me-st { background: #FFF3E8; color: #C45E00; }
.me-req.aprobada .me-st { background: #E8F8F0; color: #0F7A4D; }
.me-req.rechazada .me-st { background: #FDECEC; color: #B42318; }
.me-inbox { display: flex; flex-direction: column; gap: 10px; }
.me-inbox-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #E3E9F4; }
.me-inbox-row b { display: block; font-size: 14px; color: #0E2A5C; }
.me-inbox-row span { display: block; font-size: 12.5px; font-weight: 600; color: #5A6B85; margin-top: 2px; }
.me-inbox-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.me-inbox-acts .jn-orange, .me-inbox-acts .jn-ghost, .me-inbox-acts .eq-ghost { height: 38px; padding: 0 12px; border-radius: 11px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
@media (max-width: 860px) {
  .me-grid { grid-template-columns: 1fr; }
  .me-grid .me-card:last-child { grid-column: auto; }
  .me-form { grid-template-columns: 1fr; }
  .me-form .jn-orange, .me-form label.full { grid-column: auto; }
  .me { padding: 14px 14px 88px; }
  .me-hero h1 { font-size: 24px; }
  .me-day { min-height: 38px; }
}


/* ===== QA lote movil+desktop 2026-08-23 ===== */
.who-short { display: none; }
.topnav .who { flex-shrink: 0; min-width: 0; }
.topnav .btn-ghost { flex-shrink: 0; }
.topnav .links { min-width: 0; }

@media (max-width: 1180px) and (min-width: 721px) {
  .topnav {
    gap: 8px;
    padding: 0 12px;
    height: auto;
    min-height: var(--nav-h);
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .topnav .links {
    gap: 8px;
    flex: 1 1 auto;
    align-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .topnav .links::-webkit-scrollbar { display: none; }
  .topnav .bn-full { display: none; }
  .topnav .bn-short { display: inline; }
  .topnav a {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .topnav a.on::after { bottom: 0; }
  .topnav .sp { flex: 0 0 6px; min-width: 6px; align-self: center; }
  .who-full { display: none; }
  .who-short { display: inline; }
  .who span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .co-switch select { max-width: 120px; }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .vf-list-head {
    display: grid;
  }
  .vf-list-head,
  .vf-row {
    grid-template-columns: minmax(108px, .9fr) minmax(200px, 2fr) minmax(96px, .7fr) minmax(104px, .75fr) minmax(112px, .8fr) 28px;
    gap: 12px 16px;
  }
  .vf-row-num,
  .vf-row-cli,
  .vf-row-date,
  .vf-row-amt,
  .vf-row .jn-pill,
  .vf-row-chev {
    grid-column: auto;
    grid-row: auto;
  }
  .vf-row-chev { display: block; text-align: center; }
  .vf-row-amt { text-align: right; justify-self: stretch; }
  .vf-row-cli {
    min-width: 0;
    overflow: hidden;
  }
  .vf-row-cli b,
  .vf-row-cli span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .vf-table .vf-c-desc { width: 42%; min-width: 160px; }
  .jn-hero { padding-bottom: 24px; }
  .jn-body { margin-top: 16px; }
}

@media (max-width: 720px) {
  .fc {
    min-height: calc(100dvh - var(--bot-h));
    max-height: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
  }
  .fc-bar {
    height: auto;
    min-height: 52px;
    padding: 10px 14px;
  }
  .fc-salir {
    min-height: 44px;
    min-width: 64px;
    padding: 10px 12px;
    font-size: 15px;
  }
  .fc-who {
    max-width: min(70vw, 260px);
    align-self: flex-end;
  }
  .fc-who .n {
    font-size: 17px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fc-who .r { font-size: 13px; }
  .fc-body { padding: 4px 14px 20px; }
  .fc-clock span { font-size: clamp(56px, 18vw, 84px); }
  .fc-tline { padding: 14px 14px 12px; }
  .fc-hours { font-size: 11px; gap: 2px; }
  .fc-btn { height: 60px; font-size: 19px; }
  .botnav a, .botnav button {
    min-height: 48px;
    font-size: 11px;
    padding: 6px 2px;
  }

  .vf-serie-bar {
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: 12px 12px;
    justify-content: flex-start;
  }
  .vf-serie-in {
    width: 88px;
    min-width: 72px;
    height: 44px;
    min-height: 44px;
    font-size: 16px;
    border-radius: 10px;
  }
  .vf-serie-in.num { width: 100px; }
  .vf-serie-hint { width: 100%; }

  .vf-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px 14px;
    overflow: visible;
  }
  .vf-row-num {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .vf-row-num b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .vf-row-amt {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    justify-self: end;
    white-space: nowrap;
  }
  .vf-row-cli {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }
  .vf-row-cli b,
  .vf-row-cli span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }
  .vf-row-date {
    grid-column: 1;
    grid-row: 3;
  }
  .vf-row .jn-pill {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
  .vf-row-chev { display: none; }

  .kk-tabs button {
    min-height: 44px;
    height: 44px;
  }
  .eq-toggle button {
    min-height: 44px;
    height: 44px;
    padding: 0 14px;
  }

  .jn-hero { padding: 20px 16px 20px; }
  .jn-body { margin-top: 14px; padding: 0 16px; }
  .eq-hero { padding: 14px 16px 36px; }
  .eq-filters { width: calc(100% - 32px); margin: -24px auto 8px; }
  .eq-body { margin-top: 8px; }
  .em-hero { padding: 20px 16px 20px; }
  .em-body { margin-top: 14px; }

  .me-cancel {
    grid-column: 1 / -1;
    height: 40px;
    margin-top: 4px;
  }
}

.me-req { align-items: start; }
.me-cancel {
  justify-self: start;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
}

.vf-hero { padding-bottom: 28px; }


@media (max-width: 720px) {
  .roles.four { grid-template-columns: 1fr 1fr; }
}

/* === Gestoría (módulo 9) === */
.ge {
  background: var(--canvas);
  min-height: calc(100vh - var(--nav-h));
  padding-bottom: 44px;
}
.ge-hero {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 28px 64px;
  background: linear-gradient(135deg, #0E2A5C 0%, #163A73 55%, #1B4A8C 100%);
  border-radius: 0 0 28px 28px;
}
.ge-body {
  margin-top: -36px;
  padding: 0 28px 28px;
  display: grid;
  gap: 16px;
  max-width: 980px;
}
.ge-price {
  background: #0E2A5C;
  color: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 14px 28px rgba(14,42,92,.18);
}
.ge-price-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ge-price-top s {
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #A9BCE0;
}
.ge-price-top em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #F97B0C;
  background: rgba(249,123,12,.14);
  border-radius: 999px;
  padding: 4px 10px;
}
.ge-price > b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.ge-price > span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #D7E2F5;
}
.ge-price > p {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #A9BCE0;
  line-height: 1.45;
}
.ge-empty {
  margin: 8px 0 0;
  text-align: left;
}
.ge-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  text-align: left;
}
.ge-form label {
  display: grid;
  gap: 6px;
}
.ge-form label s {
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  color: #6D7C99;
  letter-spacing: .2px;
}
.ge-form .jn-orange {
  height: 46px;
  border-radius: 13px;
  margin-top: 4px;
  cursor: pointer;
}
.ge-who {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 6px;
}
.ge-who s {
  display: block;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
  color: #8A99B8;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ge-who b {
  font-size: 15px;
  font-weight: 800;
  color: #0E2A5C;
  word-break: break-word;
}
.ge-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ge-acts .jn-orange,
.ge-acts .eq-ghost,
.ge-acts .eq-navy {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ge-cos {
  display: grid;
  gap: 12px;
  margin: 8px 0 4px;
}
.ge-co {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #E6EBF4;
  background: #F9FBFD;
}
.ge-co > div:first-child b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0E2A5C;
}
.ge-co > div:first-child span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6D7C99;
}
.ge-co > strong {
  font-size: 14px;
  font-weight: 800;
  color: #0E2A5C;
  white-space: nowrap;
}
.ge-co-acts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ge-co-acts .eq-navy,
.ge-co-acts .eq-ghost {
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.ge-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}
.ge-pulse .mp {
  background: #F4F7FC;
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid #E6EBF4;
}
.ge-pulse .mp s {
  display: block;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8A99B8;
  margin-bottom: 6px;
}
.ge-pulse .mp b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #0E2A5C;
  letter-spacing: -.4px;
  line-height: 1;
}
.ge-pulse .mp span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6D7C99;
}
.ge-pulse .mp.bad b { color: #B03A34; }
@media (max-width: 720px) {
  .ge-hero { padding: 20px 16px 48px; }
  .ge-body { padding: 0 16px 24px; margin-top: -28px; }
  .ge-who { grid-template-columns: 1fr; }
  .ge-pulse { grid-template-columns: 1fr; }
  .ge-co { grid-template-columns: 1fr; }
  .ge { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .ge-price > b { font-size: 22px; }
}




/* ===== Suscripción / billing ===== */
.bill { max-width: 1120px; margin: 0 auto; padding: 16px 20px 48px; }
.bill-hero { margin-bottom: 16px; }
.bill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.bill-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 16px;
}
.bill-plan {
  text-align: left;
  border: 1px solid var(--hair);
  background: var(--canvas);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.bill-plan b { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; }
.bill-plan strong { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
html.dark .bill-plan strong { color: var(--ink); }
.bill-plan span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bill-plan.on {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-50);
  background: var(--white);
}
.bill-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.bill-fields label { display: flex; flex-direction: column; gap: 6px; }
.bill-fields label s,
.bill-card s,
.bill-meta s { font-size: 11px; font-weight: 800; color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }
.bill-togs { margin-bottom: 16px; }
.bill-tog {
  width: 100%;
  text-align: left;
  border: 1px solid var(--hair);
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}
.bill-tog b { font-size: 14px; font-weight: 800; }
.bill-tog span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bill-tog.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.bill-lines {
  border-top: 1px solid var(--hair);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.bill-lines > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}
.bill-lines > div span { font-weight: 700; color: var(--muted-2); }
.bill-lines > div b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bill-lines > div b em { font-style: normal; font-weight: 700; color: var(--muted); font-size: 12px; }
.bill-lines > div.dim span,
.bill-lines > div.dim b { color: var(--muted); }
.bill-lines > div.sum {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--hair);
}
.bill-lines > div.sum b { font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
html.dark .bill-lines > div.sum b { color: var(--orange); }
.bill-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.bill-pay {
  min-width: 200px;
  height: 44px;
  padding: 0 22px;
  font-weight: 800;
}
.bill-hint {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.bill-side { display: flex; flex-direction: column; gap: 12px; }
.bill-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0 4px;
}
.bill-card-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--azul-50); display: grid; place-items: center; font-size: 20px;
}
.bill-card b {
  display: block; font-size: 16px; font-weight: 800; letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums; margin: 2px 0;
}
.bill-card span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bill-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}
.bill-meta b { display: block; font-size: 13.5px; font-weight: 800; margin-top: 2px; word-break: break-all; }
.bill-hist { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.bill-hist-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 10px; background: var(--canvas); border: 1px solid var(--hair);
}
.bill-hist-row b { font-size: 12.5px; font-weight: 800; }
.bill-hist-row span { font-size: 12px; font-weight: 600; color: var(--muted); }
.bill-hist-empty { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 0; }
a.bill-link.em-box {
  display: block; text-decoration: none; color: inherit;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
a.bill-link.em-box:hover { border-color: var(--orange); transform: translateY(-1px); }
a.bill-link.em-box b { display: block; margin: 4px 0 2px; font-size: 15px; }
a.bill-link.em-box span { font-size: 12.5px; font-weight: 600; color: var(--muted); }

@media (max-width: 900px) {
  .bill-grid { grid-template-columns: 1fr; }
  .bill-plans, .bill-fields { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bill { padding: 12px 14px 96px; }
  .bill-cta .jn-orange, .bill-cta .jn-ghost { width: 100%; }
}


/* ===== DARK MODE (Expo tokens) ===== */
html.dark {
  color-scheme: dark;
  --orange: #F97B0C;
  --orange-d: #B4610A;
  --orange-200: #5C3A1A;
  --orange-50: rgba(249, 123, 12, 0.14);
  --navy: #1A2740;
  --navy-2: #2A4A7A;
  --navy-btn: #2A4A7A;
  --ink: #F2F5FA;
  --muted: #8A99B8;
  --muted-2: #8A99B8;
  --disabled: #5A6A84;
  --canvas: #0B1220;
  --hair: #2A3548;
  --azul-50: #1A2740;
  --ok: #16A46F;
  --ok-bg: rgba(22, 164, 111, 0.16);
  --pause: #F2A63B;
  --pause-bg: rgba(249, 123, 12, 0.14);
  --inc: #E87171;
  --inc-bg: rgba(214, 69, 69, 0.18);
  --away: #64748B;
  --away-bg: #1A2332;
  --white: #1A2332;
  --tabbar: #121826;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.50);
}

html.dark .word .t { color: var(--ink); }
html.dark .btn-ghost { color: var(--ink); }
html.dark .btn-out {
  background: var(--white); color: var(--ink); border-color: var(--hair);
}
html.dark .btn-out:hover { background: var(--azul-50); }
html.dark .roles button.on,
html.dark .chip.on,
html.dark .tog button.on,
html.dark .kk-tabs button.on,
html.dark .auth-tabs button.on {
  background: var(--navy-btn); color: #fff; border-color: var(--navy-btn);
}
html.dark .topnav a.on { color: var(--ink); }
html.dark .topnav a.on::after { background: var(--orange); }
html.dark .botnav a, html.dark .botnav button { color: var(--muted); }
html.dark .botnav a.on { color: var(--orange); }

/* Hardcoded light surfaces → dark tokens */
html.dark .login-card,
html.dark .card,
html.dark .sum,
html.dark .sheet,
html.dark .panel,
html.dark .jn-kpi,
html.dark .jn-card,
html.dark .jn-panel,
html.dark .jn-sum,
html.dark .jn-side,
html.dark .eq-filters,
html.dark .eq-card,
html.dark .eq-box,
html.dark .eq-vac,
html.dark .em-card,
html.dark .em-id,
html.dark .em-box,
html.dark .em-side,
html.dark .vf-settings,
html.dark .vf-row,
html.dark .vf-doc .jn-side-b.vf-paper,
html.dark .vf-aet,
html.dark .st-mod-card,
html.dark .fc-card,
html.dark .fc-pill,
html.dark .kk-tabs,
html.dark .kk-face,
html.dark .kk-pad,
html.dark .kk-admin,
html.dark .kk-who,
html.dark .ge-card,
html.dark .ge-box,
html.dark .me-card,
html.dark .me-box,
html.dark .demo-btn,
html.dark .soc-btn,
html.dark .auth-sheet,
html.dark .modboard,
html.dark .hcard,
html.dark .kpi,
html.dark .kpi-mini {
  background: var(--white);
  border-color: var(--hair);
  color: var(--ink);
}

html.dark .mod {
  background: rgba(26, 35, 50, 0.96);
  border-color: var(--hair);
  box-shadow: var(--shadow);
}
html.dark .mod.off { background: #141C2A; }
html.dark .mod-name { color: var(--ink); }
html.dark .mod.on .mod-ico { background: var(--navy-btn); color: #fff; }

html.dark .jn,
html.dark .eq,
html.dark .em,
html.dark .fc,
html.dark .ge,
html.dark .me,
html.dark .vf,
html.dark .kk,
html.dark .modboard {
  background: var(--canvas);
}

html.dark .stage,
html.dark .jn-hero,
html.dark .eq-chrome,
html.dark .eq-hero,
html.dark .em-hero,
html.dark .vf-hero,
html.dark .ge-hero,
html.dark .me-hero {
  background: var(--navy);
}

html.dark .row:hover,
html.dark .jn-row.sel,
html.dark .jn-trow:hover,
html.dark .jn-trow.sel,
html.dark .vf-row.sel,
html.dark .chip-lite,
html.dark .jn-bar,
html.dark .eq-bar,
html.dark .eq-dept i,
html.dark .em-bar,
html.dark .em-bar86,
html.dark .em-tag,
html.dark .vf-ico,
html.dark .fc-st:not(.on):not(.pause),
html.dark .fc-track,
html.dark .auth-tabs {
  background: #141C2A;
  border-color: var(--hair);
  color: var(--muted);
}

html.dark .jn-row.sel,
html.dark .vf-row.sel {
  border-color: var(--navy-btn);
  background: #1A2740;
}

html.dark .eq-card.off {
  background: #141C2A;
  border-color: var(--hair);
}

html.dark .eq-ghost,
html.dark .em-add,
html.dark .vf-x,
html.dark .jn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--hair);
}
html.dark .eq-navy,
html.dark .ava,
html.dark .ini.c-navy {
  background: var(--navy-btn);
}

html.dark .fc-who .n,
html.dark .fc-clock,
html.dark .fc-tit,
html.dark .fc-leg b,
html.dark .fc-salir,
html.dark .st-mod-card h3,
html.dark .vf-parties b,
html.dark .vf-doc-meta.static b,
html.dark .vf-imp,
html.dark .vf-totals b,
html.dark .vf-totals .sum,
html.dark .kk-empty b,
html.dark .kk-face b,
html.dark .kk-clock,
html.dark .eq-hours b,
html.dark .eq-top b,
html.dark .jn-kpi .v,
html.dark .em-in,
html.dark input.em-in,
html.dark .fld input,
html.dark .auth-tabs button.on {
  color: var(--ink);
}

html.dark .fc-who .r,
html.dark .fc-date,
html.dark .fc-note,
html.dark .fc-hours,
html.dark .fc-sub,
html.dark .fc-leg,
html.dark .fc-pause,
html.dark .jn-kpi s,
html.dark .jn-kpi p,
html.dark .jn-kpi .v em,
html.dark .eq-top span,
html.dark .eq-faint,
html.dark .eq-cover s,
html.dark .eq-legend div,
html.dark .vf-row-cli span,
html.dark .vf-row-date,
html.dark .vf-id span,
html.dark .vf-parties span,
html.dark .st-mod-body s,
html.dark .st-mod-card s,
html.dark .st-mod label s {
  color: var(--muted);
}

html.dark .fc-card,
html.dark .fc-pill {
  box-shadow: var(--shadow-lg);
}
html.dark .fc-card b,
html.dark .fc-link b { color: var(--ink); }
html.dark .fc-card s,
html.dark .fc-card em,
html.dark .fc-link span { color: var(--muted); }
html.dark .fc-link:hover { border-color: rgba(249,115,22,.5); }
html.dark .jn-go.ghost { color: var(--ink); border-color: var(--hair); }
html.dark .fc-confirm {
  background: rgba(11, 18, 32, 0.86);
}
html.dark .fc-btn.out { background: var(--navy-btn); }

html.dark .jn-kpi .segs i { background: #2A3548; }
html.dark .jn-kpi .segs i.on { background: var(--navy-btn); }
html.dark .eq-segs i { background: #2A3548; }
html.dark .tline-work,
html.dark .eq-bar .tline-work,
html.dark .eq-dept u,
html.dark .jn-leg i.w,
html.dark .jn-sum i.w {
  background: var(--navy-btn);
}

html.dark .badge.ej { color: var(--ink); background: var(--azul-50); }
html.dark .ini.c-sky { background: var(--azul-50); color: var(--ink); }
html.dark .ini.c-mist { background: #2A3548; color: var(--ink); }

html.dark .demo-btn span,
html.dark .or span { color: var(--muted); }
html.dark .or::before,
html.dark .or::after { background: var(--hair); }

html.dark .st-mod {
  background: rgba(0, 0, 0, 0.55);
}
html.dark .st-mod-act .jn-ghost {
  border-color: var(--hair);
  color: var(--ink);
  background: transparent;
}
html.dark .st-mod-act .jn-orange {
  background: var(--orange);
  color: #fff;
  border: 0;
}

html.dark .fld input:focus {
  box-shadow: 0 0 0 4px var(--orange-50);
}

html.dark select.em-in,
html.dark .em-in,
html.dark input.em-in {
  background: var(--canvas);
  border-color: var(--hair);
  color: var(--ink);
}
html.dark input.em-in:focus {
  background: var(--white);
  border-color: var(--navy-btn);
}

html.dark .vf-tabs {
  background: #141C2A;
}
html.dark .vf-tabs button { color: var(--muted); }
html.dark .vf-tabs button.on {
  background: var(--white);
  color: var(--ink);
}

html.dark .eq-pill.off,
html.dark .jn-pill.off {
  background: #141C2A;
  color: var(--muted);
}
html.dark .eq-cta {
  background: var(--navy);
}
html.dark .kk-empty {
  background: #141C2A;
  border-color: var(--hair);
}
html.dark .kk-av.c-sky {
  background: var(--azul-50);
  color: var(--ink);
}
html.dark .kk-av.c-mist {
  background: #2A3548;
  color: var(--muted);
}

html.dark .panel {
  background: var(--canvas);
}


html.dark .fc-tline,
html.dark .fc-pill {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
html.dark .fc-who .n,
html.dark .fc-clock,
html.dark .fc-tit,
html.dark .fc-leg b,
html.dark .me-hero h1,
html.dark .me-hero-r a.jn-ghost {
  color: var(--ink);
}
html.dark .me-hero .kicker,
html.dark .me-hero p { color: var(--muted); }
html.dark .me-hero-r a.jn-ghost {
  background: var(--white);
  border-color: var(--hair);
}
html.dark .fc-veil {
  background: rgba(11, 18, 32, 0.86);
}
html.dark .fc-st:not(.on):not(.pause) {
  background: #141C2A;
  color: var(--muted);
}
html.dark .roles button.on { background: var(--navy-btn); border-color: var(--navy-btn); }
html.dark .chip.on { background: var(--navy-btn); border-color: var(--navy-btn); }
html.dark .tog button.on { background: var(--navy-btn); border-color: var(--navy-btn); }
html.dark .hcard .d { color: var(--ink); }
html.dark .wd-t,
html.dark .wd-d { color: var(--ink); }
html.dark .login { background: var(--canvas); }
html.dark .panel { background: var(--white); }
html.dark .split > .panel { background: var(--canvas); }
html.dark .ge { background: var(--canvas); }
html.dark .kk { background: var(--canvas); color: var(--ink); }
html.dark .vf-paper,
html.dark .vf-doc,
html.dark .jn-side-b {
  background: var(--white);
  border-color: var(--hair);
  color: var(--ink);
}
html.dark .em-hero:not(.has-bg) { background: var(--navy); }


/* ===== Dark contrast fixes (Interfaz @1024) ===== */
/* Login: Entra title + demo shortcuts + Registrarse tab */
html.dark .login-card h1,
html.dark .login h1,
html.dark .auth-sheet h3 {
  color: var(--ink);
}
html.dark .demo-btn b {
  color: var(--ink);
}
html.dark .demo-btn:hover {
  border-color: var(--navy-btn);
}
html.dark .auth-tabs button {
  color: #A0AEC8;
}
html.dark .auth-tabs button.on {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
html.dark .soc-btn {
  background: var(--white);
  border-color: var(--hair);
  color: var(--ink);
}
html.dark .soc-btn:hover {
  background: #141C2A;
}

/* Jornada: SIN FICHAR HOY pill, Registro original, footer metrics, badges */
html.dark .jn-abs {
  color: var(--muted);
  border-color: var(--hair);
  background: #141C2A;
}
html.dark .orig .ht {
  color: var(--ink);
}
html.dark .jn-sum div {
  color: var(--muted);
}
html.dark .jn-sum b {
  color: var(--ink);
}
html.dark .jn-card-h h2,
html.dark .jn-id b,
html.dark .jn-meta b {
  color: var(--ink);
}
html.dark .jn-pill.ok,
html.dark .jn-kpi .tag.ok {
  color: #3DDB9A;
  background: rgba(22, 164, 111, 0.16);
}
html.dark .jn-pill.pend,
html.dark .jn-kpi .tag.pend {
  color: #F2A63B;
  background: rgba(249, 123, 12, 0.14);
}
html.dark .jn-pill.bad,
html.dark .jn-kpi .tag.bad {
  color: #E87171;
  background: rgba(214, 69, 69, 0.18);
}
html.dark .jn-alert.ok {
  background: rgba(22, 164, 111, 0.16);
}
html.dark .jn-alert.ok i { background: #16A46F; }
html.dark .jn-alert.ok b,
html.dark .jn-alert.ok em { color: #3DDB9A; }
html.dark .jn-alert.pend {
  background: rgba(249, 123, 12, 0.14);
}
html.dark .jn-alert.pend i { background: #F97B0C; }
html.dark .jn-alert.pend b,
html.dark .jn-alert.pend em { color: #F2A63B; }
html.dark .jn-alert.bad {
  background: rgba(214, 69, 69, 0.18);
}
html.dark .jn-alert.bad i { background: #E87171; }
html.dark .jn-alert.bad b,
html.dark .jn-alert.bad em { color: #E87171; }
html.dark .jn-alert.off {
  background: #141C2A;
}
html.dark .jn-alert.off i { background: #5A6A84; }
html.dark .jn-alert.off b,
html.dark .jn-alert.off em { color: var(--muted); }
html.dark .chip-lite {
  color: var(--muted);
  background: #141C2A;
}
html.dark .chip-live {
  color: #3DDB9A;
  background: rgba(22, 164, 111, 0.16);
}

/* VeriFactu: Total €, Ver todos, legends, chevron, N de N */
html.dark .vf-list-foot {
  border-top-color: var(--hair);
  color: var(--muted);
}
html.dark .vf-list-foot .muted {
  color: var(--muted);
}
html.dark .vf-list-foot b {
  color: var(--ink);
}
html.dark .vf-link {
  color: var(--ink);
}
html.dark .vf-link:hover {
  color: var(--orange);
}
html.dark .vf-cobro-leg span {
  color: var(--muted);
}
html.dark .vf-cobro-leg b {
  color: var(--ink);
}
html.dark .vf-cobro-leg .sep {
  border-top-color: var(--hair);
}
html.dark .vf-cobro-leg i.draft {
  background: #2A3548;
}
html.dark .vf-cobro-bar .empty {
  background: #2A3548;
}
html.dark .vf-row-chev {
  color: #5A6A84;
}
html.dark .vf-row.sel .vf-row-chev {
  color: var(--ink);
}
html.dark .vf-totals {
  background: #141C2A;
  border-color: var(--hair);
}
html.dark .vf-totals div {
  color: var(--muted);
}
html.dark .vf-totals .sum {
  border-top-color: var(--hair);
  color: var(--ink);
}
html.dark .vf-totals b,
html.dark .vf-totals .sum b {
  color: var(--ink);
}
html.dark .vf-empty b {
  color: var(--ink);
}
html.dark .vf-cli-bar-h b,
html.dark .vf-cli-bar-h > span:last-child {
  color: var(--ink);
}
html.dark .vf-av {
  background: var(--navy-btn);
}

/* Topnav inactive links — slight AA bump */
html.dark .topnav a {
  color: #A0AEC8;
}
html.dark .topnav a.on {
  color: var(--ink);
}
html.dark .who {
  color: #A0AEC8;
}

/* ===== Dark contrast fixes pass 2 (Interfaz gaps) ===== */

/* Jornada on-bar pills (timeline) — were still light #FDE8C8/#9A6700 */
html.dark .jn-onbar {
  background: #141C2A;
  color: var(--muted);
}
html.dark .jn-onbar.ok {
  color: #5EEBB0;
  background: rgba(22, 164, 111, 0.28);
}
html.dark .jn-onbar.pend {
  color: #FFE0A8;
  background: rgba(249, 123, 12, 0.28);
}
html.dark .jn-onbar.bad {
  color: #FFB4B4;
  background: rgba(214, 69, 69, 0.28);
}

/* Stronger dark translucent pills / tags / live chip */
html.dark .jn-pill.ok,
html.dark .jn-kpi .tag.ok,
html.dark .eq-pill.on,
html.dark .chip-live {
  color: #5EEBB0;
  background: rgba(22, 164, 111, 0.28);
}
html.dark .chip-live i,
html.dark .jn-pill.ok i,
html.dark .eq-pill.on i {
  background: #5EEBB0;
}
html.dark .jn-pill.pend,
html.dark .jn-kpi .tag.pend,
html.dark .eq-pill.pause {
  color: #FFE0A8;
  background: rgba(249, 123, 12, 0.28);
}
html.dark .jn-pill.pend i,
html.dark .eq-pill.pause i {
  background: #F97B0C;
}
html.dark .jn-pill.bad,
html.dark .jn-kpi .tag.bad {
  color: #FFB4B4;
  background: rgba(214, 69, 69, 0.28);
}
html.dark .jn-pill.bad i { background: #E87171; }
html.dark .jn-kpi .v.ok { color: #5EEBB0; }
html.dark .jn-kpi .v.pend { color: #FFE0A8; }
html.dark .jn-kpi .v.bad { color: #FFB4B4; }

/* Banner «Pendiente de revisar» / Validado — opaque dark surfaces + bright text */
html.dark .jn-alert.ok {
  background: rgba(22, 164, 111, 0.22);
  border: 1px solid rgba(94, 235, 176, 0.22);
}
html.dark .jn-alert.ok i { background: #5EEBB0; }
html.dark .jn-alert.ok b,
html.dark .jn-alert.ok em { color: #5EEBB0; }
html.dark .jn-alert.pend {
  background: rgba(249, 123, 12, 0.22);
  border: 1px solid rgba(255, 224, 168, 0.22);
}
html.dark .jn-alert.pend i { background: #F97B0C; }
html.dark .jn-alert.pend b,
html.dark .jn-alert.pend em { color: #FFE0A8; }
html.dark .jn-alert.bad {
  background: rgba(214, 69, 69, 0.22);
  border: 1px solid rgba(255, 180, 180, 0.22);
}
html.dark .jn-alert.bad i { background: #E87171; }
html.dark .jn-alert.bad b,
html.dark .jn-alert.bad em { color: #FFB4B4; }

/* JT / orange avatar — ink on orange + dark ring for AA */
html.dark .jn-av.or {
  background: #F97B0C;
  color: #1A1208;
  box-shadow: 0 0 0 2px #0B1220, 0 0 0 3px rgba(249, 123, 12, 0.55);
  text-shadow: none;
}

/* VeriFactu hero: AEAT badge + serie labels (were ~1.9–2.4 vs orange) */
html.dark .vf-aeat-badge {
  color: #FFF5E6;
  background: rgba(249, 123, 12, 0.32);
  border: 1px solid rgba(255, 224, 168, 0.35);
}
html.dark .vf-hero-sub > span:first-child,
html.dark .vf-serie-hint {
  color: #D0DBF0;
}
html.dark .vf-serie-lab {
  color: #C5D4EE;
}
html.dark .vf-serie-bar {
  background: rgba(255, 255, 255, 0.08);
}
html.dark .vf-serie-in {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Status pills in VF (incl. PDTE_ENVIO) */
html.dark .vf-aet-st {
  color: #FFE0A8;
  background: rgba(249, 123, 12, 0.28);
}
html.dark .vf-row .jn-pill.ok,
html.dark .vf-row .jn-pill.pend,
html.dark .vf-row .jn-pill.bad,
html.dark .vf-row .jn-pill.off {
  /* inherit strengthened pill rules; ensure no light leak */
  border: 0;
}

/* Chevron › — was #5A6A84 ~2.9 */
html.dark .vf-row-chev {
  color: #A0AEC8;
}
html.dark .vf-row.sel .vf-row-chev {
  color: #F2F5FA;
}

/* Fingerprint / hash / QR placeholder — navy was invisible on dark */
html.dark .vf-aet {
  background: #141C2A;
  border-color: var(--hair);
}
html.dark .vf-aet > summary {
  color: var(--ink);
}
html.dark .vf-aet[open] > summary {
  border-bottom-color: var(--hair);
}
html.dark .vf-hash {
  color: var(--ink);
}
html.dark .vf-aet img {
  background: #fff;
  box-shadow: 0 0 0 1px var(--hair);
}
html.dark .vf-parties b,
html.dark .vf-doc-meta.static b,
html.dark .vf-imp {
  color: var(--ink);
}
html.dark .vf-parties s,
html.dark .vf-doc-meta s,
html.dark .vf-pays s {
  color: var(--muted);
}
html.dark .vf-pays b {
  color: var(--ink);
}

/* Registro local card — was hardcoded #fff light leak */
html.dark .vf-local-card {
  background: var(--white);
  border-color: rgba(249, 123, 12, 0.35);
  color: var(--ink);
}
html.dark .vf-local-ico {
  background: rgba(249, 123, 12, 0.22);
  color: #FFE0A8;
}
html.dark .vf-local-h b {
  color: var(--ink);
}
html.dark .vf-local-h span {
  color: var(--muted);
}
html.dark .vf-local-row {
  color: #C5D0E4;
}
html.dark .vf-local-row.ok i {
  background: rgba(22, 164, 111, 0.28);
  color: #5EEBB0;
}
html.dark .vf-local-row.warn i {
  background: rgba(249, 123, 12, 0.28);
  color: #FFE0A8;
}

/* ===== Dark contrast fixes pass 3 (Interfaz minor gaps) ===== */

/* Topnav company select — was hardcoded #fff + navy ink */
html.dark .co-switch select {
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23F2F5FA' d='M1 1.2l5 5 5-5'/></svg>") no-repeat right 10px center;
  background-size: 12px 8px;
  border-color: var(--hair);
  color: var(--ink);
}
html.dark .co-switch select:focus {
  border-color: var(--navy-btn);
}

/* VF cobro / KPI COBRADO tracks — were #F1F4F9 on dark cards */
html.dark .vf-cobro-bar,
html.dark .vf-mini-bar {
  background: #2A3548;
}

/* @1024: VF list ESTADO column cut / panel overlap — flex/overflow */
@media (max-width: 1100px) and (min-width: 721px) {
  html.dark .jn-grid.vf-grid,
  .jn-grid.vf-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vf-aside {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .vf-list-card,
  .vf-list {
    min-width: 0;
    overflow: visible;
  }
  .vf-list-head,
  .vf-row {
    grid-template-columns:
      minmax(88px, 0.8fr)
      minmax(120px, 1.35fr)
      minmax(72px, 0.55fr)
      minmax(72px, 0.55fr)
      minmax(132px, 1.1fr)
      22px;
    gap: 8px 10px;
  }
  .vf-list-head > span {
    overflow: visible;
    text-overflow: unset;
  }
  .vf-row .jn-pill {
    justify-self: start;
    min-width: 118px;
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
  }
}

/* Theme toggle */
.theme-tog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--canvas);
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.theme-tog:hover { color: var(--ink); border-color: var(--muted); }
.theme-tog:active { transform: scale(0.97); }
.theme-tog .theme-ico {
  width: 16px; height: 16px; display: grid; place-items: center; flex-shrink: 0;
}
.theme-tog .theme-ico svg { width: 14px; height: 14px; }
.theme-tog .theme-lab-short { display: none; }
html.dark .theme-tog {
  background: var(--white);
  color: var(--ink);
  border-color: var(--hair);
}
.login-card .theme-tog {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  height: 42px;
}
@media (max-width: 720px) {
  .topnav .theme-tog .theme-lab { display: none; }
  .topnav .theme-tog .theme-lab-short { display: inline; }
  .topnav .theme-tog { padding: 0 10px; }
}

/* ===== Dark contrast fixes pass 4 (Interfaz TC OK) ===== */

/* Mi espacio: section titles + calendar/solicitudes embeds */
html.dark .me-card-h b,
html.dark .me-cal-nav span,
html.dark .me-file b,
html.dark .me-req b,
html.dark .me-inbox-row b,
html.dark .me-day,
html.dark .me-day b,
html.dark a.me-link {
  color: var(--ink);
}
html.dark .me-file span,
html.dark .me-req span,
html.dark .me-req u,
html.dark .me-inbox-row span,
html.dark .me-legend,
html.dark .me-form s,
html.dark .me-cal-head,
html.dark .fine-p {
  color: var(--muted);
}
html.dark .me-file,
html.dark .me-req,
html.dark .me-day,
html.dark .me-inbox-row {
  background: #141C2A;
  border-color: var(--hair);
}
html.dark .me-day.today {
  border-color: var(--navy-btn);
  box-shadow: inset 0 0 0 1px var(--navy-btn);
}
html.dark .me-day.apro {
  background: rgba(22, 164, 111, 0.16);
  border-color: rgba(94, 235, 176, 0.28);
}
html.dark .me-day.pend {
  background: rgba(249, 123, 12, 0.16);
  border-color: rgba(255, 224, 168, 0.28);
}
html.dark .me-day.fest {
  background: #141C2A;
}
html.dark .me-card.accent {
  border-color: rgba(249, 123, 12, 0.35);
  background: linear-gradient(180deg, rgba(249, 123, 12, 0.12) 0%, var(--white) 48%);
}
html.dark .me-req.pendiente .me-st {
  background: rgba(249, 123, 12, 0.22);
  color: #FFE0A8;
}
html.dark .me-req.aprobada .me-st {
  background: rgba(22, 164, 111, 0.22);
  color: #5EEBB0;
}
html.dark .me-req.rechazada .me-st {
  background: rgba(214, 69, 69, 0.22);
  color: #FFB4B4;
}

/* Módulos PULSO: white KPI cards + unreadable kicker */
html.dark .mod-pulse .mp,
html.dark .ge-pulse .mp {
  background: var(--white);
  border-color: var(--hair);
  box-shadow: var(--shadow);
  color: var(--ink);
}
html.dark .mod-pulse .mp b,
html.dark .ge-pulse .mp b {
  color: var(--ink);
}
html.dark .mod-pulse .mp s,
html.dark .mod-pulse .mp span,
html.dark .ge-pulse .mp s,
html.dark .ge-pulse .mp span {
  color: var(--muted);
}
html.dark .mod-pulse .mp-kicker {
  color: #C5D0E4;
}
html.dark .mod-pulse .mp.warn b,
html.dark .ge-pulse .mp.warn b { color: #FFE0A8; }
html.dark .mod-pulse .mp.bad b,
html.dark .ge-pulse .mp.bad b { color: #FFB4B4; }

/* Equipo Lista panel */
html.dark .eq-dense {
  background: var(--white);
  border-color: var(--hair);
}
html.dark .eq-drow:hover {
  background: #141C2A;
}
html.dark .eq-drow b {
  color: var(--ink);
}
html.dark .eq-drow span,
html.dark .eq-drow em,
html.dark .eq-drow u,
html.dark .eq-drow.hist i {
  color: var(--muted);
}
html.dark .eq-drow.hist.baja u { color: #FFB4B4; }
html.dark .eq-toggle {
  border: 0;
  background: rgba(255,255,255,.12);
}
html.dark .eq-toggle button {
  background: transparent;
  color: #A9BCE0;
}
html.dark .eq-toggle button.on {
  background: #fff;
  color: #0E2A5C;
}

/* Fichar (empleado): force dark surfaces + readable clock + logo */
html.dark .fc {
  background: var(--canvas);
  overflow-x: hidden;
  overflow-y: auto;
}
html.dark .fc-amb {
  opacity: 0.14;
  filter: brightness(0.35) saturate(0.7);
}
html.dark .fc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.72) 0%, rgba(11, 18, 32, 0.88) 100%);
}
html.dark .fc-bar,
html.dark .fc-body,
html.dark .fc-act {
  position: relative;
  z-index: 2;
}
html.dark .fc-bar {
  overflow: visible;
}
html.dark .fc-bar .brand {
  overflow: visible;
  min-width: 0;
}
html.dark .fc-bar .word {
  overflow: visible;
}
html.dark .fc-clock,
html.dark .fc-clock span,
html.dark .fc-who .n,
html.dark .fc-salir,
html.dark .fc-tit,
html.dark .fc-leg b {
  color: var(--ink);
}
html.dark .fc-clock em {
  color: #A0AEC8;
}
html.dark .fc-fecha,
html.dark .fc-note,
html.dark .fc-hours,
html.dark .fc-sub,
html.dark .fc-leg,
html.dark .fc-pause,
html.dark .fc-who .r {
  color: var(--muted);
}
html.dark .fc-st:not(.on):not(.pause) {
  background: #141C2A;
  color: var(--muted);
}
html.dark .word .t { color: var(--ink); }

/* Light Mi espacio: Volver / Bandeja contrast (buttons inherit white jn-ghost) */
.me-hero-r button.jn-ghost,
.me-hero-r a.jn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 14px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #C9D5EA;
  color: #0E2A5C;
  font-weight: 800;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}
.me-hero-r button.jn-ghost:hover,
.me-hero-r a.jn-ghost:hover {
  border-color: #0E2A5C;
  background: #F5F8FD;
}
html.dark .me-hero-r button.jn-ghost,
html.dark .me-hero-r a.jn-ghost {
  background: var(--white);
  border-color: var(--hair);
  color: var(--ink);
}
html.dark .me-hero-r button.jn-ghost:hover,
html.dark .me-hero-r a.jn-ghost:hover {
  border-color: var(--navy-btn);
  background: #141C2A;
}

/* Inbox / cal ghost buttons on light cards */
.me-inbox-acts .jn-ghost,
.me-cal-nav .jn-ghost,
.me-card .jn-ghost.me-cancel {
  border: 1.5px solid #C9D5EA;
  background: #fff;
  color: #0E2A5C;
}
html.dark .me-inbox-acts .jn-ghost,
html.dark .me-cal-nav .jn-ghost,
html.dark .me-card .jn-ghost.me-cancel {
  background: var(--white);
  border-color: var(--hair);
  color: var(--ink);
}

/* Export 4 años button — keep visible label wrapping */
.jn-hero-r .jn-ghost[data-act="exportar"],
.eq-hero .jn-ghost[data-act="exportar"],
.mod-export-cta {
  white-space: nowrap;
}

/* button.vf-row reset (was article) */
button.vf-row {
  font: inherit;
  color: inherit;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
}
button.vf-row:focus-visible {
  outline: 2px solid var(--orange, #F97B0C);
  outline-offset: 2px;
}

/* Módulos: dark right hero panel (PULSO already OK) */
html.dark .hero-vid {
  background: #0B1220;
}
html.dark .modboard {
  background: var(--canvas);
  border-color: var(--hair);
}

/* @1024: VF ESTADO column + topnav crowding */
@media (max-width: 1100px) and (min-width: 721px) {
  .vf-list-head,
  .vf-row {
    grid-template-columns:
      minmax(84px, 0.75fr)
      minmax(110px, 1.25fr)
      minmax(68px, 0.5fr)
      minmax(68px, 0.5fr)
      minmax(132px, 1.15fr)
      22px;
    gap: 8px 8px;
  }
  .vf-list-head > span:nth-child(5),
  .vf-row .jn-pill {
    min-width: 118px;
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
    justify-self: start;
  }
  .vf-row .jn-pill {
    padding: 6px 10px;
    font-size: 12px;
  }
  .topnav {
    gap: 4px;
    padding: 0 8px;
    align-items: stretch;
  }
  .topnav .brand .word { display: none; }
  .topnav .links {
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
    align-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .topnav a {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .topnav .sp { flex: 0 0 4px; min-width: 4px; align-self: center; }
  .topnav .who { display: none; }
  .topnav .btn-ghost { padding: 0 8px; font-size: 12.5px; }
  .topnav .theme-tog .theme-lab { display: none; }
  .topnav .theme-tog .theme-lab-short { display: inline; }
  .topnav .theme-tog { padding: 0 8px; height: 34px; flex-shrink: 0; }
  .co-switch {
    flex-shrink: 0;
    margin-left: 2px;
  }
  .co-switch select {
    max-width: 96px;
    padding: 0 20px 0 6px;
    font-size: 12px;
  }
  .co-add { width: 32px; height: 32px; }
}

/* Keep 1280+ VF grid / ESTADO intact */
@media (min-width: 1280px) {
  .vf-list-head,
  .vf-row {
    grid-template-columns: 128px minmax(180px, 1.8fr) 112px 120px 124px 34px;
  }
}

/* Módulos: Exportar 4 años discoverability */
.mod-export {
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  position: relative;
  z-index: 3;
}
.mod-export .mod-export-cta {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}
.mod-export .fine-p { margin: 0; }
@media (max-width: 720px) {
  .mod-export { padding: 0 16px; margin-top: 8px; }
}
.eq-drow.hist.open { cursor: pointer; }
.eq-drow.hist.open:hover { background: #F0F4FA; }
html.dark .eq-drow.hist.open:hover { background: #141C2A; }


/* ===== Empleado portal polish (Hoy / Jornada / Mi espacio) ===== */
.jn-week {
  margin: 0 0 18px;
  padding: 14px 16px 18px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.jn-week-h {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.jn-week-h b { font-size: 15px; font-weight: 800; color: #13265C; }
.jn-week-strip {
  display: flex; align-items: stretch; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.jn-daychip {
  flex: 0 0 auto; min-width: 92px; max-width: 118px;
  min-height: 124px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
  padding: 10px 12px 12px; border-radius: 14px;
  border: 1px solid var(--hair); background: #F8FAFD;
  cursor: pointer; text-align: left;
  box-sizing: border-box;
  overflow: visible;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.jn-daychip em {
  font-style: normal; font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: #8494B0;
}
.jn-daychip b { font-size: 15px; font-weight: 800; color: #13265C; }
.jn-daychip s {
  text-decoration: none; font-size: 12.5px; font-weight: 700;
  color: #5B6B88; white-space: nowrap;
}
.jn-daychip .jn-pill { margin-top: auto; font-size: 11px; flex: 0 0 auto; }
.jn-daychip.on {
  border-color: rgba(249,115,22,.55);
  box-shadow: 0 0 0 2px rgba(249,115,22,.18);
  background: #FFF7F0;
}
.jn-daychip.today em { color: #C2570A; }
.jn-daychip.ok { border-color: rgba(22,164,111,.28); }
.jn-daychip.bad { border-color: rgba(214,69,69,.28); }
.jn-daychip.pend { border-color: rgba(180,97,10,.28); }

.jn-emp .jn-hrs { display: inline-block !important; }

/* Hoy dark: fc-app / fc-sum / fc-link + Fuera de turno chip */
html.dark .fc.fc-app,
html.dark .fc.fc-app .fc-body {
  background: transparent;
  color: var(--ink);
}
html.dark .fc-sum .fc-card,
html.dark .fc-link {
  background: var(--white);
  border-color: var(--hair);
  color: var(--ink);
}
html.dark .fc-link b { color: var(--ink); }
html.dark .fc-link span,
html.dark .fc-card s,
html.dark .fc-card em { color: var(--muted); }
html.dark .fc-card b.off,
html.dark .fc-st:not(.on):not(.pause) {
  color: #C5D0E4;
}
html.dark .fc-st:not(.on):not(.pause) {
  background: #1A2436;
  border: 1px solid #2A3650;
}
html.dark .fc-st:not(.on):not(.pause) i { background: #8FA0BC; }

html.dark .jn-week {
  background: var(--white);
  border-color: var(--hair);
}
html.dark .jn-week-h b { color: var(--ink); }
html.dark .jn-daychip {
  background: #141C2A;
  border-color: var(--hair);
}
html.dark .jn-daychip b { color: var(--ink); }
html.dark .jn-daychip s,
html.dark .jn-daychip em { color: var(--muted); }
html.dark .jn-daychip.on {
  background: rgba(249,115,22,.12);
  border-color: rgba(249,115,22,.45);
}

/* Festivo más visible en dark */
html.dark .me-day.fest {
  background: rgba(120, 140, 190, 0.28) !important;
  border-color: rgba(180, 200, 240, 0.55) !important;
  box-shadow: inset 0 0 0 1px rgba(180, 200, 240, 0.25);
}
html.dark .me-day.fest b { color: #E8EEF8 !important; }
html.dark .me-day em.f {
  background: #A8B8D8 !important;
  width: 8px; height: 8px;
  box-shadow: 0 0 0 2px rgba(168, 184, 216, 0.35);
}
html.dark .me-legend i.f {
  background: #A8B8D8 !important;
}

.me-form .em-in::placeholder { color: #8FA0BC; opacity: 1; }
html.dark .me-form .em-in::placeholder { color: #7B8AA6; }

@media (max-width: 1024px) {
  .jn-emp .jn-hrs {
    display: inline-block !important;
    min-width: 88px;
    font-size: 12.5px;
  }
}
@media (max-width: 720px) {
  .jn-daychip { min-width: 84px; }
  .fc-btn { height: 64px; font-size: 20px; }
}



/* ===== Alta online + CRM ===== */
.alta {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 18px 48px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
}
.alta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.alta-top h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
html.dark .alta-top h1 { color: var(--ink); }
.alta-top p { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.alta-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.alta-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--canvas);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.alta-step i {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--hair); color: var(--muted-2);
  font-style: normal; font-size: 11px; font-weight: 800;
}
.alta-step.on {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-50);
  color: var(--ink);
}
.alta-step.on i { background: var(--orange); color: #fff; }
.alta-step.done i { background: var(--navy); color: #fff; }
.alta-card { margin-bottom: 14px; }
.alta-card.ok { border-color: rgba(34, 160, 90, 0.35); }
.alta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.alta-grid label { display: flex; flex-direction: column; gap: 6px; }
.alta-grid label s {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em;
}
.alta-grid .span2 { grid-column: 1 / -1; }
.alta-mods { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.alta-mod {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: var(--canvas);
  cursor: pointer;
}
.alta-mod.on {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: var(--white);
}
.alta-mod b { display: block; font-size: 14px; font-weight: 800; }
.alta-mod span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.alta-mod em {
  font-style: normal; font-size: 12.5px; font-weight: 800;
  color: var(--navy); white-space: nowrap;
}
html.dark .alta-mod em { color: var(--orange); }
.alta-workers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
  margin-bottom: 14px;
  max-width: 420px;
}
.alta-card .alta-tot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .alta-card .alta-tot { grid-template-columns: 1fr; }
}
.alta-workers label { display: flex; flex-direction: column; gap: 6px; }
.alta-workers label s,
.alta-tot s,
.alta-creds s {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em;
}
.alta-tot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: var(--canvas);
}
.alta-tot.big { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.alta-tot b { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; }
.alta-tot b em { font-style: normal; font-weight: 700; color: var(--muted); font-size: 12px; }
.alta-tot .sum b { font-size: 20px; color: var(--navy); letter-spacing: -0.02em; }
html.dark .alta-tot .sum b { color: var(--orange); }
.alta-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 16px;
}
.alta-creds .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.alta-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.mod-crm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: var(--canvas);
}
.crm { max-width: 1120px; margin: 0 auto; padding: 16px 20px 48px; }
.crm-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.crm-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 0.85fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
html.dark .crm-row { background: var(--canvas); }
.crm-row.on { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-50); }
.crm-row b { display: block; font-size: 13.5px; font-weight: 800; }
.crm-row span { font-size: 12px; font-weight: 600; color: var(--muted); }
.crm-row s {
  font-size: 10.5px; font-weight: 800; color: var(--muted);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em;
}
.crm-row .st-paid { color: #1a7f4b; }
.crm-row .st-pending, .crm-row .st-draft { color: var(--orange); }
.crm-detail { margin-top: 8px; }
@media (max-width: 900px) {
  .alta-steps { grid-template-columns: 1fr 1fr; }
  .alta-grid, .alta-workers, .alta-tot, .alta-creds, .crm-row {
    grid-template-columns: 1fr 1fr;
  }
  .crm-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .alta-grid, .alta-workers, .alta-tot.big, .alta-creds { grid-template-columns: 1fr; }
  .alta-tot { grid-template-columns: 1fr; }
}


/* Portada: Ya tengo cuenta / Alta nueva */
.login.gate .gate-card { width: min(440px, 100%); padding: 40px 34px 32px; }
.gate-card h1 { margin-top: 28px; font-size: 28px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink, #10203D); }
.gate-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.gate-opt {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 18px 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--border, #E9EDF5); background: #fff;
  box-shadow: 0 1px 2px rgba(14,42,92,0.05), 0 8px 24px rgba(14,42,92,0.05);
  transition: border-color .15s, transform .15s;
}
.gate-opt:hover { border-color: #F97B0C; transform: translateY(-1px); }
.gate-opt.primary { background: #0E2A5C; border-color: #0E2A5C; }
.gate-opt.primary b, .gate-opt.primary span { color: #fff; }
.gate-opt.primary span { color: #A9BCE0; }
.gate-opt b { font-size: 16px; font-weight: 800; color: #10203D; }
.gate-opt span { font-size: 13.5px; font-weight: 600; color: #6D7C99; }
.back-gate { margin: 18px 0 0; }
.back-gate a { font-size: 13.5px; font-weight: 700; color: #6D7C99; text-decoration: none; }
.back-gate a:hover { color: #F97B0C; }
html.dark .gate-opt { background: var(--surface); border-color: var(--border); }
html.dark .gate-opt b { color: var(--ink); }
html.dark .gate-opt span { color: var(--muted); }
html.dark .gate-opt.primary { background: #1B3D7E; border-color: #1B3D7E; }
html.dark .gate-opt.primary b { color: #fff; }
html.dark .gate-opt.primary span { color: #B9CBF2; }
@media (max-width: 560px) {
  .gate-opt { min-height: 48px; padding: 16px; }
}


html.dark .eq-dhead { background: #16223F; border-bottom-color: #26314E; }
html.dark .eq-dst.off { background: #1A2438; color: #8A99B8; }
html.dark .eq-dname b { color: var(--ink); }
html.dark .eq-dhrs, html.dark .eq-drow u { color: var(--ink); }
html.dark .eq-toggle { border-color: rgba(255,255,255,0.2); background: rgba(0,0,0,0.2); }
html.dark .eq-toggle button.on { background: #fff; color: #0E2A5C; }


/* Equipo mock-v2 dark readability */
html.dark .eq { background: var(--canvas); }
html.dark .eq-card.pause { border-color: #6B4A22; }
html.dark .eq-card.off { background: #141C2A; border-color: #3A465E; }
html.dark .eq-filters .chip {
  background: var(--white); color: var(--ink); border-color: var(--hair);
}
html.dark .eq-filters .chip.on {
  background: var(--navy-btn, #0E2A5C); color: #fff; border-color: transparent;
}
html.dark .eq-kv > div {
  background: #141C2A; border-color: var(--hair);
}
html.dark .eq-tick { background: var(--hair); }
html.dark .eq-bar { background: #141C2A; }
html.dark .eq-ghost { background: var(--white); color: var(--ink); border-color: var(--hair); }
html.dark .eq-cta.geo {
  background: #1A2744; border-color: #2A3A5C;
}
html.dark .eq-cta.geo b { color: var(--ink); }
html.dark .eq-cta.geo p { color: var(--muted); }
html.dark .eq-hours { border-top-color: var(--hair); }
html.dark .eq-hours b { color: var(--ink); }
html.dark .eq-donut div { background: var(--white); }
html.dark .eq-legend div { color: var(--ink); }
html.dark .eq-vac { background: var(--white); border-color: var(--hair); }


/* cabecera Equipo fija: .eq-chrome position:fixed bajo topnav */
@supports not (overflow: clip) {
  #app { overflow-x: hidden; }
}

.ops-wrap .ops-table{width:100%;border-collapse:collapse;font-size:14px}
.ops-wrap .ops-table th,.ops-wrap .ops-table td{padding:8px 10px;border-bottom:1px solid #E6ECF5;text-align:left;vertical-align:top}
.ops-wrap .eq-kpis{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.ops-wrap .eq-kpi{background:#F7F9FC;border-radius:12px;padding:12px 16px;min-width:120px}
.ops-wrap .eq-kpi s{display:block;text-decoration:none;color:#6D7C99;font-size:12px}
.ops-wrap .eq-kpi b{font-size:22px;color:#0E2A5C}

.ops-wrap .ops-form{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-top:8px}
.ops-wrap .ops-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ops-wrap .ops-actions .jn-ghost.danger{color:#D64545}
.ops-wrap .ops-actions .jn-ghost:disabled{opacity:.45;cursor:not-allowed}
.ops-wrap .ops-cred{background:#FFF7ED;border:1px solid #FED7AA;border-radius:12px;padding:12px 14px;margin:8px 0 12px}
.ops-wrap .ops-cred code{font-weight:700;color:#0E2A5C}
html.dark .ops-wrap .ops-cred{background:#2A1F14;border-color:#5C3D1E}
html.dark .ops-wrap .ops-cred code{color:var(--ink)}
html.dark .ops-wrap .ops-table th,html.dark .ops-wrap .ops-table td{border-bottom-color:var(--line,#2A3344)}


/* alta total stack */
.alta-tot.big { display: grid; gap: 12px; margin-top: 16px; clear: both; position: relative; z-index: 1; grid-template-columns: 1fr 1fr; }
.alta-grid { margin-bottom: 8px; }

/* nav compact earlier */
@media (max-width: 1180px) {
  .topnav .bn-full { display: none !important; }
  .topnav .bn-short { display: inline !important; }
  .topnav .who .who-full { display: none; }
  .topnav .who .who-short { display: inline; }
  .topnav .links { gap: 0; overflow-x: auto; flex-wrap: nowrap; max-width: min(58vw, 520px); }
  .topnav a { padding: 0 8px; font-size: 13px; white-space: nowrap; }
  .topnav .brand span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 900px) {
  .topnav .btn-ghost { display: none; }
}

/* alta step3 stack harden */
.alta-card .alta-mods { display: grid; gap: 10px; margin-bottom: 16px; }
.alta-card .alta-workers { display: flex !important; flex-direction: column !important; max-width: 420px; margin: 0 0 16px !important; }
.alta-card .alta-tot { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 10px !important; margin: 0 !important; float: none !important; clear: both !important; position: static !important; width: 100% !important; }
.alta-card .alta-tot > div { min-width: 0; }
@media (max-width: 640px) {
  .alta-card .alta-tot { grid-template-columns: 1fr !important; }
}

.ops-profiles { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ops-profiles .demo-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--hair, #E6ECF5); background: #fff; cursor: pointer;
}
.ops-profiles .demo-btn b { font-size: 15px; font-weight: 800; color: #10203D; }
.ops-profiles .demo-btn span { font-size: 13px; font-weight: 600; color: #6D7C99; }
.ops-profiles .demo-btn.admin { border-left: 4px solid #0E2A5C; }
.ops-profiles .demo-btn.mgr { border-left: 4px solid #3B6AE8; }
.ops-profiles .demo-btn.emp { border-left: 4px solid #F97B0C; }
html.dark .ops-profiles .demo-btn { background: var(--canvas); }
html.dark .ops-profiles .demo-btn b { color: var(--ink); }


/* ===== Portada v2 (landing-v2) — public #/ ===== */
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes st-blob1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 50px) scale(1.15); } }
@keyframes st-blob2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-60px, -40px) scale(0.95); } }
@keyframes st-float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes st-baila { 0%, 100% { height: 34%; } 50% { height: 88%; } }

.portada.landing-v2,
.landing-v2 {
  min-height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #0E2A5C;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #10203D;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
}
.landing-v2 .pv2-ico { width: 24px; height: 24px; display: block; }
.landing-v2 .pv2-ico-sm { width: 14px; height: 14px; display: block; flex-shrink: 0; }
.landing-v2 .pv2-fld-ico {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #8A99B8; pointer-events: none;
}

.landing-v2 .pv2-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 54px;
  padding-top: max(44px, env(safe-area-inset-top, 0px));
  padding-left: max(54px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  min-height: 100dvh;
  background: #0E2A5C;
  color: #fff;
}
.landing-v2 .pv2-blob {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(50px);
}
.landing-v2 .pv2-blob-a {
  top: -180px; left: -140px; width: 640px; height: 640px;
  background: radial-gradient(circle at 35% 35%, rgba(249,123,12,0.5), transparent 62%);
  filter: blur(60px);
  animation: st-blob1 13s ease-in-out infinite alternate;
}
.landing-v2 .pv2-blob-b {
  bottom: -220px; right: -160px; width: 720px; height: 720px;
  background: radial-gradient(circle at 60% 60%, rgba(27,61,126,0.9), transparent 65%);
  animation: st-blob2 16s ease-in-out infinite alternate;
}
.landing-v2 .pv2-blob-c {
  top: 40%; left: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(249,123,12,0.28), transparent 60%);
  filter: blur(46px);
  animation: st-blob2 11s ease-in-out infinite alternate-reverse;
}
.landing-v2 .pv2-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 56px);
}
.landing-v2 .pv2-brand {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
}
.landing-v2 .pv2-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: #F97B0C; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.landing-v2 .pv2-mark.sm { width: 38px; height: 38px; border-radius: 12px; }
.landing-v2 .pv2-mark .pv2-ico { width: 22px; height: 22px; }
.landing-v2 .pv2-word {
  font-size: 22px; font-weight: 800; letter-spacing: -0.6px; color: #fff;
}
.landing-v2 .pv2-word span { color: #FFB876; }

.landing-v2 .pv2-pitch {
  position: relative; z-index: 1;
  margin-top: auto;
  display: flex; flex-direction: column; gap: 22px;
  max-width: 520px;
}
.landing-v2 .pv2-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 12px; font-weight: 800; letter-spacing: 1.8px; color: #FFD0A2;
  background: rgba(249,123,12,0.2); border: 1px solid rgba(249,123,12,0.4);
  border-radius: 20px; padding: 7px 14px;
}
.landing-v2 .pv2-pill i {
  width: 7px; height: 7px; border-radius: 50%; background: #F97B0C;
  animation: st-pulse 1.6s ease-in-out infinite;
}
.landing-v2 .pv2-pitch h1 {
  margin: 0; font-size: clamp(34px, 4.2vw, 52px); font-weight: 800;
  color: #fff; letter-spacing: -2.2px; line-height: 1.04;
  text-wrap: pretty;
}
.landing-v2 .pv2-pitch h1 em {
  font-style: normal; color: #F97B0C;
}
.landing-v2 .pv2-checks { display: flex; flex-direction: column; gap: 12px; }
.landing-v2 .pv2-check {
  display: flex; align-items: center; gap: 11px;
  font-size: 15.5px; font-weight: 600; color: #D7E1F3;
}
.landing-v2 .pv2-check-ico {
  width: 24px; height: 24px; border-radius: 8px;
  background: rgba(22,164,111,0.22); color: #5BD6A6;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.landing-v2 .pv2-floats {
  position: relative; z-index: 1;
  margin-top: 34px;
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
}
.landing-v2 .pv2-float {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  animation: st-float 6s ease-in-out infinite alternate;
  box-shadow: 0 16px 40px rgba(14,42,92,0.22);
}
.landing-v2 .pv2-f2 { width: 230px; animation-duration: 7.5s; animation-delay: 0.8s; }
.landing-v2 .pv2-f3 {
  flex-direction: row; align-items: center; gap: 11px;
  animation-duration: 6.8s; animation-delay: 1.6s;
}
.landing-v2 .pv2-float-lab {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; color: #8FA8D4;
}
.landing-v2 .pv2-float-num { display: flex; align-items: flex-end; gap: 6px; }
.landing-v2 .pv2-float-num b {
  font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1;
}
.landing-v2 .pv2-float-num span {
  font-size: 13px; font-weight: 700; color: #8FA8D4; padding-bottom: 2px;
}
.landing-v2 .pv2-segs { display: flex; gap: 4px; }
.landing-v2 .pv2-segs i {
  width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2);
}
.landing-v2 .pv2-segs i.ok { background: #16A46F; }
.landing-v2 .pv2-segs i.warn { background: #F2A63B; }
.landing-v2 .pv2-float-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.landing-v2 .pv2-av {
  width: 26px; height: 26px; border-radius: 8px;
  background: #0E2A5C; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800;
  border: 1px solid rgba(255,255,255,0.2);
}
.landing-v2 .pv2-nm { font-size: 12.5px; font-weight: 800; color: #fff; }
.landing-v2 .pv2-tm {
  margin-left: auto; font-size: 11.5px; font-weight: 800; color: #5BD6A6;
  font-variant-numeric: tabular-nums;
}
.landing-v2 .pv2-bar {
  position: relative; height: 14px; background: rgba(255,255,255,0.12); border-radius: 7px;
}
.landing-v2 .pv2-bar i {
  position: absolute; top: 3px; bottom: 3px; background: #F97B0C; border-radius: 5px;
}
.landing-v2 .pv2-bar u {
  position: absolute; left: 68%; top: -3px; bottom: -3px; width: 2px;
  background: #fff; border-radius: 2px; text-decoration: none;
  animation: st-pulse 1.6s ease-in-out infinite;
}
.landing-v2 .pv2-shield {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(22,164,111,0.22); color: #5BD6A6;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.landing-v2 .pv2-shield .pv2-ico { width: 18px; height: 18px; }
.landing-v2 .pv2-f3 b {
  display: block; font-size: 12.5px; font-weight: 800; color: #fff;
}
.landing-v2 .pv2-f3 span {
  display: block; font-size: 11.5px; font-weight: 700; color: #8FA8D4;
  font-variant-numeric: tabular-nums;
}
.landing-v2 .pv2-baila {
  margin-left: auto;
  display: flex; align-items: flex-end; gap: 4px; height: 54px;
  animation: st-float 8s 1.2s ease-in-out infinite alternate;
}
.landing-v2 .pv2-baila i {
  width: 9px; border-radius: 4px; background: rgba(249,123,12,0.5);
  animation: st-baila 2.6s ease-in-out infinite;
}
.landing-v2 .pv2-baila i:nth-child(1) { height: 40%; }
.landing-v2 .pv2-baila i:nth-child(2) { height: 70%; background: rgba(249,123,12,0.7); animation-delay: 0.3s; }
.landing-v2 .pv2-baila i:nth-child(3) { height: 95%; background: #F97B0C; animation-delay: 0.6s; }
.landing-v2 .pv2-baila i:nth-child(4) { height: 60%; background: rgba(249,123,12,0.7); animation-delay: 0.9s; }
.landing-v2 .pv2-baila i:nth-child(5) { height: 45%; animation-delay: 1.2s; }

.landing-v2 .pv2-stage {
  background: #EEF2F8;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 44px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  padding-right: max(44px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  min-height: 100dvh;
}
.landing-v2 .pv2-card {
  width: 100%; max-width: 490px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(14,42,92,0.18);
  padding: 32px 34px;
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 22px;
}
.landing-v2 .pv2-card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.landing-v2 .pv2-card-brand {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.landing-v2 .pv2-card-brand b {
  display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: #10203D;
}
.landing-v2 .pv2-card-brand b span { color: #F97B0C; }
.landing-v2 .pv2-card-brand > div > span {
  display: block; font-size: 12px; font-weight: 600; color: #8A99B8;
}
.landing-v2 .pv2-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; color: #0F7C55;
  background: #E8F7F0; border-radius: 20px; padding: 6px 11px;
  white-space: nowrap;
}
.landing-v2 .pv2-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #16A46F;
  animation: st-pulse 1.6s ease-in-out infinite;
}

.landing-v2 .pv2-tabs {
  display: flex; gap: 4px;
  background: #F4F7FC; border-radius: 14px; padding: 5px;
}
.landing-v2 .pv2-tab {
  flex: 1; min-height: 44px; border: 0; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 0 10px; line-height: 1.15;
  background: transparent; color: #6D7C99;
  font-family: inherit; font-size: 13.5px; font-weight: 800;
  text-decoration: none; text-align: center;
  cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
a.landing-v2 .pv2-tab,
.landing-v2 a.pv2-tab {
  display: inline-flex; align-items: center; justify-content: center;
}
.landing-v2 .pv2-tab.on {
  background: #fff; color: #0E2A5C;
  box-shadow: 0 2px 8px rgba(14,42,92,0.10);
}
.landing-v2 .pv2-tab:focus-visible {
  outline: 2px solid #F97B0C; outline-offset: 2px;
}

.landing-v2 .pv2-form,
.landing-v2 .pv2-alta {
  display: flex; flex-direction: column; gap: 16px;
}
.landing-v2 .pv2-fld { display: flex; flex-direction: column; gap: 6px; }
.landing-v2 .pv2-fld label {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; color: #A5B2C9;
}
.landing-v2 .pv2-input { position: relative; }
.landing-v2 .pv2-input input {
  width: 100%; height: 52px; min-height: 48px;
  border: 1.5px solid #E3E8F1; border-radius: 14px;
  background: #F9FBFD; padding: 0 48px 0 44px;
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: #10203D;
  box-sizing: border-box; outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.landing-v2 .pv2-input input:focus {
  border-color: #0E2A5C; background: #fff;
  box-shadow: 0 0 0 4px rgba(14,42,92,0.10);
}
.landing-v2 .pv2-input input::placeholder { color: #A5B2C9; font-weight: 600; }
.landing-v2 .pv2-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: #8A99B8; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.landing-v2 .pv2-eye svg { width: 19px; height: 19px; }
.landing-v2 .pv2-eye:hover { color: #0E2A5C; background: #F4F7FC; }
.landing-v2 .pv2-form-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.landing-v2 .pv2-hint-muted {
  font-size: 13px; font-weight: 700; color: #3C4C6B;
}
.landing-v2 .pv2-link-muted {
  margin-left: auto; font-size: 13px; font-weight: 800; color: #0E2A5C; text-decoration: none;
}
.landing-v2 .pv2-link-muted:hover { color: #F97B0C; }

.landing-v2 .pv2-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 8px;
  min-height: 52px; height: 52px; border-radius: 14px; border: 0;
  background: #0E2A5C; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 800;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(14,42,92,0.22);
  transition: background 0.15s, transform 0.15s;
}
.landing-v2 .pv2-cta:hover { background: #16346C; }
.landing-v2 .pv2-cta:active { transform: scale(0.98); }
.landing-v2 .pv2-cta .pv2-ico-sm { width: 17px; height: 17px; }

.landing-v2 .pv2-alta { gap: 14px; text-align: left; }
.landing-v2 .pv2-alta-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: #EEF2F8; color: #0E2A5C;
  display: flex; align-items: center; justify-content: center;
}
.landing-v2 .pv2-alta h2 {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: #10203D;
}
.landing-v2 .pv2-alta > p {
  margin: 0; font-size: 14.5px; font-weight: 600; color: #6D7C99; line-height: 1.45;
}
.landing-v2 .pv2-alta-list {
  margin: 0; padding: 14px 16px; list-style: none;
  background: #F7F9FC; border-radius: 14px; border: 1px solid #E3E8F1;
  display: flex; flex-direction: column; gap: 8px;
}
.landing-v2 .pv2-alta-list li {
  font-size: 14px; font-weight: 600; color: #3C4C6B;
  padding-left: 18px; position: relative;
}
.landing-v2 .pv2-alta-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: #F97B0C;
}
.landing-v2 .pv2-alta-list b { color: #0E2A5C; font-weight: 800; }
.landing-v2 .pv2-alta-note {
  margin: 0; font-size: 12.5px; font-weight: 600; color: #8A99B8; text-align: center;
}
.landing-v2 .pv2-alta-note a { color: #0E2A5C; font-weight: 800; text-decoration: none; }
.landing-v2 .pv2-alta-note a:hover { color: #F97B0C; }

.landing-v2 .pv2-card-foot {
  display: flex; justify-content: flex-end; padding-top: 4px;
}
.landing-v2 .pv2-card-foot .theme-tog {
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  width: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}
.landing-v2 .pv2-card-foot .theme-tog .theme-lab,
.landing-v2 .pv2-card-foot .theme-tog .theme-lab-short { display: none; }
.landing-v2 a.pv2-tab {
  text-decoration: none;
  box-sizing: border-box;
}

/* Dark mode adaptations for portada */
html.dark .landing-v2 .pv2-stage { background: #0F1728; }
html.dark .landing-v2 .pv2-card {
  background: #16223F; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
html.dark .landing-v2 .pv2-card-brand b { color: #F2F5FB; }
html.dark .landing-v2 .pv2-card-brand > div > span { color: #8A99B8; }
html.dark .landing-v2 .pv2-tabs { background: #121A2E; }
html.dark .landing-v2 .pv2-tab { color: #8A99B8; }
html.dark .landing-v2 .pv2-tab.on {
  background: #1B3D7E; color: #fff; box-shadow: none;
}
html.dark .landing-v2 .pv2-input input {
  background: #121A2E; border-color: #2A3650; color: #F2F5FB;
}
html.dark .landing-v2 .pv2-input input:focus {
  border-color: #F97B0C; background: #0F1728;
  box-shadow: 0 0 0 4px rgba(249,123,12,0.15);
}
html.dark .landing-v2 .pv2-hint-muted { color: #B9CBF2; }
html.dark .landing-v2 .pv2-link-muted { color: #B9CBF2; }
html.dark .landing-v2 .pv2-alta h2 { color: #F2F5FB; }
html.dark .landing-v2 .pv2-alta > p { color: #8A99B8; }
html.dark .landing-v2 .pv2-alta-list {
  background: #121A2E; border-color: #2A3650;
}
html.dark .landing-v2 .pv2-alta-list li { color: #B9CBF2; }
html.dark .landing-v2 .pv2-alta-list b { color: #fff; }
html.dark .landing-v2 .pv2-alta-ico { background: #1B3D7E; color: #fff; }
html.dark .landing-v2 .pv2-live { background: rgba(22,164,111,0.18); color: #5BD6A6; }

@media (max-width: 980px) {
  .portada.landing-v2,
  .landing-v2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  /* Card first on mobile (conversion); compact hero pitch below */
  .landing-v2 .pv2-hero {
    min-height: auto;
    padding: 22px 22px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    order: 2;
  }
  .landing-v2 .pv2-stage {
    min-height: auto;
    padding: 20px 16px 8px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    align-items: flex-start;
    background: #F7F9FC;
    order: 1;
  }
  .landing-v2 .pv2-eye {
    width: 48px; height: 48px; min-width: 48px; min-height: 48px;
  }
  .landing-v2 .pv2-card-foot .theme-tog {
    min-width: 48px; min-height: 48px; width: 48px; height: 48px;
  }
  .landing-v2 .pv2-pitch { margin-top: 28px; gap: 14px; }
  .landing-v2 .pv2-pitch h1 { font-size: 32px; letter-spacing: -1.4px; }
  .landing-v2 .pv2-floats { display: none; }
  .landing-v2 .pv2-checks .pv2-check:nth-child(n+3) { display: none; }
  .landing-v2 .pv2-card {
    max-width: none; width: 100%;
    border-radius: 20px; padding: 24px 18px 22px;
    box-shadow: 0 16px 40px rgba(14,42,92,0.14);
  }
  .landing-v2 .pv2-live { margin-left: 0; width: 100%; justify-content: center; }
  .landing-v2 .pv2-tab { min-height: 48px; font-size: 13px; }
  .landing-v2 .pv2-cta { min-height: 52px; }
}

@media (max-width: 420px) {
  .landing-v2 .pv2-pitch h1 { font-size: 28px; }
  .landing-v2 .pv2-card-brand > div > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2 .pv2-blob-a,
  .landing-v2 .pv2-blob-b,
  .landing-v2 .pv2-blob-c,
  .landing-v2 .pv2-float,
  .landing-v2 .pv2-baila,
  .landing-v2 .pv2-baila i,
  .landing-v2 .pv2-pill i,
  .landing-v2 .pv2-live i,
  .landing-v2 .pv2-bar u {
    animation: none !important;
  }
}


/* ===== Alta v2 (alta-v2) ===== */
.alta.alta-v2 {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  background: #0E2A5C;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #10203D;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
}
.alta.alta-v2 .av2-rail {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 42px;
  padding-top: max(40px, env(safe-area-inset-top, 0px));
  padding-left: max(42px, env(safe-area-inset-left, 0px));
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  min-height: 100dvh;
  color: #fff;
}
.alta.alta-v2 .av2-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.alta.alta-v2 .av2-blob-a {
  top: -160px; left: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle at 35% 35%, rgba(249,123,12,.5), transparent 62%);
  filter: blur(60px);
  animation: st-blob1 13s ease-in-out infinite alternate;
}
.alta.alta-v2 .av2-blob-b {
  bottom: -200px; right: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle at 60% 60%, rgba(27,61,126,.9), transparent 65%);
  filter: blur(50px);
  animation: st-blob2 16s ease-in-out infinite alternate;
}
.alta.alta-v2 .av2-gridbg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px);
}
.alta.alta-v2 .av2-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alta.alta-v2 .av2-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: #F97B0C; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.alta.alta-v2 .av2-mark svg { width: 23px; height: 23px; display: block; }
.alta.alta-v2 .av2-word {
  font-size: 21px; font-weight: 800; letter-spacing: -.6px; color: #fff;
}
.alta.alta-v2 .av2-word span { color: #FFB876; }
.alta.alta-v2 .av2-pitch {
  position: relative;
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.alta.alta-v2 .av2-pitch h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.4px;
  line-height: 1.08;
  text-wrap: pretty;
}
.alta.alta-v2 .av2-pitch h1 em {
  font-style: normal;
  color: #F97B0C;
}
.alta.alta-v2 .av2-pitch p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #A9BCE0;
  line-height: 1.55;
  text-wrap: pretty;
}
.alta.alta-v2 .av2-steps {
  position: relative;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.alta.alta-v2 .av2-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: all .15s;
  min-height: 48px;
  box-sizing: border-box;
}
.alta.alta-v2 .av2-step[data-act] { cursor: pointer; }
.alta.alta-v2 .av2-step.on {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
}
.alta.alta-v2 .av2-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  background: rgba(255,255,255,.1); color: #8FA8D4;
}
.alta.alta-v2 .av2-step.on .av2-dot { background: #F97B0C; color: #fff; }
.alta.alta-v2 .av2-step.done .av2-dot { background: rgba(22,164,111,.25); color: #5BD6A6; }
.alta.alta-v2 .av2-step-lab {
  font-size: 14px; font-weight: 800; color: #8FA8D4; flex: 1;
}
.alta.alta-v2 .av2-step.on .av2-step-lab { color: #fff; }
.alta.alta-v2 .av2-step.done .av2-step-lab { color: #D7E1F3; }
.alta.alta-v2 .av2-step-meta {
  font-size: 11.5px; font-weight: 700; color: #5F76A6;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.alta.alta-v2 .av2-step.on .av2-step-meta { color: #FFD0A2; }
.alta.alta-v2 .av2-sum {
  position: relative;
  margin-top: auto;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alta.alta-v2 .av2-sum > s {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px;
  color: #8FA8D4; text-decoration: none; text-transform: uppercase;
}
.alta.alta-v2 .av2-sum-row {
  display: flex; align-items: center; gap: 10px;
}
.alta.alta-v2 .av2-sum-row span {
  font-size: 13px; font-weight: 600; color: #D7E1F3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.alta.alta-v2 .av2-sum-row b {
  margin-left: auto;
  font-size: 12.5px; font-weight: 800; color: #8FA8D4;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.alta.alta-v2 .av2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.alta.alta-v2 .av2-chip {
  font-size: 11px; font-weight: 800; color: #FFD0A2;
  background: rgba(249,123,12,.2);
  border: 1px solid rgba(249,123,12,.4);
  border-radius: 16px; padding: 5px 10px;
}
.alta.alta-v2 .av2-chip.dim {
  color: #8FA8D4;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.alta.alta-v2 .av2-sum-tot {
  display: flex; align-items: flex-end;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.alta.alta-v2 .av2-sum-tot span {
  font-size: 12.5px; font-weight: 700; color: #8FA8D4;
}
.alta.alta-v2 .av2-sum-tot b {
  margin-left: auto;
  font-size: 26px; font-weight: 800; color: #fff;
  letter-spacing: -1px; font-variant-numeric: tabular-nums;
}
.alta.alta-v2 .av2-sum-note {
  font-size: 11px; font-weight: 600; color: #5F76A6; text-align: right;
}

.alta.alta-v2 .av2-stage {
  background: #EEF2F8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 44px;
  padding-bottom: max(36px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  min-height: 100dvh;
}
.alta.alta-v2 .av2-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(10,26,55,.28);
  padding: 30px 34px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alta.alta-v2 .av2-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.alta.alta-v2 .av2-card-head h2 {
  margin: 0;
  font-size: 21px; font-weight: 800; letter-spacing: -.6px; color: #10203D;
}
.alta.alta-v2 .av2-card-head p {
  margin: 2px 0 0;
  font-size: 12.5px; font-weight: 600; color: #8A99B8;
}
.alta.alta-v2 .av2-badge {
  margin-left: auto;
  font-size: 11.5px; font-weight: 800; color: #B4610A;
  background: #FFF1E2; border-radius: 20px; padding: 6px 12px;
  flex-shrink: 0; white-space: nowrap;
}
.alta.alta-v2 .av2-bar {
  height: 6px; border-radius: 3px; background: #F4F7FC; overflow: hidden;
}
.alta.alta-v2 .av2-bar i {
  display: block; height: 100%; width: 0;
  background: #F97B0C; border-radius: 3px;
  transition: width .25s;
  font-style: normal;
}
.alta.alta-v2 .av2-bar i.done { background: #16A46F; }
.alta.alta-v2 .av2-body { display: flex; flex-direction: column; gap: 14px; }

.alta.alta-v2 .av2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.alta.alta-v2 .av2-fld {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
}
.alta.alta-v2 .av2-fld.span2 { grid-column: 1 / -1; }
.alta.alta-v2 .av2-fld s {
  font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
  color: #A5B2C9; text-decoration: none; text-transform: uppercase;
}
.alta.alta-v2 .av2-in {
  width: 100%; height: 48px;
  border: 1.5px solid #E3E8F1; border-radius: 13px;
  background: #F9FBFD; padding: 0 14px;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #10203D;
  box-sizing: border-box; outline: none;
  min-height: 48px;
}
.alta.alta-v2 .av2-in:focus {
  border-color: #0E2A5C; background: #fff;
}
.alta.alta-v2 .av2-in::placeholder { color: #A5B2C9; font-weight: 600; }

.alta.alta-v2 .av2-note {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px; background: #EAF0FB;
}
.alta.alta-v2 .av2-note b {
  width: 10px; height: 10px; border-radius: 50%;
  background: #0E2A5C; flex-shrink: 0;
}
.alta.alta-v2 .av2-note span {
  font-size: 13px; font-weight: 700; color: #0E2A5C; line-height: 1.4;
}
.alta.alta-v2 .av2-fine {
  margin: 0;
  font-size: 13px; font-weight: 600; color: #6D7C99; line-height: 1.45;
}
.alta.alta-v2 .av2-fine.center { text-align: center; }
.alta.alta-v2 .av2-fine b { color: #10203D; font-weight: 800; }

.alta.alta-v2 .av2-mods { display: flex; flex-direction: column; gap: 9px; }
.alta.alta-v2 .av2-mod {
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left; font: inherit; color: inherit;
  appearance: none; -webkit-appearance: none;
  padding: 13px 16px; border-radius: 15px;
  border: 1px solid #E6EBF4; background: #fff;
  cursor: pointer; transition: all .15s;
  min-height: 48px; box-sizing: border-box;
}
.alta.alta-v2 .av2-mod.on {
  border: 1.5px solid #0E2A5C; background: #F4F7FC;
}
.alta.alta-v2 .av2-mod.locked { cursor: default; }
.alta.alta-v2 .av2-mod.soon {
  cursor: default; opacity: .72; background: #F7F9FC;
}
.alta.alta-v2 .av2-mod.soon em { color: #8A99B8; font-weight: 700; white-space: normal; max-width: 9.5em; text-align: right; }

.alta.alta-v2 .av2-mod-ico {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: #EEF2F8;
  box-shadow: inset 0 0 0 2px #C9D5EA;
}
.alta.alta-v2 .av2-mod.on .av2-mod-ico {
  background: #0E2A5C; box-shadow: none;
}
.alta.alta-v2 .av2-mod > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.alta.alta-v2 .av2-mod b { font-size: 14px; font-weight: 800; color: #10203D; }
.alta.alta-v2 .av2-mod span { font-size: 11.5px; font-weight: 600; color: #8A99B8; }
.alta.alta-v2 .av2-mod em {
  font-style: normal; font-size: 12.5px; font-weight: 800;
  color: #3C4C6B; font-variant-numeric: tabular-nums; flex-shrink: 0;
  white-space: nowrap;
}
.alta.alta-v2 .av2-check {
  width: 22px; height: 22px; border-radius: 8px; flex-shrink: 0;
  background: #EEF2F8;
  position: relative;
}
.alta.alta-v2 .av2-mod.on .av2-check {
  background: #F97B0C;
}
.alta.alta-v2 .av2-mod.on .av2-check::after {
  content: "";
  position: absolute; left: 7px; top: 4px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.alta.alta-v2 .av2-workers {
  border: 1px solid #E6EBF4; border-radius: 16px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.alta.alta-v2 .av2-workers > div {
  display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 140px;
}
.alta.alta-v2 .av2-workers s {
  font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
  color: #A5B2C9; text-decoration: none; text-transform: uppercase;
}
.alta.alta-v2 .av2-workers span { font-size: 12px; font-weight: 600; color: #8A99B8; }
.alta.alta-v2 .av2-wbtn {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border-radius: 12px; border: 1.5px solid #C9D5EA;
  color: #0E2A5C; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; cursor: pointer;
  font-family: inherit; line-height: 1;
}
.alta.alta-v2 .av2-wbtn:hover { background: #F4F7FC; }
.alta.alta-v2 .av2-wbtn.plus {
  background: #0E2A5C; color: #fff; border-color: #0E2A5C;
}
.alta.alta-v2 .av2-wbtn.plus:hover { background: #16346C; }
.alta.alta-v2 .av2-wnum {
  width: 72px; height: 48px; min-height: 48px;
  border: none; background: transparent;
  font-family: inherit; font-size: 30px; font-weight: 800;
  letter-spacing: -1.2px; color: #10203D;
  font-variant-numeric: tabular-nums; text-align: center;
  outline: none; -moz-appearance: textfield;
}
.alta.alta-v2 .av2-wnum::-webkit-outer-spin-button,
.alta.alta-v2 .av2-wnum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.alta.alta-v2 .av2-paysum {
  border: 1px solid #E6EBF4; border-radius: 16px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 9px;
}
.alta.alta-v2 .av2-payline {
  display: flex; align-items: center; gap: 10px;
}
.alta.alta-v2 .av2-payline span { font-size: 13px; font-weight: 600; color: #6D7C99; }
.alta.alta-v2 .av2-payline b {
  margin-left: auto; font-size: 13.5px; font-weight: 800;
  color: #10203D; font-variant-numeric: tabular-nums;
}
.alta.alta-v2 .av2-paytotal {
  display: flex; align-items: center; gap: 10px;
  padding-top: 9px; border-top: 1px solid #EEF2F8;
}
.alta.alta-v2 .av2-paytotal span { font-size: 14.5px; font-weight: 800; color: #10203D; }
.alta.alta-v2 .av2-paytotal b {
  margin-left: auto; font-size: 22px; font-weight: 800;
  letter-spacing: -.7px; color: #10203D; font-variant-numeric: tabular-nums;
}
.alta.alta-v2 .av2-secure {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 13px; background: #E8F7F0;
}
.alta.alta-v2 .av2-secure span {
  font-size: 12.5px; font-weight: 700; color: #0F7C55; line-height: 1.4;
}
.alta.alta-v2 .av2-paymeta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.alta.alta-v2 .av2-paymeta s {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
  color: #A5B2C9; text-decoration: none; text-transform: uppercase;
}
.alta.alta-v2 .av2-paymeta b { font-size: 13.5px; font-weight: 800; color: #10203D; }

.alta.alta-v2 .av2-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; min-height: 48px; padding: 0 24px; border-radius: 14px;
  background: #0E2A5C; color: #fff; border: none;
  font-family: inherit; font-size: 14.5px; font-weight: 800;
  cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.alta.alta-v2 .av2-cta:hover { background: #16346C; color: #fff; }
.alta.alta-v2 .av2-cta.pay { background: #F97B0C; width: 100%; }
.alta.alta-v2 .av2-cta.pay:hover { background: #E06E08; }
.alta.alta-v2 .av2-cta:disabled { opacity: .65; cursor: wait; }
.alta.alta-v2 .av2-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 1.5px solid #C9D5EA; color: #0E2A5C; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.alta.alta-v2 .av2-ghost:hover { background: #F4F7FC; color: #0E2A5C; }
.alta.alta-v2 .av2-link {
  font-size: 13px; font-weight: 800; color: #0E2A5C; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.alta.alta-v2 .av2-link:hover { color: #F97B0C; }
.alta.alta-v2 .av2-nav {
  display: flex; align-items: center; gap: 10px; padding-top: 4px; flex-wrap: wrap;
}
.alta.alta-v2 .av2-nav-btns {
  margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap;
}

.alta.alta-v2 .av2-done {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 18px 0 6px; text-align: center;
}
.alta.alta-v2 .av2-done-ico {
  width: 74px; height: 74px; border-radius: 24px;
  background: #E8F7F0; color: #16A46F;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800;
}
.alta.alta-v2 .av2-done h3 {
  margin: 0; font-size: 24px; font-weight: 800;
  letter-spacing: -.8px; color: #10203D;
}
.alta.alta-v2 .av2-done > p {
  margin: 0; font-size: 13.5px; font-weight: 600; color: #6D7C99;
  max-width: 400px; line-height: 1.5; text-wrap: pretty;
}
.alta.alta-v2 .av2-stats {
  display: flex; gap: 22px; padding: 14px 22px; border-radius: 16px;
  background: #F9FBFD; border: 1px solid #E6EBF4;
}
.alta.alta-v2 .av2-stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.alta.alta-v2 .av2-stats b {
  font-size: 19px; font-weight: 800; color: #10203D;
  font-variant-numeric: tabular-nums;
}
.alta.alta-v2 .av2-stats s {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  color: #A5B2C9; text-decoration: none; text-transform: uppercase;
}
.alta.alta-v2 .av2-creds {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  text-align: left;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid #E6EBF4; background: #F9FBFD;
}
.alta.alta-v2 .av2-creds .span2 { grid-column: 1 / -1; }
.alta.alta-v2 .av2-creds s {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
  color: #A5B2C9; text-decoration: none; text-transform: uppercase;
}
.alta.alta-v2 .av2-creds b { font-size: 14px; font-weight: 800; color: #10203D; word-break: break-all; }
.alta.alta-v2 .av2-creds .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em;
}
.alta.alta-v2 .av2-done-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.alta.alta-v2 .av2-pill.ok {
  font-size: 12px; font-weight: 800; color: #0F7C55;
  background: #E8F7F0; border-radius: 20px; padding: 6px 12px;
}

/* Victopus / mobile: stack, safe-area, ≥48px targets, no clip at 360–430 */
@media (max-width: 980px) {
  .alta.alta-v2 {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  .alta.alta-v2 .av2-rail {
    min-height: auto;
    order: 2;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
  }
  .alta.alta-v2 .av2-stage {
    min-height: auto;
    order: 1;
    align-items: flex-start;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }
  .alta.alta-v2 .av2-card {
    max-width: none;
    width: 100%;
    border-radius: 20px;
    padding: 24px 18px 22px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .alta.alta-v2 .av2-pitch { margin-top: 22px; }
  .alta.alta-v2 .av2-pitch h1 { font-size: 28px; letter-spacing: -1px; }
  .alta.alta-v2 .av2-sum { margin-top: 22px; }
  .alta.alta-v2 .av2-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .alta.alta-v2 .av2-step { min-height: 48px; }
  .alta.alta-v2 .av2-step-meta { display: none; }
  .alta.alta-v2 .av2-cta,
  .alta.alta-v2 .av2-ghost {
    min-height: 52px;
    height: 52px;
  }
  .alta.alta-v2 .av2-wbtn {
    width: 48px; height: 48px;
    min-width: 48px; min-height: 48px;
  }
  .alta.alta-v2 .av2-mod {
    min-height: 56px;
    padding: 14px 16px;
  }
  .alta.alta-v2 .av2-check {
    width: 24px; height: 24px; min-width: 24px; min-height: 24px;
  }
  .alta.alta-v2 .av2-link { min-height: 48px; }
  .alta.alta-v2 .av2-workers {
    flex-wrap: wrap;
    row-gap: 12px;
  }
}
@media (max-width: 560px) {
  .alta.alta-v2 .av2-card {
    padding: 22px max(16px, env(safe-area-inset-left, 0px)) 20px max(16px, env(safe-area-inset-right, 0px));
    border-radius: 18px;
  }
  .alta.alta-v2 .av2-grid { grid-template-columns: 1fr; gap: 12px; }
  .alta.alta-v2 .av2-paymeta { grid-template-columns: 1fr; }
  .alta.alta-v2 .av2-creds { grid-template-columns: 1fr; }
  .alta.alta-v2 .av2-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .alta.alta-v2 .av2-nav-btns {
    margin-left: 0;
    width: 100%;
  }
  .alta.alta-v2 .av2-nav-btns .av2-cta,
  .alta.alta-v2 .av2-nav-btns .av2-ghost { flex: 1; min-width: 0; }
  .alta.alta-v2 .av2-steps { grid-template-columns: 1fr; }
  .alta.alta-v2 .av2-stats {
    width: 100%;
    gap: 10px;
    padding: 12px 10px;
    justify-content: space-around;
    box-sizing: border-box;
  }
  .alta.alta-v2 .av2-mod em { font-size: 11.5px; }
  .alta.alta-v2 .av2-card-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .alta.alta-v2 .av2-badge { margin-left: 0; }
  .alta.alta-v2 .av2-done-actions {
    width: 100%;
    flex-direction: column;
  }
  .alta.alta-v2 .av2-done-actions .av2-cta,
  .alta.alta-v2 .av2-done-actions .av2-ghost {
    width: 100%;
  }
  .alta.alta-v2 .av2-payline,
  .alta.alta-v2 .av2-paytotal {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .alta.alta-v2 .av2-wnum { width: 64px; font-size: 26px; }
}
@media (max-width: 390px) {
  .alta.alta-v2 .av2-pitch h1 { font-size: 26px; }
  .alta.alta-v2 .av2-card-head h2 { font-size: 18px; }
  .alta.alta-v2 .av2-in { height: 48px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .alta.alta-v2 .av2-blob-a,
  .alta.alta-v2 .av2-blob-b,
  .alta.alta-v2 .av2-bar i { animation: none !important; transition: none !important; }
}

.bill-tog.soon { opacity: .62; cursor: default; }

.em-days { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 10px; }
.em-day {
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid #E6EBF4; background:#fff;
  font-size:12px; font-weight:800; color:#6D7C99; cursor:pointer;
}
.em-day input { position:absolute; opacity:0; pointer-events:none; }
.em-day:has(input:checked), .em-day.on { background:#0E2A5C; color:#fff; border-color:#0E2A5C; }
.em-check { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:#10203D; margin:8px 0 12px; }
.em-check input { width:18px; height:18px; }

.em-times { display:flex; flex-direction:column; gap:4px; margin:8px 0 10px; }
.em-timepair { display:flex; align-items:center; gap:8px; }
.em-timepair input { flex:1; min-width:0; }
.em-timepair span { font-size:12px; font-weight:700; color:#8A99B8; }

.em-turnos { display:flex; flex-direction:column; gap:2px; }
.em-turno[hidden] { display:none !important; }
.em-bar.n3 i, .em-bar.n4 i { flex:1; }

.em-useracts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin: 2px 0 10px;
}
.em-ua {
  height: 44px;
  margin: 0;
  padding: 0 10px;
  border-radius: 12px;
  border: 1.5px solid #C9D5EA;
  background: #F4F7FC;
  color: #0E2A5C;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.em-ua:hover { border-color: #0E2A5C; background: #EAF0FB; }
.em-ua.on {
  background: #FFF1E2;
  border-color: #F97B0C;
  color: #B4610A;
}
.em-ua.bad {
  background: #FDECEC;
  border-color: #D64545;
  color: #B03A34;
}
html.dark .em-ua {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
html.dark .em-ua:hover { background: rgba(255,255,255,.12); border-color: #F97B0C; }
html.dark .em-ua.on {
  background: rgba(249,123,12,.22);
  border-color: #F97B0C;
  color: #FFD0A2;
}
html.dark .em-ua.bad {
  background: rgba(214,69,69,.22);
  border-color: #D64545;
  color: #FFB4B4;
}

.em-pinrow { display:flex; align-items:flex-end; gap:12px; }
.em-pinrow label { flex: 0 0 auto; }
.st-mod-body .em-pin,
input.em-in.em-pin {
  width: 132px;
  max-width: 132px;
  height: 48px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
  padding: 0 12px 0 16px;
}
.em-ficha-more { margin-top: 4px; }
.em-ficha-more .em-ua.bad { grid-column: auto; }
html.dark .st-mod-body .em-pin,
html.dark input.em-in.em-pin {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

html.dark .eq-dbolsa { color: #FFD0A2; }


/* lista estado + docs pendientes */
.eq-dst.ok { background: #E8F7F0 !important; color: #16A46F !important; }
.eq-dst.miss { background: #FDECEC !important; color: #D64545 !important; }
.eq-dst.pause { background: #FFF1E2 !important; color: #C97A0A !important; }
html.dark .eq-dst.ok,
html.dark .eq-drow em.eq-dst.ok { background: rgba(22,164,111,.22) !important; color: #3DDC97 !important; }
html.dark .eq-dst.miss,
html.dark .eq-drow em.eq-dst.miss { background: rgba(214,69,69,.22) !important; color: #FF8A8A !important; }
html.dark .eq-dst.off { background: #1A2438; color: #8A99B8; }
.eq-dbolsa { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.eq-dbolsa b { font-size: 13px; font-weight: 800; color: inherit; }
.eq-dbolsa em { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; font-style: normal; color: #8A99B8; }
.eq-dbolsa.co { color: #B4610A; }
.eq-dbolsa.emp { color: #16A46F; }
.eq-dbolsa.pend { color: #C97A0A; }
.jn-pill.bad { color: #D64545; background: #FDECEC; }
html.dark .jn-pill.bad { color: #FF8A8A; background: rgba(214,69,69,.22); }
.me-card.miss { border-color: #D64545; }
.me-card-h .me-pend {
  margin-left: auto;
  font-size: 11px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; font-style: normal;
  color: #D64545; background: #FDECEC;
  padding: 4px 10px; border-radius: 999px;
}
html.dark .me-card.miss { border-color: #D64545; }
html.dark .me-card-h .me-pend { color: #FF8A8A; background: rgba(214,69,69,.22); }
.me-noms { display: flex; flex-direction: column; gap: 10px; }
html.dark .jn-go.ghost {
  background: #16223F !important;
  color: #F4F7FF !important;
  border-color: #3A4A6A !important;
}
html.dark .jn-emp-acts .jn-go.ghost { background: #16223F !important; color: #F4F7FF !important; }

.eq-stbox .eq-dbolsa {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1.2;
}
.eq-stbox .eq-dbolsa.co { color: #B4610A; }
.eq-stbox .eq-dbolsa.emp { color: #16A46F; }
.eq-stbox .eq-dbolsa.pend { color: #C97A0A; }
html.dark .eq-stbox .eq-dbolsa.co { color: #FFD0A2; }
html.dark .eq-stbox .eq-dbolsa.emp { color: #3DDC97; }
html.dark .eq-stbox .eq-dbolsa.pend { color: #FFE0A8; }

.jn-hero-r .jn-ghost,
.jn-hero-r a.jn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; min-height: 46px; padding: 0 16px;
  line-height: 1; box-sizing: border-box; text-decoration: none;
}
.jn-go {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; box-sizing: border-box;
}

.eq-drow:not(.hist) { min-height: 64px; }
.eq-dacts {
  display: table-cell;
}
.eq-dacts-in {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap;
}
.eq-dacts .eq-ghost.sm,
.eq-dacts .eq-navy.sm {
  height: 36px; min-width: 84px; margin: 0; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; box-sizing: border-box; border-radius: 10px;
}
.eq-stbox-in .eq-dst { margin: 0 auto; }
.eq-stbox-in .eq-dbolsa {
  display: block; text-align: center; width: 100%;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.2px; line-height: 1.2;
}

.kk-qr-modal { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.kk-qr-modal img { border-radius: 12px; background: #fff; padding: 10px; }
.kk-qr-modal b { font-size: 16px; font-weight: 800; }
.kk-qr-modal span { font-size: 12px; font-weight: 700; color: var(--muted); word-break: break-all; }

.me-card-h .me-on {
  margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; font-style: normal;
  color: #16A46F; background: #E8F7F0; padding: 4px 10px; border-radius: 999px;
}
html.dark .me-card-h .me-on { color: #3DDC97; background: rgba(22,164,111,.22); }
.ofq {
  min-height: 100dvh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px 20px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: #0E2A5C; color: #fff; text-align: center;
}
.ofq-brand { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #A9BCE0; }
.ofq h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.6px; }
.ofq-day { margin: 0; font-size: 15px; font-weight: 700; color: #D7E2F5; }
.ofq-img { width: min(72vw, 360px); height: auto; background: #fff; border-radius: 18px; padding: 14px; }
.ofq-hint { font-size: 15px; font-weight: 800; }
.ofq-tok { font-size: 11px; font-weight: 700; color: #8FA8D4; word-break: break-all; max-width: 360px; }
.ofq-close { color: #fff; font-weight: 800; text-decoration: none; border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; padding: 10px 18px; }
.ofq-off { gap: 16px; }
.ofq-off .jn-orange { text-decoration: none; display: inline-flex; align-items: center; height: 46px; padding: 0 18px; }


/* ===== Móvil QA 28-ago: overlay Equipo + taps 48 + hero sin clip ===== */
@media (max-width: 720px) {
  .eq-chrome {
    position: static !important;
    top: auto;
  }
  .eq-chrome-s { display: none !important; height: 0 !important; }
  .eq-hero { padding: 14px 16px 20px; gap: 12px; }
  .eq-hero h1 { font-size: 26px; }
  .eq-filters { width: calc(100% - 24px); margin: -16px auto 12px; padding: 10px 12px; }
  .eq-body { padding: 0 12px; margin-top: 8px; }

  .landing-v2 .pv2-hero {
    overflow: visible;
    min-height: auto;
  }
  .landing-v2 .pv2-floats { position: relative; }

  .theme-tog,
  .topnav .theme-tog,
  .login-card .theme-tog,
  .landing-v2 .pv2-card-foot .theme-tog {
    min-height: 48px;
    height: 48px;
    min-width: 48px;
    box-sizing: border-box;
  }

  .back-gate a,
  .login-card .hint a,
  .pv2-form .hint a,
  .hint a[href="#/alta"] {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0;
    box-sizing: border-box;
    font-size: 16px;
  }

  .jn-ghost, .jn-orange, .eq-ghost,
  .me-hero-r a.jn-ghost,
  .me-hero-r button.jn-ghost,
  .me-inbox-acts .jn-orange,
  .me-inbox-acts .jn-ghost,
  .me-inbox-acts .eq-ghost,
  .bill-cta .jn-orange,
  .bill-cta .jn-ghost,
  .jn-hero-r .jn-ghost,
  .jn-hero-r .jn-orange,
  .eq-hero-r .jn-ghost,
  .eq-hero-r .jn-orange,
  .ofq-off .jn-orange {
    min-height: 48px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
  }

  .me-cal-nav .jn-ghost,
  .me-cal-nav button {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .chips .chip,
  .eq-filters .chip,
  .jn-chip, .st-chip {
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .fc-act, .fc-go, button[data-act="clock"],
  .hoy-go, .kk-go,
  .fc-pause,
  button[data-act="clock-out"] {
    min-height: 48px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .eq-ghost, .eq-navy,
  .eq-ghost.sm, .eq-navy.sm,
  .eq-acts .eq-ghost, .eq-acts .eq-navy,
  .eq-dacts .eq-ghost.sm, .eq-dacts .eq-navy.sm {
    min-height: 48px !important;
    height: 48px !important;
    min-width: 88px;
    flex: 0 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .eq-dacts, .eq-dacts-in {
    height: auto !important;
    align-items: stretch;
  }
  .eq-drow:not(.hist) { min-height: 0; height: auto; }

  .eq-cta button,
  .eq-cta.geo button,
  button[data-act="add-empleado"],
  button[data-act="geo-on"] {
    min-height: 48px !important;
    height: 48px !important;
    width: 100%;
    box-sizing: border-box;
  }
}
