/* Night Life · estilos */
:root {
  --bg: #0D0E12; --bg2: #0F1015; --s1: #13151A; --s2: #16181E; --s3: #1C1F27; --s4: #262A34;
  --line: #22252E; --line2: #2E3340; --tx: #EDEEF2; --tx2: #A3A9B6; --tx3: #8A90A0;
  --acc: #D6FF4F; --acc-tx: #0D0E12;
  --red: #FF6B6B; --red-tx: #FF8A8A; --red-soft: #FFB3B3; --green: #6EE7A0; --amber: #FFC870;
  --r: 12px; --tabs-h: 56px;
  --f-head: 'Space Grotesk', Inter, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 14px/1.4 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--acc); }
h1, h2, h3 { margin: 0; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.head { font-family: var(--f-head); letter-spacing: -0.01em; }
.tx2 { color: var(--tx2); } .tx3 { color: var(--tx3); } .red { color: var(--red-tx); } .amber { color: var(--amber); } .green { color: var(--green); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--tx); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover { background: var(--s3); }
.btn.prim { background: var(--acc); color: var(--acc-tx); border: 0; font-weight: 600; }
.btn.prim:hover { filter: brightness(1.06); }
.btn.peligro { color: var(--red-tx); border-color: rgba(255,107,107,.4); }
.btn.peq { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.icono { width: 44px; padding: 0; }
.btn svg { flex: none; }
.chip { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--tx2); font-size: 13px; }
.chip.on { border-color: #3A4152; background: var(--s3); color: var(--tx); font-weight: 500; }

/* ---------- Pastillas de estado ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.lead { color: #D3B8FF; background: rgba(170,130,255,.14); }
.pill.negociando { color: var(--amber); background: rgba(255,181,71,.13); }
.pill.confirmado { color: #A9C1FF; background: rgba(126,162,255,.15); }
.pill.hecho { color: #C3C8D2; background: rgba(163,169,182,.14); }
.pill.cancelado { color: var(--tx3); background: transparent; border: 1px solid var(--line2); text-decoration: line-through; }
.pill.sincobrar { color: var(--red-tx); background: rgba(255,107,107,.15); }
.pill.cobrado { color: var(--green); background: rgba(74,222,128,.12); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; background: var(--s2); border: 1px solid var(--line2); border-radius: 18px; padding: 28px; }
.marca { display: flex; align-items: center; gap: 10px; }
.marca .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--acc); display: flex; align-items: center; justify-content: center; }
.marca b { font-family: var(--f-head); font-size: 18px; font-weight: 700; }
.error { color: var(--red-tx); font-size: 13px; min-height: 1em; }
.aviso-demo { position: fixed; left: 12px; bottom: calc(var(--tabs-h) + 10px); z-index: 60; background: var(--acc); color: var(--acc-tx); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; pointer-events: none; }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tx2); min-width: 0; }
.campo input, .campo select, .campo textarea { height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--tx); font-size: 14px; padding: 0 12px; width: 100%; }
.campo textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--acc); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tx); min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--acc); }
.rejilla2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rejilla3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 13px; color: var(--tx2); margin-bottom: 8px; padding: 0; }
.djpick { display: flex; flex-wrap: wrap; gap: 8px; }
.djpick button { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: #C3C8D2; display: flex; align-items: center; gap: 8px; }
.djpick button[aria-pressed="true"] { border-width: 2px; color: var(--tx); font-weight: 600; }
.sugerencias { background: var(--s3); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.sugerencias button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 0; background: transparent; text-align: left; }
.sugerencias button:hover, .sugerencias button.on { background: var(--s4); }
.sugerencias .crear { color: var(--acc); }

/* ---------- Estructura ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: var(--tabs-h); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 32px; background: rgba(15,16,21,.96); border-bottom: 1px solid #1E2129; backdrop-filter: blur(8px); }
.buscador { flex: 1 1 260px; max-width: 520px; position: relative; display: flex; align-items: center; gap: 10px; background: var(--s2); border: 1px solid #262A34; border-radius: 10px; padding: 0 14px; height: 44px; color: var(--tx3); }
.buscador input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--tx); height: 42px; }
.resultados { position: absolute; top: 48px; left: 0; right: 0; z-index: 15; background: var(--s3); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; max-height: 60vh; overflow: auto; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.resultados button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--tx); }
.resultados button:hover { background: var(--s4); }
.espacio { flex: 1 1 0; }
.main { flex: 1; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 24px; min-width: 0; width: 100%; max-width: 1600px; margin: 0 auto; }
.titulo { font-family: var(--f-head); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* ---------- Pestañas de abajo ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; height: var(--tabs-h); display: flex; align-items: stretch; gap: 2px; padding: 0 32px; background: var(--bg2); border-top: 1px solid var(--s4); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-top: 3px solid transparent; background: transparent; color: var(--tx2); font-weight: 500; white-space: nowrap; }
.tab[aria-current="page"] { background: var(--s2); color: var(--tx); font-weight: 600; }
.tab .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--acc-tx); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tab.mas { color: var(--tx3); font-size: 20px; padding: 0 16px; }
.tab .corto { display: none; }

/* ---------- Tarjetas ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { text-align: left; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi .et { font-size: 13px; color: var(--tx2); }
.kpi .val { font-family: var(--f-head); font-size: 28px; font-weight: 600; }
.kpi .sub { font-size: 12px; color: var(--tx2); }
.kpi.alerta { background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.4); }
.kpi.alerta .et, .kpi.alerta .sub { color: var(--red-soft); }
.kpi.alerta .val { color: var(--red-tx); }
button.kpi { cursor: pointer; color: inherit; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.panel h2 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel .pie { font-size: 12px; color: var(--tx3); padding: 4px 4px 0; }
.fila2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.fila2 > .ancho { flex: 3 1 520px; } .fila2 > .estrecho { flex: 2 1 340px; }
.vacio { border: 1px dashed var(--line2); border-radius: 12px; padding: 16px; font-size: 13px; color: var(--tx2); }

.item { display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: var(--s2); text-align: left; width: 100%; color: var(--tx); }
.item:hover { border-color: var(--line2); }
.item .fecha { width: 52px; flex: none; display: flex; flex-direction: column; align-items: center; }
.item .fecha b { font-family: var(--f-head); font-size: 20px; font-weight: 600; line-height: 1; }
.item .fecha span { font-size: 12px; color: var(--tx2); margin-top: 3px; }
.item .quien { width: 130px; flex: none; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #C3C8D2; }
.item .que { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .que b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .que span { font-size: 13px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .lado { display: flex; align-items: center; gap: 16px; flex: none; }
.item .cuanto { text-align: right; font-weight: 600; flex: none; }
.item .est { width: 110px; display: flex; justify-content: flex-end; flex: none; }

/* Fines de semana */
.finde { display: grid; grid-template-columns: 150px repeat(6, minmax(110px, 1fr)); gap: 6px; font-size: 13px; min-width: 860px; }
.finde .h { color: var(--tx3); font-weight: 600; font-size: 12px; padding: 0 4px; }
.finde .h.hoy { color: var(--tx); }
.finde .nom { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.finde .c { min-height: 40px; display: flex; flex-direction: column; justify-content: center; padding: 6px 10px; border-radius: 8px; font-size: 13px; overflow: hidden; }
.finde .c.libre { border: 1px dashed #3A4152; color: var(--tx3); }
.finde .c.ocup { background: var(--s4); border: 1px solid var(--line2); font-weight: 500; }
.finde .c.neg { background: rgba(255,181,71,.10); border: 1px solid rgba(255,181,71,.45); color: #FFE2B0; }
.finde .c small { font-size: 11px; font-weight: 600; color: var(--tx3); }
.finde .c.neg small { color: var(--amber); }
.finde .c span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leyenda { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--tx2); }
.leyenda span { display: flex; align-items: center; gap: 6px; }
.leyenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.desliza { overflow-x: auto; }

/* Gráficos */
.barras { display: grid; gap: 8px; align-items: end; height: 190px; border-bottom: 1px solid var(--line2); padding-top: 22px; }
.barras .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; position: relative; }
.barras .b { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: #5B6478; }
.barras .b.top { background: #C3C8D2; }
.barras .b.parcial { background: repeating-linear-gradient(135deg, #5B6478 0 4px, #3A4152 4px 8px); }
.barras .col:hover .b { filter: brightness(1.3); }
.barras .lab { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--tx3); }
.barras .tip { position: absolute; bottom: calc(100% + 4px); background: var(--s4); border: 1px solid var(--line2); color: var(--tx); font-size: 12px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; display: none; z-index: 2; }
.barras .col:hover .tip { display: block; }
.ejex { display: grid; gap: 8px; font-size: 12px; color: var(--tx2); text-align: center; margin-top: -2px; }
.hbar { display: flex; flex-direction: column; gap: 5px; }
.hbar .t { display: flex; justify-content: space-between; font-size: 13px; }
.hbar .riel { height: 8px; border-radius: 4px; background: #1E2129; }
.hbar .riel div { height: 8px; border-radius: 4px; }
.lista-salas div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1E2129; font-size: 13px; }
.lista-salas div:last-child { border-bottom: 0; }

/* ---------- Tabla del DJ ---------- */
.tabla-caja { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tabla { min-width: 1300px; }
.tabla .fila, .tabla .thead { display: grid; grid-template-columns: 60px minmax(140px, 1.4fr) minmax(100px, 1fr) 88px 104px 104px 112px 124px 70px 54px 62px 92px 112px; align-items: center; gap: 10px; padding: 10px 16px; }
.tabla .thead { padding-top: 12px; padding-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--tx3); letter-spacing: .04em; text-transform: uppercase; background: var(--s2); }
.tabla .grupo { display: flex; align-items: baseline; gap: 8px; padding: 18px 16px 8px; font-size: 13px; font-weight: 600; border-top: 1px solid #20232C; }
.tabla .grupo.rojo { color: var(--red-tx); }
.tabla .grupo span { color: var(--tx3); font-weight: 500; }
.tabla .fila { width: 100%; border: 0; border-top: 1px solid #20232C; text-align: left; background: transparent; color: var(--tx); cursor: pointer; }
.tabla .fila:hover { background: #181B22; }
.tabla .fila.debe { background: rgba(255,107,107,.05); }
.tabla .fila.sel { background: #1E2230; }
.tabla .fila.cancelado { opacity: .55; }
.tabla .c-fecha { display: flex; flex-direction: column; gap: 1px; }
.tabla .c-fecha b { font-family: var(--f-head); font-size: 17px; font-weight: 600; line-height: 1.1; }
.tabla .c-fecha span { font-size: 12px; color: var(--tx2); }
.tabla .c-local { font-weight: 600; }
.tabla .elip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabla .suave { color: var(--tx3); font-size: 13px; }
.tabla .norm { color: #C3C8D2; font-size: 13px; }
.tabla .der { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tabla .der small { font-size: 11px; color: var(--tx2); font-weight: 400; }
.tabla .der small.mano { color: var(--amber); font-weight: 600; }
.marca-check { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.marca-check:hover { background: var(--s4); }
.tabla .c-pag { display: flex; align-items: center; gap: 6px; }
.debe-tag { font-size: 12px; font-weight: 600; color: var(--red-tx); }
.mas-meses { padding: 14px 16px; border-top: 1px solid #20232C; }

/* ---------- Ficha (panel lateral) ---------- */
.velo { position: fixed; inset: 0; background: rgba(5,6,8,.6); z-index: 20; }
.ficha { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%; z-index: 21; background: var(--s2); border-left: 1px solid var(--line2); padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.ficha > * { flex-shrink: 0; }
.ficha .top { display: flex; align-items: flex-start; gap: 12px; }
.ficha .top > div { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ficha .quien { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx2); }
.ficha h2 { font-family: var(--f-head); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--s4); border: 1px solid var(--s4); border-radius: 12px; overflow: hidden; }
.datos > div { background: var(--s2); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.datos .et { font-size: 12px; color: var(--tx2); }
.datos .v { font-weight: 500; overflow-wrap: anywhere; }
.datos .v.grande { font-weight: 600; font-size: 16px; }
.datos .nota { font-size: 12px; color: var(--tx2); }
.datos .nota.mano { color: var(--amber); }
.datos .ancho { grid-column: 1 / -1; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; display: inline-flex; align-items: center; gap: 8px; color: var(--tx2); }
.toggle[aria-pressed="true"] { border-color: rgba(110,231,160,.5); background: rgba(74,222,128,.10); color: var(--green); font-weight: 600; }
.ruta-dia { display: flex; flex-direction: column; gap: 6px; }
.ruta-dia h4 { margin: 0; font-size: 12px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .05em; }
.ruta-paso { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: 13px; }
.ruta-paso .h { color: var(--tx2); font-variant-numeric: tabular-nums; }
.ruta-paso .h.tbc { color: var(--tx3); }
.ruta-paso.dest .h, .ruta-paso.dest .d { color: var(--tx); font-weight: 600; }
.ruta-paso .n { color: var(--amber); }
.ruta-edit { display: grid; grid-template-columns: 130px 110px minmax(0, 1fr) 44px; gap: 6px; align-items: end; }
.ruta-edit .campo input { height: 38px; font-size: 13px; }
.ruta-edit .nota-l { grid-column: 3 / 4; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--s4); padding-top: 14px; }
.acciones .btn { flex: 1 1 auto; }
.acciones .btn.icono { flex: 0 0 44px; }

/* ---------- Ventanas ---------- */
.modal { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); width: 580px; max-width: calc(100% - 32px); max-height: calc(100vh - 100px); overflow-y: auto; z-index: 31; background: var(--s2); border: 1px solid var(--line2); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.modal.ancho { width: 860px; }
.modal .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal h2 { font-family: var(--f-head); font-size: 22px; font-weight: 600; }
.botones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.velo.alto { z-index: 30; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 16px); transform: translateX(-50%); z-index: 50; background: var(--s4); border: 1px solid var(--line2); color: var(--tx); padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.mal { border-color: rgba(255,107,107,.5); color: var(--red-tx); }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dsem { font-size: 12px; font-weight: 600; color: var(--tx3); padding: 4px 6px; text-transform: uppercase; }
.cal .dia { min-height: 108px; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal .dia.fuera { opacity: .35; }
.cal .dia.hoy { border-color: var(--acc); }
.cal .dia .n { font-size: 12px; color: var(--tx2); font-weight: 600; }
.cal .ev { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 6px; border-radius: 6px; background: var(--s3); border: 0; text-align: left; color: var(--tx); min-width: 0; }
.cal .ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.neg { background: rgba(255,181,71,.10); }

/* Lista simple (salas, djs) */
.lista { display: flex; flex-direction: column; }
.lista .l { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) 90px 44px; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #1E2129; font-size: 13px; }
.lista .l.h { color: var(--tx3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Vista del DJ ---------- */
.vdj { max-width: 720px; width: 100%; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 18px; }
.vdj .hola { display: flex; align-items: center; gap: 12px; }
.vdj .avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 600; border: 1.5px solid; }
.proximo { border-radius: 18px; background: var(--s2); border: 1px solid var(--line2); overflow: hidden; }
.proximo .cab { padding: 16px; border-bottom: 1px solid var(--s4); display: flex; flex-direction: column; gap: 6px; }
.proximo .cab .eti { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.proximo h2 { font-family: var(--f-head); font-size: 26px; font-weight: 600; }
.proximo .datos { border: 0; border-radius: 0; }
.proximo .ruta { padding: 14px 16px; border-top: 1px solid var(--s4); display: flex; flex-direction: column; gap: 12px; }
.seccion-t { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.resumen3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.resumen3 > div { background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.resumen3 small { font-size: 11px; color: var(--tx2); }
.resumen3 b { font-family: var(--f-head); font-size: 18px; font-weight: 600; }

/* ---------- Móvil ---------- */
.fab { display: none; }
@media (max-width: 820px) {
  :root { --tabs-h: 64px; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar .solo-pc { display: none; }
  .buscador { order: 3; flex-basis: 100%; max-width: none; }
  .main { padding: 18px 14px 28px; gap: 18px; }
  .titulo { font-size: 24px; }
  .tabs { padding: 0; gap: 0; }
  .tab { flex: 1 0 auto; flex-direction: column; justify-content: center; gap: 4px; padding: 0 12px; font-size: 11px; position: relative; }
  .tab .badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; font-size: 11px; }
  .tab .dot { width: 12px; height: 12px; }
  .tab .largo { display: none; }
  .tab .corto { display: inline; }
  .fab { display: flex; position: fixed; right: 16px; bottom: calc(var(--tabs-h) + 16px); z-index: 13; width: 60px; height: 60px; border-radius: 18px; border: 0; background: var(--acc); color: var(--acc-tx); align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis.inicio .kpi:first-child { grid-column: 1 / -1; }
  .kpi { padding: 12px 14px; } .kpi .val { font-size: 22px; }
  .item { gap: 12px; padding: 10px; }
  .item .quien { display: none; }
  .item .est { width: auto; }
  .item .lado { flex-direction: column; align-items: flex-end; gap: 6px; }
  .item.con-dj .que::before { content: attr(data-dj); font-size: 12px; color: #C3C8D2; }
  /* tabla -> tarjetas */
  .tabla { min-width: 0; }
  .tabla .thead { display: none; }
  .tabla .c-fecha span { white-space: nowrap; font-size: 11px; }
  .tabla .fila { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "f l fee" "f c est" "f h pag"; row-gap: 2px; column-gap: 12px; padding: 12px 14px; }
  .tabla .fila > * { display: none; }
  .tabla .fila .c-fecha { display: flex; grid-area: f; }
  .tabla .fila .c-local { display: block; grid-area: l; }
  .tabla .fila .c-ciudad { display: block; grid-area: c; color: var(--tx2); font-size: 13px; }
  .tabla .fila .c-fee { display: flex; grid-area: fee; }
  .tabla .fila .c-estado { display: block; grid-area: est; justify-self: end; }
  .tabla .fila .c-horario { display: block; grid-area: h; }
  .tabla .fila .c-pag { display: flex; grid-area: pag; justify-self: end; gap: 6px; align-items: center; }
  .ficha { width: 100%; padding: 18px 16px 90px; }
  .modal { top: 0; left: 0; transform: none; width: 100%; max-width: 100%; height: 100%; max-height: none; border-radius: 0; padding: 18px 16px 90px; }
  .modal.ancho { width: 100%; }
  .rejilla3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruta-edit { grid-template-columns: 1fr 1fr 44px; }
  .ruta-edit .desc { grid-column: 1 / 3; } .ruta-edit .nota-l { grid-column: 1 / 3; }
  .cal .dia { min-height: 64px; padding: 4px; } .cal .ev span { display: none; } .cal .ev { padding: 3px; justify-content: center; }
  .lista .l { grid-template-columns: minmax(0, 1fr) 70px 44px; } .lista .l .pc { display: none; }
  .toast { bottom: calc(var(--tabs-h) + 88px); }
}
