/* Claudio — interfaz web v2 (2026-09-20): menú estable, aurora como estado, chat degradado. */
/* Temas (2026-09-21): OSCURO por defecto (negro + naranja, decisión de Helmuth); el CLARO (blanco + naranja,
   el diseño original) se activa con html[data-tema="claro"]. Todo color de la interfaz sale de estos tokens. */
:root {
  --bg: #0A0908;
  --surface: #141210;
  --surface-2: #1D1A17;
  --ink: #F3EEE7;
  --ink-2: #D2CAC0;
  --muted: #8E867B;
  --line: #262220;
  --line-2: #363029;
  --accent: #FF7A1A;
  --accent-ink: #FFA45C;
  --accent-dark: #FFB27A;
  --accent-soft: rgba(255, 122, 26, .10);
  --accent-soft-2: rgba(255, 122, 26, .18);
  --accent-glow: rgba(255, 122, 26, .32);
  --accent-rgb: 255, 122, 26;
  --on-accent: #FFFFFF;
  --ok: #7DB37A;
  --peligro: #E0655F;
  --vidrio: rgba(20, 18, 16, .78);          /* fondo de la barra de composición y paneles flotantes */
  --burbuja: rgba(30, 27, 24, .82);         /* mensajes de Helmuth */
  --velo: rgba(0, 0, 0, .55);               /* detrás del menú flotante */
  --ink-a08: rgba(255, 255, 255, .06);
  --ink-a35: rgba(0, 0, 0, .55);
  --ink-a82: rgba(40, 36, 32, .92);
  --brillo-int: rgba(255, 255, 255, .04);
  --radius: 18px;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px -20px rgba(0, 0, 0, .7);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lateral: 284px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --formula: #7FA7F0;
  color-scheme: dark;
}
html[data-tema="claro"] {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: var(--surface-2);
  --ink: #1C1B19;
  --ink-2: #4A4741;
  --muted: #8A857B;
  --line: #ECEAE4;
  --line-2: #DDD9D0;
  --accent: #E8834F;
  --accent-ink: #B95A3A;
  --accent-dark: #9E4A2E;
  --accent-soft: rgba(var(--accent-rgb), .08);
  --accent-soft-2: rgba(var(--accent-rgb), .14);
  --accent-glow: rgba(var(--accent-rgb), .28);
  --accent-rgb: 232, 131, 79;
  --ok: #5C8C5A;
  --peligro: var(--peligro);
  --vidrio: rgba(255, 255, 255, .86);
  --burbuja: rgba(255, 255, 255, .82);
  --velo: rgba(28, 27, 25, .35);
  --ink-a08: rgba(28, 27, 25, .08);
  --ink-a35: rgba(28, 27, 25, .35);
  --ink-a82: rgba(28, 27, 25, .82);
  --brillo-int: rgba(255, 255, 255, .8);
  --sombra: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 40px -20px rgba(28, 27, 25, .18);
  --formula: #1F4E9E;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px;
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: currentColor; }
.mini { font-size: 12px; color: var(--muted); }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-orbe {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, #fff 0 22%, var(--accent) 24% 38%, transparent 40%),
              radial-gradient(circle at 50% 50%, transparent 55%, rgba(var(--accent-rgb), .55) 58%, transparent 66%),
              radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), .18), transparent 70%);
}
.logo-texto { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--ink); }
.logo.grande { justify-content: center; margin-bottom: 12px; }
.logo.grande .logo-orbe { width: 64px; height: 64px; }

/* ---------- acceso ---------- */
.acceso { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.acceso-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; text-align: center; box-shadow: var(--sombra); }
.acceso h1 { font-weight: 600; font-size: 28px; margin: 0 0 6px; letter-spacing: -.01em; }
.acceso p { color: var(--muted); margin: 0 0 20px; }
.acceso input { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; text-align: center; letter-spacing: .08em; }
.acceso input:focus { outline: 2px solid var(--accent-glow); border-color: var(--accent); }
.error { color: var(--accent-ink); font-size: 13px; }
/* acceso desde la web pública (2026-09-23): alta con QR en Ajustes */
.acceso-panel { margin-top: -4px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.acceso-panel p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.acceso-panel input { display: block; width: 100%; max-width: 320px; margin: 0 0 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); }
.acceso-qr { width: 200px; max-width: 100%; background: #fff; padding: 8px; border-radius: 10px; margin-bottom: 8px; }
.acceso-qr svg { display: block; width: 100%; height: auto; }
.acceso-clave-manual code { font-size: 12px; word-break: break-all; user-select: all; }
.acceso-sesiones { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }
.btn { padding: 11px 18px; border-radius: 12px; font-weight: 500; transition: transform .08s, box-shadow .2s, background .2s; }
.btn.primario { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px var(--accent-glow); width: 100%; }
.btn.primario:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--line-2); background: var(--surface-2); }

/* ---------- app ---------- */
.app { height: 100%; position: relative; }

/* ---------- menú: panel flotante (2026-09-21, hamburguesa en TODAS las vistas — decisión de Helmuth) ---------- */
.btn-menu {
  position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .45);
  background: var(--vidrio); backdrop-filter: blur(10px); transition: background .18s, transform .18s var(--ease), box-shadow .25s;
}
.btn-menu:hover { background: var(--accent-soft-2); transform: translateY(-1px); box-shadow: 0 0 0 5px var(--accent-soft); }
.btn-menu svg { width: 18px; height: 18px; }
.btn-menu .aviso { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.velo { position: fixed; inset: 0; z-index: 41; background: var(--velo); opacity: 0; pointer-events: none; transition: opacity .25s; }
.app.menu-abierto .velo { opacity: 1; pointer-events: auto; }
.lateral {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 42; width: var(--lateral); max-width: 86vw;
  display: flex; flex-direction: column; padding: 22px 16px 18px; border-right: 1px solid var(--line);
  background: var(--surface); min-width: 0; overflow: hidden;
  transform: translateX(-104%); transition: transform .32s var(--ease); box-shadow: 0 0 60px -10px rgba(0,0,0,.5);
}
.app.menu-abierto .lateral { transform: none; }
.lateral-cab { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 22px; }
.contraer { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); transition: background .18s, color .18s; flex: none; }
.contraer:hover { background: var(--surface-2); color: var(--accent-dark); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px;
  color: var(--ink-2); font-weight: 500; text-align: left; white-space: nowrap;
  transition: background .18s var(--ease), color .18s;
  font-variation-settings: "wght" 500;
}
.nav-item svg { flex: none; transition: transform .18s var(--ease), color .18s; }
.nav-item span { transition: opacity .14s, font-variation-settings .18s; }
.nav-item::before {   /* línea izquierda: tenue en hover, sólida en activo */
  content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 3px; border-radius: 3px;
  background: var(--accent); opacity: 0; transform: scaleY(.4); transition: opacity .18s, transform .18s var(--ease);
}
.nav-item:hover { background: var(--accent-soft); color: var(--accent-dark); font-variation-settings: "wght" 560; }
.nav-item:hover svg { transform: translateX(2px); }
.nav-item:hover::before { opacity: .45; transform: scaleY(.6); }
.nav-item.activo { background: var(--accent-soft-2); color: var(--accent-dark); font-variation-settings: "wght" 600; }
.nav-item.activo svg { color: var(--accent); }
.nav-item.activo::before { opacity: 1; transform: scaleY(1); }
.nav-item.activo.pulso { animation: brillo-suave .7s var(--ease); }
@keyframes brillo-suave { 30% { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 24px -8px var(--accent-glow); } }
.nav-item .punto { position: absolute; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); }

.lateral-pie { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.estado, .tareas-vivas { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); white-space: nowrap; padding: 6px 8px; border-radius: 10px; }
.estado i, .tareas-vivas i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; display: inline-block; }
.estado.ok i { background: var(--ok); box-shadow: 0 0 0 3px rgba(125,179,122,.18); }
.estado.pensando i { background: var(--accent); animation: latido 1s infinite; }
.tareas-vivas { color: var(--accent-ink); background: var(--accent-soft); }
.tareas-vivas i { background: var(--accent); animation: latido 1.2s infinite; }
.tareas-vivas span { overflow: hidden; text-overflow: ellipsis; }
@keyframes latido { 50% { transform: scale(1.5); opacity: .5; } }

/* entrada inicial: la escena aparece en fundido */
.app.entrando .escena { animation: entra-escena .6s var(--ease) both .15s; }
@keyframes entra-escena { from { opacity: 0; } }

/* ---------- escena ---------- */
.escena { position: absolute; inset: 0; min-width: 0; min-height: 0; display: grid; }
.vista { display: none; min-height: 0; min-width: 0; flex-direction: column; overflow: hidden; }
.vista.activa { display: flex; animation: entra-vista .35s var(--ease); }
@keyframes entra-vista { from { opacity: 0; } }
.orbe-mini { position: absolute; top: 12px; right: 16px; width: 84px; height: 84px; z-index: 4; pointer-events: none; }
.orbe-mini canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ---------- asistente (v3, 2026-09-21): el orbe protagonista sobre negro, sin textos ----------
   cabecera (CLAUDIO · ?) / escenario del orbe + subtítulo / mando (mic HABLAR + chevrón) / charla plegada */
#vista-asistente { position: relative; background: transparent; }
#vista-asistente.activa { display: grid; grid-template-rows: auto 1fr auto auto; }
.fondo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cab-asistente { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 26px 30px 0; }
.marca { font-size: 15px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--accent); padding-left: .1em; }
.redondo {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .45); background: transparent; font-weight: 500; font-size: 16px; transition: background .18s, box-shadow .25s;
}
.redondo:hover { background: var(--accent-soft-2); box-shadow: 0 0 0 5px var(--accent-soft); }
.escenario-orbe { position: relative; z-index: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 24px; overflow: visible; }
.orbe-caja { position: relative; width: min(38vh, 60vw, 340px); aspect-ratio: 1; flex: none; }
.orbe-caja canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; will-change: transform; }
.subtitulo {
  min-height: 48px; width: min(640px, 92vw); margin: 16px 0 0; text-align: center;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.45; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
  text-shadow: 0 1px 12px var(--bg);
}
.subtitulo.visible { opacity: 1; }
.subtitulo.error { color: var(--accent-ink); }
.mando { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 0; }
.mic-sitio { display: grid; place-items: center; }
.mic-sitio .mic {
  width: 62px; height: 62px; background: transparent; color: var(--accent); border: 1.5px solid rgba(var(--accent-rgb), .7);
  box-shadow: 0 0 24px -6px var(--accent-glow); transition: transform .18s var(--ease), box-shadow .25s, background .18s;
}
.mic-sitio .mic svg { width: 24px; height: 24px; }
.mic-sitio .mic:hover { background: var(--accent-soft-2); transform: translateY(-1px); box-shadow: 0 0 34px -4px var(--accent-glow), 0 0 0 6px var(--accent-soft); }
.mic-sitio .mic.grabando { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft-2), 0 0 40px -2px var(--accent-glow); }
.mic-rotulo { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-left: .3em; }
.chevron { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; padding: 6px 14px 14px; color: var(--muted); font-size: 13px; transition: color .18s; }
.chevron:hover { color: var(--ink-2); }
.chevron svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
.chevron[aria-expanded="true"] span { opacity: 0; height: 0; overflow: hidden; }

/* ---------- música: cajón a la derecha con su pestaña (2026-09-22, Helmuth: «oculto a la derecha, con una flecha
   como la del chat pero más estilizada, y la carátula más grande») ---------- */
.musica-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 31;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; width: 40px;
  border-radius: 14px 0 0 14px; border: 1px solid var(--line); border-right: 0; background: var(--vidrio); backdrop-filter: blur(12px);
  color: var(--muted); transition: color .2s, box-shadow .3s, border-color .3s, transform .3s var(--ease);
}
.musica-tab:hover { color: var(--accent); }
.musica-tab img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.musica-tab .musica-tab-nota { font-size: 15px; line-height: 1; }
.musica-tab svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.musica-tab.sonando { color: var(--accent); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 22px -8px var(--accent-glow); }
.musica-tab.sonando .musica-tab-nota { animation: nota-late 1.7s ease-in-out infinite; }
@keyframes nota-late { 50% { transform: translateY(-2px) scale(1.12); } }
.musica-tab[aria-expanded="true"] { transform: translate(-320px, -50%); }
.musica-tab[aria-expanded="true"] svg { transform: rotate(180deg); }
.musica-tab img:not([hidden]) + .musica-tab-nota { display: none; }
.musica {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 30; width: 320px; max-width: 88vw; padding: 28px 24px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; overflow-y: auto;
  border-left: 1px solid var(--line); background: var(--vidrio); backdrop-filter: blur(18px); box-shadow: 0 0 60px -20px rgba(0,0,0,.6);
  transform: translateX(104%); transition: transform .32s var(--ease);
}
.musica.abierta { transform: none; }
.musica-caratula-caja { width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; box-shadow: 0 18px 50px -24px rgba(0,0,0,.8); }
.musica-caratula { width: 100%; height: 100%; object-fit: cover; }
.musica-caratula-vacia { font-size: 54px; color: var(--line-2); }
.musica-caratula:not([hidden]) + .musica-caratula-vacia { display: none; }
.musica.sonando .musica-caratula-caja { box-shadow: 0 18px 50px -20px var(--accent-glow); }
.musica.atenuada .musica-caratula-caja { opacity: .8; }
.musica-texto { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.musica-texto b { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.musica-texto span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.musica-progreso { width: 100%; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.musica-progreso i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.musica small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1em; }
.musica-botones { display: flex; align-items: center; justify-content: center; gap: 14px; }
.musica-botones button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); font-size: 15px; transition: background .15s, color .15s, transform .15s; }
.musica-botones button:hover:not(:disabled) { background: var(--accent-soft-2); color: var(--accent-dark); }
.musica-botones button:disabled { opacity: .35; cursor: default; }
#musica-play { width: 56px; height: 56px; border: 1.5px solid rgba(var(--accent-rgb), .6); color: var(--accent); font-size: 20px; box-shadow: 0 0 24px -8px var(--accent-glow); }
#musica-play:hover:not(:disabled) { transform: translateY(-1px); }
.musica-botones svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
#musica-play svg { width: 22px; height: 22px; stroke-width: 0; }
#musica-play .ic-pausa, #musica-play.sonando .ic-play { display: none; }
#musica-play.sonando .ic-pausa { display: block; }
.musica-vol { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.musica-vol input { flex: 1; accent-color: var(--accent); }
.musica em { font-style: normal; font-size: 12px; color: var(--accent-ink); text-align: center; line-height: 1.4; }
@media (max-width: 900px) { .musica-tab, .musica { display: none; } }

/* la charla plegada: el chevrón la abre; los mensajes viven en Historial (acá solo el subtítulo) */
.charla { position: relative; z-index: 3; width: min(760px, 100% - 48px); margin: 0 auto; padding: 0 0 22px; display: none; flex-direction: column; }
.charla.abierta { display: flex; animation: entra-vista .3s var(--ease); }
.charla .mensajes { display: none; }
.charla .composer-fila { grid-template-columns: auto 1fr auto auto auto; }   /* el mic está arriba, en el mando */

.msg { display: flex; animation: aparece-msg .3s var(--ease); max-width: 100%; }
@keyframes aparece-msg { from { opacity: 0; transform: translateY(6px); } }
.msg-cuerpo { white-space: pre-wrap; word-break: break-word; }
.msg.helmuth { justify-content: flex-end; }
.msg.helmuth .msg-cuerpo { background: var(--burbuja); border: 1px solid var(--line); color: var(--ink-2); padding: 9px 14px; border-radius: 16px 16px 4px 16px; max-width: 78%; font-size: 14px; backdrop-filter: blur(8px); }
.msg.claudio .msg-cuerpo { position: relative; padding: 2px 0 2px 16px; font-size: 16px; max-width: 86%; }
.msg.claudio .msg-cuerpo::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .15)); }
.msg.sistema .msg-cuerpo { color: var(--muted); font-size: 13px; padding-left: 16px; }
.msg .adjunto { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 14px; }
.msg .adjunto:hover { border-color: var(--accent); }
.msg .adjunto b { font-weight: 500; }
.msg .adjunto small { color: var(--muted); }
.msg .adjunto-audio { display: block; margin-top: 8px; width: min(360px, 100%); height: 36px; }
.msg .miniatura { display: block; margin-top: 8px; max-width: 240px; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.cursor::after { content: ""; display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -2px; margin-left: 3px; animation: latido 1s infinite; border-radius: 2px; }

.composer {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 8px 8px; width: 100%;
  background: var(--vidrio); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -24px var(--ink-a35), 0 1px 0 var(--brillo-int) inset; transition: box-shadow .25s, border-color .25s;
}
.composer:focus-within { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 14px 40px -24px var(--ink-a35), 0 0 0 4px var(--accent-soft); }
.composer-fila { display: grid; grid-template-columns: auto auto 1fr auto auto auto; gap: 8px; align-items: end; }
.composer textarea { resize: none; max-height: 160px; padding: 11px 6px; border: 0; background: transparent; outline: none; min-width: 0; }
.mic.clip svg { width: 19px; height: 19px; }
.destino { border: 0; background: var(--surface-2); border-radius: 10px; padding: 8px 6px; font-size: 12.5px; color: var(--ink-2); max-width: 190px; align-self: center; }
.destino.sesion { background: var(--accent-soft-2); color: var(--accent-dark); font-weight: 500; }
.reloj-comp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--ink-a82); color: var(--on-accent); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; align-self: center; white-space: nowrap; }
.reloj-comp i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: latido 1.2s infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 2px; }
.chipp { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: 999px; background: var(--accent-soft-2); color: var(--accent-dark); font-size: 12.5px; font-weight: 500; max-width: 280px; }
.chipp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chipp .x { cursor: pointer; opacity: .55; padding: 0 3px; flex: none; } .chipp .x:hover { opacity: 1; }
.chipp.destino-chip { background: var(--surface-2); color: var(--ink-2); }
.contador { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.mic, .enviar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: all .18s var(--ease); flex: none; }
.mic { background: var(--surface-2); color: var(--ink-2); }
.mic:hover { background: var(--accent-soft-2); color: var(--accent-dark); }
.mic.grabando { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px var(--accent-soft-2); animation: latido-suave 1.4s infinite; }
.mic.pausado { background: var(--ink-2); color: var(--on-accent); animation: none; }
.mic.pausa svg { width: 18px; height: 18px; fill: currentColor; }
.mic.pausa .ic-seguir { display: none; }
.mic.pausa.pausado .ic-pausa { display: none; }
.mic.pausa.pausado .ic-seguir { display: block; }
.reloj-comp.pausado i { animation: none; background: var(--muted); }
@keyframes latido-suave { 50% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .06); } }
.enviar { background: var(--ink); color: var(--on-accent); }
.enviar:hover { background: var(--accent-dark); }

/* ---------- cabeceras de vista ---------- */
.vista-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 130px 14px 26px; border-bottom: 1px solid var(--line); min-height: 64px; }  /* el hueco derecho es para el orbe */
.vista-titulo { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.etiqueta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.pantalla-nombre { font-weight: 500; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pantalla-nav { display: flex; align-items: center; gap: 4px; }
.pag-info { font-size: 13px; color: var(--muted); min-width: 44px; text-align: center; }
.icono { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); border: 1px solid transparent; text-decoration: none; font-size: 18px; }
.icono:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line); }
.icono:disabled { opacity: .35; cursor: default; }

/* ---------- pantalla · instructor ---------- */
/* pestañas de archivos abiertos (2026-09-20 noche): lo que Claudio muestra se acumula, no se pisa */
.abiertos { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 26px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.abiertos-lista { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; min-width: 0; flex: 1; }
.abiertos-lista::before { content: "Abiertos"; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; flex: none; }
.abiertos-acciones { display: flex; gap: 6px; flex: none; }
.mini-chip { padding: 5px 10px; font-size: 12.5px; }
.pestana .adjuntar { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); flex: none; }
.pestana .adjuntar svg { width: 13px; height: 13px; }
.pestana .adjuntar:hover { background: var(--ink-a08); color: var(--ink); }
.pestana .adjuntar.activa { color: var(--accent); }
.pestana .marcas { font-size: 10.5px; font-weight: 600; color: var(--accent-dark); background: var(--surface); border-radius: 999px; padding: 1px 6px; flex: none; }
.pestana { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; max-width: 280px; cursor: pointer; flex: none; transition: background .15s, border-color .15s, color .15s; }
.pestana:hover { background: var(--surface-2); border-color: var(--line-2); }
.pestana.activa { background: var(--accent-soft-2); border-color: var(--accent); color: var(--accent-dark); font-weight: 500; }
.pestana .tipo { font-size: 10px; font-weight: 600; letter-spacing: .05em; padding: 2px 5px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.pestana.activa .tipo { background: var(--surface); color: var(--accent-dark); }
.pestana .nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pestana .cerrar { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; color: var(--muted); flex: none; }
.pestana .cerrar:hover { background: var(--ink-a08); color: var(--ink); }
.escenario { flex: 1; min-height: 0; display: flex; justify-content: safe center; align-items: safe center; padding: 18px 26px; position: relative; overflow: auto; }  /* `safe center`: lo que no cabe se desplaza, no se recorta */
.zoom-info { width: auto; padding: 0 6px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.vacia { text-align: center; color: var(--muted); max-width: 340px; }
.vacia p { margin: 6px 0; }
.vacia .mini { font-style: italic; font-size: 14px; }
.vacia-arte { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.vacia-arte span { width: 46px; height: 62px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sombra); }
.vacia-arte span:nth-child(2) { transform: translateY(-8px); border-color: rgba(var(--accent-rgb), .5); }
.lienzo-caja { position: relative; display: inline-block; max-width: 100%; max-height: 100%; flex: none; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -28px var(--ink-a35), 0 0 0 1px var(--line); background: var(--surface); }
.lienzo-caja img { display: block; max-width: 100%; max-height: calc(100vh - 250px); user-select: none; -webkit-user-drag: none; }
.lienzo-caja canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
/* HTML vivo */
.marco-caja { position: relative; width: 100%; height: 100%; min-height: 320px; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -28px var(--ink-a35), 0 0 0 1px var(--line); background: var(--surface); }
.marco-caja iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--surface); transform-origin: 0 0; }
.marco-caja canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.marco-caja.marcando canvas { pointer-events: auto; touch-action: none; cursor: crosshair; }
.marco-caja.marcando { box-shadow: 0 24px 60px -28px var(--ink-a35), 0 0 0 2px var(--accent); }
.escenario.lleno { display: block; padding: 14px 26px; }
.tool.texto { width: auto; padding: 0 12px; font-size: 13px; font-weight: 500; }
.grupo.modo .tool.activo { background: var(--accent); color: var(--on-accent); }
/* Excel */
.hoja-caja { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 320px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px -28px var(--ink-a35), 0 0 0 1px var(--line); }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hoja-tabs { display: flex; gap: 4px; overflow-x: auto; }
.hoja-tab { padding: 5px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.hoja-tab.activo { background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 3px var(--ink-a08); font-weight: 500; }
.hoja-toggle { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hoja-barra { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.hoja-ref { min-width: 70px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--accent-dark); font-weight: 600; }
.hoja-barra input { flex: 1; border: 0; background: transparent; font-family: ui-monospace, Menlo, monospace; font-size: 13px; outline: none; color: var(--ink); }
.hoja-grilla { flex: 1; overflow: auto; user-select: none; }
/* táctil (celular/tablet): un dedo MUEVE salvo en modo Marcar; así el toque no se confunde con una marca */
.tactil .lienzo-caja canvas { pointer-events: none; touch-action: pan-x pan-y pinch-zoom; cursor: default; }
.tactil .lienzo-caja.marcando canvas { pointer-events: auto; touch-action: none; }
.tactil .lienzo-caja.marcando { box-shadow: 0 24px 60px -28px var(--ink-a35), 0 0 0 2px var(--accent); }
.tactil .hoja-grilla { touch-action: pan-x pan-y; }
.tactil .hoja-caja.marcando .hoja-grilla { touch-action: none; }
.tactil .hoja-caja.marcando { box-shadow: 0 24px 60px -28px var(--ink-a35), 0 0 0 2px var(--accent); }
.hoja-grilla table { border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hoja-grilla th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 500; font-size: 11.5px; border: 1px solid var(--line); padding: 3px 6px; z-index: 2; }
.hoja-grilla th.fila { position: sticky; left: 0; z-index: 3; text-align: right; min-width: 36px; }
.hoja-grilla th.esq { left: 0; z-index: 4; }
.hoja-grilla td { border: 1px solid var(--line); padding: 3px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; cursor: cell; }
.hoja-grilla td.num { text-align: right; }
.hoja-grilla td.formula { color: var(--formula, #1F4E9E); }
.hoja-grilla td.sel { background: rgba(var(--accent-rgb), .16); outline: 1px solid rgba(var(--accent-rgb), .6); outline-offset: -1px; }
.hoja-grilla td.marca { background: rgba(var(--accent-rgb), .26); }
.hoja-grilla td.marca.inicio::before { content: attr(data-n); display: inline-block; min-width: 14px; height: 14px; line-height: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; text-align: center; margin-right: 5px; }
.hoja-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
/* versiones */
.versiones-caja { position: absolute; right: 30px; bottom: 24px; width: min(420px, calc(100% - 60px)); background: var(--surface); border-radius: 14px; box-shadow: 0 20px 50px -20px var(--ink-a35), 0 0 0 1px var(--line); z-index: 5; }
.versiones-cab { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.versiones-lista { max-height: 260px; overflow-y: auto; padding: 6px; }
.version { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.version:hover { background: var(--surface-2); }
.version small { color: var(--muted); display: block; }
.version.actual { opacity: .6; }
.reloj-rec { position: absolute; top: 24px; left: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--ink-a82); color: var(--on-accent); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); pointer-events: none; animation: aparece-msg .2s; }
.reloj-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: latido 1.2s infinite; }
.vista.grabando .lienzo-caja { box-shadow: 0 24px 60px -28px var(--ink-a35), 0 0 0 2px var(--accent); }

.herramientas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 26px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.grupo { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tool { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); font-size: 16px; }
.tool svg { width: 18px; height: 18px; }
.tool:hover { background: var(--surface); }
.tool.activo { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 3px var(--ink-a08); }
.color { width: 26px; height: 26px; margin: 4px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.color.activo { box-shadow: 0 0 0 2px var(--c); }
.instructor { flex: 1 1 100%; display: flex; gap: 8px; min-width: 0; align-items: center; }
.instructor input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.instructor input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.instructor .btn { width: auto; white-space: nowrap; padding: 10px 14px; }
.mic-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: all .18s var(--ease); }
.mic-toggle .ic-parar { display: none; }
.mic-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.mic-toggle.grabando { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--accent-soft-2); animation: latido-suave 1.4s infinite; }
.mic-toggle.grabando .ic-mic { display: none; }
.mic-toggle.grabando .ic-parar { display: block; }
.mic-toggle.lista { background: var(--accent-soft-2); border-color: transparent; color: var(--accent-dark); }

/* ---------- sesiones de Claude Code ---------- */
.sesiones-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px 1fr; }
.sesiones-lista { overflow-y: auto; border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.sesion-item { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 10px; min-width: 0; }
.sesion-item:hover { background: var(--surface-2); }
.sesion-item.activa { background: var(--accent-soft-2); }
.sesion-estado { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.sesion-estado[data-estado="working"] { background: var(--accent); animation: latido 1.2s infinite; }
.sesion-estado[data-estado="blocked"] { background: var(--peligro); }
.sesion-estado[data-estado="done"] { background: var(--ok); }
.sesion-estado[data-estado="activa"] { background: #2F6FED; }
.sesion-txt { min-width: 0; }
.sesion-txt b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sesion-txt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sesion-detalle { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.sesion-cab { padding: 12px 26px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sesion-cab b { font-weight: 500; }
.sesion-cab .est { font-size: 12.5px; color: var(--muted); }
.sesion-cab .ped { flex: 1 1 100%; font-size: 13px; color: var(--ink-2); }
.sesion-feed { flex: 1; overflow-y: auto; padding: 14px 26px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.feed-linea { white-space: pre-wrap; padding: 6px 10px; border-radius: 8px; max-width: 900px; overflow-wrap: anywhere; }
.feed-linea.asistente { background: var(--surface); border: 1px solid var(--line); }
.feed-linea.helmuth { background: var(--accent-soft-2); align-self: flex-end; }
.feed-linea.herramienta { color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 2px 10px; }
.feed-linea.error { color: var(--peligro); font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
#composer-sitio-sesiones { padding: 10px 26px 16px; border-top: 1px solid var(--line); }
#composer-sitio-pantalla { flex: 1 1 100%; }

/* ---------- historial ---------- */
.historial-caja { flex: 1; overflow-y: auto; padding: 26px 26px 30px; }
.historial-caja .mensajes { width: min(760px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.historial-caja .msg.claudio .msg-cuerpo { font-size: 15.5px; }

/* ---------- archivos ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.tab { padding: 6px 12px; border-radius: 9px; font-size: 13px; color: var(--ink-2); }
.tab.activo { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 3px var(--ink-a08); font-weight: 500; }
.miga { padding: 10px 26px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.miga button { color: var(--accent-ink); }
.lista-archivos { flex: 1; overflow-y: auto; padding: 8px 18px; }
.item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.item:hover { background: var(--surface-2); }
.item .ic { color: var(--muted); font-size: 16px; text-align: center; }
.item.dir .ic { color: var(--accent); }
.item .nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { font-size: 12px; color: var(--muted); }
.item .acciones { display: flex; gap: 2px; }
.subir { padding: 12px 26px 18px; border-top: 1px solid var(--line); }
.zona-subir { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px; text-align: center; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.zona-subir.sobre, .zona-subir:hover { border-color: var(--accent); background: var(--accent-soft); }
.zona-subir p { margin: 4px 0; }
.zona-subir select { border: 0; background: transparent; color: var(--accent-ink); font-weight: 500; }

/* ---------- ajustes ---------- */
.ajustes { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px 90px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; width: 100%; }
.ajuste { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.ajuste span { display: flex; flex-direction: column; }
.ajuste .ajuste-acciones { flex-direction: row; gap: 8px; align-items: center; flex: none; }
.ajuste select { max-width: 230px; }
.ajuste b { font-weight: 500; }
.ajuste small { color: var(--muted); font-size: 12.5px; }
.ajuste input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.ajuste select { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.toast { background: var(--ink); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-size: 13px; box-shadow: var(--sombra); animation: aparece-msg .2s; }
.toast.error { background: var(--accent-dark); }

/* ---------- móvil: el menú es una barra abajo, sólo íconos ---------- */
/* ---------- panel «?»: consumo de la sesión de Claude (ventana de 5 h y semanal) ---------- */
.panel-uso {
  position: absolute; top: 74px; right: 26px; z-index: 30; width: min(340px, calc(100vw - 40px)); padding: 16px 18px 14px;
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--vidrio); backdrop-filter: blur(16px); box-shadow: var(--sombra);
  animation: entra-vista .2s var(--ease);
}
.panel-uso h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.uso-fila { margin-bottom: 12px; }
.uso-fila:last-of-type { margin-bottom: 4px; }
.uso-cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.uso-cab b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.uso-barra { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.uso-barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); transition: width .5s var(--ease); }
.uso-barra i.alto { background: linear-gradient(90deg, var(--accent), var(--peligro)); }
.uso-pie { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .orbe-mini { width: 60px; height: 60px; top: 10px; right: 10px; }
  .marca { font-size: 13px; }
  .vista-cab { padding: 12px 84px 12px 62px; }
  .abiertos { padding: 6px 14px; }
  .abiertos-lista::before { display: none; }
  .sesiones-cuerpo { grid-template-columns: 1fr; }
  .sesiones-lista { max-height: 30vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .destino { max-width: 110px; }
  .pestana { max-width: 200px; }
  .escenario { padding: 8px; }
  .lienzo-caja img { max-height: 62vh; }
  .marco-caja, .hoja-caja { min-height: 60vh; }
  .herramientas { gap: 6px; padding: 8px 10px 10px; }
  .grupo { padding: 3px; gap: 2px; }
  .tool { width: 30px; height: 30px; }
  .tool.texto { padding: 0 9px; font-size: 12.5px; }
  .color { width: 22px; height: 22px; margin: 4px 3px; }
  .vista-cab { flex-wrap: wrap; row-gap: 2px; padding-bottom: 8px; }
  .pantalla-nav { gap: 2px; flex: 1 1 100%; justify-content: flex-start; }   /* a la izquierda: la derecha es del orbe */
  .icono { width: 28px; height: 28px; font-size: 16px; }
  .zoom-info { width: auto; }
  .reloj-rec { top: 12px; left: 16px; }
  .herramientas, .subir, .miga { padding-left: 12px; padding-right: 12px; }
  .instructor input { display: none; }
  .ajustes { padding: 14px; }
  .charla { width: calc(100% - 20px); padding-bottom: 10px; }
  .btn-menu { left: 12px; top: 12px; bottom: auto; width: 40px; height: 40px; }   /* abajo chocaba con la barra de texto */
  .cab-asistente { padding: 12px 16px 0 62px; align-items: center; min-height: 40px; }
  .cab-asistente .redondo { width: 40px; height: 40px; }
  .panel-uso { top: 62px; right: 12px; }
  .ajustes { padding: 12px 12px 40px; }
  .ajuste { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .ajuste span { min-width: 0; }
  .ajuste .ajuste-acciones { flex-direction: row; justify-content: flex-start; }
  .ajuste select { max-width: 100%; }
  .ajuste:has(> input[type=checkbox]) { flex-direction: row; align-items: center; }   /* los de casilla: texto a la izquierda, casilla a la derecha */
  .historial-caja { padding: 16px 12px 40px; }
  .lista-archivos { padding-bottom: 40px; }
}
/* móvil vertical: orbe arriba, mic centrado, chevrón abajo (como la maqueta) */
@media (max-width: 600px) and (orientation: portrait) {
  .composer { padding: 6px; border-radius: 18px; }
  .composer-fila { gap: 6px; }
  .destino { max-width: 92px; font-size: 11.5px; padding: 8px 2px; }
  .mic, .enviar { width: 38px; height: 38px; }
  .composer textarea { padding: 9px 4px; font-size: 14.5px; }
  .orbe-caja { width: min(62vw, 40vh); }
  .mic-sitio .mic { width: 58px; height: 58px; }
  .subtitulo { font-size: 14px; min-height: 42px; margin-top: 10px; }
}
/* móvil horizontal: orbe a la izquierda, mic a la derecha, la barra de texto SIEMPRE visible al pie */
@media (max-height: 520px) and (orientation: landscape) {
  #vista-asistente.activa { grid-template-rows: auto 1fr auto; grid-template-columns: 1fr auto; }
  .cab-asistente { grid-column: 1 / -1; padding: 12px 18px 0; }
  .escenario-orbe { grid-column: 1; grid-row: 2; justify-content: center; padding: 0 12px; }
  .orbe-caja { width: min(62vh, 40vw); }
  .subtitulo { min-height: 34px; margin-top: 6px; font-size: 13px; width: min(420px, 60vw); }
  .mando { grid-column: 2; grid-row: 2; justify-content: center; padding: 0 28px 0 12px; }
  .mic-sitio .mic { width: 54px; height: 54px; }
  .mic-rotulo, .chevron { display: none; }
  .charla { grid-column: 1 / -1; grid-row: 3; display: flex; width: calc(100% - 24px); padding: 0 0 10px; }
  .btn-menu { top: 8px; left: 10px; width: 36px; height: 36px; }
  .cab-asistente { padding-left: 56px; }
  .cab-asistente .redondo { width: 36px; height: 36px; }
  .vista-cab { padding-left: 56px; }
}
}

/* modo casual (2026-09-21): marca en el pie del menú lateral */
.modo-marca{font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--accent);padding:4px 0}.modo-marca:empty{display:none}
