/* ADMINWEB de DOMIA: claro y sobrio, como la página */
:root {
    --fondo: #f6f5f1; --panel: #ffffff; --panel-2: #faf9f6; --borde: #e6e2d9; --borde-fuerte: #cfcabe;
    --texto: #121212; --suave: #5c5c5c; --tenue: #8f8f8f; --acento: #e24a1b; --acento-suave: #fdeee8; --bien: #1f7a4d; --peligro: #c2410c;
    --fuente: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; --serif: 'Instrument Serif', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--fondo); color: var(--texto); font: 15px/1.5 var(--fuente); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-weight: 600; letter-spacing: -0.025em; margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }

.logo { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; flex: none; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primario { background: var(--texto); color: #fff; }
.btn.primario:hover { background: var(--acento); }
.btn.borde { border-color: var(--borde-fuerte); background: #fff; }
.btn.borde:hover { border-color: var(--texto); }
.btn.fantasma:hover { background: rgba(0, 0, 0, 0.05); }
.btn.chico { min-height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.ancho { width: 100%; }
.peligro { color: var(--peligro) !important; }
.fila { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fila.fin { justify-content: flex-end; }

/* entrada: panel de color con los dos logos a la izquierda y el formulario a la derecha */
.entrada { --azul: #2563ff; --grad: linear-gradient(100deg, #1d4dff 0%, #2f6bff 45%, #19b5ff 100%); min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #f5f8ff; font-family: 'Plus Jakarta Sans', var(--fuente); }
.entrada-lado { position: relative; overflow: hidden; margin: 14px; border-radius: 28px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; color: #fff; background: linear-gradient(140deg, #1d4dff 0%, #3b5bff 45%, #7b6cff 100%); }
.entrada-lado > * { position: relative; z-index: 1; }
.entrada-lado .luz { position: absolute; z-index: 0; border-radius: 50%; filter: blur(80px); opacity: 0.6; animation: flotarLuz 16s ease-in-out infinite alternate; }
.entrada-lado .l1 { width: 420px; height: 420px; background: #22c3ff; top: -120px; left: -80px; }
.entrada-lado .l2 { width: 380px; height: 380px; background: #ff5c8a; bottom: -140px; right: -60px; animation-delay: -5s; }
.entrada-lado .l3 { width: 300px; height: 300px; background: #a78bfa; top: 40%; left: 40%; animation-delay: -10s; }
@keyframes flotarLuz { 50% { transform: translate(30px, 20px) scale(1.08); } 100% { transform: translate(-20px, 10px) scale(0.95); } }
.entrada-lado .rejilla { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 30%, transparent 80%); }
.entrada-logos { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); }
.entrada-logos img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; }
.entrada-logos img:last-child { border-radius: 0; width: 52px; height: 52px; }
.entrada-logos span { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.4); }
.entrada-mensaje h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 13ch; }
.entrada-mensaje h2 em { font-style: normal; background: linear-gradient(100deg, #a5f3fc, #ffffff 60%, #fbcfe8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entrada-mensaje p { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); max-width: 40ch; }
.entrada-paginas { display: grid; gap: 12px; margin-top: 32px; max-width: 400px; }
.entrada-pagina { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); color: #0b1a4a; box-shadow: 0 22px 40px -22px rgba(10, 20, 80, 0.7); animation: vaivenPagina 6s ease-in-out infinite; }
.entrada-pagina.p2 { margin-left: 44px; animation-delay: -3s; }
@keyframes vaivenPagina { 50% { transform: translateY(-6px); } }
.entrada-pagina img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; }
.entrada-pagina.p2 img { border-radius: 0; }
.entrada-pagina b { display: block; font-size: 15px; }
.entrada-pagina small { color: #5b6b8f; font-size: 13px; }
.entrada-lapiz { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 16px; }
.entrada-pie { color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.entrada-form { display: grid; place-items: center; padding: 32px 20px; }
.entrada-caja { width: min(400px, 100%); display: grid; gap: 18px; }
.entrada-titulo { margin-bottom: 8px; }
.entrada-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(37, 99, 255, 0.1); color: var(--azul); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.entrada-titulo h1 { margin: 14px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: #0b1a4a; }
.entrada-titulo p { margin: 0; color: #5b6b8f; font-size: 15.5px; }
.campo-entrada { display: grid; gap: 7px; }
.campo-entrada > span { font-size: 13.5px; font-weight: 700; color: #0b1a4a; }
.campo-entrada input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid transparent; background: #eef2fb; font: 500 15.5px 'Plus Jakarta Sans', var(--fuente); color: #0b1a4a; outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.campo-entrada input::placeholder { color: #95a1bd; font-weight: 400; }
.campo-entrada input:focus { background: #fff; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.12); }
.con-ojo { position: relative; }
.con-ojo input { padding-right: 52px; }
.ver-clave { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; cursor: pointer; color: #8a96b3; display: grid; place-items: center; }
.ver-clave svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ver-clave:hover, .ver-clave.activo { color: var(--azul); background: rgba(37, 99, 255, 0.08); }
.btn-entrar { height: 54px; border: 0; border-radius: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px 'Plus Jakarta Sans', var(--fuente); color: #fff; background: var(--grad); background-size: 160% 100%; box-shadow: 0 16px 30px -14px rgba(29, 77, 255, 0.85); transition: background-position 0.5s, transform 0.3s; }
.btn-entrar:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-entrar .flecha { transition: transform 0.3s; }
.btn-entrar:hover .flecha { transform: translateX(4px); }
.btn-entrar:disabled { opacity: 0.65; cursor: wait; transform: none; }
.entrada-caja .nota { text-align: center; color: #8a96b3; font-size: 13px; margin: 4px 0 0; }
.entrada-caja .error:empty { display: none; }
.entrada-caja .error { padding: 10px 14px; border-radius: 12px; background: #fff1f2; color: #be123c; }
@media (max-width: 860px) {
    .entrada { grid-template-columns: 1fr; }
    .entrada-lado { min-height: 0; padding: 24px; }
    .entrada-mensaje p, .entrada-paginas, .entrada-pie { display: none; }
    .entrada-mensaje h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .entrada-lado .luz, .entrada-pagina { animation: none; } }
.error { color: var(--peligro); margin: 0; font-size: 14px; }
.error:empty { display: none; }

/* campos */
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo.ancho { grid-column: 1 / -1; }
.campo > span { font-size: 12.5px; font-weight: 500; color: var(--suave); }
.campo input, .campo textarea, .campo select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--borde-fuerte); background: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--texto); box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.07); }
.campo-si { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.campo-si input { width: 18px; height: 18px; accent-color: var(--texto); }
.imagen { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.imagen-vista { width: 200px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde); display: grid; place-items: center; background: var(--panel-2); color: var(--tenue); font-size: 13px; }
.imagen-vista img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border-radius: 10px; border: 1px solid var(--borde-fuerte); background: #fff; }
.etiquetas input { flex: 1; min-width: 160px; border: 0 !important; box-shadow: none !important; padding: 5px !important; }
.etq { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 11px; border-radius: 999px; background: var(--fondo); border: 1px solid var(--borde); font-size: 13.5px; }
.etq button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--suave); }
.etq button:hover { background: var(--borde); color: var(--texto); }

/* marco */
.marco { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 18px 12px; background: #fff; border-right: 1px solid var(--borde); }
.lateral-marca { display: flex; align-items: center; gap: 11px; padding: 2px 8px 14px; }
.lateral-marca b { display: block; font-size: 15px; }
.lateral-marca small { color: var(--suave); font-size: 12px; }
.lateral nav { display: grid; gap: 1px; }
.nav-grupo { margin: 16px 10px 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tenue); }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left; color: var(--suave); transition: background 0.15s, color 0.15s; }
.nav:hover { background: var(--fondo); color: var(--texto); }
.nav.activo { background: var(--fondo); color: var(--texto); font-weight: 600; box-shadow: inset 2px 0 0 var(--acento); }
.nav-icono { width: 22px; text-align: center; filter: grayscale(1); opacity: 0.75; }
.nav.activo .nav-icono { filter: none; opacity: 1; }
.contador { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--acento); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.lateral-pie { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--borde); display: grid; gap: 10px; }
.yo { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.yo b { display: block; font-size: 14px; } .yo small { color: var(--suave); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fondo); border: 1px solid var(--borde); font-weight: 600; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.superior { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(246, 245, 241, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.superior h1 { font-size: 22px; margin-right: auto; }
.menu-celular { display: none; font-size: 20px; }
.trabajo { padding: 26px 32px 120px; max-width: 1080px; width: 100%; }
.cargando { color: var(--suave); }

/* tarjetas y listas */
.tarjeta { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--borde); margin-bottom: 16px; }
.tarjeta h2 { font-size: 16px; margin-bottom: 16px; }
.tarjeta-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.tarjeta-cabeza h2 { margin: 0; }
.ayuda { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--acento-suave); color: #7a2a0f; }
.acciones-seccion { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.items { display: grid; gap: 8px; }
.item { border-radius: 12px; border: 1px solid var(--borde); background: var(--panel-2); }
.item[open] { background: #fff; border-color: var(--borde-fuerte); }
.item.apagado summary b { color: var(--tenue); text-decoration: line-through; }
.item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.item summary::-webkit-details-marker { display: none; }
.item summary b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.item summary small { color: var(--tenue); font-size: 12px; }
.num { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--fondo); font-size: 12px; font-weight: 600; color: var(--suave); }
.item-acciones { margin-left: auto; display: flex; gap: 4px; flex: none; }
.mini { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--borde); background: #fff; cursor: pointer; }
.mini:hover:not(:disabled) { border-color: var(--texto); }
.mini:disabled { opacity: 0.3; cursor: default; }
.item > .campos, .item > .campo-si { padding: 4px 14px 16px; }
.item > .campo-si { padding-bottom: 6px; }

.barra-guardar { position: fixed; left: calc(126px + 50%); transform: translate(-50%, 160%); bottom: 18px; z-index: 30; width: min(700px, calc(100% - 252px - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--texto); color: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5); transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.15); }
.barra-guardar.visible { transform: translate(-50%, 0); }
.barra-guardar > span { font-weight: 500; font-size: 14px; }
.barra-guardar .btn.fantasma { color: #fff; }
.barra-guardar .btn.fantasma:hover { background: rgba(255, 255, 255, 0.12); }
.barra-guardar .btn.primario { background: #fff; color: var(--texto); }
.barra-guardar .btn.primario:hover { background: var(--acento); color: #fff; }

/* vista en vivo */
.barra-vista { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.barra-vista p { margin: 0; color: var(--suave); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.barra-vista .chips { margin: 0; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--borde-fuerte); background: #fff; cursor: pointer; color: var(--suave); }
.chip.activo { background: var(--texto); border-color: var(--texto); color: #fff; }
.pagina-caja { border-radius: 14px; overflow: hidden; border: 1px solid var(--borde); background: #fff; margin-inline: auto; transition: width 0.35s; width: 100%; height: calc(100vh - 190px); min-height: 520px; box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.4); }
.pagina-caja.celular { width: 390px; max-width: 100%; }
.pagina { width: 100%; height: 100%; border: 0; display: block; }

/* mensajes */
.mensajes { display: grid; gap: 10px; }
.mensaje { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--borde); }
.mensaje.nuevo { box-shadow: inset 3px 0 0 var(--acento); }
.mensaje header { display: flex; justify-content: space-between; gap: 12px; }
.mensaje header b { display: block; font-size: 16px; } .mensaje header small, .mensaje time { color: var(--suave); font-size: 13px; }
.mensaje p { white-space: pre-wrap; margin: 12px 0 14px; }
.vacio { padding: 48px 20px; text-align: center; border-radius: 14px; border: 1px dashed var(--borde-fuerte); color: var(--suave); background: #fff; }
.vacio b { color: var(--texto); font-size: 17px; }

/* usuarios y actividad */
.tabla { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; color: var(--tenue); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; padding: 8px 10px; }
td { padding: 12px 10px; border-top: 1px solid var(--borde); vertical-align: middle; }
td small { display: block; color: var(--suave); }
tr.apagado td { opacity: 0.5; }
.actividad { list-style: none; margin: 0; padding: 0; display: grid; }
.actividad li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--borde); }
.actividad time { color: var(--tenue); font-size: 13px; width: 120px; }
.actividad small { flex-basis: 100%; padding-left: 132px; color: var(--suave); }

/* avisos y modal */
.avisos { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; gap: 8px; }
.aviso { padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--borde); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35); animation: entra 0.3s; max-width: 340px; }
.aviso.bien { box-shadow: inset 3px 0 0 var(--bien), 0 12px 30px -14px rgba(0, 0, 0, 0.35); }
.aviso.mal { box-shadow: inset 3px 0 0 var(--peligro), 0 12px 30px -14px rgba(0, 0, 0, 0.35); color: #7a2a0f; }
.aviso.sale { opacity: 0; transform: translateX(20px); transition: 0.3s; }
@keyframes entra { from { opacity: 0; transform: translateY(-8px); } }
.modal-fondo { position: fixed; inset: 0; z-index: 90; background: rgba(18, 18, 18, 0.35); display: grid; place-items: center; padding: 16px; }
.modal { width: min(420px, 100%); padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--borde); display: grid; gap: 14px; }

@media (max-width: 900px) {
    .entrada { grid-template-columns: 1fr; }
    .entrada-fondo { display: none; }
    .marco { grid-template-columns: 1fr; }
    .lateral { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform 0.3s; box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15); }
    .marco.menu-abierto .lateral { transform: none; }
    .menu-celular { display: inline-flex; }
    .superior, .trabajo { padding-inline: 16px; }
    .campos { grid-template-columns: 1fr; }
    .barra-guardar, .barra-guardar.visible { left: 50%; width: calc(100% - 24px); }
    .actividad small { padding-left: 0; }
}

.barra-vista .paginas { margin: 0; }
.nota-vista { margin: -4px 0 12px; color: var(--suave); font-size: 14px; }

/* elegir qué página se edita: DOMIA o NXT */
.selector-pagina { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.05); }
.selector-pagina button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 8px; border-radius: 10px; font-weight: 600; font-size: 14px; color: inherit; opacity: 0.7; transition: background 0.2s, opacity 0.2s, box-shadow 0.2s; }
.selector-pagina button img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.selector-pagina button.activo { background: #fff; opacity: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px -6px rgba(0, 0, 0, 0.25); }
.selector-pagina button:disabled { cursor: not-allowed; opacity: 0.35; }
.entrada-marca .logos { display: flex; }
.entrada-marca .logos img + img { margin-left: -10px; }

/* =====================================================================
   el panel igual al adminweb de Dual POS (pedido del usuario 2026-11-27): barra azul arriba, la página de verdad en un
   marco y el editor de cada parte en un panel al lado. tarjetas blancas, botones morados y campos redondeados.
   ===================================================================== */
body.en-panel { --fondo: #f3f5fb; --panel-2: #f8fafc; --borde: #e8ecf4; --borde-fuerte: #d5dbe7; --texto: #0f172a; --suave: #64748b; --tenue: #94a3b8;
    --morado: #6d4aff; --grad: linear-gradient(135deg, #6d4aff, #a855f7); --azul: #2563eb; --peligro: #e11d48;
    background: var(--fondo); color: var(--texto); font: 15px/1.5 'Inter', system-ui, sans-serif; }
.en-panel h1, .en-panel h2, .en-panel h3 { font-family: 'Outfit', 'Inter', sans-serif; letter-spacing: -0.02em; }
.svg { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.7rem 1.25rem; color: #fff;
    background: linear-gradient(90deg, #0b1440, #1b2a6e); box-shadow: 0 10px 20px -12px rgba(2, 6, 23, 0.6); }
.cabecera-marca { display: flex; align-items: center; gap: 0.75rem; }
.cabecera-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 0.7rem; background: #fff; }
.cabecera-logo img { width: 34px; height: 34px; object-fit: contain; }
.cabecera-titulo { font: 900 1.15rem 'Outfit', 'Inter', sans-serif; letter-spacing: 0.01em; }
.selector-sitio { display: flex; gap: 4px; padding: 4px; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.selector-sitio button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border: 0; border-radius: 0.7rem; background: none; color: rgba(255, 255, 255, 0.78); font-weight: 800; font-size: 0.85rem; cursor: pointer; }
.selector-sitio button img { width: 24px; height: 24px; border-radius: 6px; background: #fff; object-fit: contain; padding: 2px; }
.selector-sitio button.activo { background: #fff; color: #0b1440; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.6); }
.selector-sitio button:not(.activo):hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.selector-sitio button:disabled { opacity: 0.4; cursor: not-allowed; }
.cabecera-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-left: auto; }
.btn-cabecera { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; border-radius: 0.8rem; font-size: 0.85rem; font-weight: 800; color: #fff; cursor: pointer;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); }
.btn-cabecera:hover { background: rgba(255, 255, 255, 0.18); }
.btn-cabecera .contador { margin: 0 0 0 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: #f43f5e; color: #fff; }
.cabecera .yo { display: flex; flex-direction: column; gap: 0; padding: 0 0.25rem; line-height: 1.15; }
.cabecera .yo b { font-size: 0.85rem; font-weight: 800; }
.cabecera .yo small { font-size: 0.68rem; font-weight: 700; color: #a5b4fc; text-transform: uppercase; letter-spacing: 0.06em; }
.btn-salir { width: 2.25rem; height: 2.25rem; display: inline-grid; place-items: center; border: 0; border-radius: 0.8rem; background: rgba(244, 63, 94, 0.18); color: #fecdd3; cursor: pointer; }
.btn-salir:hover { background: rgba(244, 63, 94, 0.3); }

/* la barra de la vista */
.area { padding: 1rem 1rem 1.5rem; }
.barra-vista { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin: 0 0 0.9rem; padding: 0.9rem 1.1rem; border-radius: 20px; background: #fff; border: 1px solid var(--borde); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); }
.titulos-vista { min-width: 14rem; flex: 1 1 14rem; }
.titulo-vista { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 1.15rem 'Outfit', 'Inter', sans-serif; color: var(--texto); }
.titulo-vista .svg { color: var(--azul); }
.estado-vista { margin: 2px 0 0; font-size: 0.85rem; color: var(--suave); }
.paginas-vista { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.boton-pagina { padding: 8px 13px; border-radius: 11px; font-size: 13px; font-weight: 700; color: #475569; background: #f1f5f9; border: 1px solid transparent; cursor: pointer; }
.boton-pagina:hover { background: #e2e8f0; }
.boton-pagina[data-activa="si"] { color: #fff; background: linear-gradient(135deg, #4f6bff 0%, #2563eb 100%); }
.acciones-vista { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-left: auto; }
.dispositivos { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: #f1f5f9; }
.boton-disp { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 9px; background: none; color: #64748b; cursor: pointer; }
.boton-disp[data-activa="si"] { background: #fff; color: var(--azul); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.boton-todas, .boton-ver { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 11px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.boton-todas { color: #1d4ed8; background: #eef3ff; border: 1px solid #c7d7fe; }
.boton-ver { color: #334155; background: #fff; border: 1px solid #e2e8f0; }
.boton-ver:hover { background: #f8fafc; }

/* la página y el panel de al lado */
.vista-web { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.vista-web[data-panel="si"] { grid-template-columns: minmax(0, 1fr) min(38rem, 46%); }
.vista-web[data-sin-pagina="si"] { grid-template-columns: minmax(0, 1fr); }
.pagina-caja { height: calc(100vh - 13rem); min-height: 30rem; margin: 0 auto; width: 100%; overflow: hidden; border: 1px solid var(--borde); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); transition: width 0.3s; }
.pagina-caja[data-disp="celular"] { width: 390px; max-width: 100%; border-radius: 28px; border: 8px solid #0f172a; }
.pagina { width: 100%; height: 100%; border: 0; display: block; }
.panel-lateral { min-width: 0; max-height: calc(100vh - 13rem); min-height: 30rem; overflow-y: auto; padding: 1rem; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--borde); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.vista-web[data-sin-pagina="si"] .panel-lateral { max-height: none; overflow: visible; }
.cabeza-panel { position: sticky; top: -1rem; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: -1rem -1rem 0.8rem; padding: 0.9rem 1rem; background: var(--panel-2); border-bottom: 1px solid var(--borde); }
.titulo-panel { margin: 0; font-weight: 800; color: var(--texto); }
.cerrar-panel { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; color: #475569; background: #fff; border: 1px solid #e2e8f0; cursor: pointer; }
.cerrar-panel:hover { background: #f1f5f9; }
.pestanas { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.pestana { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: 13px; white-space: nowrap; cursor: pointer; transition: 0.15s; }
.pestana[data-activa="si"] { background: var(--grad); color: #fff; border: 1px solid transparent; box-shadow: 0 8px 20px rgba(109, 74, 255, 0.25); }
.pestana[data-activa="no"] { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.pestana[data-activa="no"]:hover { background: #f8fafc; }

/* tarjetas, campos y botones (como en Dual POS) */
.en-panel .tarjeta { padding: 1.25rem; border-radius: 22px; background: #fff; border: 1px solid var(--borde); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.05); margin-bottom: 1rem; }
.en-panel .tarjeta h2 { font-size: 1.1rem; font-weight: 900; margin-bottom: 0.9rem; }
.en-panel .ayuda { margin: 0 0 1rem; padding: 0.75rem 0.9rem; border-radius: 14px; background: #eef3ff; color: #1e3a8a; font-size: 0.85rem; font-weight: 500; }
.panel-lateral .campos { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.en-panel .campo > span { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--suave); }
.en-panel .campo input, .en-panel .campo textarea, .en-panel .campo select, .texto-elemento { width: 100%; padding: 10px 13px; border-radius: 14px; border: 1px solid var(--borde-fuerte); background: #fff; font-size: 14px; outline: none; transition: border 0.15s, box-shadow 0.15s; }
.en-panel .campo input:focus, .en-panel .campo textarea:focus, .en-panel .campo select:focus, .texto-elemento:focus { border-color: var(--morado); box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.12); }
.texto-elemento { font-size: 15px; line-height: 1.45; resize: vertical; }
.en-panel .campo-si input { accent-color: var(--morado); }
.en-panel .etiquetas { border-radius: 14px; border-color: var(--borde-fuerte); }
.en-panel .etq { background: #f1efff; border-color: #ddd6fe; color: #4c2fd6; font-weight: 600; }
.en-panel .imagen-vista { border-radius: 14px; background: var(--panel-2); }
.en-panel .btn { border-radius: 14px; font-weight: 800; font-size: 14px; min-height: 40px; }
.en-panel .btn.chico { min-height: 34px; font-size: 13px; border-radius: 11px; }
.en-panel .btn.primario { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(109, 74, 255, 0.25); }
.en-panel .btn.primario:hover { filter: brightness(1.07); background: var(--grad); }
.en-panel .btn.borde { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.en-panel .btn.borde:hover { background: #f8fafc; border-color: #cbd5e1; }
.en-panel .btn.fantasma { color: #475569; }
.en-panel .item { border-radius: 16px; background: #fff; border-color: var(--borde); }
.en-panel .item[open] { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.08); }
.en-panel .item summary b { font-weight: 700; }
.en-panel .num { border-radius: 8px; background: #f1efff; color: #4c2fd6; font-weight: 800; }
.en-panel .mini { border-radius: 9px; background: #f1f5f9; border-color: transparent; }
.en-panel .mini:hover:not(:disabled) { background: #e2e8f0; border-color: transparent; }
.en-panel .mini.peligro { background: #fff1f2; }
.en-panel .acciones-seccion { justify-content: flex-start; }
/* la barra de guardar va abajo del panel */
.panel-lateral .barra-guardar { position: sticky; left: auto; bottom: -1rem; transform: translateY(140%); width: auto; margin: 0 -0.25rem; border-radius: 18px; background: #0f172a; opacity: 0; pointer-events: none; transition: transform 0.3s, opacity 0.3s; }
.panel-lateral .barra-guardar.visible { transform: none; opacity: 1; pointer-events: auto; }
.panel-lateral .barra-guardar .btn.primario { background: var(--grad); color: #fff; }
/* un texto suelto */
.tarjeta-elemento { display: grid; gap: 12px; }
.ayuda-elemento { margin: 0; font-size: 13px; line-height: 1.45; color: var(--suave); }
.botones-elemento { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.botones-elemento .espacio { flex: 1; }

/* ventanas: mensajes, usuarios, actividad, mi clave */
.en-panel .modal-fondo { z-index: 90; align-items: start; overflow-y: auto; padding: 1.5rem 0.75rem; background: rgba(15, 23, 42, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.en-panel .modal { border-radius: 22px; border-color: var(--borde); padding: 1.5rem; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); }
.en-panel .modal.ancho { width: min(46rem, 100%); }
.en-panel .modal h2 { font-size: 1.25rem; font-weight: 900; }
.en-panel .modal .campo > span { font-size: 0.75rem; font-weight: 800; color: #475569; text-transform: none; letter-spacing: 0; }
.modal-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ventana-cuerpo .tarjeta { box-shadow: none !important; padding: 0 !important; border: 0 !important; }
.en-panel .chip { border-radius: 11px; font-weight: 700; font-size: 13px; padding: 7px 13px; background: #f1f5f9; border-color: transparent; color: #475569; cursor: pointer; }
.en-panel .chip.activo { background: linear-gradient(135deg, #4f6bff 0%, #2563eb 100%); color: #fff; }
.en-panel .mensaje { border-radius: 16px; border-color: var(--borde); }
.en-panel .mensaje.nuevo { box-shadow: inset 3px 0 0 var(--morado); }
.en-panel .vacio { border-radius: 16px; border-color: #e2e8f0; }
.en-panel .aviso { border-radius: 1rem; font-weight: 700; }

@media (max-width: 900px) {
    .vista-web[data-panel="si"] { grid-template-columns: minmax(0, 1fr); }
    .vista-web[data-panel="si"]:not([data-sin-pagina="si"]) .panel-lateral { position: fixed; inset: 0.5rem; z-index: 60; max-height: none; }
}
@media (max-width: 640px) {
    .cabecera { padding: 0.6rem 0.75rem; }
    .solo-ancho, .cabecera .yo, .cabecera-titulo { display: none; }
    .area { padding: 0.6rem; }
    .acciones-vista { margin-left: 0; }
    .pagina-caja { height: calc(100vh - 16rem); }
}
.selector-sitio button[data-sin-base] { opacity: 0.55; }
.falla { margin: 0 0 1rem; padding: 0.9rem 1rem; border-radius: 14px; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; font: 600 0.85rem/1.5 'Inter', sans-serif; white-space: pre-wrap; word-break: break-word; }
