/* ============================================================
   Panel de Contesta con el lenguaje visual de Firma Transaccional (Ecountia):
   menú lateral navy con puntos y brillo, títulos en Sora y texto en Inter, tarjetas de 24 px sin sombra,
   botones de 12 px, insignias sólidas, íconos de Bootstrap Icons. Solo dos colores en los componentes:
   el oscuro (#0a1533) y el acento cian (#00c2cc). Tema claro y oscuro.
   ============================================================ */
:root {
  --oscuro: #0a1533; --oscuro-hover: #162d69; --marca: #2e53b7;
  --acento: #00c2cc; --acento-hover: #33d0d6; --acento-texto: #00747a;
  --ambar: #f5a524; --rojo: #d93636;

  --bg-page: #e7f0fa; --bg-card: #ffffff; --bg-subtle: #eef1f6; --bg-hover: #f7f9fc;
  --text-primary: #141a28; --text-secondary: #4f5b71; --text-muted: #6c7a91;
  --border: #dde3ec; --border-strong: #c4cdda;
  --titulo: var(--oscuro);
  --btn-primario: var(--oscuro); --btn-primario-texto: #ffffff; --btn-primario-hover: var(--oscuro-hover);
  --burbuja-ia: color-mix(in srgb, var(--acento) 14%, var(--bg-card));
  --burbuja-humano: #fff4dd; --texto-humano: #9a5b00;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radio: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #0a0e17; --bg-card: #141a28; --bg-subtle: #232b3d; --bg-hover: #232b3d;
    --text-primary: #e7f0fa; --text-secondary: #c4cdda; --text-muted: #9aa6b9;
    --border: #394256; --border-strong: #4f5b71;
    --titulo: var(--text-primary);
    --btn-primario: var(--acento); --btn-primario-texto: var(--oscuro); --btn-primario-hover: var(--acento-hover);
    --acento-texto: var(--acento);
    --burbuja-humano: rgba(245,165,36,.16); --texto-humano: #fcd34d;
  }
}
:root[data-theme="dark"] {
  --bg-page: #0a0e17; --bg-card: #141a28; --bg-subtle: #232b3d; --bg-hover: #232b3d;
  --text-primary: #e7f0fa; --text-secondary: #c4cdda; --text-muted: #9aa6b9;
  --border: #394256; --border-strong: #4f5b71;
  --titulo: var(--text-primary);
  --btn-primario: var(--acento); --btn-primario-texto: var(--oscuro); --btn-primario-hover: var(--acento-hover);
  --acento-texto: var(--acento);
  --burbuja-humano: rgba(245,165,36,.16); --texto-humano: #fcd34d;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg-page); color: var(--text-primary); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; color: var(--titulo); text-wrap: balance; }
h2 { font-size: 24px; } h3 { font-size: 17px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.muted { color: var(--text-secondary); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acento-texto); }
.error { color: var(--rojo); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-primary); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.btn.primary { background: var(--btn-primario); border-color: var(--btn-primario); color: var(--btn-primario-texto); }
.btn.acento { background: var(--acento); border-color: var(--acento); color: var(--oscuro); }
.btn.facebook { background: #1877f2; border-color: #1877f2; color: #ffffff; height: 46px; padding: 0 22px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { background: var(--bg-hover); }
  .btn.primary:hover:not(:disabled) { background: var(--btn-primario-hover); border-color: var(--btn-primario-hover); transform: translateY(-1px); }
  .btn.acento:hover:not(:disabled) { background: var(--acento-hover); border-color: var(--acento-hover); }
  .btn.facebook:hover:not(:disabled) { background: #0f63d0; border-color: #0f63d0; transform: translateY(-1px); }
}

/* ---------- Campos ---------- */
label.f { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-primary); }
label.f input, label.f select, label.f textarea { font-weight: 400; font-size: 14px; border: 1.5px solid var(--border); background: var(--bg-card); border-radius: 12px; padding: 10px 14px; min-height: 44px;
  transition: border-color .2s ease, box-shadow .2s ease; }
label.f input:focus, label.f select:focus, label.f textarea:focus { outline: 0; border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 20%, transparent); }
details > summary { cursor: pointer; font-weight: 600; color: var(--text-secondary); }

/* ---------- Estructura: menú lateral + contenido ---------- */
.app { display: flex; min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; flex: 0 0 256px; display: flex; flex-direction: column; gap: 2px; padding: 22px 16px;
  overflow: hidden auto; isolation: isolate; background: var(--oscuro); color: #ffffff; scrollbar-width: none; }
.side::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.2px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%); mask-image: linear-gradient(to bottom, #000, transparent 60%); }
.side::after { content: ""; position: fixed; z-index: -1; width: 320px; height: 320px; left: -160px; bottom: -120px; border-radius: 50%;
  background: var(--marca); opacity: .4; filter: blur(80px); pointer-events: none; }
.marca { padding: 0 8px; margin-bottom: 18px; }
.marca img { display: block; height: 34px; width: auto; }
.biz { margin: 0 0 14px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }
.biz span { display: block; font-size: 12px; color: rgba(255,255,255,0.65); }
.biz b { display: block; margin-top: 2px; font: 700 15px var(--display); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent;
  color: rgba(255,255,255,0.72); font: 600 14.5px var(--sans); text-align: left; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.nav i { font-size: 17px; transition: color .2s ease; }
.nav > span:not(.pill) { flex: 1; }
.nav[aria-current="page"] { background: color-mix(in srgb, var(--acento) 16%, transparent); color: #ffffff; }
.nav[aria-current="page"] i { color: var(--acento); }
@media (hover: hover) and (pointer: fine) { .nav:hover { background: rgba(255,255,255,0.06); color: #ffffff; } }
.pill { min-width: 22px; padding: 1px 8px; border-radius: 999px; background: var(--acento); color: var(--oscuro); font-size: 12px; font-weight: 700; text-align: center; }
.spacer { flex: 1; }
.main { flex: 1; min-width: 0; max-width: 1200px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.head .muted { margin-top: 6px; }

/* ---------- Tarjetas e indicadores ---------- */
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radio); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radio); background: var(--bg-card); border: 1px solid var(--border); }
.kpi > i { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--oscuro); color: var(--acento); font-size: 19px; }
.kpi > div { display: flex; flex-direction: column; min-width: 0; }
.kpi .t { font-size: 13px; color: var(--text-secondary); }
.kpi .v { font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; color: var(--titulo); }
.kpi .n { font-size: 12px; color: var(--text-muted); }
.vacio { color: var(--text-secondary); padding: 20px; text-align: center; }

/* Insignias sólidas */
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--oscuro); color: #ffffff; }
.chip.Ia, .chip.ok { background: var(--acento); color: var(--oscuro); }
.chip.pendiente { background: var(--bg-subtle); color: var(--text-secondary); }

/* ---------- Conversaciones ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 560px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radio); }
.lista { display: flex; flex-direction: column; max-height: 70vh; min-width: 0; overflow: auto; border-right: 1px solid var(--border); }
/* La barra de chats y el encabezado de la conversación tienen la misma altura para que las líneas coincidan. */
.inbox { --alto-cabecera: 72px; }
.filtros { display: flex; align-items: center; gap: 8px; min-height: var(--alto-cabecera); padding: 0 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; flex: none; }
.filtros button { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); font-size: 13px; font-weight: 600; cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--btn-primario); border-color: var(--btn-primario); color: var(--btn-primario-texto); }
.conv { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--bg-subtle); background: transparent; text-align: left; cursor: pointer; }
.conv:hover { background: var(--bg-hover); box-shadow: inset 3px 0 0 var(--oscuro); }
.conv[aria-current="true"] { background: var(--bg-subtle); box-shadow: inset 4px 0 0 var(--oscuro); }
/* Chat que espera a una persona: la fila entera se marca con franja y fondo cian (como en Firma Transaccional). */
.conv--accion, .conv--accion:hover { background: color-mix(in srgb, var(--acento) 7%, var(--bg-card)); box-shadow: inset 4px 0 0 var(--acento); }
.conv--accion:hover { background: color-mix(in srgb, var(--acento) 12%, var(--bg-card)); }
.conv--accion[aria-current="true"] { background: color-mix(in srgb, var(--acento) 16%, var(--bg-card)); box-shadow: inset 4px 0 0 var(--acento); }
.te-toca { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--acento-texto); }
.te-toca > span { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--acento);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--acento) 60%, transparent); animation: te-toca 1.8s ease-out infinite; }
@keyframes te-toca { 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .te-toca > span { animation: none; } }
.ia-activa { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.ia-activa i { color: var(--acento-texto); }
.conv .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--titulo); }
.conv .s { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hora { font-weight: 400; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hilo { display: flex; flex-direction: column; min-width: 0; }
.thead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; min-height: var(--alto-cabecera); padding: 10px 18px; border-bottom: 1px solid var(--border); }
.quien { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quien b { font: 700 16px/1.25 var(--display); letter-spacing: -0.01em; color: var(--titulo); }
.quien .detalle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--text-muted); }
.quien .te-toca { margin-top: 0; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px; max-height: 55vh; overflow: auto; background: var(--bg-subtle); }
.m { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.m small { font-size: 11px; color: var(--text-muted); }
.m.Cliente { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.m.Asistente { align-self: flex-end; background: var(--burbuja-ia); border-bottom-right-radius: 6px; }
.m.Humano { align-self: flex-end; background: var(--burbuja-humano); border-bottom-right-radius: 6px; }
.compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.compose input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.compose input:focus { outline: 0; border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 20%, transparent); }
.nota { padding: 0 14px 12px; font-size: 13px; color: var(--texto-humano); }

/* ---------- Entrenar ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .ancho { grid-column: 1 / -1; }
.f-dueno { display: flex; flex-direction: column; gap: 8px; }
.f-dueno__pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.f-dueno__pie .btn { height: 34px; padding: 0 12px; font-size: 13px; flex: none; }
.form label.f textarea { min-height: 260px; font-family: var(--mono); font-size: 13px; resize: vertical; }

/* ---------- Conectar WhatsApp ---------- */
.conexion { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.pasos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: p; }
.pasos li { display: flex; gap: 12px; align-items: flex-start; }
.pasos li::before { counter-increment: p; content: counter(p); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--oscuro); color: var(--acento); font-size: 12px; font-weight: 700; }
.pasos b { color: var(--titulo); }
.numero { font: 700 28px/1.2 var(--display); letter-spacing: -0.02em; color: var(--titulo); }
.requisitos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text-secondary); }
.requisitos li { display: flex; gap: 10px; }
.requisitos li::before { content: "\F26A"; font-family: "bootstrap-icons"; color: var(--acento-texto); }
.advertencia { padding: 12px 14px; border-radius: 16px; background: var(--burbuja-humano); color: var(--texto-humano); font-size: 13px; }
/* Tarjeta destacada cuando el número ya está conectado (como "Recarga lista" en Firma Transaccional). */
.panel.listo { position: relative; overflow: hidden; background: var(--oscuro); border-color: var(--oscuro); color: #ffffff; }
.panel.listo::after { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; bottom: -160px; border-radius: 50%; background: var(--acento); opacity: .3; filter: blur(80px); pointer-events: none; }
.panel.listo > * { position: relative; z-index: 1; }
.panel.listo h3, .panel.listo .numero { color: #ffffff; }
.panel.listo .muted { color: rgba(255,255,255,0.75); }
.panel.listo .btn { background: transparent; border-color: rgba(255,255,255,0.3); color: #ffffff; }

/* ---------- Aviso ---------- */
.aviso { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: min(440px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px;
  background: var(--oscuro); color: #ffffff; font-weight: 600; box-shadow: 0 20px 60px rgba(20,26,40,.25); }
.aviso.mal { background: var(--rojo); }

/* ---------- Entrada (mismo diseño que los accesos de los portales de Ecountia) ---------- */
.ax { min-height: 100vh; display: flex; background: #eef1f6; color: #141a28; }
.ax-h { font-family: var(--display); letter-spacing: -0.02em; }
.ax-panel { position: relative; overflow: hidden; flex: 1 1 55%; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 56px; color: #ffffff; background: var(--oscuro); }
.ax-panel > * { position: relative; }
.ax-puntos { position: absolute !important; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 60%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 40% 60%, #000 15%, transparent 70%); }
.ax-glow { position: absolute !important; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.ax-glow--1 { width: 520px; height: 520px; left: -160px; bottom: -120px; opacity: .55; background: var(--marca); }
.ax-glow--2 { width: 380px; height: 380px; right: -100px; top: -60px; opacity: .3; background: var(--acento); }
.ax-marca { display: flex; align-items: center; gap: 12px; }
.ax-marca img { height: 40px; width: auto; }
.ax-chip { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.ax-glass { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ax-mensaje { max-width: 520px; }
.ax-etiqueta { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--acento); }
.ax-titulo { margin: 16px 0 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.06; color: #ffffff; }
.ax-titulo span { color: var(--acento); }
.ax-lead { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.75); }
.ax-beneficios { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.ax-beneficio { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; }
.ax-beneficio > i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acento); color: var(--oscuro); font-size: 18px; }
.ax-beneficio strong { display: block; font-size: 15px; }
.ax-beneficio span { font-size: 13px; color: rgba(255,255,255,0.72); }
.ax-panel__pie { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.65); }
.ax-panel__pie i { color: var(--acento); }
.ax-lado { flex: 1 1 45%; min-width: 0; display: flex; flex-direction: column; padding: 32px 40px; }
.ax-marca-movil { display: none; }
.ax-marca-movil img { height: 32px; width: auto; }
.ax-centro { flex: 1; display: grid; place-items: center; padding: 32px 0; }
.ax-caja { width: 100%; max-width: 420px; }
.ax-encabezado { display: flex; align-items: center; gap: 14px; }
.ax-encabezado > i { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--oscuro); color: var(--acento); font-size: 22px; }
.ax-encabezado h2 { font-size: 30px; color: #141a28; }
.ax-encabezado p { margin-top: 4px; color: #4f5b71; }
.ax-formulario { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.ax-campo label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #232b3d; }
.ax-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #dde3ec; background: #ffffff; color: #6c7a91; transition: border-color .2s ease, box-shadow .2s ease; }
.ax-input:focus-within { border-color: var(--marca); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marca) 14%, transparent); }
.ax-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 15px var(--sans); color: #141a28; }
.ax-servidor { margin-top: 28px; padding-top: 18px; border-top: 1px solid #dde3ec; }
.ax-servidor summary { font-size: 13px; color: #4f5b71; }
.ax-formulario--compacto { margin-top: 14px; gap: 14px; }
.ax-input__ojo { border: 0; background: transparent; color: #6c7a91; cursor: pointer; padding: 4px; font-size: 18px; }
.ax-pista { display: block; margin-top: 6px; font-size: 12px; color: #6c7a91; }
.ax-sin-cuenta { text-align: center; font-size: 14px; color: #4f5b71; }
.ax-enlace { font-weight: 600; color: var(--marca); text-decoration: none; }
.ax-enlace:hover { text-decoration: underline; }
.ax-boton { width: 100%; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; background: var(--oscuro); color: #ffffff; font: 600 15px var(--sans); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.ax-boton:active:not(:disabled) { transform: scale(.98); }
.ax-boton:disabled { opacity: .7; cursor: progress; }
.ax-boton--secundario { height: 46px; background: #ffffff; color: #141a28; border: 1.5px solid #dde3ec; }
@media (hover: hover) and (pointer: fine) {
  .ax-boton:hover:not(:disabled) { background: var(--oscuro-hover); transform: translateY(-2px); }
  .ax-boton--secundario:hover:not(:disabled) { background: #f7f9fc; border-color: var(--marca); transform: none; }
}
.ax-alerta { padding: 12px 14px; border-radius: 14px; background: #fdecec; color: #8a1c1c; font-size: 14px; }
.ax-lado__pie { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: #6c7a91; }
.ax-lado__pie img { width: 16px; height: 16px; }
.ax-entra { animation: ax-entra .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ax-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ax-entra { animation: none; } }

/* ---------- Pantallas angostas ---------- */
@media (max-width: 900px) {
  .ax-panel { display: none; }
  .ax-lado { padding: 24px 16px; }
  .ax-marca-movil { display: block; }
  .app { flex-direction: column; }
  .side { position: sticky; z-index: 10; height: auto; flex: none; flex-direction: row; align-items: center; gap: 4px; padding: 10px 12px; overflow-x: auto; }
  .side::after { display: none; }
  .marca { margin: 0 6px 0 0; padding: 0; } .marca img { height: 26px; }
  .biz, .spacer { display: none; }
  .nav { width: auto; white-space: nowrap; padding: 8px 12px; }
  .nav > span:not(.pill) { flex: none; }
  .main { padding: 16px; }
  .inbox, .conexion { grid-template-columns: 1fr; }
  .lista { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--border); }
  .form { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}
