/* Meeting ONE 2.1 · panel de administración (computador y teléfono) */
:root {
  --navy: #0F1B2D; --navy2: #1B2F4E; --navy3: #2A4269; --fondo: #F4F6FA; --borde: #CBD3E0; --suave: #E1E6EF; --gris2: #EEF1F6;
  --texto: #0F1B2D; --gris: #4B5568; --gris3: #3D4A5F; --naranja: #F07A30; --naranja-txt: #1B0A00; --azul: #1D5FD1; --verde: #15803D; --rojo: #B42318;
  --libre-bg: #DCFCE7; --libre-tx: #14532D; --ocup-bg: #FFE4D1; --ocup-tx: #9A3412; --conf-bg: #FEF3C7; --conf-tx: #78350F; --conf-borde: #B7791F; --off-bg: #E8ECF3; --off-tx: #3D4A5F;
  --radio: 18px; --menu: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 15px; -webkit-text-size-adjust: 100%; }
a { color: var(--azul); }
a:hover { color: #163F8C; }
button, input, select, textarea { font: inherit; }
.oculto { display: none !important; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1 { font-size: 28px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 800; margin: 0; }
h3 { font-size: 15px; font-weight: 800; margin: 0; }
p { line-height: 1.5; }
.sub { font-size: 14px; color: var(--gris); margin-top: 4px; }
.muted { color: var(--gris); }
svg { flex-shrink: 0; }

/* ---------------------------------------------------------------- estructura */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.menu { width: var(--menu); flex: 0 0 var(--menu); background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 22px 14px 18px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.menu .marca { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.marca .ico { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.marca b { display: block; font-size: 17px; }
.marca small { display: block; color: #AEB9CB; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #C7D0DE; text-decoration: none; font-weight: 700; font-size: 15px; min-height: 44px; }
.nav a:hover { background: var(--navy2); color: #fff; }
.nav a[aria-current="page"] { background: var(--naranja); color: var(--naranja-txt); }
.nav .sep { height: 1px; background: #24395A; margin: 10px 8px; }
.menu .lic { margin-top: auto; background: var(--navy2); border-radius: 14px; padding: 14px; font-size: 13px; }
.lic .t { color: #AEB9CB; font-weight: 600; }
.lic b { display: block; font-size: 14px; margin: 2px 0 8px; }
.barra { height: 8px; border-radius: 99px; background: #0B1424; overflow: hidden; }
.barra > div { height: 100%; background: var(--naranja); border-radius: 99px; width: 0; transition: width .3s; }
.lic .n { margin-top: 6px; color: #C7D0DE; font-weight: 600; }
.menu .yo { display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; font-size: 13px; }
.yo .av { width: 34px; height: 34px; border-radius: 99px; background: var(--navy3); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.yo .c { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #C7D0DE; }
.yo button { background: none; border: 0; color: #fff; font-weight: 700; cursor: pointer; padding: 8px; border-radius: 8px; min-height: 40px; }
.yo button:hover { background: var(--navy2); }

.principal { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.vista { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 18px; max-width: 1480px; width: 100%; }
.cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cabeza > .tit { flex: 1 1 260px; min-width: 0; }

/* barra superior y pestañas (teléfono) */
.top { display: none; }
.tabs { display: none; }
.cortina { position: fixed; inset: 0; background: rgba(15,27,45,.5); z-index: 40; }

@media (max-width: 1000px) {
  .menu { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); width: min(300px, 86vw); padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .app.abierto .menu { transform: none; }
  .top { display: flex; position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; align-items: center; gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .top .tt { flex: 1; min-width: 0; }
  .top .tt b { display: block; font-size: 17px; }
  .top .tt small { display: block; font-size: 12px; color: #AEB9CB; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--navy2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .top button.mas { background: var(--naranja); color: var(--naranja-txt); }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--suave); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; min-height: 52px; text-decoration: none; color: var(--gris); font-size: 12px; font-weight: 700; border-radius: 12px; }
  .tabs a[aria-current="page"] { color: var(--texto); background: var(--gris2); }
  .tabs a[aria-current="page"] svg { stroke: var(--naranja); }
  .vista { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); gap: 14px; }
  h1 { font-size: 23px; }
  .solo-pc { display: none !important; }
}
@media (min-width: 1001px) { .solo-tel { display: none !important; } }

/* ---------------------------------------------------------------- piezas */
.card { background: #fff; border-radius: var(--radio); padding: 18px; min-width: 0; }
.card > h2 + * { margin-top: 12px; }
.card-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.grilla { display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kpi { background: #fff; border-radius: var(--radio); padding: 16px 18px; min-width: 0; }
.kpi .k { font-size: 13px; font-weight: 700; color: var(--gris); }
.kpi .v { font-size: 32px; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.kpi .v small { font-size: 16px; color: var(--gris); font-weight: 700; }
.kpi .d { font-size: 13px; color: var(--gris); margin-top: 4px; }
.kpi.alerta { background: #FFF4EC; }
.kpi.alerta .v { color: #B4471A; }
@media (max-width: 1000px) { .kpi { padding: 14px; } .kpi .v { font-size: 26px; } }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
@media (max-width: 1250px) { .dos { grid-template-columns: minmax(0, 1fr); } }
.columna { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 1000px) { .columna { gap: 14px; } }

.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--borde); background: #fff; color: var(--texto); font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #8792A6; color: var(--texto); }
.btn.prim { border: 0; background: var(--naranja); color: var(--naranja-txt); font-weight: 800; }
.btn.prim:hover { background: #E86A1C; }
.btn.osc { border: 0; background: var(--navy); color: #fff; }
.btn.osc:hover { background: var(--navy2); color: #fff; }
.btn.peligro { color: var(--rojo); border-color: #F3C7C2; }
.btn.chico { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.bloque { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ico { width: 40px; height: 40px; padding: 0; border-radius: 10px; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.desliza { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.chips.desliza::-webkit-scrollbar { display: none; }
.chip { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; min-height: 40px; cursor: pointer; background: #fff; color: var(--texto); border: 1.5px solid var(--borde); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .n { font-size: 12px; opacity: .75; }
.eq { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gris2); color: var(--gris3); white-space: nowrap; }
.est { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.est.libre { background: var(--libre-bg); color: var(--libre-tx); }
.est.ocupada { background: var(--ocup-bg); color: var(--ocup-tx); }
.est.confirmar { background: var(--conf-bg); color: var(--conf-tx); }
.est.off { background: var(--off-bg); color: var(--off-tx); }
.punto { width: 9px; height: 9px; border-radius: 9px; display: inline-block; background: #8792A6; flex-shrink: 0; }
.punto.on { background: #22C55E; }

.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.aviso.ok { background: var(--libre-bg); color: var(--libre-tx); }
.aviso.mal { background: #FDE7DA; color: #7C2D12; }
.aviso.info { background: #E3ECFD; color: #123A80; }
.aviso.ambar { background: var(--conf-bg); color: #4A2A05; }
.aviso b { font-weight: 800; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 90; max-width: min(520px, calc(100vw - 24px)); background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.mal { background: #7C2D12; }
@media (max-width: 1000px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* formularios */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label, .etq { font-size: 13px; font-weight: 700; color: var(--gris3); }
.campo .ayuda { font-size: 12px; color: var(--gris); font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--borde); background: #fff; padding: 9px 13px; font-size: 16px; font-weight: 600; color: var(--texto); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(29,95,209,.3); outline-offset: 1px; border-color: var(--azul); }
input[readonly] { background: var(--fondo); }
.form { display: flex; flex-direction: column; gap: 14px; }
.fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.copiar { display: flex; gap: 8px; }
.copiar input { flex: 1; min-width: 0; font-size: 14px; }
@media (max-width: 560px) { .copiar { flex-wrap: wrap; } .copiar input { flex-basis: 100%; } }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--gris2); }
.interruptor:first-child { border-top: 0; padding-top: 2px; }
.interruptor .tx { flex: 1; min-width: 0; }
.interruptor .tx b { display: block; font-size: 15px; }
.interruptor .tx span { display: block; font-size: 13px; color: var(--gris); margin-top: 2px; line-height: 1.4; }
.sw { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; z-index: 1; }
.sw span { position: absolute; inset: 0; border-radius: 99px; background: #C5CDDA; transition: background .15s; }
.sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.sw input:checked + span { background: var(--verde); }
.sw input:checked + span::after { transform: translateX(22px); }
.sw input:focus-visible + span { outline: 3px solid rgba(29,95,209,.35); outline-offset: 2px; }
.sw input:disabled + span { opacity: .45; }
.paso { flex-shrink: 0; display: inline-flex; align-items: center; border: 1.5px solid var(--borde); border-radius: 12px; overflow: hidden; background: #fff; }
.paso button { width: 40px; height: 40px; border: 0; background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--texto); }
.paso button:hover { background: var(--gris2); }
.paso output { white-space: nowrap; min-width: 72px; text-align: center; font-weight: 800; font-size: 14px; padding: 0 4px; }
.lista-dom { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1.5px solid var(--borde); border-radius: 14px; padding: 8px; }
.lista-dom .dom { display: inline-flex; align-items: center; gap: 4px; background: var(--gris2); border-radius: 999px; padding: 4px 4px 4px 12px; font-weight: 700; font-size: 14px; }
.lista-dom .dom button { border: 0; background: none; width: 30px; height: 30px; border-radius: 99px; cursor: pointer; font-size: 16px; color: var(--gris3); }
.lista-dom .dom button:hover { background: #DDE3EC; }
.lista-dom input { flex: 1 1 140px; border: 0; min-height: 38px; padding: 4px 6px; }
.lista-dom input:focus { outline: none; }

/* ---------------------------------------------------------------- Inicio */
.salas-ahora { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { border-radius: 16px; padding: 14px; background: var(--fondo); display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 2px solid transparent; text-align: left; cursor: pointer; color: inherit; }
.tile:hover { border-color: var(--suave); }
.tile .nm { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .lg { font-size: 12px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .ln { font-size: 13px; font-weight: 600; color: var(--gris3); line-height: 1.35; }
.tile.libre { background: #F0FBF4; }
.tile.ocupada { background: #FFF5EE; }
.tile.confirmar { background: #FFFAEB; border: 2px dashed var(--conf-borde); }
.tile.off { background: #F1F3F7; }
.prox { display: flex; flex-direction: column; }
.prox .it { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--gris2); }
.prox .it:first-child { border-top: 0; padding-top: 0; }
.prox .h { width: 64px; flex-shrink: 0; font-weight: 800; font-size: 14px; }
.prox .h small { display: block; color: var(--gris); font-weight: 600; font-size: 12px; }
.prox .x { flex: 1; min-width: 0; }
.prox .x b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prox .x span { display: block; font-size: 13px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vacio { color: var(--gris); font-size: 14px; padding: 6px 0; }

/* ---------------------------------------------------------------- Agenda */
.agenda-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.agenda-barra .fecha { display: flex; gap: 6px; align-items: center; }
.agenda-barra .fecha b { font-size: 16px; min-width: 0; padding: 0 6px; }
.seg { display: inline-flex; background: var(--gris2); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 0 14px; min-height: 36px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--gris3); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--texto); box-shadow: 0 1px 3px rgba(15,27,45,.12); }
.linea-wrap { overflow-x: auto; border-radius: 14px; -webkit-overflow-scrolling: touch; }
.linea { --col: 46px; --izq: 190px; display: grid; grid-template-columns: var(--izq) repeat(24, var(--col)); min-width: calc(var(--izq) + 24 * var(--col)); position: relative; }
@media (max-width: 700px) { .linea { --col: 40px; --izq: 120px; } }
.linea .hh { font-size: 11px; font-weight: 700; color: var(--gris); padding: 0 0 6px 4px; border-left: 1px solid var(--suave); white-space: nowrap; }
.linea .hh.media { border-left-style: dashed; color: transparent; }
.linea .nombre { position: sticky; left: 0; z-index: 2; background: #fff; padding: 8px 10px 8px 0; font-weight: 700; font-size: 13px; display: flex; flex-direction: column; justify-content: center; min-height: 58px; border-top: 1px solid var(--gris2); }
.linea .nombre small { color: var(--gris); font-weight: 600; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linea .celda { border: 0; border-top: 1px solid var(--gris2); border-left: 1px solid var(--gris2); border-radius: 0; min-height: 58px; cursor: pointer; background: none; padding: 0; }
.linea .celda:hover { background: #F4F7FC; }
.linea .celda.pasado { background: repeating-linear-gradient(-45deg, #FAFBFD 0 6px, #F4F6FA 6px 12px); cursor: default; }
.bloque { position: relative; z-index: 1; margin: 6px 2px; border-radius: 10px; padding: 6px 8px; font-size: 12px; font-weight: 700; overflow: hidden; cursor: pointer; text-align: left; border: 0; line-height: 1.25; min-width: 0; }
.bloque b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.bloque span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; opacity: .9; }
.bloque.web, .bloque.admin, .bloque.espera { background: #DCE7FB; color: #123A80; }
.bloque.conf { background: var(--conf-bg); color: #4A2A05; outline: 2px dashed var(--conf-borde); outline-offset: -2px; }
.bloque.puerta { background: var(--ocup-bg); color: var(--ocup-tx); }
.bloque.liberada { background: #EEF1F6; color: #6B7487; text-decoration: line-through; }
.bloque.sel { box-shadow: 0 0 0 3px var(--navy); }
.ahora-linea { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--naranja); z-index: 3; pointer-events: none; }
.leyenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--gris); font-weight: 600; }
.leyenda i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 10px; overflow-x: auto; }
.semana .dia { background: var(--fondo); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.semana .dia.hoy { background: #FFF4EC; }
.semana .dia h3 { font-size: 13px; }
.semana .mini { background: #fff; border-radius: 10px; padding: 6px 8px; font-size: 12px; border: 0; text-align: left; cursor: pointer; }
.semana .mini b { display: block; }
.semana .mini span { color: var(--gris); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-dia h3 { margin: 16px 0 8px; font-size: 14px; color: var(--gris3); }
.lista-dia h3:first-child { margin-top: 0; }
.fila-res { width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--fondo); border: 0; text-align: left; cursor: pointer; margin-bottom: 8px; color: inherit; }
.fila-res .h { width: 98px; flex-shrink: 0; font-weight: 800; font-size: 14px; }
.fila-res .x { flex: 1; min-width: 0; }
.fila-res .x b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-res .x span { display: block; font-size: 13px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.det { display: flex; flex-direction: column; gap: 12px; }
.det dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; font-size: 14px; }
.det dt { color: var(--gris); }
.det dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Salas */
.buscador { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; }
.buscador input { flex: 1 1 240px; }
.salas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 700px) { .salas { grid-template-columns: minmax(0, 1fr); } }
.sala { background: #fff; border-radius: var(--radio); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sala .cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sala .cab h2 { font-size: 17px; overflow-wrap: anywhere; }
.sala .datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.sala .datos > div { background: var(--fondo); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.sala .datos small { display: block; color: var(--gris); font-weight: 600; font-size: 12px; }
.sala .datos b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.vincular { display: flex; gap: 8px; }
.vincular input { flex: 1; min-width: 0; letter-spacing: .15em; font-weight: 800; }

/* ---------------------------------------------------------------- Reportes */
.calor { display: grid; grid-template-columns: 44px repeat(12, minmax(28px, 1fr)); gap: 4px; font-size: 11px; font-weight: 700; color: var(--gris); }
.calor .c { height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.calor .lbl { display: flex; align-items: center; }
.calor .hd { text-align: center; }
.calor-wrap { overflow-x: auto; }
.calor-wrap .calor { min-width: 520px; }
.escala { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gris); margin-top: 10px; }
.escala .g { height: 10px; width: 140px; border-radius: 99px; background: linear-gradient(90deg, #F4F6FA, #FDD9BF, #F7A066, #E0611A, #9A3412); }
.barras { display: flex; flex-direction: column; gap: 12px; }
.barras .b { display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 4px 10px; align-items: center; font-size: 14px; }
.barras .b .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barras .b .p { text-align: right; font-weight: 800; }
.barras .b .tr { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--gris2); overflow: hidden; }
.barras .b .tr div { height: 100%; border-radius: 99px; background: var(--navy); }
.barras .b .tr div.bajo { background: #94A3B8; }
.tabla-box { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.tabla th { text-align: left; font-size: 12px; color: var(--gris); padding: 8px; border-bottom: 1.5px solid var(--suave); white-space: nowrap; }
table.tabla td { padding: 10px 8px; border-bottom: 1px solid var(--gris2); }
table.tabla td.num, table.tabla th.num { text-align: right; }

/* ---------------------------------------------------------------- Reglas e Integraciones */
.tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.tipo { border: 1.5px solid var(--suave); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tipo .lim { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.tipo .lim > span { flex: 1; min-width: 0; }
.guardar-barra { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px; background: rgba(244,246,250,.92); backdrop-filter: blur(6px); border-radius: 16px; }
@media (max-width: 1000px) { .guardar-barra { bottom: calc(70px + env(safe-area-inset-bottom)); } }
.integ { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 700px) { .integ { grid-template-columns: minmax(0, 1fr); } }
.integ .card { display: flex; flex-direction: column; gap: 12px; }
.integ .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--gris2); }
.integ .cab { display: flex; gap: 12px; align-items: center; }
.integ .cab .tx { flex: 1; min-width: 0; }
.integ .cab h2 { font-size: 16px; line-height: 1.25; }
.integ ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--gris3); }
.integ code, .codigo { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--gris2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.pronto { opacity: .75; }
details.mas summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--azul); list-style: none; min-height: 32px; display: flex; align-items: center; }
details.mas summary::-webkit-details-marker { display: none; }

/* ---------------------------------------------------------------- diálogos */
dialog.dlg { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); color: var(--texto); box-shadow: 0 30px 80px rgba(15,27,45,.35); }
dialog.dlg::backdrop { background: rgba(15,27,45,.5); }
.dlg .in { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dlg .tt { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dlg .x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--gris2); cursor: pointer; font-size: 18px; }
.dlg .pie { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@media (max-width: 700px) {
  dialog.dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .dlg .in { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .dlg .pie .btn { flex: 1 1 auto; }
}
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--suave); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.checks input { width: 20px; height: 20px; accent-color: var(--verde); }

/* ---------------------------------------------------------------- acceso */
.acceso { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--navy); }
.acceso .card { width: min(440px, 100%); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.acceso .marca { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.acceso .marca .ico { background: var(--navy); }
.enlace-txt { background: none; border: 0; color: var(--azul); font-weight: 700; cursor: pointer; padding: 6px 0; font-size: 14px; text-align: left; }
.candado { width: 52px; height: 52px; border-radius: 99px; background: #FDE7DA; display: flex; align-items: center; justify-content: center; }
.cargando { padding: 40px; text-align: center; color: var(--gris); }
