/* ============================================================================
   CHASE PANEL - hoja de estilo
   Replica del diseno de dorkplus.com extraido de su CSS compilado:
     fondo        #19191C / #121213
     acento       #3774FF (hsl 221 100% 60%)
     texto        #fff con opacidades /50 /70 /90 y bordes /10
     fuente       Plus Jakarta Sans (alt-font), Inter (base)
     radios       1rem / 1.5rem, botones 0.75rem
     sombras      0 0 24px rgba(41,94,215,.35), 0 10px 35px rgba(55,116,255,.12)
     animaciones  shine, marquee, border-beam, dork-shimmer
   ========================================================================== */
:root {
  --bg: #19191C;
  --bg-2: #121213;
  --bg-3: #0E0E10;
  --panel: rgba(255, 255, 255, .03);
  --panel-2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .06);
  --txt: #fff;
  --txt-50: rgba(255, 255, 255, .50);
  --txt-70: rgba(255, 255, 255, .70);
  --txt-40: rgba(255, 255, 255, .40);
  --azul: #3774FF;
  --azul-hover: #295ED7;
  --azul-30: rgba(55, 116, 255, .30);
  --azul-20: rgba(55, 116, 255, .20);
  --azul-10: rgba(55, 116, 255, .10);
  --ok: #34e05c;
  --aviso: #ffb020;
  --mal: #ff4d5e;
  --radio: 1rem;
  --radio-lg: 1.5rem;
  --radio-btn: .75rem;
  --som-boton: 0 0 24px rgba(41, 94, 215, .35);
  --som-tarjeta: 0 10px 35px rgba(55, 116, 255, .12);
  --fuente: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Noto Sans Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', var(--fuente);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.alt-font { font-family: var(--fuente); letter-spacing: -.02em; }
.mono { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--azul-30); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .10); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- barra superior (aviso) ---------- */
.aviso-top {
  width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center;
  padding: .375rem 0; background: var(--azul); color: #fff; position: relative;
  font-weight: 500; font-size: .75rem; line-height: 1rem; text-align: center;
}
.aviso-top a:hover { opacity: .75; }

/* ---------- barra de navegacion ---------- */
.barra {
  width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px); background: rgba(25, 25, 28, .7);
  position: sticky; top: 0; z-index: 50;
}
.barra-izq { display: flex; flex-direction: row; gap: 2rem; align-items: center; }
.marca { display: flex; flex-direction: row; gap: .5rem; align-items: center; }
.marca-icono {
  width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #3774FF, #7DA3FF);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; box-shadow: var(--som-boton);
}
.marca-txt { font-family: var(--fuente); font-weight: 700; letter-spacing: -.03em; font-size: 1.05rem; }
.marca-txt small { display: block; font-weight: 500; font-size: .6rem; letter-spacing: .18em; color: var(--txt-50); text-transform: uppercase; }
.menu { display: flex; flex-direction: row; gap: 1.25rem; align-items: center; }
.menu a, .menu button {
  display: flex; font-size: .875rem; flex-direction: row; gap: .5rem; align-items: center;
  background: none; border: 0; cursor: pointer; color: var(--txt-50); padding: 0;
  transition: all .18s ease;
}
.menu a:hover, .menu button:hover { color: #fff; transform: translateY(-2px); }
.menu a.activo { color: #fff; }
.menu a.activo::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 999px; background: var(--azul); }
.barra-der { display: flex; align-items: center; gap: .75rem; }
.pastilla {
  display: flex; align-items: center; gap: .5rem; padding: .4rem .65rem; border-radius: .5rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-size: .8rem;
  transition: all .18s ease;
}
.pastilla:hover { background: rgba(255, 255, 255, .10); }
.avatar { width: 22px; height: 22px; border-radius: 999px; background: var(--azul-30); display: grid; place-items: center; font-size: .7rem; font-weight: 700; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 40px; padding: 0 1.25rem; border-radius: var(--radio-btn); border: 1px solid transparent;
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s ease; white-space: nowrap;
  background: var(--azul); color: #fff;
}
.btn:hover { background: var(--azul-hover); box-shadow: var(--som-boton); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.sec {
  background: rgba(255, 255, 255, .04); color: var(--txt-70); border-color: var(--line);
}
.btn.sec:hover { border-color: rgba(255, 255, 255, .20); color: #fff; box-shadow: none; background: rgba(255, 255, 255, .07); }
.btn.peligro { background: rgba(255, 77, 94, .12); color: #ff8b96; border-color: rgba(255, 77, 94, .25); }
.btn.peligro:hover { background: rgba(255, 77, 94, .20); box-shadow: none; }
.btn.ok { background: rgba(52, 224, 92, .10); color: #7bf09b; border-color: rgba(52, 224, 92, .25); }
.btn.ok:hover { background: rgba(52, 224, 92, .18); box-shadow: none; }
.btn.pq { height: 32px; padding: 0 .75rem; font-size: .8rem; border-radius: .6rem; }
.btn.ancho { width: 100%; }

/* ---------- tarjetas ---------- */
.tarjeta {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2); border-radius: var(--radio-lg); padding: 1.5rem;
  position: relative; overflow: hidden;
}
.tarjeta.brillo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(55, 116, 255, .12), transparent 40%);
}
.tarjeta h3 { margin: 0 0 .25rem; font-family: var(--fuente); font-size: 1.05rem; letter-spacing: -.02em; }
.tarjeta p.sub { margin: 0 0 1rem; color: var(--txt-50); font-size: .85rem; }

/* ---------- rejilla / layout ---------- */
.contenido { max-width: 1440px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.rejilla { display: grid; gap: 1.25rem; }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-lado { grid-template-columns: 380px minmax(0, 1fr); }
@media (max-width: 1100px) { .c3, .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-lado { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .c2, .c3, .c4 { grid-template-columns: 1fr; } }

/* ---------- stats ---------- */
.stat {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: var(--radio);
  padding: 1.1rem 1.25rem; position: relative; overflow: hidden;
}
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 999px; background: var(--azul-10); filter: blur(12px); }
.stat .etq { color: var(--txt-50); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.stat .num { font-family: var(--fuente); font-size: 1.9rem; font-weight: 700; letter-spacing: -.04em; margin-top: .2rem; }
.stat .num small { font-size: .85rem; color: var(--txt-50); font-weight: 500; letter-spacing: 0; }
.stat.verde::after { background: rgba(52, 224, 92, .12); }
.stat.rojo::after { background: rgba(255, 77, 94, .12); }
.stat.ambar::after { background: rgba(255, 176, 32, .12); }

/* ---------- formularios ---------- */
.campo { margin-bottom: 1rem; }
.campo label { display: block; color: var(--txt-70); font-size: .8rem; margin-bottom: .4rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
  border-radius: var(--radio-btn); padding: .7rem .9rem; outline: none; transition: all .18s ease;
  font-size: .9rem;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 4px var(--azul-20); background: rgba(0, 0, 0, .35); }
/* las casillas y los botones no heredan el estilo de los campos de texto */
.campo input[type="checkbox"], .campo input[type="radio"] { width: 16px; height: 16px; padding: 0; accent-color: var(--azul); cursor: pointer; }
.campo input[type="file"] { padding: .5rem; }
.campo input:disabled { opacity: .55; cursor: not-allowed; }
.campo textarea { min-height: 180px; resize: vertical; font-family: var(--mono); font-size: .78rem; line-height: 1.5; }
.campo .ayuda { color: var(--txt-40); font-size: .72rem; margin-top: .35rem; }
.fila { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.interruptor { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--txt-70); cursor: pointer; user-select: none; }
.interruptor input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .12); position: relative; cursor: pointer; transition: all .2s ease; border: 0; }
.interruptor input::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 999px; background: #fff; top: 3px; left: 3px; transition: all .2s ease; }
.interruptor input:checked { background: var(--azul); }
.interruptor input:checked::after { transform: translateX(16px); }

/* ---------- pestanas ---------- */
.pestanas { display: flex; gap: .25rem; padding: .25rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: .8rem; width: fit-content; margin-bottom: 1rem; flex-wrap: wrap; }
.pestanas button { background: transparent; border: 0; color: var(--txt-50); padding: .45rem .9rem; border-radius: .6rem; cursor: pointer; font-size: .82rem; transition: all .18s ease; }
.pestanas button:hover { color: #fff; }
.pestanas button.activo { background: var(--azul); color: #fff; box-shadow: var(--som-boton); }

/* ---------- tablas ---------- */
.caja-tabla { overflow: auto; border: 1px solid var(--line-2); border-radius: var(--radio); background: rgba(0, 0, 0, .15); max-height: 620px; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
thead th { position: sticky; top: 0; background: #1E1E22; text-align: left; padding: .7rem .9rem; color: var(--txt-50); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); z-index: 1; }
tbody td { padding: .6rem .9rem; border-bottom: 1px solid var(--line-2); color: var(--txt-70); white-space: nowrap; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); color: #fff; }
tbody tr.nueva td { animation: aparecer .6s ease; }
@keyframes aparecer { from { background: rgba(55, 116, 255, .18); } to { background: transparent; } }
.vacio { padding: 2.5rem 1rem; text-align: center; color: var(--txt-40); font-size: .85rem; }

/* ---------- etiquetas de estado ---------- */
.eti { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; border: 1px solid transparent; }
.eti::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.eti.aprobada { color: #7bf09b; background: rgba(52, 224, 92, .10); border-color: rgba(52, 224, 92, .25); }
.eti.rechazada { color: #ff8b96; background: rgba(255, 77, 94, .10); border-color: rgba(255, 77, 94, .25); }
.eti.pendiente { color: #ffcf70; background: rgba(255, 176, 32, .10); border-color: rgba(255, 176, 32, .25); }
.eti.creada { color: #9cb7ff; background: rgba(55, 116, 255, .10); border-color: rgba(55, 116, 255, .25); }
.eti.error { color: #ffb3b9; background: rgba(255, 77, 94, .08); border-color: rgba(255, 77, 94, .18); }
.eti.gris { color: var(--txt-50); background: rgba(255, 255, 255, .05); border-color: var(--line); }

/* ---------- consola en vivo ---------- */
.consola {
  background: #0B0B0D; border: 1px solid var(--line-2); border-radius: var(--radio);
  height: 380px; overflow: auto; padding: .75rem 1rem; font-family: var(--mono); font-size: .76rem; line-height: 1.55;
}
.consola .l { display: flex; gap: .6rem; }
.consola .l .h { color: var(--txt-40); flex: 0 0 auto; }
.consola .l.ok .m { color: #8ff0a8; }
.consola .l.warn .m { color: #ffcf70; }
.consola .l.error .m { color: #ff8b96; }
.consola .l.info .m { color: #a9c1ff; }
.consola .l .m { white-space: pre-wrap; word-break: break-word; }

/* ---------- barra de progreso ---------- */
.progreso { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; position: relative; }
.progreso > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3774FF, #7DA3FF); transition: width .5s ease; position: relative; overflow: hidden; }
.progreso > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: brillo 1.6s infinite; }
@keyframes brillo { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- login ---------- */
.login-fondo { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 1.5rem; }
.login-fondo::before {
  content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: -30%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(55, 116, 255, .22), transparent 60%); filter: blur(20px); pointer-events: none;
}
.login-caja { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.login-caja .tarjeta { padding: 2rem; }
.login-logo { display: flex; align-items: center; gap: .6rem; justify-content: center; margin-bottom: 1.5rem; }
.login-caja h1 { font-family: var(--fuente); font-size: 1.5rem; letter-spacing: -.03em; text-align: center; margin: 0 0 .35rem; }
.login-caja p { text-align: center; color: var(--txt-50); font-size: .85rem; margin: 0 0 1.5rem; }
.login-pie { text-align: center; color: var(--txt-40); font-size: .72rem; margin-top: 1.25rem; }
.error-msg { background: rgba(255, 77, 94, .10); border: 1px solid rgba(255, 77, 94, .25); color: #ff8b96; padding: .6rem .8rem; border-radius: .7rem; font-size: .8rem; margin-bottom: 1rem; }

/* ---------- modales / avisos ---------- */
.capa { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; padding: 1rem; }
.modal { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; }
.brindis { position: fixed; right: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column; gap: .6rem; z-index: 120; }
.brindis > div {
  background: #1E1E24; border: 1px solid var(--line); border-left: 3px solid var(--azul);
  border-radius: .7rem; padding: .7rem 1rem; font-size: .83rem; max-width: 380px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .5); animation: subir .25s ease;
}
.brindis > div.ok { border-left-color: var(--ok); }
.brindis > div.mal { border-left-color: var(--mal); }
@keyframes subir { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- logo de Chase ---------- */
.logo-chase { height: 20px; width: auto; display: block; }
/* el logo original es azul #005EB8 y negro #141414: en fondo oscuro se
   realza y el texto se vuelve blanco */
.logo-chase.invertido { filter: brightness(1.55) saturate(1.15); }
.logo-chase.invertido .negro { fill: #fff; }
.logo-login { height: 34px; width: auto; display: block; margin: 0 auto; }

/* ---------- selector de idioma ---------- */
.idioma {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: .65rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.idioma button {
  background: transparent; border: 0; color: var(--txt-50); font-size: .72rem; font-weight: 600;
  padding: .3rem .55rem; border-radius: .45rem; cursor: pointer; letter-spacing: .04em; transition: all .18s ease;
}
.idioma button:hover { color: #fff; }
.idioma button.activo { background: var(--azul); color: #fff; box-shadow: 0 0 12px var(--azul-30); }

/* ---------- paginador ---------- */
.paginador {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .75rem .4rem .15rem;
}
.paginador-info { color: var(--txt-50); font-size: .78rem; }
.paginador-info b { color: #fff; font-weight: 600; }
.paginador-botones { display: flex; align-items: center; gap: .3rem; }
.pg-btn {
  min-width: 32px; height: 32px; padding: 0 .5rem; border-radius: .55rem; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--txt-70);
  font-size: .8rem; font-weight: 600; transition: all .16s ease;
}
.pg-btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .08); }
.pg-btn.activo { background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 0 12px var(--azul-30); }
.pg-btn:disabled { opacity: .35; cursor: default; }
.pg-puntos { color: var(--txt-40); padding: 0 .2rem; }
.pg-sel {
  height: 32px; border-radius: .55rem; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2); color: var(--txt-70); font-size: .76rem; padding: 0 .4rem; cursor: pointer;
}

/* ---------- celdas de tabla con avatar ---------- */
.celda-persona { display: flex; align-items: center; gap: .6rem; }
.celda-persona .inicial {
  width: 28px; height: 28px; border-radius: 999px; flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(55, 116, 255, .35), rgba(125, 163, 255, .18));
  border: 1px solid rgba(55, 116, 255, .35);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #cfe0ff;
}
.celda-persona .inicial.mini { width: 24px; height: 24px; font-size: .66rem; }
.celda-persona b { display: block; font-weight: 600; color: #fff; font-size: .82rem; }
.celda-persona small { display: block; color: var(--txt-40); font-size: .7rem; font-family: var(--mono); }
.suave { color: var(--txt-50); }

/* ---------- chips de resumen ---------- */
.resumen-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; color: var(--txt-70);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
}
.chip.ok { color: #8ff0a8; background: rgba(52, 224, 92, .08); border-color: rgba(52, 224, 92, .22); }
.chip.mal { color: #ff8b96; background: rgba(255, 77, 94, .08); border-color: rgba(255, 77, 94, .22); }
.chip.aviso { color: #ffcf70; background: rgba(255, 176, 32, .08); border-color: rgba(255, 176, 32, .22); }

/* ---------- zona de subida (en lugar del input nativo) ---------- */
.subida {
  display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1rem; cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, .16); border-radius: 1rem;
  background: rgba(255, 255, 255, .02); transition: all .18s ease;
}
.subida:hover, .subida.sobre {
  border-color: var(--azul); background: rgba(55, 116, 255, .07);
  box-shadow: 0 0 0 4px var(--azul-10);
}
.subida-icono {
  width: 38px; height: 38px; border-radius: .8rem; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.1rem; color: #cfe0ff;
  background: rgba(55, 116, 255, .15); border: 1px solid rgba(55, 116, 255, .3);
}
.subida-texto b { display: block; font-size: .86rem; }
.subida-texto span { display: block; font-size: .74rem; color: var(--txt-40); margin-top: .15rem; }

/* ---------- barra de acciones y buscador ---------- */
.fila-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-2);
}
.cab-mini { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .85rem; }
.buscador {
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: .7rem;
  padding: .5rem .8rem; outline: none; font-size: .8rem; min-width: 230px; transition: all .18s ease;
}
.buscador:focus { border-color: var(--azul); box-shadow: 0 0 0 4px var(--azul-20); }
.campo textarea.alto { min-height: 300px; }

/* ---------- tarjetas de formato de proxy ---------- */
.formatos { display: flex; flex-direction: column; gap: .45rem; }
.formato { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem; border-radius: .7rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.formato code { font-family: var(--mono); font-size: .76rem; color: #cfe0ff; }
.formato span { color: var(--txt-50); font-size: .76rem; }
.nota { color: var(--txt-50); font-size: .78rem; margin: .2rem 0; }

/* ---------- botones compactos de accion ---------- */
.ibtn {
  width: 32px; height: 32px; border-radius: .55rem; cursor: pointer; flex: 0 0 auto;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--txt-70);
  font-size: .8rem; font-weight: 700; display: inline-grid; place-items: center; transition: all .16s ease;
}
.ibtn:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.ibtn.ok { color: #8ff0a8; border-color: rgba(52, 224, 92, .25); background: rgba(52, 224, 92, .08); }
.ibtn.ok:hover { background: rgba(52, 224, 92, .16); }
.ibtn.peligro { color: #ff8b96; border-color: rgba(255, 77, 94, .22); background: rgba(255, 77, 94, .07); }
.ibtn.peligro:hover { background: rgba(255, 77, 94, .16); }
.ibtn.mini { width: 24px; height: 24px; font-size: .7rem; }
.ibtn[data-detalle] { width: auto; padding: 0 .7rem; font-size: .74rem; }

/* ---------- tarjetas de tarea ---------- */
.tarjeta-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tarea {
  padding: .9rem; border-radius: 1rem; margin-bottom: .7rem;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); transition: all .18s ease;
}
.tarea:hover { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.tarea-cab { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.tarea-id { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.tarea-id b { display: block; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.tarea-id small { display: block; color: var(--txt-40); font-size: .72rem; }
.tarea-punto { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); flex: 0 0 auto; }
.tarea-punto.vivo { background: #34e05c; box-shadow: 0 0 0 4px rgba(52, 224, 92, .18); animation: latir 1.6s infinite; }
.tarea-punto.pausa { background: #ffb020; box-shadow: 0 0 0 4px rgba(255, 176, 32, .15); }
@keyframes latir { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.tarea-pie { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .6rem; flex-wrap: wrap; }
.tarea-datos { display: flex; gap: .7rem; font-size: .74rem; color: var(--txt-50); align-items: center; flex-wrap: wrap; }
.tarea-datos b { color: #fff; }
.tarea-datos .ok { color: #8ff0a8; }
.tarea-datos .mal { color: #ff8b96; }
.tarea-datos .azul { color: #9cb7ff; }
.tarea-botones { display: flex; gap: .3rem; }
.caja-check { display: flex; padding: .7rem .8rem; border-radius: .8rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.acciones-pie { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.mini-nota { color: var(--txt-40); font-size: .74rem; min-height: 1em; }

/* ---------- filtros de resultados ---------- */
.filtros { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.filtro {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--txt-50);
  font-size: .78rem; cursor: pointer; text-transform: capitalize; transition: all .16s ease;
}
.filtro b { font-size: .72rem; padding: .05rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; }
.filtro:hover { color: #fff; border-color: rgba(255, 255, 255, .2); }
.filtro.activo { color: #fff; background: rgba(55, 116, 255, .16); border-color: rgba(55, 116, 255, .45); box-shadow: 0 0 16px var(--azul-20); }
.filtro.activo.approved { background: rgba(52, 224, 92, .14); border-color: rgba(52, 224, 92, .4); }
.filtro.activo.declined { background: rgba(255, 77, 94, .14); border-color: rgba(255, 77, 94, .4); }
.filtro.activo.pending { background: rgba(255, 176, 32, .14); border-color: rgba(255, 176, 32, .4); }

/* ---------- cuenta en la tabla ---------- */
.cuenta-mini { display: flex; align-items: center; gap: .35rem; }
.cuenta-mini b { font-size: .74rem; color: #8ff0a8; font-weight: 600; }

/* ---------- modal de detalle ---------- */
.modal-ancho { max-width: 860px; }
.modal-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cuadro-ok {
  border-radius: 1rem; padding: 1rem 1.1rem; margin-top: .5rem;
  background: linear-gradient(135deg, rgba(52, 224, 92, .12), rgba(52, 224, 92, .03));
  border: 1px solid rgba(52, 224, 92, .3);
}
.cuadro-ok .etq { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8ff0a8; }
.cuenta-grande { display: flex; align-items: flex-end; gap: 1.4rem; margin-top: .4rem; flex-wrap: wrap; }
.cuenta-grande small { display: block; font-size: .7rem; color: var(--txt-50); }
.cuenta-grande b { font-size: 1rem; color: #fff; }
.bloque h4 { margin: 0 0 .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-50); }
.pre-json, .pre-err {
  background: #0B0B0D; border: 1px solid var(--line-2); border-radius: .7rem; padding: .75rem;
  font-family: var(--mono); font-size: .72rem; color: #b9c8e8; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}
.pre-err { color: #ffb3b9; }

/* ---------- aviso de coste (renta) ---------- */
.aviso-renta {
  display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; margin-bottom: .9rem;
  border-radius: .85rem; border: 1px solid rgba(255, 176, 32, .35);
  background: linear-gradient(135deg, rgba(255, 176, 32, .12), rgba(255, 176, 32, .03));
}
.aviso-renta .aviso-icono {
  width: 24px; height: 24px; border-radius: 999px; flex: 0 0 auto; display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; color: #1a1200; background: #ffb020;
}
.aviso-renta b { display: block; color: #ffcf70; font-size: .84rem; margin-bottom: .2rem; }
.aviso-renta span { display: block; color: var(--txt-70); font-size: .78rem; line-height: 1.5; }
.aviso-renta span b { display: inline; color: #fff; margin: 0; font-size: inherit; }

/* ---------- ventana de aviso (confirmar antes de romper el flujo) ---------- */
.aviso-oculto { display: none !important; }
.modal-aviso { max-width: 520px; padding: 1.6rem; }
.aviso-cab { display: flex; align-items: flex-start; gap: .9rem; }
.aviso-cab .aviso-icono.grande { width: 34px; height: 34px; font-size: 1.05rem; }
.aviso-cuerpo { margin: 1rem 0 1.2rem; color: var(--txt-70); font-size: .86rem; line-height: 1.6; }
.aviso-cuerpo p { margin: 0 0 .6rem; }
.aviso-cuerpo ul { margin: 0; padding-left: 1.1rem; color: var(--txt-50); font-size: .82rem; }
.aviso-cuerpo li { margin: .2rem 0; }
.aviso-acciones { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- select oscuro (se ve bien en todos los navegadores) ---------- */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--txt-70) 50%), linear-gradient(135deg, var(--txt-70) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2.2rem !important; cursor: pointer;
}
select option { background: #1B1B20; color: #fff; }
select optgroup { background: #17171A; color: #9cb7ff; font-weight: 700; font-size: .8rem; }

/* ---------- logo del panel ---------- */
.logo-chase { height: 22px; width: auto; display: block; }
/* ---------- login: separador, pasos y registro ---------- */
.login-sep { display: flex; align-items: center; gap: .7rem; margin: 1rem 0; color: var(--txt-40); font-size: .74rem; }
.login-sep::before, .login-sep::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.pasos { display: flex; gap: .4rem; margin-bottom: .9rem; }
.pasos i { flex: 1; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: all .25s ease; }
.pasos i.activo { background: var(--azul); box-shadow: 0 0 12px var(--azul-30); }
.pasos i.hecho { background: var(--ok); }
.lic-ok {
  display: block; margin-bottom: .9rem; padding: .6rem .8rem; border-radius: .7rem; font-size: .82rem;
  background: rgba(52, 224, 92, .1); border: 1px solid rgba(52, 224, 92, .3); color: #8ff0a8;
}

/* ---------- popup de aprobado ---------- */
.modal-aprobado { max-width: 520px; position: relative; overflow: hidden; padding: 1.6rem; }
.aprobado-halo {
  position: absolute; inset: -40% -20% auto -20%; height: 240px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(52, 224, 92, .28), transparent); filter: blur(10px);
}
.aprobado-cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.logo-aprobado { height: 22px; width: auto; }
.badge-aprobado {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #8ff0a8;
  background: rgba(52, 224, 92, .14); border: 1px solid rgba(52, 224, 92, .4); box-shadow: 0 0 18px rgba(52, 224, 92, .25);
}
.modal-aprobado h3 { margin: .9rem 0 .2rem; font-size: 1.35rem; position: relative; }
.aprobado-ficha { margin: .9rem 0; }
.aprobado-pide { color: var(--txt-70); font-size: .86rem; margin: .2rem 0 .8rem; }

/* ---------- "mostrar contraseña" (interruptor propio, sin casilla nativa) ---------- */
.ver-clave {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: .55rem;
  color: var(--txt-50); font-size: .78rem; cursor: pointer; user-select: none;
  transition: color .18s ease;
}
.ver-clave:hover { color: #fff; }
.ver-clave input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: 0 0 auto;
  width: 30px !important; height: 17px !important; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid var(--line); padding: 0 !important;
  position: relative; transition: all .2s ease;
}
.ver-clave input::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px;
  border-radius: 999px; background: #fff; transition: all .2s ease;
}
.ver-clave input:checked { background: var(--azul); border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-20); }
.ver-clave input:checked::after { transform: translateX(13px); }
.ver-clave.activo { color: #fff; }

/* el login se ve centrado y con aire */
.login-caja { max-width: 430px; }
.login-caja .tarjeta { padding: 2rem 2rem 1.6rem; }
#login-form .campo { margin-bottom: 1rem; }

/* iconos de los botones de accion */
.ibtn svg { width: 15px; height: 15px; display: block; }
.ibtn.mini svg { width: 12px; height: 12px; }
.ibtn[data-detalle] { width: auto; padding: 0 .75rem; font-size: .74rem; }

/* ---------- soporte ---------- */
.apoyo-caja { display: flex; gap: 1rem; align-items: flex-start; }
.apoyo-ico {
  width: 46px; height: 46px; border-radius: 1rem; flex: 0 0 auto; display: grid; place-items: center;
}
.apoyo-ico svg { width: 24px; height: 24px; }
.apoyo-ico.azul { color: #9cb7ff; background: rgba(55, 116, 255, .14); border: 1px solid rgba(55, 116, 255, .35); box-shadow: 0 0 22px rgba(55, 116, 255, .18); }
.apoyo-ico.verde { color: #8ff0a8; background: rgba(52, 224, 92, .12); border: 1px solid rgba(52, 224, 92, .32); box-shadow: 0 0 22px rgba(52, 224, 92, .16); }
.apoyo-info h3 { margin: .45rem 0 .2rem; font-size: 1.05rem; }
.apoyo-usuario { color: #cfe0ff; font-size: .95rem; margin-bottom: .35rem; letter-spacing: .02em; }
.apoyo-lista { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--txt-50); font-size: .84rem; line-height: 1.7; }
.faq-item { border: 1px solid var(--line-2); border-radius: .8rem; margin-bottom: .5rem; background: rgba(255, 255, 255, .02); overflow: hidden; }
.faq-item.abierta { border-color: rgba(55, 116, 255, .35); background: rgba(55, 116, 255, .05); }
.faq-p {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .75rem .9rem; background: none; border: 0; color: #fff; font-size: .86rem; text-align: left; cursor: pointer;
}
.faq-p:hover { color: #cfe0ff; }
.faq-mas { color: var(--azul); font-size: 1.1rem; font-weight: 700; flex: 0 0 auto; }
.faq-r { padding: 0 .9rem .85rem; color: var(--txt-50); font-size: .82rem; line-height: 1.6; }

/* boton flotante de soporte */
.ayuda-flotante {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .45rem;
  height: 42px; padding: 0 1rem 0 .8rem; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #3774FF, #295ED7); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  font-size: .82rem; font-weight: 600; box-shadow: 0 10px 28px rgba(41, 94, 215, .45);
  transition: all .2s ease;
}
.ayuda-flotante svg { width: 17px; height: 17px; }
.ayuda-flotante:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(41, 94, 215, .6); }

/* ---------- ficha de la tarea (Results) ---------- */
.ficha-tarea { position: relative; overflow: hidden; }
.ficha-tarea::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(55, 116, 255, .16), transparent); pointer-events: none;
}
.ficha-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ficha-titulo { display: flex; align-items: center; gap: .75rem; }
.ficha-titulo h3 { margin: 0; font-size: 1.25rem; }
.ficha-titulo small { color: var(--txt-40); font-size: .76rem; }
.ficha-datos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem .8rem; margin-top: .9rem;
}
.ficha-datos > div {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: .7rem; padding: .55rem .7rem;
}
.ficha-datos small { display: block; color: var(--txt-40); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.ficha-datos b { display: block; font-size: .92rem; margin-top: .15rem; }
.ficha-datos b.ok { color: #8ff0a8; }
.ficha-datos b.mal { color: #ff8b96; }
.ficha-datos b.azul { color: #9cb7ff; }
@media (max-width: 900px) { .ficha-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* foco propio: el navegador no pone su contorno blanco */
.pestanas button:focus, .pestanas button:focus-visible, .btn:focus, .btn:focus-visible, .filtro:focus, .pg-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(55,116,255,.35); }
.pestanas button.activo:focus { box-shadow: 0 0 0 3px rgba(55,116,255,.45), 0 0 18px rgba(41,94,215,.4); }

/* la zona de subida se ve como una tarjeta, no como un hueco */
.subida { padding: 1.15rem 1.1rem; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); }
.subida.sobre .subida-icono, .subida:hover .subida-icono { background: rgba(55,116,255,.28); }

/* la fila de botones de la ficha no se estira */
.ficha-tarea .fila { flex-wrap: wrap; }
.ficha-tarea .btn.pq { min-width: 92px; }
.ficha-tarea .fila > span[style] { flex: 1 1 auto; }
.ficha-cab .eti { flex: 0 0 auto; }

/* ---------- utilidades ---------- */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cab h2 { font-family: var(--fuente); font-size: 1.6rem; letter-spacing: -.03em; margin: 0; }
.cab p { margin: .25rem 0 0; color: var(--txt-50); font-size: .85rem; }
.linea { height: 1px; background: var(--line-2); margin: 1rem 0; }
.sep { display: flex; gap: 2rem; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line-2); font-size: .84rem; }
.kv span:first-child { color: var(--txt-50); }
.oculto { display: none !important; }
.centro { display: grid; place-items: center; min-height: 50vh; color: var(--txt-50); font-size: .9rem; }

/* ---------- DESCARTADO: cinta policial roja (/////) ---------- */
tr.descartada td { position: relative; color: var(--txt-40); }
tr.descartada td:not(:first-child):not(:last-child) { color: var(--txt-40); }
tr.descartada td[data-cinta]::after,
tr.desc-directo td[data-cinta]::after {
  content: attr(data-cinta);
  position: absolute; inset: -2px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .62rem; font-weight: 800; letter-spacing: .22em;
  color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  pointer-events: none; overflow: hidden; white-space: nowrap;
  background-color: rgba(220, 20, 40, .30);
  background-image: repeating-linear-gradient(-45deg,
    rgba(255, 40, 60, .55) 0 10px,
    rgba(120, 0, 12, .12) 10px 20px);
  background-size: 28.28px 28.28px;
  animation: cinta-mover 1.6s linear infinite;
  mix-blend-mode: screen;
}
tr.descartada td[data-cinta] { color: transparent !important; }
tr.descartada td[data-cinta] .celda-persona { opacity: .35; }
tr.descartada { cursor: default; }
tr.desc-directo td[data-cinta] { position: relative; }
tr.desc-directo td[data-cinta]::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(220, 20, 40, .10); pointer-events: none;
}
@keyframes cinta-mover { from { background-position: 0 0; } to { background-position: 28.28px 0; } }
@media (prefers-reduced-motion: reduce) { tr.descartada td[data-cinta]::after { animation: none; } }
.chip.desc { color: #ff8b96; background: rgba(255, 40, 60, .10); border: 1px solid rgba(255, 40, 60, .28); }

/* ---------- logo de cada perfil (favicon de Chase) ---------- */
.celda-persona .inicial.logo-perfil {
  background: #fff; color: transparent; overflow: hidden; padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .35);
  display: inline-flex; align-items: center; justify-content: center;
}
.celda-persona .inicial.logo-perfil img { width: 62%; height: 62%; object-fit: contain; }
.logo-perfil-grande { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); }


/* ===== MOVIL ===== */
.menu-btn { display: none; }

@media (max-width: 900px) {
  /* barra: logo + hamburguesa a la izquierda, avatar/salir a la derecha */
  .barra { padding: .6rem .85rem; gap: .5rem; }
  .barra-izq { gap: .6rem; flex: 1; min-width: 0; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 0 9px; border-radius: .6rem;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; width: 100%; background: var(--txt-70); border-radius: 2px; transition: transform .2s, opacity .2s; }
  body.menu-abierto .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-abierto .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-abierto .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* el menu se despliega como panel */
  .menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto;
    margin-top: 56px; padding: 1rem 1.1rem 1.4rem;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: rgba(20,20,23,.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
    z-index: 60; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  body.menu-abierto .menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu a, .menu button { padding: .8rem .3rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.04); }
  .menu a.activo::after { display: none; }
  .menu a.activo { color: var(--azul); }

  .barra-der { gap: .45rem; flex: 0 0 auto; }
  .barra-der .pastilla { padding: .35rem .5rem; font-size: .72rem; max-width: 9rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .barra-der .pastilla .avatar { width: 18px; height: 18px; font-size: .62rem; }
  .barra-der .btn.pq { padding: .45rem .6rem; font-size: .72rem; }

  /* contenido con menos margen */
  .contenido { padding: 1rem .8rem 3rem; }
  .rejilla { gap: .8rem; }
  .tarjeta { padding: 1rem; }

  /* todas las rejillas a una columna */
  .c2, .c3, .c4, .c-lado, .ficha-datos { grid-template-columns: 1fr !important; }

  /* pestanas con scroll horizontal comodo */
  .pestanas { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .pestanas button { flex: 0 0 auto; white-space: nowrap; }

  /* TABLAS -> tarjetas: se oculta la cabecera y cada fila es un bloque */
  .caja-tabla { max-height: none; border: 0; background: transparent; overflow: visible; }
  .caja-tabla table, .caja-tabla thead, .caja-tabla tbody, .caja-tabla tr, .caja-tabla td { display: block; width: 100%; }
  .caja-tabla thead { display: none; }
  .caja-tabla tr {
    background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: .9rem;
    margin-bottom: .6rem; padding: .3rem .8rem;
  }
  .caja-tabla td {
    border: 0; padding: .4rem 0; display: flex; justify-content: space-between; align-items: center; gap: .6rem;
    text-align: right;
  }
  .caja-tabla td + td { border-top: 1px solid rgba(255,255,255,.04); }
  .caja-tabla td::before {
    content: attr(data-etq);
    color: var(--txt-50); font-size: .72rem; text-align: left; flex: 0 0 auto;
    font-family: var(--fuente); font-weight: 600; letter-spacing: .02em;
  }
  .caja-tabla td[data-etq=""]::before, .caja-tabla td:empty::before { display: none; }
  .celda-persona { justify-content: flex-end; }

  /* modales a pantalla completa */
  .capa { padding: 0; align-items: stretch; }
  .modal, .modal-ancho, .modal-aprobado, .modal-aviso {
    width: 100% !important; max-width: 100% !important; max-height: 100vh;
    border-radius: 0; margin: 0; overflow-y: auto;
  }
  .modal-ancho .rejilla { grid-template-columns: 1fr; }

  /* campos tactiles (16px para que iOS no haga zoom) */
  input, select, textarea, .campo input, .campo select, .campo textarea { font-size: 16px; }
  .btn { padding: .7rem 1rem; }
  .fila { gap: .5rem; }

  /* login */
  .login-caja { max-width: 100%; }
}

@media (max-width: 420px) {
  .barra-der .pastilla { display: none; }
  .marca-txt small { display: none; }
  .contenido { padding: .8rem .6rem 2.5rem; }
}


/* ---------- cerrar el popup de aprobada ---------- */
.modal-aprobado { position: relative; }
.pop-cerrar {
  position: absolute; top: .7rem; right: .7rem; z-index: 5;
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  color: var(--txt-70); font-size: .95rem; cursor: pointer; line-height: 1;
  transition: background .15s, color .15s, transform .15s;
}
.pop-cerrar:hover { background: rgba(255,255,255,.16); color: #fff; transform: rotate(90deg); }
.capa-aprobado { cursor: pointer; }
.capa-aprobado .modal-aprobado { cursor: default; }
@media (max-width: 900px) {
  .pop-cerrar { width: 40px; height: 40px; top: .5rem; right: .5rem; font-size: 1.05rem; }
}
