:root {
  --blue: #1E1EFF;
  --lime: #DDFF33;
  --ink: #0B0B26;
  --pink: #FF5CCB;
  --violet: #8C8CFF;
  --pink-soft: #FFB3E8;
  --lavender: #ECECFF;
  --paper: #F5F5FA;
  --white: #FFFFFF;
  --line: #E4E4EE;
  --line-soft: #F0F0F6;
  --input-border: #DDDDEA;
  --muted: #6A6A8A;
  --muted-2: #8A8AA0;
  --body-2: #4A4A6A;
  --danger: #D0105F;
  --danger-text: #C0147F;
  --danger-bg: #FFE0EF;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-ui: Urbanist, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-card: 0 20px 44px rgba(30, 30, 255, .12);
  --shadow-btn: 0 10px 22px rgba(30, 30, 255, .18);
  --shadow-modal: 0 30px 70px rgba(11, 11, 38, .3);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --scroll-track: transparent;
  --scroll-thumb: rgba(30, 30, 255, .18);
  --scroll-thumb-hover: rgba(30, 30, 255, .4);
}

* { box-sizing: border-box; }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); }
*::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
*::-webkit-scrollbar-corner { background: transparent; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--paper);
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--ink); }

button { font-family: inherit; cursor: pointer; }

.kicker {
  font: 700 11px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Botones */
.btn {
  border: 0;
  border-radius: 99px;
  padding: 13px 22px;
  font: 700 14px var(--font-ui);
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s var(--spring), box-shadow .2s ease, opacity .2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-lime { background: var(--lime); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: #fff; border: 1.5px solid var(--input-border); }
.btn-block { width: 100%; padding: 15px 22px; font-size: 15px; }

/* Campos */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 700 12px var(--font-ui);
  color: var(--body-2);
  min-width: 0;
}
.input-wrap { position: relative; }
.input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1.5px solid var(--input-border);
  font: 600 14px var(--font-ui);
  color: var(--ink);
  background: #fff;
  outline-color: var(--blue);
  transition: border-color .2s ease;
}
.input:focus { border-color: var(--blue); }
.input-wrap .input { padding-right: 46px; }
.input-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.input-eye:hover { background: var(--lavender); color: var(--blue); }

.alert-danger {
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--danger-bg);
  color: var(--danger-text);
  font: 700 13px var(--font-ui);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: tkShake .4s ease;
}

@keyframes tkShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@keyframes tkFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tkSpin { to { transform: rotate(360deg); } }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(11, 11, 38, .25);
  border-top-color: var(--ink);
  animation: tkSpin .7s linear infinite;
}

/* Login */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  padding: 20px;
}

.login-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--blue);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
}
.login-hero-mark {
  position: absolute;
  right: -150px;
  bottom: -190px;
  opacity: .14;
  pointer-events: none;
}
.login-lockup { display: flex; align-items: center; gap: 16px; position: relative; }
.login-lockup span {
  font: 800 52px/1 var(--font-display);
  letter-spacing: -.04em;
}
.login-hero-copy { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.login-hero-copy h2 {
  margin: 0;
  font: 800 56px/.92 var(--font-display);
  letter-spacing: -.035em;
}
.login-hero-copy p { margin: 0; font: 500 17px/1.5 var(--font-ui); color: #C8C8FF; }
.login-hero-foot { position: relative; color: #B8B8FF; }

/* Motivo: corte del boleto */
.ticket-cut {
  position: relative;
  display: flex;
  border-radius: 22px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  max-width: 440px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ticket-cut:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 11, 38, .25); }
.ticket-cut-main { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ticket-cut-main strong { font: 800 22px/1.05 var(--font-display); letter-spacing: -.02em; }
.ticket-cut-main span { font: 600 13px var(--font-ui); color: #C8C8FF; }
.ticket-cut-perf { width: 0; border-left: 2px dashed #7070FF; margin: 14px 0; }
.ticket-cut-stub {
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ticket-cut-stub strong { font: 800 22px var(--font-display); color: var(--lime); }
.ticket-cut-stub span { font: 700 10px var(--font-mono); letter-spacing: .1em; color: #C8C8FF; }
.ticket-cut-notch {
  position: absolute;
  right: 101px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
}
.ticket-cut-notch.top { top: -11px; }
.ticket-cut-notch.bottom { bottom: -11px; }

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.login-card {
  width: 100%;
  min-width: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: tkFadeUp .5s ease both;
}
.login-card .kicker { color: var(--blue); }
.login-card h1 {
  margin: 0;
  font: 800 44px/.95 var(--font-display);
  letter-spacing: -.035em;
}
.login-card p.lead { margin: 0; font: 500 15px/1.5 var(--font-ui); color: var(--muted); }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-help { font: 500 13px/1.5 var(--font-ui); color: var(--muted-2); text-align: center; }
.login-mobile-lockup { display: none; }

@media (max-width: 960px) {
  .login { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .login-hero { display: none; }
  .login-panel { min-height: 100vh; padding: 28px 22px; }
  .login-mobile-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 26px/1 var(--font-display);
    letter-spacing: -.04em;
    color: var(--blue);
  }
  .login-card h1 { font-size: 38px; }
}

/* Panel (shell base) */
.shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  width: 250px;
  flex: none;
  background: var(--ink);
  color: #fff;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; }
.sidebar-brand-text { display: flex; flex-direction: column; gap: 3px; }
.sidebar-brand-text .t1 { font: 800 21px/1 var(--font-ui); color: #fff; }
.sidebar-brand-text .t2 { font: 800 14px/1 var(--font-ui); color: var(--lime); }
.sidebar-spacer { flex: 1; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 14px var(--font-ui);
  flex: none;
}
.sidebar-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-user-text .n { font: 700 13px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-text .r { font: 500 11px var(--font-ui); color: #8A8AB0; }
.sidebar-logout {
  border: 0;
  background: transparent;
  color: #8A8AB0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--spring), background .2s ease, color .2s ease;
}
.sidebar-logout:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); color: #fff; }

.main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  max-width: 1360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head .kicker { color: var(--blue); }
.page-head h1 { margin: 0; font: 800 40px/1 var(--font-display); letter-spacing: -.03em; }

.card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }

.welcome {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--blue);
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welcome h2 { margin: 0; font: 800 34px/1 var(--font-display); letter-spacing: -.03em; position: relative; }
.welcome p { margin: 0; font: 500 15px/1.5 var(--font-ui); color: #C8C8FF; max-width: 640px; position: relative; }
.welcome .login-hero-mark { right: -120px; bottom: -220px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font: 700 12px var(--font-ui);
  width: fit-content;
}
.chip-lime { background: #EFFFB3; color: #3F5200; }
.chip-blue { background: var(--lavender); color: var(--blue); }

.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot .spinner { width: 28px; height: 28px; border-color: rgba(30, 30, 255, .2); border-top-color: var(--blue); }

.tk-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 7px 11px;
  border-radius: 10px;
  background: #0B0B26;
  color: #fff;
  font: 600 12px Urbanist, system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(11, 11, 38, .3);
  opacity: 0;
  transition: opacity .12s;
  white-space: nowrap;
  max-width: 320px;
}

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font: 700 10px var(--font-mono);
  letter-spacing: .1em;
  color: #6A6A90;
  padding: 0 10px 6px;
}
.nav-item {
  text-align: left;
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font: 600 14px var(--font-ui);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #E6E6F5;
  background: transparent;
  transition: transform .2s var(--spring), box-shadow .2s ease, background .15s ease;
}
.nav-item:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.14); }
.nav-item:active { transform: translateY(0); }
.nav-item.on { background: var(--lime); color: var(--ink); }
.nav-item span { flex: 1; }
.nav-item span.nav-badge { flex: none; }
.nav-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--pink);
  color: var(--ink);
  font: 700 11px var(--font-mono);
  text-align: center;
}
.nav-item.on .nav-badge { background: var(--ink); color: #fff; }

.sidebar-foot {
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  background: #16163A;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-photo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  border: 0;
  padding: 0;
  flex: none;
  font: 800 14px var(--font-ui);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.cuenta-nav {
  border: 0;
  background: #16163A;
  color: #fff;
  padding: 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  transition: transform .2s var(--spring), box-shadow .2s ease, background .15s ease;
}
.cuenta-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.14); }
.cuenta-nav.on { background: var(--blue); }
.cuenta-nav .ini {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--lime); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font: 800 16px var(--font-display); flex: none;
}
.cuenta-nav .sub { font: 500 11px var(--font-ui); color: #8A8AB0; }
.cuenta-nav.on .sub { color: #C8C8FF; }

.ev-row { display: flex; align-items: center; border-radius: 12px; }
.ev-row.on { background: var(--lime); }
.ev-row.on .nav-item, .ev-row.on .ev-toggle { color: var(--ink); }
.ev-toggle {
  border: 0; background: transparent; color: #E6E6F5;
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  font: 800 16px var(--font-ui);
  transition: transform .2s var(--spring);
}
.ev-mini {
  display: flex; flex-direction: column; gap: 1px;
  padding: 2px 0 4px 18px; margin-left: 8px;
  border-left: 1px solid #26264A;
}
.ev-mini button {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px 10px; border-radius: 12px; border: 0;
  background: transparent; color: #fff; text-align: left; width: 100%;
  transition: transform .2s var(--spring), box-shadow .2s ease, background .15s ease;
}
.ev-mini button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.14); }
.ev-mini button.on { background: var(--blue); }
.ev-mini .nm { font: 700 13px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-mini .mt { font: 500 11px var(--font-ui); color: #8A8AB0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-mini button.on .mt { color: #D6D6FF; }
.bar3 { display: block; width: 100%; height: 3px; border-radius: 9px; background: rgba(255,255,255,.14); overflow: hidden; }
.bar3 i { display: block; height: 100%; border-radius: 9px; }
.btn-create-ev,
.ev-mini button.btn-create-ev {
  margin-top: 6px; border: 1.5px dashed #3A3A70; background: transparent;
  color: var(--lime); padding: 10px; border-radius: 14px;
  font: 700 13px var(--font-ui); width: 100%;
  flex-direction: row; display: block;
  transition: transform .2s var(--spring), box-shadow .2s ease;
}
.btn-create-ev:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.14); }

.main { padding: 28px 32px 64px; }
.page-head h1 { font: 800 34px/1.05 var(--font-display); letter-spacing: -.03em; }
.page-head .sub { font: 500 14px var(--font-ui); color: var(--muted); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi {
  padding: 20px; border-radius: 22px; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.kpi:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.kpi.dark { background: var(--blue); color: #fff; }
.kpi .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi .l { font: 600 13px var(--font-ui); opacity: .75; }
.kpi .v { font: 800 32px/1 var(--font-display); letter-spacing: -.02em; }
.trend {
  white-space: nowrap; padding: 3px 8px; border-radius: 99px;
  font: 700 11px var(--font-ui); background: #EFFFB3; color: #3F5200;
}
.kpi.dark .trend { background: var(--lime); color: var(--ink); }

.split2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.split3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; }

.card { padding: 22px; border-radius: 24px; }
.card h3 { margin: 0; font: 700 17px var(--font-ui); }

.chart {
  display: flex; align-items: flex-end; gap: 3px; flex: 1;
  min-height: 180px; border-bottom: 1px solid var(--line-soft);
}
.chart i {
  flex: 1; border-radius: 8px 8px 3px 3px;
  transition: filter .2s, transform .2s;
}
.chart i:hover { filter: brightness(1.1); transform: scaleY(1.03); }
.chart-axis {
  display: flex; justify-content: space-between;
  font: 600 11px var(--font-mono); color: var(--muted-2);
}
.day-sum {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 14px;
}
.day-sum > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day-sum .l { font: 600 11px var(--font-ui); color: var(--muted); white-space: nowrap; }
.day-sum .v { font: 800 20px/1.1 var(--font-display); white-space: nowrap; }
.day-sum .s { font: 600 11px var(--font-ui); color: var(--muted-2); white-space: nowrap; }

.pend-btn {
  border: 0; background: var(--paper); padding: 14px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  color: var(--ink); width: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.pend-btn:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.pend-tile {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pend-n { font: 800 24px var(--font-display); }

.rank-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 90px;
  gap: 12px; align-items: center; padding: 6px 0;
  border: 0; background: transparent; text-align: left; color: var(--ink); width: 100%;
}
.org-row { grid-template-columns: 36px minmax(0, 1fr) 90px; }
.bar6 { height: 6px; border-radius: 9px; background: var(--line-soft); overflow: hidden; }
.bar6 i { display: block; height: 100%; border-radius: 9px; }
.av {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font: 800 13px var(--font-ui); flex: none;
}
.act-row {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }

.on-card {
  text-align: left; border: 0; padding: 22px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.on-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.on-card.dark { background: var(--blue); color: #fff; }
.on-card.lite { background: #fff; color: var(--ink); }

.modal-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(11, 11, 38, .45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: 28px; background: #fff;
  box-shadow: var(--shadow-modal);
  animation: tkPop .25s ease;
}
@keyframes tkPop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

.soon {
  padding: 40px 32px; border-radius: 24px; background: #fff;
  display: flex; flex-direction: column; gap: 12px; max-width: 560px;
}
.soon h2 { margin: 0; font: 800 28px/1.1 var(--font-display); letter-spacing: -.03em; }
.soon p { margin: 0; font: 500 15px/1.5 var(--font-ui); color: var(--muted); }

.acct-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-av {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--blue); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font: 800 22px var(--font-display); flex: none;
}
.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.acct-stat {
  padding: 16px 18px; border-radius: 20px; background: #fff;
  display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.acct-stat:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.acct-stat .v { font: 800 30px/1 var(--font-display); letter-spacing: -.02em; }

.ev-acct { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); border-radius: 14px; padding: 0 8px; margin: 0 -8px; }
.ev-acct-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 12px 0; cursor: pointer;
  border: 0; background: transparent; text-align: left; color: var(--ink); width: 100%;
}
.thumb { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.eds { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px 52px; padding-left: 14px; border-left: 2px solid #ECECF3; }
.eds button {
  border: 0; background: transparent; padding: 7px 0;
  display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); width: 100%;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) {
  .fields { grid-template-columns: 1fr; }
  .day-sum { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 244px; }
}

.toast-ok {
  position: fixed; left: 50%; bottom: 40px; z-index: 80;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 14px; border-radius: 99px;
  background: var(--blue); color: #fff;
  box-shadow: 0 20px 50px rgba(30, 30, 255, .4);
  animation: tkToast 2.8s ease forwards;
  white-space: nowrap;
  transform: translateX(-50%);
}
@keyframes tkToast {
  0% { transform: translate(-50%, 40px); opacity: 0; }
  12% { transform: translate(-50%, 0); opacity: 1; }
  85% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, -10px); opacity: 0; }
}

.sidebar.org { width: 264px; }
.nav-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
  min-height: 0;
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { width: 0; height: 0; }
.sidebar-foot .n { font: 700 13px var(--font-ui); }
.sidebar-foot .r { font: 500 11px var(--font-ui); color: #8A8AB0; }
.sidebar-foot .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #2FBF5B; flex: none; }
.on-card.dark .live { background: var(--lime); }
.on-card .v { font: 800 34px/1 var(--font-display); letter-spacing: -.02em; }
.on-card .more { font: 700 12px var(--font-ui); opacity: .7; }
.on-card .lab { display: flex; align-items: center; gap: 8px; font: 600 14px var(--font-ui); opacity: .85; }

.modal-head {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-x {
  border: 0;
  background: var(--paper);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 700 16px var(--font-ui);
  color: var(--body-2);
  flex: none;
}
.modal-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 18px; }
.onm-sec { display: flex; flex-direction: column; gap: 10px; }
.onm-row { display: flex; flex-direction: column; gap: 5px; padding: 2px 0; }
.onm-bar { height: 6px; border-radius: 9px; background: var(--line-soft); overflow: hidden; }
.onm-bar i { display: block; height: 100%; border-radius: 9px; }
.onm-ini {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--lavender); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font: 800 12px var(--font-ui); flex: none;
}
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2FBF5B;
  box-shadow: 0 0 0 4px rgba(47, 191, 91, .2);
}

.linkish {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  font: 700 13px var(--font-ui);
  color: var(--blue);
}
.ev-acct:hover { background: #FAFAFF; box-shadow: 0 12px 28px rgba(30, 30, 255, .1); transform: translateY(-3px); }
.ev-acct { transition: box-shadow .25s ease, transform .25s ease, background-color .2s; }
.acct-hero .grow { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.acct-hero h2 { margin: 0; font: 800 24px/1 var(--font-display); letter-spacing: -.02em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.pend-list { display: flex; flex-direction: column; gap: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-head .meta { font: 600 12px var(--font-ui); color: var(--muted-2); }
.rank-name { font: 700 14px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name em { font: 500 12px var(--font-ui); color: var(--muted-2); font-style: normal; }
.rank-val { font: 800 15px var(--font-display); text-align: right; }
.act-row .t { font: 600 13px var(--font-ui); }
.act-row .w { font: 600 11px var(--font-mono); color: var(--muted-2); white-space: nowrap; }
.pend-btn .t { font: 700 14px var(--font-ui); }
.pend-btn .s { font: 500 12px var(--font-ui); color: var(--muted); }
.online-head { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.online-head h2 { margin: 0; font: 800 34px/1 var(--font-display); letter-spacing: -.03em; }
.online-head span { font: 500 14px var(--font-ui); color: var(--muted); }
.org-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(245, 245, 250, .94);
  backdrop-filter: blur(10px);
  padding: 16px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.org-header-inner { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; flex-wrap: wrap; }
.col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eds .lbl { white-space: nowrap; min-width: 70px; font: 700 11px var(--font-mono); }
.eds .nm { flex: 1; min-width: 0; font: 600 13px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eds .mt { white-space: nowrap; font: 500 12px var(--font-ui); color: var(--muted-2); }
.eds-toggle { border: 0; background: transparent; padding: 6px 4px; font: 700 12px var(--font-ui); color: var(--blue); display: flex; align-items: center; gap: 4px; }
.chev { display: inline-block; transition: transform .2s; }
.acct-stat .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acct-stat .l { font: 600 13px var(--font-ui); color: var(--muted); }

/* ---------- Fase 2 · Super Admin operativo ---------- */

.st { white-space: nowrap; padding: 4px 10px; border-radius: 99px; font: 700 11px var(--font-ui); display: inline-flex; align-items: center; }
.toast-ok.err { background: var(--danger); box-shadow: 0 20px 50px rgba(208, 16, 95, .35); }

.seg {
  display: flex; gap: 4px; padding: 4px; background: #fff;
  border-radius: 99px; border: 1px solid var(--line); flex-wrap: wrap; align-self: flex-start;
}
.seg button {
  white-space: nowrap; border: 0; padding: 8px 14px; border-radius: 99px;
  font: 700 13px var(--font-ui); background: #fff; color: var(--ink); transition: background .2s, color .2s;
}
.seg button.on { background: var(--blue); color: #fff; }
.seg button .n { margin-left: 6px; opacity: .7; font: 700 11px var(--font-mono); }

.filter-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.input.search { max-width: 300px; border-radius: 99px; background: #fff; }
.input.mono { font-family: var(--font-mono); }
select.input { appearance: auto; background: #fff; }

.back-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--input-border); background: #fff;
  flex: none; font: 800 16px var(--font-ui); color: var(--ink);
  transition: transform .2s var(--spring), box-shadow .2s ease;
}
.back-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }

.btn-icon { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; white-space: nowrap; }
.btn-sm2 { padding: 11px 18px; font-size: 14px; }

.btn-line, .btn-reject, .btn-approve, .btn-ink, .btn-pill, .conf-yes, .btn-limey {
  white-space: nowrap; border-radius: 99px; font: 700 13px var(--font-ui); padding: 11px 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s var(--spring), box-shadow .2s ease, background .25s, color .25s;
}
.btn-line { border: 1.5px solid #D6D6E6; background: #fff; color: var(--ink); }
.btn-reject { border: 1.5px solid #FFB3D6; background: #fff; color: var(--danger-text); }
.btn-approve { border: 0; background: var(--blue); color: #fff; padding: 12px 18px; }
.btn-ink { border: 0; background: var(--ink); color: #fff; padding: 12px 18px; }
.btn-pill { border: 0; padding: 12px 18px; }
.btn-pill.btn-line { border: 1.5px solid #D6D6E6; padding: 11px 16px; }
.btn-limey { border: 0; background: var(--lime); color: var(--ink); }
.conf-yes { border: 0; padding: 13px; font-size: 14px; }
.btn-line:hover:not(:disabled), .btn-reject:hover:not(:disabled), .btn-approve:hover:not(:disabled),
.btn-ink:hover:not(:disabled), .btn-pill:hover:not(:disabled), .conf-yes:hover:not(:disabled), .btn-limey:hover:not(:disabled) {
  transform: translateY(-2px); box-shadow: var(--shadow-btn);
}
.btn-approve:disabled { background: #E4E4EE; color: #8A8AA0; cursor: default; }
.btn-line:disabled, .btn-reject:disabled, .btn-ink:disabled, .conf-yes:disabled, .btn-limey:disabled { opacity: .7; cursor: default; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; padding: 10px; }
.btn-approve .spinner, .btn-ink .spinner, .conf-yes.dk .spinner { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }

.load-card { display: flex; align-items: center; gap: 12px; font: 600 14px var(--font-ui); color: var(--muted); }
.load-card.err { color: var(--danger-text); }
.empty-card { padding: 40px; border-radius: 24px; background: #fff; text-align: center; font: 600 14px var(--font-ui); color: var(--muted-2); }
.empty-inline { padding: 14px; border-radius: 14px; background: var(--paper); font: 600 13px var(--font-ui); color: var(--muted-2); }
.note { font: 500 12px var(--font-ui); color: var(--muted-2); }
.err-line { font: 600 13px var(--font-ui); color: var(--danger-text); min-height: 0; }
.err-line:empty { display: none; }

/* Organizadores */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.org-card {
  text-align: left; border: 0; padding: 20px; border-radius: 24px; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .25s ease, transform .25s ease;
  animation: tkIn .3s ease;
}
.org-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.org-card-top { display: flex; gap: 12px; align-items: center; width: 100%; }
.av48 {
  width: 48px; height: 48px; border-radius: 16px; flex: none;
  display: flex; align-items: center; justify-content: center; font: 800 17px var(--font-ui);
}
.org-card-name { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.org-card-name .nm { font: 800 17px/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-card-name .mt { font: 500 12px var(--font-ui); color: var(--muted); }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.mini3 > span { padding: 10px; border-radius: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini3 .l { font: 600 11px var(--font-ui); color: var(--muted); }
.mini3 .v { font: 800 16px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini3.sm > span { padding: 9px; border-radius: 12px; }
.mini3.sm .l { font-size: 10px; }
.mini3.sm .v { font: 800 13px var(--font-ui); }

.org-head { padding: 20px; border-radius: 26px; background: #fff; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.av64 {
  width: 64px; height: 64px; border-radius: 20px; flex: none;
  display: flex; align-items: center; justify-content: center; font: 800 24px var(--font-display);
}
.org-head-txt { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.org-head-txt .mt { font: 500 13px var(--font-ui); color: var(--muted); }
.org-head-act { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips-row .nm { font: 800 22px/1.1 var(--font-display); }
.code { white-space: nowrap; font: 600 11px var(--font-mono); color: var(--muted-2); }
.chips-row .code { font-size: 12px; }

.evr {
  background: var(--paper); padding: 14px 16px; border-radius: 16px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 110px; gap: 16px; align-items: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.evr:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.evr-a, .evr-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.evr .nm { font: 700 14px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evr .mt { font: 500 12px var(--font-ui); color: var(--muted); }
.evr .bar { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.evr .bar i { display: block; height: 100%; }
.evr-c { font: 800 16px var(--font-display); text-align: right; }

.xf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.xf { padding: 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .25s ease, transform .25s ease; }
.xf:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.xf .l { font: 600 12px var(--font-ui); opacity: .75; }
.xf .v { font: 800 24px/1 var(--font-display); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.kv .l { font: 600 13px var(--font-ui); color: var(--muted); }
.kv .v { font: 700 13px var(--font-ui); text-align: right; }

.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.doc-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: var(--paper);
}
.doc-row .tile { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.doc-row .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-row .nm { font: 700 13px var(--font-ui); }
.doc-row .mt { font: 500 12px var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Solicitudes › Eventos */
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.req-card {
  border-radius: 24px; background: #fff; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease; animation: tkIn .3s ease;
}
.req-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.req-thumb { height: 110px; padding: 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.req-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.req-title { display: flex; flex-direction: column; gap: 3px; }
.req-title .nm { font: 800 18px/1.1 var(--font-display); }
.req-title .nm.big { font-size: 22px; line-height: 1.15; }
.req-title .mt { font: 500 13px var(--font-ui); color: var(--muted); }
.req-acts { display: flex; gap: 8px; }
.req-acts .btn-reject { flex: 1; }
.req-acts .btn-approve { flex: 1.4; padding: 11px; }

.modal.wide { max-width: 900px; display: flex; flex-direction: column; }
.evm-head { padding: 18px 22px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.evm-thumb { width: 52px; height: 52px; border-radius: 16px; flex: none; }
.evm-title { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 200px; }
.evm-title .mt { font: 500 13px var(--font-ui); color: var(--muted); }
.evm-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.evm-body .input[readonly] { background: #FAFAFD; border-color: var(--line); }
.prev-fix { padding: 14px; border-radius: 16px; background: var(--lavender); display: flex; flex-direction: column; gap: 8px; color: var(--blue); }
.prev-fix .t { font: 700 12px var(--font-ui); }
.prev-fix .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.prev-fix .msg { font: 500 13px/1.45 var(--font-ui); color: var(--ink); }
.evm-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; background: #FAFAFD; }
.evm-foot .t { font: 700 14px var(--font-ui); }
.evm-foot textarea, .inc-detail textarea { font-weight: 500; resize: vertical; }
.evm-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-opt {
  white-space: nowrap; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 13px; border-radius: 99px; font: 700 12px var(--font-ui);
  transition: transform .2s var(--spring), box-shadow .2s ease, background .2s, color .2s, border-color .2s;
}
.pill-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.pill-opt.on { border-color: var(--blue); background: var(--blue); color: #fff; }

/* Incidencias */
.inc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.inc-list { gap: 10px; }
.inc-list .seg { align-self: stretch; }
.inc-row {
  border: 2px solid transparent; background: #fff; padding: 14px; border-radius: 18px;
  display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--ink);
  transition: box-shadow .25s ease, transform .25s ease, border-color .2s;
}
.inc-row:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.inc-row.on { border-color: var(--blue); }
.inc-row .r1, .inc-row .r3 { display: flex; gap: 8px; align-items: center; width: 100%; }
.inc-row .pdot { width: 8px; height: 8px; border-radius: 50%; }
.inc-row .subj { font: 700 14px var(--font-ui); }
.inc-row .mt { font: 500 12px var(--font-ui); color: var(--muted); flex: 1; }
.inc-row .asg { white-space: nowrap; padding: 3px 8px; border-radius: 99px; font: 700 10px var(--font-ui); }
.inc-detail { align-self: start; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; animation: tkIn .3s ease; }
.bubble.them { align-self: flex-start; background: var(--paper); color: var(--ink); }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; }
.bubble .who { font: 700 11px var(--font-ui); opacity: .75; }
.bubble .txt { font: 500 14px/1.45 var(--font-ui); white-space: pre-wrap; }
.inc-ctrl { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #FAFAFD; }
.ctrl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctrl-row .lab { font: 700 12px var(--font-ui); color: var(--body-2); min-width: 70px; }
.tag-btn {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff;
  padding: 5px 12px 5px 5px; border-radius: 99px; font: 800 13px var(--font-ui); color: var(--blue);
  transition: transform .2s var(--spring), box-shadow .2s ease;
}
.tag-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.tag-pop {
  position: absolute; left: 78px; top: calc(100% + 6px); z-index: 8; width: 270px; background: #fff;
  border-radius: 16px; box-shadow: 0 16px 40px rgba(11, 11, 38, .18); border: 1px solid #ECECF3;
  padding: 6px; display: flex; flex-direction: column; gap: 2px; animation: tkPop .18s ease;
}
.tag-opt {
  border: 0; background: #fff; padding: 9px 10px; border-radius: 10px; text-align: left;
  display: flex; align-items: center; gap: 9px; font: 600 13px var(--font-ui); color: var(--ink); transition: background .15s;
}
.tag-opt:hover, .tag-opt.on { background: var(--paper); }
.tag-opt .d { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tag-opt .mk { font: 800 12px var(--font-ui); color: var(--blue); }
.inc-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }

/* Modales de formulario y confirmación */
.modal.nopop { animation: none; }
.modal.form-modal { max-width: 480px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal.conf { max-width: 420px; padding: 26px; display: flex; flex-direction: column; gap: 12px; border-radius: 26px; }
.modal-scrim.top { z-index: 60; background: rgba(11, 11, 38, .5); backdrop-filter: none; }
.fm-title { font: 800 26px/1.05 var(--font-display); letter-spacing: -.02em; }
.modal.conf .fm-title { font-size: 24px; line-height: 1.1; }
.fm-sub { font: 500 14px/1.5 var(--font-ui); color: var(--muted); }
.conf-body { font: 500 14px/1.5 var(--font-ui); color: var(--body-2); }
.conf-ic {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font: 800 22px var(--font-ui);
}
.type-row { display: flex; gap: 6px; }
.type-opt {
  flex: 1; border: 2px solid var(--line); background: #fff; padding: 12px; border-radius: 16px;
  font: 700 14px var(--font-ui); color: var(--ink);
  transition: box-shadow .25s ease, transform .25s ease, border-color .2s, background .2s;
}
.type-opt:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.type-opt.on { border-color: var(--blue); background: var(--lavender); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm-acts { display: flex; gap: 10px; margin-top: 4px; }
.fm-acts .btn-line, .fm-acts .btn-approve { padding: 13px; font-size: 14px; }
.grow1 { flex: 1; }
.grow14 { flex: 1.4; }
.spinner.dark { border-color: rgba(11, 11, 38, .2); border-top-color: var(--blue); }

.modal.absorb { animation: tkAbsorb .6s cubic-bezier(.6, 0, .8, .4) forwards; transform-origin: 50% 90%; }
.modal.crumple { animation: tkCrumple .8s cubic-bezier(.5, 0, .6, .4) forwards; }
@keyframes tkAbsorb {
  0% { transform: none; opacity: 1; filter: none; }
  70% { opacity: .9; }
  100% { transform: scale(.05); opacity: 0; filter: blur(3px); }
}
@keyframes tkCrumple {
  0% { transform: none; clip-path: inset(0 round 26px); opacity: 1; }
  24% { transform: scale(.96) rotate(-.6deg); clip-path: inset(3% round 30px); }
  50% { transform: scale(.94) rotate(-.6deg); clip-path: inset(5% round 40px); }
  66% { transform: scale(.55, .5) rotate(5deg); clip-path: inset(12% round 60px); }
  82% { transform: scale(.26) rotate(-7deg); clip-path: inset(22% round 50%); }
  100% { transform: scale(.13) rotate(10deg); clip-path: inset(26% round 50%); opacity: 0; }
}
@keyframes tkIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 720px) {
  .evr { grid-template-columns: minmax(0, 1fr) 90px; }
  .evr-b { display: none; }
  .two { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .doc-row .st { display: none; }
}

/* ---------- Móvil (patrón Transportes Gámez: menú lateral deslizable + barra superior) ---------- */

.menu-btn {
  display: none;
  width: 40px; height: 40px; flex: none;
  border: 1.5px solid var(--input-border); border-radius: 12px; background: #fff; color: var(--ink);
  align-items: center; justify-content: center;
  transition: transform .2s var(--spring), box-shadow .2s ease;
}
.menu-btn:active { transform: scale(.94); }
.m-top { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 860px) {
  .shell { position: relative; flex-direction: column; }
  .menu-btn { display: inline-flex; }

  .sidebar, .sidebar.org {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    width: min(280px, 86vw); height: 100dvh;
    transform: translateX(-105%);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .shell.nav-open .sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(11, 11, 38, .45); }
  .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 25;
    background: rgba(11, 11, 38, .45); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .shell.nav-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-lock { overflow: hidden; }

  .m-top {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 20;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    background: rgba(245, 245, 250, .94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .m-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
  .m-title { font: 800 17px/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-av { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }

  .col-main { width: 100%; }
  .main { padding: 16px 14px 40px; gap: 16px; max-width: 100%; }
  .org-header { padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0; }
  .org-header-inner { padding-bottom: 12px; gap: 10px; flex-wrap: nowrap; }
  .org-header h1 { font-size: 20px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .org-header .kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

  .page-head h1 { font-size: 28px; }
  .stage-head { align-items: stretch; }
  .stage-head > .btn { width: 100%; justify-content: center; }
  .online-head h2 { font-size: 26px; }

  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px 12px; border-radius: 18px; }
  .kpi .v { font-size: 22px; word-break: break-word; }
  .kpi .row { flex-wrap: wrap; }
  .card { padding: 16px; border-radius: 20px; }
  .chart { min-height: 140px; }

  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; position: relative; }
  .card-head { flex-wrap: wrap; }
  .seg::-webkit-scrollbar { display: none; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .input.search { max-width: none; }
  .input, select.input, textarea.input { font-size: 16px; }

  .org-grid, .req-grid { grid-template-columns: minmax(0, 1fr); }
  .org-head { padding: 16px; border-radius: 22px; }
  .org-head-act { width: 100%; }
  .org-head-act > * { flex: 1; }
  .chips-row .nm { font-size: 19px; }
  .req-acts { flex-wrap: wrap; }
  .inc-row .r1 { flex-wrap: wrap; }
  .tag-pop { left: 0; width: min(270px, 100%); }
  .inc-acts > .btn-line, .inc-acts > .btn-approve { flex: 1; }
  .evm-acts > * { flex: 1 1 auto; }
  .evm-acts > span[style*="flex:1"] { display: none; }

  .modal-scrim { align-items: flex-end; padding: 0; }
  .modal, .modal.wide, .modal.form-modal, .modal.conf {
    max-width: 100%; max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    animation: tkSheet .3s cubic-bezier(.2, .8, .2, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .modal.form-modal, .modal.conf { padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal.nopop { animation: none; }
  .modal.absorb { transform-origin: 50% 100%; }
  .modal-head, .evm-head { padding: 16px; }
  .modal-body, .evm-body { padding: 14px 16px 18px; }
  .evm-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .fm-title { font-size: 22px; }

  .toast-ok {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px); white-space: normal; padding: 12px 18px 12px 12px;
  }
  .acct-hero > .btn { width: 100%; }
}

@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi .v { font-size: 26px; }
  .mini3 { gap: 6px; }
  .mini3 > span { padding: 8px; }
  .mini3 .v { font-size: 14px; }
  .day-sum { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 26px; }
}

@media (hover: none) {
  .card:hover, .kpi:hover, .org-card:hover, .req-card:hover, .inc-row:hover, .evr:hover, .xf:hover,
  .on-card:hover, .acct-stat:hover, .ev-acct:hover, .type-opt:hover, .ticket-cut:hover { transform: none; box-shadow: none; }
  .tk-tip { display: none; }
}

@keyframes tkSheet { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Fase 3 · Organizador: eventos y ventas ---------- */

.kick { font: 700 11px var(--font-mono); letter-spacing: .1em; color: var(--blue); }
.mu { color: var(--muted); font: 500 13px var(--font-ui); }
.mono { font-family: var(--font-mono) !important; font-size: 12px !important; }
.b { font-weight: 700 !important; }
.r { text-align: right; }
.fm-err { font: 600 13px var(--font-ui); color: var(--danger-text); }
.seg.ink button.on { background: var(--ink); color: #fff; }
.all-sum { font: 600 14px var(--font-ui); color: var(--body-2); }

.cat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
  white-space: nowrap; border: 1.5px solid var(--input-border); background: #fff; color: var(--ink);
  padding: 8px 14px 8px 10px; border-radius: 99px; font: 700 13px var(--font-ui);
  display: inline-flex; align-items: center; gap: 7px;
  transition: transform .18s var(--spring), box-shadow .2s ease, background .2s, color .2s;
}
.cat-pill:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30, 30, 255, .2); }
.cat-pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ev-card {
  text-align: left; background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
  color: var(--ink); cursor: pointer; outline: none;
  transition: transform .18s var(--spring), box-shadow .2s ease;
}
.ev-card:hover, .ev-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30, 30, 255, .16); }
.ev-card-thumb { height: 150px; position: relative; }
.ev-cat {
  position: absolute; top: 12px; left: 12px; white-space: nowrap; padding: 5px 10px 5px 8px; border-radius: 99px;
  font: 700 12px var(--font-ui); background: #fff; color: var(--ink); display: flex; align-items: center; gap: 6px;
}
.ev-st { position: absolute; top: 12px; right: 12px; }
.ev-st .st { font-size: 12px; }
.ev-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ev-card-name { font: 800 20px/1.15 var(--font-display); letter-spacing: -.01em; }
.ev-card-meta { font: 500 13px var(--font-ui); color: var(--muted); }
.ev-bar { height: 6px; border-radius: 9px; background: var(--line-soft); overflow: hidden; margin-top: 4px; }
.ev-bar i { display: block; height: 100%; background: var(--blue); }
.ev-card-foot { display: flex; justify-content: space-between; gap: 8px; font: 600 12px var(--font-ui); color: var(--body-2); }
.ev-card-foot .net { font: 700 12px var(--font-mono); color: var(--ink); }
.ed-chip {
  align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 99px;
  background: var(--lavender); color: var(--blue); font: 700 11px var(--font-ui); cursor: pointer;
}
.ed-chip .num { padding: 2px 7px; border-radius: 99px; background: var(--blue); color: #fff; font: 700 10px var(--font-mono); }
.ed-list { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; background: var(--paper); cursor: default; }
.ed-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.ed-item.cur { background: #fff; }
.ed-item .lbl { white-space: nowrap; min-width: 62px; font: 700 11px var(--font-mono); color: var(--blue); }
.ed-item .nm { flex: 1; min-width: 0; font: 600 12px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-item .t { white-space: nowrap; font: 600 11px var(--font-ui); color: var(--muted-2); }
.ev-create {
  border: 2px dashed #C8C8E0; background: transparent; border-radius: 24px; min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--blue);
  font: 700 15px var(--font-ui); transition: transform .18s var(--spring), box-shadow .2s ease;
}
.ev-create:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30, 30, 255, .2); }
.ev-create .plus { width: 52px; height: 52px; border-radius: 16px; background: var(--lavender); display: flex; align-items: center; justify-content: center; font: 800 28px var(--font-ui); }
.ev-mini button.btn-create-ev { cursor: pointer; }

/* Encabezado de evento */
.org-header.ev { gap: 14px; }
.evh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.evh .back-btn { font-size: 20px; }
.evh-thumb { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.evh-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.evh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.evh-name { font: 800 24px/1.1 var(--font-display); letter-spacing: -.02em; }
.evh-row .st { font-size: 12px; }
.evh-cat {
  white-space: nowrap; padding: 4px 10px 4px 8px; border-radius: 99px; font: 700 12px var(--font-ui);
  background: #fff; border: 1px solid var(--line); display: flex; align-items: center; gap: 5px;
}
.evh-meta { font: 500 13px var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evh-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.evh-acts .btn-pill { font-size: 14px; padding: 10px 16px; }
.evt-tabs { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.evt-tabs::-webkit-scrollbar { display: none; }
.evt-group { display: flex; align-items: center; gap: 2px; flex: none; }
.evt-lbl { font: 700 10px var(--font-mono); letter-spacing: .08em; color: var(--muted-2); padding-right: 6px; }
.evt-tab {
  white-space: nowrap; border: 0; padding: 8px 12px; border-radius: 99px; font: 700 13px var(--font-ui);
  background: transparent; color: var(--body-2); transition: transform .18s var(--spring), box-shadow .2s ease, background .2s;
}
.evt-tab:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30, 30, 255, .2); }
.evt-tab.on { background: var(--ink); color: #fff; }
.evt-tab.off { color: #B8B8C8; cursor: default; }

/* Secciones de desempeño */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-h1 { margin: 0; font: 800 30px/1 var(--font-display) !important; letter-spacing: -.03em; }
.back-link { margin-bottom: 2px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pk-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.pk-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pc {
  padding: 22px; border-radius: 24px; background: #fff; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  transition: box-shadow .25s ease, transform .25s ease;
}
.pc:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.pc.lg { padding: 24px; gap: 16px; }
.pc.tight { gap: 4px; }
.pc.scroll-x { overflow-x: auto; gap: 12px; }
.pc-l { font: 600 13px var(--font-ui); color: var(--muted); }
.pc-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-v .v { font: 800 34px/1 var(--font-display); }
.pc-v .t { font: 700 12px var(--font-ui); }
.pc-f { font: 600 11px var(--font-ui); color: var(--muted-2); }
.pc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-h .sub { font: 600 12px var(--font-ui); color: var(--muted); }
.ttl { font: 700 17px var(--font-ui); }
.ttl.mb { margin-bottom: 10px; }
.ttl.mt { margin: 22px 0 10px; }

.mbars { display: flex; align-items: flex-end; gap: 2px; height: 64px; }
.mbars > div { flex: 1; border-radius: 3px 3px 0 0; min-width: 0; }
.mbars.g6 { gap: 6px; }
.mbars.r6 > div { border-radius: 6px 6px 2px 2px; }
.mbars.tx .col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 0; }
.mbars.tx .col > div { width: 100%; border-radius: 6px 6px 2px 2px; }
.tx-l { display: flex; gap: 6px; }
.tx-l span { flex: 1; text-align: center; font: 700 11px var(--font-ui); color: var(--muted); }
.donut-row { display: flex; align-items: center; gap: 14px; }
.donut { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.donut span { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font: 800 16px var(--font-display); }
.donut-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.donut-l .nm { font: 800 17px/1.1 var(--font-display); }
.donut-l .it { display: flex; align-items: center; gap: 6px; font: 600 12px var(--font-ui); }
.sq { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.donut-l .sq { width: 8px; height: 8px; border-radius: 2px; }

.daily { display: grid; grid-template-columns: 32px 1fr; gap: 8px; }
.yax { display: flex; flex-direction: column; justify-content: space-between; font: 600 10px var(--font-mono); color: var(--muted-2); height: 190px; text-align: right; }
.dbars {
  display: flex; align-items: flex-end; gap: 4px; height: 190px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px); background-size: 100% 95px; min-width: 0;
}
.dbars > div { flex: 1; border-radius: 5px 5px 2px 2px; min-width: 0; }
.xax { display: flex; justify-content: space-between; font: 600 11px var(--font-mono); color: var(--muted-2); padding-left: 40px; }
.so { gap: 18px; }
.so-big { display: flex; flex-direction: column; gap: 4px; }
.so-big .v { font: 800 44px/1 var(--font-display); letter-spacing: -.03em; }
.so-big .s { font: 600 13px var(--font-ui); color: var(--muted); }
.so-bar { display: flex; flex-direction: column; gap: 8px; }
.pbar { height: 8px; border-radius: 9px; background: var(--line-soft); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 9px; }
.so-lbl { display: flex; justify-content: space-between; font: 600 11px var(--font-mono); color: var(--muted-2); }
.pace { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.pace > div { display: flex; flex-direction: column; gap: 2px; }
.pace .l { font: 600 12px var(--font-ui); color: var(--muted); }
.pace .v { font: 800 22px var(--font-display); }
.so-note { font: 500 13px/1.5 var(--font-ui); color: var(--muted); }

.stack14 { display: flex; height: 14px; border-radius: 9px; overflow: hidden; }
.stack8 { display: flex; height: 8px; border-radius: 9px; overflow: hidden; gap: 3px; }
.m-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.m-legend > div { display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-ui); cursor: default; min-width: 0; }
.m-legend .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-legend .v { font: 700 12px var(--font-mono); }
.tx-big { display: flex; gap: 10px; align-items: flex-end; height: 110px; }
.tx-big .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.tx-big .col > div { width: 100%; border-radius: 8px; }
.tx-big .p { font: 700 12px var(--font-mono); }
.tx-big .l { font: 700 12px var(--font-ui); color: var(--muted); white-space: nowrap; }
.ch-list { display: flex; flex-direction: column; }
.ch-list > div { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.ch-list .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ch-list .nm { font: 600 14px var(--font-ui); flex: 1; }
.ch-list .q { font: 600 12px var(--font-mono); color: var(--muted); }
.ch-list .p { font: 800 17px var(--font-display); min-width: 48px; text-align: right; }
.zs-wrap { display: flex; flex-direction: column; gap: 6px; }
.zs-l { font: 700 12px var(--font-ui); color: var(--body-2); }
.zone-share { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; }
.zone-share > div { display: flex; align-items: center; padding: 0 10px; font: 800 12px var(--font-ui); white-space: nowrap; overflow: hidden; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.zone-card { padding: 16px; border-radius: 18px; border: 1.5px solid #ECECF3; display: flex; flex-direction: column; gap: 10px; }
.zone-card .zh { display: flex; align-items: center; gap: 8px; }
.zone-card .sw { width: 14px; height: 14px; border-radius: 4px; }
.zone-card .nm { font: 700 15px var(--font-ui); flex: 1; }
.zone-card .pr { font: 600 12px var(--font-mono); color: var(--muted); }
.zone-card .rv { font: 800 26px/1 var(--font-display); }
.zone-card .lb { font: 600 12px var(--font-ui); color: var(--muted); }

.draft-card { padding: 40px; border-radius: 28px; background: #fff; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.draft-card .big { font: 800 30px/1.1 var(--font-display); letter-spacing: -.02em; }
.draft-card .sub { font: 500 15px var(--font-ui); color: var(--body-2); }
.draft-card .btn-pill { font-size: 14px; padding: 12px 20px; }
.sec-head .btn-pill { font-size: 14px; padding: 12px 20px; }

/* Conversiones */
.fn-row { display: grid; grid-template-columns: minmax(120px, 190px) 64px minmax(0, 1fr); gap: 10px; align-items: center; font: 600 14px var(--font-ui); cursor: default; }
.fn-row.hd { font: 700 12px var(--font-ui); color: var(--muted); }
.fn-row .u { font: 600 12px var(--font-mono); }
.fn-bar { height: 30px; min-width: 56px; border-radius: 8px; display: flex; align-items: center; padding: 0 10px; font: 800 13px var(--font-ui); color: #fff; }
.conv-pink { padding: 24px; border-radius: 24px; background: var(--pink); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.conv-pink .v { font: 800 60px/1 var(--font-display); letter-spacing: -.03em; }
.conv-pink .l { font: 700 16px/1.25 var(--font-ui); }
.media-dark { padding: 24px; border-radius: 24px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.md-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; }
.md-row .rk { font: 700 12px var(--font-mono); color: #8A8AB0; }
.md-c { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.md-c .nm { font: 700 14px var(--font-ui); }
.md-bar { height: 6px; border-radius: 9px; background: #1E1E48; overflow: hidden; }
.md-bar i { display: block; height: 100%; }
.md-row .v { font: 700 12px var(--font-mono); }
.media-dark .mu { color: #8A8AB0; }
.lk-row {
  display: grid; grid-template-columns: 1.2fr 1.2fr 1.1fr 1fr 90px 80px 80px 130px; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid #ECECF3; font: 600 13px var(--font-ui); min-width: 900px;
}
.lk-row.hd { border: 0; padding: 0 14px; font: 700 12px var(--font-ui); color: var(--muted); }
.lk-row.on { border-color: var(--blue); }
.lk-row .mu { font-size: 13px; }
.lk-copy {
  border: 0; padding: 8px 12px; border-radius: 99px; font: 700 12px var(--font-ui); color: var(--ink);
  transition: transform .18s var(--spring), box-shadow .2s ease, background .2s;
}
.lk-copy:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30, 30, 255, .2); }

.lock-wrap { position: relative; }
.lock-body { display: flex; flex-direction: column; gap: 20px; }
.lock-body.locked { filter: blur(6px); pointer-events: none; user-select: none; }
.lock-over { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 60px 14px 0; }
.lock-card {
  max-width: 440px; background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 20px 50px rgba(11, 11, 38, .18);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.lock-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--lavender); display: flex; align-items: center; justify-content: center; }
.lock-card .t { font: 800 24px/1.1 var(--font-display); letter-spacing: -.02em; }
.lock-card .s { font: 500 14px/1.5 var(--font-ui); color: var(--body-2); }
.lock-card .a { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lock-card .btn-limey { font-size: 14px; padding: 12px 20px; }
.hm-head { display: flex; flex-direction: column; gap: 4px; }
.hm-t { font: 800 24px/1.1 var(--font-display); letter-spacing: -.02em; }
.hm-row { display: grid; grid-template-columns: 48px repeat(7, 1fr); gap: 4px; align-items: center; }
.hm-row.hd span { font: 700 11px var(--font-ui); color: var(--muted); text-align: center; }
.hm-row .sl { font: 600 11px var(--font-mono); color: var(--muted-2); }
.hm-row > div { height: 22px; border-radius: 6px; }
.tip-box { padding: 12px 14px; border-radius: 14px; background: var(--lavender); font: 600 13px/1.45 var(--font-ui); color: var(--blue); }

/* Reporte final */
.rep-dl { display: flex; gap: 8px; flex-wrap: wrap; }
.rep-dl .btn-pill { font-size: 14px; padding: 11px 18px; }
.rep-empty {
  padding: 40px; border-radius: 28px; background: #fff; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: center;
}
.rep-copy { display: flex; flex-direction: column; gap: 14px; }
.rep-copy .big { font: 800 30px/1.1 var(--font-display); letter-spacing: -.02em; }
.rep-copy .sub { font: 500 15px/1.55 var(--font-ui); color: var(--body-2); }
.rep-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.big-btn { font-size: 15px !important; padding: 14px 24px !important; }
.btn-limey:disabled { opacity: .55; }
.rep-ticket { position: relative; height: 220px; border-radius: 24px; background: var(--blue); display: flex; }
.rep-ticket .tk-main { flex: 1; padding: 24px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.rep-ticket .k { font: 700 11px var(--font-mono); color: #C8C8FF; letter-spacing: .1em; }
.rep-ticket .v { font: 800 44px/1 var(--font-display); letter-spacing: -.03em; }
.rep-ticket .s { font: 600 13px var(--font-ui); color: #C8C8FF; }
.rep-ticket .cut { width: 0; border-left: 2px dashed #7070FF; margin: 18px 0; }
.rep-ticket .stub { width: 92px; display: flex; align-items: center; justify-content: center; }
.rep-ticket .stub span { font: 800 15px var(--font-ui); color: var(--lime); transform: rotate(-90deg); white-space: nowrap; }
.rep-ticket .hole { position: absolute; right: 82px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.rep-ticket .hole.t { top: -11px; }
.rep-ticket .hole.b { bottom: -11px; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.rp-kpis .pc { padding: 20px; border-radius: 22px; gap: 6px; }
.rp-kpis .rv { font: 800 30px/1 var(--font-display); }
.rp-row { display: grid; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font: 600 14px var(--font-ui); }
.rp-row.r4 { grid-template-columns: 14px 1fr 70px 110px; }
.rp-row.r4b { grid-template-columns: 14px 1fr 60px 120px; }
.rp-row.r3 { grid-template-columns: 1fr 90px 110px; }
.rp-row.r2 { grid-template-columns: 1fr 130px; }
.po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.po { padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; }
.po .d { font: 600 12px var(--font-ui); color: var(--muted); }
.po .a { font: 800 20px var(--font-display); }
.po .s { font: 700 12px var(--font-ui); }
.tx-f { display: flex; gap: 6px; flex-wrap: wrap; }
.tx-f button { border: 0; padding: 7px 12px; border-radius: 99px; font: 700 12px var(--font-ui); background: var(--paper); color: var(--body-2); transition: transform .18s var(--spring), background .2s; }
.tx-f button:hover { transform: translateY(-2px); }
.tx-f button.on { background: var(--ink); color: #fff; }
.tx-f .n { opacity: .6; font: 700 10px var(--font-mono); }
.tx-row {
  display: grid; grid-template-columns: 150px 150px 1fr 170px 110px 110px; gap: 12px; align-items: center;
  padding: 11px 4px; border-top: 1px solid var(--line-soft); font: 600 13px var(--font-ui); min-width: 820px; border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
}
.tx-row:hover:not(.hd) { background: #F7F7FF; transform: translateY(-2px); }
.tx-row.hd { border-top: 0; padding: 0 4px; font: 700 12px var(--font-ui); color: var(--muted); }

@media (max-width: 860px) {
  .org-header.ev { gap: 8px; }
  .evh { gap: 10px; flex-wrap: wrap; padding-bottom: 2px; }
  .evh .back-btn { width: 36px; height: 36px; }
  .evh-thumb { width: 36px; height: 36px; border-radius: 11px; }
  .evh-title { flex: 1 1 0; }
  .evh-name { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .evh-row { gap: 6px; flex-wrap: wrap; }
  .evh-row .st, .evh-cat { font-size: 11px; padding: 3px 8px; }
  .evh-cat svg { width: 12px; height: 12px; }
  .evh-acts { width: 100%; flex-wrap: nowrap; }
  .evh-acts .btn-pill { flex: 1; font-size: 13px; padding: 9px 10px; }
  .evt-tabs { padding-bottom: 8px; }

  .sec-h1 { font-size: 24px !important; }
  .sec-head > .btn-pill, .sec-head .rep-dl { width: 100%; }
  .sec-head .rep-dl .btn-pill { flex: 1; }
  .sec-head > .btn-pill { justify-content: center; }
  .pk-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pc, .pc.lg { padding: 16px; border-radius: 20px; }
  .pc-v .v { font-size: 28px; }
  .so-big .v { font-size: 32px; }
  .daily { grid-template-columns: 26px 1fr; gap: 6px; }
  .dbars { gap: 2px; height: 150px; background-size: 100% 75px; }
  .yax { height: 150px; }
  .xax { padding-left: 32px; font-size: 10px; }
  .m-legend { grid-template-columns: minmax(0, 1fr); }
  .zone-grid { grid-template-columns: minmax(0, 1fr); }
  .fn-row { grid-template-columns: minmax(0, 1fr) 60px; row-gap: 6px; }
  .fn-row .fn-bar { grid-column: 1 / -1; }
  .fn-row.hd span:last-child { display: none; }
  .conv-pink .v { font-size: 44px; }
  .lock-over { padding-top: 20px; }
  .lock-card { padding: 20px; }
  .lock-card .t { font-size: 20px; }
  .hm-t { font-size: 20px; }
  .hm-row { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); gap: 3px; }
  .hm-row .sl { font-size: 10px; }
  .draft-card, .rep-empty { padding: 22px; border-radius: 22px; }
  .draft-card .big, .rep-copy .big { font-size: 22px; }
  .rep-ticket { height: 180px; }
  .rep-ticket .v { font-size: 32px; }
  .rep-ticket .stub { width: 64px; }
  .rep-ticket .hole { right: 54px; }
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rp-kpis .pc { padding: 14px 12px; border-radius: 18px; }
  .rp-kpis .rv { font-size: 20px; word-break: break-word; }
  .rp-row.r4 { grid-template-columns: 12px minmax(0, 1fr) 54px 92px; gap: 8px; font-size: 13px; }
  .rp-row.r4b { grid-template-columns: 12px minmax(0, 1fr) 40px 100px; gap: 8px; font-size: 13px; }
  .rp-row.r3 { grid-template-columns: minmax(0, 1fr) 92px 82px; gap: 8px; font-size: 13px; }
  .rp-row.r2 { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; font-size: 13px; }
  .po-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po .a { font-size: 16px; }
  .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .ev-create { min-height: 140px; }
}

@media (hover: none) {
  .pc:hover, .ev-card:hover, .cat-pill:hover, .tx-row:hover:not(.hd) { transform: none; box-shadow: none; }
}
