/* Recepción Premier FIT. Patrones de Odoo (facetas, ficha con etapas y botones inteligentes) con aspecto moderno:
   tarjetas con radio, sombras suaves, más aire, Inter. Encabezados de tabla sólidos (regla NODO de contraste). */
:root {
  --acento: #682F96; --acento-osc: #4E2372; --acento-claro: #F3ECF8; --acento-borde: #D9C6E8;
  --txt: #1d1b22; --tenue: #6b6775; --borde: #e6e2ec; --borde-fuerte: #cfc9d8; --fondo: #f6f4f9; --blanco: #fff;
  --ok: #1f8a4c; --ok-claro: #e8f6ee; --alerta: #a86b00; --alerta-claro: #fff4dc; --peligro: #c0262d; --peligro-claro: #fdecec;
  --radio: 10px; --sombra: 0 1px 2px rgba(30, 10, 50, .05), 0 2px 8px rgba(30, 10, 50, .04);
}
* { box-sizing: border-box; }
@media screen { html { overflow: hidden; } }   /* app a pantalla completa: cada panel tiene su propio scroll; sin esto la ventana mostraba una barra por 3 px */
body { margin: 0; height: 100vh; display: flex; flex-direction: column; font: 13px/1.4 Inter, "Segoe UI", system-ui, sans-serif; color: var(--txt); background: var(--fondo); }
button { font: inherit; cursor: pointer; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.oculto { display: none !important; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tenue { color: var(--tenue); }
.link { color: var(--acento); cursor: pointer; font-weight: 500; }

/* Barra superior */
.top { height: 56px; background: var(--acento); color: #fff; display: flex; align-items: center; gap: 32px; padding: 0 24px; }
.top__logo { height: 24px; }
.top__tabs { display: flex; gap: 4px; }
.top__tabs button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #e9ddf3; padding: 8px 16px; border-radius: 8px; font-weight: 500; }
.top__tabs button svg { width: 22px; height: 22px; }
.top__tabs button:hover { background: rgba(255,255,255,.1); }
.top__tabs button.activo { background: rgba(255,255,255,.18); color: #fff; }
.top__der { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.chip-caja { background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.top__user { color: #e9ddf3; }

/* Layout */
.vista { flex: 1; display: flex; min-height: 0; gap: 16px; padding: 16px; }
.centro { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); border: 1px solid var(--borde); overflow: hidden; }
.panel-control { display: flex; align-items: center; gap: 16px; padding: 16px 16px 8px; }
.migas { font-size: 18px; font-weight: 600; min-width: 200px; }
.migas a { color: var(--acento); cursor: pointer; }
.vecinos { display: inline-flex; align-items: center; gap: 2px; margin-left: 12px; vertical-align: middle; font-size: 12px; font-weight: 500; color: var(--tenue); }
.vecinos small { font-size: 12px; min-width: 52px; text-align: center; }
.vecinos button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--borde); border-radius: 8px; background: var(--blanco); color: var(--acento); cursor: pointer; }
.vecinos button:hover:not(:disabled) { border-color: var(--acento); } .vecinos button:disabled { color: var(--borde-fuerte); cursor: default; }
.vecinos svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.buscador { flex: 1; max-width: 680px; display: flex; align-items: center; gap: 8px; height: 40px; border: 1px solid var(--borde-fuerte); border-radius: 8px; padding: 0 8px 0 12px; background: var(--blanco); color: var(--tenue); }
.buscador:focus-within { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-claro); }
.buscador input { flex: 1; min-width: 80px; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--txt); background: none; }
.faceta { display: inline-flex; align-items: center; gap: 4px; background: var(--acento-claro); color: var(--acento-osc); padding: 4px 8px; border-radius: 999px; white-space: nowrap; font-weight: 500; font-size: 12px; }
.faceta svg { width: 14px; height: 14px; }
.faceta b { cursor: pointer; padding: 0 2px; }
.lector { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--acento-osc); padding: 4px 8px; border-radius: 6px; font-weight: 500; }
.lector:hover { background: var(--acento-claro); }
.filtros { display: flex; gap: 8px; padding: 8px 16px 16px; flex-wrap: wrap; }
.recientes { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--tenue); } .recientes > svg { width: 16px; height: 16px; margin-right: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.recientes button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.recientes button:hover, .recientes button:focus-visible { border-color: var(--acento); }
.recientes button { position: relative; background: var(--blanco); } .recientes button + button { margin-left: -14px; } .recientes button:hover, .recientes button:focus-visible { z-index: 1; }   /* L47: caras apiladas; con 3 los filtros pasaban a 2 líneas a 1366 px */
@media (max-width: 1300px) { .filtros { gap: 6px; } .filtro svg { display: none; } }   /* L47: de 1180 a 1300 px tampoco entraban (debajo de 1180 Recientes ya se oculta) */
@media (max-width: 1239px) { .recientes { display: none !important; } } .recientes .foto.mini { width: 28px; height: 28px; margin: 0; font-size: 10px; }
.filtro { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--borde); background: var(--blanco); padding: 0 10px; height: 32px; border-radius: 999px; font-weight: 500; }
.filtro svg { width: 14px; height: 14px; color: var(--tenue); }
.filtro small { background: var(--fondo); color: var(--tenue); border-radius: 999px; padding: 0 8px; font-size: 11px; line-height: 18px; }
.filtro:hover { border-color: var(--acento-borde); }
.filtro.on { background: var(--acento-claro); border-color: var(--acento-borde); color: var(--acento-osc); }
.filtro.on svg { color: var(--acento); } .filtro.on small { background: var(--blanco); color: var(--acento-osc); }
.contenido { flex: 1; overflow: auto; padding: 0 16px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid var(--borde-fuerte); border-radius: 8px; background: var(--blanco); font-weight: 500; }
.btn:hover { border-color: var(--acento); color: var(--acento-osc); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--pri { background: var(--acento); color: #fff; border-color: var(--acento); font-weight: 600; }
.btn--pri:hover { background: var(--acento-osc); color: #fff; }
.btn--chico { height: 28px; padding: 0 12px; font-size: 12px; }

/* Grilla */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { position: sticky; top: 0; z-index: 1; background: var(--acento-osc); color: #fff; text-align: left; font-weight: 600; font-size: 12px; height: 36px; padding: 0 12px; }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
td { height: 44px; padding: 0 12px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: #faf8fc; }
tbody tr.sel td { background: var(--acento-claro); }
tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--acento); }
tr.vencido td.vence { color: var(--peligro); font-weight: 600; }
td.nombre { font-weight: 500; }
.t-socios .n2 { display: inline-grid; vertical-align: middle; line-height: 1.25; } .t-socios .n2 b { font-weight: 600; } .t-socios .n2 small { color: var(--tenue); font-size: 11px; font-weight: 400; }
.t-socios .badge { font-weight: 600; text-transform: capitalize; min-width: 76px; text-align: center; }
.t-socios td.debe { color: var(--peligro); font-weight: 600; } .t-socios td.tenue { color: var(--tenue); }
/* acciones flotando sobre el final de la fila: no ocupan ancho, así la tabla nunca hace scroll horizontal */
.t-socios td.rapidas { width: 0; padding: 0; position: relative; }
.t-socios td.rapidas > div { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; padding-left: 24px; background: inherit; visibility: hidden; }
.t-socios tr:hover td.rapidas > div, .t-socios tr.sel td.rapidas > div, .t-socios td.rapidas > div:focus-within { visibility: visible; }
@media (hover: none) { .t-socios td.rapidas > div { visibility: visible; } }
/* ventana angosta: primero se va el teléfono (está en la ficha), después el plan; nunca scroll horizontal */
/* Planes reales con nombres largos: se cortan con ... (el nombre completo en el title) */
.t-socios td.c-plan { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1240px) { .t-socios .c-tel { display: none; } }
@media (max-width: 1080px) { .t-socios .c-plan { display: none; } }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--acento-claro); color: var(--acento-osc); font-size: 11px; font-weight: 600; margin-right: 8px; vertical-align: middle; }
.badge { display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 500; border-radius: 999px; }
.b-activo { color: var(--ok); background: var(--ok-claro); } .b-por { color: var(--alerta); background: var(--alerta-claro); } .b-vencido { color: var(--peligro); background: var(--peligro-claro); }
.vacio { padding: 48px; text-align: center; color: var(--tenue); display: grid; gap: 16px; justify-items: center; }

/* Ficha */
.ficha { max-width: 1080px; margin: 0 auto; }
.ficha__acciones { display: flex; align-items: center; gap: 8px; padding: 0 0 16px; flex-wrap: wrap; }
.etapas { margin-left: auto; display: flex; background: var(--fondo); border-radius: 999px; padding: 4px; }
.etapas span { padding: 4px 16px; border-radius: 999px; color: var(--tenue); font-weight: 500; }
.etapas span.on { background: var(--acento); color: #fff; }
.ficha__aviso { padding: 10px 16px; display: flex; gap: 8px; align-items: center; border-radius: 8px; margin-bottom: 8px; font-weight: 500; }
.aviso-rojo { background: var(--peligro-claro); color: var(--peligro); } .aviso-ama { background: var(--alerta-claro); color: #7a5000; }
.inteligentes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.inteligentes div { padding: 12px 16px; border: 1px solid var(--borde); border-radius: 8px; }
.inteligentes b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.inteligentes span { color: var(--tenue); font-size: 12px; }
.ficha__cab { display: flex; gap: 24px; padding: 16px; border: 1px solid var(--borde); border-radius: var(--radio); }
.foto-col { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.foto { width: 96px; height: 96px; border-radius: 50%; background: var(--acento-claro); color: var(--acento); display: grid; place-items: center; font-size: 32px; font-weight: 600; border: 2px dashed var(--acento-borde); }
.foto.con { border: 0; background: linear-gradient(135deg, var(--acento), var(--acento-osc)); color: #fff; }
.ficha__datos { flex: 1; }
.ficha__cab h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.datos { display: grid; grid-template-columns: 96px 1fr 96px 1fr; gap: 6px 8px; margin: 0; }
.datos dt { color: var(--tenue); } .datos dd { margin: 0; font-weight: 500; }
.marcas { display: flex; gap: 16px; margin-top: 12px; }
.marca { color: var(--tenue); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; } .marca.si { color: var(--ok); font-weight: 500; }
.marca svg { width: 14px; height: 14px; stroke-width: 2.4; }
button.marca { border: 0; background: none; padding: 0 4px; line-height: 18px; height: 18px; border-radius: 6px; font: inherit; font-size: 12px; }
button.marca:not(.si) { color: var(--alerta); text-decoration: underline dotted; text-underline-offset: 3px; }
button.marca:hover { background: var(--acento-claro); }
.obs { width: 280px; border-radius: 8px; background: #fffaeb; padding: 12px; align-self: flex-start; }
.obs__tit { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); margin-bottom: 4px; display: flex; justify-content: space-between; }
.obs__tit a { color: var(--acento); cursor: pointer; text-transform: none; letter-spacing: 0; }
.pestanas { display: flex; gap: 4px; margin: 16px 0 8px; }
.pestanas button { background: none; border: 0; padding: 8px 16px; border-radius: 8px; font-weight: 500; color: var(--tenue); }
.pestanas button.on { background: var(--acento-claro); color: var(--acento-osc); }
tr.vigente td { background: var(--ok-claro); } tr.vigente small { color: var(--ok); font-weight: 600; }
tr.hueco td { color: var(--peligro); font-style: italic; background: repeating-linear-gradient(45deg, #fff, #fff 6px, #fdf3f3 6px, #fdf3f3 12px); height: 32px; }

/* Para hacer hoy */
.hoy { width: 320px; overflow: auto; }
.hoy h2 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.grupo-tarea { margin-bottom: 16px; }
.grupo-tarea h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tenue); display: flex; justify-content: space-between; }
.grupo-tarea h3 span { background: var(--blanco); border-radius: 999px; padding: 0 8px; }
.tarea { display: flex; gap: 12px; align-items: center; background: var(--blanco); border: 1px solid var(--borde); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; width: 100%; text-align: left; box-shadow: var(--sombra); }
.tarea::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--borde-fuerte); flex: none; }
.tarea:hover { border-color: var(--acento-borde); }
.tarea small { display: block; color: var(--tenue); }
.t-rojo::before { background: var(--peligro); } .t-ama::before { background: var(--alerta); } .t-vio::before { background: var(--acento); }

/* Caja */
.caja { flex: 1; overflow: auto; display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-content: start; }
.tarjeta { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.tarjeta h2 { margin: 0; padding: 16px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.tarjeta table { margin: 0 16px 16px; width: calc(100% - 32px); }
.caja tbody tr[data-id] { cursor: pointer; }
.resumen div { display: flex; justify-content: space-between; padding: 6px 16px; }
.resumen .total { border-top: 1px solid var(--borde); margin-top: 8px; font-weight: 600; font-size: 15px; padding: 12px 16px; }
.resumen .acc { display: flex; flex-direction: column; gap: 8px; padding: 16px; }

/* Venta de productos */
.venta-cat { display: flex; gap: 8px; padding: 0 16px 16px; flex-wrap: wrap; }
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.prod { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 12px; box-shadow: var(--sombra); }
.prod:hover { border-color: var(--acento-borde); transform: translateY(-1px); }
.prod:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.prod__ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--acento-claro); color: var(--acento); margin-bottom: 4px; }
.prod__ico svg { width: 22px; height: 22px; }
.prod b { font-weight: 600; }
.prod .precio { font-size: 15px; font-weight: 600; color: var(--acento-osc); }
.prod small { color: var(--tenue); } .prod small.bajo { color: var(--peligro); font-weight: 500; }
.ticket { width: 360px; display: flex; flex-direction: column; }
.ticket h2 { border-bottom: 1px solid var(--borde); }
.ticket__cli { padding: 12px 16px; display: grid; gap: 8px; border-bottom: 1px solid var(--borde); }
.ticket__cli input { height: 36px; border: 1px solid var(--borde-fuerte); border-radius: 8px; padding: 0 12px; font: inherit; }
.ticket__items { flex: 1; overflow: auto; padding: 8px 16px; min-height: 120px; }
.item { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.item small { display: block; color: var(--tenue); }
.cant { display: inline-flex; align-items: center; border: 1px solid var(--borde-fuerte); border-radius: 8px; overflow: hidden; }
.cant button { width: 28px; height: 28px; border: 0; background: var(--fondo); }
.cant span { min-width: 28px; text-align: center; font-weight: 600; }
.ticket__pie { padding: 16px; border-top: 1px solid var(--borde); display: grid; gap: 12px; }
.ticket__total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(29, 16, 40, .4); display: grid; place-items: center; z-index: 10; }
.modal__caja { background: var(--blanco); width: 520px; border-radius: 14px; box-shadow: 0 20px 50px rgba(30, 10, 50, .25); overflow: hidden; }
.modal__cab { padding: 16px 24px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--borde); }
.modal__cuerpo { padding: 16px 24px; display: grid; grid-template-columns: 136px 1fr; gap: 12px; align-items: center; }
.modal__cuerpo label { color: var(--tenue); }
.modal__cuerpo select, .modal__cuerpo input, .modal__cuerpo textarea { height: 36px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 12px; background: var(--blanco); }
.modal__cuerpo textarea { height: auto; padding: 8px 12px; }
.modal__cuerpo .check { display: flex; gap: 8px; align-items: center; color: var(--txt); }
.modal__cuerpo .check input { height: auto; }
.modal__total { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; border-top: 1px solid var(--borde); padding-top: 12px; }
.modal__pie { display: flex; justify-content: space-between; padding: 16px 24px; background: var(--fondo); }
.formas { display: flex; gap: 6px; }
.formas button { flex: 1; height: 36px; border: 1px solid var(--borde-fuerte); border-radius: 8px; background: var(--blanco); font-weight: 500; text-transform: capitalize; }
.formas button.on { background: var(--acento-claro); border-color: var(--acento); color: var(--acento-osc); }

.estado { height: 32px; display: flex; gap: 16px; align-items: center; padding: 0 24px; color: var(--tenue); font-size: 12px; }
.estado__der { margin-left: auto; }
.toast { position: fixed; bottom: 48px; left: 50%; transform: translateX(-50%); background: var(--ok); color: #fff; padding: 12px 20px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-weight: 500; z-index: 20; }

/* ===== Iteración 4: todo en una pantalla (objetivo 1366×641 sin scroll) ===== */
.top { height: 48px; }
.vista { padding: 12px; gap: 12px; }
.estado { height: 28px; }
.panel-control { padding: 12px 16px 8px; }
.buscador { height: 36px; }
.filtros { padding: 4px 16px 12px; }
.contenido { padding: 0 16px 12px; }
td { height: 40px; }

/* Fotos */
.foto { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--acento-claro); color: var(--acento-osc); font-weight: 600; flex: none; }
.foto.mini { width: 28px; height: 28px; font-size: 11px; margin-right: 8px; vertical-align: middle; }
.foto.grande { width: 128px; height: 128px; font-size: 40px; border: 0; }
.foto--vacia.grande { border: 2px dashed var(--acento-borde); }
.foto.grande:not(.foto--vacia) { box-shadow: 0 0 0 4px var(--blanco), 0 0 0 6px var(--acento-borde); }

/* Ficha en dos columnas */
.ficha2 { display: grid; grid-template-columns: 272px 1fr; gap: 16px; height: 100%; min-height: 0; }
.id { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border: 1px solid var(--borde); border-radius: var(--radio); background: linear-gradient(180deg, var(--acento-claro) 0, var(--blanco) 96px); min-height: 0; }
.id__foto { position: relative; }
.id__cam { position: absolute; right: 0; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--blanco); background: var(--acento); color: #fff; display: grid; place-items: center; padding: 0; }
.id__cam:hover { background: var(--acento-osc); }
.id h1 { margin: 4px 0 0; font-size: 18px; font-weight: 600; text-align: center; line-height: 1.2; }
.id .etapas { margin: 0; padding: 3px; }
.estrellas { display: flex; gap: 2px; justify-content: center; align-items: center; height: 16px; cursor: help; margin: -6px 0 -4px; }
.estrellas svg { width: 16px; height: 16px; fill: none; stroke: #c9c3d1; stroke-width: 1.6; stroke-linejoin: round; }
.estrellas svg.on { fill: #f0b000; stroke: #d39b00; }
.estrellas small { font-size: 11px; color: var(--tenue, #777); }
.id .etapas span { padding: 2px 10px; font-size: 12px; }
.etapas span.on.e-activo { background: var(--ok); } .etapas span.on.e-porvencer { background: var(--alerta); } .etapas span.on.e-vencido { background: var(--peligro); }
.id__datos { width: 100%; display: grid; grid-template-columns: 72px 1fr; gap: 4px 8px; margin: 4px 0 0; font-size: 12px; }
.id__datos dt { color: var(--tenue); } .id__datos dd { margin: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rojo, .rojo b { color: var(--peligro) !important; }
.id .marcas { margin: 0; gap: 12px; }
.id .obs { width: 100%; padding: 8px 12px; margin-top: 4px; }
.obs__txt { font-size: 12px; max-height: 36px; overflow: hidden; }

.det { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.det__acc { display: flex; gap: 8px; }
.det__acc .btn { height: 36px; padding: 0 12px; }
.det__acc .btn svg { width: 16px; height: 16px; }
.btn--icono { width: 36px; padding: 0 !important; margin-left: auto; }
.btn--marcado { border-color: var(--alerta); color: #7a5000; background: var(--alerta-claro); }
kbd { font: 600 10px Inter, sans-serif; background: rgba(255,255,255,.2); border-radius: 4px; padding: 1px 4px; }
.btn:not(.btn--pri) kbd { background: var(--fondo); color: var(--tenue); }
.avisos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* U9 veredicto: lo primero que se lee de la ficha */
.vered { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 8px; border-radius: 8px; border: 0; font: 500 12px Inter, sans-serif; margin-right: 4px; }
.vered svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vered b { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.vered span { opacity: .9; }
.vered i { font-style: normal; font-weight: 600; display: inline-flex; align-items: center; padding-left: 8px; border-left: 1px solid currentColor; }
.vered i svg { width: 14px; height: 14px; }
.v-si { background: var(--ok); color: #fff; } .v-ojo { background: var(--alerta-claro); color: #7a5000; box-shadow: inset 0 0 0 1px #e8c77a; } .v-no { background: var(--peligro); color: #fff; }
button.vered { cursor: pointer; } button.vered:hover { filter: brightness(1.08); }
.aviso { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.a-rojo { background: var(--peligro-claro); color: var(--peligro); } .a-ama { background: var(--alerta-claro); color: #7a5000; } .a-vio { background: var(--acento-claro); color: var(--acento-osc); }
/* Bloque superior minimalista (pedido 11/11): veredicto como barra fina arriba, secundarios en "⋯", avisos en una línea */
.avisos--vered { margin-bottom: 2px; }
.avisos--min { margin-top: 2px; gap: 4px 8px; }
.aviso--min { padding: 2px 9px; font-size: 11px; font-weight: 500; }
.acc-mas { position: relative; margin-left: auto; }
.acc-mas > summary { list-style: none; cursor: pointer; }
.acc-mas > summary::-webkit-details-marker { display: none; }
.acc-mas__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--blanco); border: 1px solid var(--borde); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); min-width: 164px; }
.acc-mas__menu .btn { justify-content: flex-start; height: 34px; border: 0; background: none; width: 100%; }
.acc-mas__menu .btn:hover { background: var(--fondo); }
.memb { min-height: 0; display: flex; flex-direction: column; }
.memb__tit { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 6px; }
.t-memb td:first-child { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* planes reales largos: se cortan con … (nombre completo en el title) */
.t-memb th { height: 30px; } .t-memb td { height: 34px; font-size: 12px; }
.t-memb td small.forma { display: block; color: var(--tenue); font-size: 10px; line-height: 1; }
.t-memb .badge { font-size: 11px; padding: 1px 8px; margin-right: 6px; }
.t-memb tr.hueco td { height: 26px; font-size: 11px; }
.modal--ancho { width: 860px; } .modal__tabla { grid-column: 1 / -1; max-height: 60vh; overflow: auto; }

/* Para hacer hoy: acordeón */
.hoy { width: 300px; display: flex; flex-direction: column; min-height: 0; }
.hoy h2 { margin: 0 0 8px; font-size: 15px; }
#tareas { overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.grupo { background: var(--blanco); border: 1px solid var(--borde); border-radius: 8px; overflow: hidden; flex: none; }
.grupo__cab { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 12px; font-weight: 600; font-size: 12px; text-align: left; }
.grupo__cab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--borde-fuerte); flex: none; }
.grupo__cab.t-rojo::before { background: var(--peligro); } .grupo__cab.t-ama::before { background: var(--alerta); } .grupo__cab.t-vio::before { background: var(--acento); }
.grupo__cab span { flex: 1; } .grupo__cab b { background: var(--fondo); border-radius: 999px; padding: 0 8px; font-size: 11px; }
.grupo__cab.abierto { background: var(--acento-claro); }
.hoy .tarea { margin: 0; border: 0; border-top: 1px solid var(--borde); border-radius: 0; box-shadow: none; padding: 6px 12px; gap: 0; }
.hoy .tarea::before { display: none; }
.hoy .tarea span:not(.foto) { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hoy .tarea small { margin-left: 8px; white-space: nowrap; }
.hoy .tarea:hover { background: #faf8fc; }
.ver-mas { display: block; padding: 6px 12px; border-top: 1px solid var(--borde); font-size: 12px; }
/* El anillo de la foto dice si puede pasar: verde activo, amarillo por vencer, rojo vencido */
.id__foto .foto.grande:not(.foto--vacia) { box-shadow: 0 0 0 4px var(--blanco), 0 0 0 7px var(--anillo, var(--acento-borde)); }
.anillo-activo { --anillo: var(--ok); } .anillo-porvencer { --anillo: var(--alerta); } .anillo-vencido { --anillo: var(--peligro); }
.btn--bloqueado { color: var(--tenue); border-style: dashed; }

/* ===== Modo puerta ===== */
.puerta { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; color: #fff; animation: entra .15s ease-out; }
@keyframes entra { from { opacity: 0; transform: scale(.98); } }
.p-si { background: radial-gradient(circle at 30% 40%, #2aa862, #146b39); }
.p-ojo { background: radial-gradient(circle at 30% 40%, #d99a1e, #8f5a00); }
.p-no { background: radial-gradient(circle at 30% 40%, #e0474e, #8c1219); }
.puerta__cab { display: flex; align-items: center; gap: 8px; padding: 16px 32px; font-weight: 500; opacity: .9; }
.puerta__cuerpo { flex: 1; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 0 48px 48px; }
.foto.enorme { width: 300px; height: 300px; font-size: 96px; border: 0; box-shadow: 0 0 0 8px rgba(255,255,255,.9), 0 24px 60px rgba(0,0,0,.3); }
.foto--vacia.enorme { background: rgba(255,255,255,.15); color: #fff; }
.puerta__info { max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.puerta__veredicto { display: flex; align-items: center; gap: 16px; font-size: 56px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.puerta__veredicto svg { width: 56px; height: 56px; stroke-width: 2.2; }
.puerta__motivo { font-size: 20px; font-weight: 500; opacity: .95; }
.puerta__nombre { font-size: 32px; font-weight: 600; margin-top: 16px; }
.puerta__plan { font-size: 15px; opacity: .85; }
.puerta__notas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.puerta__notas span { background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.puerta__acc { display: flex; gap: 12px; margin-top: 24px; }
.btn--xl { height: 48px; padding: 0 24px; font-size: 15px; }
.puerta .btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.puerta .btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.puerta .btn--pri { background: #fff; color: var(--txt); border-color: #fff; }
.puerta .btn--pri:hover { background: #f2f2f2; color: var(--txt); }
.puerta .btn--pri kbd { background: var(--fondo); color: var(--tenue); }
.otra-sede { background: var(--alerta-claro); color: #7a5000; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 500; }
/* E1: el aviso entra deslizando desde abajo */
.toast { animation: toast-entra .22s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ===== F0 Ingresos en vivo ===== */
.lado-tabs { display: flex; gap: 4px; margin-bottom: 8px; background: #ece8f1; border-radius: 10px; padding: 4px; }
.lado-tabs button { flex: 1; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--tenue); display: inline-flex; justify-content: center; gap: 6px; align-items: center; }
.lado-tabs button.on { background: var(--blanco); color: var(--txt); box-shadow: var(--sombra); }
.lado-tabs b:not(:empty) { background: var(--acento); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; }
#ingresos { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.seguir { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--tenue); padding: 0 4px; }
.ing-ultimo { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--blanco); border: 1px solid var(--borde); border-left: 4px solid var(--ok); border-radius: 10px; padding: 12px; box-shadow: var(--sombra); animation: ing-entra .35s cubic-bezier(.2, .8, .2, 1); }
.ing-ultimo.no { border-left-color: var(--peligro); background: var(--peligro-claro); }
.ing-ultimo b { display: block; font-size: 14px; } .ing-ultimo small { color: var(--tenue); }
.foto.media { width: 56px; height: 56px; font-size: 18px; }
@keyframes ing-entra { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.ing { display: flex; align-items: center; border: 0; background: var(--blanco); border-radius: 8px; padding: 6px 10px; text-align: left; }
.ing span:not(.foto) { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ing small { color: var(--tenue); margin-left: 8px; }
.ing:hover { background: var(--acento-claro); }
.ficha2.recien .id { animation: recien .8s ease-out; }
@keyframes recien { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, .55); } 100% { box-shadow: 0 0 0 16px rgba(31, 138, 76, 0); } }
.molinete { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--tenue); font-size: 12px; padding: 0; }
.molinete i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-claro); }
.molinete:hover { color: var(--acento); }

/* ===== Ocupación de la sede ===== */
.chip-ocup { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.14); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.chip-ocup i { width: 40px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.3) var(--p)); }
.chip-ocup.o-ocupado { background: #b77a00; } .chip-ocup.o-lleno { background: var(--peligro); animation: late 1.6s ease-in-out 3; }   /* 3 latidos y queda rojo: un halo infinito repinta sin parar por escritorio remoto */
@keyframes late { 50% { box-shadow: 0 0 0 4px rgba(255,255,255,.25); } }
.ocup { background: var(--blanco); border: 1px solid var(--borde); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.ocup__cab { display: flex; align-items: baseline; gap: 6px; } .ocup__cab b { font-size: 20px; }
.ocup__est { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.ocup__est.o-tranquilo { background: var(--ok-claro); color: var(--ok); } .ocup__est.o-ocupado { background: var(--alerta-claro); color: var(--alerta); } .ocup__est.o-lleno { background: var(--peligro-claro); color: var(--peligro); }
.ocup__barra { height: 6px; background: var(--fondo); border-radius: 3px; overflow: hidden; }
.ocup__barra i { display: block; height: 100%; border-radius: 3px; }
.ocup__barra.o-tranquilo i { background: var(--ok); } .ocup__barra.o-ocupado i { background: var(--alerta); } .ocup__barra.o-lleno i { background: var(--peligro); }
.ocup__horas { display: flex; align-items: flex-end; gap: 4px; height: 48px; border-bottom: 1px solid var(--borde); }
.ocup__horas span { flex: 1; height: 100%; position: relative; }
.ocup__horas i { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 2px 2px 0 0; }
.ocup__horas .tip { background: var(--acento-claro); } .ocup__horas .real { background: var(--acento); left: 25%; right: 25%; }
.ocup__horas span.ahora .tip { background: var(--acento-borde); } .ocup__horas span.ahora::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acento); }
.ocup__pie { display: flex; justify-content: space-between; font-size: 10px; color: var(--tenue); }
.ocup__ley { display: inline-flex; align-items: center; gap: 4px; } .ocup__ley i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; } .ocup__ley .l-real { background: var(--acento); } .ocup__ley .l-tip { background: var(--acento-claro); margin-left: 8px; }
.ocup small { font-size: 10px; }
.t-memb small.permiso { color: var(--acento); font-weight: 600; background: var(--acento-claro); border-radius: 999px; padding: 0 6px; }

/* CRM: bandeja de WhatsApp */
.tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #f0b000; color: #2a1a00; font-size: 11px; display: grid; place-items: center; }
.tab-n:empty { display: none; }
.crm { display: grid; grid-template-columns: 320px 1fr 280px; }
.crm > * { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); min-height: 0; display: flex; flex-direction: column; }
.crm-lista { padding: 12px; gap: 8px; }
.crm-busca { display: flex; align-items: center; gap: 8px; border: 1px solid var(--borde-fuerte); border-radius: 8px; padding: 0 12px; height: 36px; }
.crm-busca input { border: 0; outline: 0; flex: 1; font: inherit; }
.crm-filtros { display: flex; gap: 4px; flex-wrap: nowrap; }
.crm-filtros button { white-space: nowrap; border: 1px solid var(--borde); background: var(--blanco); border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.crm-filtros button.on { background: var(--acento); border-color: var(--acento); color: #fff; }
.crm-chats { overflow: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; }
.et { font-style: normal; font-size: 10px; padding: 1px 8px; border-radius: 999px; background: var(--fondo); color: var(--tenue); white-space: nowrap; }
.et-1 { background: #e7f0fb; color: #2c64a8; } .et-2 { background: var(--alerta-claro); color: var(--alerta); }
.et-3 { background: var(--ok-claro); color: var(--ok); } .et-4 { background: var(--peligro-claro); color: var(--peligro); }
.crm-contacto { padding: 16px; gap: 4px; }
.crm-contacto__cab { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; text-align: center; }
.crm-contacto__cab small { color: var(--tenue); }
.crm-tipo { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: var(--alerta-claro); color: var(--alerta); }
.crm-tipo.socio { background: var(--ok-claro); color: var(--ok); }
.crm-contacto label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); margin-top: 8px; }
.crm-contacto select { height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 8px; }
.crm-etiq { display: flex; flex-wrap: wrap; gap: 4px; }
.crm-etiq span { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: var(--acento-claro); color: var(--acento-osc); }
.crm-contacto__acc { margin: 16px 0 8px; display: grid; }
.crm-ident { color: var(--ok); font-weight: 600; }

/* Clases y reservas */
.clases { display: grid; grid-template-columns: 340px 1fr; }
.clases > section { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); min-height: 0; display: flex; flex-direction: column; }
.cl-lista { padding: 12px; gap: 4px; overflow: auto; }
.cl-tit { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); padding: 0 4px 4px; }
.cl-hor { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid transparent; background: none; border-radius: 8px; padding: 6px 8px; }
.cl-hor:hover { background: var(--fondo); }
.cl-hor.on { background: var(--acento-claro); border-color: var(--acento-borde); }
.cl-hor.m-terminada { opacity: .55; }
.cl-hor.m-encurso .cl-hora { color: var(--ok); }
.cl-hora { width: 44px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.2; }
.cl-hora small { color: var(--tenue); font-weight: 400; }
.cl-nom { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cl-nom small { color: var(--tenue); }
.cl-cupo { width: 56px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12px; }
.cl-cupo i { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acento) var(--p), var(--borde) var(--p)); }
.cl-cupo.lleno { color: var(--peligro); } .cl-cupo.lleno i { background: var(--peligro); }
.cl-det { padding: 16px; gap: 12px; }
.cl-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cl-cab h2 { margin: 0; font-size: 18px; font-weight: 600; }
.cl-agregar { position: relative; width: 320px; }
.cl-sug { position: absolute; top: 40px; left: 0; right: 0; z-index: 5; background: var(--blanco); border: 1px solid var(--borde); border-radius: 8px; box-shadow: 0 8px 24px rgba(30, 10, 50, .15); padding: 4px; }
.cl-sug button { display: flex; align-items: center; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 6px; text-align: left; }
.cl-sug button:hover, .cl-sug button.on { background: var(--acento-claro); }
.cl-sug span { flex: 1; } .cl-sug small { color: var(--tenue); }
.cl-tabla { overflow: auto; min-height: 0; }
.cl-tabla td { height: 32px; padding: 0 12px; border-bottom: 1px solid var(--borde); }
.cl-sep td { height: 32px; background: var(--alerta-claro); color: var(--alerta); font-size: 12px; font-weight: 600; }
.res-acc { display: flex; gap: 4px; justify-content: flex-end; align-items: center; height: 32px; }
.cl-tabla .btn--chico { height: 24px; }
.cl-tabla .foto.mini { width: 24px; height: 24px; }
.res-acc .btn--icono { margin-left: 4px; width: 28px; }
.res-acc .btn.on { background: var(--acento); color: #fff; border-color: var(--acento); }
.res-est { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: var(--fondo); color: var(--tenue); }
.res-presente { background: var(--ok-claro); color: var(--ok); } .res-ausente { background: var(--peligro-claro); color: var(--peligro); }
.res-espera { background: var(--alerta-claro); color: var(--alerta); }

/* CRM: embudo */
.crm-modo { display: flex; background: var(--fondo); border-radius: 999px; padding: 3px; align-self: flex-start; }
.crm-modo button { border: 0; background: none; border-radius: 999px; padding: 4px 16px; font-size: 12px; font-weight: 500; color: var(--tenue); }
.crm-modo button.on { background: var(--blanco); color: var(--acento); box-shadow: var(--sombra); }
.crm.embudo { display: flex; flex-direction: column; gap: 12px; }
.crm.embudo > * { background: none; border: 0; }
.emb-cab { display: flex !important; flex-direction: row !important; align-items: center; gap: 16px; }
.emb-cols { flex: 1; display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 12px; min-height: 0; }
.emb-col { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; transition: background .15s, border-color .15s; }
.emb-col.sobre { background: var(--acento-claro); border-color: var(--acento); }
.emb-col__cab { display: flex; justify-content: space-between; align-items: center; padding: 4px; }
.emb-col__cab .et { font-size: 12px; padding: 2px 10px; }
.emb-col__cab b { color: var(--tenue); font-size: 12px; }
.emb-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: 8px; padding: 8px; cursor: grab; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 4px; }
.emb-card:hover { border-color: var(--acento-borde); }
.emb-card.arrastra { opacity: .4; }
.emb-card__top { display: flex; align-items: center; }
.emb-card__top span:not(.foto) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emb-card__top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-card__top small { color: var(--tenue); font-size: 11px; }
.emb-card__top i { font-style: normal; background: var(--ok); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; font-size: 10px; display: grid; place-items: center; }
.emb-card__msg { color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-card__pie { display: flex; justify-content: space-between; align-items: center; }
.emb-card__pie u { text-decoration: none; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--acento-claro); color: var(--acento-osc); margin-right: 4px; }
.emb-card__pie button { border: 1px solid var(--borde); background: var(--blanco); border-radius: 6px; width: 24px; height: 24px; padding: 0; display: inline-grid; place-items: center; margin-left: 4px; }
.emb-card__pie button:hover { border-color: var(--acento); color: var(--acento); }
.emb-vacio { font-size: 12px; text-align: center; margin: 8px 0; }

/* CRM: seguimiento */
.seg-cols { flex: 1; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12px; min-height: 0; }
.seg-tit { color: var(--txt) !important; font-size: 13px !important; }
.seg-fila { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--borde); border-radius: 8px; }
.seg-fila .foto.mini { margin-right: 0; }
.seg-fila.hecho { background: var(--ok-claro); border-color: transparent; }
.seg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seg-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-txt small { color: var(--tenue); font-size: 11px; }
.seg-estr { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #a87a00; }
.seg-estr svg { width: 12px; height: 12px; fill: #f0b000; stroke: #d39b00; stroke-width: 1.4; }
.seg-ok { color: var(--ok); font-weight: 600; font-size: 11px; }
.seg-fila .btn--icono { margin-left: 0; width: 28px; }

/* Factura: opciones */
.b-anulada { color: var(--tenue); background: var(--fondo); text-decoration: line-through; }
.fila-in { display: flex; gap: 8px; } .fila-in input { flex: 1; min-width: 0; }
.anular { display: flex; flex-direction: column; gap: 4px; } .anular small { font-size: 11px; }
.btn--peligro { background: var(--peligro) !important; border-color: var(--peligro) !important; color: #fff !important; }

/* Membresía: cambiar o borrar */
.link-plan { color: inherit; cursor: pointer; text-decoration: underline dotted var(--borde-fuerte); text-underline-offset: 3px; }
.link-plan:hover { color: var(--acento); text-decoration-color: var(--acento); }
.seg2 { display: flex; gap: 16px; }

/* QR de la reserva */
.qr-caja { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-caja .qr { width: 168px; height: 168px; border: 1px solid var(--borde); border-radius: 8px; shape-rendering: crispEdges; }
.qr-caja small { font-size: 11px; font-family: Consolas, monospace; }
.qr-caja .qr path, .qr-caja .qr rect { stroke: none; }

/* Huella y rostro */
.bio-lect { display: flex; align-items: center; gap: 8px; }
.bio-lect i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--borde-fuerte); transition: background .2s, border-color .2s; }
.bio-lect i.ok { background: var(--ok); border-color: var(--ok); }
.bio-cam { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bio-cam svg { width: 240px; height: 180px; stroke: none; }
/* Registro facial: las 6 poses del sistema real */
.poses { display: flex; flex-wrap: wrap; gap: 6px; }
.poses i { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--borde-fuerte); font-size: 12px; font-style: normal; color: var(--tenue); transition: background .2s, border-color .2s, color .2s; }
.poses i::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--borde-fuerte); }
.poses i.ok { background: var(--ok-claro, #e9f8ee); border-color: var(--ok); color: var(--ok); }
.poses i.ok::before { background: var(--ok); border-color: var(--ok); }
/* Paso de biometría del alta: lista de 3 acciones grandes */
.enr-intro { grid-column: 1 / -1; margin: 0 0 4px; }
.enr-lista { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.enr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 10px; background: var(--blanco); cursor: pointer; text-align: left; }
.enr:hover { border-color: var(--acento-borde); background: var(--acento-claro); }
.enr > svg:first-child { width: 22px; height: 22px; flex: none; stroke: var(--acento); }
.enr-txt { flex: 1; display: flex; flex-direction: column; }
.enr-txt b { font-size: 14px; } .enr-txt small { color: var(--tenue); font-size: 12px; }
.enr > svg:last-child { width: 18px; height: 18px; flex: none; stroke: var(--borde-fuerte); }
.enr.si { border-color: var(--ok); background: var(--ok-claro, #e9f8ee); }
.enr.si > svg:first-child, .enr.si > svg:last-child { stroke: var(--ok); }
.id .marcas { gap: 4px; flex-wrap: nowrap; } .marca { white-space: nowrap; }

/* Gastos con categoría e impresión (ticketera 80 mm) */
.cat { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--alerta-claro); color: var(--alerta); }
#ticket { display: none; }
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body > *:not(#ticket) { display: none !important; }
  #ticket { display: block; width: 72mm; font: 11px/1.4 Consolas, "Courier New", monospace; color: #000; }
  .tk-tit { display: block; text-align: center; font-size: 13px; margin-bottom: 4px; }
  .tk-f { display: flex; justify-content: space-between; gap: 8px; }
  .tk-total { border-top: 1px dashed #000; margin-top: 4px; padding-top: 4px; font-weight: bold; }
  .tk-pie { text-align: center; font-size: 10px; margin-top: 8px; }
  .tk-firma { margin-top: 28px; border-top: 1px solid #000; text-align: center; }
  #ticket p { margin: 4px 0; }
}
.sug-cumple { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--acento-claro); color: var(--acento-osc); font-size: 12px; }
.sug-cumple span { flex: 1; }
.mini-link { font-size: 12px; }
.reglas { color: var(--tenue); font-weight: 400; font-size: 11px; }

/* Efectos E2-E5 (se apagan con prefers-reduced-motion) */
.anim-entra { animation: vista-entra .1s ease-out; }   /* rápida y solo opacidad: recepción tiene que sentirse instantánea */
@keyframes vista-entra { from { opacity: 0; } }
.grupo.abre .tarea { animation: tarea-abre .22s ease-out backwards; }
.grupo.abre .tarea:nth-child(3) { animation-delay: .03s; } .grupo.abre .tarea:nth-child(4) { animation-delay: .06s; }
.grupo.abre .tarea:nth-child(5) { animation-delay: .09s; } .grupo.abre .tarea:nth-child(6) { animation-delay: .12s; }
@keyframes tarea-abre { from { opacity: 0; transform: translateY(-6px); } }
tr.nueva td, tr.nuevo td { animation: fila-nueva 2s ease-out; }
@keyframes fila-nueva { 0%, 35% { background: #fff1bf; } }

/* Asistencia 30 días en la ficha: mini calendario + 3 datos */
/* U8: la asistencia va pegada a las membresías y crece con el alto libre (PWA instalada): días más grandes, sin hueco en el medio */
.asist { display: flex; gap: 24px; align-items: stretch; margin-top: 12px; flex: none; padding-top: 12px; border-top: 1px solid var(--borde); }
.asist__cal { width: 236px; flex: none; display: flex; flex-direction: column; gap: 3px; }
.asist__cal .asist__dias { grid-auto-rows: 18px; }
@media (min-height: 700px) { .asist__cal .asist__dias { grid-auto-rows: 26px; } .asist__dias i { font-size: 11px; } }
.asist__dias i { display: grid; place-items: center; }
.asist__sem, .asist__dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.asist__sem b { font-size: 10px; font-weight: 600; color: var(--tenue); text-align: center; }
.asist__dias i { min-height: 18px; border-radius: 4px; font: 500 10px/18px Inter, sans-serif; font-style: normal; text-align: center; color: var(--tenue); background: var(--fondo); }
.asist__dias i.si { background: var(--acento); color: #fff; }
.asist__dias i.fuera { background: none; color: var(--borde-fuerte); }
.asist__dias i.es-hoy { box-shadow: 0 0 0 2px var(--acento-borde); }
.asist__datos { flex: 1; align-content: start; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.asist__datos .memb__tit { grid-column: 1 / -1; }
.asist__datos div:not(.memb__tit) { display: flex; flex-direction: column; }
.asist__datos b { font-size: 16px; font-weight: 600; color: var(--txt); }
.asist__datos span { font-size: 11px; color: var(--tenue); }
/* Asistencia en el lateral izquierdo (pedido 11/11): apilada, a lo ancho de la ficha del socio */
.id .asist { flex-direction: column; gap: 10px; width: 100%; align-self: stretch; margin-top: 8px; }
.id .asist__cal { width: 100%; }
.id .asist__datos { gap: 6px 12px; }

/* U2 Acciones secundarias agrupadas: Cobrar e Ingreso dominan */
.acc-grupo { display: flex; border: 1px solid var(--borde); border-radius: 8px; background: var(--fondo); padding: 2px; gap: 2px; }
.acc-grupo .btn { border: 0; background: none; height: 32px !important; padding: 0 10px !important; color: var(--txt); font-weight: 500; border-radius: 6px; }
.acc-grupo .btn:hover { background: var(--blanco); box-shadow: var(--sombra); }
.acc-grupo .btn svg { color: var(--acento); }
.acc-grupo .btn--marcado { background: var(--alerta-claro); color: var(--alerta); }
.hoy-cumple { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--acento); color: #fff; }
.id__datos { gap: 2px 8px; line-height: 1.35; }
.id .foto.grande { width: 112px; height: 112px; font-size: 36px; } .id { gap: 6px; }

/* Fondo con fotos de Premier (del portal de socios): la app deja de ser toda blanca */
body { background: linear-gradient(rgba(38, 13, 60, .84), rgba(38, 13, 60, .92)), url(img/marca/fondo.jpg) center / cover, #2a1240; }   /* sin 'fixed': con fixed cada cuadro de animacion redibujaba la foto entera (por escritorio remoto se trababa); el body no scrollea */
.estado, .estado button { color: #dccbea; }
.seguir { color: #f1e8f8; }
.id { background: linear-gradient(rgba(78, 35, 114, .35), rgba(78, 35, 114, .55)) top / 100% 84px no-repeat, url(img/marca/portada.jpg) top / cover no-repeat, var(--blanco); background-size: 100% 84px, 100% 84px, auto; }
.emb-cab small.tenue { color: #dccbea; }
.tel-wa { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.tel-wa svg { width: 14px; height: 14px; }
.tel-wa:hover { color: #146b39; }

/* U5 Avisos con acción directa */
button.aviso { border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; padding: 3px 4px 3px 10px; }
button.aviso b { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-weight: 600; }
button.aviso b svg { width: 12px; height: 12px; stroke-width: 2.4; }
button.aviso:hover { border-color: currentColor; }
/* U13 guía de primer uso */
#guia { position: fixed; inset: 0; z-index: 900; }
.guia__foco { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(24, 12, 36, .58), 0 0 0 3px var(--acento) inset; pointer-events: none; }
.guia__burbuja { position: fixed; width: 320px; background: var(--blanco); color: var(--txt); border-radius: 12px; padding: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.3); display: grid; gap: 8px; }
.guia__burbuja small { color: var(--acento); font-weight: 600; font-size: 11px; } .guia__burbuja h3 { margin: 0; font-size: 16px; } .guia__burbuja p { margin: 0; font-size: 13px; line-height: 1.5; color: #3d3a45; }
.guia__burbuja > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.btn-guia { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; border: 0; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px 10px; color: #fff; font: 600 12px Inter, sans-serif; cursor: pointer; }
.btn-guia svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }


/* Barrido UX 07/11 */
.migas__n { color: var(--tenue); font-weight: 400; font-size: 14px; }
.debe-chip { display: block; margin-top: 2px; color: var(--peligro); font-size: 11px; font-weight: 600; }
.id .etapas { background: none; padding: 0; }
.estado > *, .estado button { white-space: nowrap; } .estado__der { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) {
  #btnNuevo span, .c-simular { display: none; } #btnNuevo { padding: 0 10px; gap: 0; }
  .filtros { gap: 6px; } .filtro { padding: 0 10px; gap: 6px; } .filtro svg { display: none; }
  /* shortcut: en ventana angosta no entran las caras recientes en la línea de filtros; se ocultan; volver a ponerlas si piden recientes en notebooks chicas */
  .recientes { display: none !important; }
}
.inv-n { font-variant-numeric: tabular-nums; }

/* ---------- CRM: chat con las formas de NODO CRM (WhatsApp) y los colores de Premier ---------- */
.crm { --wall: #f2edf6; --burb-yo: #ebdff5; --tick: #3d9bd6; }
.crm-lista__cab { display: flex; gap: 8px; } .crm-lista__cab .crm-busca { flex: 1; } .crm-nuevo { margin: 0; height: 36px; }
.crm-filtros { overflow-x: auto; scrollbar-width: none; } .crm-filtros button small { font-size: 10px; opacity: .75; }
.crm-selects { display: flex; gap: 6px; } .crm-selects select { flex: 1; min-width: 0; height: 28px; border: 1px solid var(--borde); border-radius: 8px; font: inherit; font-size: 12px; padding: 0 6px; color: var(--tenue); background: var(--blanco); }
.crm-chat { display: flex; align-items: flex-start; text-align: left; border: 0; border-left: 3px solid transparent; background: none; padding: 8px; border-radius: 8px; }
.crm-chat:hover { background: var(--fondo); } .crm-chat.on { background: var(--acento-claro); }
.crm-chat.demora { border-left-color: var(--peligro); }
.crm-chat .foto.mini { width: 40px; height: 40px; font-size: 13px; margin-right: 12px; flex: none; }
.crm-chat__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.crm-chat__l1, .crm-chat__l2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crm-chat__l1 b, .crm-chat__l2 small { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-chat__l1 small { color: var(--tenue); font-size: 11px; } .crm-chat__l1 small.nuevo { color: var(--ok); font-weight: 600; }
.crm-chat__l2 small { color: var(--tenue); } .crm-chat__l2 small svg { width: 14px; height: 14px; vertical-align: -3px; margin-right: 2px; }
.crm-chat__l2 i { font-style: normal; background: var(--ok); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.crm-chat mark { background: #fde68a; color: inherit; border-radius: 2px; }
.crm-chat__pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.pill { font-style: normal; font-size: 10px; padding: 1px 8px; border-radius: 999px; background: var(--fondo); color: var(--tenue); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.pill svg { width: 11px; height: 11px; } .pill--ambar { background: var(--alerta-claro); color: var(--alerta); } .pill--rojo { background: var(--peligro-claro); color: var(--peligro); font-weight: 600; }
.crm-vacio { color: var(--tenue); text-align: center; margin: 24px 0; }
.emb-card__msg svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }

.crm-conv { position: relative; overflow: hidden; }
.crm-conv__cab { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--borde); }
.crm-conv__nom { flex: 1; min-width: 0; display: flex; flex-direction: column; } .crm-conv__nom small { color: var(--tenue); }
.ventana { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ok-claro); color: var(--ok); white-space: nowrap; }
.ventana svg { width: 13px; height: 13px; } .ventana.poco { background: var(--alerta-claro); color: var(--alerta); } .ventana.cerrada { background: var(--peligro-claro); color: var(--peligro); }
.crm-falta { display: flex; align-items: center; gap: 8px; padding: 6px 16px; font-size: 12px; background: var(--alerta-claro); color: var(--alerta); }
.crm-falta .link { margin-left: auto; border: 0; background: none; font: inherit; font-weight: 600; }
.crm-msgs { flex: 1; overflow: auto; padding: 12px 6%; display: flex; flex-direction: column; gap: 2px; background-color: var(--wall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23682F96' stroke-opacity='.07' stroke-width='2'%3E%3Ccircle cx='20' cy='22' r='7'/%3E%3Cpath d='M70 15h22M76 9v12M86 9v12M14 80l12-8 12 8M80 70a10 10 0 1 0 20 0 10 10 0 1 0-20 0M50 100q8-10 16 0'/%3E%3C/svg%3E"); }
.dia { align-self: center; margin: 10px 0 6px; } .dia span { display: block; background: var(--blanco); color: var(--tenue); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px .5px rgba(30, 10, 50, .12); }
.msg { position: relative; max-width: 65%; padding: 6px 9px 4px; border-radius: 8px; background: var(--blanco); box-shadow: 0 1px .5px rgba(30, 10, 50, .13); align-self: flex-start; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.msg.cola { margin-top: 6px; } .msg--el.cola { border-top-left-radius: 0; } .msg--yo.cola { border-top-right-radius: 0; }
.msg--el.cola::before, .msg--yo.cola::before { content: ""; position: absolute; top: 0; width: 8px; height: 10px; background: inherit; }
.msg--el.cola::before { left: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%); } .msg--yo.cola::before { right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.msg--yo { align-self: flex-end; background: var(--burb-yo); }
.msg--stk { background: none !important; box-shadow: none; } .msg--stk::before { display: none; }
.msg--nota { align-self: center; max-width: 80%; margin: 8px 0; background: #fff7e0; border: 1px dashed #e0b44c; box-shadow: none; }
.nota__cab { display: flex; align-items: center; gap: 4px; color: var(--alerta); font-weight: 600; font-size: 11px; margin-bottom: 2px; } .nota__cab svg { width: 12px; height: 12px; }
.men { color: var(--acento); background: var(--acento-claro); border-radius: 4px; padding: 0 2px; }
.msg__quien { display: block; color: var(--acento); font-size: 12px; margin-bottom: 1px; }
.msg__reenv { display: flex; align-items: center; gap: 4px; color: var(--tenue); font-style: italic; font-size: 11px; } .msg__reenv svg { width: 12px; height: 12px; }
.msg__pie { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font-size: 10.5px; color: var(--tenue); white-space: nowrap; }
.msg__txt { white-space: pre-wrap; }
.tick { display: inline-flex; color: var(--tenue); } .tick svg { width: 15px; height: 15px; stroke-width: 2; } .tick.leido { color: var(--tick); }
.falla { display: inline-flex; align-items: center; gap: 2px; color: var(--peligro); font-weight: 600; } .falla svg { width: 12px; height: 12px; }
.msg__borr { color: var(--tenue); }
.msg__op { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: inherit; color: var(--tenue); display: grid; place-items: center; opacity: 0; }
.msg:hover .msg__op, .msg__op:focus-visible { opacity: 1; } .msg__op svg { width: 14px; height: 14px; }
.msg__reac { position: absolute; bottom: -12px; left: 8px; background: var(--blanco); border-radius: 999px; padding: 0 5px; font-size: 13px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.msg--yo .msg__reac { left: auto; right: 8px; } .msg:has(.msg__reac) { margin-bottom: 12px; }
.mop { position: absolute; z-index: 5; top: 26px; right: 0; min-width: 170px; background: var(--blanco); border-radius: 10px; box-shadow: 0 8px 24px rgba(30, 10, 50, .2); padding: 6px; display: flex; flex-direction: column; }
.msg--el .mop { right: auto; left: 0; }
.mop > button { border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 6px; font: inherit; } .mop > button:hover { background: var(--fondo); }
.mop__reac { display: flex; gap: 2px; padding-bottom: 4px; border-bottom: 1px solid var(--borde); margin-bottom: 4px; }
.mop__reac button { border: 0; background: none; font-size: 18px; border-radius: 50%; width: 30px; height: 30px; } .mop__reac button:hover, .mop__reac button.on { background: var(--acento-claro); }
.msg.marca { animation: marca 1.6s ease-out; } @keyframes marca { 0%, 40% { box-shadow: 0 0 0 4px var(--acento-borde); } }
.cita { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--acento); background: rgba(104, 47, 150, .07); border-radius: 6px; padding: 4px 8px; margin-bottom: 4px; font: inherit; font-size: 12px; }
.cita b { color: var(--acento); } .cita span { color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cita svg { width: 12px; height: 12px; vertical-align: -2px; }
.msg__img, .msg__vid { display: block; position: relative; border: 0; padding: 0; background: none; margin: -2px -5px 4px; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.msg__img img, .msg__vid img { display: block; max-width: 260px; max-height: 300px; }
.msg__video { display: block; max-width: 280px; border-radius: 6px; margin-bottom: 4px; }
.msg__vid i { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; }
.msg__vid i svg { width: 22px; height: 22px; fill: #fff; } .msg__vid small { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 11px; text-shadow: 0 1px 2px #000; }
.msg__stk { width: 130px; height: 130px; display: block; }
.msg__doc { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 8px 10px; margin-bottom: 4px; border-radius: 6px; background: rgba(104, 47, 150, .06); color: inherit; text-decoration: none; cursor: pointer; }
.msg__doc > svg { width: 28px; height: 28px; color: var(--peligro); } .msg__doc span { display: flex; flex-direction: column; min-width: 0; } .msg__doc small { color: var(--tenue); font-size: 11px; }
.audio { display: flex; align-items: center; gap: 8px; min-width: 220px; padding: 2px 0; }
.audio button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; flex: none; } .audio button svg { width: 14px; height: 14px; fill: #fff; stroke: none; }
.audio__barra { flex: 1; height: 4px; border-radius: 2px; background: var(--acento-borde); overflow: hidden; } .audio__barra i { display: block; height: 100%; background: var(--acento); }
.audio small { font-size: 11px; color: var(--tenue); font-variant-numeric: tabular-nums; }
.trb { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; } .trx { margin: 4px 0 0; font-size: 12.5px; font-style: italic; color: var(--tenue); }

.comp { border-top: 1px solid var(--borde); padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; position: relative; background: var(--blanco); }
.comp--nota { background: #fff7e0; }
.comp__fila, .comp__grab { display: flex; align-items: flex-end; gap: 4px; }
.comp__nota-tit { align-self: center; font-size: 11px; color: var(--alerta); margin-right: 4px; }
.comp__ico { width: 36px; height: 40px; border: 0; background: none; border-radius: 8px; color: var(--tenue); display: grid; place-items: center; flex: none; }
.comp__ico:hover { background: var(--fondo); color: var(--acento); } .comp__ico.on { color: var(--alerta); background: var(--alerta-claro); } .comp__ico svg { width: 20px; height: 20px; }
.comp textarea { flex: 1; resize: none; height: 40px; max-height: 160px; font: inherit; font-size: 13.5px; border: 1px solid var(--borde-fuerte); border-radius: 20px; padding: 10px 14px; outline: 0; background: var(--blanco); }
.comp textarea:focus { border-color: var(--acento); } .comp--nota textarea { border-color: #e0b44c; }
.comp__env, .comp__mic { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; flex: none; }
.comp__env svg, .comp__mic svg { width: 18px; height: 18px; }
.comp__fila .comp__env { display: none; } .comp--texto .comp__fila .comp__env, .comp--nota .comp__fila .comp__env { display: grid; }
.comp--texto .comp__mic, .comp--nota .comp__mic { display: none; } .comp--nota .comp__env { background: var(--alerta); }
.comp__grab { align-items: center; gap: 10px; } .comp__grab small { flex: 1; }
.grab__punto { width: 10px; height: 10px; border-radius: 50%; background: var(--peligro); animation: late-punto 1s infinite; } @keyframes late-punto { 50% { opacity: .25; } }   /* único infinito: solo opacidad, no repinta */
#grabT { font-variant-numeric: tabular-nums; font-weight: 600; }
.comp__resp { display: flex; align-items: center; gap: 6px; } .comp__resp .cita { margin: 0; } .comp__resp > button { border: 0; background: none; color: var(--tenue); width: 28px; height: 28px; }
.pop { position: absolute; bottom: 100%; left: 12px; z-index: 6; background: var(--blanco); border-radius: 12px; box-shadow: 0 8px 24px rgba(30, 10, 50, .2); padding: 6px; margin-bottom: 4px; }
.pop--qr { width: min(460px, 90%); max-height: 260px; overflow: auto; display: flex; flex-direction: column; }
.pop--qr button { display: grid; grid-template-columns: 110px 1fr; gap: 0 8px; text-align: left; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font: inherit; }
.pop--qr button b { color: var(--acento); } .pop--qr button small { grid-column: 1 / -1; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop--qr button.on, .pop--qr button:hover, .pop--men button.on, .pop--men button:hover { background: var(--acento-claro); }
.pop--men { display: flex; flex-direction: column; min-width: 160px; } .pop--men button { border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 6px; font: inherit; }
.pop--emo { display: grid; grid-template-columns: repeat(8, 34px); left: 120px; } .pop--emo button { border: 0; background: none; font-size: 20px; height: 34px; border-radius: 6px; } .pop--emo button:hover { background: var(--fondo); }
.pop--adj { left: 48px; display: flex; flex-direction: column; } .pop--adj button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 14px; border-radius: 8px; font: inherit; } .pop--adj button:hover { background: var(--fondo); } .pop--adj svg { width: 18px; height: 18px; color: var(--acento); }
.crm-cerrada { border-top: 1px solid var(--borde); padding: 10px 16px; display: flex; align-items: center; gap: 10px; background: var(--peligro-claro); color: var(--txt); font-size: 12px; }
.crm-cerrada > svg { color: var(--peligro); width: 18px; height: 18px; } .crm-cerrada span { flex: 1; }
.crm-drop { display: none; position: absolute; inset: 56px 8px 8px; border: 2px dashed var(--acento); border-radius: 12px; background: rgba(243, 236, 248, .92); color: var(--acento); font-weight: 600; font-size: 15px; place-items: center; z-index: 8; pointer-events: none; }
.crm-conv.drop .crm-drop { display: grid; }
.visor { position: fixed; inset: 0; z-index: 40; background: rgba(15, 8, 22, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; }
.visor img { max-width: 90vw; max-height: 80vh; border-radius: 6px; } .visor__x { position: absolute; top: 16px; right: 16px; border: 0; background: none; color: #fff; } .visor__x svg { width: 26px; height: 26px; }
.adj-prev { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; background: var(--fondo); border-radius: 8px; padding: 12px; }
.adj-prev img, .adj-prev video { max-height: 220px; max-width: 100%; border-radius: 6px; } .adj-aviso { grid-column: 1 / -1; }
.pl-vars { display: flex; gap: 6px; } .pl-vars input { flex: 1; min-width: 0; }
.pl-prev { background: #ebdff5; border-radius: 8px; padding: 10px 12px; font-size: 13px; } .pl-nota { grid-column: 1 / -1; }
.rv-lista { max-height: 200px; overflow: auto; display: flex; flex-direction: column; gap: 6px; } .modal__txt { grid-column: 1 / -1; margin: 0; }

.crm-contacto { overflow: auto; }
.crm-contacto__acc { margin: 8px 0; }
.fs { border-top: 1px solid var(--borde); padding: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.fs > summary { cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
.fs > summary::-webkit-details-marker { display: none; }
.fs > summary::after { content: "▾"; margin-left: auto; } .fs:not([open]) > summary::after { content: "▸"; }
.fs input, .fs textarea { border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 6px 8px; }
.fs .btn { align-self: flex-start; margin-top: 4px; } .crm-contacto .fs label:not(.tarea) { margin-top: 4px; }
.fs__fila { display: flex; gap: 6px; } .fs__fila select { flex: 1; min-width: 0; }
.crm-etiq span { display: inline-flex; align-items: center; gap: 2px; } .crm-etiq span button { border: 0; background: none; padding: 0; color: inherit; display: grid; } .crm-etiq span button svg { width: 11px; height: 11px; }
.crm-etiq .link { border: 0; background: none; font: inherit; font-size: 12px; }
.crm-contacto .tarea { display: flex; gap: 8px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--txt); margin: 0; }
.tarea span { display: flex; flex-direction: column; } .tarea small { color: var(--tenue); font-size: 11px; }
.tarea.vencida small { color: var(--peligro); font-weight: 600; } .tarea.hoy small { color: var(--alerta); font-weight: 600; } .tarea.hecha span { text-decoration: line-through; color: var(--tenue); }
.t-atajos { display: flex; gap: 4px; } .t-atajos button { flex: 1; border: 1px solid var(--borde); background: var(--blanco); border-radius: 999px; font-size: 11px; padding: 3px 0; }
.t-atajos button:hover { border-color: var(--acento); color: var(--acento); }
.act { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; } .act small { display: block; color: var(--tenue); font-size: 11px; }
/* El aviso no tapa el compositor del chat ni las acciones de abajo */
.toast { bottom: auto; top: 64px; } @keyframes toast-entra { from { opacity: 0; transform: translate(-50%, -12px); } }
.fs__c { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.crm-filtros { flex-wrap: wrap; overflow: visible; } .crm-filtros button { padding: 3px 10px; }
.comp textarea { box-sizing: border-box; line-height: 20px; padding: 9px 16px; overflow-y: hidden; scrollbar-width: thin; }

/* Embudo como NODO CRM: barras por etapa, matriz por responsable y lista de la etapa */
.emb-cab { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.emb-filtros { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.emb-filtros select { height: 30px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; font-size: 12px; padding: 0 8px; background: var(--blanco); }
.crm.embudo > .emb-panel { flex: 1; min-height: 0; overflow: auto; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 20px; display: block; }
.emb-panel > p { margin: 0 0 12px; }
.emb { border: 1px solid var(--borde); border-radius: 8px; overflow: hidden; }
.ef { display: grid; grid-template-columns: 160px minmax(0, 1fr) 96px 150px 150px; gap: 16px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--borde); cursor: pointer; }
.ef:hover, .ef.on { background: var(--acento-claro); } .ef.on { box-shadow: inset 3px 0 var(--acento); }
.ef.cab { cursor: default; font-size: 12px; color: #fff; font-weight: 600; background: var(--acento-osc); box-shadow: none; }
.ef b, .emb-lista h3 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ef b::before, .emb-lista h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.eb { position: relative; height: 28px; background: var(--fondo); border-radius: 6px; overflow: hidden; }
.eb i { display: block; height: 100%; background: color-mix(in srgb, var(--c) 32%, transparent); border-right: 3px solid var(--c); }
.eb span { position: absolute; left: 10px; top: 0; line-height: 28px; font-weight: 700; font-size: 14px; }
.ef .n, .hm .n, .t-emb .n { text-align: right; font-variant-numeric: tabular-nums; }
.tarde { color: var(--peligro); font-weight: 600; }
.emot { padding: 10px 16px; font-size: 12px; color: var(--tenue); background: var(--peligro-claro); } .emot b { color: var(--peligro); }
.emb-tit { margin: 24px 0 2px; font-size: 15px; } .emb-tit + p { margin: 0 0 8px; }
.hm, .t-emb { width: 100%; border-collapse: collapse; font-size: 13px; }
.hm th, .t-emb th { background: var(--acento-osc); color: #fff; font-weight: 600; font-size: 12px; text-align: left; padding: 8px 12px; }
.hm td, .t-emb td { padding: 8px 12px; border-bottom: 1px solid var(--borde); }
.hm td[data-ehm] { cursor: pointer; font-weight: 600; } .hm td[data-ehm]:hover { outline: 2px solid var(--acento); outline-offset: -2px; }
.emb-lista { margin-top: 24px; } .emb-lista__cab { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.emb-lista h3 { margin: 0; font-size: 15px; flex: 1; } .emb-lista .crm-busca { width: 260px; } .emb-lista .btn--icono { margin: 0; }
.t-emb tbody tr { cursor: pointer; } .t-emb tbody tr:hover { background: var(--acento-claro); }
.t-emb td svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.emb-cel { display: flex; align-items: center; gap: 10px; } .emb-cel > span { display: flex; flex-direction: column; } .emb-cel small { color: var(--tenue); font-size: 11px; }
.emb-cel .foto.mini { width: 32px; height: 32px; font-size: 11px; }

/* Configuración del CRM y sucursales */
.crm-yo { display: flex; align-items: center; gap: 6px; color: var(--tenue); font-size: 11px; } .crm-yo svg { width: 13px; height: 13px; }
.pill--ia { background: #efe7fb; color: #6d28d9; font-weight: 600; } .pill--ok { background: var(--ok-claro); color: var(--ok); }
.cfg-yo { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; }
.cfg-yo select { height: 30px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 8px; }
.crm.embudo > .emb-panel.cfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; background: none; border: 0; padding: 0; }
.cfg-card { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cfg-ancha { grid-column: 1 / -1; } .cfg-card h3 { margin: 0; font-size: 15px; } .cfg-card p { margin: 0; } .cfg-card p svg { width: 13px; height: 13px; vertical-align: -2px; }
.cfg-card__cab { display: flex; align-items: center; justify-content: space-between; } .cfg-card__cab .btn svg { width: 14px; height: 14px; }
.cfg-card input, .cfg-card textarea, .cfg-card select { border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 6px 10px; background: var(--blanco); }
.cfg-fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cfg-fila input { flex: 1; min-width: 200px; }
.cfg-clave { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: var(--ok-claro); color: var(--ok); } .cfg-clave svg { width: 14px; height: 14px; }
.cfg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; } .cfg-grid > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .cfg-grid small { display: block; }
.seg { align-self: flex-start; } .seg button { padding: 4px 12px; }
.cfg-lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tenue); } .cfg-col { flex-direction: column; align-items: stretch; } .cfg-col textarea { color: var(--txt); }
.cfg-aviso { background: var(--alerta-claro); color: var(--alerta); border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.cfg-t tbody tr[data-gedit] { cursor: pointer; } .cfg-t tbody tr[data-gedit]:hover { background: var(--acento-claro); }
.cfg-t td .btn--icono { margin: 0; } .cfg-txt { display: block; max-width: 640px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tenue); }
.cfg-etapas { display: flex; gap: 8px; flex-wrap: wrap; } .cfg-etapas span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--fondo); }
.cfg-etapas span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
#tCrm.pensando { color: var(--tenue); font-style: italic; }
.crm-modo__cfg { display: inline-flex; align-items: center; gap: 6px; } .crm-modo__cfg svg { width: 15px; height: 15px; }
.crm-lista .crm-modo button { padding: 4px 12px; } .crm-lista .crm-modo__cfg span { display: none; }

/* Vuelta CRM: filtros plegados, ficha compacta, no leídos */
.crm-lista__cab .crm-nuevo { position: relative; } .crm-nuevo.on { background: var(--acento-claro); border-color: var(--acento-borde); color: var(--acento); }
.crm-nfil { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--acento); color: #fff; font: 600 10px/16px Inter, sans-serif; font-style: normal; text-align: center; padding: 0 4px; }
.crm-contacto__cab { flex-direction: row; align-items: center; text-align: left; gap: 12px; margin-bottom: 4px; }
.crm-contacto__cab .foto.media { width: 48px; height: 48px; font-size: 16px; flex: none; }
.crm-contacto__id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; } .crm-contacto__id b { font-size: 14px; }
.crm-contacto__acc { margin: 4px 0 8px; }
.no-leidos { align-self: stretch; margin: 10px -7%; padding: 4px 0; background: rgba(104, 47, 150, .1); text-align: center; }
.no-leidos span { display: inline-block; background: var(--blanco); color: var(--acento); font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 8px; }
/* Los avisos no se estiran con textos largos (plantillas, adjuntos) */
.modal__cuerpo { grid-template-columns: 136px minmax(0, 1fr); } .modal__caja { max-width: calc(100vw - 32px); }
.pl-prev { overflow-wrap: anywhere; white-space: pre-wrap; } .pl-vars input { width: 0; }

/* Vuelta CRM 2: tareas, socio en la ficha, comprobante, borrador, aviso */
.crm-socio { display: grid; grid-template-columns: 88px 1fr; gap: 3px 8px; margin: 4px 0; font-size: 12px; } .crm-socio dt { color: var(--tenue); } .crm-socio dd { margin: 0; font-weight: 500; }
.crm-socio .ambar { color: var(--alerta); } .crm-socio__acc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.msg__pago { display: flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; font-size: 11px; } .msg__pago svg { width: 12px; height: 12px; }
.borr { color: var(--ok); font-weight: 600; }
.crm-modo__cfg { position: relative; }
#nCrm.late { animation: late-n .9s ease-out 2; } @keyframes late-n { 30% { transform: scale(1.5); } }
.crm.embudo > .emb-panel.tar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; background: none; border: 0; padding: 0; }
.tar-grupo { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.tar-grupo h3 { margin: 0 0 4px; font-size: 14px; } .tar-grupo h3 small { color: var(--tenue); font-weight: 400; }
.tar-fila { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--borde); }
.tar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tar-txt small { color: var(--tenue); font-size: 11px; }
.tar-fila.vencida .tar-txt small { color: var(--peligro); font-weight: 600; } .tar-fila.para-hoy .tar-txt small { color: var(--alerta); font-weight: 600; } .tar-fila.hecha .tar-txt b { text-decoration: line-through; color: var(--tenue); }
.tar-chat { display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; font: inherit; padding: 4px 8px; border-radius: 8px; } .tar-chat:hover { background: var(--acento-claro); }
.tar-chat > span { display: flex; flex-direction: column; font-size: 12px; } .tar-chat small { color: var(--tenue); font-size: 11px; } .tar-chat .foto.mini { width: 28px; height: 28px; font-size: 10px; }
.crm-lista .crm-modo button { padding: 4px 10px; }
.crm-socio__acc .btn { white-space: nowrap; padding: 0 8px; justify-content: center; }

/* Venta como el TPV de NODO: ticket a la izquierda, código y grilla de productos a la derecha, esquinas rectas */
#vVenta { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 12px; }
.tpv-ticket, .tpv-prod { background: var(--blanco); border: 1px solid var(--borde); display: flex; flex-direction: column; min-height: 0; }
.tpv-cab { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--acento-osc); color: #fff; }
.tpv-tit { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: .04em; background: none; border: 0; color: #fff; font-family: inherit; cursor: pointer; padding: 4px 8px; border-radius: 8px; } .tpv-tit:hover { background: rgba(255,255,255,.14); } .tpv-tit svg { width: 22px; height: 22px; }
.pt-lbl { font-weight: 600; color: var(--txt); margin-bottom: -8px; }
/* Panel de tickets (tarjetas por estado, estilo SAINTPV) */
.ptk { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.pt-tabs { display: flex; gap: 6px; }
.pt-tab { flex: 1; padding: 10px; border: 1px solid var(--borde-fuerte); background: var(--blanco); font: inherit; font-weight: 600; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; gap: 8px; }
.pt-tab.on { background: var(--acento); color: #fff; border-color: var(--acento); } .pt-tab b { opacity: .65; }
.pt-main { display: grid; grid-template-columns: 1fr 170px; gap: 12px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; align-content: start; max-height: 56vh; overflow: auto; }
.pt-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border: 1px solid var(--borde-fuerte); border-radius: 8px; background: var(--blanco); font: inherit; text-align: left; cursor: pointer; align-content: start; }
.pt-card.sel { outline: 2px solid var(--acento); outline-offset: 1px; }
.pt-nro { grid-column: 1 / -1; background: #1a1a1a; color: #fff; margin: -10px -12px 4px; padding: 6px 12px; border-radius: 7px 7px 0 0; display: flex; justify-content: space-between; } .pt-nro b { font-size: 18px; }
.pt-cli { grid-column: 1 / -1; font-size: 12px; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-fec { font-size: 12px; color: var(--tenue); } .pt-mon { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pt-est { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); margin-top: 2px; }
.pt-card.est-pendiente { background: #fff8e1; } .pt-card.est-facturado { background: #e8f0fe; } .pt-card.est-cobrado { background: #e9f8ee; } .pt-card.est-devuelto { background: #fdecec; }
.pt-acc { display: flex; flex-direction: column; gap: 8px; } .pt-acc .btn { width: 100%; justify-content: flex-start; gap: 8px; } .pt-acc .btn svg { width: 18px; height: 18px; } .pt-acc .btn:disabled { opacity: .4; cursor: default; }
.pt-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--txt); font-variant-numeric: tabular-nums; }
/* Panel a pantalla completa */
.modal__caja.modal--pleno { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
.modal--pleno .modal__cuerpo { flex: 1; min-height: 0; overflow: hidden; }
.modal--pleno .ptk { height: 100%; }
.ptk .pt-main { flex: 1; min-height: 0; }
.modal--pleno .pt-grid { max-height: none; height: 100%; }
.modal--pleno .pt-acc { width: 190px; }
.modal--pleno .pt-main { grid-template-columns: 1fr 190px; }
/* Ver una venta anterior en la pantalla del ticket (solo lectura) */
.tpv-estado { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; background: #f0b000; color: #2b1a00; }
.tpv-estado.est-facturado { background: #2f6fed; color: #fff; } .tpv-estado.est-cobrado { background: var(--ok); color: #fff; } .tpv-estado.est-devuelto { background: var(--peligro); color: #fff; }
.tpv-verinfo { font-size: 13px; color: rgba(255,255,255,.85); } .tpv-vermsg { color: var(--tenue); font-size: 13px; }
.tpv-num { font-size: 22px; font-variant-numeric: tabular-nums; }
.tpv-cli { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; } .tpv-cli input { width: 220px; height: 32px; border: 0; padding: 0 10px; font: inherit; }
.tpv-grilla { flex: 1; overflow: auto; min-height: 0; position: relative; }
.tpv-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.tpv-t th { position: sticky; top: 0; background: var(--acento-claro); color: var(--acento-osc); font-weight: 600; font-size: 12px; text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--acento-borde); }
.tpv-t td { padding: 9px 10px; border-bottom: 1px solid var(--borde); } .tpv-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.tpv-t tbody tr { cursor: pointer; } .tpv-t tbody tr:hover { background: var(--fondo); }
.tpv-t tr.item td { font-weight: 600; color: var(--acento-osc); } .tpv-t tr.item.sel td { background: var(--acento-claro); box-shadow: inset 0 1px var(--acento), inset 0 -1px var(--acento); }
.tpv-t tr.sin-stock { cursor: not-allowed; color: var(--tenue); opacity: .55; } .tpv-t td.bajo { color: var(--peligro); font-weight: 600; }
.tpv-vacio { color: var(--tenue); text-align: center; margin: 32px 16px; }
.tpv-barra { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--borde); }
.tpv-barra button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 11px; color: var(--txt); }
.tpv-barra button svg { width: 26px; height: 26px; color: var(--acento); stroke-width: 1.6; } .tpv-barra button:hover:not(:disabled) { background: var(--acento-claro); } .tpv-barra button:disabled { opacity: .35; }
.tpv-total { margin-left: auto; display: flex; align-items: baseline; gap: 12px; } .tpv-total span { font-size: 16px; font-weight: 700; }
.tpv-total b { font-size: 34px; font-weight: 700; color: var(--acento); }
.tpv-formas { display: flex; gap: 0; padding: 0 12px 8px; } .tpv-formas button { flex: 1; height: 34px; border: 1px solid var(--borde-fuerte); margin-left: -1px; background: var(--blanco); font: inherit; text-transform: capitalize; }
.tpv-formas button.on { background: var(--acento); border-color: var(--acento); color: #fff; position: relative; }
.tpv-acc { display: grid; grid-template-columns: 1fr 140px; gap: 0; border-top: 1px solid var(--borde); }
.tpv-cobrar { height: 72px; border: 0; background: var(--acento); color: #fff; font: 700 22px/1 Inter, sans-serif; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: 12px; }
.tpv-cobrar small { font-size: 11px; font-weight: 600; padding: 2px 6px; border: 1px solid rgba(255,255,255,.5); } .tpv-cobrar:hover:not(:disabled) { background: var(--acento-osc); } .tpv-cobrar:disabled { opacity: .45; }
.tpv-vaciar { border: 0; border-left: 1px solid var(--borde); background: var(--fondo); font: inherit; color: var(--tenue); } .tpv-vaciar:hover:not(:disabled) { color: var(--peligro); }
.tpv-cod { display: grid; grid-template-columns: auto 1fr auto 72px; align-items: center; gap: 8px; padding: 10px 12px; background: var(--acento-osc); color: #fff; font-weight: 700; font-size: 13px; }
.tpv-cod input { height: 36px; border: 0; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 500; } .tpv-cod input:focus { outline: 3px solid #c9a6e6; }
#vCant { text-align: center; }
.tpv-tabs { display: flex; border-bottom: 1px solid var(--borde); } .tpv-tabs button { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; color: var(--tenue); }
.tpv-tabs button.on { color: var(--acento); border-bottom-color: var(--acento); font-weight: 600; } .tpv-tabs svg { width: 14px; height: 14px; }
/* Las filas de la grilla TPV no heredan el estilo de las tarjetas viejas (.prod, .item) */
.tpv-t tr.prod, .tpv-t tr.item { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; transform: none; box-shadow: none; gap: 0; }
.tpv-t tr.prod > td, .tpv-t tr.item > td { display: table-cell; }
.tpv-t tr.prod:hover { background: var(--acento-claro); }

/* Ventana de cobro de la venta: total, monto por forma (pago mixto), vuelto */
.vp-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; background: var(--acento-osc); color: #fff; }
.vp-total b { font-size: 30px; font-variant-numeric: tabular-nums; }
.vp-iva { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 2px 16px 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.vp-in { text-align: right; font-size: 16px !important; font-variant-numeric: tabular-nums; }
/* Cobro a pantalla completa: la caja llena la pantalla y todo se agranda (pedido 11/11) */
.modal__caja.cobro-full { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
.cobro-full .modal__cuerpo { grid-template-columns: 1fr; align-self: center; width: 100%; max-width: 760px; flex: 1; align-content: center; gap: 12px; padding: 16px 24px; }
.cobro-full .modal__cab { font-size: 21px; padding: 16px 24px; }
.cobro-full .vp-total { padding: 16px 24px; } .cobro-full .vp-total b { font-size: 44px; }
.cobro-full .vp-iva { font-size: 14px; padding: 2px 24px 0; }
.cobro-full #vpMontoLbl { font-size: 16px; }
.cobro-full #vpMonto { height: 60px; font-size: 28px !important; }
.cobro-full .vp-formas { gap: 10px; }
.cobro-full .vp-formas button { height: 64px; font-size: 20px; border-radius: 12px; }
.cobro-full .vp-rap { gap: 10px; }
.cobro-full .vp-rap button { flex: 1; padding: 14px 8px; font-size: 20px; border-radius: 10px; }
.cobro-full .vp-res { padding: 16px 24px; font-size: 22px; } .cobro-full .vp-res b { font-size: 34px; }
.cobro-full .vp-impr { font-size: 15px; }
.cobro-full .modal__pie { padding: 16px 24px; }
.cobro-full .modal__pie .btn { height: 58px; font-size: 20px; padding: 0 36px; }
.cobro-full .modal__pie .btn--pri { min-width: 240px; }
.pos-box { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.pos-box > label { color: var(--tenue); }
.cobro-full .pos-grp { gap: 10px; }
.cobro-full .pos-grp button { height: 52px; font-size: 18px; border-radius: 10px; }
.vp-formas { grid-column: 1 / -1; flex-wrap: wrap; }
.vp-formas button { flex: 1 1 86px; height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.vp-formas button kbd { opacity: .6; }
.vp-formas button.on kbd { color: var(--acento-osc); border-color: var(--acento); }
.vp-rap { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.vp-rap button { border: 1px solid var(--acento-borde); background: var(--blanco); color: var(--acento); padding: 4px 12px; font: inherit; font-weight: 600; }
.vp-res { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 10px 16px; font-size: 16px; }
.vp-res b { font-size: 24px; font-variant-numeric: tabular-nums; } .vp-res.vuelto { background: var(--ok-claro); color: var(--ok); } .vp-res.falta { background: var(--peligro-claro); color: var(--peligro); }

/* Tickets abiertos */
.tpv-nav { display: flex; gap: 2px; } .tpv-nav button { width: 34px; height: 34px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.tpv-nav button:hover:not(:disabled) { background: rgba(255,255,255,.25); } .tpv-nav button:disabled { opacity: .3; } .tpv-nav svg { width: 20px; height: 20px; stroke-width: 2.2; }
.tpv-pend { font-size: 11px; font-weight: 700; padding: 3px 8px; background: #f0b000; color: #2b1a00; text-transform: uppercase; letter-spacing: .04em; }
.tpv-cli input { width: 190px; }
.tpv-pend { white-space: nowrap; } .tpv-cab { gap: 12px; } .tpv-cli { flex: 1; min-width: 0; justify-content: flex-end; } .tpv-cli input { width: auto; flex: 1; min-width: 0; max-width: 220px; }

/* COBRAR y FACTURAR lado a lado */
.tpv-acc { grid-template-columns: 1fr 1fr; }
.tpv-facturar { height: 72px; border: 0; border-left: 1px solid rgba(255,255,255,.25); background: var(--acento-osc); color: #fff; font: 700 20px/1 Inter, sans-serif; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: 12px; }
.tpv-facturar small { font-size: 11px; font-weight: 600; padding: 2px 6px; border: 1px solid rgba(255,255,255,.5); } .tpv-facturar:hover:not(:disabled) { background: #3b1958; } .tpv-facturar:disabled { opacity: .45; }

/* Favoritos y Más vendidos */
.tpv-tabs__sep { flex: 1; } .tpv-t .tpv-fav { width: 34px; padding: 0 0 0 6px; }
.tpv-fav button { width: 28px; height: 28px; border: 0; background: none; display: grid; place-items: center; color: var(--borde-fuerte); }
.tpv-fav button svg { width: 17px; height: 17px; } .tpv-fav button.on { color: #e0a100; } .tpv-fav button.on svg { fill: #f0b000; } .tpv-fav button:hover { color: #e0a100; }
.tpv-barra-v { display: inline-block; width: 90px; height: 8px; background: var(--fondo); margin-right: 8px; vertical-align: middle; } .tpv-barra-v i { display: block; height: 100%; background: var(--acento); }
.tpv-tabs button { white-space: nowrap; padding: 8px 10px; }

/* Fila de acciones y descuentos */
.tpv-filacc { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--borde); }
.tpv-filacc button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-left: 1px solid var(--borde); background: var(--fondo); font: inherit; font-weight: 600; color: var(--acento-osc); }
.tpv-filacc button:first-child { border-left: 0; } .tpv-filacc button:hover:not(:disabled) { background: var(--acento-claro); } .tpv-filacc button:disabled { opacity: .4; } .tpv-filacc svg { width: 18px; height: 18px; }
.tpv-desc { display: block; color: var(--ok); font-size: 11px; font-weight: 600; } .tpv-total .tpv-desc { margin-right: 4px; font-size: 13px; }
.tpv-t tr.prod.foco td { background: var(--acento-claro); box-shadow: inset 0 1px var(--acento), inset 0 -1px var(--acento); } .tpv-t tr.prod.foco td:first-child { box-shadow: inset 3px 0 var(--acento), inset 0 1px var(--acento), inset 0 -1px var(--acento); }

/* Cabecera del ticket: vendedor, lista de precio y caja */
.tpv-info { display: flex; align-items: center; gap: 16px; padding: 6px 16px; background: var(--acento-claro); border-bottom: 1px solid var(--acento-borde); font-size: 12px; color: var(--acento-osc); }
.tpv-info label { display: flex; align-items: center; gap: 6px; font-weight: 600; } .tpv-info select { height: 28px; border: 1px solid var(--acento-borde); font: inherit; font-weight: 500; padding: 0 6px; background: var(--blanco); }
.tpv-caja { margin-left: auto; border: 0; padding: 4px 10px; background: var(--ok-claro); color: var(--ok); font: inherit; font-weight: 700; } .tpv-caja.cerrada { background: var(--peligro-claro); color: var(--peligro); }
.tpv-obs { display: block; font-size: 11px; font-weight: 500; color: var(--alerta); font-style: italic; } .tpv-barra button { width: 58px; }
.tpv-filacc { grid-template-columns: 1fr 1fr 1fr; } .tpv-filacc small { font-weight: 500; color: var(--tenue); }
.tpv-filacc { grid-template-columns: repeat(4, 1fr); } .tpv-filacc button { font-size: 12px; gap: 6px; }
.dv-l { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 90px; gap: 6px 12px; align-items: center; max-height: 200px; overflow: auto; padding: 8px 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.dv-l input { text-align: right; height: 32px; border: 1px solid var(--borde-fuerte); padding: 0 8px; font: inherit; }
.tpv-hoy { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid var(--acento-borde); background: var(--blanco); color: var(--acento); font: inherit; font-weight: 600; padding: 3px 10px; } .tpv-hoy svg { width: 14px; height: 14px; } .tpv-hoy:disabled { opacity: .4; }
.tpv-hoy + .tpv-caja { margin-left: 0; }
.modal--ancho { width: min(860px, calc(100vw - 32px)); } .vh { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; max-height: 60vh; overflow: auto; }
.vh-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .vh-t { width: 100%; border-collapse: collapse; font-size: 12px; } .vh-t th { padding: 6px 10px; } .vh-t td { padding: 6px 10px; }
.vh-prod { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vh-dev { display: block; color: var(--peligro); font-size: 11px; }
.tpv-info label { white-space: nowrap; } .tpv-info { gap: 12px; }
/* Socio elegido como cliente del ticket */
.tpv-socio { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-bottom: 1px solid var(--borde); background: var(--ok-claro); }
.tpv-socio.aviso { background: var(--alerta-claro); } .tpv-socio.vencido { background: var(--peligro-claro); }
.tpv-socio > span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .tpv-socio small { color: var(--tenue); font-size: 11px; }
.tpv-socio.vencido small { color: var(--peligro); font-weight: 600; } .tpv-socio.aviso small { color: var(--alerta); font-weight: 600; } .tpv-socio .foto.mini { width: 30px; height: 30px; }
/* Stock en otras sedes */
.ss { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ss-f { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--borde); cursor: pointer; color: var(--txt) !important; } .ss-f span { flex: 1; } .ss-f b { font-variant-numeric: tabular-nums; }
.ss-f:has(input:checked) { border-color: var(--acento); background: var(--acento-claro); } .ss-f.cero { opacity: .45; cursor: not-allowed; }
.tpv-t tr.sin-stock { cursor: pointer; } .tpv-tras { display: inline-block; margin-right: 6px; padding: 0 6px; background: var(--alerta-claro); color: var(--alerta); font-size: 10px; font-weight: 700; }
/* Venta en ventana angosta (notebook 1024-1180 px) */
.tpv-caja, .tpv-hoy { white-space: nowrap; }
@media (max-width: 1180px) {
  #vVenta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .tpv-cab { gap: 8px; padding: 8px 10px; } .tpv-cli label { display: none; } .tpv-cli input { max-width: none; }
  .tpv-info { gap: 8px; padding: 6px 10px; } .tpv-hoy span { display: none; }
  .tpv-barra { padding: 6px 8px; gap: 0; } .tpv-barra button { width: 44px; font-size: 10px; } .tpv-barra button svg { width: 22px; height: 22px; }
  .tpv-total { gap: 6px; } .tpv-total span { font-size: 13px; } .tpv-total b { font-size: 26px; }
  .tpv-filacc button { font-size: 11px; gap: 4px; } .tpv-cobrar, .tpv-facturar { font-size: 18px; }
  .tpv-tabs { overflow-x: auto; scrollbar-width: none; } .tpv-tabs svg { display: none; } .tpv-tabs button { padding: 8px 8px; }
  .tpv-t--prod th:nth-child(4), .tpv-t--prod tr.prod > td:nth-child(4) { display: none; }
}
.tab-n.rojo { background: var(--peligro); color: #fff; }
/* Versión nueva (como los otros sistemas NODO) y número de versión */
.hay-version { display: flex; align-items: center; gap: 6px; margin-right: 8px; padding: 6px 14px; border: 0; background: #2e7d32; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; animation: hv 1.6s ease-in-out 3; }
.hay-version[hidden] { display: none; } .hay-version:hover { background: #1b5e20; } .hay-version svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes hv { 50% { box-shadow: 0 0 0 4px rgba(46,125,50,.35); } }
.version { margin-right: 12px; font-size: 11px; opacity: .65; font-variant-numeric: tabular-nums; }
/* Pie ordenado: Guía, atajos como teclas y versión al final */
.estado__der { display: flex; align-items: center; gap: 0; }
#atajos { display: flex; align-items: center; gap: 14px; min-width: 0; overflow: hidden; }
#atajos .at { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#atajos kbd { min-width: 20px; padding: 1px 5px; border: 1px solid rgba(255,255,255,.28); border-bottom-width: 2px; background: rgba(255,255,255,.1); color: #fff; font: 600 11px Inter, sans-serif; text-align: center; }
.version { margin: 0 0 0 16px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
/* Aviso de WhatsApp como notificación del celular */
.notifs { position: fixed; bottom: 52px; right: 16px; z-index: 60; display: flex; flex-direction: column-reverse; gap: 8px; width: 360px; pointer-events: none; }
.notif { pointer-events: auto; cursor: pointer; padding: 10px 14px 12px; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-radius: 16px; box-shadow: 0 10px 30px rgba(20,0,40,.28), 0 1px 3px rgba(0,0,0,.12); color: var(--txt); transition: transform .2s, opacity .2s; touch-action: pan-y; user-select: none; }
.notif.entra { animation: notifEntra .25s cubic-bezier(.2, .8, .2, 1) both; }   /* L55: sin rebote (se veía a saltos por escritorio remoto) */
.notif.sale { opacity: 0; transform: translateX(110%) !important; }
@keyframes notifEntra { from { opacity: 0; transform: translateY(120%) scale(.96); } to { opacity: 1; transform: none; } }
.notif__app { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tenue); margin-bottom: 6px; }
.notif__app > svg { width: 16px; height: 16px; padding: 2px; border-radius: 5px; background: #25d366; stroke: #fff; fill: none; stroke-width: 2.4; }
.notif__app small { font-size: 11px; } .notif__app small::before { content: '· '; }
.notif__sil { margin-left: auto; border: 0; background: none; font: inherit; font-size: 11px; color: var(--acento); cursor: pointer; opacity: 0; transition: opacity .15s; } .notif:hover .notif__sil { opacity: 1; }
.notif__x { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--tenue); opacity: 0; transition: opacity .15s; } .notif:hover .notif__x { opacity: 1; } .notif__x svg { width: 14px; height: 14px; }
.notif__cuerpo { display: flex; gap: 10px; align-items: center; } .notif__cuerpo > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.notif__av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--acento-claro); color: var(--acento); font-weight: 700; font-size: 13px; }
.notif b { font-size: 14px; } .notif b small { font-weight: 400; color: var(--tenue); font-size: 12px; }
.notif__ctx { margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--tenue); } .notif__ctx.ojo { color: #a86a00; } .notif__ctx.mal { color: var(--peligro); }
.notif__txt { font-size: 13px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Veredicto con motivo largo: crece en alto en vez de cortarse ("NO PASA" y "Cobrar" nunca se parten) */
.vered { height: auto; min-height: 30px; padding-top: 5px; padding-bottom: 5px; max-width: 100%; text-align: left; line-height: 1.35; }
.vered svg, .vered b, .vered i { flex: none; white-space: nowrap; } .vered span { min-width: 0; }
/* Atajos livianos: la tecla en blanco sobre un fondo apenas marcado, sin cajas con borde */
#atajos { gap: 12px; }
#atajos .at { gap: 4px; color: rgba(255,255,255,.6); }
#atajos kbd { min-width: 0; padding: 0 4px; border: 0; border-radius: 3px; background: rgba(255,255,255,.12); color: #fff; font: 600 10.5px/16px Inter, sans-serif; }

.ing--no { background: #fdf0f0; box-shadow: inset 3px 0 0 var(--peligro); }
.wa-sil { border: 0; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 12px; border-radius: 6px; padding: 3px 8px; margin-left: 10px; cursor: pointer; }
.vp-in + kbd, label kbd { font-size: 10px; padding: 0 4px; border: 1px solid var(--borde, #ccc); border-radius: 3px; color: var(--tenue); font-family: inherit; }
/* La notificación tiene que verse sobre paneles blancos y sobre el fondo violeta: cuerpo blanco, franja y borde verde WhatsApp, sombra fuerte (pedido 08/11) */
.notif { padding: 0 0 12px; background: #fff; color: var(--txt); border: 2px solid #25d366; overflow: hidden; box-shadow: 0 14px 36px rgba(0,0,0,.45), 0 0 0 4px rgba(37,211,102,.25); backdrop-filter: none; }
.notif__app { background: #25d366; color: #fff; padding: 6px 12px; margin-bottom: 10px; font-weight: 600; }
.notif__app small, .notif__x { color: rgba(255,255,255,.9); } .notif__x svg { stroke: #fff; }
.notif__app > svg { background: #fff; stroke: #25d366; }
.notif__sil { color: #fff; text-decoration: underline; }
.notif__cuerpo { padding: 0 14px; }
.notif--mas { font: inherit; font-size: 12px; font-weight: 600; text-align: left; padding: 8px 14px; color: #128c4a; }
.tpv-ultvuelto { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--tenue); } .tpv-ultvuelto b { color: var(--txt); font-size: 16px; }
.notif__ficha { margin-left: auto; align-self: center; flex: none; border: 1px solid var(--acento); background: #fff; color: var(--acento); font: inherit; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.otro-plan { color: var(--acento); font-weight: 600; }
.tpv-arts { margin-left: 8px; font-size: 12px; color: var(--tenue); font-weight: 500; }
/* Caja: arqueo (08/11) */
.caja-acc { margin-left: auto; display: flex; gap: 8px; align-items: center; } .caja-acc input { height: 32px; padding: 0 10px; border: 1px solid var(--borde); border-radius: 6px; font: inherit; font-size: 13px; width: 200px; }
.caja-fil { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; } .caja-fil button { border: 1px solid var(--borde); background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.caja-fil button.on { background: var(--acento); border-color: var(--acento); color: #fff; } .caja-fil small { opacity: .7; }
.caja tfoot td { font-weight: 600; border-top: 1px solid var(--borde); }
.resumen h3 { margin: 12px 16px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--tenue); }
.resumen small { color: var(--tenue); font-size: 11px; margin-left: 4px; }
.resumen .res-big { flex-direction: column; gap: 2px; background: var(--acento-claro); margin: 0 12px 6px; border-radius: 8px; padding: 12px 14px; } .res-big b { font-size: 24px; color: var(--acento); }
.resumen .res-sub { font-size: 13px; color: var(--tenue); padding: 3px 16px; }
.resumen .res-cierre, .resumen .res-arq { margin: 8px 12px 0; border-radius: 8px; } .res-cierre { flex-direction: column; }
.res-cierre.ok, .res-arq.ok { background: #e8f6ee; color: var(--ok); } .res-cierre.mal, .res-arq.mal { background: #fdecec; color: var(--peligro); }
.arq { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-width: 620px; }
.arq-den { display: grid; grid-template-columns: auto 12px 64px 1fr; gap: 4px 8px; align-items: center; align-content: start; } .arq-den > b { grid-column: 1 / -1; margin-bottom: 4px; }
.arq-den label { text-align: right; font-variant-numeric: tabular-nums; margin: 0; } .arq-den input { text-align: right; height: 28px; } .dn-sub { color: var(--tenue); font-size: 12px; }
.arq-res { display: flex; flex-direction: column; gap: 6px; } .arq-fila { display: flex; justify-content: space-between; } .arq-tit { margin-top: 10px; } .arq-res small { color: var(--tenue); font-weight: 400; }
.cf-dif { font-size: 12px; font-weight: 600; } .cf-dif.ok { color: var(--ok); } .cf-dif.mal { color: var(--peligro); }
.modal__caja:has(.arq) { width: 780px; } .modal__cuerpo .arq { grid-column: 1 / -1; min-width: 0; }
.arq-res input { width: 100%; } .arq-res .modal__total { font-size: 16px; padding-top: 8px; }
.caja h2 > small { margin-left: 6px; font-weight: 500; }
.resumen .res-quien { font-size: 13px; padding: 3px 16px; }
.res-hist { display: block; padding: 10px 16px 0; font-size: 13px; }
.cierres table { width: 100%; border-collapse: collapse; font-size: 13px; } .cierres th, .cierres td { padding: 5px 8px; border-bottom: 1px solid var(--borde); text-align: left; } .cierres .num { text-align: right; }
.cierres tr.mal td:nth-child(5) { color: var(--peligro); font-weight: 600; } .modal__caja:has(.cierres) { width: 760px; } .modal__cuerpo .cierres { grid-column: 1 / -1; }
.crm-sug { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12px; color: var(--tenue); background: var(--acento-claro); }
#nIng.rojo { background: var(--peligro); color: #fff; }
/* Ingreso (08/11): la foto de la fachada de Los Laureles de fondo, velo violeta, tarjeta con el logo en franja violeta */
#login { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: #2a0f40; }
.login__fondo { position: absolute; inset: -20px; background: url('img/marca/sede-laureles.jpg') center 35% / cover; filter: blur(2px) saturate(1.1); }
.login__fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,15,64,.45) 0%, rgba(42,15,64,.55) 50%, rgba(42,15,64,.85) 100%); }
.login__caja { position: relative; width: min(420px, 92vw); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.login__cab { background: linear-gradient(135deg, #7b3bb0, #4b1d72); padding: 26px 32px 20px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.login__logo { width: 210px; display: block; } .login__cab span { font-size: 15px; opacity: .9; padding-left: 4px; }
.login__form { padding: 22px 32px 26px; display: flex; flex-direction: column; gap: 6px; }
.login__caja label { color: var(--tenue); font-size: 13px; margin-top: 8px; }
.login__caja input { height: 42px; border: 1px solid var(--borde-fuerte); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; }
.login__caja input:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.login__sede { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: var(--acento-claro); color: var(--acento); font-weight: 600; }
.login__sede svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.login__caja .btn { height: 44px; margin-top: 4px; font-size: 15px; } .login__err { color: var(--peligro); margin: 4px 0 0; min-height: 1.2em; font-weight: 600; font-size: 13px; }
.login__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--acento-claro); color: var(--acento); font-weight: 700; flex: none; }
/* Apertura de caja (08/11): franja violeta como el ingreso, monto grande sin selección azul, botón con el monto */
.modal--ap { width: 440px !important; border-radius: 18px; }
.modal--ap .modal__cab { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #7b3bb0, #4b1d72); color: #fff; padding: 20px 24px; border: 0; }
.modal--ap .modal__cab b { display: block; font-size: 18px; } .modal--ap .modal__cab small { opacity: .85; font-size: 13px; }
.ap-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.ap-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.modal__cuerpo .ap { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.ap-lbl { color: var(--tenue) !important; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.ap-monto { display: flex; align-items: baseline; justify-content: center; gap: 8px; border-bottom: 2px solid var(--acento); padding: 0 8px 6px; }
.ap-monto span { font-size: 20px; color: var(--tenue); font-weight: 600; }
.modal__cuerpo .ap-monto input { border: 0; height: auto; width: 100%; max-width: 280px; font-size: 44px; font-weight: 800; color: var(--acento); text-align: center; padding: 0; outline: none; background: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; caret-color: var(--acento); }
.ap-monto input::selection { background: var(--acento-claro); color: var(--acento); }
.ap-rap { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ap-rap button { border: 1px solid var(--borde-fuerte); background: #fff; border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; transition: background .15s, border-color .15s; }
.ap-rap button:hover { border-color: var(--acento); }
.ap-rap button small { font-weight: 500; font-size: 11px; color: var(--tenue); } .ap-rap button.on { border-color: var(--acento); background: var(--acento); color: #fff; } .ap-rap button.on small { color: rgba(255,255,255,.8); }
.ap-contar { align-self: center; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; } .ap-contar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal--ap .modal__pie { border: 0; background: none; padding: 4px 24px 22px; flex-direction: column-reverse; gap: 6px; display: flex; }
.modal--ap .modal__pie .btn--pri { height: 48px; font-size: 16px; width: 100%; }
.modal--ap .modal__pie [data-cancelar] { border: 0; background: none; color: var(--tenue); width: 100%; }

.sesion { display: flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.12); color: #fff; font: inherit; border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; margin-left: 8px; }
.sesion:hover { background: rgba(255,255,255,.2); } .sesion__av { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--acento); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.sesion__txt { display: flex; flex-direction: column; text-align: left; line-height: 1.15; } .sesion__txt b { font-size: 13px; } .sesion__txt small { font-size: 11px; opacity: .8; }
.menu-sesion { position: fixed; top: 56px; right: 16px; z-index: 120; width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(20,0,40,.3); overflow: hidden; display: flex; flex-direction: column; }
.menu-sesion__cab { padding: 14px 16px; border-bottom: 1px solid var(--borde); display: flex; flex-direction: column; gap: 2px; } .menu-sesion__cab small { color: var(--tenue); }
.menu-sesion button { border: 0; background: none; text-align: left; padding: 12px 16px; font: inherit; cursor: pointer; } .menu-sesion button:hover { background: var(--acento-claro); }
.menu-sesion button[data-msalir="salir"] { color: var(--peligro); font-weight: 600; }
.arq-den[hidden] { display: none; } .modal__cuerpo .arq-den { grid-column: 1 / -1; }
.modal__caja { max-height: calc(100vh - 24px); display: flex; flex-direction: column; } .modal__cuerpo { overflow: auto; }
@media (max-width: 1100px) { .login__foto { display: none; } }
.login__pass { position: relative; } .login__pass input { width: 100%; padding-right: 44px; }
.login__pass button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--tenue); }
.login__pass button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; } .login__pass button.on { color: var(--acento); }
.login__mayus { color: var(--alerta, #a86a00); font-weight: 600; }

.modal__cuerpo .ap-monto input { field-sizing: content; width: auto; min-width: 3ch; max-width: 100%; }
/* Animaciones del ingreso y del armado del panel (08/11) */
@keyframes kenBurns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes loginEntra { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes loginSaleCaja { to { opacity: 0; transform: translateY(-16px) scale(.94); } }
@keyframes loginSaleFondo { to { opacity: 0; transform: scale(1.15); } }
.login__fondo { animation: kenBurns 2s cubic-bezier(.2, .8, .2, 1) both; }   /* L44: era 14 s de pantalla entera cambiando (por escritorio remoto, el login se veía trabado mientras se escribía) */
.login__caja { animation: loginEntra .6s cubic-bezier(.2,.9,.3,1.1) .1s both; }
#login.sale .login__caja { animation: loginSaleCaja .22s ease-in forwards; }
#login.sale .login__fondo { animation: loginSaleFondo .25s ease-in forwards; }
#login.sale { background: transparent; transition: background .4s; }
@keyframes apEntra { 0% { opacity: 0; transform: translateY(40px) scale(.9); } 60% { opacity: 1; transform: translateY(-6px) scale(1.01); } 100% { transform: none; } }
@keyframes apIco { 0%, 100% { transform: none; } 30% { transform: translateY(-4px) rotate(-8deg); } 60% { transform: translateY(1px) rotate(4deg); } }
@keyframes subeIn { from { opacity: 0; transform: translateY(10px); } }
.modal--ap.abre { animation: apEntra .25s cubic-bezier(.2,.8,.2,1) both; }
.modal--ap .ap-ico { animation: apIco .7s ease .45s both; }
.modal--ap .ap-lbl, .modal--ap .ap-monto, .modal--ap .ap-rap button, .modal--ap .ap-contar, .modal--ap .modal__pie { animation: subeIn .2s cubic-bezier(.2,.8,.2,1) both; }
.modal--ap .ap-lbl { animation-delay: .04s; } .modal--ap .ap-monto { animation-delay: .06s; }
.modal--ap .ap-rap button:nth-child(1) { animation-delay: .08s; } .modal--ap .ap-rap button:nth-child(2) { animation-delay: .1s; } .modal--ap .ap-rap button:nth-child(3) { animation-delay: .12s; } .modal--ap .ap-rap button:nth-child(4) { animation-delay: .14s; }
.modal--ap .ap-contar { animation-delay: .12s; } .modal--ap .modal__pie { animation-delay: .12s; }
@keyframes armar { from { opacity: 0; transform: translateY(14px); } }
@keyframes armarBarra { from { opacity: 0; transform: translateY(-100%); } }
.armando .top { animation: armarBarra .25s cubic-bezier(.2,.8,.2,1) both; }
.armando .arma { animation: armar .22s cubic-bezier(.2,.8,.2,1) both; animation-delay: min(calc(.03s + var(--i, 0) * 12ms), .3s); }
@media (prefers-reduced-motion: reduce) { .login__fondo, .login__caja, .modal--ap, .modal--ap *, .armando .top, .armando .arma { animation: none !important; } }
.top__tabs [hidden] { display: none; }
.vp-impr { font-size: 13px; }
th.ord { cursor: pointer; user-select: none; } th.ord:hover { text-decoration: underline; } th.ord.on::after { content: ' ▲'; font-size: 10px; }
@keyframes lineaFlash { from { background: #fff3c4; } }
.tpv-t tr.item.flash td { animation: lineaFlash .8s ease-out; }
.vino-hoy { display: block; color: var(--ok); font-size: 11px; font-weight: 600; margin-top: 2px; }
.pill--verde { background: #e3f5ea; color: #1f7a45; }
/* Cierre / arqueo como el TPV (08/11) */
.modal--ci { width: 480px !important; }
.ci-res { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-size: 12px; color: var(--tenue); background: #f6f2fa; border-radius: 10px; padding: 10px 12px; }
.ci-res b { width: 100%; text-align: center; font-size: 15px; color: var(--txt); }
.ci-dif { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: #f4f4f6; font-weight: 600; }
.ci-dif b { font-size: 18px; } .ci-dif.ok { background: #e8f6ee; color: var(--ok); } .ci-dif.mal { background: #fdecec; color: var(--peligro); }
.ci-campo { display: flex; flex-direction: column; gap: 4px; } .ci-campo:empty { display: none; } .ci-campo[hidden] { display: none; }
.ci-campo label { color: var(--tenue); font-size: 13px; }
.modal__cuerpo .ci input:not(#cCont):not(.dn) { height: 38px; }
.ci-fondo { display: grid; grid-template-columns: auto 140px; gap: 6px 12px; align-items: center; border-top: 1px solid var(--borde); padding-top: 10px; font-size: 13px; }
.ci-fondo label, .ci-fondo span { color: var(--tenue); } .ci-fondo input { text-align: right; } .ci-fondo b { text-align: right; font-size: 15px; }
.ci-mas { display: flex; gap: 18px; justify-content: center; }
.ci .arq-den { display: grid; grid-template-columns: auto 12px 72px 1fr; gap: 4px 8px; align-items: center; justify-content: center; } .ci .arq-den[hidden], .ci-cot[hidden] { display: none; }
.ci-cot { display: flex; flex-direction: column; gap: 4px; } .ci-cot label { font-size: 13px; color: var(--tenue); }
.tpv-total { position: relative; } .tpv-total .tpv-arts { position: absolute; right: 0; top: -6px; margin: 0; white-space: nowrap; font-size: 11px; line-height: 1; }
.modal--ci .ap-monto input { font-size: 34px !important; } .modal--ci .ap { gap: 8px; } .modal--ci .ci-dif { padding: 8px 14px; }
.vp-como { display: block; font-size: 12px; font-weight: 500; color: var(--tenue); margin-top: 2px; }
.copiar { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; } .copiar svg { width: 13px; height: 13px; fill: none; stroke: var(--tenue); stroke-width: 2; opacity: 0; } .copiar:hover svg { opacity: 1; }
.fijo svg { width: 12px; height: 12px; fill: none; stroke: var(--acento); stroke-width: 2; margin-right: 4px; vertical-align: -1px; }
.crm-leertodos { margin-left: auto; border: 0; background: none; color: var(--acento); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; } #nHoy { margin-left: 4px; }
.lado-tabs button { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px; } #nHoy { margin-left: 0; }
.vh-tres { grid-template-columns: repeat(3, 1fr) !important; } .toast { cursor: pointer; }
.crm-cuenta { align-self: flex-end; font-size: 11px; color: var(--tenue); white-space: nowrap; margin: 0 6px; } .crm-cuenta.mal { color: var(--peligro); font-weight: 700; }
.obs__por { display: block; margin-top: 4px; font-size: 11px; color: var(--tenue); }
.en-ticket { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--acento); color: #fff; font-size: 11px; font-weight: 700; }
.ing-todos { border: 0; background: none; color: var(--acento); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 4px; cursor: pointer; text-align: left; }
.t-socios mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.tpv-total .tpv-ahorro { position: absolute; right: 0; bottom: -10px; font-size: 11px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.tk-dir { margin: 0 0 6px; font-size: 11px; }
body.sin-red .estado::after { content: 'Sin conexión'; margin-left: 12px; padding: 1px 8px; border-radius: 999px; background: var(--peligro); color: #fff; font-size: 11px; font-weight: 700; }
.tar-posp { margin-left: auto; }
.precio-pub { color: var(--tenue); font-weight: 400; font-size: 12px; } .ing-plan { color: var(--acento) !important; font-weight: 600; }
[data-verfoto] { cursor: zoom-in; display: block; line-height: 0; }
.modal__cuerpo .foto-grande { grid-column: 1 / -1; display: grid; place-items: center; } .foto-grande .foto, .foto-grande img { width: 320px !important; height: 320px !important; border-radius: 16px; object-fit: cover; }
.tag-nuevo { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; background: #e3f5ea; color: #1f7a45; font-size: 10px; font-weight: 700; text-transform: uppercase; vertical-align: 1px; }
.vp-in + small, label small { font-weight: 400; } .recientes .rec-vencido .foto { box-shadow: 0 0 0 2px var(--peligro); }
.crm-clase { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 10px; margin: 6px 0; border-radius: 8px; background: var(--acento-claro); } .crm-clase .btn { margin-left: auto; }
.pop-vacio { padding: 8px 12px; margin: 0; font-size: 13px; } button.vered { border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }

/* Cartel PUEDE PASAR / NO PASA: motivo corto; el detalle con el ícono de más info */
.vered .v-largo, .vered.abierto .v-corto { display: none; } .vered.abierto .v-largo { display: inline; }
.v-mas { display: inline-grid; place-items: center; margin-left: 8px; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; flex: none; opacity: .85; }
.v-mas:hover { opacity: 1; background: rgba(255, 255, 255, .2); } .v-mas svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.res-avisar { color: var(--ok); border-color: var(--ok); } .res-avisar svg { width: 14px; height: 14px; margin-right: 4px; }

/* Vuelta de animaciones (08/11, pedido de Emiliano). Se apagan con prefers-reduced-motion (regla global de arriba). */
/* Cambio de solapa (Socios, Venta, Caja, Clases, CRM) y de panel lateral: entran suave al mostrarse */
.vista:not(.oculto), #tareas:not(.oculto), #ingresos:not(.oculto) { animation: vista-rapida .14s ease-out; }
@keyframes vista-rapida { from { opacity: .5; transform: translateY(3px); } }   /* nunca desde transparente: una pantalla en blanco parece un cuelgue */
/* Diálogos: el fondo se oscurece y la caja aparece con un leve rebote (la apertura de caja tiene la suya) */
.modal:not(.oculto) { animation: fondo-entra .12s ease-out; }
.modal__caja.abre:not(.modal--ap) { animation: caja-entra .16s ease-out; }
@keyframes fondo-entra { from { background: rgba(29, 16, 40, 0); } }
@keyframes caja-entra { from { opacity: .4; transform: translateY(6px) scale(.98); } }
/* Botones y solapas: respuesta al pasar el mouse y al apretar */
.btn, .top__tabs button, .lado-tabs button, .cl-hor, .cl-sug button, .crm-chat, .filtro { transition: background-color .15s, color .15s, box-shadow .15s, transform .1s; }
.btn:active:not(:disabled), .top__tabs button:active, .lado-tabs button:active, .cl-hor:active { transform: scale(.97); }
/* Clases: el horario elegido y la barra de cupo */
.cl-hor.on { animation: elegido .25s ease-out; } @keyframes elegido { from { box-shadow: 0 0 0 4px var(--acento-claro); } }
/* Cartel PUEDE PASAR / NO PASA: entra al abrir la ficha y el NO PASA late una vez */
.ficha2.abre .vered.v-no { animation: vered-no .6s ease-out; }
@keyframes vered-no { 30% { box-shadow: 0 0 0 6px rgba(224, 71, 78, .3); } }

/* Vuelta de 10 animaciones (08/11) */
/* 2. El producto vuela al ticket */
.vuela { position: fixed; z-index: 30; pointer-events: none; display: flex; align-items: center; padding: 0 12px; background: var(--acento-claro); border: 1px solid var(--acento); border-radius: 6px; font-weight: 600; transform-origin: left top; }
/* 3. Cobro aprobado */
.aprobado { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; pointer-events: none; animation: aprob-sale .25s ease-in .75s forwards; }
.aprobado svg { width: 120px; height: 120px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; background: var(--ok); border-radius: 50%; box-shadow: 0 12px 40px rgba(31, 138, 76, .45); animation: aprob-entra .35s cubic-bezier(.2, .9, .3, 1.3); }
.aprobado circle { stroke: rgba(255, 255, 255, .35); }
.aprobado path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: trazo .35s ease-out .2s forwards; }
@keyframes aprob-entra { from { transform: scale(.4); opacity: 0; } } @keyframes aprob-sale { to { opacity: 0; transform: scale(1.1); } } @keyframes trazo { to { stroke-dashoffset: 0; } }
/* 4. Barras de cupo de Clases se llenan al entrar (rojo si está llena) */
.entra .cl-cupo i { transform-origin: left; animation: llenar .6s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes llenar { from { transform: scaleX(0); } }
/* 5. Molinete: el que llega baja empujando la lista; si lo rechazó, se sacude */
.ing-ultimo.llega { animation: ing-entra .3s cubic-bezier(.2, .8, .2, 1); }
.ing-ultimo.llega ~ .ing { animation: baja .3s cubic-bezier(.2, .8, .2, 1); }
.ing-ultimo.no.llega { animation: ing-entra .3s cubic-bezier(.2, .8, .2, 1), sacude .45s ease-in-out .3s; }
@keyframes baja { from { transform: translateY(-24px); } }
@keyframes sacude { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* 7. Arqueo: la diferencia cambia de color con transición */
.ci-dif { transition: background-color .3s, color .3s; } .ci-dif b { transition: transform .2s; } .ci-dif.ok b, .ci-dif.mal b { transform: scale(1.06); }
/* 8. Gráfico de ocupación: las barras crecen una tras otra */
.entra .ocup__horas i { transform-origin: bottom; animation: crece .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 30ms); }
@keyframes crece { from { transform: scaleY(0); } }
/* 9. CRM: el mensaje nuevo entra desde su lado; puntitos de "escribiendo" */
.msg.nueva.msg--el { animation: desde-izq .25s cubic-bezier(.2, .8, .2, 1); } .msg.nueva.msg--yo { animation: desde-der .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes desde-izq { from { opacity: 0; transform: translateX(-16px); } } @keyframes desde-der { from { opacity: 0; transform: translateX(16px); } }
.msg.escribiendo { display: flex; gap: 4px; padding: 10px 14px; width: max-content; }
.msg.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--tenue); animation: punto 1s ease-in-out infinite; }
.msg.escribiendo i:nth-child(2) { animation-delay: .15s; } .msg.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
/* 10. Ficha: el anillo de color de la foto late una vez al abrir */
.ficha2.abre .id__foto { animation: anillo .45s ease-out; }
.ficha2.abre .id__foto.anillo-activo { --c: rgba(31, 138, 76, .45); } .ficha2.abre .id__foto.anillo-porvencer { --c: rgba(217, 154, 30, .5); } .ficha2.abre .id__foto.anillo-vencido { --c: rgba(224, 71, 78, .5); }
@keyframes anillo { 0% { box-shadow: 0 0 0 0 var(--c, rgba(107, 47, 150, .4)); } 100% { box-shadow: 0 0 0 18px transparent; } }

/* Animaciones de caja (08/11): apertura, conteo, diferencia, arqueo, traspaso, cierre e historial */
.sello-mal svg { background: var(--alerta, #d99a1e); box-shadow: 0 12px 40px rgba(217, 154, 30, .45); }
.sello-abre svg, .sello-cierra svg { background: var(--acento); box-shadow: 0 12px 40px rgba(107, 47, 150, .45); }
.sello-abre .cajon { animation: cajon .45s cubic-bezier(.2, .9, .3, 1.3) .2s backwards; } @keyframes cajon { from { transform: translateY(-10px); opacity: 0; } }
.sello-cierra .arco { animation: arco .35s ease-in .2s backwards; } @keyframes arco { from { transform: translateY(-6px); } }
.sello-tr { display: flex; align-items: center; gap: 16px; padding: 20px 28px; border-radius: 20px; background: var(--acento); box-shadow: 0 12px 40px rgba(107, 47, 150, .45); color: #fff; animation: aprob-entra .35s cubic-bezier(.2, .9, .3, 1.3); }
.sello-tr span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 20px; font-weight: 700; }
.sello-tr svg { width: 32px; height: 32px; background: none; box-shadow: none; animation: none; }
.sello-tr .sale { animation: tr-sale .5s ease-in .3s forwards; } .sello-tr .entra { background: #fff; color: var(--acento); animation: tr-entra .5s cubic-bezier(.2, .9, .3, 1.3) .5s backwards; }
@keyframes tr-sale { to { opacity: .35; transform: scale(.85); } } @keyframes tr-entra { from { opacity: 0; transform: scale(.5); } }
.billete { position: fixed; z-index: 31; width: 28px; height: 14px; border-radius: 2px; background: #2e7d32; border: 2px solid #a5d6a7; pointer-events: none; }
.dn-sub.pop { animation: pop .25s ease-out; } @keyframes pop { 50% { transform: scale(1.25); color: var(--ok); } }
.ci-dif { gap: 8px; } .ci-dif span { flex: 1; }
.balanza { width: 40px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; opacity: .7; }
#cBrazo { transform-origin: 24px 6px; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.ci-tilde { width: 22px; height: 22px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; display: none; }
.ci-dif.ok .ci-tilde { display: block; } .ci-dif.ok .ci-tilde path { stroke-dasharray: 24; animation: trazo-24 .35s ease-out; } .ci-dif.ok .balanza { display: none; }
@keyframes trazo-24 { from { stroke-dashoffset: 24; } }
.ci-dif.ok { animation: cuadra .6s ease-out; } @keyframes cuadra { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, .5); } 100% { box-shadow: 0 0 0 12px transparent; } }
.ci-dif.sacude { animation: sacude .45s ease-in-out; }
.ci-campo:not([hidden]), #cPinL:not([hidden]), #cPin:not([hidden]) { animation: despliega .25s ease-out; } @keyframes despliega { from { opacity: 0; transform: translateY(-6px); } }
.flota { position: fixed; z-index: 31; color: var(--peligro); font-size: 18px; pointer-events: none; }
.tk-cierre { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; cursor: pointer; }
.tk-papel { animation-duration: .3s !important; width: 300px; padding: 18px 20px; background: #fff; border-radius: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); font-variant-numeric: tabular-nums; display: grid; gap: 6px; transform-origin: top; animation: imprime .5s ease-out; }
.tk-papel > b { text-align: center; padding-bottom: 8px; border-bottom: 1px dashed var(--borde-fuerte); }
.tk-papel div { display: flex; justify-content: space-between; animation: subeIn .3s ease-out backwards; animation-delay: calc(.15s + var(--i) * .07s); }
.tk-papel div.ok b { color: var(--ok); } .tk-papel div.mal b { color: var(--peligro); }
.tk-papel small { text-align: center; color: var(--tenue); padding-top: 8px; border-top: 1px dashed var(--borde-fuerte); }
@keyframes imprime { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.cierres tbody tr { animation: subeIn .3s ease-out backwards; animation-delay: calc(var(--i) * 40ms); }
.dif-barra { display: block; height: 3px; margin-top: 2px; margin-left: auto; width: var(--w); min-width: 4px; background: var(--peligro); border-radius: 2px; transform-origin: right; animation: llenar-der .5s ease-out .2s backwards; }
@keyframes llenar-der { from { transform: scaleX(0); } }

/* Impresora de esta PC (agente local) */
.prn { grid-column: 1 / -1; display: grid; gap: 8px; } .prn p { margin: 0; }
.prn-est { display: flex; align-items: center; gap: 8px; font-weight: 600; } .prn-est svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.prn-est.ok { color: var(--ok); } .prn-est.mal { color: var(--peligro); }
.prn-acc { display: flex; gap: 8px; } .prn-acc svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Configuración de esta PC */
.config { gap: 12px; } .cfg-nav { width: 240px; display: flex; flex-direction: column; gap: 4px; background: var(--blanco); border-radius: 12px; padding: 12px; }
.cfg-nav button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; text-align: left; font-weight: 500; }
.cfg-nav button.on { background: var(--acento-claro); color: var(--acento); } .cfg-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cfg-det { flex: 1; background: var(--blanco); border-radius: 12px; padding: 20px 24px; overflow: auto; } .cfg-det h2 { margin: 0 0 4px; font-size: 18px; }
.cfg-det .prn { max-width: 520px; margin-top: 16px; } .cfg-det select { height: 36px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 8px; }
.menu-sesion button small { display: block; color: var(--tenue); font-size: 11px; }

/* Descuento como el TPV */
.modal--vd { width: 460px !important; }
.seg { display: flex; gap: 4px; background: #ece8f1; border-radius: 10px; padding: 4px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button.on { background: var(--blanco); color: var(--acento); box-shadow: var(--sombra); }
.vd-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .vd-fila .seg { width: 120px; }
.vd-res { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: #f4f4f6; font-variant-numeric: tabular-nums; }
.vd-res b { font-size: 16px; margin-left: 6px; }
.vd-mot { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-mot button { border: 1px solid var(--borde-fuerte); background: var(--blanco); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 500; }
.vd-mot button.on { border-color: var(--acento); background: var(--acento-claro); color: var(--acento); font-weight: 600; }
.modal--vd .ap { gap: 8px; } .modal--vd .seg[data-seg="vdA"] { width: 100%; } .modal--vd .ap-monto input { font-size: 34px !important; }
.modal--vd .ap-monto { padding-bottom: 2px; } .modal--vd .ap-lbl { text-align: left; } .modal--vd .vd-res { padding: 8px 12px; }
.modal--vd .modal__pie { padding-top: 0 !important; }

/* Ingreso v2 (08/11): foto de la sede con reloj a la izquierda, tarjeta a la derecha con los usuarios de la sede */
#login { place-items: center end; padding: 0 6vw; }
.login__fondo { filter: saturate(1.05); }
.login__fondo::after { background: linear-gradient(90deg, rgba(30, 10, 48, .25) 0%, rgba(30, 10, 48, .45) 45%, rgba(30, 10, 48, .85) 100%), linear-gradient(0deg, rgba(30, 10, 48, .75) 0%, transparent 45%); }
.login__hero { position: absolute; left: 6vw; bottom: 8vh; display: flex; flex-direction: column; gap: 4px; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.login__hora { font-size: 96px; font-weight: 300; line-height: 1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.login__fecha { font-size: 22px; font-weight: 500; opacity: .95; }
.login__lugar { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; opacity: .85; } .login__lugar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.login__caja { width: min(400px, 92vw); border-radius: 20px; }
.login__cab { padding: 32px 28px 22px; align-items: center; text-align: center; gap: 6px; }
.login__logo { width: 250px; } .login__cab span { font-size: 13px; letter-spacing: .5px; opacity: .85; padding: 0; }
.login__form { padding: 20px 28px 22px; gap: 4px; }
.login__hola { margin: 0; font-size: 22px; font-weight: 700; color: var(--txt); } .login__sub { margin: 0 0 10px; color: var(--tenue); }
.login__usrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 6px; }
.login__usrs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border: 1px solid var(--borde); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s; }
.login__usrs button:hover { border-color: var(--acento-borde, #c9b3dc); background: #faf7fc; } .login__usrs button:active { transform: scale(.97); }
.login__usrs button.on { border-color: var(--acento); background: var(--acento-claro); box-shadow: 0 0 0 1px var(--acento); }
.login__usrs .login__av { width: 44px; height: 44px; font-size: 15px; } .login__usrs button.on .login__av { background: var(--acento); color: #fff; }
.login__usrs b { font-size: 13px; } .login__usrs small { font-size: 11px; color: var(--tenue); }
.login__caja label { margin-top: 6px; font-size: 12px; font-weight: 600; }
.login__campo { position: relative; } .login__campo > svg { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; fill: none; stroke: var(--tenue); stroke-width: 2; pointer-events: none; }
.login__campo input { width: 100%; padding-left: 40px; background: #faf9fb; } .login__campo input:focus { background: #fff; }
.login__campo:focus-within > svg { stroke: var(--acento); }
.login__caja .btn { display: flex; gap: 8px; justify-content: center; height: 46px; border-radius: 10px; } .login__caja .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.login__err { min-height: 1em; margin: 2px 0; }
.login__pie { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.login__pie .login__sede { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; }
@media (max-width: 900px) { #login { place-items: center; padding: 0; } .login__hero { display: none; } }

/* Video de la fachada (dron) de fondo en el ingreso; con "reducir movimiento" queda la foto quieta */
.login__fondo { background-image: url('img/marca/login-fondo.jpg'); background-position: center; }
.login__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Movimientos del turno: tipo de comprobante en vez del detalle */
.doc { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .4px; cursor: help; font-variant-numeric: tabular-nums; }
.doc--TIK { background: #eef0f4; color: #3d4452; } .doc--FAC { background: #e3f1fb; color: #1f6aa5; } .doc--MEMB { background: var(--acento-claro); color: var(--acento); }

/* Video liviano: sin filtro ni zoom encima (se recalculaban en cada cuadro y en PCs sin placa de video se trababa) */
.login__fondo:has(.login__video) { filter: none; animation: none; }
/* Clima y cotización en el ingreso */
.login__extras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.login__extras:empty { display: none; }
.login__clima, .login__fx { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 6, 32, .45); backdrop-filter: blur(6px); font-size: 13px; text-shadow: none; }
.login__clima svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; } .login__clima b { font-size: 16px; }
.login__fx { gap: 12px; } .login__fx > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bandera { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); flex: none; }
.login__fx small { opacity: .7; font-size: 11px; }
/* G2: los botones de la caja (arqueo, cerrar, recibir) quedan fijos abajo del panel; el resumen scrollea por encima */
.resumen { display: flex; flex-direction: column; overflow: auto; }
.resumen .acc { position: sticky; bottom: 0; margin-top: auto; background: var(--blanco); border-top: 1px solid var(--borde); z-index: 1; }

/* G3 Clases: presente / ausente como par de botones chicos con ícono (el estado ya se lee en la columna Estado) */
.res-pa { display: inline-flex; border: 1px solid var(--borde-fuerte); border-radius: 8px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.res-pa button { width: 30px; height: 28px; display: grid; place-items: center; border: 0; background: var(--blanco); color: var(--tenue); cursor: pointer; }
.res-pa button + button { border-left: 1px solid var(--borde-fuerte); } .res-pa button:hover { background: var(--fondo); color: var(--txt); }
.res-pa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.res-pa button.si { background: var(--ok); color: #fff; } .res-pa button.no { background: var(--peligro); color: #fff; }

/* Clima y cotización más grandes; las monedas en carrusel (una por vez) */
.login__extras { gap: 12px; margin-top: 18px; }
.login__clima, .login__fx { padding: 10px 18px; border-radius: 16px; font-size: 15px; }
.login__clima svg { width: 28px; height: 28px; } .login__clima b { font-size: 26px; font-weight: 600; }
.login__fx { position: relative; min-width: 230px; height: 58px; padding: 0 18px; display: inline-block; }
.fx-item { position: absolute; inset: 0 18px 8px; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.fx-item.on { opacity: 1; transform: none; }
.fx-item .bandera { width: 36px; height: 24px; border-radius: 3px; }
.fx-txt { display: flex; flex-direction: column; line-height: 1.15; } .fx-txt small { font-size: 12px; opacity: .8; } .fx-txt b { font-size: 22px; font-weight: 600; } .fx-txt i { font-style: normal; font-size: 13px; opacity: .75; font-weight: 500; }
.fx-puntos { position: absolute; right: 14px; bottom: 9px; display: flex; gap: 4px; } .fx-puntos i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); } .fx-puntos i.on { background: #fff; }

/* G7 CRM en ventana angosta: el nombre no se parte letra por letra; los botones pasan a una segunda fila */
.crm-conv__nom b, .crm-conv__nom small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-conv__cab .btn { white-space: nowrap; flex: none; }
@media (max-width: 1240px) {
  .crm-conv__cab { flex-wrap: wrap; row-gap: 8px; } .crm-conv__nom { flex: 1 1 160px; }
  .crm-conv__cab .btn:first-of-type { margin-left: auto; } .vent-lbl { display: none; }
}
.chip-ocup { white-space: nowrap; }   /* G8: en ventana angosta no se parte en dos líneas */
/* G9 Ficha en ventana angosta: la barra secundaria queda solo con íconos (el nombre en el tooltip) y la tabla de membresías entra entera */
@media (max-width: 1320px) { .acc-grupo .btn { font-size: 0; gap: 0; padding: 0 9px !important; } .acc-grupo .btn svg { width: 18px; height: 18px; } }   /* desde 1320: entre 1240 y 1320 la barra hacía scroll de costado */
@media (max-width: 1100px) { .det__acc { gap: 6px; } .det__acc > .btn kbd { display: none; }
  .det .t-memb tr:not(.hueco) > :nth-child(3) { display: none; } .det .t-memb tr:not(.hueco) > td:nth-child(2) { white-space: normal; } }   /* a 1024 la tabla de membresías no entra: sin Accesos (está en "ver todas") y el período en dos líneas */   /* a 1024 seguía pasándose */
@media (max-width: 1240px) {
  .t-memb th, .t-memb td { padding-left: 6px; padding-right: 6px; } .t-memb .badge { margin-right: 2px; }
}
@media (max-width: 1240px) { .t-memb td:last-child .link { display: block; font-size: 11px; line-height: 1.1; } .t-memb td:last-child .badge { display: inline-block; } }
@media (max-width: 1240px) { .sesion__txt small { display: none; } }   /* G9: el chip de sesión no se corta a la derecha */
@media (max-width: 1100px) { .top { gap: 16px; } .sesion__txt { display: none; } .sesion { padding: 3px; } }   /* L43: a 1024 px el chip quedaba afuera; quedan las iniciales (nombre en title/aria-label) */
#atajos .at-mas { padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: 11px; cursor: help; }
.modal__cuerpo .vp-impr { grid-column: 1 / -1; white-space: nowrap; }   /* G12: en una línea */
.id__datos dd.salud { color: var(--peligro); font-weight: 600; display: flex; gap: 4px; align-items: flex-start; } .id__datos dd.salud svg { width: 14px; height: 14px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }
.t-hist { width: 100%; border-collapse: collapse; } .t-hist td { padding: 6px 12px; border-bottom: 1px solid var(--borde); font-size: 13px; }
.ing-manual { display: inline-block; padding: 0 4px; border: 1px solid var(--borde); border-radius: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--tenue); }
.m-desde { display: flex; align-items: center; gap: 12px; } .m-desde select { flex: 1; min-width: 0; } .m-desde small { white-space: nowrap; color: var(--tenue); } .m-desde b { color: var(--txt); }   /* L48: Vence va en la línea de Empieza (fila propia hacía scroll a 641 px) */
.sin-anim *, .sin-anim *::before, .sin-anim *::after { animation: none !important; transition: none !important; }   /* L50: opción de Configuración (como prefers-reduced-motion) */
.login__musica { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 6, 32, .45); color: #fff; cursor: pointer; } .login__musica:hover { background: rgba(20, 6, 32, .65); } .login__musica svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }   /* música del ingreso */
.m-dur-c { display: flex; gap: 6px; } .m-dur-c #mDias { width: 64px; } .m-dur-c #mDurMot { flex: 1; min-width: 0; } .m-dur-c #mDurPin { width: 64px; }   /* L63: duración especial en el cobro */
.login__noti { position: relative; margin-top: 10px; width: 520px; max-width: 100%; height: 150px; padding: 10px 14px; border-radius: 16px; background: rgba(20, 6, 32, .55); color: #fff; }   /* noticias de salud y fitness en el ingreso */
.login__noti-tit { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .75; } .login__noti-tit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.noti-item { position: absolute; left: 14px; right: 14px; top: 32px; display: flex; gap: 12px; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.noti-item.on { opacity: 1; visibility: visible; } .noti-item:hover b { text-decoration: underline; }
.noti-item img { width: 128px; height: 96px; flex: none; object-fit: cover; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.noti-item span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.noti-item b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noti-item em { font-style: normal; font-size: 12px; line-height: 1.3; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noti-item small { font-size: 11px; opacity: .65; }
.noti-puntos { position: absolute; right: 14px; top: 12px; display: flex; gap: 4px; } .noti-puntos i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); } .noti-puntos i.on { background: #fff; }
.noti-sinimg { width: 128px; height: 96px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .1); } .noti-sinimg svg { width: 40px; height: 40px; fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.8; stroke-linecap: round; }   /* nota sin foto: una pesa */

/* Administración */
.adm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 12px 16px; margin: 12px 0; }
.adm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tenue); }
.adm-form input, .adm-form select { height: 36px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; color: var(--txt); padding: 0 10px; background: var(--blanco); }
.adm-puntos { grid-template-columns: repeat(4, minmax(0, 150px)); }
.adm-sub { margin: 24px 0 0; font-size: 15px; }
.adm-prev { width: fit-content; margin: 8px 0 0; padding: 16px; background: #fff; color: #000; border: 1px solid var(--borde); font: 12px/1.35 Consolas, "Courier New", monospace; }
#vAdmin .cfg-card { margin-top: 12px; }
#ticket .tk-hr { border-top: 1px dashed #000; } #ticket .tk-c { text-align: center; }
.adm-cajas { margin-top: 8px; } .adm-cajas .num { text-align: right; font-variant-numeric: tabular-nums; } .adm-cajas tr.mal td:first-child { box-shadow: inset 3px 0 var(--peligro); }
.adm-cajas tfoot td { border-top: 1px solid var(--borde-fuerte); } #vAdmin .cfg-card__cab select { height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 8px; }
.cp-ls { display: flex; flex-direction: column; gap: 6px; } .cp-l { display: grid; grid-template-columns: minmax(0, 1fr) 72px 110px; gap: 6px; }
.adm-filtros { margin: 12px 0 4px; } .adm-filtros select { height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 8px; }
.ct-in { width: 80px; height: 30px; border: 1px solid var(--borde-fuerte); border-radius: 6px; font: inherit; text-align: right; padding: 0 8px; }
/* Formulario de carga como el TPV (compra, movimiento) */
.ted { display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.ted__cab { display: flex; align-items: baseline; gap: 16px; padding: 8px 12px; background: var(--acento); color: #fff; border-radius: 8px; } .ted__cab b { font-size: 16px; letter-spacing: .04em; }
.ted__form { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.ted-l { font-size: 12px; color: var(--tenue); text-align: right; } .ted-2 { grid-column: span 3; } .ted-c { display: flex; gap: 6px; } .ted-c select { width: 70px; }
.ted__form input, .ted__form select, .ted__linea input { height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 6px; font: inherit; padding: 0 8px; background: var(--blanco); min-width: 0; width: 100%; }
.ted__linea { display: grid; grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; padding: 10px; background: #fff8d6; border: 1px solid #e8d77a; border-radius: 8px; }
.ted__linea label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--tenue); } .ted__linea input { text-align: right; } .ted__linea #cpProd, .ted__linea #mvProd, .ted__linea #ivProd { text-align: left; }
.ted__info { margin: 0; font-size: 12px; color: var(--tenue); } .ted__det { flex: 1; min-height: 96px; overflow: auto; border: 1px solid var(--borde); border-radius: 8px; }
.ted__det tr[data-cpsel], .ted__det tr[data-mvsel] { cursor: pointer; } .ted__det tr.sel td { background: var(--acento-claro); }
.ted__pie { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; } .ted__acc { display: flex; gap: 8px; align-items: center; }
.ted__tot { display: grid; grid-template-columns: auto auto; gap: 2px 16px; text-align: right; font-variant-numeric: tabular-nums; } .ted__tot b { font-size: 18px; }
.ted__linea--mv { grid-template-columns: minmax(0, 3fr) repeat(2, minmax(0, 1fr)) auto; } .ted__form select:disabled { background: var(--fondo, #f2f2f2); color: var(--tenue); }
.ted-v { font-size: 13px; } .ted__anul { margin: 0; padding: 6px 12px; border-radius: 6px; background: #fde8e8; color: var(--peligro); font-weight: 600; } .ted--anul .ted__det { opacity: .6; }
tr.anulada td { color: var(--tenue); } tr.anulada td:not(:first-child) { text-decoration: line-through; } tr[data-cpver], tr[data-mvver] { cursor: pointer; } tr[data-cpver]:hover td, tr[data-mvver]:hover td { background: var(--acento-claro); }
.pill--rojo { background: #fde8e8; color: var(--peligro); }
.inv { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; margin-top: 12px; } .inv__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inv__lado { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--borde); border-radius: 8px; align-self: start; } .inv__lado .btn { justify-content: center; }
.inv__lado input, .inv__lado select { height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 6px; font: inherit; padding: 0 8px; width: 100%; } .inv__lado label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--tenue); margin-top: 6px; }
.ted__linea--inv { grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; } .ted__linea--inv select { height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 6px; font: inherit; padding: 0 8px; }
.inv-act { height: 32px; display: flex; align-items: center; justify-content: flex-end; font-size: 20px; color: var(--txt); } .ted__tot--inv { grid-template-columns: repeat(8, auto); align-items: baseline; }
.inv .ted__det th, .inv .ted__det td { padding-left: 8px; padding-right: 8px; }

/* Reportes del TPV (10/11) */
.rv-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-barra input[type=date] { height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 8px; }
.rv-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.rv-kpis div { border: 1px solid var(--borde); border-radius: 8px; padding: 8px 16px; display: flex; flex-direction: column; min-width: 128px; }
.rv-kpis span { font-size: 12px; color: var(--txt-2, #666); } .rv-kpis b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rv-tk { cursor: pointer; } .rv-tk:hover td, .rv-tk.on td { background: var(--acento-claro); }
.rv-det > td { background: var(--acento-claro); padding: 0 16px 8px !important; }
.rv-lin { width: 100%; border-collapse: collapse; font-size: 13px; } .rv-lin td { padding: 4px 8px; border: 0; } .rv-lin .num { text-align: right; font-variant-numeric: tabular-nums; }
.rv-bar { display: block; min-width: 160px; height: 12px; background: var(--acento-claro); border-radius: 2px; overflow: hidden; }
.rv-bar b { display: block; height: 100%; background: var(--acento); } .rv-bar u { display: block; height: 100%; margin-left: auto; background: var(--acento-osc); }
.rv-rank { display: grid; grid-template-columns: minmax(160px, max-content) minmax(0, 1fr) max-content; gap: 8px 16px; align-items: center; margin: 16px 0 4px; max-width: 880px; font-size: 13px; }
.rv-rank .num { text-align: right; font-variant-numeric: tabular-nums; }
.rv-ley { display: flex; gap: 8px; align-items: center; font-size: 12px; margin: 0 0 8px; } .rv-ley i { width: 12px; height: 12px; display: inline-block; } .rv-c1 { background: var(--acento); } .rv-c2 { background: var(--acento-osc); margin-left: 8px; }

.nav-grupo summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--txt-2, #666); border-radius: 8px; }
.nav-grupo summary::-webkit-details-marker { display: none; }
.nav-grupo summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.nav-grupo[open] summary::after { transform: rotate(45deg); } .nav-grupo summary:hover { background: var(--acento-claro); }
.nav-grupo > button { width: 100%; padding-left: 16px; }

/* Sin scroll (criterio 10/11): paginador de tablas y textos que no estiran la tabla */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--tenue); }
.pager .btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.pager svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#vAdmin .cfg-txt { max-width: 280px; }
#vAdmin .cfg-det { overflow-x: hidden; }

.adm-form--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; } .adm-form--1 { grid-template-columns: minmax(0, 360px); }
.adm-fe { grid-column: span 3; align-self: end; flex-direction: row !important; align-items: center; color: var(--txt) !important; font-size: 13px !important; }
.adm-tk { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 32px; align-items: start; }
.adm-tk .adm-prev { font-size: 10px; line-height: 1.2; } .adm-sub--0 { margin-top: 0; }

/* Excel y PDF arriba a la derecha de cada listado */
#vAdmin .cfg-det { position: relative; }
.exp { position: absolute; top: 16px; right: 24px; display: flex; gap: 8px; }
.exp .btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; }
.exp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#vAdmin .adm-sub { margin-top: 16px; } #vAdmin .adm-form { margin: 8px 0; }
.adm-tk .adm-prev { line-height: 1.1; padding: 8px 12px; }
/* Sin scroll (10/11): resumen de caja y grilla de venta más compactos para que entren en 1366×688 */
.resumen div { padding-top: 3px; padding-bottom: 3px; } .resumen h3 { margin-top: 8px; } .resumen .res-big { padding: 8px 14px; } .resumen .acc { padding: 12px 16px; }
.adm-tk .adm-prev { font-size: 9.5px; }
.tpv-t td { padding-top: 7px; padding-bottom: 7px; }
.resumen div { padding-top: 2px; padding-bottom: 2px; font-size: 13px; } .resumen h3 { margin: 6px 16px 0; } .resumen .res-sub, .resumen .res-quien { padding-top: 1px; padding-bottom: 1px; }
.tpv-t--prod td { padding-top: 5px; padding-bottom: 5px; } .tpv-t--prod .tpv-fav button, .tpv-t--prod .tpv-fav svg { max-height: 22px; }
.resumen .res-big b { font-size: 22px; } .resumen .total { padding: 8px 16px; margin-top: 4px; }
.tpv-t--prod td { height: 36px; }
.resumen .acc { padding: 8px 16px; gap: 6px; } .resumen h3 { margin-top: 4px; } .resumen .res-big { margin-bottom: 2px; }

#contenido .pager { padding-top: 4px; }

/* CRM sin scroll (10/11) */
.crm-chat[hidden], .cfg-det tr[hidden], #contenido tr[hidden] { display: none !important; }
.crm-chats .pager { margin-top: auto; padding: 8px 12px 4px; }
.crm-chat__pills { flex-wrap: nowrap; overflow: hidden; } .crm-chat__pills > * { flex: none; }
#fsDatos .fs__c { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 6px 8px; }
#fsDatos .fs__c > label { font-size: 11px; } #fsDatos .fs__c > small { grid-column: 1 / -1; }
#fsDatos .fs__c input, #fsDatos .fs__c select { height: 32px; } #fsDatos .fs__c textarea { min-height: 0; }
.crm-contacto .fs { padding-top: 8px; padding-bottom: 8px; }
.crm-contacto { padding-top: 12px; padding-bottom: 8px; } .crm-contacto__acc { margin: 4px 0; }

/* Minimalismo (10/11): menos peso visual en lo que está bien y en lo secundario */
.marcas--ok .marca.si { color: var(--tenue); font-weight: 400; } .marcas--ok .marca svg { display: none; } .marcas--ok { gap: 8px; }
.obs-mas { align-self: flex-start; margin-top: 12px; font-size: 13px; }
.acc-grupo { border: 0; background: none; padding: 0; }
.acc-grupo .btn svg { color: var(--tenue); } .acc-grupo .btn:hover svg { color: var(--acento); }
.asist__datos b { font-size: 14px; } .asist__datos { gap: 2px 16px; }

/* D1 (10/11): panel derecho más liviano */
.ocup__horas { height: 48px; } .ocup__pie { font-size: 11px; color: var(--tenue); }
/* D2 (10/11): lo que está bien no llama la atención */
.t-socios .badge.b-activo { background: none; color: var(--tenue); font-weight: 400; padding-left: 0; }
.t-socios tr:not(.vencido) .vence b { font-weight: 500; }
.t-socios .nombre small, .t-socios .vence small { font-size: 11px; }
.estrellas svg { width: 13px; height: 13px; } .estrellas svg.on { fill: #f3c64d; stroke: #e0b03c; }
.id__datos dt { color: var(--tenue); font-weight: 400; }
.rv-grupo td { background: var(--acento-claro); color: var(--acento-osc); font-weight: 600; font-size: 12px; padding-top: 6px !important; padding-bottom: 6px !important; }
.det > .asist { margin-top: auto; }   /* pedido 10/11: calendario y asistencia al pie, así arriba queda lo de hoy */
html, body { overflow: hidden; }   /* D9: la app es de pantalla fija; un elemento de 3 px de más hacía aparecer la barra de la ventana */
.exp--pie { position: static; margin-right: auto; }
/* D11 (10/11): Clases más liviana. Presente/ausente siempre a mano; QR y quitar aparecen al pasar el mouse o con el foco en la fila. */
.res-acc > :not(.res-pa):not(.res-avisar) { opacity: 0; transition: opacity .12s; }
tr:hover .res-acc > *, tr:focus-within .res-acc > * { opacity: 1; }
.res-est.res-reservada { background: none; color: var(--tenue); padding-left: 0; }
.res-pa { border-color: transparent; } tr:hover .res-pa { border-color: var(--borde); }

/* Cartel de quien entra (opción por PC) */
.cartel-ing { position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 20px; min-width: 460px; padding: 16px 28px 16px 16px; border: 0; border-left: 8px solid var(--ok); border-radius: 14px; background: var(--blanco); box-shadow: 0 16px 48px rgba(20, 6, 32, .35); text-align: left; cursor: pointer; animation: ing-entra .3s cubic-bezier(.2, .8, .2, 1); }
.cartel-ing.no { border-left-color: var(--peligro); }
.cartel-ing .foto { width: 96px; height: 96px; font-size: 28px; flex: none; }
.cartel-ing span { display: flex; flex-direction: column; gap: 2px; } .cartel-ing b { font-size: 22px; } .cartel-ing em { font-style: normal; font-weight: 700; font-size: 15px; color: var(--ok); } .cartel-ing.no em { color: var(--peligro); } .cartel-ing small { color: var(--tenue); font-size: 13px; }
/* Tarjeta del último ingreso: plan y hora en renglones propios (salían pegados) */
.ing-ultimo small { display: block; } .ing-ultimo .ing-plan { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ing-ultimo > span { min-width: 0; }
/* Período de las membresías: fechas a la izquierda y en un renglón */
.memb th:nth-child(2), .memb td:nth-child(2) { text-align: left; white-space: nowrap; }

/* Buscador tipo TPV (10/11) */
.busca { position: fixed; z-index: 70; background: var(--blanco); border: 1px solid var(--acento-borde); border-radius: 8px; box-shadow: 0 12px 32px rgba(20, 6, 32, .22); overflow: hidden; }
.busca table { width: 100%; border-collapse: collapse; font-size: 13px; }
.busca th { background: var(--acento-osc); color: #fff; font-size: 12px; font-weight: 600; text-align: left; padding: 6px 10px; }
.busca td { padding: 6px 10px; border-bottom: 1px solid var(--borde); cursor: pointer; white-space: nowrap; } .busca .num { text-align: right; font-variant-numeric: tabular-nums; }
.busca tr.on td, .busca tbody tr:hover td { background: var(--acento-claro); color: var(--acento-osc); }
.busca p, .busca small { display: block; margin: 0; padding: 8px 10px; font-size: 12px; }
/* Sin scroll a 1280 (10/11): inventario sin la columna Código (el producto ya dice cuál es) y celdas que pueden bajar de renglón */
.inv .ted__det th:nth-child(3), .inv .ted__det td:nth-child(3) { display: none; }
#vAdmin .cfg-det .hm td, #vAdmin .cfg-det .hm th, .inv .ted__det td { white-space: normal; overflow-wrap: anywhere; }
#vAdmin .cfg-det .hm td.num, #vAdmin .cfg-det .hm th.num { overflow-wrap: normal; white-space: nowrap; }
.rv-tk.foco td { background: var(--acento-claro); box-shadow: inset 0 1px var(--acento), inset 0 -1px var(--acento); } .rv-tk.foco td:first-child { box-shadow: inset 3px 0 var(--acento), inset 0 1px var(--acento), inset 0 -1px var(--acento); }

/* E7 (10/11): CRM más liviano. Acciones secundarias del chat en "Más"; sin el renglón del usuario (ya está arriba); hasta 2 etiquetas por chat */
.cab-mas { position: relative; } .cab-mas > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; } .cab-mas > summary::-webkit-details-marker { display: none; }
.cab-mas svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cab-mas__m { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; min-width: 160px; padding: 4px; background: var(--blanco); border: 1px solid var(--borde); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 6, 32, .18); }
.cab-mas__m .btn { border: 0; justify-content: flex-start; width: 100%; background: none; } .cab-mas__m .btn:hover { background: var(--acento-claro); }
.crm-yo { display: none !important; }
.crm-chat__pills > :nth-child(n+3) { display: none; }
#modal .modal__tabla--pag { overflow: visible; max-height: none; } #modal .modal__tabla tr[hidden] { display: none; } #mPag { margin-top: 8px; }

/* F1: buscador de las grillas */
.g-acc { display: flex; gap: 8px; align-items: center; }
.g-busca { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--borde-fuerte); border-radius: 8px; background: var(--blanco); }
.g-busca svg { width: 14px; height: 14px; fill: none; stroke: var(--tenue); stroke-width: 2; } .g-busca input { border: 0; outline: 0; font: inherit; width: 180px; background: none; }
.g-busca:focus-within { border-color: var(--acento); }
.pp-caja { grid-column: 2; margin-top: -4px; }

/* F7: foco visible igual en todo lo que se maneja con teclado */
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, [tabindex]:focus-visible, .btn:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

/* G3: avisos en la barra lateral del administrador */
.nav-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--peligro); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--peligro); margin-left: 6px; margin-right: auto; display: inline-block; }
.rv-com { width: 56px; height: 32px; border: 1px solid var(--borde-fuerte); border-radius: 8px; font: inherit; padding: 0 8px; text-align: right; }
/* Molinete real (Los Laureles, datos del sistema actual) */
#real { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.sombra-cab { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; } .modal__cuerpo .cierres:has(.sombra-ej) { grid-column: 1 / -1; } .sombra-cab p { flex: 1; margin: 0; } .sombra-cab label { white-space: nowrap; }
.sombra-ej { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tenue); font-size: 12px; }
.real-cab .link { text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }
.real-cab { font-size: 11px; font-weight: 600; color: var(--tenue); text-transform: uppercase; letter-spacing: .04em; }
.real-clave { display: flex; flex-wrap: wrap; gap: 8px; } .real-clave p { flex-basis: 100%; margin: 0; } .real-clave input { flex: 1; min-width: 0; }
#real .ing small:first-child { margin: 0 8px 0 0; font-variant-numeric: tabular-nums; }
.real-foto { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; margin-right: 8px; background: var(--fondo); }
.real-foto:not([src]) { visibility: hidden; } .real-foto.sin { visibility: visible; }
#real .real-ultimo { padding: 10px; border: 1px solid var(--acento-borde); } #real .real-ultimo .real-foto { width: 64px; height: 64px; } #real .real-ultimo span { font-size: 15px; }
/* Cartel de la cámara de la puerta: foto de recién (cámara) al lado de la del registro, para ver si coinciden. Se va solo a los 8 s. */
.cartel-cam { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; width: 640px; padding: 24px; border-radius: 16px; background: var(--blanco); border-top: 10px solid var(--ok); box-shadow: 0 24px 64px rgba(20, 6, 32, .45); animation: ing-entra .3s cubic-bezier(.2, .8, .2, 1); }
.cartel-cam.no { border-top-color: var(--peligro); }
.cartel-cam__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cartel-cam figure { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cartel-cam img { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; background: var(--borde); }
.cartel-cam figcaption { font-size: 13px; color: var(--tenue); }
.cartel-cam h2 { margin: 16px 0 4px; font-size: 26px; }
.cartel-cam em { display: block; font-style: normal; font-weight: 700; font-size: 20px; color: var(--ok); } .cartel-cam.no em { color: var(--peligro); }
.cartel-cam small { display: block; margin-top: 4px; color: var(--tenue); font-size: 14px; }
.cartel-cam__fotos.una { grid-template-columns: 1fr; } .cartel-cam__fotos.una img { height: 360px; }
