/* ============================================================================
   GoldLab — sistema de diseño
   Oscuro, sobrio, pensado para mirar gráficos durante horas.

   Color con significado fijo (no decorativo):
     --up / --down   sube / baja, ganancia / pérdida, acierto / error
     --gold          la marca Y la "respuesta del maestro": lo que la
                     corrección dibuja como solución esperada
     --marca         lo que marca el estudiante antes de comprobar
   ========================================================================== */

:root {
  --bg: #0a0d12;
  --surface: #10151c;
  --surface-2: #161c25;
  --surface-3: #1d2531;
  --line: #252e3b;
  --line-soft: #1b222d;

  --text: #e8ecf2;
  --text-dim: #9aa6b8;
  --text-faint: #677285;

  --gold: #d8ae45;
  --gold-strong: #ecc45e;
  --gold-bg: rgba(216, 174, 69, .12);
  --gold-line: rgba(216, 174, 69, .38);

  --up: #2ebd85;
  --up-bg: rgba(46, 189, 133, .13);
  --down: #f6465d;
  --down-bg: rgba(246, 70, 93, .13);
  --warn: #f0902b;
  --warn-bg: rgba(240, 144, 43, .13);
  --marca: #6ea8fe;
  --marca-bg: rgba(110, 168, 254, .13);

  --radio: 10px;
  --radio-lg: 14px;
  --sidebar: 236px;
  --topbar: 56px;

  --fuente: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* El atributo hidden debe ganarle al display de cualquier clase (.btn, .panel, .sim…). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.55 var(--fuente);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-strong); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-bg); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.gold { color: var(--gold); }
.derecha { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.material-symbols-outlined { font-size: 20px; line-height: 1; vertical-align: middle; user-select: none; }

* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ── Estructura ─────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  display: flex; flex-direction: column;
  background: var(--bg); border-right: 1px solid var(--line-soft);
  padding: 16px 12px; z-index: 40; overflow-y: auto;
}
.shell { margin-left: var(--sidebar); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.contenido { flex: 1; padding: 20px 24px 40px; width: 100%; max-width: 1480px; margin: 0 auto; display: grid; gap: 16px; align-content: start; }
.velo { display: none; }

.marca { display: flex; align-items: center; gap: 11px; padding: 4px 6px 18px; color: var(--text); }
.marca:hover { color: var(--text); }
.marca-tile {
  position: relative; flex: none; width: 40px; height: 40px;
  border: 1.5px solid var(--gold); border-radius: 8px; background: var(--gold-bg);
  display: grid; place-items: center; color: var(--gold);
}
.marca-tile small { position: absolute; top: 3px; left: 5px; font: 500 8.5px/1 var(--mono); opacity: .85; }
.marca-tile b { font: 800 17px/1 var(--fuente); letter-spacing: -.02em; margin-top: 5px; }
.marca-texto { display: grid; font-weight: 800; font-size: 16px; letter-spacing: -.02em; line-height: 1.15; }
.marca-texto small { font-weight: 500; font-size: 10.5px; color: var(--text-faint); letter-spacing: .02em; }
.marca-grande .marca-tile { width: 52px; height: 52px; border-radius: 10px; }
.marca-grande .marca-tile b { font-size: 22px; }
.marca-grande .marca-texto { font-size: 24px; }
.marca-grande .marca-texto small { font-size: 12px; }

.nav { display: grid; gap: 2px; flex: 1; align-content: start; }
.nav-grupo { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px;
  border-radius: 8px; color: var(--text-dim); font-weight: 600;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.activo { background: var(--gold-bg); color: var(--gold); }
.nav-item .material-symbols-outlined { font-size: 20px; }

.sidebar-pie { display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; margin-top: 12px; border-top: 1px solid var(--line-soft); }
.usuario { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.usuario-inicial { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; color: var(--gold); }
.usuario-datos { display: grid; min-width: 0; line-height: 1.25; }
.usuario-datos b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-datos small { color: var(--text-faint); font-size: 11px; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(10, 13, 18, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-titulo { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.topbar-derecha { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.reloj { font-size: 12px; color: var(--text-dim); }
.chip-cuenta { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; }
.chip-cuenta:hover { border-color: var(--gold-line); color: var(--text); }
.chip-demo { font: 700 9.5px/1 var(--fuente); letter-spacing: .08em; color: var(--gold); background: var(--gold-bg); padding: 3px 6px; border-radius: 4px; }
.menu-boton { display: none; }

/* ── Componentes ────────────────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radio-lg); padding: 16px; min-width: 0; }
.panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-cab p { color: var(--text-dim); font-size: 13px; }
.panel-plano { background: var(--surface-2); border-color: var(--line-soft); }
.rejilla { display: grid; gap: 16px; min-width: 0; }
.rejilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pila { display: grid; gap: 12px; min-width: 0; }
.fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fila-sep { justify-content: space-between; }
.encabezado-pag { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.encabezado-pag h2 { font-size: 22px; letter-spacing: -.02em; }
.encabezado-pag p { color: var(--text-dim); margin-top: 2px; max-width: 70ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn .material-symbols-outlined { font-size: 18px; }
.btn-primario { background: var(--gold); color: #1a1405; }
.btn-primario:hover { background: var(--gold-strong); color: #1a1405; }
.btn-sec { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-sec:hover { background: var(--surface-3); color: var(--text); }
.btn-fantasma { background: transparent; color: var(--text-dim); }
.btn-fantasma:hover { background: var(--surface-2); color: var(--text); }
.btn-compra { background: var(--up); color: #04150e; }
.btn-compra:hover { filter: brightness(1.1); }
.btn-venta { background: var(--down); color: #1c0408; }
.btn-venta:hover { filter: brightness(1.1); }
.btn-peligro { background: var(--down-bg); color: var(--down); border-color: rgba(246, 70, 93, .3); }
.btn-chico { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-bloque { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-icono { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--text-dim); cursor: pointer; }
.btn-icono:hover { background: var(--surface-2); color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-dim); white-space: nowrap; }
.chip-up { background: var(--up-bg); color: var(--up); }
.chip-down { background: var(--down-bg); color: var(--down); }
.chip-gold { background: var(--gold-bg); color: var(--gold); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-info { background: var(--marca-bg); color: var(--marca); }

.campo { display: grid; gap: 5px; min-width: 0; }
.campo > span { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.campo small { color: var(--text-faint); font-size: 11.5px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; height: 36px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 500 13.5px var(--fuente);
}
input.num, textarea.num { font-family: var(--mono); }
textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 16px; height: 16px; }
input[type=range] { accent-color: var(--gold); width: 100%; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check input { margin-top: 2px; flex: none; }
.form-rejilla { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.aviso { padding: 10px 13px; border-radius: 8px; font-size: 13px; border: 1px solid; }
.aviso-mal { background: var(--down-bg); border-color: rgba(246, 70, 93, .35); color: #ff9aa8; }
.aviso-ok { background: var(--up-bg); border-color: rgba(46, 189, 133, .35); color: #7be0b6; }
.aviso-info { background: var(--marca-bg); border-color: rgba(110, 168, 254, .3); color: #a9c9ff; }
.aviso-oro { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold-strong); }

.kpi { display: grid; gap: 3px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radio-lg); min-width: 0; }
.kpi-etiqueta { font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.kpi-valor { font: 700 24px/1.15 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-nota { font-size: 12px; color: var(--text-faint); }

.progreso { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progreso > i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }

.tabla-caja { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radio); }
table.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); padding: 9px 12px; background: var(--surface-2); white-space: nowrap; }
.tabla td { padding: 9px 12px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.tabla tr:hover td { background: rgba(255, 255, 255, .02); }
.tabla .der { text-align: right; }
/* Texto largo (nombres de estrategia): se recorta con puntos suspensivos en vez de ensanchar la tabla. */
.tabla td.recorta { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

.vacio { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 40px 16px; color: var(--text-dim); }
.vacio-icono { font-size: 40px; color: var(--text-faint); }

.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pestana { padding: 9px 14px; border: 0; background: none; color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.pestana:hover { color: var(--text); }
.pestana.activa { color: var(--gold); border-bottom-color: var(--gold); }

.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text-dim); font-weight: 700; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.seg button:hover { color: var(--text); }
.seg button.activo { background: var(--surface-3); color: var(--gold); }
.seg button .material-symbols-outlined { font-size: 17px; }

/* ── Login ──────────────────────────────────────────────────────────────── */
.pagina-login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 420px at 50% -10%, rgba(216, 174, 69, .09), transparent 70%), var(--bg); }
.login { width: min(380px, 100%); display: grid; gap: 22px; }
.login .marca { padding: 0; justify-content: center; }
.login-form { display: grid; gap: 14px; padding: 22px; }
.login-nota { text-align: center; font-size: 12.5px; color: var(--text-faint); }

/* ── Gráfico ────────────────────────────────────────────────────────────── */
.grafico-caja { position: relative; border: 1px solid var(--line); border-radius: var(--radio-lg); background: #0c1016; overflow: hidden; min-width: 0; }
.grafico-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.grafico-barra .espacio { flex: 1; }
.grafico-lienzo { position: relative; width: 100%; height: 440px; touch-action: none; }
.grafico-lienzo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.grafico-lienzo.herramienta-rect canvas { cursor: crosshair; }
.grafico-lienzo.arrastrando canvas { cursor: grabbing; }
.grafico-leyenda { position: absolute; top: 8px; left: 10px; font: 500 11.5px var(--mono); color: var(--text-dim); pointer-events: none; display: flex; gap: 10px; flex-wrap: wrap; }
.grafico-leyenda b { font-weight: 500; color: var(--text); }
.grafico-aviso { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-size: 12px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .2s; }
.grafico-aviso.visible { opacity: 1; }

/* ── Laboratorio de ejercicios ──────────────────────────────────────────── */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.lab-lateral { display: grid; gap: 12px; position: sticky; top: calc(var(--topbar) + 16px); max-height: calc(100vh - var(--topbar) - 32px); overflow-y: auto; padding-right: 2px; }
.consigna { font-size: 15px; font-weight: 700; line-height: 1.4; }
.consigna-pista { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.herramientas { display: flex; flex-wrap: wrap; gap: 6px; }
.herramienta { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-dim); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.herramienta:hover { color: var(--text); border-color: var(--text-faint); }
.herramienta.activa { background: var(--marca-bg); border-color: var(--marca); color: var(--marca); }
.marcas-lista { display: grid; gap: 5px; }
.marca-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; }
.marca-item .num { color: var(--marca); }

.resultado { display: grid; gap: 12px; }
.puntaje { display: flex; align-items: baseline; gap: 10px; }
.puntaje-num { font: 800 38px/1 var(--mono); letter-spacing: -.03em; }
.puntaje-txt { font-weight: 700; }
.fb-lista { display: grid; gap: 8px; }
.fb { display: grid; grid-template-columns: 20px 1fr; gap: 9px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; cursor: pointer; text-align: left; width: 100%; color: var(--text); }
.fb:hover { border-color: var(--text-faint); }
.fb .material-symbols-outlined { font-size: 19px; margin-top: 1px; }
.fb b { display: block; margin-bottom: 2px; }
.fb span.cuerpo { color: var(--text-dim); line-height: 1.5; }
.fb-ok { border-color: rgba(46, 189, 133, .4); background: var(--up-bg); }
.fb-ok .material-symbols-outlined { color: var(--up); }
.fb-mal { border-color: rgba(246, 70, 93, .4); background: var(--down-bg); }
.fb-mal .material-symbols-outlined { color: var(--down); }
.fb-cerca { border-color: rgba(240, 144, 43, .4); background: var(--warn-bg); }
.fb-cerca .material-symbols-outlined { color: var(--warn); }
.fb-falta { border-color: var(--gold-line); background: var(--gold-bg); }
.fb-falta .material-symbols-outlined { color: var(--gold); }
.fb-info .material-symbols-outlined { color: var(--marca); }
.leyenda-colores { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-dim); }
.leyenda-colores i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.etiquetas-estructura { display: flex; gap: 6px; flex-wrap: wrap; }
.etiqueta-opcion { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font: 700 12.5px var(--mono); cursor: pointer; color: var(--text); }
.etiqueta-opcion:hover { border-color: var(--marca); color: var(--marca); }
.etiqueta-opcion.activa { background: var(--marca-bg); border-color: var(--marca); color: var(--marca); }

/* ── Academia y conceptos ───────────────────────────────────────────────── */
.modulo-tarjeta { display: grid; gap: 10px; align-content: start; }
.modulo-num { font: 700 11px var(--mono); color: var(--gold); letter-spacing: .06em; }
.leccion-fila { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.leccion-fila:hover { border-color: var(--gold-line); color: var(--text); }
.leccion-fila .material-symbols-outlined { color: var(--text-faint); }
.leccion-fila.hecha .material-symbols-outlined { color: var(--up); }
.teoria { display: grid; gap: 12px; max-width: 74ch; }
.teoria h3 { font-size: 15px; margin-top: 6px; }
.teoria ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.teoria li::marker { color: var(--gold); }
.teoria .falla { border-left: 2px solid var(--down); padding: 2px 0 2px 12px; color: var(--text-dim); }
.teoria .sirve { border-left: 2px solid var(--up); padding: 2px 0 2px 12px; color: var(--text-dim); }
.concepto { display: grid; gap: 10px; }
.concepto-cab { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.concepto-en { font: 500 12px var(--mono); color: var(--text-faint); }

/* ── Simulador ──────────────────────────────────────────────────────────── */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ticket { display: grid; gap: 12px; position: sticky; top: calc(var(--topbar) + 16px); }
.precio-grande { font: 700 28px/1 var(--mono); letter-spacing: -.02em; }
.lado-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.datos-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 12.5px; }
.datos-rejilla dt { color: var(--text-faint); }
.datos-rejilla dd { margin: 0; text-align: right; font-family: var(--mono); }
.reglas-lista { display: grid; gap: 7px; }

/* ── Simulador: detalles ────────────────────────────────────────────────── */
.lado-botones .btn { height: 40px; font-size: 14px; opacity: .55; }
.lado-botones .btn.activo { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.btn-sec.activo { border-color: var(--marca); color: var(--marca); background: var(--marca-bg); }
.ticket textarea { min-height: 64px; }

/* ── Barras (sesiones) ──────────────────────────────────────────────────── */
.barras { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 230px; }
.barra-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; min-width: 0; }
.barra-col i { display: block; width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; }
.barra-val { font-size: 9px; color: var(--text-faint); }
.barra-eje { font-size: 10px; color: var(--text-dim); }

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .lab, .sim { grid-template-columns: minmax(0, 1fr); }
  .lab-lateral, .ticket { position: static; max-height: none; overflow: visible; }
  .rejilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .shell { margin-left: 0; }
  .menu-boton { display: inline-grid; }
  .velo { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.menu-abierto .sidebar { transform: none; }
  body.menu-abierto .velo { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 14px; }
  .contenido { padding: 14px 14px 32px; }
  .rejilla-2, .rejilla-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .rejilla-4 { grid-template-columns: minmax(0, 1fr); }
  .grafico-lienzo { height: 340px; }
  .reloj { display: none; }
  .barra-val { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
