/* Coroto · colores de FINA + disposición de Treinta */
:root {
  --primary: #620AFF; --primary-dark: #6900C7; --primary-soft: #7F56D9; --primary-light: #AB5AFF;
  --primary-tint: rgba(98, 9, 255, .12); --primary-tint-2: #F4F3FF; --pink: #FD37BE; --peach: #FFB470;
  --bg: #F6F7FB; --surface: #FFF; --text-strong: #212832; --text-label: #363D47; --text: #69707A;
  --text-muted: #A7AEB8; --border: #C6CCD5; --line: #EEF0F4;
  --success: #079455; --success-bg: rgba(0, 172, 105, .10); --danger: #D92D20; --danger-bg: rgba(240, 68, 56, .10);
  --warn: #B54708; --warn-bg: rgba(247, 144, 9, .12);
  --grad-warm: linear-gradient(220deg, #FFB470 -20%, #FD37BE 98%);
  --grad-brand: linear-gradient(95deg, #7B2BFF, #FD37BE);
  --radius-card: 18px; --radius-btn: 12px; --radius-input: 8px; --radius-pill: 999px;
  --shadow-card: 0 4px 12px rgba(16, 24, 40, .04); --shadow-glow: 0 6px 18px rgba(123, 43, 255, .26);
  --font: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 22px; font-weight: 600; color: var(--text-strong); margin: 0; }
h2 { font-size: 17px; font-weight: 600; color: var(--text-strong); margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 600; color: var(--text-strong); margin: 0; }
a { color: var(--primary); }
.oculto { display: none !important; }
.muted { color: var(--text-muted); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ── Estructura ── */
.app { display: flex; min-height: 100vh; }
.menu { width: 240px; flex-shrink: 0; background: var(--surface); margin: 12px; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 12px; height: calc(100vh - 24px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text-strong);
  padding: 0 6px 12px; }
.logo span { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 18px; }
.tasa-chip { background: var(--primary-tint-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.tasa-chip b { display: block; color: var(--text-strong); font-size: 18px; }
.tasa-chip small { color: var(--text); font-size: 12px; }
.menu-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  font-weight: 500; padding: 10px 8px 4px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text);
  text-decoration: none; font-weight: 500; }
.menu a:hover { background: var(--bg); }
.menu a.activo { background: var(--primary-tint); color: var(--primary); }
.menu a.pronto { color: var(--text-muted); pointer-events: none; }
.menu a.pronto::after { content: "Pronto"; margin-left: auto; font-size: 10px; background: var(--bg);
  border-radius: var(--radius-pill); padding: 2px 8px; }
.menu .pie { margin-top: auto; }
.menu .grupo::after { content: "›"; margin-left: auto; transition: transform .15s; }
.menu .grupo.abierto { color: var(--primary); }
.menu .grupo.abierto::after { transform: rotate(90deg); }
.submenu { display: none; flex-direction: column; gap: 2px; margin: 0 0 4px 22px; padding-left: 10px; border-left: 2px solid var(--primary-tint); }
.submenu.abierto { display: flex; }
.submenu a { padding: 8px 12px; font-size: 14px; }
.contenido { flex: 1; min-width: 0; padding: 24px 24px 80px 12px; }
.cabecera { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cabecera .acciones { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Botones ── */
.btn { border: 0; border-radius: var(--radius-btn); padding: 9px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; white-space: nowrap; }
.btn:disabled { background: #CDCDCD !important; color: #fff !important; opacity: .65; cursor: not-allowed; box-shadow: none; }
.btn-primario { background: var(--primary); color: #fff; }
.btn-primario:hover { background: var(--primary-dark); }
.btn-tint { background: var(--primary-tint); color: var(--primary); }
.btn-calido { background: var(--grad-warm); color: #fff; border-radius: 16px; }
.btn-marca { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-borde { background: var(--surface); border: 1px solid var(--border); color: var(--text-label); }
.btn-peligro { background: var(--danger-bg); color: var(--danger); }
.btn-link { background: none; color: var(--primary); padding: 6px 4px; min-height: 0; }
.btn-chico { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.btn-icono { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer;
  display: grid; place-items: center; font-size: 18px; color: var(--text-label); }

/* ── Interruptor $ ⇄ Bs ── */
.moneda { display: inline-flex; background: var(--surface); border-radius: var(--radius-pill); padding: 4px;
  box-shadow: var(--shadow-card); }
.moneda button { border: 0; background: none; border-radius: var(--radius-pill); padding: 6px 14px; font-weight: 600;
  cursor: pointer; color: var(--text); }
.moneda button.activo { background: var(--primary); color: #fff; }

/* ── Tarjetas ── */
.tarjeta { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 18px; }
.tarjeta + .tarjeta { margin-top: 16px; }
.rejilla-config { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.rejilla-config .tarjeta + .tarjeta { margin-top: 0; }
.kpi { border-left: 4px solid var(--primary); }

/* ── Buscador y chips ── */
.buscador { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-btn); padding: 0 12px; flex: 1; min-width: 220px; max-width: 520px; }
.buscador input { border: 0; outline: 0; padding: 11px 0; flex: 1; background: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.chip { border: 0; border-radius: var(--radius-pill); padding: 7px 14px; background: var(--surface); color: var(--text-label);
  font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-card); }
.chip.activo { background: var(--primary); color: #fff; }

/* ── Productos ── */
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.producto { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .15s; }
.producto:hover { border-color: var(--primary-tint); }
.producto .foto { aspect-ratio: 1; background: var(--primary-tint-2); display: grid; place-items: center; position: relative; }
.producto .foto img { width: 100%; height: 100%; object-fit: cover; }
.producto .foto .sin-foto { font-size: 40px; opacity: .45; }
.producto .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.producto .precio { font-size: 18px; font-weight: 700; color: var(--text-strong); }
.producto .nombre { color: var(--text-label); font-weight: 500; font-size: 14px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.producto .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.vacio { text-align: center; padding: 60px 20px; color: var(--text); }
.vacio .grande { font-size: 44px; }

.badge { display: inline-block; border-radius: var(--radius-pill); padding: 2px 10px; font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-agotado { background: var(--danger-bg); color: var(--danger); }
.badge-bajo { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--primary-tint-2); color: var(--primary); }
.badge-solido { background: var(--primary); color: #fff; }

/* ── Formularios ── */
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { color: var(--text-label); font-weight: 500; font-size: 14px; }
.campo .ayuda { color: var(--primary); font-size: 12px; }
.input, .campo input, .campo select, .campo textarea { width: 100%; border: 1px solid var(--border);
  border-radius: var(--radius-input); padding: 13px 14px; background: #fff; font-size: 15px; font-weight: 500; outline: 0; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.campo textarea { min-height: 76px; resize: vertical; }
.con-sufijo { position: relative; }
.con-sufijo input { padding-right: 46px; }
.con-sufijo span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .ancho { grid-column: 1 / -1; }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.interruptor input { appearance: none; width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--border);
  position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.interruptor input::after { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%;
  background: #fff; transition: transform .15s; }
.interruptor input:checked { background: var(--primary); }
.interruptor input:checked::after { transform: translateX(18px); }
.errores { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.errores ul { margin: 6px 0 0; padding-left: 18px; }
.opciones { display: flex; gap: 8px; flex-wrap: wrap; }
.opcion { border: 1px solid var(--border); background: #fff; border-radius: var(--radius-input); padding: 10px 14px;
  cursor: pointer; font-weight: 500; }
.opcion.activo { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }

/* Fotos */
.fotos { display: flex; gap: 10px; flex-wrap: wrap; }
.fotos .mini { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; background: var(--primary-tint-2); }
.fotos .mini img { width: 100%; height: 100%; object-fit: cover; }
.fotos .mini button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(33, 40, 50, .65); color: #fff; cursor: pointer; }
.fotos .agregar { width: 84px; height: 84px; border-radius: 12px; border: 2px dashed var(--border); display: grid;
  place-items: center; cursor: pointer; color: var(--primary); font-size: 26px; background: #fff; }

/* Variaciones en el formulario */
.var-fila { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; position: relative; }
.var-fila + .var-fila { margin-top: 10px; }
.var-fila .quitar { position: absolute; top: 8px; right: 8px; }

/* ── Tablas / listas ── */
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
  font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tabla td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .der { text-align: right; }
.desliza { overflow-x: auto; }
.pos { color: var(--success); font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }
.fila { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fila:last-child { border-bottom: 0; }
.fila .der { margin-left: auto; }

/* ── Modal ── */
.fondo-modal { position: fixed; inset: 0; background: rgba(33, 40, 50, .45); backdrop-filter: blur(3px); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--radius-card); width: 100%; max-width: 476px; padding: 22px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .18); }
.modal.grande { max-width: 760px; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.modal-cab h2 { margin: 0; font-size: 20px; color: var(--text-label); }
.modal-pie { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

/* Detalle de producto */
.detalle-top { display: flex; gap: 16px; flex-wrap: wrap; }
.detalle-top .galeria { display: flex; gap: 8px; }
.detalle-top .galeria img { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; }
.var-tarjeta { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 12px; }
.var-tarjeta .datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 10px 0; }
.var-tarjeta .datos div small { display: block; color: var(--text-muted); font-size: 12px; }
.var-tarjeta .datos div b { color: var(--text-strong); }
.precios-canal { display: flex; gap: 8px; flex-wrap: wrap; }
.precios-canal span { background: var(--primary-tint-2); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.precios-canal b { color: var(--text-strong); }

/* ── Avisos ── */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text-strong); color: #fff;
  border-radius: 14px; padding: 12px 18px; z-index: 80; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.error { background: var(--danger); }
.banner { background: var(--surface); border: 1px solid var(--primary); border-radius: var(--radius-card); padding: 14px 18px;
  margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ── Login ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(135deg, rgba(171, 90, 255, .11), rgba(98, 10, 255, .06)); }
.login .modal { box-shadow: var(--shadow-card); }
.login .logo { justify-content: center; font-size: 26px; padding-bottom: 6px; }

/* ── Etiquetas ── */
.etiquetas-vista { display: flex; flex-wrap: wrap; gap: 10px; }
.etiqueta { background: #fff; border: 1px dashed var(--border); display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; overflow: hidden; color: #000; font-family: Arial, sans-serif; padding: 1.2mm; }
.etiqueta .e-nombre { font-size: 7.5pt; font-weight: 700; line-height: 1.1; max-height: 2.3em; overflow: hidden; }
.etiqueta svg { max-width: 100%; height: auto; flex: 1; min-height: 0; }
.etiqueta .e-precio { font-size: 12pt; font-weight: 800; line-height: 1; }
#zona-impresion { display: none; }
@media print {
  body > *:not(#zona-impresion) { display: none !important; }
  #zona-impresion { display: block; }
  #zona-impresion .etiqueta { border: 0; break-after: page; page-break-after: always; }
}

/* ── Celular ── */
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .menu { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; margin: 0; border-radius: 18px 18px 0 0;
    flex-direction: row; padding: 6px; z-index: 40; justify-content: space-around; box-shadow: 0 -4px 16px rgba(16,24,40,.08); }
  .menu .logo, .menu .tasa-chip, .menu-titulo, .menu a.pronto, .menu .pie, .menu .grupo { display: none; }
  .submenu, .submenu.abierto { display: contents; }
  .menu a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 8px; }
  .contenido { padding: 16px 16px 96px; }
  .form { grid-template-columns: 1fr; }
  .productos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .tasa-movil { display: inline-block !important; }
}
.tasa-movil { display: none; }

/* Ajustes Fase 1: motos compatibles, ubicación, prefijos */
.producto .sirve { font-size: 12px; color: var(--text-label); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.motos-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 6px 8px; background: var(--surface); }
.motos-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.motos-input #motos-chips { display: contents; }
.motos-input input { flex: 1; min-width: 160px; border: 0 !important; box-shadow: none !important; padding: 6px 4px !important; background: transparent; outline: none; }
.moto { display: inline-flex; align-items: center; gap: 4px; background: var(--primary-tint-2); color: var(--primary); border-radius: var(--radius-pill); padding: 3px 4px 3px 10px; font-size: 13px; font-weight: 600; }
.moto button { border: 0; background: transparent; color: inherit; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; }
.campo textarea.corto { min-height: 52px; }
.mayus { text-transform: uppercase; }
.filtro-ubic { width: auto; max-width: 220px; }
.fila .prefijo { width: 76px; flex: 0 0 76px; text-align: center; }

/* ── Fase 2: Vender ── */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.barra { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.barra .buscador { flex: 1; max-width: none; min-width: 200px; }
.sel-canal { width: auto; font-weight: 600; }
.aviso-canal { background: var(--primary-tint-2); color: var(--text-label); border-radius: 12px; padding: 8px 14px; font-size: 13px; margin-bottom: 12px; }
.titulo-fila { font-size: 13px; font-weight: 700; color: var(--text-label); margin: 2px 0 8px; }
.mas-vendidos { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.mini-prod { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; border: 0; background: var(--surface); border-radius: 14px;
  padding: 8px 12px 8px 8px; box-shadow: var(--shadow-card); cursor: pointer; text-align: left; font-size: 12px; color: var(--text-label); max-width: 220px; }
.mini-prod img, .mini-prod i { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--primary-tint-2); display: grid; place-items: center; font-style: normal; flex-shrink: 0; }
.mini-prod b { display: block; color: var(--text-strong); font-size: 13px; }
.en-canasta { position: absolute; top: 8px; right: 8px; background: var(--primary); color: #fff; border-radius: var(--radius-pill);
  min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.canasta { background: var(--surface); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--shadow-card); position: sticky; top: 12px;
  max-height: calc(100vh - 24px); overflow-y: auto; }
.c-linea { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.c-nombre { color: var(--text-strong); font-weight: 600; }
.c-nombre .badge { margin-left: 4px; font-size: 10px; padding: 1px 6px; }
.c-cant { display: flex; align-items: center; gap: 4px; }
.c-cant .btn-icono { width: 26px; height: 26px; }
.c-total { color: var(--text-strong); min-width: 64px; text-align: right; }
.c-totales { display: flex; justify-content: space-between; align-items: end; margin: 14px 0; text-align: right; }
.c-totales b { font-size: 26px; color: var(--text-strong); }
.btn-cobrar { width: 100%; padding: 14px; font-size: 16px; }
.opciones-var { display: grid; gap: 8px; }
.opcion-var { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; }
.opcion-var b { flex: 1; color: var(--text-strong); }
.opcion-var:hover { border-color: var(--primary); }

/* Cobrar */
.cobro-total { display: flex; flex-direction: column; align-items: center; background: var(--primary-tint-2); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.cobro-total b { font-size: 30px; color: var(--text-strong); }
.pago-fila { display: grid; grid-template-columns: 1.1fr 1.1fr 0.8fr 1fr 28px; gap: 8px; align-items: center; margin-bottom: 8px; }
.cliente-elegido { display: flex; align-items: center; gap: 8px; background: var(--primary-tint-2); border-radius: 12px; padding: 8px 12px; }
.cliente-elegido span { flex: 1; }
.kpi-num { font-size: 24px; font-weight: 700; color: var(--text-strong); }
.tarjeta.kpi .datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tarjeta.kpi .datos small { display: block; color: var(--text-muted); font-size: 12px; }
.tarjeta.kpi .datos b { color: var(--text-strong); font-size: 18px; }
.chip input[type=date] { border: 0; background: transparent; font: inherit; color: inherit; }

/* Cliente: lista desplegable bajo el buscador */
.autocompletar { position: relative; flex: 1; }
.sugerencias { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; background: var(--surface); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .14); overflow: hidden; }
.sugerencias:empty { display: none; }
.sugerencia { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 14px; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); }
.sugerencia:hover, .sugerencia.marcada { background: var(--primary-tint-2); }
.sugerencia.vacia { cursor: default; color: var(--text); }
.plazo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.plazo label { font-weight: 600; color: var(--text-label); }
.plazo .input { width: 70px; text-align: center; }

/* Cuentas bancarias */
.tarjeta.ancha { grid-column: 1 / -1; }
.acciones-cuentas { display: flex; gap: 8px; flex-wrap: wrap; }
.cuentas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cuenta { cursor: pointer; transition: box-shadow .15s; }
.cuenta:hover { box-shadow: var(--shadow-glow); }
.cuenta-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cuenta-cab b { color: var(--text-strong); font-size: 16px; }
.cuenta-cab .btn-icono { margin-left: auto; }
.cuenta-cab .badge { background: var(--primary-tint-2); color: var(--primary); }
.cuenta-saldo { font-size: 26px; font-weight: 700; color: var(--text-strong); margin-top: 10px; }
.cuenta-metodos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chip-metodo { background: var(--bg); padding: 5px 6px 5px 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.chip-metodo button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 0 4px; }
.chip-metodo button:hover { color: var(--danger); }
.chip-mas { background: transparent; border: 1px dashed var(--border); font-size: 13px; padding: 5px 12px; }
.contador { margin-left: 4px; color: var(--warn); font-weight: 700; }

/* Por cobrar */
.deudor summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 15px; }
.deudor summary::-webkit-details-marker { display: none; }
.deudor summary::before { content: "›"; transition: transform .15s; color: var(--text-muted); }
.deudor[open] summary::before { transform: rotate(90deg); }
.deudor summary .der { margin-left: auto; font-size: 17px; color: var(--text-strong); }
.deudor { margin-bottom: 12px; }
.deuda { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); line-height: 1.7; }
.deuda-botones { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-aviso { background: #FEF7C3; color: #A15C07; }
.badge-alerta { background: var(--danger-bg); color: var(--danger); }
.fila select.input { width: auto; max-width: 180px; }

/* Recibo 80 mm */
.recibo { width: 72mm; font-family: "Courier New", monospace; font-size: 11px; color: #000; line-height: 1.35; }
.recibo hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.recibo .r-c { text-align: center; }
.recibo .r-l { display: flex; justify-content: space-between; gap: 8px; }
.recibo .r-total { font-weight: 700; font-size: 13px; }
.recibo-vista { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; justify-content: center; overflow-x: auto; }
@media print { #zona-impresion .recibo { margin: 0 auto; } }

@media (max-width: 860px) {
  .pos { grid-template-columns: 1fr; }
  .canasta { position: static; max-height: none; }
  .pago-fila { grid-template-columns: 1fr 1fr 28px; }
  .pago-fila > :nth-child(3) { grid-column: 1; }
  .pago-fila > :nth-child(4) { grid-column: 2; }
}
.campo .buscador input { border: 0; box-shadow: none; padding: 8px 0; }
.pago-cuenta { font-size: 13px; color: var(--text-label); background: var(--bg); border-radius: 10px; padding: 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
