/* Jarvis — oscuro, sobrio, con un acento ámbar. Pensado para el teléfono (cerrado y abierto). */
:root {
  --fondo: #0b1020; --fondo2: #0f1629; --tarjeta: #151d33; --tarjeta2: #1b2542; --borde: #26304f;
  --texto: #e8ecf7; --texto2: #9aa6c6; --texto3: #6c7799;
  --ambar: #f5b942; --ambar2: #ffd27a; --cian: #4fd1ff; --verde: #4ade80; --rojo: #f87171; --lila: #a78bfa;
  --radio: 18px; --sombra: 0 10px 30px rgba(0,0,0,.35);
  --nav: 68px; --seguro-abajo: env(safe-area-inset-bottom, 0px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); min-height: 100%; }
body { font-size: 16px; line-height: 1.45; overscroll-behavior-y: contain; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--cian); text-decoration: none; }
::selection { background: rgba(245,185,66,.35); }

/* ---------- marco ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.cabecera { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(11,16,32,.82);
  border-bottom: 1px solid rgba(38,48,79,.6); padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; display: flex; align-items: center; gap: 12px; }
.cabecera .logo { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.cabecera h1 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: .2px; flex: 1; }
.cabecera .sub { font-size: 12px; color: var(--texto2); font-weight: 500; display: block; }
.cabecera .atras { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--texto); background: var(--tarjeta); }
.contenido { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--nav) + var(--seguro-abajo) + 24px); }
.contenido.ancho { max-width: 1180px; }
@media (min-width: 700px) { .dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; } }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--nav) + var(--seguro-abajo)); padding-bottom: var(--seguro-abajo);
  background: rgba(15,22,41,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--borde); display: flex; justify-content: center; }
.nav .fila { display: flex; width: 100%; max-width: 760px; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 8px; color: var(--texto3); font-size: 11.5px; font-weight: 600; position: relative; }
.nav button.activo { color: var(--ambar); }
.nav button svg { width: 24px; height: 24px; }
.nav .globo { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--rojo); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* ---------- piezas ---------- */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; margin-bottom: 14px; box-shadow: var(--sombra); }
.tarjeta h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--texto2); display: flex; align-items: center; gap: 8px; }
.tarjeta h2 .der { margin-left: auto; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--texto3); }
.titulo-dia { font-size: 22px; font-weight: 700; margin: 4px 0 14px; }
.titulo-dia small { display: block; font-size: 13px; color: var(--texto2); font-weight: 500; text-transform: none; }
.muted { color: var(--texto2); } .chico { font-size: 13px; } .mini { font-size: 12px; color: var(--texto3); }
.vacio { text-align: center; color: var(--texto3); padding: 26px 10px; font-size: 14px; }
.vacio svg { width: 40px; height: 40px; opacity: .5; margin-bottom: 8px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 13px; font-weight: 600; font-size: 15px;
  background: var(--tarjeta2); color: var(--texto); border: 1px solid var(--borde); transition: transform .08s, filter .15s; }
.boton:active { transform: scale(.97); } .boton:disabled { opacity: .5; pointer-events: none; }
.boton.primario { background: var(--ambar); color: #1a1200; border-color: transparent; }
.boton.peligro { color: var(--rojo); border-color: rgba(248,113,113,.35); }
.boton.fantasma { background: transparent; }
.boton.lleno { width: 100%; }
.boton svg { width: 18px; height: 18px; }
.fila-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.fila-botones .boton { flex: 1; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--tarjeta2); color: var(--texto2); border: 1px solid var(--borde); white-space: nowrap; }
.chip.ambar { background: rgba(245,185,66,.14); color: var(--ambar2); border-color: rgba(245,185,66,.35); }
.chip.cian { background: rgba(79,209,255,.12); color: var(--cian); border-color: rgba(79,209,255,.3); }
.chip.verde { background: rgba(74,222,128,.12); color: var(--verde); border-color: rgba(74,222,128,.3); }
.chip.rojo { background: rgba(248,113,113,.14); color: var(--rojo); border-color: rgba(248,113,113,.35); }
.chip.lila { background: rgba(167,139,250,.14); color: var(--lila); border-color: rgba(167,139,250,.35); }
.chip svg { width: 13px; height: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip.opcion { cursor: pointer; } .chip.opcion.activa { background: var(--ambar); color: #1a1200; border-color: transparent; }

/* ---------- grabadora ---------- */
.grabadora { text-align: center; padding: 22px 16px 18px; position: relative; overflow: hidden; }
.grabadora .aro { width: 132px; height: 132px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.grabadora .aro::before, .grabadora .aro::after { pointer-events: none; }
.grabadora .aro::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(245,185,66,.35); }
.grabadora.grabando .aro::before { animation: pulso 1.4s ease-out infinite; border-color: rgba(248,113,113,.6); }
.grabadora.grabando .aro::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(248,113,113,.4); animation: pulso 1.4s ease-out .5s infinite; }
@keyframes pulso { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.grabadora .mic { position: relative; z-index: 2; touch-action: manipulation; width: 104px; height: 104px; border-radius: 50%; background: linear-gradient(160deg, var(--ambar2), var(--ambar) 60%, #d99a1f); color: #1a1200;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(245,185,66,.35); transition: transform .1s; }
.grabadora .mic:active { transform: scale(.95); }
.grabadora.grabando .mic { background: linear-gradient(160deg, #ff9b9b, var(--rojo) 60%, #c43d3d); box-shadow: 0 12px 30px rgba(248,113,113,.35); color: #fff; }
.grabadora .mic svg { width: 44px; height: 44px; }
.grabadora .tiempo { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.grabadora .pista { color: var(--texto2); font-size: 14px; margin-top: 4px; }
.grabadora .acciones { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.onda { display: flex; align-items: center; justify-content: center; gap: 3px; height: 34px; margin: 8px 0 4px; }
.onda i { display: block; width: 4px; border-radius: 2px; background: var(--rojo); height: 8px; transition: height .12s; }

.previa { text-align: left; }
.previa audio { width: 100%; margin: 10px 0; filter: invert(.92) hue-rotate(180deg) saturate(.6); border-radius: 10px; }
.previa .destinos { margin: 8px 0 14px; }
textarea.campo, input.campo, select.campo { width: 100%; background: var(--fondo2); border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; color: var(--texto); outline: none; }
textarea.campo { min-height: 120px; resize: vertical; line-height: 1.5; }
.campo:focus { border-color: var(--ambar); }
label.etq { display: block; font-size: 12.5px; color: var(--texto2); font-weight: 600; margin: 10px 0 6px; }

/* ---------- listas de notas ---------- */
.nota-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tarjeta2); border: 1px solid var(--borde); margin-bottom: 10px; cursor: pointer; align-items: flex-start; }
.nota-item:active { filter: brightness(1.1); }
.nota-item .ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--fondo2); color: var(--texto2); }
.nota-item .ico svg { width: 20px; height: 20px; }
.nota-item .ico.pendiente { color: var(--texto2); } .nota-item .ico.procesando { color: var(--cian); } .nota-item .ico.procesada { color: var(--verde); } .nota-item .ico.error { color: var(--rojo); }
.nota-item .cuerpo { flex: 1; min-width: 0; }
.nota-item .tit { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.nota-item .tit .hora { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--texto3); flex: none; }
.nota-item .res { color: var(--texto2); font-size: 13.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nota-item .pie { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.punto-nuevo { width: 8px; height: 8px; border-radius: 50%; background: var(--ambar); flex: none; }

/* ---------- detalle de nota ---------- */
.texto-nota { white-space: pre-wrap; line-height: 1.6; font-size: 15.5px; }
.texto-nota .wl { color: var(--cian); background: rgba(79,209,255,.1); padding: 0 5px; border-radius: 6px; font-weight: 500; }
.texto-nota .wl.dudoso { color: var(--ambar2); background: rgba(245,185,66,.14); }
.texto-nota .emb { color: var(--texto3); font-size: 13px; }
.texto-nota h3 { font-size: 16px; margin: 14px 0 6px; color: var(--ambar2); }
.texto-nota blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--borde); color: var(--texto2); background: var(--fondo2); border-radius: 0 10px 10px 0; }
.wikilinks { display: flex; flex-direction: column; gap: 8px; }
.wl-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--tarjeta2); border: 1px solid var(--borde); cursor: pointer; }
.wl-item.dudoso { border-color: rgba(245,185,66,.45); background: rgba(245,185,66,.07); }
.wl-item.quitado { opacity: .55; text-decoration: line-through; }
.wl-item .flecha { color: var(--texto3); }
.wl-item .dicho { color: var(--texto2); } .wl-item .destino { font-weight: 600; color: var(--cian); flex: 1; }
.wl-item .estado { margin-left: auto; font-size: 12px; color: var(--texto3); }
.linea-tiempo { position: relative; padding-left: 22px; }
.linea-tiempo::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--borde); }
.ev { position: relative; padding: 4px 0 12px; }
.ev::before { content: ""; position: absolute; left: -19px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--texto3); border: 2px solid var(--tarjeta); }
.ev.ok::before { background: var(--verde); } .ev.mal::before { background: var(--rojo); } .ev.info::before { background: var(--cian); } .ev.ambar::before { background: var(--ambar); }
.ev .t { font-size: 12px; color: var(--texto3); } .ev .q { font-weight: 600; font-size: 14px; } .ev .d { font-size: 13px; color: var(--texto2); word-break: break-word; }
.dia-sep { font-size: 12px; font-weight: 700; color: var(--texto3); text-transform: uppercase; letter-spacing: .6px; margin: 16px 0 8px; }
.pregunta { padding: 12px 14px; border-radius: 12px; background: var(--tarjeta2); border: 1px solid var(--borde); margin-bottom: 8px; }
.pregunta .q { font-weight: 600; margin-bottom: 8px; }

/* ---------- modales y hojas ---------- */
.velo { position: fixed; inset: 0; background: rgba(5,8,18,.7); z-index: 50; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
@media (min-width: 700px) { .velo { align-items: center; } }
.hoja { width: 100%; max-width: 560px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + var(--seguro-abajo)); max-height: 90vh; overflow: auto; animation: subir .2s ease-out; }
@media (min-width: 700px) { .hoja { border-radius: 22px; } }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.hoja h3 { margin: 0 0 12px; font-size: 17px; }
.hoja .asa { width: 42px; height: 4px; border-radius: 2px; background: var(--borde); margin: -6px auto 14px; }
.opciones-lista { display: flex; flex-direction: column; gap: 8px; }
.opciones-lista .boton { justify-content: flex-start; text-align: left; }
.aviso { position: fixed; left: 50%; bottom: calc(var(--nav) + var(--seguro-abajo) + 14px); transform: translateX(-50%); background: var(--tarjeta2); border: 1px solid var(--borde); color: var(--texto);
  padding: 10px 16px; border-radius: 14px; font-size: 14px; z-index: 60; box-shadow: var(--sombra); max-width: 92vw; animation: subir .2s ease-out; }
.aviso.mal { border-color: rgba(248,113,113,.5); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 50% -10%, #1a2342, var(--fondo) 70%); }
.login .caja { width: 100%; max-width: 380px; text-align: center; }
.login .logo { width: 84px; height: 84px; border-radius: 26px; margin-bottom: 14px; box-shadow: 0 14px 40px rgba(245,185,66,.18); }
.login h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: .5px; } .login p { color: var(--texto2); margin: 0 0 22px; }
.login .campo { margin-bottom: 10px; text-align: left; }
.login .error { color: var(--rojo); font-size: 13.5px; margin: 8px 0; }

/* ---------- varios ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; } .kv b { font-weight: 600; } .kv span { color: var(--texto2); text-align: right; word-break: break-all; }
.token { font-family: "Source Code Pro", ui-monospace, monospace; font-size: 12.5px; background: var(--fondo2); padding: 8px 10px; border-radius: 10px; word-break: break-all; border: 1px solid var(--borde); }
.estado-obrero { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--texto2); }
.estado-obrero i { width: 8px; height: 8px; border-radius: 50%; background: var(--texto3); display: inline-block; }
.estado-obrero.vivo i { background: var(--verde); box-shadow: 0 0 8px var(--verde); }
.estado-obrero.lejos i { background: var(--ambar); }
.dicc-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--tarjeta2); border: 1px solid var(--borde); margin-bottom: 8px; }
.dicc-item .oido { color: var(--texto2); } .dicc-item .correcto { font-weight: 600; flex: 1; }
.cargando { text-align: center; color: var(--texto3); padding: 30px; }
.cargando i { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--borde); border-top-color: var(--ambar); border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.actualizar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; background: var(--ambar); color: #1a1200; font-weight: 700; font-size: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 19; }
.actualizar svg { width: 18px; height: 18px; }
.inst { background: linear-gradient(135deg, rgba(245,185,66,.12), rgba(79,209,255,.08)); }

/* ---------- inicio (panel de herramientas) ---------- */
.saludo { margin: 4px 0 14px; }
.saludo h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.saludo .fecha { color: var(--texto2); font-size: 14px; margin-top: 2px; }
.resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.resumen .dato { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 10px; text-align: center; }
.resumen .dato b { display: block; font-size: 22px; font-weight: 700; }
.resumen .dato span { font-size: 11.5px; color: var(--texto2); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.resumen .dato.alerta b { color: var(--ambar2); } .resumen .dato.ok b { color: var(--verde); }
.seccion { font-size: 12px; font-weight: 700; color: var(--texto3); text-transform: uppercase; letter-spacing: .6px; margin: 18px 0 10px; }
.rejilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .rejilla { grid-template-columns: repeat(3, 1fr); } }
.herr { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--borde); box-shadow: var(--sombra); cursor: pointer; min-height: 118px; transition: transform .08s, border-color .15s; text-align: left; }
.herr:active { transform: scale(.97); }
.herr .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.herr .ico svg { width: 24px; height: 24px; }
.herr.ambar .ico { background: rgba(245,185,66,.16); color: var(--ambar2); } .herr.cian .ico { background: rgba(79,209,255,.14); color: var(--cian); }
.herr.verde .ico { background: rgba(74,222,128,.14); color: var(--verde); } .herr.lila .ico { background: rgba(167,139,250,.16); color: var(--lila); }
.herr.rojo .ico { background: rgba(248,113,113,.14); color: var(--rojo); } .herr.gris .ico { background: var(--tarjeta2); color: var(--texto2); }
.herr .nom { font-weight: 700; font-size: 15.5px; } .herr .des { font-size: 12.5px; color: var(--texto2); margin-top: 3px; line-height: 1.35; }
.herr .globo { position: absolute; top: 12px; right: 12px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 7px; }
.herr.principal { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; background: linear-gradient(135deg, rgba(245,185,66,.18), rgba(79,209,255,.08)), var(--tarjeta); }
.herr.principal .ico { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(160deg, var(--ambar2), var(--ambar) 60%, #d99a1f); color: #1a1200; box-shadow: 0 10px 24px rgba(245,185,66,.3); flex: none; }
.herr.principal .ico svg { width: 28px; height: 28px; }
.herr.principal .des { margin-top: 2px; }
.herr.pronto { opacity: .55; cursor: default; border-style: dashed; }
.herr.pronto .nom::after { content: " · pronto"; font-weight: 500; color: var(--texto3); font-size: 12px; }

/* ---------- documentos ---------- */
.buscador { display: flex; align-items: center; gap: 8px; background: var(--fondo2); border: 1px solid var(--borde); border-radius: 14px; padding: 4px 8px 4px 12px; color: var(--texto3); }
.buscador svg { width: 18px; height: 18px; flex: none; } .buscador .campo { border: 0; background: transparent; padding: 10px 4px; flex: 1; min-width: 0; }
.doc-item { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--tarjeta2); border: 1px solid var(--borde); margin-bottom: 10px; cursor: pointer; align-items: flex-start; }
.doc-item .cuerpo { flex: 1; min-width: 0; } .doc-item .tit { font-weight: 600; font-size: 15px; line-height: 1.3; } .doc-item .pie { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.doc-mini { width: 56px; height: 74px; object-fit: cover; border-radius: 8px; background: var(--fondo2); border: 1px solid var(--borde); flex: none; }
.paginas-pdf { overflow: auto; max-height: 75vh; border-radius: 12px; background: #0f1629; padding: 6px; -webkit-overflow-scrolling: touch; }
.pagina-pdf { display: block; margin: 0 auto 8px; border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.estrella-on { color: var(--ambar); } .estrella-on svg { fill: var(--ambar); }
select.campo { appearance: none; }

/* ---------- vincular palabras ---------- */
.texto-nota .wl.tocable { cursor: pointer; border-bottom: 1px dashed rgba(79,209,255,.5); }
.pastilla-vincular { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav) + var(--seguro-abajo) + 14px); z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ambar); color: #1a1200; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(245,185,66,.35); animation: subir .2s ease-out; max-width: 92vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pastilla-vincular svg { width: 18px; height: 18px; flex: none; }
.sugerencias { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; background: var(--tarjeta2); border: 1px solid var(--borde); border-radius: 12px; max-height: 240px; overflow: auto; box-shadow: var(--sombra); }
.sug { display: flex; flex-direction: column; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--borde); }
.sug:last-child { border-bottom: 0; } .sug:active { background: var(--tarjeta); } .sug b { font-size: 14.5px; }

/* Documentos: segmentos Buscar/Bandeja/Duplicados/Subir y tarjetas de propuesta */
.segmentos { display: flex; background: var(--tarjeta2); border: 1px solid var(--borde); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.segmentos button { flex: 1; border: 0; background: transparent; color: var(--texto2); font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 2px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.segmentos button.activo { background: var(--ambar); color: #1a1200; }
.segmentos button svg { width: 15px; height: 15px; flex: 0 0 auto; }
.propuesta { border-left: 3px solid var(--ambar); padding-left: 12px; margin-top: 4px; }
.propuesta .tit { font-size: 16.5px; font-weight: 700; line-height: 1.3; margin-top: 6px; }
.tachado { text-decoration: line-through; color: var(--texto3) !important; font-weight: 500 !important; }

.sugerencias.enflujo { position: static; margin-top: 6px; max-height: 200px; }

/* Canvas */
.rejilla-img { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rejilla-img .celda { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tarjeta2); border: 1px solid var(--borde); cursor: pointer; }
.rejilla-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rejilla-img .fav { position: absolute; top: 6px; right: 6px; color: var(--ambar); filter: drop-shadow(0 1px 2px #000); }
.plantillas-rej { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plantilla-btn { text-align: left; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 12px; color: var(--texto); cursor: pointer; font: inherit; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--sombra); transition: transform .08s; }
.plantilla-btn:active { transform: scale(.97); }
.plantilla-btn .em { font-size: 26px; line-height: 1; } .plantilla-btn .nom { font-weight: 700; font-size: 14px; line-height: 1.25; } .plantilla-btn .des { font-size: 12px; color: var(--texto3); margin-top: 3px; }
.entradas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.entradas .e { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde); background: var(--tarjeta2); display: block; }
.entradas .e img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entradas .e .x { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.65); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; cursor: pointer; }
.entradas button.e.mas { display: grid; place-items: center; color: var(--ambar2); border-style: dashed; cursor: pointer; }
.entradas button.e.mas svg { width: 24px; height: 24px; }
.imagen-grande { width: 100%; border-radius: 14px; display: block; background: var(--tarjeta2); }
.cola-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--borde); } .cola-item:last-child { border-bottom: 0; }

/* Visor de imagen a pantalla completa */
.visor-img { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none; overscroll-behavior: contain; }
.visor-img img { max-width: 100vw; max-height: 100vh; object-fit: contain; transform-origin: center center; will-change: transform; user-select: none; -webkit-user-drag: none; }
.visor-barra { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.visor-barra .t { flex: 1; color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.visor-barra .b { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; }
.visor-barra .b svg { width: 22px; height: 22px; }
.visor-pista { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.55); font-size: 12px; pointer-events: none; }

.rejilla-img .play { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; }
video.imagen-grande { max-height: 70vh; background: #000; }

.entradas button.e.mas { flex-direction: column; gap: 3px; font: inherit; font-size: 10.5px; font-weight: 600; }
.rejilla-img .celda.sel { outline: 3px solid var(--ambar); outline-offset: -3px; }
.rejilla-img .marca { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--ambar); color: #1a1200; display: grid; place-items: center; }

/* Visor de galería (deslizar entre imágenes) */
.visor-gal { position: fixed; inset: 0; z-index: 80; background: #000; }
.visor-gal .lienzo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: none; overscroll-behavior: contain; }
.visor-gal .lienzo img, .visor-gal .lienzo video { max-width: 100vw; max-height: 100vh; object-fit: contain; transform-origin: center center; will-change: transform; user-select: none; -webkit-user-drag: none; transition: transform .05s linear; }
.visor-gal .lienzo video { width: 100vw; background: #000; }
.visor-gal .visor-barra, .visor-gal .visor-pie { transition: opacity .2s; }
.visor-gal .visor-barra.oculta, .visor-gal .visor-pie.oculta { opacity: 0; pointer-events: none; }
.visor-gal .visor-barra .t .n { display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.7); }
.visor-gal .visor-barra .b.on { color: var(--ambar); }
.visor-pie { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.visor-pie .b { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; } .visor-pie .b svg { width: 22px; height: 22px; } .visor-pie .b.vacio { background: transparent; }
.visor-pie .mini { color: rgba(255,255,255,.6); }

/* =====================================================================
   TEMA AURORA (elegido el 26/10): fondo con luces lentas, tarjetas de vidrio, ámbar + cian.
   Va al final para pisar lo anterior sin tocar cada regla.
   ===================================================================== */
:root { --fondo: #0e1322; --fondo2: #121a2e; --tarjeta: rgba(255,255,255,.055); --tarjeta2: rgba(255,255,255,.085); --borde: rgba(255,255,255,.1);
  --texto: #eef1fa; --texto2: #aab3cf; --texto3: #7c87a8; --ambar: #ffc85c; --ambar2: #ffdb8a; --cian: #5ee1ff; --rojo: #ff7a7a; --verde: #5be09a; --lila: #b59cff; --sombra: 0 10px 30px rgba(0,0,0,.28); }
body { background: var(--fondo); }
.aurora { position: fixed; inset: -20%; z-index: 0; filter: blur(70px); opacity: .5; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; animation: deriva 16s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 55vw; height: 55vw; left: -10%; top: 2%; background: #2a4bd8; }
.aurora i:nth-child(2) { width: 50vw; height: 50vw; right: -12%; top: 28%; background: #7a3fd1; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 46vw; height: 46vw; left: 18%; bottom: 2%; background: #0f8fa8; animation-delay: -11s; }
@keyframes deriva { from { transform: translate(0, 0); } to { transform: translate(7vw, 5vh); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }
.app { position: relative; z-index: 1; }
.cabecera { background: rgba(14,19,34,.72); border-bottom: 1px solid rgba(255,255,255,.06); }
.cabecera .atras { background: rgba(255,255,255,.07); border: 1px solid var(--borde); }
.orbe { width: 38px; height: 38px; border-radius: 50%; flex: none; position: relative; background: radial-gradient(circle at 35% 30%, #ffe3a1, #ffc85c 40%, #b8771a 75%); box-shadow: 0 0 22px rgba(255,200,92,.5); animation: respira 3.4s ease-in-out infinite; }
.orbe::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(94,225,255,.55); }
.orbe.ocupado { animation-duration: 1s; box-shadow: 0 0 34px rgba(255,200,92,.9); }
@keyframes respira { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.07); opacity: 1; } }
.tarjeta { background: var(--tarjeta); border-color: var(--borde); animation: entra .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.boton { background: rgba(255,255,255,.07); border-color: var(--borde); }
.boton.primario { background: linear-gradient(135deg, #ffc85c, #f0ae3b); color: #1c1300; box-shadow: 0 6px 18px rgba(255,200,92,.22); }
.chip { background: rgba(255,255,255,.07); border-color: var(--borde); }
.chip.opcion.activa { background: linear-gradient(135deg, #ffc85c, #ffdb8a); color: #1a1200; }
.campo, .buscador { background: rgba(0,0,0,.22) !important; border-color: var(--borde) !important; }
.segmentos { background: rgba(255,255,255,.06); } .segmentos button.activo { background: linear-gradient(135deg, #ffc85c, #ffdb8a); }
.hoja { background: #141b30; border-color: rgba(255,255,255,.12); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.velo { background: rgba(8,11,22,.6); }
.nav { background: rgba(14,19,34,.78); border-top: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(16px); }
.nav button { color: var(--texto3); transition: color .2s; } .nav button.activo { color: var(--ambar); }
.nav button.activo::after { content: ""; position: absolute; bottom: 4px; width: 18px; height: 3px; border-radius: 2px; background: var(--ambar); }
.nav .globo { background: var(--rojo); }
.nota-item, .doc-item, .plantilla-btn, .pregunta, .herr { background: var(--tarjeta); border-color: var(--borde); }
.herr.principal { background: linear-gradient(135deg, rgba(255,200,92,.16), rgba(94,225,255,.07)), var(--tarjeta); }
.resumen .dato { background: var(--tarjeta); }
.actualizar { background: linear-gradient(135deg, #ffc85c, #f0ae3b); }
.login { background: radial-gradient(900px 500px at 50% -10%, #1f2a55, var(--fondo) 70%); }

/* ---------- Chat de Jarvis ---------- */
.chat { display: flex; flex-direction: column; min-height: calc(100vh - 78px); }
.hilos { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; position: sticky; top: 64px; z-index: 10; background: linear-gradient(var(--fondo) 70%, transparent); margin-top: -8px; } .hilos::-webkit-scrollbar { display: none; }
.msgs { flex: 1; display: flex; flex-direction: column; padding-bottom: 96px; }
.burbuja { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 15px; margin-bottom: 10px; animation: entra .3s cubic-bezier(.2,.8,.2,1) both; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.burbuja.yo { margin-left: auto; background: linear-gradient(135deg, #ffc85c, #f0ae3b); color: #1c1300; border-bottom-right-radius: 6px; }
.burbuja.jv { background: rgba(255,255,255,.07); border: 1px solid var(--borde); border-bottom-left-radius: 6px; }
.burbuja .fuentes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.burbuja .fuente { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 10px; font-size: 12px; background: rgba(94,225,255,.12); color: var(--cian); cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.burbuja .hora { display: block; font-size: 10.5px; color: var(--texto3); margin-top: 4px; } .burbuja.yo .hora { color: rgba(28,19,0,.6); text-align: right; }
.tecleando { display: flex; gap: 5px; padding: 14px 16px; width: 64px; } .tecleando i { width: 7px; height: 7px; border-radius: 50%; background: var(--texto2); animation: punto 1.2s infinite; } .tecleando i:nth-child(2) { animation-delay: .2s; } .tecleando i:nth-child(3) { animation-delay: .4s; }
@keyframes punto { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.entrada-chat { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav) + var(--seguro-abajo) + 10px); z-index: 15; display: flex; gap: 8px; align-items: flex-end; background: rgba(20,27,48,.9); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 6px 6px 6px 16px; max-width: 736px; margin: 0 auto; }
.entrada-chat textarea { flex: 1; background: transparent; border: 0; outline: 0; color: var(--texto); font: inherit; font-size: 15px; resize: none; max-height: 120px; padding: 10px 0; line-height: 1.4; }
.entrada-chat .mic, .entrada-chat .enviar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; transition: transform .15s; }
.entrada-chat .mic { background: linear-gradient(135deg, #ffc85c, #f0ae3b); color: #1c1300; } .entrada-chat .enviar { background: rgba(255,255,255,.1); color: var(--texto); }
.entrada-chat .mic:active, .entrada-chat .enviar:active { transform: scale(.92); }
.entrada-chat .mic svg, .entrada-chat .enviar svg { width: 20px; height: 20px; }
.entrada-chat .mic.escuchando { background: var(--rojo); color: #fff; }
.entrada-chat .mic.escuchando::before, .entrada-chat .mic.escuchando::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--rojo); animation: onda 1.4s ease-out infinite; pointer-events: none; } .entrada-chat .mic.escuchando::after { animation-delay: .7s; }
@keyframes onda { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.vacio-chat { text-align: center; padding: 30px 16px; color: var(--texto2); }
.vacio-chat .sug { display: inline-block; margin: 4px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--borde); font-size: 13px; cursor: pointer; }
.hilo-item { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .hilo-item:last-child { border-bottom: 0; }
.hilo-item .t { font-weight: 600; font-size: 14.5px; } .hilo-item .d { font-size: 12px; color: var(--texto3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- Apps ---------- */
.apps-grupo { font-size: 12px; font-weight: 700; color: var(--texto3); text-transform: uppercase; letter-spacing: .6px; margin: 14px 2px 10px; }
.apps-rej { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app4 { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--texto2); font-weight: 600; text-align: center; position: relative; }
.app4 .ico { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--tarjeta); border: 1px solid var(--borde); transition: transform .12s; }
.app4:active .ico { transform: scale(.92); } .app4 .ico svg { width: 26px; height: 26px; }
.app4.ambar .ico { color: var(--ambar2); } .app4.cian .ico { color: var(--cian); } .app4.verde .ico { color: var(--verde); } .app4.lila .ico { color: var(--lila); } .app4.rojo .ico { color: var(--rojo); }
.app4.pronto { opacity: .45; } .app4 .globo { position: absolute; top: -4px; right: 6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
/* ---------- Avisos ---------- */
.aviso-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .aviso-item:last-child { border-bottom: 0; }
.aviso-item .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.07); } .aviso-item .ic svg { width: 19px; height: 19px; }
.aviso-item.ok .ic { color: var(--verde); } .aviso-item.mal .ic { color: var(--rojo); } .aviso-item.ambar .ic { color: var(--ambar2); } .aviso-item.info .ic { color: var(--cian); }
.aviso-item .t { font-weight: 600; font-size: 14px; } .aviso-item .d { font-size: 12.5px; color: var(--texto2); } .aviso-item .h { margin-left: auto; font-size: 11px; color: var(--texto3); white-space: nowrap; }
.aviso-item.nuevo .t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ambar); margin-right: 6px; vertical-align: 2px; }
.aviso-item img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }

/* ---------- Cajón lateral ---------- */
.cajon-velo { position: fixed; inset: 0; z-index: 60; background: rgba(8,11,22,.55); backdrop-filter: blur(3px); animation: aparece .2s both; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.cajon { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: rgba(16,22,40,.96); border-right: 1px solid rgba(255,255,255,.1); padding: calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; animation: desliza .25s cubic-bezier(.2,.8,.2,1) both; box-shadow: 20px 0 60px rgba(0,0,0,.45); }
@keyframes desliza { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cajon-cab { display: flex; align-items: center; gap: 12px; } .cajon-x { margin-left: auto; width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.07); color: var(--texto2); display: grid; place-items: center; } .cajon-x svg { width: 18px; height: 18px; }
.cajon-acciones { display: flex; gap: 8px; } .cajon-acciones .boton { flex: 1; padding: 10px 8px; font-size: 14px; }
.cajon-sec { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--texto3); text-transform: uppercase; letter-spacing: .6px; }
.cajon-sec button { color: var(--ambar2); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.cajon .apps-rej { gap: 8px; } .cajon .app4 .ico { width: 52px; height: 52px; border-radius: 15px; } .cajon .app4 { font-size: 11px; }
.cajon-hilos { flex: 1; } .cajon .hilo-item { padding: 9px 0; gap: 8px; } .cajon .hilo-item.actual .t { color: var(--ambar2); } .cajon .hilo-item svg { color: var(--texto3); flex: none; }
.cajon-pie { margin-top: auto; padding-top: 6px; }
button.orbe { cursor: pointer; }
.hilo-actual { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--texto2); background: rgba(255,255,255,.06); border: 1px solid var(--borde); border-radius: 999px; padding: 4px 11px; margin: 4px 0 10px; cursor: pointer; }
/* ---------- Tirar para refrescar ---------- */
.tirar { position: fixed; top: 0; left: 0; right: 0; z-index: 25; height: 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; font-size: 12px; font-weight: 600; color: var(--texto2); background: linear-gradient(rgba(255,200,92,.18), transparent); opacity: 0; transition: height .15s, opacity .15s; padding-bottom: 6px; pointer-events: none; }
.tirar.listo { color: var(--ambar2); }

/* ---------- Panel ---------- */
.sem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.sem div { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 10px 4px; text-align: center; } .sem b { display: block; font-size: 19px; } .sem span { font-size: 9.5px; color: var(--texto3); text-transform: uppercase; letter-spacing: .4px; }
.sem .ok b { color: var(--verde); } .sem .al b { color: var(--ambar2); } .sem .mal b { color: var(--rojo); }
.srv { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .tarjeta .srv:last-child { border-bottom: 0; }
.srv .n { font-weight: 600; font-size: 14px; } .srv .d { font-size: 12px; color: var(--texto3); } .srv .m { margin-left: auto; text-align: right; font-size: 12px; color: var(--texto2); white-space: pre-line; flex: none; }
.srv-mas { font-size: 12.5px; color: var(--texto2); padding: 4px 0 10px 20px; border-bottom: 1px solid var(--borde); }
.led { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; } .led.ok { background: var(--verde); color: var(--verde); } .led.al { background: var(--ambar); color: var(--ambar); } .led.mal { background: var(--rojo); color: var(--rojo); } .led.off { background: var(--texto3); color: transparent; }
.barra { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 5px; max-width: 220px; } .barra i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cian), var(--verde)); } .barra.al i { background: linear-gradient(90deg, var(--ambar), var(--rojo)); }
.alerta { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,200,92,.1); border: 1px solid rgba(255,200,92,.3); margin-bottom: 8px; font-size: 13px; color: var(--texto); } .alerta.mal { background: rgba(255,122,122,.1); border-color: rgba(255,122,122,.3); } .alerta svg { flex: none; margin-top: 1px; color: var(--ambar2); } .alerta.mal svg { color: var(--rojo); }
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lk { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--texto2); font-weight: 600; text-align: center; cursor: pointer; } .lk .i { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--tarjeta2); border: 1px solid var(--borde); position: relative; transition: transform .12s; } .lk:active .i { transform: scale(.92); } .lk .i::after { content: "↗"; position: absolute; right: 5px; top: 3px; font-size: 10px; color: var(--texto3); }
/* botón central de la barra */
.nav button.centro { margin-top: -22px; } .nav button.centro svg { width: 26px; height: 26px; }
.nav button.centro::before { content: ""; position: absolute; top: -4px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #ffc85c, #f0ae3b); box-shadow: 0 10px 26px rgba(255,200,92,.35); border: 4px solid #0e1322; z-index: -1; }
.nav button.centro { color: #1c1300; position: relative; z-index: 1; } .nav button.centro svg { position: relative; top: -2px; } .nav button.centro span, .nav button.centro { font-weight: 700; }
.nav button.centro { padding-top: 6px; } .nav button.centro.activo::after { display: none; }
.nav button.centro { color: var(--texto3); } .nav button.centro svg { color: #1c1300; } .nav button.centro.activo { color: var(--ambar); }

.nav button.centro svg { margin-bottom: 22px; }
.nav button.centro::before { top: -6px; }
.nav button.centro { color: var(--texto3); font-size: 11px; }

/* ---------- Negocio ---------- */
.horas { display: flex; align-items: flex-end; gap: 4px; height: 96px; padding-top: 6px; }
.horas .h { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.horas .b { width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--ambar2), var(--ambar)); }
.horas span { font-size: 10px; color: var(--texto3); }

/* Recomendaciones sobre el texto */
.texto-nota .sug { color: var(--lila); background: rgba(181,156,255,.12); border-bottom: 2px solid var(--lila); border-radius: 4px; padding: 0 2px; cursor: pointer; }
.sug-caja { background: rgba(255,255,255,.05); border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 15px; line-height: 1.45; }
.sug-caja.nuevo { border-color: rgba(181,156,255,.5); background: rgba(181,156,255,.08); }

/* Semana y Comida */
.sem-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .sem-nav > div { flex: 1; text-align: center; } .sem-nav .boton { padding: 8px; } .sem-nav .boton svg { width: 20px; height: 20px; }
.resumen-ia { background: linear-gradient(135deg, rgba(181,156,255,.12), rgba(94,225,255,.06)), var(--tarjeta); }
.dias7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.dias7 div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 11px; color: var(--texto3); }
.dias7 div.si { background: rgba(91,224,154,.12); color: var(--verde); } .dias7 i { font-style: normal; font-weight: 700; } .dias7 em { font-style: normal; font-size: 12px; min-height: 14px; }
.comida-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); } .comida-item:last-of-type { border-bottom: 0; } .comida-item .em { font-size: 22px; }

/* Proyectos */
.proy-rej { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.proy { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; padding: 14px; cursor: pointer; transition: transform .1s; animation: entra .3s both; } .proy:active { transform: scale(.98); } .proy .nom { font-weight: 700; font-size: 16px; }
.tarj { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--borde); } .tarj:last-child { border-bottom: 0; }
.tarj .caja { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--texto3); flex: none; margin-top: 2px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #1c1300; }
.tarj.hecha .caja { background: var(--verde); border-color: var(--verde); } .tarj.hecha .texto-nota { color: var(--texto3); text-decoration: line-through; }
.tarj .texto-nota { font-size: 14.5px; line-height: 1.4; } .tarj .texto-nota p { margin: 0; }
.cajon .buscador { margin-bottom: 2px; } .cajon-resultados { max-height: 60vh; overflow-y: auto; }

/* Rachas */
.tira-rachas { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; scrollbar-width: none; cursor: pointer; } .tira-rachas::-webkit-scrollbar { display: none; }
.rch { flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--tarjeta); border: 1px solid var(--borde); font-size: 13px; }
.rch b { font-size: 15px; } .rch .n { color: var(--texto2); } .rch.hecha { border-color: rgba(91,224,154,.45); background: rgba(91,224,154,.1); } .rch.riesgo { border-color: rgba(255,200,92,.5); }
.racha .llama { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(255,255,255,.06); filter: grayscale(.6); } .racha .llama.on { filter: none; background: rgba(255,200,92,.16); box-shadow: 0 0 20px rgba(255,200,92,.25); }
.racha .num { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ambar2); }
.cuadros { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 12px; } .cuadros span { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.07); cursor: pointer; } .cuadros span.si { background: linear-gradient(135deg, #ffc85c, #f0ae3b); }
.srv .emo { font-size: 20px; width: 26px; text-align: center; flex: none; }

/* Mosaicos tipo app (iconos con degradado) */
.links, .apps-rej { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
@media (min-width: 640px) { .links { grid-template-columns: repeat(6, 1fr); } }
.mosaico { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mosaico img { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: transform .12s; pointer-events: none; }
.mosaico:active img { transform: scale(.9); }
.mosaico span { font-size: 11.5px; font-weight: 600; color: var(--texto2); line-height: 1.2; max-width: 76px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mosaico .globo { position: absolute; top: -5px; right: calc(50% - 36px); min-width: 20px; height: 20px; border-radius: 10px; background: var(--rojo); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.mosaico.pronto { opacity: .4; }
.cajon .mosaico img { width: 52px; height: 52px; border-radius: 14px; }

.apps-titulo { font-size: 17px; font-weight: 700; margin: 2px 2px 4px; color: var(--texto); }

.venc { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--borde); } .venc:last-of-type { border-bottom: 0; }

.tarj .caja.prio-rojo { border-color: var(--rojo); } .tarj .caja.prio-ambar { border-color: var(--ambar); } .tarj .caja.prio-cian { border-color: var(--cian); }
.tarj .caja { border-radius: 50%; background: transparent; cursor: pointer; }

/* selector de carpetas del Atlas */
.atlas-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px}
.atlas-cat{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:14px;background:var(--tarjeta2);border:1px solid rgba(255,255,255,.07);color:var(--texto);font:inherit;cursor:pointer}
.atlas-cat span{font-size:22px;line-height:1}
.atlas-cat b{font-size:12px;font-weight:600;text-align:center;line-height:1.2}
.atlas-cat.activa{border-color:var(--ambar2);background:linear-gradient(135deg,rgba(255,181,71,.18),rgba(255,181,71,.06));box-shadow:0 0 0 1px rgba(255,200,92,.35)}

/* vendedores del día */
.vend{padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.vend:last-of-type{border-bottom:0}
.vend-fila{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.vend-fila b{font-size:15px}
.vend-total{font-weight:700;color:var(--verde);white-space:nowrap}
.vend-barra{height:6px;border-radius:4px;background:rgba(255,255,255,.06);margin:6px 0 4px;overflow:hidden}
.vend-barra div{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--ambar2),var(--ambar))}

/* Time Store en vivo */
.tienda-marco{position:relative;width:100%;height:calc(100vh - 230px);min-height:420px;border-radius:16px;overflow:hidden;background:#14181d;border:1px solid rgba(255,255,255,.08)}.tienda-marco iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* =====================================================================
   TEMAS (03/11): el de arriba es "Clásico". Los demás se activan con <html data-tema="…">
   y solo pintan: la interfaz es la misma. Para agregar uno: copiar el bloque HUD con otro nombre.
   ===================================================================== */
.orbe i, .escaneo { display: none; }

/* ---------- TEMA HUD (diseño de Claude Design, estilo Iron Man) ---------- */
:root[data-tema="hud"] {
  --fondo: #050810; --fondo2: #08101e; --tarjeta: rgba(8,16,30,.92); --tarjeta2: rgba(79,227,255,.06);
  --borde: rgba(79,227,255,.22); --borde-fuerte: rgba(79,227,255,.45); --rejilla: rgba(79,227,255,.045);
  --texto: #e6f6ff; --texto2: #9fc3d6; --texto3: #7f9bb3;
  --cian: #4fe3ff; --ambar: #ffc85c; --ambar2: #ffd98a; --verde: #4dffb0; --lila: #b59cff; --rojo: #ff6b7d;
  --f-titulo: Orbitron, Inter, sans-serif; --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --radio: 14px; --sombra: 0 0 0 rgba(0,0,0,0);
}
[data-tema="hud"] body { background-color: var(--fondo);
  background-image: linear-gradient(var(--rejilla) 1px, transparent 1px), linear-gradient(90deg, var(--rejilla) 1px, transparent 1px); background-size: 24px 24px; }
[data-tema="hud"] .aurora { display: none; }
[data-tema="hud"] .escaneo { display: block; position: fixed; left: 0; right: 0; top: 0; height: 140px; pointer-events: none; z-index: 30;
  background: linear-gradient(rgba(79,227,255,0), rgba(79,227,255,.06), rgba(79,227,255,0)); animation: hud-barrido 8s linear infinite; }
@keyframes hud-barrido { 0% { transform: translateY(-160px); } 100% { transform: translateY(110vh); } }
@keyframes hud-giro { to { transform: rotate(360deg); } }
@keyframes hud-giroR { to { transform: rotate(-360deg); } }
@keyframes hud-late { 0%,100% { transform: scale(.9); } 50% { transform: scale(1.08); } }
@keyframes hud-linea { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* cabecera y reactor */
[data-tema="hud"] .cabecera { background: rgba(5,8,16,.86); border-bottom: 1px solid var(--borde); }
[data-tema="hud"] .cabecera h1 { font-family: var(--f-titulo); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 16px; text-shadow: 0 0 14px rgba(79,227,255,.5); }
[data-tema="hud"] .cabecera .sub { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--texto-cian, #7fd8ec); }
[data-tema="hud"] .cabecera .atras { background: var(--tarjeta2); border: 1px solid var(--borde); color: var(--cian); }
[data-tema="hud"] .orbe { background: none; box-shadow: none; animation: none; width: 44px; height: 44px; }
[data-tema="hud"] .orbe::after { display: none; }
[data-tema="hud"] .orbe i { display: block; position: absolute; border-radius: 50%; }
[data-tema="hud"] .orbe i:nth-child(1) { inset: 0; border: 1.5px dashed rgba(79,227,255,.75); animation: hud-giro 9s linear infinite; }
[data-tema="hud"] .orbe i:nth-child(2) { inset: 12%; border: 2px solid transparent; border-top-color: var(--ambar); border-bottom-color: var(--ambar); animation: hud-giroR 2.8s linear infinite; }
[data-tema="hud"] .orbe i:nth-child(3) { inset: 30%; background: radial-gradient(circle, #fff, #b9f6ff 30%, var(--cian) 58%, rgba(79,227,255,0) 74%); box-shadow: 0 0 18px rgba(79,227,255,.8); animation: hud-late 2.4s ease-in-out infinite; }
[data-tema="hud"] .orbe.ocupado i:nth-child(2) { animation-duration: .9s; }
[data-tema="hud"] .orbe.ocupado i:nth-child(3) { animation-duration: .8s; }

/* tarjetas con esquinas HUD */
[data-tema="hud"] .tarjeta { position: relative; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: none; }
[data-tema="hud"] .tarjeta::before, [data-tema="hud"] .tarjeta::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--cian); border-style: solid; pointer-events: none; }
[data-tema="hud"] .tarjeta::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
[data-tema="hud"] .tarjeta::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
[data-tema="hud"] .tarjeta h2 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 2px; color: var(--cian); }
[data-tema="hud"] .tarjeta h2::before { content: "//"; opacity: .7; }
[data-tema="hud"] .tarjeta h2 .der { font-family: var(--f-texto, Inter); letter-spacing: 0; color: var(--texto3); }
[data-tema="hud"] .titulo-dia { font-family: var(--f-titulo); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 19px; text-shadow: 0 0 14px rgba(79,227,255,.4); }
[data-tema="hud"] .titulo-dia small { font-family: var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; font-size: 11px; color: var(--texto2); text-shadow: none; }
[data-tema="hud"] .kv b { font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .5px; color: var(--texto2); }
[data-tema="hud"] .nota-item, [data-tema="hud"] .doc-item, [data-tema="hud"] .plantilla-btn, [data-tema="hud"] .pregunta, [data-tema="hud"] .herr, [data-tema="hud"] .resumen .dato, [data-tema="hud"] .aviso-item, [data-tema="hud"] .hilo-item { background: var(--tarjeta); border-color: var(--borde); }
[data-tema="hud"] .herr.principal { background: linear-gradient(135deg, rgba(255,200,92,.14), rgba(79,227,255,.08)), var(--tarjeta); border-color: rgba(255,200,92,.45); }
[data-tema="hud"] .mini { font-family: var(--f-mono); font-size: 11px; }

/* botones, chips y campos */
[data-tema="hud"] .boton { background: var(--tarjeta2); border: 1px solid var(--borde); color: #cfeefb; border-radius: 10px; }
[data-tema="hud"] .boton.primario { background: var(--ambar); color: #1c1300; border-color: transparent; box-shadow: 0 0 14px rgba(255,200,92,.35); font-weight: 700; }
[data-tema="hud"] .boton.peligro { background: rgba(255,107,125,.14); border-color: rgba(255,107,125,.5); color: var(--rojo); }
[data-tema="hud"] .chip { background: var(--tarjeta2); border-color: var(--borde); color: var(--texto2); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .4px; }
[data-tema="hud"] .chip.opcion.activa, [data-tema="hud"] .segmentos button.activo { background: var(--cian); color: #041018; box-shadow: 0 0 12px rgba(79,227,255,.45); }
[data-tema="hud"] .segmentos { background: var(--tarjeta2); border: 1px solid var(--borde); }
[data-tema="hud"] .campo, [data-tema="hud"] .buscador { background: rgba(4,10,20,.8) !important; border-color: var(--borde) !important; }
[data-tema="hud"] .campo:focus { border-color: var(--cian) !important; box-shadow: 0 0 0 3px rgba(79,227,255,.15); }
[data-tema="hud"] .actualizar { background: var(--ambar); }

/* hojas (ventanas) */
[data-tema="hud"] .hoja { background: #08101e; border: 1px solid var(--borde-fuerte); border-bottom: 0; box-shadow: 0 -10px 40px rgba(79,227,255,.12); }
[data-tema="hud"] .hoja h3 { font-family: var(--f-titulo); letter-spacing: 1.5px; text-transform: uppercase; font-size: 15px; color: var(--cian); }
[data-tema="hud"] .hoja .asa { background: var(--cian); opacity: .5; }
[data-tema="hud"] .velo { background: rgba(2,5,12,.72); }

/* barra de abajo */
[data-tema="hud"] .nav { background: rgba(5,8,16,.94); border-top: 1px solid var(--borde); }
[data-tema="hud"] .nav::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; background: linear-gradient(90deg, transparent, var(--cian), transparent); animation: hud-linea 4s ease-in-out infinite; }
[data-tema="hud"] .nav button { font-family: var(--f-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
[data-tema="hud"] .nav button.activo { color: var(--cian); text-shadow: 0 0 10px rgba(79,227,255,.6); }
[data-tema="hud"] .nav button.activo::after { background: var(--cian); box-shadow: 0 0 8px var(--cian); }
[data-tema="hud"] .nav button.centro::before { background: radial-gradient(circle at 40% 30%, #ffe7ad, var(--ambar) 60%, #c8861c); box-shadow: 0 0 0 2px rgba(79,227,255,.5), 0 0 22px rgba(255,200,92,.55); }
[data-tema="hud"] .nav button.centro.activo { color: var(--ambar); text-shadow: none; }

/* chat */
[data-tema="hud"] .burbuja.yo { background: var(--ambar); color: #1c1300; box-shadow: 0 0 14px rgba(255,200,92,.25); }
[data-tema="hud"] .burbuja.jv { background: rgba(79,227,255,.06); border: 1px solid var(--borde); }
[data-tema="hud"] .burbuja .hora { font-family: var(--f-mono); }
[data-tema="hud"] .entrada-chat { background: rgba(8,16,30,.96); border: 1px solid rgba(255,200,92,.45); box-shadow: 0 0 20px rgba(255,200,92,.12); }
[data-tema="hud"] .entrada-chat .enviar { background: var(--tarjeta2); border: 1px solid var(--borde); color: var(--cian); }
[data-tema="hud"] .hilos { background: linear-gradient(var(--fondo) 70%, transparent); }

/* login */
[data-tema="hud"] .login { background: radial-gradient(900px 500px at 50% -10%, rgba(79,227,255,.14), var(--fondo) 70%); }

@media (prefers-reduced-motion: reduce) { [data-tema="hud"] .escaneo, [data-tema="hud"] .orbe i, [data-tema="hud"] .nav::before { animation: none !important; } }

/* ---------- selector de temas (Ajustes → Apariencia) ---------- */
.temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tema-op { text-align: left; border-radius: 14px; padding: 8px; border: 1.5px solid var(--borde); background: var(--tarjeta2); color: var(--texto); }
.tema-op.activo { border-color: var(--ambar); box-shadow: 0 0 0 3px rgba(255,200,92,.18); }
.tema-op .muestra { height: 74px; border-radius: 10px; margin-bottom: 8px; position: relative; overflow: hidden; }
.tema-op b { display: block; font-size: 14px; } .tema-op span { font-size: 11.5px; color: var(--texto2); }

/* ---------- Deslizar avisos (los dos temas) ---------- */
.avisos-lista { display: flex; flex-direction: column; gap: 8px; }
.desliza { position: relative; border-radius: 14px; overflow: hidden; }
.desliza.sale { animation: desliza-cierra .25s .2s ease forwards; }
@keyframes desliza-cierra { to { max-height: 0; opacity: 0; margin-bottom: -8px; } }
.desliza { max-height: 400px; }
.desliza-fondo { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(94,225,255,.28), rgba(91,224,154,.38)); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.desliza-fondo span { opacity: .45; transition: opacity .15s; } .desliza-fondo span.on { opacity: 1; }
.desliza-fondo span:first-child { color: #bdeffc; } .desliza-fondo span:last-child { color: var(--verde); }
.desliza-frente { position: relative; background: var(--fondo2); border: 1px solid var(--borde); border-radius: 14px; padding: 0 14px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.desliza-frente .aviso-item { border-bottom: 0; animation: entra .35s cubic-bezier(.2,.8,.2,1) both; }
.truco-desliza { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.truco-frente { position: relative; padding: 11px 14px; border-radius: 14px; background: var(--fondo2); border: 1px solid rgba(255,200,92,.45); animation: truco-empuja 3.2s ease-in-out infinite; }
.truco-frente .mini { color: var(--ambar); font-weight: 700; }
@keyframes truco-empuja { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-70px); } }
.boton.resueltos { display: flex; align-items: center; gap: 8px; color: var(--verde); }
.nav .anillos, .entrada-chat .luz, .entrada-chat .prompt { display: none; }
@media (prefers-reduced-motion: reduce) { .truco-frente { animation: none; } }

/* =====================================================================
   HUD, segunda pasada (04/11): todo lo de las maquetas de Claude Design
   ===================================================================== */
[data-tema="hud"] body::before { content: ""; position: fixed; left: -20%; right: -20%; top: -160px; height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(79,227,255,.14), rgba(79,227,255,0)); }
[data-tema="hud"] .cabecera { position: sticky; }

/* entrada en cascada: tarjetas, items y mosaicos */
@keyframes hud-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-tema="hud"] .contenido > .tarjeta, [data-tema="hud"] .contenido > div > .tarjeta { animation: hud-entra .5s cubic-bezier(.2,.8,.2,1) both; }
[data-tema="hud"] .contenido > :nth-child(2) { animation-delay: 60ms; } [data-tema="hud"] .contenido > :nth-child(3) { animation-delay: 120ms; }
[data-tema="hud"] .contenido > :nth-child(4) { animation-delay: 180ms; } [data-tema="hud"] .contenido > :nth-child(5) { animation-delay: 240ms; }
[data-tema="hud"] .contenido > :nth-child(6) { animation-delay: 300ms; } [data-tema="hud"] .contenido > :nth-child(n+7) { animation-delay: 360ms; }
[data-tema="hud"] .mosaico { animation: hud-entra .5s cubic-bezier(.2,.8,.2,1) both; }
[data-tema="hud"] .mosaico:nth-child(2) { animation-delay: 45ms; } [data-tema="hud"] .mosaico:nth-child(3) { animation-delay: 90ms; } [data-tema="hud"] .mosaico:nth-child(4) { animation-delay: 135ms; }
[data-tema="hud"] .mosaico:nth-child(5) { animation-delay: 180ms; } [data-tema="hud"] .mosaico:nth-child(6) { animation-delay: 225ms; } [data-tema="hud"] .mosaico:nth-child(7) { animation-delay: 270ms; }
[data-tema="hud"] .mosaico:nth-child(n+8) { animation-delay: 315ms; }

/* títulos de sección con la línea que se desvanece */
[data-tema="hud"] .tarjeta h2::after { content: ""; flex: 1; height: 1px; order: 1; background: linear-gradient(90deg, rgba(79,227,255,.5), rgba(79,227,255,0)); }
[data-tema="hud"] .tarjeta h2 .der { order: 2; margin-left: 0; }
[data-tema="hud"] .dia-sep { font-family: var(--f-mono); color: var(--cian); letter-spacing: 2px; font-size: 11px; display: flex; align-items: center; gap: 10px; }
[data-tema="hud"] .dia-sep::before { content: "//"; opacity: .7; }
[data-tema="hud"] .dia-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(79,227,255,.5), rgba(79,227,255,0)); }

/* iconos de apps (el servidor los dibuja en neón; aquí el brillo) */
[data-tema="hud"] .mosaico img { border-radius: 16px; box-shadow: 0 0 18px rgba(79,227,255,.12); }
[data-tema="hud"] .mosaico span { color: #cfe6f2; }
[data-tema="hud"] .mosaico .globo, [data-tema="hud"] .nav .globo, [data-tema="hud"] .app4 .globo { background: var(--rojo); color: #1a0207; font-family: var(--f-mono); box-shadow: 0 0 12px rgba(255,107,125,.8); }
[data-tema="hud"] .mosaico .globo::after, [data-tema="hud"] .nav .globo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--rojo); animation: hud-pulso 1.6s ease-out infinite; }
@keyframes hud-pulso { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
[data-tema="hud"] .app4 .ico { background: linear-gradient(150deg, rgba(79,227,255,.14), rgba(255,255,255,.015)); border-color: var(--borde); box-shadow: 0 0 14px rgba(79,227,255,.12), inset 0 0 12px rgba(79,227,255,.08); }
[data-tema="hud"] .app4 .ico svg { filter: drop-shadow(0 0 4px currentColor); }

/* botones que se hunden al tocar */
[data-tema="hud"] .boton, [data-tema="hud"] .chip, [data-tema="hud"] .herr { transition: transform .1s; }
[data-tema="hud"] .boton:active, [data-tema="hud"] .chip:active, [data-tema="hud"] .herr:active { transform: scale(.95); }

/* resumen del panel: cifras grandes que brillan */
[data-tema="hud"] .resumen .dato { position: relative; border-radius: 14px; }
[data-tema="hud"] .resumen .dato b { font-family: var(--f-titulo); font-weight: 800; color: var(--cian); text-shadow: 0 0 12px rgba(79,227,255,.55); }
[data-tema="hud"] .resumen .dato.ok b { color: var(--verde); text-shadow: 0 0 12px rgba(77,255,176,.55); }
[data-tema="hud"] .resumen .dato.alerta b { color: var(--ambar); text-shadow: 0 0 12px rgba(255,200,92,.55); }
[data-tema="hud"] .resumen .dato span { font-family: var(--f-mono); letter-spacing: 1px; font-size: 10px; }

/* LED que parpadean y barras que se llenan con brillo */
@keyframes hud-parpadeo { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes hud-llena { from { width: 0; } }
@keyframes hud-sube { from { transform: scaleY(0); } }
[data-tema="hud"] .led { animation: hud-parpadeo 2s infinite; } [data-tema="hud"] .led.off { animation: none; }
[data-tema="hud"] .barra { background: rgba(79,227,255,.08); }
[data-tema="hud"] .barra i { animation: hud-llena 1s cubic-bezier(.2,.8,.2,1) both; box-shadow: 0 0 10px rgba(79,227,255,.6); }
[data-tema="hud"] .vend-barra div { animation: hud-llena 1s cubic-bezier(.2,.8,.2,1) both; box-shadow: 0 0 10px rgba(255,200,92,.55); }
[data-tema="hud"] .horas .b { transform-origin: bottom; animation: hud-sube .7s cubic-bezier(.2,.8,.2,1) both; background: rgba(255,200,92,.42); border-radius: 3px 3px 1px 1px; }
[data-tema="hud"] .horas .h:nth-child(2) .b { animation-delay: 50ms; } [data-tema="hud"] .horas .h:nth-child(3) .b { animation-delay: 100ms; } [data-tema="hud"] .horas .h:nth-child(4) .b { animation-delay: 150ms; }
[data-tema="hud"] .horas .h:nth-child(5) .b { animation-delay: 200ms; } [data-tema="hud"] .horas .h:nth-child(6) .b { animation-delay: 250ms; } [data-tema="hud"] .horas .h:nth-child(n+7) .b { animation-delay: 300ms; }
[data-tema="hud"] .horas .b[style*="ambar"], [data-tema="hud"] .horas .h:hover .b { background: var(--ambar); box-shadow: 0 0 12px rgba(255,200,92,.7); }
[data-tema="hud"] .horas span { font-family: var(--f-mono); font-size: 9px; }
[data-tema="hud"] .dias7 div { background: rgba(79,227,255,.05); border: 1px solid rgba(79,227,255,.12); font-family: var(--f-mono); }
[data-tema="hud"] .dias7 div.si { background: rgba(77,255,176,.12); border-color: rgba(77,255,176,.4); box-shadow: 0 0 10px rgba(77,255,176,.25); }

/* barra de abajo: el botón central es un reactor */
[data-tema="hud"] .nav { overflow: visible; }
[data-tema="hud"] .nav button svg { transition: filter .2s; }
[data-tema="hud"] .nav button.activo svg { filter: drop-shadow(0 0 5px var(--cian)); }
[data-tema="hud"] .nav button.centro::before { width: 44px; height: 44px; top: -2px; background: radial-gradient(circle at 40% 35%, #ffe7ad, var(--ambar) 55%, #c8861c); box-shadow: 0 0 22px rgba(255,200,92,.75); }
[data-tema="hud"] .nav .anillos { display: block; position: absolute; top: -12px; left: 50%; width: 64px; height: 64px; margin-left: -32px; pointer-events: none; z-index: -1; border-radius: 50%; background: var(--fondo); }
[data-tema="hud"] .nav .anillos i { position: absolute; border-radius: 50%; }
[data-tema="hud"] .nav .anillos i:nth-child(1) { inset: -4px; border: 1px solid rgba(255,200,92,.6); animation: hud-onda 2.4s ease-out infinite; }
[data-tema="hud"] .nav .anillos i:nth-child(2) { inset: 0; border: 1.5px dashed rgba(255,200,92,.8); animation: hud-giro 10s linear infinite; }
[data-tema="hud"] .nav .anillos i:nth-child(3) { inset: 5px; border: 2px solid transparent; border-left-color: var(--cian); border-right-color: var(--cian); animation: hud-giroR 3s linear infinite; }
@keyframes hud-onda { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
[data-tema="hud"] .nav button.centro { z-index: 1; }

/* chat */
[data-tema="hud"] .burbuja.yo { background: linear-gradient(135deg, #ffd27a, #ffc85c); border-radius: 16px 16px 4px 16px; font-weight: 500; }
[data-tema="hud"] .burbuja.jv { background: rgba(10,22,40,.92); border: 1px solid rgba(79,227,255,.22); border-radius: 16px 16px 16px 4px; }
[data-tema="hud"] .burbuja .fuente { background: rgba(79,227,255,.07); border: 1px solid rgba(79,227,255,.25); color: #bdeffc; border-radius: 8px; }
[data-tema="hud"] .tecleando { background: rgba(10,22,40,.92) !important; border: 1px solid rgba(79,227,255,.22); } [data-tema="hud"] .tecleando i { background: var(--cian); }
[data-tema="hud"] .entrada-chat { position: fixed; overflow: hidden; align-items: center; border-radius: 16px; border: 1px solid rgba(79,227,255,.4); box-shadow: 0 0 20px rgba(79,227,255,.12); background: rgba(8,16,30,.96); padding-left: 12px; }
[data-tema="hud"] .entrada-chat .luz { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--cian), transparent); animation: hud-linea 3s ease-in-out infinite; }
[data-tema="hud"] .entrada-chat .prompt { display: block; font-family: var(--f-mono); color: var(--cian); font-size: 18px; align-self: center; }
[data-tema="hud"] .entrada-chat .mic { border-radius: 12px; background: radial-gradient(circle at 40% 30%, #ffe7ad, var(--ambar) 60%, #c8861c); box-shadow: 0 0 16px rgba(255,200,92,.5); }
[data-tema="hud"] .entrada-chat .mic.escuchando { background: var(--rojo); box-shadow: 0 0 18px rgba(255,107,125,.7); }
[data-tema="hud"] .entrada-chat .mic.escuchando::before, [data-tema="hud"] .entrada-chat .mic.escuchando::after { border-radius: 14px; }
[data-tema="hud"] .entrada-chat .enviar { border-radius: 12px; }

/* avisos estilo tarjeta HUD */
[data-tema="hud"] .desliza-frente { background: rgba(8,16,30,.96); border-color: var(--borde); }
[data-tema="hud"] .desliza-frente::before, [data-tema="hud"] .desliza-frente::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--cian); border-style: solid; pointer-events: none; }
[data-tema="hud"] .desliza-frente::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
[data-tema="hud"] .desliza-frente::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
[data-tema="hud"] .desliza-fondo { font-family: var(--f-mono); background: linear-gradient(90deg, rgba(79,227,255,.25), rgba(77,255,176,.35)); }
[data-tema="hud"] .aviso-item .ic { border-radius: 10px; background: rgba(79,227,255,.1); border: 1px solid rgba(79,227,255,.35); }
[data-tema="hud"] .aviso-item.ok .ic { background: rgba(77,255,176,.12); border-color: rgba(77,255,176,.4); }
[data-tema="hud"] .aviso-item.mal .ic { background: rgba(255,107,125,.12); border-color: rgba(255,107,125,.45); }
[data-tema="hud"] .aviso-item.ambar .ic { background: rgba(255,200,92,.12); border-color: rgba(255,200,92,.45); }
[data-tema="hud"] .aviso-item .ic svg { filter: drop-shadow(0 0 3px currentColor); }
[data-tema="hud"] .aviso-item .h { font-family: var(--f-mono); font-size: 10px; }
[data-tema="hud"] .aviso-item.nuevo .t::before { box-shadow: 0 0 8px var(--ambar); animation: hud-parpadeo 1.6s infinite; }
[data-tema="hud"] .truco-frente { background: #0a1424; }
[data-tema="hud"] .truco-frente .mini { font-family: var(--f-mono); }
[data-tema="hud"] .boton.resueltos { background: rgba(77,255,176,.06); border-color: rgba(77,255,176,.3); font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px; }

/* servidores del panel */
[data-tema="hud"] .srv { border-bottom-color: rgba(79,227,255,.08); }
[data-tema="hud"] .srv .m, [data-tema="hud"] .srv .d { font-family: var(--f-mono); font-size: 11px; }
[data-tema="hud"] .kv { border-bottom-color: rgba(79,227,255,.08); }

@media (prefers-reduced-motion: reduce) { [data-tema="hud"] * { animation: none !important; } }
[data-tema="hud"] .nav button.centro::before { z-index: 0; border: 0; }
.md-tit { display: block; font-weight: 700; margin: 12px 0 2px; color: var(--texto); }
.md-tit:first-child { margin-top: 0; }
[data-tema="hud"] .md-tit { font-family: var(--f-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--cian); }
[data-tema="hud"] .md-tit::before { content: "// "; opacity: .7; }

/* =====================================================================
   04/11 — sin scroll horizontal, micrófono reactor, Apps en lista y barra lateral (Fold abierto)
   ===================================================================== */
html, body { overflow-x: clip; max-width: 100%; }
.aurora { overflow: hidden; }

/* micrófono del Diario: anillos que giran y una onda que late (los dos temas) */
.grabadora .aro i { position: absolute; border-radius: 50%; pointer-events: none; }
.grabadora .aro .r1 { inset: 2px; border: 1.5px solid rgba(255,200,92,.55); animation: mic-onda 2.4s ease-out infinite; }
.grabadora .aro .r2 { inset: 0; border: 1.5px dashed rgba(255,200,92,.8); animation: mic-giro 10s linear infinite; }
.grabadora .aro .r3 { inset: 9px; border: 2.5px solid transparent; border-left-color: var(--cian); border-right-color: var(--cian); animation: mic-giroR 3s linear infinite; }
.grabadora .aro::before { display: none; }
.grabadora .mic { background: radial-gradient(circle at 40% 35%, #ffe7ad, var(--ambar) 55%, #c8861c); box-shadow: 0 0 28px rgba(255,200,92,.6), 0 0 60px rgba(255,200,92,.18); width: 92px; height: 92px; }
.grabadora.grabando .r1 { border-color: rgba(255,107,125,.7); animation-duration: 1.1s; }
.grabadora.grabando .r2 { border-color: rgba(255,107,125,.85); animation-duration: 3s; }
.grabadora.grabando .r3 { border-left-color: #ffb3bd; border-right-color: #ffb3bd; animation-duration: 1s; }
.grabadora.grabando .mic { background: radial-gradient(circle at 40% 35%, #ffc2ca, var(--rojo) 55%, #b8323f); box-shadow: 0 0 30px rgba(255,107,125,.7); }
@keyframes mic-onda { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes mic-giro { to { transform: rotate(360deg); } }
@keyframes mic-giroR { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .grabadora .aro i { animation: none !important; } }

/* Apps: selector y vista de lista por categorías */
.vista-apps { display: flex; width: max-content; margin: 0 0 14px auto; }
.vista-apps button { padding: 7px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; }
.cats-apps { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 700px) { .cats-apps { grid-template-columns: 1fr 1fr; } }
.cat-app { margin-bottom: 0; }
.cat-app h2 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--texto); padding-bottom: 10px; border-bottom: 1px solid var(--borde); }
.cat-ico { width: 30px; height: 30px; border-radius: 9px; }
.cat-app h2 .der { font-family: var(--f-mono, ui-monospace); font-size: 12px; color: var(--ambar); }
.filas-app { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.fila-app { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; text-align: left; color: var(--texto); font-weight: 600; font-size: 14.5px; position: relative; min-width: 0; transition: background .15s, transform .1s; }
.fila-app:active { transform: scale(.97); } .fila-app:hover { background: var(--tarjeta2); }
.fila-app img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.fila-app span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-app .globo { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rojo); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 6px; }
[data-tema="hud"] .cat-app h2 { font-family: var(--f-texto, Inter); color: var(--texto); }
[data-tema="hud"] .cat-app h2::before, [data-tema="hud"] .cat-app h2::after { display: none; }
[data-tema="hud"] .cat-app h2 { border-bottom-color: rgba(79,227,255,.18); }
[data-tema="hud"] .vista-apps { font-family: var(--f-mono); }

/* barra lateral: solo en pantallas anchas */
.lateral { display: none; }
@media (min-width: 700px) {
  .lateral { display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; top: 0; bottom: 0; width: 236px; z-index: 25; padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px 16px;
    background: rgba(8,12,24,.86); border-right: 1px solid var(--borde); backdrop-filter: blur(14px); overflow-y: auto; }
  .app { padding-left: 236px; }
  .nav { display: none; }
  .contenido { padding-bottom: 32px; }
  .entrada-chat { left: 252px; bottom: calc(var(--seguro-abajo) + 14px); }
  .msgs { padding-bottom: 90px; }
  .aviso { left: 236px; }
  .velo { padding-left: 236px; } /* la hoja se centra en la zona libre, no debajo de la barra lateral */
  .cabecera > .orbe { display: none; }
}
.lat-marca { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; }
.lat-marca b { display: block; font-size: 17px; letter-spacing: 3px; }
.lat-marca span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--verde); letter-spacing: 1px; text-transform: uppercase; }
.lat-marca .led { width: 6px; height: 6px; }
.lat-buscar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: #1c1300; margin-bottom: 10px;
  background: linear-gradient(135deg, #ffd98a, var(--ambar) 60%, #e0a03a); box-shadow: 0 0 22px rgba(255,200,92,.35); transition: transform .1s; }
.lat-buscar:active { transform: scale(.97); } .lat-buscar svg { width: 19px; height: 19px; }
.lat-nav { display: flex; flex-direction: column; gap: 2px; }
.lat-item { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-radius: 12px; color: var(--texto2); font-weight: 600; font-size: 15px; position: relative; transition: background .15s, color .15s; }
.lat-item svg { width: 21px; height: 21px; } .lat-item:hover { background: var(--tarjeta2); color: var(--texto); }
.lat-item.activo { background: rgba(79,227,255,.08); color: var(--texto); }
.lat-item.activo::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--cian); box-shadow: 0 0 10px var(--cian); }
.lat-item.activo svg { color: var(--cian); filter: drop-shadow(0 0 5px rgba(79,227,255,.6)); }
.lat-item .globo { margin-left: auto; min-width: 30px; height: 20px; border-radius: 10px; background: var(--rojo); color: #1a0207; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 7px; }
.lat-sec { margin: 18px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--cian); text-transform: uppercase; }
.lat-sec::before { content: "// "; opacity: .7; }
.lat-fijadas { display: flex; flex-direction: column; gap: 1px; }
.lat-fijadas .fila-app { padding: 6px 8px; font-size: 14px; } .lat-fijadas .fila-app img { width: 28px; height: 28px; }
.lat-espacio { flex: 1; min-height: 12px; }
[data-tema="hud"] .lateral { background: rgba(5,8,16,.92); }
[data-tema="hud"] .lat-marca b { font-family: var(--f-titulo); text-shadow: 0 0 12px rgba(79,227,255,.5); }
[data-tema="hud"] .lat-marca span, [data-tema="hud"] .lat-sec, [data-tema="hud"] .lat-item .globo { font-family: var(--f-mono); }
[data-tema="hud"] .lat-marca .orbe { width: 44px; height: 44px; }
.cat-app h2 .der { margin-left: auto; }
[data-tema="hud"] .cat-app h2 { letter-spacing: 0; font-size: 16px; font-weight: 700; }
[data-tema="hud"] .cat-app h2 .der { margin-left: auto; font-family: var(--f-mono); color: var(--ambar); }
/* sin scroll horizontal también en navegadores viejos del teléfono */
html { overflow-x: hidden; }
.nav { overflow-x: clip; }
.aurora, [data-tema="hud"] body::before { max-width: 100vw; }
/* 04/11: el Fold abierto mostraba una barra de scroll horizontal (la barra lateral y las tiras desplazables) */
.lateral { overflow-x: hidden; }
.lateral > * { min-width: 0; max-width: 100%; }
.cats-apps, .filas-app { min-width: 0; } .cats-apps > *, .filas-app > * { min-width: 0; }
@media (min-width: 700px) { .cats-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.filas-app { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app { min-width: 0; max-width: 100vw; }
::-webkit-scrollbar:horizontal { height: 0; display: none; }
.chips.scroll, .tira-rachas, .hilos, .lateral { scrollbar-width: none; }
::-webkit-scrollbar { height: 0; }

/* =====================================================================
   04/11 — Favoritas, bandeja siempre a la mano y "Nuevo" hilo
   ===================================================================== */
.tarjeta.favoritas h2 { margin-bottom: 12px; }
.editar-favs { font-size: 12px; font-weight: 700; color: var(--ambar); padding: 4px 8px; border-radius: 8px; background: var(--tarjeta2); border: 1px solid var(--borde); text-transform: none; letter-spacing: 0; }
.tarjeta.favoritas .apps-rej { margin: 0; }
.fav-orden { display: flex; flex-direction: column; gap: 4px; }
.fav-fila { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--tarjeta2); border: 1px solid var(--borde); }
.fav-fila img { width: 30px; height: 30px; border-radius: 8px; } .fav-fila span { flex: 1; font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-fila .boton { padding: 4px 9px; min-height: 30px; }
.fav-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fav-op { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--borde); background: transparent; color: var(--texto); text-align: left; min-width: 0; }
.fav-op img { width: 26px; height: 26px; border-radius: 7px; flex: none; } .fav-op span { flex: 1; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-op b { color: var(--texto3); font-size: 16px; } .fav-op.on { border-color: rgba(255,200,92,.55); background: rgba(255,200,92,.08); } .fav-op.on b { color: var(--ambar); }

/* la bandeja en la esquina de arriba */
.btn-bandeja { position: relative; }
.btn-bandeja .globo { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.btn-bandeja.hay { color: var(--ambar); border-color: rgba(255,200,92,.5); }
[data-tema="hud"] .btn-bandeja .globo { color: #1a0207; font-family: var(--f-mono); box-shadow: 0 0 10px rgba(255,107,125,.8); }
[data-tema="hud"] .btn-bandeja.hay { color: var(--ambar); box-shadow: 0 0 12px rgba(255,200,92,.25); }

/* barra lateral: bandeja fija debajo de "Buscar y actuar" */
.lat-bandeja { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; margin: -4px 0 8px; border-radius: 12px; border: 1px solid var(--borde); background: var(--tarjeta2); color: var(--texto2); font-weight: 600; font-size: 14.5px; }
.lat-bandeja svg { width: 20px; height: 20px; } .lat-bandeja span { flex: 1; text-align: left; }
.lat-bandeja b { font-size: 12px; color: var(--verde); }
.lat-bandeja.hay { color: var(--texto); border-color: rgba(255,200,92,.5); } .lat-bandeja.hay svg { color: var(--ambar); }
.lat-bandeja.hay b { min-width: 24px; height: 20px; border-radius: 10px; background: var(--rojo); color: #fff; display: grid; place-items: center; padding: 0 6px; }
.lat-bandeja.activo { background: rgba(79,227,255,.08); }

/* Hoy: aviso de la bandeja */
.aviso-bandeja { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-color: rgba(255,200,92,.5) !important; background: linear-gradient(135deg, rgba(255,200,92,.12), rgba(255,200,92,.03)), var(--tarjeta) !important; color: var(--texto); }
.aviso-bandeja .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(255,200,92,.15); color: var(--ambar); }
.aviso-bandeja .ic svg { width: 20px; height: 20px; } .aviso-bandeja b { font-size: 15px; }
.aviso-bandeja .ir { color: var(--ambar); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
[data-tema="hud"] .aviso-bandeja .ic { border: 1px solid rgba(255,200,92,.45); box-shadow: 0 0 12px rgba(255,200,92,.25); }
[data-tema="hud"] .aviso-bandeja .ir { font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px; }

/* chat: nuevo hilo */
.hilo-actual { display: flex; align-items: center; gap: 8px; }
.nuevo-hilo { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ambar); background: rgba(255,200,92,.1); border: 1px solid rgba(255,200,92,.35); }

/* =====================================================================
   04/11 — Salud, Teléfono y Juegos
   ===================================================================== */
.horas .b.top { background: var(--ambar); box-shadow: 0 0 10px rgba(255,200,92,.6); }
.barras-cian .b { background: linear-gradient(180deg, #9ff1ff, var(--cian)) !important; } .barras-cian .b.top { box-shadow: 0 0 10px rgba(79,227,255,.6); }
.barras-lila .b { background: linear-gradient(180deg, #d6c8ff, var(--lila)) !important; }
.barras-rojo .b { background: linear-gradient(180deg, #ffb3bd, var(--rojo)) !important; }
[data-tema="hud"] .barras-cian .b, [data-tema="hud"] .barras-lila .b, [data-tema="hud"] .barras-rojo .b { opacity: .8; }
.cifra-grande { font-size: 32px; font-weight: 800; }
[data-tema="hud"] .cifra-grande { font-family: var(--f-titulo); color: var(--lila); text-shadow: 0 0 14px rgba(181,156,255,.5); }
.etapas { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 12px; gap: 2px; }
.etapas i { display: block; height: 100%; }
.fila-hist { display: grid; grid-template-columns: 74px 1fr 60px 52px 16px; gap: 8px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--borde); font-size: 13.5px; cursor: pointer; }
.fila-hist:last-child { border-bottom: 0; } .fila-hist b { text-transform: capitalize; } .fila-hist span { color: var(--texto2); } .fila-hist svg { color: var(--texto3); }
.fila-llamada { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.fila-llamada:last-of-type { border-bottom: 0; } .fila-llamada b { font-size: 14.5px; }
.fila-llamada .boton { padding: 6px 12px; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tl { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; background: var(--tarjeta2); }
.tl.verde { color: var(--verde); } .tl.cian { color: var(--cian); } .tl.rojo { color: var(--rojo); background: rgba(255,107,125,.12); } .tl.ambar { color: var(--ambar); } .tl.gris { color: var(--texto3); }
.fila-sms { padding: 10px 0; border-bottom: 1px solid var(--borde); } .fila-sms:last-child { border-bottom: 0; } .fila-sms .chico { margin-top: 3px; color: var(--texto2); word-break: break-word; }
.jugando { display: flex; align-items: center; gap: 12px; border-color: rgba(77,255,176,.5) !important; background: rgba(77,255,176,.07) !important; }
.partida { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--borde); cursor: pointer; }
.partida:last-child { border-bottom: 0; }
.p-img { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: var(--tarjeta2); border: 2px solid transparent; padding: 0; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.partida.gano .p-img { border-color: rgba(77,255,176,.6); } .partida.perdio .p-img { border-color: rgba(255,107,125,.55); }
.p-kda { text-align: right; flex: none; } .p-kda b { display: block; font-size: 14px; } .p-kda span { font-size: 11px; font-weight: 700; }
.partida.gano .p-kda span { color: var(--verde); } .partida.perdio .p-kda span { color: var(--rojo); }
.heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.heroe { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--texto); min-width: 0; }
.heroe img, .heroe .sin-img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; border: 1px solid var(--borde); background: var(--tarjeta2); display: grid; place-items: center; }
.heroe b { font-size: 11.5px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .heroe span { font-size: 10.5px; color: var(--texto2); }
[data-tema="hud"] .p-kda b, [data-tema="hud"] .heroe span, [data-tema="hud"] .fila-hist span { font-family: var(--f-mono); }
[data-tema="hud"] .heroe img { box-shadow: 0 0 12px rgba(79,227,255,.15); }
[data-tema="hud"] .partida.gano .p-img { box-shadow: 0 0 10px rgba(77,255,176,.35); } [data-tema="hud"] .partida.perdio .p-img { box-shadow: 0 0 10px rgba(255,107,125,.3); }
.horas { overflow: hidden; } .horas .h { min-width: 0; } .horas span { white-space: nowrap; }
.segmentos button { white-space: nowrap; }
.wa-general { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--texto); border-color: rgba(77,255,176,.4) !important; }
.wa-fila { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .wa-fila:last-of-type { border-bottom: 0; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; background: rgba(77,255,176,.12); color: var(--verde); }
.wa-quien { font-size: 12.5px; color: var(--texto2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.barras-verde .b { background: linear-gradient(180deg, #a6ffd6, var(--verde)) !important; }
[data-tema="hud"] .wa-av { border: 1px solid rgba(77,255,176,.4); box-shadow: 0 0 10px rgba(77,255,176,.2); }
.pieza.resuelta { opacity: .75; }
.chip.gris { color: var(--texto3); }
.persona-cab { display: flex; align-items: center; gap: 14px; }
.wa-av.grande { width: 58px; height: 58px; font-size: 24px; }
.mencion { padding: 9px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .mencion:last-child { border-bottom: 0; } .mencion .chico { margin-top: 3px; color: var(--texto2); }
.fila-botones a.boton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }

/* ---------- Gastos ---------- */
.acciones-gasto { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.acciones-gasto .boton { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; padding: 10px 6px; }
.mes-sel { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mes-sel b { font-size: 16px; }
.gasto-total { text-align: center; }
[data-tema="hud"] .gasto-total .cifra-grande { color: var(--ambar); text-shadow: 0 0 14px rgba(255,200,92,.5); }
.fila-gasto { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .fila-gasto:last-child { border-bottom: 0; }
.fila-gasto img, .fila-gasto .g-ico { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--tarjeta2); font-size: 20px; }
.g-monto { white-space: nowrap; font-size: 14.5px; }
[data-tema="hud"] .g-monto { font-family: var(--f-mono); color: var(--ambar); }
.gasto-foto { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #000; margin-bottom: 10px; cursor: zoom-in; }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item-gasto { display: grid; grid-template-columns: 1fr 52px 86px 36px; gap: 6px; margin-bottom: 6px; align-items: center; }
.item-gasto .campo { padding: 9px 10px; } .item-gasto .boton { padding: 6px; min-height: 36px; }
.cand-pl { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .cand-pl input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.mes-sel .atras { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--tarjeta2); border: 1px solid var(--borde); color: var(--texto); }
.mes-sel .atras:disabled { opacity: .3; } .mes-sel .atras svg { width: 20px; height: 20px; }
.grab { padding: 10px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .grab:last-child { border-bottom: 0; }
.aviso-bandeja.atascada { border-color: rgba(255,107,125,.55) !important; background: linear-gradient(135deg, rgba(255,107,125,.12), rgba(255,107,125,.03)), var(--tarjeta) !important; }
.aviso-bandeja.atascada .ic { background: rgba(255,107,125,.15); color: var(--rojo); }
.item-gasto { grid-template-columns: 40px 1fr 48px 80px 32px; }
.item-foto { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: var(--tarjeta2); border: 1px solid var(--borde); display: grid; place-items: center; padding: 0; font-size: 16px; }
.item-foto img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.fotos-prod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fotos-prod button { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--borde); padding: 0; background: #fff; }
.fotos-prod img { width: 100%; height: 100%; object-fit: contain; }
.lugar { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); } .lugar:last-of-type { border-bottom: 0; }
.lugar .boton { padding: 6px 12px; min-height: 34px; font-size: 13px; }
.factura { background: var(--tarjeta2); border: 1px solid var(--borde); border-radius: 14px; padding: 14px; }
.f-cab { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px dashed var(--borde); }
.f-com { font-size: 18px; display: block; margin: 2px 0; } .f-total { font-size: 22px; font-weight: 800; white-space: nowrap; }
[data-tema="hud"] .f-total { font-family: var(--f-titulo); color: var(--ambar); text-shadow: 0 0 12px rgba(255,200,92,.45); }
.f-items { margin-top: 6px; }
.f-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); font-size: 14px; } .f-item:last-child { border-bottom: 0; }
.f-item img, .f-sin { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; flex: none; display: grid; place-items: center; font-size: 18px; }
.f-sin { background: var(--tarjeta); } .f-item b { white-space: nowrap; }
.reproductor { width: 100%; height: 36px; margin-top: 6px; border-radius: 18px; }
[data-tema="hud"] .reproductor, .reproductor { color-scheme: dark; }
.voz { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--tarjeta2); border: 1px solid var(--borde); }
.ficha-texto { max-height: 160px; overflow: hidden; position: relative; } .ficha-texto.abierta { max-height: none; }
.ficha-texto:not(.abierta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, var(--tarjeta)); }
.pend { padding: 10px 0; border-bottom: 1px solid var(--borde); } .pend:last-of-type { border-bottom: 0; }
.pend .fila-botones .boton { padding: 7px 10px; min-height: 36px; }
.tarjeta.pendientes { border-color: rgba(255,200,92,.45); }
.pend .fila-botones { display: grid; grid-template-columns: 44px 1fr 44px 1.3fr; gap: 6px; } .pend .fila-botones .boton { white-space: nowrap; padding: 7px 6px; }
.acciones-gasto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acciones-gasto .boton { flex-direction: column; gap: 3px; font-size: 12px; padding: 9px 4px; }
.visor-foto { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.visor-foto img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; background: #fff; }
.visor-t { color: #fff; margin-top: 12px; font-size: 15px; text-align: center; max-width: 600px; }
.visor-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 18px; color: #fff; font-size: 22px; }
.cita { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--ambar); background: var(--tarjeta2); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--texto2); font-style: italic; }
.enlace-mini { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--cian); padding: 2px 0; }
.parece-hecha { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(77,255,176,.08); border: 1px solid rgba(77,255,176,.35); color: var(--verde); font-size: 13px; }
.pend .fila-botones.dos { grid-template-columns: 1fr 1fr; }
.dudas { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,200,92,.08); border: 1px solid rgba(255,200,92,.4); font-size: 13px; color: var(--texto2); }
.dudas b { color: var(--ambar); }

/* Bandeja: gastos, contactos, lugares, llamadas y problemas */
.bx-gasto { padding: 10px 0; border-top: 1px solid var(--borde); }
.bx-gasto:first-of-type { border-top: 0; }
.bx-gasto .fila-botones .boton { padding: 7px 11px; font-size: 13px; }
.bx-fila { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--borde); }
.bx-fila:first-of-type { border-top: 0; }
.bx-fila .boton { padding: 7px 11px; font-size: 13px; flex: none; }
.bx-problema { border-color: rgba(248,113,113,.45) !important; background: linear-gradient(135deg, rgba(248,113,113,.10), transparent), var(--tarjeta) !important; }
.bx-gasto .chip { white-space: normal; max-width: 100%; display: inline-block; line-height: 1.3; }
.bx-gasto .fila-botones { flex-wrap: nowrap; }
.bx-gasto .fila-botones .boton { white-space: nowrap; flex: 1 1 auto; justify-content: center; padding: 7px 8px; }

/* Visor de PDF y correo de origen del gasto */
.visor-pdf { position: fixed; inset: 0; z-index: 400; background: #070b16; display: flex; flex-direction: column; }
.visor-pdf-cab { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--borde); padding-top: max(10px, env(safe-area-inset-top)); }
.visor-pdf-cab b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.visor-pdf-cab .boton { padding: 7px 11px; font-size: 13px; }
.visor-pdf-hojas { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; max-width: 900px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.visor-pdf-hojas canvas { background: #fff; border-radius: 6px; }
.correo-origen { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 12px; background: var(--tarjeta2, rgba(255,255,255,.03)); }
.correo-origen .boton { padding: 7px 11px; font-size: 13px; }
.visor-zoom { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.visor-zoom > img { display: block; margin: 0 auto; }
.visor-zoom .visor-pdf-hojas { overflow: visible; }
.zoom { display: inline-flex; align-items: center; gap: 4px; }
.zoom .boton { padding: 6px 12px; font-size: 16px; min-width: 38px; justify-content: center; }
.zoom .mini { min-width: 38px; text-align: center; }
/* Visor con pellizco */
.zoomable { flex: 1; position: relative; overflow: hidden; touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
.zoomable-cont { position: absolute; top: 0; left: 0; width: 100%; transform-origin: 0 0; will-change: transform; }
.pagina-zoom { display: block; width: 100%; height: auto; background: #fff; margin: 0 0 8px; -webkit-user-drag: none; pointer-events: none; }
.visor-ayuda { text-align: center; font-size: 11.5px; color: var(--texto3, #6c7799); padding: 6px 0 max(8px, env(safe-area-inset-bottom)); }

/* Gastos v2: pestañas, movimientos, botón + */
.gastos-v2 { position: relative; }
.pest-gastos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding-bottom: 2px; }
.pest-gastos::-webkit-scrollbar { display: none; }
.pest-gastos button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--tarjeta2); border: 1px solid var(--borde); color: var(--texto2); font: inherit; font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer; }
.pest-gastos button svg { width: 15px; height: 15px; }
.pest-gastos button.on { background: var(--ambar); color: #1a1200; border-color: var(--ambar); }
@media (min-width: 900px) {
  .gastos-v2 { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; }
  .pest-gastos { flex-direction: column; position: sticky; top: 10px; overflow: visible; }
  .pest-gastos button { border-radius: 12px; justify-content: flex-start; padding: 10px 14px; font-size: 14px; }
  .gastos-v2 > input { display: none; }
}
.cuerpo-gastos { min-width: 0; }
.fila-gasto.mov { position: relative; }
.fila-gasto.mov.fuera { opacity: .5; }
.fila-gasto.mov.fuera .g-monto { text-decoration: line-through; }
.mas-mov { background: none; border: 0; color: var(--texto3); font-size: 18px; padding: 4px 2px 4px 8px; cursor: pointer; flex: none; }
.chip.c-ci { color: var(--cian); border-color: rgba(79,209,255,.4); } .chip.c-am { color: var(--ambar2); border-color: rgba(245,185,66,.4); } .chip.c-ve { color: var(--verde); border-color: rgba(74,222,128,.35); }
.menu-mov { display: flex; flex-direction: column; gap: 6px; }
.menu-mov > button { text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--tarjeta2); border: 1px solid var(--borde); color: var(--texto); font: inherit; font-size: 14.5px; cursor: pointer; }
.fab-gasto { position: fixed; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 18px; border: 0; background: linear-gradient(135deg, var(--ambar2), var(--ambar)); color: #1a1200; font-size: 32px; font-weight: 800; box-shadow: 0 10px 26px rgba(245,185,66,.35); z-index: 30; cursor: pointer; }
.barra-cat { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin-top: 12px; background: var(--tarjeta2); }
.barra-cat i { display: block; height: 100%; }
.leyenda-cat { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 11.5px; color: var(--texto2); }
.leyenda-cat i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.alertas-g { display: flex; gap: 8px; margin-bottom: 12px; }
.alertas-g button { flex: 1; text-align: left; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; color: var(--texto2); font: inherit; font-size: 12px; cursor: pointer; }
.alertas-g b { display: block; font-size: 20px; color: var(--texto); }
.cifra-media { font-size: 22px; font-weight: 800; }
.vista-gastos { display: flex; gap: 6px; margin-bottom: 10px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 4px; }
.vista-gastos button { flex: 1; padding: 8px; border-radius: 10px; border: 0; background: none; color: var(--texto2); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.vista-gastos button.on { background: var(--tarjeta2); color: var(--ambar2); box-shadow: inset 0 0 0 1px var(--borde); }
@media (min-width: 900px) { .vista-gastos { grid-column: 1 / -1; max-width: 360px; } }
/* Mis paquetes */
.grid-paq { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-bottom: 10px; }
.grid-paq .tarjeta { margin: 0; cursor: pointer; }
.paq.retirar { border-color: rgba(74,222,128,.5) !important; background: linear-gradient(135deg, rgba(74,222,128,.08), transparent), var(--tarjeta) !important; }
.linea-paq { margin-top: 12px; border-left: 2px solid var(--borde); padding-left: 14px; display: flex; flex-direction: column; gap: 10px; }
.linea-paq .ev { position: relative; } .linea-paq .ev i { position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--texto3); }
.linea-paq .ev i.ve { background: var(--verde); } .linea-paq .ev i.ok { background: var(--cian); }
.cosa { display: flex; align-items: center; gap: 10px; }
.cosa img, .cosa-ico { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; display: grid; place-items: center; font-size: 22px; }
.cosa-ico { background: var(--tarjeta2); }
.cosa.fuera { opacity: .5; }
.cosa b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-viajes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-bottom: 10px; }
.grid-viajes .tarjeta { margin: 0; }
.viaje-cab { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.viaje-cab .bandera { font-size: 30px; }
.estrella-btn { background: none; border: 0; color: var(--ambar); font-size: 20px; cursor: pointer; padding: 0 0 2px; line-height: 1; }
.paradas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--texto2); }
.cuenta-nueva { border-color: rgba(255,200,92,.55) !important; }
.menu-mov > button.on { border-color: var(--ambar); color: var(--ambar2); background: rgba(245,185,66,.08); }

/* ===== Pulido 08/11: cabecera opaca, modales que no mueven el fondo, menú de apps en el Fold ===== */
.cabecera, [data-tema="hud"] .cabecera { background: var(--fondo); backdrop-filter: none; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.velo { overscroll-behavior: contain; touch-action: none; }
.hoja { overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; max-height: 88dvh; }
.hoja input, .hoja textarea, .hoja select { touch-action: manipulation; }
/* categorías de apps como columnas de revista: sin huecos entre tarjetas de distinto alto */
.cats-apps, .cats-apps { display: block; columns: 1; column-gap: 14px; }
@media (min-width: 1250px) { .cats-apps { columns: 2; } }
@media (min-width: 1700px) { .cats-apps { columns: 3; } }
/* dentro de cada categoría: tantas columnas como quepan (Fold abierto = 3, teléfono = 2) */
.cats-apps .filas-app { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 420px) { .cats-apps .filas-app { grid-template-columns: 1fr 1fr; } }
.cats-apps > .cat-app { break-inside: avoid; display: block; width: 100%; margin: 0 0 14px; }
.fila-app span { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; overflow-wrap: normal; word-break: normal; hyphens: auto; }

.nav, [data-tema="hud"] .nav { background: var(--fondo2); backdrop-filter: none; }
/* renglón de gasto: el nombre ocupa como mucho 2 líneas; el texto completo se ve al tocarlo */
.fila-gasto > div[style*="flex:1"] > b:first-child, .fila-gasto .g-nombre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ===== Configurar widget del teléfono ===== */
.conf-widget { padding-bottom: 110px; max-width: 760px; margin: 0 auto; }
.cw-cab { padding: calc(env(safe-area-inset-top, 0px) + 18px) 2px 14px; }
.cw-kicker { font-family: var(--f-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 2px; color: var(--cian, #4fe3ff); }
.cw-cab h2 { margin: 6px 0 4px; font-size: 22px; }
.cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px 6px; }
.cw-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 14px; color: var(--texto); font-size: 12px; border: 1px solid transparent; transition: transform .1s, background .15s; }
.cw-app:active { transform: scale(.95); }
.cw-app img { width: 52px; height: 52px; border-radius: 14px; }
.cw-app span { text-align: center; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cw-app.sel { background: rgba(79,227,255,.08); border-color: rgba(79,227,255,.45); }
.cw-app b { position: absolute; top: 2px; right: 8px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ambar, #f5b942); color: #0b1020; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.cw-fila { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.cw-el { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; }
.cw-el img { width: 48px; height: 48px; border-radius: 13px; }
.cw-el span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-mov { display: flex; gap: 2px; } .cw-mov button { width: 22px; height: 22px; border-radius: 7px; background: var(--tarjeta2); color: var(--texto); font-size: 12px; } .cw-mov button:disabled { opacity: .3; }
.cw-opc { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; } .cw-opc input { flex: 1; min-width: 150px; }
.cw-tarjetas { display: grid; gap: 10px; }
.cw-tarjeta { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--tarjeta); border: 1px solid var(--borde); text-align: left; color: var(--texto); }
.cw-tarjeta img { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.cw-tarjeta div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .cw-tarjeta span { font-size: 13px; color: var(--texto2, #9aa6c4); }
.cw-tarjeta i { font-style: normal; color: var(--cian, #4fe3ff); font-size: 18px; width: 20px; }
.cw-tarjeta.sel { border-color: rgba(79,227,255,.6); background: rgba(79,227,255,.07); }
.cw-pie { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); background: linear-gradient(transparent, var(--fondo) 35%); z-index: 30; }
.cw-pie .boton { max-width: 520px; margin: 0 auto; display: flex; justify-content: center; }

/* ===== Notas estilo Obsidian (base); tus snippets se cargan encima desde /api/obsidian/estilos.css ===== */
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; } .chips-scroll .chip { flex: none; }
.nota-obs {
  --background-primary: #0a1222; --background-primary-alt: #0d1830; --background-secondary: #101d36; --background-secondary-alt: #13223e;
  --background-modifier-border: rgba(79,227,255,.16); --background-modifier-hover: rgba(79,227,255,.08); --background-modifier-form-field: #0d1830;
  --text-normal: #e6eefb; --text-muted: #9fb2cc; --text-faint: #6c7f9b; --text-accent: #4fe3ff; --text-accent-hover: #8beeff; --text-on-accent: #04101c;
  --interactive-accent: #4fe3ff; --interactive-accent-hover: #8beeff; --text-highlight-bg: rgba(255,208,0,.28); --link-color: #4fe3ff;
  --h1-color: #ffffff; --h2-color: #ffdb8a; --h3-color: #8beeff; --h4-color: #e6eefb; --bold-color: #ffffff; --italic-color: #e6eefb;
  --font-text: Inter, system-ui, sans-serif; --font-monospace: "JetBrains Mono", "Source Code Pro", monospace; --radius-s: 6px; --radius-m: 10px; --radius-l: 14px;
  --callout-radius: 12px; --table-border-color: rgba(79,227,255,.18);
  color: var(--text-normal); font-size: 15.5px; line-height: 1.6;
}
.nota-obs .markdown-rendered { background: linear-gradient(180deg, rgba(16,29,54,.78), rgba(10,18,34,.86)); border: 1px solid var(--background-modifier-border); border-radius: 18px; padding: 18px 18px 22px; position: relative; }
@media (min-width: 700px) { .nota-obs .markdown-rendered { padding: 26px 34px 32px; } }
.nota-obs .obs-cuerpo > :first-child { margin-top: 4px; }
.nota-obs h1, .nota-obs h2, .nota-obs h3, .nota-obs h4 { line-height: 1.25; margin: 1.3em 0 .5em; font-weight: 700; }
.nota-obs h1 { font-size: 1.65em; color: var(--h1-color); } .nota-obs h2 { font-size: 1.3em; color: var(--h2-color); } .nota-obs h3 { font-size: 1.12em; color: var(--h3-color); } .nota-obs h4 { font-size: 1em; color: var(--h4-color); }
.nota-obs p { margin: .55em 0; } .nota-obs strong, .nota-obs b { color: var(--bold-color); font-weight: 700; }
.nota-obs ul, .nota-obs ol { margin: .4em 0; padding-left: 1.4em; } .nota-obs li { margin: .18em 0; } .nota-obs li::marker { color: var(--text-accent); }
.nota-obs hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--background-modifier-border), transparent); margin: 1.4em 0; }
.nota-obs mark { background: var(--text-highlight-bg); color: inherit; padding: 0 3px; border-radius: 3px; }
.nota-obs code { font-family: var(--font-monospace); font-size: .86em; background: var(--background-secondary); border: 1px solid var(--background-modifier-border); padding: 1px 5px; border-radius: 5px; }
.nota-obs pre { background: #070d19; border: 1px solid var(--background-modifier-border); border-radius: 10px; padding: 12px; overflow-x: auto; } .nota-obs pre code { background: none; border: 0; padding: 0; }
.nota-obs blockquote { margin: .8em 0; padding: 4px 14px; border-left: 3px solid var(--text-accent); color: var(--text-muted); background: rgba(79,227,255,.04); border-radius: 0 10px 10px 0; }
.nota-obs a.internal-link { color: var(--link-color); text-decoration: none; border-bottom: 1px dashed rgba(79,227,255,.45); cursor: pointer; }
.nota-obs a.external-link { color: var(--link-color); }
.nota-obs a.tag { display: inline-block; font-size: .82em; padding: 1px 9px; border-radius: 999px; background: rgba(79,227,255,.1); border: 1px solid rgba(79,227,255,.25); color: var(--text-accent); text-decoration: none; }
.nota-obs table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1em 0; font-size: .92em; border: 1px solid var(--table-border-color); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.nota-obs th, .nota-obs td { padding: 8px 12px; border-bottom: 1px solid var(--table-border-color); text-align: left; white-space: nowrap; }
.nota-obs th { background: rgba(79,227,255,.08); color: var(--text-accent); font-weight: 700; font-size: .9em; } .nota-obs tr:last-child td { border-bottom: 0; }
.nota-obs .obs-img { max-width: 100%; border-radius: 12px; display: block; margin: 10px 0; }
/* callouts con los colores de Obsidian */
.nota-obs .callout { --callout-color: 8, 109, 221; margin: 1em 0; border-radius: var(--callout-radius); background: rgba(var(--callout-color), .09); border: 1px solid rgba(var(--callout-color), .28); overflow: hidden; }
.nota-obs .callout-title { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: rgb(var(--callout-color)); font-weight: 700; }
.nota-obs .callout.is-collapsible > .callout-title { cursor: pointer; user-select: none; }
.nota-obs .callout-title-inner { flex: 1; } .nota-obs .callout-icon { display: flex; }
.nota-obs .callout-fold { display: flex; transition: transform .2s; opacity: .8; } .nota-obs .callout.is-collapsed .callout-fold { transform: rotate(-90deg); }
.nota-obs .callout.is-collapsed > .callout-content { display: none; }
.nota-obs .callout-content { padding: 0 14px 10px; } .nota-obs .callout-content > :first-child { margin-top: 0; }
.nota-obs .callout:is([data-callout="abstract"], [data-callout="summary"], [data-callout="tldr"], [data-callout="tip"], [data-callout="hint"], [data-callout="important"]) { --callout-color: 0, 191, 188; }
.nota-obs .callout:is([data-callout="success"], [data-callout="check"], [data-callout="done"], [data-callout="checks"]) { --callout-color: 8, 185, 78; }
.nota-obs .callout:is([data-callout="question"], [data-callout="help"], [data-callout="faq"], [data-callout="warning"], [data-callout="caution"], [data-callout="attention"]) { --callout-color: 236, 117, 0; }
.nota-obs .callout:is([data-callout="failure"], [data-callout="fail"], [data-callout="missing"], [data-callout="danger"], [data-callout="error"], [data-callout="bug"]) { --callout-color: 233, 49, 71; }
.nota-obs .callout:is([data-callout="example"]) { --callout-color: 120, 82, 238; } .nota-obs .callout:is([data-callout="quote"], [data-callout="cite"]) { --callout-color: 158, 158, 158; }
.nota-obs .callout[data-callout="contacto"] { --callout-color: 245, 185, 66; }
/* tareas */
.nota-obs ul.contains-task-list { list-style: none; padding-left: 4px; }
.nota-obs li.task-list-item { display: flex; align-items: flex-start; gap: 9px; } .nota-obs li.task-list-item::marker { content: ''; }
.nota-obs .task-list-item-checkbox { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 3px 0 0; border-radius: 5px; border: 1.5px solid rgba(79,227,255,.55); background: transparent; display: grid; place-items: center; }
.nota-obs .task-list-item-checkbox:checked { background: var(--interactive-accent); border-color: var(--interactive-accent); }
.nota-obs .task-list-item-checkbox:checked::after { content: '✓'; color: #04101c; font-size: 12px; font-weight: 900; }
.nota-obs li.task-list-item.is-checked { color: var(--text-faint); text-decoration: line-through; }
/* propiedades */
.obs-props { margin: 0 0 14px; border: 1px solid var(--background-modifier-border); border-radius: 12px; background: rgba(5,10,20,.35); overflow: hidden; }
.obs-props-cab { width: 100%; display: flex; justify-content: space-between; padding: 8px 12px; color: var(--text-muted); font-family: var(--font-monospace); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.obs-props-lista { padding: 2px 12px 10px; display: grid; gap: 6px; }
.obs-prop { display: grid; grid-template-columns: minmax(80px, 30%) 1fr; gap: 10px; align-items: baseline; font-size: 13.5px; }
.obs-prop .k { color: var(--text-faint); font-family: var(--font-monospace); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.obs-prop .v { display: flex; flex-wrap: wrap; gap: 5px; color: var(--text-normal); min-width: 0; overflow-wrap: anywhere; }
.obs-prop .pill { padding: 1px 9px; border-radius: 999px; background: rgba(79,227,255,.1); border: 1px solid rgba(79,227,255,.22); color: var(--text-accent); font-size: 12.5px; border-bottom-style: solid; }
/* Dataview y adjuntos */
.nota-obs .obs-dv { margin: .5em 0; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--background-modifier-border); color: var(--text-faint); font-size: 13px; }
.nota-obs .obs-dv-lista { border-style: solid; color: var(--text-normal); } .nota-obs .obs-dv-lista ul { margin: 0; }
.nota-obs .obs-audio { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: var(--background-secondary); border: 1px solid var(--background-modifier-border); }
.nota-obs .obs-audio-nom { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; } .nota-obs .obs-audio audio { width: 100%; height: 38px; }
.nota-obs .obs-cuerpo { overflow-wrap: anywhere; } .nota-obs .obs-cuerpo :is(td, th) { overflow-wrap: normal; }
.nota-obs .obs-foto { display: block; width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin: 4px auto 8px; border: 1px solid var(--background-modifier-border); }
.nota-obs .task-list-item-checkbox:not(:disabled) { cursor: pointer; }
.nota-obs li.task-list-item.guardando .task-list-item-checkbox { animation: casilla-guardando 1s ease-in-out infinite; }
@keyframes casilla-guardando { 50% { box-shadow: 0 0 0 4px rgba(79,227,255,.25); } }
.nota-obs li.task-list-item.guardada .task-list-item-checkbox { box-shadow: 0 0 0 4px rgba(91,224,154,.35); transition: box-shadow .3s; }
/* Fold abierto: las dos columnas no se salen de la pantalla aunque adentro haya texto largo */
@media (min-width: 700px) { .dos-columnas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dos-columnas > * { min-width: 0; } }
/* dentro de una tarjeta, la nota no lleva segundo marco */
.tarjeta .nota-obs .markdown-rendered { background: none; border: 0; padding: 4px 0 0; }
.diario-ancho { margin-top: 0; } @media (min-width: 700px) { .diario-ancho .nota-obs .markdown-rendered { max-width: 900px; } }
.pm-opc { display: grid; gap: 8px; } .pm-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--tarjeta); border: 1px solid var(--borde); color: var(--texto); text-align: left; }
.pm-btn span { font-size: 12.5px; color: var(--texto2, #9aa6c4); } .pm-btn.sel { border-color: rgba(79,227,255,.6); background: rgba(79,227,255,.08); }

/* ===== Entretenimiento ===== */
.entret .buscador { width: 100%; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 12px; }
.poster { position: relative; display: flex; flex-direction: column; gap: 5px; text-align: left; color: var(--texto); }
.poster img, .poster .poster-vacio { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--borde); background: var(--tarjeta2); display: grid; place-items: center; font-size: 34px; }
.poster b { font-size: 13.5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.poster-estado { position: absolute; top: 6px; right: 6px; min-width: 26px; height: 26px; border-radius: 13px; background: rgba(5,8,16,.85); border: 1px solid rgba(79,227,255,.5); display: grid; place-items: center; font-size: 13px; padding: 0 6px; }
.poster-gp { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 13px; background: rgba(5,8,16,.85); border: 1px solid rgba(74,222,128,.55); color: var(--verde); display: grid; place-items: center; font-size: 11px; padding-left: 2px; }
.gp-ico { color: var(--verde); font-size: 11px; }
.chips-sep { flex: none; width: 1px; align-self: stretch; margin: 4px 2px; background: var(--borde); }
.peli-gp { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.28); }
.peli-gp .gp-ico { font-size: 15px; }
.artistas { display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.artista { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--texto); font-size: 12.5px; text-align: center; }
.artista img, .artista .poster-vacio { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(79,227,255,.35); background: var(--tarjeta2); display: grid; place-items: center; font-size: 26px; }
.frases { columns: 1; column-gap: 12px; } @media (min-width: 700px) { .frases { columns: 2; } } @media (min-width: 1250px) { .frases { columns: 3; } }
.frase { break-inside: avoid; cursor: pointer; } .frase-texto { font-size: 15.5px; line-height: 1.5; }
.letra { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.6; color: var(--texto); background: none; border: 0; padding: 0; margin: 0; }
.peli-cab { display: flex; gap: 14px; align-items: flex-start; } .peli-cab img { width: 110px; border-radius: 12px; flex: none; } .peli-cab > div { flex: 1; min-width: 0; }
.dicho-dia { border-color: rgba(255,219,138,.4); } .dicho-dia .frase-texto { font-size: 16.5px; font-style: italic; }
.comp-vista { display: flex; gap: 12px; align-items: flex-start; } .comp-vista img { width: 96px; max-height: 140px; object-fit: cover; border-radius: 10px; flex: none; }
.comp textarea, .comp input { width: 100%; }
.comp-previo { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 45vh; overflow: auto; background: var(--tarjeta2); border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: 15px; line-height: 1.45; }
.fila-gasto.guardado img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.comp input, .comp textarea, .entret .buscador { background: var(--tarjeta); color: var(--texto); border: 1px solid var(--borde); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 15px; box-sizing: border-box; }
.comp input::placeholder, .comp textarea::placeholder, .entret .buscador::placeholder { color: var(--texto2, #8a96b4); }
.comp input:focus, .comp textarea:focus, .entret .buscador:focus { outline: none; border-color: rgba(79,227,255,.6); }

/* ===== Mapa ===== */
.mapa-dia { display: flex; align-items: center; gap: 10px; } .mapa-dia .boton { min-width: 44px; justify-content: center; }
.mapa-caja { height: 56vh; min-height: 300px; border-radius: 18px; overflow: hidden; border: 1px solid var(--borde); margin-top: 8px; background: #0b1020; }
@media (min-width: 700px) { .mapa-caja { height: 62vh; } }
.mapa-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.mapa-cifras > div { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.mapa-cifras b { font-size: 20px; color: var(--cian, #4fe3ff); } .mapa-cifras span { font-size: 12px; color: var(--texto2, #9aa6c4); }
.leaflet-container { background: #0b1020; font: inherit; } .leaflet-control-attribution { background: rgba(5,8,16,.7) !important; color: #7f9bb5 !important; font-size: 10px; } .leaflet-control-attribution a { color: #9fb2cc !important; }
.tip-lugar { background: rgba(5,8,16,.9); color: #ffdb8a; border: 1px solid rgba(255,219,138,.45); border-radius: 8px; font-weight: 600; box-shadow: none; } .tip-lugar::before { display: none; }
.campo-oscuro { width: 100%; box-sizing: border-box; background: var(--tarjeta); color: var(--texto); border: 1px solid var(--borde); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 15px; }
.leaflet-tile.mapa-oscuro, .mapa-oscuro { filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.92) saturate(.6); }
.leaflet-tooltip.tip-lugar { background: rgba(5,8,16,.92); color: #ffdb8a; border: 1px solid rgba(255,219,138,.5); border-radius: 8px; font-weight: 600; box-shadow: none; padding: 4px 8px; }
.leaflet-tooltip.tip-lugar::before { display: none; }
.leaflet-bar a { background: #101a30 !important; color: #e8f4ff !important; border-color: #26304f !important; }

/* Bandeja: correos de remitentes nuevos · hoja de remitentes de confianza */
.bx-correo.ocupado { opacity: .55; pointer-events: none; }
.bx-correo .bx-asunto { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem-titulo { margin: 16px 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texto3); }
.bx-fila.rem { padding: 8px 0; } .bx-fila.rem b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rem-punto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 8px rgba(74,222,128,.5); } .rem-punto.rojo { background: var(--rojo); box-shadow: 0 0 8px rgba(248,113,113,.5); }
/* Juegos del teléfono */
.jt-ico { border-radius: 11px; object-fit: cover; flex: none; background: var(--tarjeta2); }
.jt-ico.letra { display: grid; place-items: center; font-weight: 800; color: #10141f; background: linear-gradient(135deg, var(--c, var(--ambar)), color-mix(in srgb, var(--c, var(--ambar)) 55%, #000)); }
.jt-der { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; } .jt-der b { font-size: 14.5px; font-weight: 700; white-space: nowrap; } .jt-der span { font-size: 12px; color: var(--texto3); white-space: nowrap; }
.jt-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.jt-total b { font-size: 34px; font-weight: 800; letter-spacing: -.5px; background: linear-gradient(135deg, #a6ffd6, var(--verde)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jt-total span { color: var(--texto2); font-size: 13px; }
.jt-hora { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(79,227,255,.10), rgba(181,156,255,.08)); border: 1px solid var(--borde); font-size: 13.5px; line-height: 1.55; color: var(--texto2); } .jt-hora b { color: var(--texto); }
.jt-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; } .jt-cab b { display: block; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.jt-compra { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--borde); } .jt-compra:last-of-type { border-bottom: 0; }
.jt-compra b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .jt-compra > span { flex: none; font-weight: 700; font-size: 14px; }
.jt-marca { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borde); cursor: pointer; } .jt-marca:last-child { border-bottom: 0; }
.jt-marca b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-es { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--verde); }
.jt-sw { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: var(--tarjeta2); border: 1px solid var(--borde); position: relative; cursor: pointer; transition: background .15s, border-color .15s; }
.jt-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--texto3); transition: transform .15s, background .15s; }
.jt-sw:checked { background: rgba(74,222,128,.22); border-color: var(--verde); } .jt-sw:checked::after { transform: translateX(18px); background: var(--verde); }
.resumen.jt-res { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Gastos → Tienda → Día a día (lo que el personal registra en Avanza) */
.lineas-tg > .mini:first-child { letter-spacing: .4px; margin-bottom: 6px; }
.linea-tg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--borde); background: none; color: inherit; font: inherit; text-align: left; }
button.linea-tg { cursor: pointer; border-bottom: 0; }
.linea-tg > div { flex: 1; min-width: 0; } .linea-tg > div > b { display: block; font-size: 15px; }
.linea-tg .g-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tarjeta2); font-size: 20px; flex: none; }
.linea-tg .g-monto { font-size: 17px; font-weight: 800; }
.flecha-tg { color: var(--texto3); font-size: 22px; line-height: 1; margin-left: -4px; }
.suma-tg { border-top: 1px dashed var(--borde); padding-top: 9px; margin-top: 2px; text-align: right; } .suma-tg b { color: var(--texto); font-size: 14px; }
.nota-tg { font-style: italic; color: var(--texto2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tg { color: var(--texto3); max-width: 130px; margin-left: auto; }
.fila-gasto .chip + .chip { margin-left: 6px; }
.aparte-tg > .mini { letter-spacing: .4px; margin-bottom: 4px; }
.aparte-tg button { display: flex; align-items: baseline; gap: 6px; width: 100%; padding: 9px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 10px; background: none; color: var(--texto2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.aparte-tg button b { color: var(--texto); font-size: 16px; min-width: 22px; } .aparte-tg button span { margin-left: auto; color: var(--texto3); text-decoration: line-through; white-space: nowrap; }
.aparte-tg button.on, .kv.toca.on { background: var(--tarjeta2); box-shadow: inset 0 0 0 1px var(--borde); }
.kv.toca { cursor: pointer; margin: 0 -8px; padding-left: 8px; padding-right: 8px; } .kv.toca.on { border-radius: 10px; border-bottom-color: transparent; } .kv.toca span { word-break: normal; white-space: nowrap; }
.mes-tg { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; cursor: pointer; }
.mes-tg span { width: 104px; flex: none; color: var(--texto2); } .mes-tg b { width: 84px; flex: none; text-align: right; white-space: nowrap; }
.mes-tg div { flex: 1; height: 8px; border-radius: 5px; background: var(--tarjeta2); overflow: hidden; } .mes-tg i { display: block; height: 100%; border-radius: 5px; background: var(--ambar); }
.foto-tg { display: block; width: 100%; max-height: 340px; object-fit: contain; background: #0b0d12; border-radius: 12px; margin-top: 12px; cursor: zoom-in; }
.nota-grande-tg { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--ambar); background: var(--tarjeta); border-radius: 0 10px 10px 0; font-size: 14.5px; font-style: italic; overflow-wrap: anywhere; }
.aviso-tg { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(245,185,66,.1); border: 1px solid rgba(245,185,66,.3); color: var(--ambar2); font-size: 12.5px; }
.pie-tg { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 90px; font-size: 12px; color: var(--texto3); text-align: center; } .pie-tg .enlace-mini { margin: 0; }

/* El mapa (Leaflet usa capas con z-index 400-1000) queda encerrado en su caja: así las hojas y avisos se ven por encima */
.mapa-caja { position: relative; z-index: 0; isolation: isolate; }

/* ===== ENOTS · kit visual (cristal, cian y ámbar) ===== */
.portada-kit { position: relative; display: flex; align-items: center; gap: 10px; min-height: 132px; margin: 2px 0 14px; padding: 18px 18px 18px 20px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(79,227,255,.16), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid rgba(160,220,235,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.28); }
.portada-kit .txt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.portada-kit .t { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-size: 30px; line-height: 1.08; color: #eef4fb; letter-spacing: .2px; }
.portada-kit .t b { color: #f4c77a; font-weight: 600; background: linear-gradient(180deg, #ffe3a8, #e9a94b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portada-kit .s { margin-top: 8px; color: #9fb3c8; font-size: 14px; text-transform: none; }
.portada-kit .s::first-letter { text-transform: uppercase; }
.portada-kit img { width: 118px; height: 118px; object-fit: contain; flex: none; filter: drop-shadow(0 10px 22px rgba(79,227,255,.25)); animation: kit-flota 6s ease-in-out infinite; }
@keyframes kit-flota { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (min-width: 700px) { .portada-kit { min-height: 160px; padding: 22px 28px; } .portada-kit .t { font-size: 38px; } .portada-kit img { width: 150px; height: 150px; } }
@media (prefers-reduced-motion: reduce) { .portada-kit img, .orbe { animation: none !important; } }

/* barra de abajo: íconos de cristal del kit */
.nav button img.kit-nav { width: 28px; height: 28px; display: block; margin: 0 auto 3px; opacity: .55; filter: saturate(.7); transition: opacity .2s, transform .2s, filter .2s; }
.nav button.activo img.kit-nav { opacity: 1; filter: saturate(1.1) drop-shadow(0 0 8px rgba(255,200,92,.55)); transform: translateY(-1px) scale(1.06); }
.nav button.centro img.kit-nav { width: 30px; height: 30px; opacity: .95; margin-bottom: 2px; }

/* el orbe de Jarvis pasa a ser el núcleo de cristal */
.orbe { background: url(/kit/arte/nucleo-jarvis.webp?v=1) center/128% no-repeat, radial-gradient(circle, rgba(79,227,255,.18), transparent 70%) !important; box-shadow: 0 0 18px rgba(79,227,255,.28) !important; animation: kit-gira 18s linear infinite; }
.orbe::after { border-color: rgba(255,200,92,.35) !important; }
.orbe i { display: none !important; }
@keyframes kit-gira { to { background-position: center, center; filter: hue-rotate(0deg); } }

/* íconos de apps del kit: sin marco extra, con un brillo suave */
.mosaico img[src^="/kit/"], .fila-app img[src^="/kit/"] { background: none !important; border-radius: 22% !important; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.cat-ico[src^="/kit/"] { border-radius: 8px; }

/* =====================================================================
   ENOTS · ESTILO DE LA PROPUESTA (cristal oscuro, cian y ámbar, letra serif en títulos)
   Teléfono < 700 px · Fold abierto 700–1099 px (barra lateral) · PC ≥ 1100 px
   ===================================================================== */
:root { --fondo: #070d17; --fondo2: #0c1522; --tarjeta: rgba(20,32,48,.62); --tarjeta2: rgba(28,44,64,.7); --borde: rgba(150,205,225,.14);
  --ambar-k: #f2c37a; --cian-k: #5fd9ef; --serif-k: 'Playfair Display', Georgia, serif; }
html, body { background: radial-gradient(120% 60% at 80% -10%, rgba(40,110,140,.28), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(242,195,122,.07), transparent 60%), #070d17 fixed; }
.tarjeta { background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015)) , rgba(14,24,38,.72); border: 1px solid rgba(150,205,225,.14);
  border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 32px rgba(0,0,0,.32); backdrop-filter: blur(10px); }
.tarjeta h2 { letter-spacing: .6px; }

/* encabezado: núcleo + ENOTS espaciado + sección; buscar, bandeja y ajustes */
.cabecera { background: rgba(7,13,23,.72) !important; border-bottom: 1px solid rgba(150,205,225,.08) !important; gap: 8px; }
.cabecera h1.marca-k { display: flex; flex-direction: column; gap: 1px; font-weight: 600; }
.cabecera h1.marca-k b { font-family: var(--serif-k); font-weight: 500; letter-spacing: 6px; font-size: 16px; color: #e9f1f8; }
.cabecera h1.marca-k .sub { letter-spacing: 3px; text-transform: uppercase; font-size: 10.5px; color: #8fa4b9; margin: 0; }
.cabecera .btn-k { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(150,205,225,.16); color: #cfe3ee; display: grid; place-items: center; position: relative; }
@media (min-width: 700px) { .cabecera .solo-ancho-no { display: none; } }

/* barra de abajo: cápsula de cristal */
.nav { background: transparent !important; border-top: 0 !important; backdrop-filter: none !important; padding-left: 12px; padding-right: 12px; }
.nav .fila { background: rgba(10,18,30,.82); border: 1px solid rgba(150,205,225,.14); border-radius: 22px; margin: 0 auto 8px; backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.nav button.activo { color: var(--ambar-k) !important; }

/* portadas: título serif grande como en la propuesta */
.portada-kit { background: radial-gradient(120% 140% at 100% 0%, rgba(95,217,239,.16), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.portada-kit .t { font-family: var(--serif-k); font-weight: 500; }

/* ---------- Jarvis: bienvenida ---------- */
.bienvenida-k { display: flex; flex-direction: column; gap: 14px; padding-bottom: 150px; }
.hero-k { position: relative; display: flex; align-items: center; min-height: 230px; padding: 10px 4px 0; }
.hero-k .txt { position: relative; z-index: 1; flex: 1; }
.hero-k .t { font-family: var(--serif-k); font-size: 44px; line-height: 1.04; color: #eef4fb; font-weight: 500; }
.hero-k .t b { font-weight: 500; background: linear-gradient(180deg, #ffe3a8, #e3a347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-k .s { margin-top: 12px; color: #a9bccd; font-size: 17px; }
.hero-k .raya { display: block; width: 44px; height: 2px; background: var(--ambar-k); margin-top: 16px; border-radius: 2px; opacity: .8; }
.hero-k img { position: absolute; right: -24px; top: -10px; width: 62%; max-width: 300px; opacity: .95; filter: drop-shadow(0 0 40px rgba(95,217,239,.35)); animation: kit-flota 7s ease-in-out infinite; pointer-events: none; }
.acciones-k { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.accion-k { position: relative; text-align: left; padding: 18px 16px 16px; min-height: 128px; border-radius: 20px; color: #eef4fb; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid rgba(242,195,122,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 26px rgba(0,0,0,.3); }
.accion-k .ic { font-size: 30px; filter: saturate(.9); } .accion-k b { font-size: 19px; font-weight: 600; line-height: 1.2; } .accion-k i { position: absolute; right: 16px; bottom: 16px; font-style: normal; font-size: 24px; color: #e9f1f8; }
.ultimo-k { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.ultimo-k img { width: 44px; height: 44px; border-radius: 50%; flex: none; background: rgba(95,217,239,.08); border: 1px solid rgba(95,217,239,.3); }
.ultimo-k .b { background: rgba(20,32,48,.75); border: 1px solid rgba(150,205,225,.14); border-radius: 18px 18px 18px 6px; padding: 12px 14px; flex: 1; }
.ultimo-k .tx { font-size: 15px; color: #dce8f1; line-height: 1.45; } .ultimo-k .h { font-size: 12px; color: #7f95aa; margin-top: 6px; text-align: right; }
.sug-k { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .sug-k .chip { white-space: nowrap; flex: none; }
.entrada-chat.habla-k { border-radius: 40px !important; border: 1px solid rgba(95,217,239,.35) !important; background: rgba(10,20,32,.88) !important; padding-left: 18px !important; }
.habla-k .onda { color: var(--cian-k); letter-spacing: -2px; font-size: 13px; margin-right: 8px; opacity: .8; }
.volver-k { background: none; border: 0; color: #8fa4b9; font-size: 13px; padding: 2px 0 8px; cursor: pointer; }

/* ---------- Hoy ---------- */
.hoy-k { margin-bottom: 16px; }
.fecha-k { display: flex; align-items: center; gap: 10px; font-family: var(--serif-k); font-size: 27px; color: #eef4fb; margin: 2px 0 14px; } .fecha-k svg { color: var(--ambar-k); }
.semana-k { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.semana-k button { border-radius: 14px; padding: 8px 0 9px; background: rgba(255,255,255,.035); border: 1px solid rgba(150,205,225,.13); color: #cfdde8; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.semana-k button span { font-size: 11.5px; color: #8fa4b9; } .semana-k button b { font-size: 19px; font-weight: 600; }
.semana-k button.hoy { background: linear-gradient(180deg, #ffd88f, #e9a94b); color: #1b1307; border-color: transparent; box-shadow: 0 8px 20px rgba(242,195,122,.35); } .semana-k button.hoy span { color: #3a2a10; }
.semana-k button.luego { opacity: .5; cursor: default; }
.linea-k { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.linea-k .lk-ev { display: grid; grid-template-columns: 62px 14px 1fr; align-items: center; gap: 6px; }
.linea-k .lk-ev .h { font-size: 14px; color: #c9d6e2; text-align: right; } .linea-k .lk-ev .p { width: 9px; height: 9px; border-radius: 50%; background: var(--ambar-k); box-shadow: 0 0 10px rgba(242,195,122,.7); justify-self: center; }
.linea-k .lk-ev .c { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(242,195,122,.22); }
.linea-k .lk-ev .c span { flex: 1; font-size: 15.5px; } .linea-k .lk-ev .c small { color: #8fa4b9; } .linea-k .lk-ev .c em { font-style: normal; color: #9fb3c8; }
.linea-k .lk-ev.vacio .c { border-color: rgba(150,205,225,.12); color: #8fa4b9; }
.libro-k { position: relative; display: grid; grid-template-columns: 46% 1fr; align-items: center; width: 100%; min-height: 180px; padding: 14px; border-radius: 22px; text-align: left; cursor: pointer; color: inherit;
  background: linear-gradient(160deg, rgba(255,240,215,.06), rgba(255,255,255,.01)); border: 1px solid rgba(242,195,122,.2); }
.libro-k img { width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); }
.libro-k .pag { padding: 6px 4px 6px 12px; } .libro-k .t { font-family: var(--serif-k); font-size: 21px; line-height: 1.15; color: #f3e6cf; }
.libro-k .q { font-family: var(--serif-k); font-style: italic; font-size: 14.5px; color: #cfc2ad; margin-top: 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.libro-k .de { font-size: 12px; color: #9a8f7c; margin-top: 8px; }
.anadir-k { display: block; margin: 16px auto 0; padding: 13px 34px; border-radius: 30px; border: 0; cursor: pointer; font-size: 17px; font-weight: 600; color: #1b1307;
  background: linear-gradient(180deg, #ffd88f, #e3a347); box-shadow: 0 10px 26px rgba(242,195,122,.35); } .anadir-k span { font-size: 20px; margin-right: 6px; }

/* ---------- Apps ---------- */
.buscar-k { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 30px; background: rgba(255,255,255,.04); border: 1px solid rgba(150,205,225,.16); color: #8fa4b9; margin-bottom: 14px; }
.buscar-k input { flex: 1; background: none; border: 0; outline: 0; color: #e9f1f8; font-size: 16px; } .buscar-k button { background: none; border: 0; color: #8fa4b9; font-size: 15px; cursor: pointer; }
.tabs-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.tabs-k button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; cursor: pointer; font-size: 15px; color: #dce8f1;
  background: rgba(255,255,255,.035); border: 1px solid rgba(150,205,225,.14); }
.tabs-k button.on { background: linear-gradient(160deg, rgba(95,217,239,.22), rgba(95,217,239,.06)); border-color: rgba(95,217,239,.55); box-shadow: 0 0 22px rgba(95,217,239,.18) inset; }
.docs-k { display: grid; grid-template-columns: 112px 1fr 20px; align-items: center; gap: 12px; width: 100%; padding: 12px 16px 12px 8px; border-radius: 22px; cursor: pointer; text-align: left; color: inherit; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(95,217,239,.12), rgba(255,255,255,.02)); border: 1px solid rgba(95,217,239,.3); }
.docs-k img { width: 112px; height: 96px; object-fit: contain; } .docs-k b { display: block; font-family: var(--serif-k); font-weight: 500; font-size: 24px; color: #eef4fb; } .docs-k span { color: #a9bccd; font-size: 14px; } .docs-k i { font-style: normal; font-size: 22px; color: #cfe3ee; }
.apps-k .apps-grupo { display: flex; align-items: center; gap: 8px; } .apps-k .apps-grupo .cat-ico { width: 22px; height: 22px; border-radius: 6px; }
.apps-k .apps-rej { gap: 10px; }
.apps-k .mosaico { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(150,205,225,.13); border-radius: 18px; padding: 12px 4px 10px; }
.apps-k .mosaico img { width: 58px; height: 58px; }

/* ---------- Panel ---------- */
.panel-cab-k { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ventas-k { width: 100%; text-align: left; padding: 16px 18px; border-radius: 22px; cursor: pointer; color: inherit; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(150,205,225,.16); }
.ventas-k .cab { display: flex; align-items: center; gap: 8px; font-size: 17px; color: #e3edf5; } .ventas-k .cab svg { color: var(--cian-k); }
.ventas-k .fila { display: flex; align-items: flex-end; gap: 10px; margin-top: 8px; } .ventas-k .fila > div { flex: none; }
.ventas-k .monto { font-size: 46px; font-weight: 700; color: #f3f7fb; letter-spacing: -.5px; line-height: 1.05; }
.ventas-k .vs { font-size: 14px; margin: 4px 0; } .ventas-k .vs.sube { color: #59e0a0; } .ventas-k .vs.baja { color: #ff8a8a; }
.ventas-k .curva { flex: 1; min-width: 0; height: 74px; }
.fila-k { display: grid; grid-template-columns: 46px 1fr 18px; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 16px; text-align: left; color: inherit; cursor: pointer;
  background: rgba(255,255,255,.035); border: 1px solid rgba(150,205,225,.12); }
.fila-k .ic { font-size: 26px; text-align: center; } .fila-k b { display: block; font-size: 16px; } .fila-k small { color: #9fb3c8; font-size: 13px; display: flex; align-items: center; gap: 6px; } .fila-k em { font-style: normal; color: #9fb3c8; }
.revisar-k { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 18px; text-align: left; cursor: pointer; color: inherit;
  background: linear-gradient(160deg, rgba(242,195,122,.2), rgba(242,195,122,.06)); border: 1px solid rgba(242,195,122,.45); }
.revisar-k .ic { font-size: 26px; } .revisar-k b { display: block; font-size: 17px; } .revisar-k small { color: #cdbb9c; font-size: 13px; }
.revisar-k .btn { padding: 9px 16px; border-radius: 20px; background: linear-gradient(180deg, #ffd88f, #e3a347); color: #1b1307; font-weight: 600; font-size: 14px; }

/* ---------- Fold abierto (700–1099): dos columnas en las portadas y más aire ---------- */
@media (min-width: 700px) {
  .bienvenida-k { max-width: 820px; margin: 0 auto; }
  .hero-k { min-height: 300px; } .hero-k .t { font-size: 58px; } .hero-k img { max-width: 380px; right: 0; }
  .acciones-k { grid-template-columns: 1fr 1fr; }
  .hoy-k { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: start; }
  .hoy-k .fecha-k, .hoy-k .semana-k { grid-column: 1 / -1; } .hoy-k .anadir-k { grid-column: 2; margin-top: 0; }
  .tabs-k { max-width: 560px; } .apps-k .apps-rej { grid-template-columns: repeat(5, 1fr); }
  .panel-cab-k { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; } .panel-cab-k .ventas-k { grid-row: span 3; } .panel-cab-k .revisar-k { grid-column: 1 / -1; }
  .nav .fila { margin-bottom: 0; }
}
/* ---------- PC (≥ 1100) ---------- */
@media (min-width: 1100px) {
  .bienvenida-k { max-width: 980px; } .hero-k .t { font-size: 66px; }
  .apps-k .apps-rej { grid-template-columns: repeat(7, 1fr); }
  .hoy-k .libro-k { min-height: 220px; }
}

/* ajustes tras la primera mirada */
.hero-k .txt { max-width: 66%; } .hero-k .t { font-size: 40px; } .hero-k img { width: 58%; right: -30px; }
.fecha-k svg { width: 26px; height: 26px; flex: none; } .fecha-k { font-size: 25px; }
.linea-k .lk-ev { grid-template-columns: 70px 14px 1fr; } .linea-k .lk-ev .h { font-size: 13px; }
/* barra de abajo igual que la propuesta: cinco botones iguales, sin el disco dorado del centro */
.nav button.centro { margin-top: 0 !important; padding-top: 10px !important; color: var(--texto3) !important; font-size: 11.5px !important; }
.nav button.centro::before { display: none !important; } .nav button.centro svg { margin-bottom: 0 !important; color: inherit !important; }
.nav button.centro img.kit-nav { width: 28px; height: 28px; margin-bottom: 3px; opacity: .55; }
.nav button.centro.activo { color: var(--ambar-k) !important; } .nav button.centro.activo img.kit-nav { opacity: 1; }
.nav button.activo::after { bottom: 2px !important; width: 22px; }
@media (min-width: 700px) { .hero-k .txt { max-width: 60%; } .hero-k .t { font-size: 56px; } }
@media (min-width: 1100px) { .hero-k .t { font-size: 64px; } }
.hoy-k svg, .panel-cab-k svg:not(.curva), .tabs-k svg, .buscar-k svg, .cabecera .btn-k svg { width: 22px; height: 22px; flex: none; }
.ventas-k .cab svg { width: 22px !important; height: 22px !important; }
@media (min-width: 700px) { .panel-cab-k { grid-auto-rows: min-content; align-items: start; } .hero-k img { max-width: 330px; top: 0; } }

.nav button.activo::after { top: 3px !important; bottom: auto !important; }
