/* =====================================================================
   HAKU TV · Estilo "glass" (vidrio) sobre fondo oscuro
   Sustituye a style.css dentro del sistema (la página de acceso sigue
   usando style.css). Todo el sistema se pinta desde este archivo.
   Colores principales: morado --v y verde fosforescente --g
   ===================================================================== */
:root {
  --g: #b8ff2c;            /* verde fosforescente */
  --v: #8b5cf6;            /* morado */
  --v-fuerte: #6d3df0;
  --fondo: #07060c;
  --texto: #ffffff;
  --gris-texto: rgba(255,255,255,.62);
  --borde: rgba(255,255,255,.12);
  --exito: #b8ff2c;
  --peligro: #ff8fa9;
  --morado-100: rgba(255,255,255,.10);
  --morado-600: #8b5cf6;
  --vidrio-1: rgba(255,255,255,.09);
  --vidrio-2: rgba(255,255,255,.03);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; min-height: 100%; background: var(--fondo); }
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--texto); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--g); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: inherit; color: #fff; letter-spacing: -.01em; }
h1 { font-size: 32px; font-weight: 600; margin: 0; line-height: 1.2; }
h2 { font-size: 22px; font-weight: 500; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--borde); }
::selection { background: var(--v); color: #fff; }

/* ---------- Fondo con difuminados ---------- */
.hk-app { position: relative; display: flex; min-height: 100vh; background: radial-gradient(120% 90% at 50% 0%, #120d22 0%, #07060c 62%); }
.hk-fondo { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 520px at 6% 4%, rgba(139,92,246,.40), transparent 70%),
    radial-gradient(460px 460px at 96% 14%, rgba(224,72,155,.16), transparent 70%),
    radial-gradient(560px 460px at 24% 100%, rgba(184,255,44,.14), transparent 70%),
    radial-gradient(420px 420px at 92% 96%, rgba(139,92,246,.26), transparent 70%); }

/* ---------- Barra lateral ---------- */
.hk-side { position: sticky; top: 0; z-index: 20; flex: 0 0 280px; width: 280px; height: 100vh; padding: 22px 16px 18px;
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; transition: flex-basis .22s ease, width .22s ease; }
.hk-logo { display: flex; align-items: center; gap: 12px; padding: 0 6px 18px; }
.hk-logo img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.hk-marca { font-size: 24px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; color: #fff; }
.hk-marca b { color: var(--g); font-weight: 700; }
.hk-contraer { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  color: #e9e3ff; background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.hk-contraer:hover { background: rgba(255,255,255,.22); }
.hk-contraer svg, .hk-ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hk-menu-titulo { font-size: 13px; color: var(--gris-texto); padding: 6px 8px 2px; }
.hk-nav { display: flex; flex-direction: column; gap: 6px; }
.hk-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 999px; border: 1px solid transparent; color: rgba(255,255,255,.68); font-size: 15px; white-space: nowrap; text-decoration: none; }
.hk-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.hk-item.activo { background: linear-gradient(150deg, rgba(255,255,255,.15), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.15); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px rgba(0,0,0,.3); color: #fff; font-weight: 500; }
.hk-item .hk-flecha { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #111; display: none; align-items: center; justify-content: center; flex: none; }
.hk-item.activo .hk-flecha { display: flex; }
.hk-item.activo .hk-pend { display: none; }
.hk-flecha svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hk-pend { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--g); color: #0b0b0b; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(184,255,44,.35); }
.hk-pie { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.hk-usuario { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); }
.hk-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0b0b0b; background: linear-gradient(140deg, var(--v), var(--g)); }
.hk-usuario strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.hk-usuario span { font-size: 12.5px; color: var(--gris-texto); }

/* ---------- Zona de contenido ---------- */
.hk-main { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; padding: 30px 34px 70px 14px; }
.hk-movil { display: none; }
.hk-overlay { display: none; }

/* ---------- Menú contraído (solo en pantallas grandes) ---------- */
@media (min-width: 901px) {
  html.nav-contraida .hk-side { flex-basis: 92px; width: 92px; align-items: center; }
  html.nav-contraida .hk-logo { padding: 0 0 18px; justify-content: center; }
  html.nav-contraida .hk-logo img { cursor: pointer; }
  html.nav-contraida .hk-marca, html.nav-contraida .hk-contraer, html.nav-contraida .hk-menu-titulo,
  html.nav-contraida .hk-txt, html.nav-contraida .hk-usuario > div, html.nav-contraida .hk-flecha { display: none !important; }
  html.nav-contraida .hk-item { width: 52px; height: 52px; padding: 0; justify-content: center; }
  html.nav-contraida .hk-pend { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; font-size: 11px; padding: 0 5px; }
  html.nav-contraida .hk-usuario { padding: 0; background: none; border: 0; }
}

/* ---------- Encabezado de página ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.topbar p { margin: 4px 0 0; color: var(--gris-texto); font-size: 14px; }

/* ---------- Tarjetas de vidrio ---------- */
.card, .glass { background: linear-gradient(150deg, var(--vidrio-1), var(--vidrio-2)); border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 60px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border-radius: 28px; padding: 24px 26px; margin-bottom: 20px; color: #fff; }
.card h3:first-child { margin-top: 0; }
.interior { background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 24px rgba(0,0,0,.30); border-radius: 22px; }
.seccion-titulo { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-texto); margin: 22px 0 10px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; display: flex; }
.btn-primario { background: var(--v); border-color: var(--v); box-shadow: 0 10px 28px rgba(139,92,246,.5); }
.btn-primario:hover { background: var(--v); filter: brightness(1.12); }
.btn-secundario { background: rgba(255,255,255,.07); }
.btn-whatsapp, .btn-lima { background: var(--g); border-color: var(--g); color: #0b0b0b; font-weight: 600; box-shadow: 0 10px 28px rgba(184,255,44,.25); }
.btn-whatsapp:hover, .btn-lima:hover { background: var(--g); color: #0b0b0b; filter: brightness(1.06); }
.btn-exito-outline { border-color: rgba(184,255,44,.45); color: var(--g); background: rgba(184,255,44,.07); }
.btn-exito-outline:hover { background: rgba(184,255,44,.16); color: var(--g); }
.btn-peligro-outline, .btn-peligro { border-color: rgba(255,105,140,.5); color: #ff8fa9; background: rgba(255,105,140,.08); }
.btn-peligro-outline:hover, .btn-peligro:hover { background: rgba(255,105,140,.18); color: #ff8fa9; }
.btn:focus-visible, .chip-filtro:focus-visible, .hk-item:focus-visible, .hk-contraer:focus-visible, a:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }

/* ---------- Formularios ---------- */
label, label.f { display: block; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.82); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%; max-width: 100%; padding: 11px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #fff; font-family: inherit; font-size: 14.5px; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
textarea { border-radius: 18px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.42); }
input:focus, select:focus, textarea:focus { border-color: var(--g); box-shadow: none; outline: none; }
select option { background: #1a1428; color: #fff; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--g); }
input[readonly] { opacity: .8; }
.campo { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Avisos ---------- */
.alerta-caja { padding: 14px 18px; border-radius: 18px; margin-bottom: 18px; font-size: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.alerta-error { background: rgba(255,92,120,.12); border-color: rgba(255,92,120,.4); color: #ffb3c2; }
.alerta-exito { background: rgba(184,255,44,.10); border-color: rgba(184,255,44,.4); color: #d7ff8a; }
.alerta-info { background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.45); color: #d6c8ff; }
.alerta-aviso { background: rgba(255,184,64,.12); border-color: rgba(255,184,64,.4); color: #ffd48a; }

/* ---------- Filtros (pastillas) y buscador ---------- */
.filtro-fechas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; align-items: center; }
.filtro-sep { width: 14px; flex: none; }
@media (max-width: 560px) { .filtro-sep { display: none; } }
.chip-filtro { display: inline-flex; align-items: center; padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.75); font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; }
.chip-filtro:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.chip-filtro.activo { background: var(--v); border-color: var(--v); color: #fff; box-shadow: 0 8px 24px rgba(139,92,246,.45); }
.buscador { margin: 6px 0 18px; }
.buscador .caja { position: relative; display: block; margin: 0; }
.buscador svg { display: none; }
.buscador input[type=text] { height: 50px; padding: 0 22px 0 56px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); outline: none; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2dcf5' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 22px center / 20px 20px,
    linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); }
.buscador input[type=text]:focus { border-color: var(--g); box-shadow: none; outline: none; }

/* ---------- Tablas simples (balance, reemplazo, plantillas...) ---------- */
.tabla-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla-wrap table, table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-texto); padding: 10px 14px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

/* ---------- Detalles reutilizables ---------- */
.badge { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; background: rgba(255,255,255,.12); color: #fff; }
.est-nuevo { background: rgba(184,255,44,.18); color: var(--g); }
.est-renovo { background: rgba(255,184,64,.18); color: #ffcb6b; }
.est-anadio { background: rgba(96,165,250,.20); color: #9ec9ff; }
.est-cambio { background: rgba(205,150,100,.22); color: #f0c29a; }
.est-regreso { background: rgba(255,105,140,.18); color: #ffa3b8; }
.est-inactivo, .est-llena { background: rgba(255,92,92,.22); color: #ff9d9d; }
.est-libre { background: rgba(96,165,250,.20); color: #9ec9ff; }
.est-casi { background: rgba(255,184,64,.18); color: #ffcb6b; }
.est-caida { background: rgba(139,92,246,.28); color: #d0bcff; }
.est-inactiva { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.pill-plataforma { display: inline-flex; align-items: center; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.pill-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 9px; flex: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: rgba(255,255,255,.82); line-height: 1.6; overflow-wrap: anywhere; }
.et { color: var(--gris-texto); }
.fecha-ok { color: var(--g); font-weight: 600; }
.fecha-porvencer { color: #ffcb6b; font-weight: 600; }
.fecha-vencida { color: #ff8fa9; font-weight: 600; }
.chip-nota { display: inline-block; padding: 3px 9px; border-radius: 8px; background: rgba(184,255,44,.16); color: var(--g); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.copiar-num { white-space: nowrap; background: none; border: 0; padding: 2px 6px; margin: -2px -6px; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; text-align: left; }
.copiar-num:hover { background: rgba(255,255,255,.12); }
.copiar-num.copiado { background: rgba(184,255,44,.18); color: var(--g); font-weight: 600; }
.btn-copiar.copiado { background: #fff; border-color: #fff; color: #0b0b0b; }

/* ---------- Tarjetas de números (resumen / balance) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.10); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.4);
  border-radius: 24px; padding: 20px 22px; }
.kpi .valor { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.kpi .etiqueta { font-size: 13px; color: var(--gris-texto); margin-top: 4px; }

/* ---------- Páginas con estilo propio (formularios) ---------- */
.hk-app .bloque { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 20px !important; }
.hk-app .t-plat { color: #fff !important; }
.hk-app .t-perfil, .hk-app .bloque-fechas { color: rgba(255,255,255,.55) !important; }
.hk-app .bloque-fechas .d-fin.fecha-ok { color: var(--g) !important; }
.hk-app .bloque-fechas .d-fin.fecha-porvencer { color: #ffcb6b !important; }
.hk-app .bloque-fechas .d-fin.fecha-vencida { color: #ff8fa9 !important; }
.hk-app .bloque-quitar { border-radius: 999px !important; background: rgba(255,92,120,.85) !important; }
.hk-app .bloque-deshacer { background: rgba(255,255,255,.08) !important; color: #fff !important; border-color: rgba(255,255,255,.18) !important; border-radius: 999px !important; }
.hk-app .aviso-no, .hk-app .aviso-llena, .hk-app .aviso-cuenta { color: #ffb3c2 !important; }
.hk-app #resumen-total { background: linear-gradient(150deg, rgba(139,92,246,.22), rgba(139,92,246,.08)) !important; border-color: rgba(139,92,246,.45) !important; border-radius: 20px !important; }
.hk-app .renov-item { border-radius: 20px !important; background: rgba(255,255,255,.04); }
.hk-app summary { color: #fff; }

/* ---------- Botón flotante "subir" ---------- */
.btn-subir { position: fixed; right: 26px; bottom: 26px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: var(--v); color: #fff; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 26px rgba(139,92,246,.5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.btn-subir.ver { opacity: 1; transform: translateY(0); pointer-events: auto; }
.btn-subir svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================================
   LISTAS DE CLIENTES Y CUENTAS: columnas con una sola cabecera arriba
   (si la pantalla es angosta, la lista se desplaza hacia el lado)
   ===================================================================== */
.hk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.hk-tabla { min-width: 960px; }
.hk-lista { display: flex; flex-direction: column; gap: 12px; }
.hk-cab { padding: 4px 19px 12px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gris-texto); }
.hk-sin-datos { text-align: center; color: var(--gris-texto); padding: 34px 10px; }
.hk-fila, .cu-fila { font-size: 13px; }
.nw { white-space: nowrap; }
.hk-fila .badge, .cu-fila .badge { padding: 4px 10px; font-size: 10.5px; }
.btn-cobrar { white-space: nowrap; text-align: center; }

/* ----- Clientes: Fecha | Cliente | Plataforma / Perfil | Correo / Contrasena / PIN | Precio / Estado | Acciones ----- */
.hk-cab-cli, .hk-fila { display: grid; grid-template-columns: 84px 132px minmax(0, 1fr) 164px; gap: 0 16px; }
.hk-tabla.sin-acc .hk-cab-cli, .hk-tabla.sin-acc .hk-fila { grid-template-columns: 84px 132px minmax(0, 1fr); }
.hk-fila { padding: 16px 18px; align-items: start; }
.hk-fila.nueva-fecha { margin-top: 10px; }
.hk-cab-cli .pl { padding-left: 16px; }
.hk-fecha { line-height: 1.7; }
.hk-cliente { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.1); min-width: 0; }
.hk-cliente strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.hk-cliente .copiar-num { font-size: 12px; color: var(--gris-texto); }
.hk-items { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.1); min-width: 0; }
.hk-cab-items, .hk-item-p { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.3fr) 150px; gap: 8px 14px; padding-left: 16px; }
.hk-cab-items .ctr { text-align: center; white-space: nowrap; }
.hk-item-p { align-items: start; }
.hk-item-p + .hk-item-p { border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding-top: 10px; }
.hk-item-p .perfil { color: var(--gris-texto); font-size: 12px; margin-left: 19px; }
.pill-plataforma { font-size: 13.5px; }
.mono { font-size: 12px; }
.hk-precio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.hk-precio small { font-size: 11px; color: var(--g); font-weight: 400; }
.hk-acc { display: grid; grid-template-columns: 1fr; gap: 8px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.1); align-self: stretch; align-content: start; }
.hk-acc form { margin: 0; display: contents; }
.hk-acc .btn { width: 100%; padding: 8px 14px; font-size: 12.5px; }
.hk-acc .fila-top { display: flex; gap: 8px; }
.hk-acc .fila-top .btn { width: auto; flex: 0 0 auto; }
.hk-acc .fila-top .btn-cobrar { flex: 1 1 auto; min-width: 70px; }

/* ----- Cuentas: Fechas | Plataforma | Accesos | Proveedor | Perfiles | Límite | Costo / Estado | Acciones ----- */
.cu-cab, .cu-fila { display: grid; grid-template-columns: 84px 104px minmax(0, 1.25fr) 80px minmax(0, 1fr) 78px 112px 108px; gap: 10px; }
.cu-fila { padding: 16px 18px; align-items: start; }
.cu-fila.nueva-fecha { margin-top: 10px; }
.cu-c { min-width: 0; }
.cu-fecha { line-height: 1.7; }
.cu-ce { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; white-space: nowrap; }
.cu-nota { display: block; margin-top: 6px; font-size: 11.5px; color: var(--gris-texto); }
.cu-acc { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: start; }
.cu-acc form { margin: 0; display: contents; }
.cu-acc .btn { width: 100%; padding: 8px 12px; font-size: 12.5px; }

/* ----- Celular: Clientes pasa a tarjetas apiladas (Cuentas sigue en columnas y se desliza) ----- */
@media (max-width: 760px) {
  .hk-tabla.clientes { min-width: 0; }
  .hk-tabla.clientes .hk-cab-cli { display: none; }
  .hk-tabla.clientes .hk-fila { grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 16px; }
  .hk-tabla.clientes .hk-items { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
  .hk-tabla.clientes .hk-item-p { grid-template-columns: 1fr auto; padding-left: 0; }
  .hk-tabla.clientes .hk-item-p .mono { grid-column: 1 / -1; order: 3; }
  .hk-tabla.clientes .hk-precio { align-items: flex-end; }
  .hk-tabla.clientes .hk-acc { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 12px 0 0; }
  .hk-tabla.clientes .hk-acc .fila-top { display: contents; }
  .hk-tabla.clientes .hk-acc .fila-top .btn { width: 100%; }
}

/* ---------- Pantallas pequeñas: menú lateral como cajón ---------- */
@media (max-width: 900px) {
  .hk-app { display: block; }
  .hk-movil { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: rgba(12,9,22,.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
  .hk-movil button { width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
  .hk-movil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .hk-movil img { width: 34px; height: 34px; object-fit: contain; }
  .hk-movil .hk-marca { font-size: 20px; }
  .hk-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 292px; max-width: 86vw; height: 100%; transform: translateX(-105%); transition: transform .25s ease;
    background: linear-gradient(180deg, #17102b, #0b0814); border-right: 1px solid rgba(255,255,255,.1); box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  html.hk-menu-abierto .hk-side { transform: none; }
  .hk-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: block; opacity: 0; pointer-events: none; transition: opacity .25s; }
  html.hk-menu-abierto .hk-overlay { opacity: 1; pointer-events: auto; }
  html.hk-menu-abierto { overflow: hidden; }
  .hk-contraer { display: none; }
  .hk-main { padding: 20px 16px 70px; }
  h1 { font-size: 26px; }
  .card, .glass { padding: 18px 16px; border-radius: 24px; }
  .btn-subir { right: 16px; bottom: 16px; }
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .chip-filtro { padding: 8px 16px; }
}

/* Formularios de Nuevo cliente / Nueva cuenta: ocupan todo el ancho */
.hk-app .card[style*="max-width:640px"], .hk-app .card[style*="max-width:680px"], .hk-app .card[style*="max-width: 640px"], .hk-app .card[style*="max-width: 680px"] { max-width: none !important; }
.hk-app .card:has(form[action="guardar.php"]) { max-width: none !important; width: 100% !important; }
