/* Gym en «Acero» (25-sep-2026). Ángel eligió este mundo entre cuatro en el
   prototipo (claude.ai/artifact/QbQXKXCaghiAMuR1XFCqm4): un instrumento de
   mesa — teclas de hueso sobre chasis de acero, UNA tecla naranja para «serie
   hecha», una pantalla ámbar para lo que está vivo (reloj, cifras), y el
   moleteado de una barra. Todo Nexo se va a rediseñar; mientras, Acero vive
   solo en Gym (body.acero) y no sigue al tema claro: es un mundo cerrado.

   Papeles de color (no se usan para otra cosa):
     hueso   #e6e2d9  teclas primarias, texto
     naranja #ff6a1a  serie hecha / terminar (la tecla que compromete)
     ámbar   #ffb627  lo vivo: reloj, cifras en directo, lo que toca ahora */

@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500-800.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-75-100-400-800.woff2") format("woff2"); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }

body.acero {
  --suelo: #16181b; --lateral: #1b1e22; --panel: #22262b; --panel-hover: #292d33; --panel-2: #33383e; --campo: #1b1e22;
  --borde: #2d3237; --borde-2: #454b52;
  --texto: #e6e2d9; --texto-2: #c9c5bb; --texto-3: #aaa69c; --texto-4: #948f86;
  --acento: #ffc24d; --acento-fondo: #3a2a08; --sobre: #16181b;
  --ok: #ff6a1a; --ok-fondo: #3b1f10; --mal: #ff8a80; --mal-fondo: #3d1d1c; --aviso: #ffc24d; --aviso-fondo: #3a2a08;
  --t-gym: #ffb627; --vidrio: rgba(22, 24, 27, 0.92);
  --hueso: #e6e2d9; --masilla: #c6c2b8; --metal: #3d4248; --naranja: #ff6a1a; --ambar: #ffb627; --pantalla: #1d1402; --pantalla-borde: #4a3508;
  --canto: #0b0c0e;
  --cu-m: #4a5057; --cu-p: #ffb627; --cu-s: #8a6a2a; --cu-piel: #2b3035;
  --r-tarjeta: 10px; --r-pieza: 8px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --estrecha: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
  background: var(--suelo); color: var(--texto); font-family: var(--sans);
}
body.acero ::selection { background: var(--ambar); color: var(--pantalla); }
body.acero :focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }
.acero .num, .acero .cifra-g b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.acero .tenue { color: var(--texto-3); }

/* ── Teclas ─────────────────────────────────────────────────────────── */
.tecla {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px;
  border: 0; border-radius: 7px; background: var(--metal); color: var(--texto); cursor: pointer;
  font: 700 13px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 3px 0 var(--canto), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.tecla:hover { text-decoration: none; filter: brightness(1.06); }
.tecla:active { transform: translateY(3px); box-shadow: 0 0 0 var(--canto); }
.tecla.pri { background: var(--hueso); color: #171a1e; box-shadow: 0 3px 0 #8c887f, inset 0 1px 0 rgba(255, 255, 255, .6); }
.tecla.naranja { background: var(--naranja); color: #140a02; box-shadow: 0 3px 0 #9b3b06; }
.tecla.plana { background: none; box-shadow: none; color: var(--texto-3); padding: 0 8px; }
.tecla.plana:active { transform: none; }
.tecla.ancha { width: 100%; }
.tecla.peq { min-height: 36px; padding: 0 10px; font-size: 12px; }
.tecla.icono { width: 40px; min-height: 40px; padding: 0; }
.tecla svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Rótulo: serigrafía del chasis. */
.rot-g { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 22px 2px 8px;
  font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
.rot-g a, .rot-g button { font: 700 12px var(--mono); letter-spacing: .04em; text-transform: none; color: var(--ambar); background: none; border: 0; padding: 0; cursor: pointer; }

/* Pantalla ámbar: cifras vivas. */
.cifras-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cifra-g { background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cifra-g span { font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #c79a3c; }
.cifra-g b { font-size: 19px; font-weight: 800; color: var(--ambar); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Moleteado de barra: la textura de la cabecera de cada tarjeta. */
.moleteado { height: 9px; margin: -12px -12px 4px; border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(45deg, #2c3136 0 2px, #4a5057 2px 4px), #3a3f45;
  -webkit-mask: repeating-linear-gradient(-45deg, #000 0 3px, rgba(0,0,0,.55) 3px 4px); mask: repeating-linear-gradient(-45deg, #000 0 3px, rgba(0,0,0,.55) 3px 4px); }

/* ── Cabecera de Gym: tres sitios ───────────────────────────────────── */
.g-cab { display: flex; align-items: center; gap: 10px; }
.g-cab .marca-g { font: 800 17px/1 var(--mono); letter-spacing: .06em; }
.g-tres { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--lateral); border-radius: 10px; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.g-tres a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 7px; color: var(--texto-3);
  font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.g-tres a:hover { color: var(--texto); text-decoration: none; }
.g-tres a[aria-current] { background: var(--hueso); color: #171a1e; box-shadow: 0 2px 0 #8c887f; }
.g-titulo { margin: 4px 0 0; font: 800 26px/1.1 var(--mono); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.g-atras { display: inline-flex; align-items: center; gap: 4px; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); text-decoration: none; }
.g-atras:hover { color: var(--texto); text-decoration: none; }
.g-sub { color: var(--texto-3); font-size: 14px; max-width: 62ch; }

/* ── Hoy ────────────────────────────────────────────────────────────── */
.g-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-tile { display: flex; flex-direction: column; gap: 8px; min-height: 156px; padding: 12px; border: 0; border-radius: 10px; background: var(--panel);
  color: var(--texto); text-align: left; cursor: pointer; font: inherit; box-shadow: 0 3px 0 var(--canto); transition: transform .1s ease-out; }
.g-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--canto); }
.g-tile .nom { font: 800 21px/1 var(--mono); text-transform: uppercase; letter-spacing: -.01em; }
.g-tile .que { font-size: 12.5px; line-height: 1.35; color: var(--texto-3); }
.g-tile .pie { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.g-tile .pie .num { font-size: 12px; color: var(--texto-3); }
.g-tile .go { font: 800 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--hueso); color: #171a1e; padding: 7px 10px; border-radius: 6px; box-shadow: 0 2px 0 #8c887f; }


.g-rapidas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.g-rapida { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 5px 10px 5px 5px; border: 0; border-radius: 8px; background: var(--panel); color: var(--texto); text-align: left; cursor: pointer; font: inherit; }
.g-rapida:hover { background: var(--panel-hover); }
.g-rapida b { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-rapida .num { font-size: 11.5px; color: var(--texto-4); }
.g-rapida .mini-cu { width: 38px; height: 38px; }

.g-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.g-dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 7px; background: var(--panel);
  font: 700 11px var(--mono); color: var(--texto-4); text-transform: uppercase; }
.g-dia b { font-size: 15px; color: var(--texto-3); }
.g-dia.hoy { box-shadow: inset 0 0 0 2px var(--ambar); } .g-dia.hoy b { color: var(--texto); }
.g-dia.hecho { background: var(--naranja); color: #140a02; } .g-dia.hecho b { color: #140a02; }
.g-dia[title] { cursor: help; }

.g-recu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; background: var(--panel); border-radius: 10px; padding: 12px; }
.g-recu .cu-entero { grid-column: 1 / -1; height: 150px; margin-bottom: 6px; }
.g-bm { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; font-size: 12.5px; }
.g-bm span:first-child { text-transform: capitalize; }
.g-bm i { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.g-bm i s { display: block; height: 100%; background: var(--hueso); }
.g-bm.caliente i s { background: var(--naranja); } .g-bm.templado i s { background: var(--ambar); }
.g-nota { grid-column: 1 / -1; font-size: 12px; color: var(--texto-3); }

/* ── Listas y fichas ────────────────────────────────────────────────── */
.g-lista { background: var(--panel); border-radius: 10px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.g-fila { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 6px 10px 6px 6px; width: 100%; border: 0; background: none;
  color: var(--texto); text-align: left; text-decoration: none; font: inherit; position: relative; }
.g-lista > li + li .g-fila, .g-lista > .g-fila + .g-fila { box-shadow: 0 -1px 0 var(--borde); }
a.g-fila:hover, button.g-fila:hover { background: var(--panel-hover); text-decoration: none; }
.g-fila.activa { background: color-mix(in srgb, var(--ambar) 10%, var(--panel)); box-shadow: inset 3px 0 0 var(--ambar); }
.g-fila .crece { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.g-fila b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-fila .sub { font-size: 12.5px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-fila .pos { width: 20px; flex: none; text-align: center; font: 700 12px var(--mono); color: var(--texto-4); }
.g-fila .dato { flex: none; font: 700 12px var(--mono); color: var(--ambar); background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); border-radius: 5px; padding: 4px 7px; }
.g-fila .chev { flex: none; color: var(--texto-4); display: grid; }
.g-fila .asa { flex: none; border: 0; background: none; color: var(--texto-4); padding: 10px 4px; cursor: grab; touch-action: none; }
.g-fila.arrastra { background: var(--panel-2); z-index: 3; box-shadow: 0 12px 24px rgba(0,0,0,.45); }
.g-etis { display: flex; flex-wrap: wrap; gap: 4px; }
.g-eti { font: 700 11px var(--mono); padding: 3px 7px; border-radius: 5px; background: var(--panel-2); color: var(--texto-2); text-transform: lowercase; }
.g-eti.para { background: var(--ambar); color: #1d1402; }

.g-buscar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border-radius: 8px; background: var(--campo); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); color: var(--texto-4); flex: 1; }
.g-buscar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--texto); font-size: 16px; padding: 0; min-height: 0; box-shadow: none; }
.g-chips { display: flex; gap: 5px; overflow-x: auto; margin: 8px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.g-chips::-webkit-scrollbar { display: none; }
.g-chip { flex: none; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--borde-2); color: var(--texto-3); font: 700 12px var(--mono); text-decoration: none; background: none; cursor: pointer; }
.g-chip:hover { text-decoration: none; color: var(--texto); }
.g-chip[aria-current], .g-chip:has(input:checked) { background: var(--hueso); color: #171a1e; border-color: var(--hueso); }
.g-chip input { position: absolute; opacity: 0; pointer-events: none; }
.g-sub-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--borde); margin-top: 6px; }
.g-sub-tabs a { padding: 10px 0; text-align: center; font: 700 12.5px var(--mono); color: var(--texto-4); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.g-sub-tabs a span { opacity: .75; }
.g-sub-tabs a[aria-current] { color: var(--texto); border-color: var(--ambar); }

/* Ilustración (Workout Guide): el dibujo es una máscara y toma el color hueso. */
.ilu { width: 52px; height: 52px; flex: none; display: grid; overflow: hidden; border-radius: 7px; background: var(--panel-2); box-shadow: 0 2px 0 var(--canto); }
.ilu i { background: var(--hueso); -webkit-mask: var(--img) center / 118% no-repeat; mask: var(--img) center / 118% no-repeat; }
.ilu.grande { width: 100%; height: auto; aspect-ratio: 1; max-height: 280px; border-radius: 10px; }
.ilu.grande i { -webkit-mask-size: 94%; mask-size: 94%; }

/* Cuerpo: un <use> del sprite; cada zona se pinta con --z-<zona>. */
.cu-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cu-sprite .cu-piel, .cu-sprite path.cu-piel { fill: var(--cu-piel); }
.cu-sprite g path { stroke: var(--panel); stroke-width: 1.5; }
.mini-cu { width: 48px; height: 48px; flex: none; display: grid; border-radius: 7px; background: var(--panel-2); padding: 2px; box-shadow: 0 2px 0 var(--canto); }
.mini-cu svg { width: 100%; height: 100%; }
.cu-entero { display: flex; justify-content: center; gap: 6px; height: 180px; }
.cu-entero svg { height: 100%; width: auto; }
.g-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--texto-3); }
.g-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.g-creditos { font-size: 11.5px; color: var(--texto-4); }

.g-ficha-cab { display: flex; align-items: flex-end; gap: 8px; }
.g-ficha-cab .g-titulo { flex: 1; min-width: 0; }
.g-ej-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.g-ej-top .cu-caja { background: var(--panel); border-radius: 10px; display: grid; place-items: center; padding: 10px; }
.g-ej-top .cu-entero { height: 100%; max-height: 240px; width: 100%; }

/* ── Hojas (<dialog>): desde abajo en el móvil, centradas en el PC ─────── */
dialog.hoja-g { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 90vh; background: var(--suelo); color: var(--texto);
  border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
dialog.hoja-g[open] { animation: hoja-sube .28s cubic-bezier(.2, .8, .2, 1); }
dialog.hoja-g::backdrop { background: rgba(0, 0, 0, .55); }
@keyframes hoja-sube { from { transform: translateY(40px); opacity: 0; } }
.hoja-g .dentro { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.hoja-g .agarre { width: 38px; height: 5px; border-radius: 5px; background: var(--panel-2); margin: 0 auto 4px; }
.hoja-g h2 { margin: 0; font: 800 19px/1.2 var(--mono); text-transform: uppercase; }
.hoja-g .pie-hoja { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--suelo); border-top: 1px solid var(--borde); }
.hoja-g .pie-hoja > * { flex: 1; }
.marcar-g { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--borde); }
.marcar-g input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--naranja); }
.marcar-g .crece { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.marcar-g .sub { font-size: 12.5px; color: var(--texto-3); }
.marcar-g summary { list-style: none; cursor: pointer; color: var(--texto-3); padding: 8px; }
.marcar-g summary::-webkit-details-marker { display: none; }
details.grupo-hoja > summary { list-style: none; }
details.grupo-hoja > summary::-webkit-details-marker { display: none; }
details.grupo-hoja .sub-lista { padding-left: 32px; }
details.grupo-hoja .sub-lista .marcar-g { padding: 6px 2px; }
.paso-g { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.paso-g label, .paso-g > span { font-weight: 700; }
.paso-g .ctrl { display: flex; align-items: center; gap: 6px; }
.paso-g .ctrl .tecla { width: 44px; padding: 0; font-size: 18px; }
.paso-g input { width: 96px; height: 44px; text-align: center; font: 800 18px var(--mono); background: var(--pantalla); color: var(--ambar); border: 0; box-shadow: inset 0 0 0 1px var(--pantalla-borde); border-radius: 7px; }
.segs-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: var(--lateral); }
.segs-g label { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 7px; font: 700 11.5px var(--mono); color: var(--texto-3); cursor: pointer; text-align: center; }
.segs-g input { position: absolute; opacity: 0; pointer-events: none; }
.segs-g label:has(input:checked) { background: var(--hueso); color: #171a1e; box-shadow: 0 2px 0 #8c887f; }
.hoja-g .campo-g { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--texto-2); }
.hoja-g .campo-g input, .hoja-g .campo-g textarea, .hoja-g .campo-g select { background: var(--campo); border: 1px solid var(--borde-2); color: var(--texto); border-radius: 7px; min-height: 44px; padding: 8px 10px; font: 400 16px var(--sans); }
.hoja-g .linea-g { display: flex; gap: 6px; }
.hoja-g .linea-g > input, .hoja-g .linea-g > select { flex: 1; min-width: 0; }
.hoja-g .peligro { color: var(--mal); }

/* ── Sesión: modo foco ──────────────────────────────────────────────── */
body.acero:has(.foco) .lateral, body.acero:has(.foco) .inferior, body.acero:has(.foco) .sesion-mini { display: none !important; }
body.acero:has(.foco) .armazon { display: block; }
body.acero:has(.foco) .contenido { max-width: none; padding: 0; margin: 0; gap: 0; }
.foco { display: flex; flex-direction: column; min-height: 100dvh; }
.foco-cab { position: sticky; top: 0; z-index: 20; background: var(--vidrio); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: calc(8px + env(safe-area-inset-top)) 12px 0; border-bottom: 1px solid var(--borde); }
.foco-fila { display: flex; align-items: center; gap: 10px; }
.foco-fila .crece { flex: 1; min-width: 0; }
.foco-fila .crece b { display: block; font: 800 16px/1.15 var(--mono); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foco-fila .crece span { font: 600 12px var(--mono); color: var(--texto-3); }
.foco-prog { display: flex; gap: 2px; height: 4px; margin: 8px -12px 0; }
.foco-prog i { flex: 1; background: var(--panel-2); }
.foco-prog i.h { background: var(--naranja); } .foco-prog i.a { background: var(--ambar); }
.foco-cuerpo { flex: 1; display: flex; min-height: 0; }
.foco-guion, .foco-lado { display: none; }
.foco-lista { flex: 1; min-width: 0; padding: 6px 10px 60vh; display: flex; flex-direction: column; gap: 6px; }
.parte-g { display: flex; align-items: center; gap: 8px; margin: 14px 4px 2px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
.parte-g::after { content: ""; flex: 1; height: 1px; background: var(--borde); }
.parte-g .tecla { letter-spacing: 0; }
details.ej-g { background: var(--panel); border-radius: 10px; }
details.ej-g[open] { box-shadow: inset 0 0 0 2px var(--ambar); }
details.ej-g.hecho:not([open]) { opacity: .72; }
details.ej-g > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; cursor: pointer; }
details.ej-g > summary::-webkit-details-marker { display: none; }
details.ej-g > summary .crece { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
details.ej-g > summary b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.ej-g > summary .sub { font-size: 12px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-g { width: 26px; height: 26px; flex: none; border-radius: 6px; background: var(--naranja); color: #140a02; display: grid; place-items: center; box-shadow: 0 2px 0 #9b3b06; }
.ok-g svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.cuenta-g { font: 800 12.5px var(--mono); color: var(--texto-3); }
.pasos-g { display: flex; gap: 4px; padding: 0 10px 8px; }
.pasos-g i { flex: 1; height: 6px; border-radius: 2px; background: var(--panel-2); }
.pasos-g i.h { background: var(--naranja); } .pasos-g i.a { background: var(--ambar); }
.ej-cuerpo { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.ej-herr { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.ej-herr .g-sub { font-size: 12.5px; }

/* La tabla de series (las filas las pinta gym_sesion.html y las repinta htmx). */
.acero .gym-tabla { gap: 4px; }
.acero .gym-fila { padding: 2px; border-radius: 8px; gap: 5px; }
.acero .m-peso .gym-fila { grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 48px; }
.acero .m-reps .gym-fila, .acero .m-tiempo .gym-fila { grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1.2fr) 48px; }
.acero .gym-fila.cab span { font: 700 10.5px var(--mono); letter-spacing: .08em; color: var(--texto-4); }
.acero .gym-fila input { min-height: 42px; border-radius: 7px; background: var(--campo); border: 0; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); color: var(--texto); font: 800 17px var(--mono); }
.acero .gym-fila input::placeholder { color: var(--texto-4); font-weight: 600; }
.acero .gym-fila.ahora { background: color-mix(in srgb, var(--ambar) 9%, transparent); }
.acero .gym-fila.hecha { background: color-mix(in srgb, var(--naranja) 14%, transparent); }
.acero .gym-fila.hecha input { background: transparent; box-shadow: none; }
.acero .gym-check { width: 44px; height: 42px; border-radius: 7px; background: var(--metal); color: var(--texto-4); box-shadow: 0 3px 0 var(--canto); font: 800 18px var(--mono); transition: transform .08s ease-out; }
.acero .gym-check:active { transform: translateY(3px); box-shadow: none; }
.acero .gym-fila.hecha .gym-check { background: var(--naranja); color: #140a02; box-shadow: 0 1px 0 #9b3b06; transform: translateY(2px); }
.acero .gym-crono { height: 42px; border-radius: 7px; font-family: var(--mono); }
.acero .gym-crono.corre { background: var(--ambar); color: #1d1402; }
.acero .gym-fila input.gym-dura { font-size: 12px; color: var(--texto-3); }
.acero .gym-fila input.gym-dura::placeholder { font-size: 16px; color: var(--texto); font-weight: 800; }
.acero .gym-ant { font: 600 11.5px var(--mono); color: var(--texto-4); }
.acero .gym-mas { min-height: 36px; border: 1px dashed var(--borde-2); background: none; color: var(--texto-3); border-radius: 7px; font: 700 12px var(--mono); box-shadow: none; }
.acero .gym-nota { font-size: 13px; color: var(--texto-2); padding: 0 4px; }

/* Descanso: la pantalla ámbar. Flota abajo en el móvil. */
.acero .descanso-barra { position: fixed; left: 10px; right: 10px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 45; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 6px; padding: 8px; border: 0; border-radius: 12px; background: var(--ambar); color: #1d1402;
  box-shadow: inset 0 0 0 2px #6b4a05, 0 14px 30px rgba(0,0,0,.5); }
body.acero:has(.foco) .descanso-barra { bottom: calc(12px + env(safe-area-inset-bottom)); }
.acero .descanso-barra[hidden] { display: none; }
.acero .descanso-texto { flex: 1; text-align: center; min-width: 0; display: flex; flex-direction: column; }
.acero .descanso-reloj { font: 800 28px/1 var(--mono); color: #1d1402; }
.acero .descanso-barra #descanso-que { font: 600 11.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acero .descanso-barra .tecla { min-height: 40px; padding: 0 10px; background: rgba(29, 20, 2, .12); color: #1d1402; box-shadow: none; }
.acero .descanso-barra.listo { background: var(--naranja); box-shadow: inset 0 0 0 2px #9b3b06, 0 14px 30px rgba(0,0,0,.5); }
.acero .descanso-barra.listo .descanso-reloj { color: #140a02; }

/* Sesión en marcha, minimizada: te sigue por Gym. */
.sesion-mini { position: fixed; left: 10px; right: 10px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 44; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--naranja); color: #140a02; text-decoration: none;
  box-shadow: 0 3px 0 #9b3b06, 0 14px 30px rgba(0,0,0,.45); }
.sesion-mini:hover { text-decoration: none; }
.sesion-mini .crece { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sesion-mini b { font: 800 14px var(--mono); text-transform: uppercase; }
.sesion-mini .num { font-size: 12px; opacity: .8; }
body.acero:has(#descanso:not([hidden])) .sesion-mini { display: none; }

/* ── PC: se reparte en columnas ─────────────────────────────────────── */
@media (min-width: 900px) {
  .acero .contenido { max-width: none; padding: 24px 32px 60px; }
  .g-cab .marca-g { display: none; }
  .g-cab .g-tres { flex: 0 1 460px; }
  .g-hoy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
  .g-tile { min-height: 176px; }
  .g-rapidas { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .g-biblio { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
  .g-biblio > .col-lista { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .g-biblio > .col-ficha { background: var(--panel); border-radius: 12px; padding: 16px 20px 20px; }
  .g-biblio > .col-ficha .g-lista, .g-biblio > .col-ficha .cifra-g, .g-biblio > .col-ficha .cu-caja { background: var(--suelo); }
  .g-biblio > .col-ficha .g-atras { display: none; }
  .g-progreso { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .foco-guion { display: flex; flex-direction: column; gap: 1px; width: 260px; flex: none; position: sticky; top: 64px; height: calc(100dvh - 64px); overflow-y: auto; padding: 10px 8px; border-right: 1px solid var(--borde); background: var(--lateral); }
  .foco-guion .p { padding: 12px 8px 4px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-4); }
  .foco-guion a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--texto-3); font-size: 13px; text-decoration: none; }
  .foco-guion a:hover { background: var(--panel); text-decoration: none; }
  .foco-guion a .n { width: 18px; text-align: right; font: 700 11px var(--mono); color: var(--texto-4); }
  .foco-guion a .crece { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .foco-guion a.hecho .n { color: var(--naranja); }
  .foco-lista { padding: 12px 28px 60px; max-width: 900px; margin: 0 auto; }
  .foco-lado { display: flex; flex-direction: column; gap: 10px; width: 320px; flex: none; position: sticky; top: 64px; height: calc(100dvh - 64px); padding: 16px; border-left: 1px solid var(--borde); }
  body.acero:has(.foco) .descanso-barra { position: fixed; left: auto; right: 16px; top: 80px; bottom: auto; width: 288px; flex-wrap: wrap; justify-content: center; padding: 12px; }
  body.acero:has(.foco) .descanso-texto { flex-basis: 100%; order: -1; padding: 12px 0; }
  body.acero:has(.foco) .descanso-reloj { font-size: 48px; }
  .acero .descanso-barra, .sesion-mini { bottom: 20px; left: auto; right: 20px; width: 380px; }
  dialog.hoja-g { margin: auto; width: min(560px, 92vw); border-radius: 14px; max-height: 84vh; }
}

/* ── Piezas de las fichas y la Biblioteca (26-sep) ─────────────────── */
.g-solo-pc { display: none; }
.g-busca-fila { display: flex; gap: 6px; margin-top: 10px; }
.g-buscar input[type=search]::-webkit-search-cancel-button { filter: invert(.7); }
.g-chips.envuelve { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.g-chip { position: relative; }
.g-toca { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.g-toca:hover { text-decoration: none; }
.g-mover { display: flex; gap: 4px; flex: none; }
.g-mover .tecla { width: 34px; min-height: 34px; }
.g-mover .tecla:disabled { opacity: .35; }
.quitar-g { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: #d8363d; color: #fff; cursor: pointer; }
.quitar-g svg { width: 14px; height: 14px; }
.g-fila > form { display: contents; }
.g-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tecla.peligro, .acero .peligro { color: var(--mal); }
.g-eti.rango { background: none; box-shadow: inset 0 0 0 1px currentColor; flex: none; }
.g-eti.rango.cu-bronce { color: var(--rango-bronce); } .g-eti.rango.cu-plata { color: var(--rango-plata); } .g-eti.rango.cu-oro { color: var(--rango-oro); }
.g-eti.rango.cu-platino { color: var(--rango-platino); } .g-eti.rango.cu-diamante { color: var(--rango-diamante); }
.g-rangos { grid-template-columns: 1fr; }
.g-rangos .cuerpo { max-height: 260px; }
.g-rangos .cuerpo svg { max-height: 230px; }
.acero .bs-barra { background: var(--ambar); border-radius: 3px 3px 0 0; }
.acero .barras-semana { height: 130px; }
.g-grafico { grid-template-columns: 1fr; }
.g-grafico svg { width: 100%; height: auto; stroke: var(--ambar); fill: var(--ambar); }
.foco-cab #gym-stats { display: block; font: 600 12px var(--mono); color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reloj-vacio { background: var(--panel); border-radius: 12px; padding: 18px; text-align: center; }
.hoja-g form + form, .hoja-g .dentro > form { display: flex; flex-direction: column; gap: 8px; }
.hoja-g .g-lista .g-fila { min-height: 54px; }
.foco-lista .g-dos .tecla { width: 100%; }
.tecla { line-height: 1.2; text-align: center; }
.g-ej-top.solo-cuerpo { grid-template-columns: 1fr; }
.g-ej-top.solo-cuerpo .cu-entero { height: 220px; }
.cifra-g b { font-size: clamp(14px, 4.2vw, 19px); letter-spacing: -.02em; }
@media (min-width: 900px) {
  .rot-g:first-child { margin-top: 6px; }
  .g-solo-pc { display: block; }
  .reloj-vacio { display: block; }
  body.acero:has(.foco #descanso:not([hidden])) .reloj-vacio, body.acero:has(#descanso:not([hidden])) .reloj-vacio { visibility: hidden; }
}

/* ══ Salud (26-sep): el mismo mundo Acero ══════════════════════════════ */
.g-cab > .tecla.icono { flex: none; }
.s-diales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.s-dial { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); color: var(--ambar); text-decoration: none; min-width: 0; }
.s-dial:hover { text-decoration: none; filter: brightness(1.1); }
.s-dial-n, .s-dial-sub { font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #c79a3c; }
.s-dial b { font: 800 34px/1 var(--mono); }
.s-dial.caliente b { color: var(--naranja); }
.s-dial.vacio b { color: #6b5320; }
.s-barra { display: block; height: 5px; border-radius: 3px; background: rgba(255, 182, 39, .15); overflow: hidden; }
.s-barra s { display: block; height: 100%; background: var(--ambar); }
.s-dial.caliente .s-barra s { background: var(--naranja); }
.s-barra.grande { height: 8px; margin-top: 10px; background: var(--panel-2); }
.s-registro-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px 12px 12px 14px; border: 0; border-radius: 10px;
  background: var(--hueso); color: #171a1e; text-align: left; cursor: pointer; font: inherit; box-shadow: 0 3px 0 #8c887f; }
.s-registro-btn:active { transform: translateY(3px); box-shadow: none; }
.s-registro-btn .crece { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-registro-btn b { font: 800 14px var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.s-registro-btn .sub { font-size: 12.5px; color: #4a4740; }
.s-registro-btn svg { width: 18px; height: 18px; }
.s-registro-btn.hecho { background: var(--panel); color: var(--texto); box-shadow: 0 3px 0 var(--canto); }
.s-registro-btn.hecho .sub { color: var(--texto-3); }
.s-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.s-cifras .cifra-g small { font: 600 10.5px var(--mono); color: #a07a2a; }
.s-dia b { font-size: 14px; }
.s-bloque { display: block; padding: 12px; border-radius: 10px; background: var(--panel); color: var(--texto); text-decoration: none; }
a.s-bloque:hover { background: var(--panel-hover); text-decoration: none; }
.s-bloque-cab { display: flex; align-items: center; gap: 10px; }
.s-bloque-cab .crece { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-bloque-cab b { font-size: 15px; }
.s-bloque-cab .sub { font-size: 12.5px; color: var(--texto-3); }
.s-bloque .go { flex: none; font: 800 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--hueso); color: #171a1e; padding: 8px 10px; border-radius: 6px; box-shadow: 0 2px 0 #8c887f; }
.s-recu { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 10px; }
.s-recu .cu-entero { height: 120px; }
.s-recu-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; }
.s-peso-linea .s-linea { width: 100%; height: 60px; display: block; }
.s-linea polyline { fill: none; stroke: var(--ambar); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.s-mini { width: 70px; height: 26px; flex: none; }
.s-mini .s-linea { width: 100%; height: 100%; display: block; }
.s-mini polyline { stroke: var(--texto-3); stroke-width: 1.8; }
.s-tend.listo { color: var(--hueso); } .s-tend.caliente { color: var(--naranja); } .s-tend.templado { color: var(--texto-3); }
.s-medida .dato { min-width: 64px; text-align: center; }
.s-grafico .s-barras { width: 100%; height: 180px; display: block; }
.s-barras rect { fill: var(--ambar); }
.s-barras line { stroke: var(--hueso); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.s-apuntar { display: flex; gap: 6px; flex-wrap: wrap; }
.s-apuntar input { flex: 1 1 120px; min-height: 44px; border-radius: 7px; border: 1px solid var(--borde-2); background: var(--campo); color: var(--texto); padding: 0 10px; font: 16px var(--sans); color-scheme: dark; }
.s-aporte .s-peso { flex: none; font: 700 11px var(--mono); color: var(--texto-4); }
.s-aporte .dato { min-width: 42px; text-align: center; }
.s-efecto.listo { color: var(--hueso); } .s-efecto.caliente { color: var(--naranja); }
.s-puntos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 12px; }
.s-puntos .s-dial { max-width: 220px; }
.s-puntos section > .g-sub { margin: 8px 0; }
.s-pasos { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.s-pasos code, .s-bloque code { font: 600 12.5px var(--mono); background: var(--campo); padding: 2px 5px; border-radius: 4px; word-break: break-all; }
/* El registro: escalas del 1 al 5 y los hábitos de ayer. */
.s-escala { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.s-escala legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.segs-g.seis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.segs-g.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segs-g label { position: relative; }
.s-habito { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--borde); font-size: 14px; }
.s-habito .segs-g { padding: 3px; } .s-habito .segs-g label { min-height: 34px; }
@media (min-width: 900px) {
  .s-resumen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .s-grupos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .s-puntos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ══ Nutrición ══════════════════════════════════════════════════════════
   Acero, igual que Gym y Salud (Ángel, 26-sep por la tarde: «lo quiero todo
   igual»; el «Acero claro» de la mañana se quitó). */
.g-sub-tabs.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.n-dia { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 4px; }
.n-dia b { font: 800 15px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.n-pantalla { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); color: var(--ambar); }
.n-pantalla b { font: 800 44px/1 var(--mono); }
.n-pantalla > span { font: 600 13px var(--mono); color: #c79a3c; }
.n-pantalla .n-p-rot { font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.n-pantalla.peq b { font-size: 30px; }
.s-barra.pasada s { background: var(--naranja); }
.n-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--panel); }
.n-macros .g-bm { grid-template-columns: 1fr; gap: 2px; }
.n-macros .g-bm span:first-child { text-transform: capitalize; color: var(--texto-3); font-size: 12px; }
.n-macros .g-bm .num { text-align: left; font-weight: 700; }
.n-apuntar { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.n-foto-btn { width: 100%; min-height: 56px; font-size: 15px; }
.n-foto-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linejoin: round; }
.n-foto-espera { display: none; }
.n-foto.enviando .n-foto-txt { display: none; }
.n-foto.enviando .n-foto-espera { display: inline; }
.n-foto.enviando .n-foto-btn { pointer-events: none; animation: n-late 1s ease-in-out infinite alternate; }
@keyframes n-late { to { opacity: .6; } }
.n-apuntar > .tecla { min-height: 56px; }
.n-buscar { margin-top: 10px; }
.n-fila { gap: 6px; }
.n-fila .n-g, .n-item .n-g { width: 58px; min-height: 38px; flex: none; text-align: right; border-radius: 7px; border: 1px solid var(--borde-2); background: var(--campo); color: var(--texto); font: 700 15px var(--mono); padding: 0 6px; }
.n-gu { font: 600 12px var(--mono); color: var(--texto-3); }
.n-item input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--naranja); margin-left: 6px; }
.n-nom { width: 100%; border: 0; border-bottom: 1px dashed var(--borde-2); background: none; color: var(--texto); font: 700 15px var(--sans); padding: 2px 0; }
.n-item .dato { min-width: 48px; text-align: center; }
.n-revisar .linea-g select { min-height: 46px; border-radius: 7px; border: 1px solid var(--borde-2); background: var(--campo); color: var(--texto); padding: 0 8px; font: 15px var(--sans); }
.n-revisar .linea-g .tecla { flex: 1; }
.n-barras { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; }
.n-barras i { flex: 1; min-height: 2px; background: #2a2e33; border-radius: 2px 2px 0 0; }
.n-barras i.pasado { background: var(--naranja); }
.n-obj { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--acento); }
.n-bib-cab { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.n-bib-cab .g-sub { flex: 1; margin: 0; }
.n-estrella { width: 36px; height: 36px; flex: none; border: 0; background: none; font-size: 20px; color: var(--borde-2); cursor: pointer; }
.n-estrella.activa { color: var(--naranja); }
.linea-g.n-cuatro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hoja-g .linea-g > .campo-g { flex: 1; min-width: 0; }
.n-apuntar-receta { margin-top: 10px; align-items: center; flex-wrap: wrap; }
.n-apuntar-receta select { flex: 1; min-width: 120px; min-height: 42px; border-radius: 7px; border: 1px solid var(--borde-2); background: var(--campo); color: var(--texto); padding: 0 8px; font: 15px var(--sans); }
@media (min-width: 900px) {
  .n-bib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n-hoy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .acero *, .acero *::before, .acero *::after, dialog.hoja-g[open] { animation: none !important; transition: none !important; }
}

/* ══ Acero en toda la app (26-sep-2026) ══════════════════════════════════
   Ángel: «lo quiero todo igual» y «rehaz toda la app siguiendo dinámicas
   similares». body.acero va ya en todas las pantallas, así que las piezas
   comunes (tarjeta, lista, btn, chip, campos, rótulos) se visten aquí de
   Acero y los módulos que aún no se han rehecho por dentro ya se ven igual.
   Los alias de Basecoat se declaran otra vez: en :root se resolvieron con
   la paleta de antes. */
body.acero {
  --background: var(--suelo); --foreground: var(--texto);
  --card: var(--panel); --card-foreground: var(--texto); --popover: var(--panel); --popover-foreground: var(--texto);
  --primary: var(--hueso); --primary-foreground: #171a1e;
  --secondary: var(--panel-2); --secondary-foreground: var(--texto);
  --muted: var(--panel-2); --muted-foreground: var(--texto-3); --accent: var(--panel-2); --accent-foreground: var(--texto);
  --destructive: var(--mal); --border: var(--borde); --input: var(--borde-2); --ring: var(--ambar);
  --radius: 10px; --radius-lg: 10px; --radius-md: 7px; --sombra-suave: none; --sombra: 0 12px 28px rgba(0,0,0,.45);
}
.acero h1 { font: 800 22px/1.15 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.acero h2 { font: 800 15px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.acero .rotulo { font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
.acero .antetitulo { font: 700 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ambar); }
.acero .tarjeta, .acero .lista { border: 0; border-radius: 10px; background: var(--panel); box-shadow: none; }
.acero a.tarjeta:hover { background: var(--panel-hover); }
.acero .tarjeta.nota { background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); color: var(--ambar); }
.acero .lista .fila { border-bottom-color: var(--borde); }
.acero .cifra-meta, .acero .cifra { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Los botones de siempre, como teclas. El lleno (primario) es la tecla hueso. */
.acero .btn {
  min-height: 44px; border: 0; border-radius: 7px; background: var(--metal); color: var(--texto);
  font: 700 12.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--canto), inset 0 1px 0 rgba(255,255,255,.07); transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.acero .btn:hover { background: var(--metal); filter: brightness(1.08); }
.acero .btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--canto); }
.acero .btn.primario, .acero .btn.claro { background: var(--hueso); color: #171a1e; box-shadow: 0 3px 0 #8c887f, inset 0 1px 0 rgba(255,255,255,.6); }
.acero .btn.primario:hover, .acero .btn.claro:hover { background: var(--hueso); }
.acero .btn.peligro { background: var(--mal-fondo); color: var(--mal); box-shadow: 0 3px 0 var(--canto); }
.acero .btn.pequeno { min-height: 34px; font-size: 11.5px; }

.acero input:not([type=checkbox]):not([type=radio]):not([type=range]), .acero select, .acero textarea {
  background: var(--campo); border: 1px solid var(--borde-2); border-radius: 7px; color: var(--texto); min-height: 44px;
}
.acero input:focus, .acero select:focus, .acero textarea:focus { border-color: var(--ambar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ambar) 22%, transparent); }
.acero input[type=checkbox], .acero input[type=radio] { accent-color: var(--naranja); }
.acero .campo { font: 700 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }
.acero .campo > input, .acero .campo > select, .acero .campo > textarea { font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; }

.acero .chip { border-radius: 6px; border-color: var(--borde-2); color: var(--texto-3); font: 700 12px var(--mono); }
.acero .chip.activo, .acero .chip:has(input:checked) { background: var(--hueso); border-color: var(--hueso); color: #171a1e; }
.acero .interruptor.encendido { background: var(--naranja); }
.acero .avatar { background: var(--metal); font-family: var(--mono); }
.acero .aviso { font-family: var(--mono); }
/* Cabecera de módulo (cab-mod): siempre arriba, y la página ya no repite el
   nombre del módulo encima de su título. */
.g-cab.mod { order: -1; }
.g-tres.n1 { display: none; }
.g-tres.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contenido:has(> .g-cab.mod) > .cabecera .antetitulo { display: none; }
.g-cab .marca-g { text-transform: uppercase; }
@media (max-width: 899px) {
  .g-cab.mod { flex-wrap: wrap; row-gap: 12px; }
  .g-cab.mod .marca-g { flex-basis: 100%; }
  .g-cab.mod .g-tres a { font-size: 11.5px; letter-spacing: .04em; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* El logo de la lateral: .marca también es la tecla ✓/★ de la Pokédex (más
   abajo en nexo.css) y le ponía su fondo gris. */
.lateral a.marca { background: none; min-height: 0; border-radius: 0; color: var(--texto); font: 800 20px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px 16px; }
/* Estudios · Hoy */
.est-dial { font-size: 30px !important; white-space: nowrap; }
.est-meta { margin-top: 10px; }
.est-teclas { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.g-fila.pasada { opacity: .55; }
.g-fila .dato.caliente { color: #140a02; background: var(--naranja); box-shadow: none; }
.est-tarea form { display: contents; }
.hoja-g .formulario { padding-bottom: 8px; }
.s-dial-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-t-texto { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.est-t-texto b { white-space: normal; }
.est-tarea.hecha .est-t-texto b { text-decoration: line-through; color: var(--texto-3); }
.tecla.peligro-t { color: var(--mal); margin-right: auto; }
.acero .casilla::before { border-radius: 6px; background: var(--campo); }
.acero .casilla:hover::before { border-color: var(--naranja); }
.acero .casilla.marcada::before { background: var(--naranja); border-color: var(--naranja); }
.g-cab > .tecla[aria-current] { background: var(--hueso); color: #171a1e; box-shadow: 0 3px 0 #8c887f; }
/* Las cajas de cifras de toda la app son pantallas ámbar, como en Cuerpo. */
.acero .tarjeta.cifra-caja { background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); color: var(--ambar); padding: 10px 12px; }
.acero .cifra-caja .rotulo { font-size: 10.5px; color: #c79a3c; }
.acero .cifra-caja .cifra-meta, .acero .cifra-caja .cifra-grande { font-family: var(--mono); color: var(--ambar); font-size: 22px; letter-spacing: 0; }
.acero .cifra-caja .tenue, .acero .cifra-caja small, .acero .cifra-caja .pequeno { color: #c79a3c; }
.acero .cifras { gap: 6px; }
.acero .cifra-grande { font-family: var(--mono); letter-spacing: 0; }
.editar-tecla { align-self: flex-start; min-height: 32px; padding: 0 10px; border: 1px solid var(--borde-2); border-radius: 6px; background: none; color: var(--texto-3); font: 700 11.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.editar-tecla:hover { color: var(--texto); border-color: var(--texto-4); }
.hoja-g .dentro > form { display: flex; flex-direction: column; gap: 12px; }
.acero .chip { position: relative; }
.acero .chip > input[type=radio], .acero .chip > input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.acero .chip:has(input:focus-visible) { outline: 2px solid var(--ambar); outline-offset: 2px; }
.tecla.peligro-fondo { background: var(--mal-fondo); color: var(--mal); }
.tecla.peligro { color: var(--mal); }
/* Juegos · Hoy */
.jue-principal { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.jue-principal .caratula-img { width: 132px; flex: none; }
.jue-principal .crece { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g-eti.final { font-size: 10px; padding: 2px 6px; vertical-align: middle; color: var(--ambar); border-color: var(--pantalla-borde); }
.acero .logro { padding-left: 8px; padding-right: 8px; }
.jue-botones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .jue-botones form { display: contents; }
.jue-hechos > summary { cursor: pointer; list-style: none; } .jue-hechos > summary::-webkit-details-marker { display: none; } .jue-hechos[open] > summary span { visibility: hidden; }
/* Pokémon: debilidades por tipo y dónde conseguirlo */
.poke-debil { display: flex; flex-wrap: wrap; gap: 6px; }
.poke-tf { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--panel); font: 700 12px var(--mono); }
.poke-tf i { font-style: normal; color: var(--ambar); }
.poke-enc { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.poke-enc.tuyo { box-shadow: inset 3px 0 0 var(--ambar); }
.poke-enc .g-lista { background: var(--suelo); }
/* Pokémon: partidas, capturas y teambuilder */
.poke-huecos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0 10px; }
.poke-equipo-fila { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 10px; }
.poke-miembro { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: var(--panel); color: inherit; text-decoration: none; text-align: center; }
.poke-miembro b { font-size: 13px; } .poke-miembro span { font: 600 10.5px var(--mono); color: var(--texto-3); }
.poke-aviso { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-fondo); color: var(--naranja); font: 700 12.5px var(--mono); }
.poke-tabla-wrap { overflow-x: auto; }
.poke-tabla { width: 100%; border-collapse: collapse; font: 700 12px var(--mono); }
.poke-tabla th, .poke-tabla td { padding: 4px 6px; text-align: center; border-bottom: 1px solid var(--borde); }
.poke-tabla tbody th { text-align: left; color: var(--texto-2); font-family: var(--sans); }
.poke-tabla td.x4 { background: #5c1d10; color: #ffb3a1; } .poke-tabla td.x2 { background: var(--ok-fondo); color: var(--naranja); }
.poke-tabla td.xm { color: #8fd18f; } .poke-tabla td.xc { color: #5fc95f; } .poke-tabla td.x0 { color: var(--texto); background: var(--panel-2); }
.poke-tabla tr.aviso th { color: var(--naranja); }
.poke-mini { flex: none; background: var(--suelo); border-radius: 8px; }
.poke-capturas { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; }
.poke-cap { display: flex; flex-direction: column; align-items: center; padding: 2px; border: 0; border-radius: 8px; background: var(--panel); cursor: pointer; opacity: .45; color: var(--texto-3); }
.poke-cap img { image-rendering: pixelated; filter: grayscale(1); }
.poke-cap .num { font: 700 10px var(--mono); }
.poke-cap.viva { box-shadow: inset 0 -2px 0 var(--borde-2); }
.poke-cap.aqui { opacity: 1; background: var(--pantalla); color: var(--ambar); box-shadow: inset 0 0 0 1px var(--pantalla-borde); }
.poke-cap.aqui img { filter: none; }
/* Hábitos */
.hab form { display: contents; }
.hab .casilla.auto { cursor: default; }
.hab.hecho .est-t-texto b { color: var(--texto); }
.hab-semana { display: flex; gap: 3px; flex: none; }
.hab-semana i { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font: 700 9px var(--mono); font-style: normal; color: var(--texto-4); background: var(--suelo); }
.hab-semana i.si { background: var(--naranja); color: #140a02; }
.hab-semana i.hoy { box-shadow: inset 0 0 0 1px var(--ambar); }
.hab-tipos .g-fila { min-height: 0; padding: 6px 10px; }
@media (max-width: 520px) { .hab-semana i { width: 13px; height: 16px; font-size: 8px; } }
/* Estudios con su barra (como el tracker de antes de Nexo) */
.est-lateral { display: none; }
.est-cuerpo { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 900px) {
  /* A pantalla completa (30-oct-2026): sin la lateral de Tesela, la de
     Estudios va pegada al borde como el explorador de Obsidian. */
  body.inmersivo .armazon { display: block; }
  .contenido.est-con-lateral { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0; align-items: start; max-width: none; padding: 0; margin: 0; }
  .est-lateral { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 10px 24px; background: var(--lateral); border-right: 1px solid var(--borde); box-sizing: border-box; }
  .est-con-lateral .est-cuerpo { padding: 28px 40px 60px; }
  .est-con-lateral .est-cuerpo > .g-cab.mod { display: none; }
}
.est-salir { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; margin-bottom: 6px; border-radius: 7px; color: var(--texto-3); font-size: 13px; text-decoration: none; }
.est-salir svg { width: 16px; height: 16px; }
.est-salir:hover { color: var(--texto); background: var(--panel); text-decoration: none; }
.est-marca { padding: 0 10px 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.est-l-todas { float: right; font: 600 11px var(--sans, inherit); letter-spacing: 0; text-transform: none; color: var(--texto-3); }
.est-arbol summary { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px 0 6px; border-radius: 7px; cursor: pointer; list-style: none; color: var(--texto); font-size: 13.5px; font-weight: 600; }
.est-arbol summary::-webkit-details-marker { display: none; }
.est-arbol summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 4px; border-right: 1.5px solid var(--texto-3); border-bottom: 1.5px solid var(--texto-3); transform: rotate(-45deg); transition: transform .15s; }
.est-arbol[open] > summary::before { transform: rotate(45deg); }
.est-arbol summary:hover { background: var(--panel); }
.est-arbol summary { padding-top: 5px; padding-bottom: 5px; }
.est-arbol summary .crece { display: flex; flex-direction: column; min-width: 0; }
.est-a-nombre, .est-prox { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-prox { font-size: 11px; font-weight: 500; color: var(--texto-3); }
.est-prox.caliente { color: var(--aviso); }
.est-arbol .est-l { min-height: 30px; padding-left: 26px; font-size: 13px; }
.est-arbol .est-l-asig { color: var(--texto-3); }
.est-l-tema .estado-punto { width: 10px; height: 10px; border-width: 1.5px; }
.est-l-tema .crece { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* El tema como nota de Obsidian (30-oct-2026): la nota en el centro, con su
   ancho de lectura, y lo del campus a la derecha. En el móvil, una debajo de
   otra. */
.boveda { display: flex; flex-direction: column; gap: 28px; }
.boveda-nota { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.boveda-lado { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1100px) {
  .boveda { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
  .boveda-nota { max-width: 780px; width: 100%; justify-self: center; }
  .boveda-lado { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}
.boveda-nota h1 { font-size: 32px; }
.boveda-h { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; }
.boveda-h .num { font-size: 13px; color: var(--texto-3); }
.propiedades { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 14px; margin: 0; padding: 14px 16px; border: 1px solid var(--borde); border-radius: 10px; background: var(--panel); align-items: center; }
@media (max-width: 520px) { .propiedades { grid-template-columns: 78px minmax(0, 1fr); padding: 12px; } }
.propiedades dt { font-size: 13px; color: var(--texto-3); }
.propiedades dd { margin: 0; min-width: 0; }
.propiedades .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.prueba { background: var(--acento-fondo); color: var(--texto); border-color: transparent; }
.segmento.corto button { min-height: 36px; font-size: 13px; }
.boveda-texto { min-height: 220px; font-size: 15px; line-height: 1.65; }
.material { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 700px) { .material { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.material li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 10px; border: 1px solid var(--borde); border-radius: 9px; background: var(--panel); }
.material b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.doc { flex: none; display: flex; align-items: flex-end; justify-content: center; width: 30px; height: 36px; padding-bottom: 4px; box-sizing: border-box; border-radius: 4px; background: var(--mal-fondo); color: var(--mal); font: 700 9px var(--mono); }
.lado-bloque { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--borde); border-radius: 10px; background: var(--panel); color: inherit; text-decoration: none; }
a.lado-bloque:hover { border-color: var(--borde-2); text-decoration: none; }
.prox-cifra { display: flex; align-items: baseline; gap: 8px; }
.prox-cifra b { font-size: 48px; line-height: 1; color: var(--t-estudios); }
.prox-cifra span { color: var(--texto-2); }
.eval-barra { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.eval-barra i { display: block; height: 100%; }
.eval-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--texto-2); }
.eval-lista li { display: flex; align-items: center; gap: 8px; }
.eval-lista i { flex: none; width: 8px; height: 8px; border-radius: 4px; }
.eval-lista .num { font-size: 13px; color: var(--texto); }
.p1 { background: var(--t-estudios); }
.p2 { background: color-mix(in srgb, var(--t-estudios) 72%, var(--panel)); }
.p3 { background: color-mix(in srgb, var(--t-estudios) 52%, var(--panel)); }
.p4 { background: color-mix(in srgb, var(--t-estudios) 36%, var(--panel)); }
/* La asignatura como su página del campus */
.aula { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1100px) { .aula { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; } }
.aula-fechas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.aula-fecha { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; }
.aula-fecha:hover { border-color: var(--borde-2); text-decoration: none; }
.aula-fecha b { font-size: 15px; }
.aula-fecha > .pequeno:first-child { color: var(--t-estudios); }
.aula-fecha.caliente { background: var(--aviso-fondo); border-color: transparent; }
.aula-fecha.caliente > .pequeno:first-child { color: var(--aviso); }
.aula-temas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.aula-temas a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; }
.aula-temas a:hover { border-color: var(--borde-2); text-decoration: none; }
.aula-temas b { font-size: 15px; }
.aula-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aula-chips:empty { display: none; }
.aula-chips .chip { min-height: 24px; font-size: 12px; pointer-events: none; }
/* El Mapa del inicio de Estudios */
.mapa { display: flex; flex-direction: column; gap: 10px; }
.mapa-meses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.mapa-mes { display: flex; flex-direction: column; gap: 6px; }
.mapa-mes-n { font-size: 13px; font-weight: 700; color: var(--texto-3); }
.mapa-mes ul, .mapa-prueba ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mapa-fecha { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 6px; border: 1px solid var(--borde); border-radius: 10px; background: var(--panel); color: inherit; text-decoration: none; }
.mapa-fecha:hover { border-color: var(--borde-2); text-decoration: none; }
.mapa-dia { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--acento-fondo); }
.mapa-dia b { font-size: 18px; }
.mapa-fecha.entrega .mapa-dia { background: var(--panel-2); }
.mapa-fecha.caliente .mapa-dia { background: var(--aviso-fondo); color: var(--aviso); }
.mapa-fecha b { font-size: 14px; }
.mapa-falta { flex: none; font-size: 13px; color: var(--texto-3); }
.mapa-pruebas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mapa-prueba { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; }
.mapa-prueba:hover { border-color: var(--borde-2); text-decoration: none; }
.mapa-p-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mapa-p-cab b { font-size: 15px; }
.mapa-p-cab .num { font-size: 22px; font-weight: 700; color: var(--t-estudios); }
.mapa-prueba li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mapa-prueba .estado-punto { width: 10px; height: 10px; border-width: 1.5px; }
.entra-tema { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.entra-tema input { width: 18px; height: 18px; accent-color: var(--t-estudios); }
.p5, .p6, .p7 { background: color-mix(in srgb, var(--t-estudios) 24%, var(--panel)); }
.est-l-rot { margin: 14px 10px 4px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-4); }
.est-l-rot:first-child { margin-top: 0; }
.est-l { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 7px; color: var(--texto-2); font-size: 14px; text-decoration: none; }
.est-l:hover { background: var(--panel); color: var(--texto); text-decoration: none; }
.est-l.activo { background: var(--panel-2); color: var(--texto); font-weight: 700; box-shadow: inset 3px 0 0 var(--ambar); }
.est-l .num { font: 700 11px var(--mono); color: var(--texto-4); }
.est-l-asig .crece { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.est-rec { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; text-decoration: none; color: inherit; box-shadow: inset 3px 0 0 var(--ambar); }
.est-rec-rot { font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ambar); }
.est-rec b { font-size: 16px; }
.marca-padre { color: var(--texto-3); text-decoration: none; } .marca-padre:hover { color: var(--ambar); text-decoration: none; }
@media (min-width: 900px) { .g-cab.mod .marca-g { display: inline; } }
/* Juegos: la casa */
.jue-rango { font-size: 20px !important; }
.jue-movil { width: 100%; }
.aim-linea { width: 80px; height: 28px; flex: none; } .aim-linea polyline { fill: none; stroke: var(--ambar); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* Cabecera de módulo con todas las secciones a la vista (sin «···"). */
.g-tres.todas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-tres.todas.n2, .g-tres.todas.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-cab.mod .g-tres.todas { flex: 1 1 100%; }
@media (min-width: 900px) {
  .g-tres.todas, .g-tres.todas.n2, .g-tres.todas.n4 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .g-cab.mod .g-tres.todas { flex: 1 1 auto; max-width: none; }
}
.val-dos { display: grid; gap: 8px; } @media (min-width: 700px) { .val-dos { grid-template-columns: 1fr 1fr; } }

.g-fila .dato.val-menos { color: var(--mal); }
/* Valorant como tracker.gg */
.val-cab { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 900px) { .val-cab { grid-template-columns: auto auto 1fr; align-items: center; } }
.val-rango { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); color: var(--ambar); }
.val-rango b { display: block; font: 800 22px var(--mono); } .val-rango .sub { color: #c79a3c; }
.val-rango.pico b { font-size: 17px; }
.val-quien { display: flex; flex-direction: column; gap: 4px; }
.val-quien .est-teclas { margin-top: 6px; }
.val-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
@media (min-width: 900px) { .val-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.val-stats small { font: 600 10.5px var(--mono); color: #c79a3c; }
.val-prec { display: grid; gap: 8px; } .val-prec > div { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 8px; }
.val-prec .s-barra.grande { margin: 0; }
.val-graf { position: relative; height: 180px; padding: 8px 8px 8px 96px; }
.val-graf svg { width: 100%; height: 100%; }
.val-graf polyline { fill: none; stroke: var(--ambar); stroke-width: 2; vector-effect: non-scaling-stroke; }
.val-graf line { stroke: var(--borde); stroke-width: 1; vector-effect: non-scaling-stroke; }
.val-graf-et { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 84px; }
.val-graf-et span { position: absolute; transform: translateY(-50%); font: 700 10px var(--mono); color: var(--texto-4); white-space: nowrap; }
.val-fila img { flex: none; border-radius: 6px; background: var(--suelo); }
.val-mapa img { width: 72px; height: 36px; object-fit: cover; }
.val-partida img { flex: none; border-radius: 6px; background: var(--suelo); }
.val-partida.gana { border-left: 3px solid #5fc95f; } .val-partida.pierde { border-left: 3px solid var(--mal); } .val-partida.empata { border-left: 3px solid var(--texto-4); }

/* ══ Catálogo (27-sep-2026): Letterboxd + MyAnimeList + Goodreads ═════════
   Ángel: la barra común de los módulos «le falta personalidad propia». El
   Catálogo lleva la suya: cuatro estanterías hechas con tus portadas, las
   pestañas subrayadas del perfil de Letterboxd, títulos en serif (como los
   de las fichas de Letterboxd y Goodreads) y los pósters como protagonistas.
   El acento es el del módulo (--t-catalogo): estrellas, pestaña activa y
   progreso. Sin fuentes nuevas: la serif es la del sistema. */
.acero { --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; --cat: var(--t-catalogo); }
.cat-titulo, .cat-ficha-titulo, .cat-mes-n { font-family: var(--serif); letter-spacing: 0; text-transform: none; }
.cat-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* La cabecera: marca, estanterías y pestañas. */
.cat-cab { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cat-marca { font: 800 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cat); text-decoration: none; }
.cat-estantes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat-estante { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 10px; color: var(--texto-3); text-decoration: none; background: var(--panel); box-shadow: inset 0 -2px 0 var(--borde); }
.cat-estante:hover { text-decoration: none; background: var(--panel-hover); color: var(--texto); }
.cat-estante[aria-current] { color: var(--texto); box-shadow: inset 0 -3px 0 var(--cat); background: color-mix(in srgb, var(--cat) 9%, var(--panel)); }
.cat-monton { position: relative; width: 58px; height: 64px; }
.cat-monton > * { position: absolute; top: 4px; left: 50%; width: 38px; height: 56px; margin-left: -19px; border-radius: 3px; object-fit: cover; background: var(--panel-2); box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.cat-monton > :nth-child(1) { z-index: 3; }
.cat-monton > :nth-child(2) { transform: translateX(-12px) rotate(-8deg); z-index: 2; filter: brightness(.7); }
.cat-monton > :nth-child(3) { transform: translateX(12px) rotate(8deg); z-index: 1; filter: brightness(.55); }
.cat-monton i:nth-child(1) { background: var(--metal); }
.cat-estante-n { display: flex; align-items: baseline; gap: 5px; font-size: 13px; }
.cat-estante-n small { font: 700 11px var(--mono); color: var(--texto-4); }
.cat-pestanas { display: flex; gap: 22px; border-bottom: 1px solid var(--borde); overflow-x: auto; scrollbar-width: none; }
.cat-pestanas a { padding: 8px 0 10px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); text-decoration: none; white-space: nowrap; }
.cat-pestanas a:hover { color: var(--texto); text-decoration: none; }
.cat-pestanas a[aria-current] { color: var(--texto); box-shadow: inset 0 -2px 0 var(--cat); }

.cat-rot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--borde); font: 700 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--texto-3); }
.cat-rot a, .cat-rot span { font: 700 11.5px var(--mono); letter-spacing: .04em; text-transform: none; color: var(--texto-4); }
.cat-rot a:hover { color: var(--cat); }
.cat-vacio { padding: 28px 18px; border: 1px dashed var(--borde-2); border-radius: 10px; text-align: center; }
.cat-vacio .cat-titulo { font-size: 20px; margin: 0 0 6px; }
.cat-linea { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-linea input { width: 110px; }

/* Pósters: 2:3, con el filo fino de Letterboxd. */
.cat-img { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.cat-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); pointer-events: none; }
.cat-img-nombre { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; text-align: center; font: 13px/1.25 var(--serif); color: var(--texto-3); }
.cat-poster { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: inherit; text-decoration: none; }
.cat-poster:hover { text-decoration: none; }
.cat-poster:hover .cat-img { box-shadow: 0 0 0 2px var(--cat); }
.cat-bajo { display: flex; align-items: center; gap: 4px; min-height: 14px; }
.cat-est { color: var(--cat); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.cat-corazon { color: #ff7b7b; display: inline-grid; } .cat-corazon .cat-ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.cat-otra { color: var(--texto-4); display: inline-grid; } .cat-otra .cat-ico { width: 13px; height: 13px; }
.cat-progreso { display: block; flex: 1; height: 3px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.cat-progreso s { display: block; height: 100%; background: var(--cat); }
.cat-progreso.grande { height: 6px; margin: 8px 0 10px; }
.cat-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 10px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .cat-rejilla { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 20px 14px; } }
.cat-tira { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
@media (min-width: 900px) { .cat-tira { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; } }
.cat-top4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-hueco { aspect-ratio: 2 / 3; border-radius: 4px; border: 1px dashed var(--borde-2); }
.cat-hueco:hover { border-color: var(--cat); }

/* Perfil */
.cat-yo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
.cat-avatar { width: 56px; height: 56px; grid-row: span 2; font-size: 22px; overflow: hidden; }
.cat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cat-yo-nombre { font: 700 20px var(--serif); }
.cat-yo-cifras { display: flex; gap: 18px; margin: 0; }
.cat-yo-cifras div { display: flex; flex-direction: column-reverse; }
.cat-yo-cifras dt { font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-4); }
.cat-yo-cifras dd { margin: 0; font: 800 19px var(--mono); color: var(--texto); }
@media (min-width: 700px) { .cat-yo { grid-template-columns: auto 1fr auto; } .cat-avatar { grid-row: auto; } .cat-yo-cifras { gap: 26px; } }
.cat-perfil { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
@media (min-width: 1000px) { .cat-perfil { grid-template-columns: minmax(0, 1fr) 300px; } }
.cat-resena { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.cat-resena-img { display: block; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; background: var(--panel-2); }
.cat-resena-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-resena .cat-titulo { font-size: 17px; font-weight: 700; color: var(--texto); }
.cat-resena-meta { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; font-size: 12px; color: var(--texto-4); }
.cat-resena-texto { margin: 0; font: 15px/1.55 var(--serif); color: var(--texto-2); white-space: pre-line; }
.cat-reto { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; padding: 12px; margin-bottom: 8px; border-radius: 10px; background: var(--panel); }
.cat-reto b { font: 800 26px var(--mono); color: var(--texto); } .cat-reto b small { font-size: 14px; color: var(--texto-4); }
.cat-reto .cat-progreso { grid-column: 1 / -1; height: 6px; }
.cat-reto .sub { grid-column: 1 / -1; }
.cat-poner-reto summary { cursor: pointer; font-size: 13px; color: var(--texto-3); padding: 6px 0; }
.cat-poner-reto summary:hover { color: var(--cat); }
.cat-lista-t { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; color: inherit; text-decoration: none; }
.cat-lista-t:hover { text-decoration: none; } .cat-lista-t:hover .cat-titulo { color: var(--cat); }
.cat-abanico { display: flex; min-height: 20px; }
.cat-abanico .cat-img { width: 58px; flex: none; box-shadow: 3px 0 8px rgba(0,0,0,.6); }
.cat-abanico .cat-img + .cat-img { margin-left: -22px; }
.cat-lista-n { display: flex; flex-direction: column; } .cat-lista-n .cat-titulo { font-size: 17px; font-weight: 700; }
.cat-listas { display: grid; gap: 4px 24px; } @media (min-width: 800px) { .cat-listas { grid-template-columns: 1fr 1fr; } }

/* Un apartado: buscar, estados de MAL, orden y vista. */
.cat-buscar { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--campo); border: 1px solid var(--borde-2); color: var(--texto-4); }
.cat-buscar:focus-within { border-color: var(--cat); }
.cat-buscar input[type=search] { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 16px; }
.cat-estados { display: flex; gap: 2px; margin: 16px 0 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--borde); }
.cat-estados a { flex: none; padding: 9px 10px; font-size: 13.5px; font-weight: 600; color: var(--texto-3); text-decoration: none; border-radius: 6px 6px 0 0; }
.cat-estados a small { font: 700 11px var(--mono); color: var(--texto-4); margin-left: 3px; }
.cat-estados a:hover { color: var(--texto); text-decoration: none; }
.cat-estados a[aria-current] { color: var(--texto); background: var(--panel); box-shadow: inset 0 -2px 0 var(--cat); }
.cat-estados .cat-descubrir { margin-left: auto; color: var(--cat); }
.cat-filtros .cat-estados { margin: 6px 0; }
.cat-orden { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.cat-orden select { flex: 1; min-width: 0; min-height: 38px !important; font-size: 13px; }
.cat-vistas { flex: none; }
.cat-vistas { display: inline-flex; border: 1px solid var(--borde-2); border-radius: 7px; overflow: hidden; }
.cat-vistas button { border: 0; background: none; color: var(--texto-3); padding: 8px 12px; font: 700 11.5px var(--mono); text-transform: uppercase; cursor: pointer; }
.cat-vistas button[aria-pressed] { background: var(--hueso); color: #171a1e; }
.cat-a-mano { margin-top: 28px; } .cat-a-mano summary { cursor: pointer; font-size: 13px; color: var(--texto-3); }
.cat-a-mano form { margin-top: 10px; }

/* Resultados de buscar y Descubrir. */
.cat-hallazgos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .cat-hallazgos { grid-template-columns: 1fr 1fr; } }
.cat-hallazgo { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 10px; border-radius: 10px; background: var(--panel); }
.cat-hallazgo-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-hallazgo .cat-titulo { font-size: 17px; font-weight: 700; }
.cat-hallazgo .sub { font-size: 12.5px; color: var(--texto-3); }
.cat-hallazgo .recorte-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-anadir { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.cat-anadir .tecla .cat-ico { width: 15px; height: 15px; }

/* La lista de MyAnimeList: número, póster, título, nota, progreso con «+». */
.cat-mal { list-style: none; margin: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--panel); }
.cat-fila { display: grid; grid-template-columns: 26px 42px minmax(0, 1fr) 34px auto; align-items: center; gap: 10px; padding: 6px 10px 6px 0; box-shadow: inset 4px 0 0 var(--borde-2); }
.cat-fila + .cat-fila { border-top: 1px solid var(--borde); }
/* El color del filo es el de cada estado en MAL. */
.cat-fila.est-curso { box-shadow: inset 4px 0 0 #2db039; } .cat-fila.est-hecha { box-shadow: inset 4px 0 0 #3f6ad8; }
.cat-fila.est-pausa { box-shadow: inset 4px 0 0 #f9d457; } .cat-fila.est-dejada { box-shadow: inset 4px 0 0 #a12f31; }
.cat-fila.est-pendiente { box-shadow: inset 4px 0 0 #c3c3c3; }
.cat-estados a.est-curso[aria-current] { box-shadow: inset 0 -2px 0 #2db039; } .cat-estados a.est-hecha[aria-current] { box-shadow: inset 0 -2px 0 #3f6ad8; }
.cat-estados a.est-pausa[aria-current] { box-shadow: inset 0 -2px 0 #f9d457; } .cat-estados a.est-dejada[aria-current] { box-shadow: inset 0 -2px 0 #a12f31; }
.cat-fila-cab { min-height: 0; padding-top: 8px; padding-bottom: 8px; font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-4); background: var(--panel-2); }
.cat-fila-n { text-align: right; font: 700 12px var(--mono); color: var(--texto-4); }
.cat-fila-img { display: block; width: 42px; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; background: var(--panel-2); }
.cat-fila-cab .cat-fila-img { aspect-ratio: auto; background: none; }
.cat-fila-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-fila-t { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.cat-fila-t b { font: 700 15px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-fila-t .sub { font-size: 12px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-fila-t:hover { text-decoration: none; } .cat-fila-t:hover b { color: var(--cat); }
.cat-fila-nota { text-align: center; font: 800 15px var(--mono); color: var(--cat); }
.cat-fila-prog { display: flex; align-items: center; gap: 6px; justify-content: flex-end; font: 700 12px var(--mono); color: var(--texto-2); white-space: nowrap; }
.cat-fila-prog form { display: contents; }
.cat-mas { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: var(--metal); color: var(--texto); cursor: pointer; box-shadow: 0 2px 0 var(--canto); }
.cat-mas:active { transform: translateY(2px); box-shadow: none; }
.cat-mas .cat-ico { width: 16px; height: 16px; }

/* La ficha. */
.cat-ficha { position: relative; }
.cat-fondo { position: relative; margin: -8px -16px 0; height: 190px; overflow: hidden; }
.cat-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cat-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22,24,27,.1), var(--suelo) 96%), linear-gradient(to right, var(--suelo), transparent 12%, transparent 88%, var(--suelo)); }
@media (min-width: 900px) { .cat-fondo { height: 360px; margin: -8px 0 0; border-radius: 10px 10px 0 0; } }
.cat-ficha-cab { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: end; }
.con-fondo .cat-ficha-cab { margin-top: -70px; }
@media (min-width: 900px) { .cat-ficha-cab { grid-template-columns: 210px 1fr; gap: 28px; } .con-fondo .cat-ficha-cab { margin-top: -150px; padding: 0 20px; } }
.cat-ficha-poster { box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.cat-ficha-t { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; min-width: 0; }
.cat-ficha-tipo { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cat); }
.acero .cat-ficha-titulo { margin: 0; font: 700 26px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
@media (min-width: 900px) { .acero .cat-ficha-titulo { font-size: 40px; } }
.cat-porquien { font: 15px var(--serif); color: var(--texto-2); }
.cat-ficha-cuerpo { display: grid; gap: 8px 28px; margin-top: 18px; }
@media (min-width: 900px) { .cat-ficha-cuerpo { grid-template-columns: minmax(0, 1fr) 280px; padding: 0 20px; } .cat-panel { order: 2; } }
.cat-sinopsis { margin: 0 0 12px; font: 16px/1.6 var(--serif); color: var(--texto-2); max-width: 64ch; }
.cat-generos { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-generos span { padding: 3px 8px; border-radius: 4px; background: var(--panel-2); font-size: 12px; color: var(--texto-2); }
.cat-prog-caja { margin-top: 6px; }
.cat-prog-cifra { display: flex; align-items: baseline; gap: 8px; }
.cat-prog-cifra b { font: 800 30px var(--mono); color: var(--texto); }
.cat-prog-cifra span { color: var(--texto-3); font-size: 13px; }
.cat-vez { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.cat-vez-fecha { font: 700 12px var(--mono); color: var(--texto-3); min-width: 110px; }
.cat-vez-borrar { margin-left: auto; }
.cat-vez .cat-resena-texto { flex-basis: 100%; }

/* El panel de acciones de Letterboxd: tres grandes, estrellas y filas. */
.cat-panel { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--panel-2); align-self: start; }
.cat-panel-tres { display: grid; grid-template-columns: repeat(3, 1fr); }
.cat-panel-tres form { display: contents; }
.cat-accion { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px 10px; border: 0; background: none; color: var(--texto-3); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.cat-accion .cat-ico { width: 30px; height: 30px; stroke-width: 1.6; }
.cat-accion:hover { color: var(--texto); }
.cat-accion.activa { color: var(--cat); } .cat-accion.me-gusta.activa { color: #ff7b7b; }
.cat-accion.activa .cat-ico { fill: currentColor; fill-opacity: .25; }
.cat-panel-nota, .cat-panel-estado { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid var(--borde-2); }
.cat-panel-rot { font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-4); }
.cat-panel-estado select { width: 100%; }
.cat-panel-fila { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 0; border-top: 1px solid var(--borde-2); background: none; color: var(--texto-2); font: 14px var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.cat-panel-fila:hover { background: var(--panel-hover); color: var(--texto); text-decoration: none; }

/* Las estrellas con medias: diez radios al revés; cada etiqueta es media estrella. */
.cat-estrellas-in { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0 !important; }
.cat-estrellas-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-estrellas-in label { position: relative; flex: none; margin: 0; padding: 0; gap: 0; min-width: 0; width: 17px; height: 34px; overflow: hidden; cursor: pointer; color: var(--borde-2); }
/* Cada etiqueta enseña media estrella: la izquierda (impares) o la derecha (.der). */
.cat-estrellas-in label::before { content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 50% / 34px 34px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 50% / 34px 34px no-repeat; }
.cat-estrellas-in label.der::before { -webkit-mask-position: -17px 50%; mask-position: -17px 50%; }
.cat-estrellas-in label.der { margin-right: 3px; }
.cat-estrellas-in input:checked ~ label, .cat-estrellas-in label:hover, .cat-estrellas-in label:hover ~ label { color: var(--cat); }
.cat-estrellas-in:hover input:checked ~ label:not(:hover):not(:hover ~ label) { color: var(--borde-2); }
.cat-estrellas-in input:focus-visible + label { outline: 2px solid var(--ambar); }
.hoja-g .cat-estrellas-in { margin-top: 2px; }

/* Diario */
.cat-mes-n { margin: 22px 0 6px; font-size: 20px; font-weight: 700; text-transform: capitalize; }
.cat-diario { list-style: none; margin: 0; padding: 0; border-radius: 10px; background: var(--panel); overflow: hidden; }
.cat-diario li { display: grid; grid-template-columns: 38px 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; }
.cat-diario li + li { border-top: 1px solid var(--borde); }
.cat-dia { text-align: center; font: 800 20px var(--mono); color: var(--texto-3); }
.cat-diario-img { display: block; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; background: var(--panel-2); }
.cat-diario-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-diario-t { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.cat-diario-t b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-diario-t:hover { text-decoration: none; } .cat-diario-t:hover b { color: var(--cat); }
.cat-diario-t .sub { font-size: 12px; color: var(--texto-4); }
.cat-diario-marcas { display: flex; align-items: center; gap: 6px; }

/* Listas */
.cat-lista-cab { margin: 8px 0 18px; }
.cat-rejilla.numerada { counter-reset: puesto; }
.cat-rejilla.numerada .cat-en-lista { counter-increment: puesto; position: relative; }
.cat-rejilla.numerada .cat-en-lista::before { content: counter(puesto); position: absolute; top: -6px; left: -6px; z-index: 2; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--cat); color: #171a1e; font: 800 12px/24px var(--mono); text-align: center; }
.cat-en-lista { display: flex; flex-direction: column; gap: 2px; }
.cat-en-lista-acc { display: flex; justify-content: space-between; } .cat-en-lista-acc form { display: contents; }
.cat-en-lista-acc .tecla { min-height: 28px; padding: 0 4px; font-size: 10.5px; }

/* Cifras */
.cat-cifra-grande { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; margin: 14px 0 16px; }
.cat-cifra-grande b { font: 800 34px var(--mono); color: var(--texto); }
.cat-cifra-grande b:first-child { font-size: 52px; color: var(--cat); }
.cat-cifra-grande span { color: var(--texto-3); }
.cat-cifras-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cat-cifras-tipos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-cifras-tipos a { text-decoration: none; } .cat-cifras-tipos small { font: 600 11px var(--mono); color: #c79a3c; }
.cat-meses, .cat-notas { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 4px; height: 120px; padding: 8px; border-radius: 10px; background: var(--panel); }
.cat-notas { grid-template-columns: repeat(10, 1fr); height: 90px; }
.cat-meses span, .cat-notas span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.cat-meses i, .cat-notas i { display: block; width: 100%; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--cat); }
.cat-meses small { font: 700 9.5px var(--mono); color: var(--texto-4); }
.cat-notas-pie { display: flex; justify-content: space-between; padding: 4px 8px 0; }
.cat-barras { display: grid; gap: 8px; }
.cat-barras div { display: grid; grid-template-columns: minmax(0, 150px) 1fr 32px; align-items: center; gap: 10px; font-size: 13.5px; }
.cat-barras span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-2); }
.cat-barras .cat-progreso { height: 8px; }
.cat-barras b { text-align: right; font-size: 13px; }
.cat-top4 { max-width: 620px; }
.cat-pista { margin: 18px 0 0; }
.cat-fila-cab .cat-fila-nota { font: inherit; color: inherit; }
@media (max-width: 599px) {
  .cat-fila { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding-left: 10px; }
  .cat-fila-n, .cat-fila-nota { display: none; }
  .cat-fila-cab { display: none; }
  .cat-fila-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cat-fila-img { width: 36px; }
}
@media (min-width: 600px) { .cat-solo-movil { display: none; } }
.cat-elegir button { border: 0; background: none; padding: 0; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.cat-elegir .sub { font-size: 12px; color: var(--texto-3); }
.cat-poster.actual .cat-img { box-shadow: 0 0 0 3px var(--cat); }
/* Ahora mismo: lo que estás viendo y leyendo, arriba del perfil. */
.cat-ahora-lista { display: grid; gap: 10px; }
@media (min-width: 800px) { .cat-ahora-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .cat-ahora-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-ahora-t { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 10px; background: var(--panel); }
.cat-ahora-d { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-ahora-d .cat-titulo { font-size: 18px; font-weight: 700; color: var(--texto); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-ahora-donde { font: 800 16px var(--mono); color: var(--cat); }
.cat-ahora-d .cat-progreso { flex: none; height: 4px; }
.cat-ahora-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.cat-ahora-acc form { display: flex; }
.cat-ahora-acc .cat-linea input { width: 90px; min-height: 36px !important; }
.cat-ahora-acc .tecla .cat-ico { width: 15px; height: 15px; }
a.cat-ficha-poster { text-decoration: none; }

/* ══ Pokémon como un Rotom Phone (27-sep-2026) ═══════════════════════════
   Ángel: «rediséñalo flow Rotom móvil, que sean apps tipo Pokédex, juegos,
   teambuilder». El inicio es el teléfono (carcasa roja, la cara de Rotom y
   su pantalla con apps); cada app lleva una barra roja con «Rotom» para
   volver y sus hermanas a mano. Cada app tiene su color de icono. */
.acero { --rotom: #e2462c; --rotom-osc: #a82a17; --rotom-ojo: #8fe6ff; --app-pokedex: #e3350d; --app-partidas: #3d7dca; --app-equipos: #2fa36b; --app-capturar: #e8a800; }
.rotom { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 52px; }
.rotom-salir { align-self: flex-start; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); text-decoration: none; }
.rotom-carcasa { position: relative; padding: 38px 14px 14px; border-radius: 40px; background: linear-gradient(160deg, #f2603f, var(--rotom) 40%, var(--rotom-osc)); box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.25), inset 0 -4px 0 rgba(0,0,0,.25); }
.rotom-cara { position: relative; display: flex; justify-content: center; gap: 46px; height: 64px; margin: 0 auto 10px; }
.rotom-ojo { width: 58px; height: 48px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 34% 30%, #fff 0 16%, transparent 17%), radial-gradient(circle at 50% 60%, #d6f6ff, var(--rotom-ojo) 60%, #3bb4e0); box-shadow: 0 0 18px rgba(143,230,255,.7), inset 0 -4px 0 rgba(0,0,0,.18); animation: rotom-parpadeo 5s infinite; }
.rotom-ojo:first-of-type { transform: rotate(-8deg); } .rotom-ojo:last-of-type { transform: rotate(8deg); }
@keyframes rotom-parpadeo { 0%, 94%, 100% { scale: 1 1; } 97% { scale: 1 .1; } }
@media (prefers-reduced-motion: reduce) { .rotom-ojo { animation: none; } }
.rotom-antena { position: absolute; top: -52px; width: 34px; height: 44px; background: #ffb13b; clip-path: polygon(40% 0, 100% 0, 62% 42%, 90% 42%, 20% 100%, 38% 56%, 8% 56%); filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.rotom-antena.izq { left: 18px; transform: scaleX(-1) rotate(-12deg); } .rotom-antena.der { right: 18px; transform: rotate(-12deg); }
.rotom-dice { margin: 0 6px 12px; padding: 10px 14px; border-radius: 16px; background: rgba(18,6,3,.35); color: #fff4ee; font-size: 14px; line-height: 1.45; }
.rotom-dice b { color: #fff; }
.rotom-pantalla { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 14px; border-radius: 28px; background: #0f1a26; box-shadow: inset 0 0 0 3px #08111a, inset 0 8px 20px rgba(0,0,0,.5); }
.rotom-estado { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px; font: 700 12px var(--mono); color: #cfe6f5; }
.rotom-bateria { display: inline-flex; align-items: center; gap: 6px; }
.rotom-bateria i { position: relative; width: 26px; height: 12px; border: 1.5px solid #cfe6f5; border-radius: 3px; padding: 1px; }
.rotom-bateria i::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: #cfe6f5; border-radius: 0 1px 1px 0; }
.rotom-bateria s { display: block; height: 100%; background: #5fe08a; border-radius: 1px; }
.rotom-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; padding: 8px 2px; }
.rotom-app { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #e9f3fa; text-decoration: none; text-align: center; }
.rotom-app:hover { text-decoration: none; } .rotom-app:hover .rotom-icono { transform: translateY(-2px); }
.rotom-icono { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: var(--c, var(--metal)); box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.2), 0 4px 10px rgba(0,0,0,.35); transition: transform .12s ease-out; }
.rotom-icono svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rotom-app b { font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.rotom-app small { font: 600 10.5px var(--mono); color: #8fb1c8; }
.app-pokedex { --c: var(--app-pokedex); } .app-partidas { --c: var(--app-partidas); } .app-equipos { --c: var(--app-equipos); } .app-capturar { --c: var(--app-capturar); }
.rotom-widget { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 18px; background: #172636; color: #e9f3fa; text-decoration: none; }
a.rotom-widget:hover { background: #1c3043; text-decoration: none; }
.rotom-widget-rot { font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8fb1c8; }
.rotom-widget > b { font-size: 17px; }
.rotom-widget .sub { color: #8fb1c8; font-size: 12.5px; }
.rotom-dex b { font: 800 26px var(--mono); } .rotom-dex b small { font-size: 14px; color: #8fb1c8; }
.rotom-medallas { display: flex; flex-wrap: wrap; gap: 5px; }
.rotom-medallas i { width: 14px; height: 14px; border-radius: 50%; background: #2a3c4f; box-shadow: inset 0 0 0 1.5px #3c5268; }
.rotom-medallas i.si { background: radial-gradient(circle at 35% 30%, #fff5c2, #f0b429 55%, #b77d06); box-shadow: 0 0 6px rgba(240,180,41,.5); }
.rotom-sprites { display: flex; flex-wrap: wrap; gap: 0; }
.rotom-sprites img { margin: -6px -4px; object-fit: contain; }

/* La barra de cada app: roja como el teléfono. */
.rotom-ojitos { display: inline-flex; gap: 4px; } .rotom-ojitos i { width: 11px; height: 9px; border-radius: 50%; background: var(--rotom-ojo); box-shadow: 0 0 6px rgba(143,230,255,.8); }
/* Dentro de una app ya no hace falta repetir «Pokémon» encima del título. */

/* Los 18 tipos con sus colores de siempre. */
.tp { display: inline-block; padding: 2px 7px; border-radius: 5px; font: 700 11px/1.4 var(--sans); font-style: normal; color: #15171a; background: var(--tc, var(--panel-2)); white-space: nowrap; }
.t-normal { --tc: #b8b79a; } .t-fire { --tc: #f08a3c; } .t-water { --tc: #6f9cf2; } .t-electric { --tc: #f7d02c; } .t-grass { --tc: #7ac74c; } .t-ice { --tc: #96d9d6; }
.t-fighting { --tc: #c22e28; color: #fff; } .t-poison { --tc: #a33ea1; color: #fff; } .t-ground { --tc: #e2bf65; } .t-flying { --tc: #a98ff3; } .t-psychic { --tc: #f95587; } .t-bug { --tc: #a6b91a; }
.t-rock { --tc: #b6a136; } .t-ghost { --tc: #735797; color: #fff; } .t-dragon { --tc: #6f35fc; color: #fff; } .t-dark { --tc: #705746; color: #fff; } .t-steel { --tc: #b7b7ce; } .t-fairy { --tc: #e39ac0; }

/* ── Teambuilder ── */
.eq-juego { margin-bottom: 10px; } .eq-juego select { width: 100%; }
.eq-huecos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.eq-hueco.vacio { min-height: 64px; flex-direction: row; gap: 10px; }
@media (min-width: 640px) { .eq-huecos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eq-hueco.vacio { min-height: 168px; flex-direction: column; } }
@media (min-width: 1100px) { .eq-huecos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.eq-hueco { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 168px; padding: 8px 6px; border-radius: 14px; background: var(--panel); text-align: center; }
.eq-hueco.vacio { justify-content: center; border: 1.5px dashed var(--borde-2); background: none; }
.eq-vacio { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--borde-2); background: linear-gradient(var(--borde-2), var(--borde-2)) center / 100% 3px no-repeat; }
.eq-hueco.vacio .sub { font-size: 11.5px; color: var(--texto-4); }
.eq-quitar { border: 0; padding: 0; background: radial-gradient(circle, var(--panel-2) 0 58%, transparent 60%); border-radius: 50%; cursor: pointer; }
.eq-quitar img { display: block; width: 84px; height: 84px; object-fit: contain; }
.eq-quitar:hover img { opacity: .55; }
.eq-nombre { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.eq-tipos { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.eq-tipos .tp { font-size: 10px; padding: 1px 5px; }
.eq-hueco-acc { display: flex; gap: 4px; align-items: center; margin-top: auto; }
.eq-shiny { width: 30px; height: 30px; border: 1px solid var(--borde-2); border-radius: 8px; background: none; color: var(--texto-4); font-size: 15px; cursor: pointer; }
.eq-shiny[aria-pressed="true"] { color: #ffd84d; border-color: #ffd84d; background: rgba(255,216,77,.12); }
/* El set, como en Showdown: habilidad, objeto, naturaleza, cuatro movimientos y sus estadísticas base. */
.eq-set { display: grid; gap: 4px; width: 100%; margin-top: 4px; text-align: left; }
.eq-set select, .eq-set input { width: 100%; min-width: 0; min-height: 30px !important; padding: 2px 6px !important; font-size: 12px !important; }
.eq-movs { display: grid; grid-template-columns: 1fr; gap: 4px; } @media (min-width: 520px) { .eq-movs { grid-template-columns: 1fr 1fr; } }
.eq-mov-c { display: flex; align-items: center; gap: 4px; min-width: 0; }
.eq-mov-c .tp { flex: none; width: 8px; height: 22px; padding: 0; border-radius: 3px; }
.eq-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; font: 700 11.5px/1.2 var(--mono, monospace); font-variant-numeric: tabular-nums; text-align: center; }
.eq-stats small { display: block; font: 600 9.5px/1.2 var(--sans); color: var(--texto-4); }
.eq-set > .sub { font-size: 11px; }
.eq-st-tabla { display: grid; gap: 3px; margin-top: 2px; }
.eq-st-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.eq-st-cab label { display: flex; align-items: center; gap: 6px; } .eq-st-cab .eq-nivel { width: 58px !important; }
.eq-quedan { font: 700 11.5px/1 var(--sans); color: var(--texto-4); font-variant-numeric: tabular-nums; } .eq-quedan.agotados { color: var(--texto-2, inherit); }
.eq-st { display: grid; grid-template-columns: 44px 30px minmax(0, 1fr) 26px 44px 38px; align-items: center; gap: 6px; font: 600 12px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.eq-st-tit { font-size: 10px; color: var(--texto-4); } .eq-st-tit span:nth-child(3) { text-align: center; }
.eq-st-b { color: var(--texto-4); text-align: right; } .eq-st-t { font-weight: 800; text-align: right; }
.eq-st .eq-ev { width: 100%; min-height: 0 !important; padding: 0 !important; accent-color: var(--t-juegos, #e04a2a); }
.eq-st .eq-iv { min-height: 26px !important; padding: 1px 4px !important; text-align: center; }
.eq-st-ev { color: var(--texto-3, inherit); text-align: right; }
.eq-st.sube .eq-st-n { color: #6fcf8f; } .eq-st.sube .eq-st-n::after { content: " +"; }
.eq-st.baja .eq-st-n { color: var(--mal); } .eq-st.baja .eq-st-n::after { content: " −"; }
.eq-sd { margin-top: 14px; } .eq-sd textarea, .eq-sd-exp textarea { width: 100%; font: 12px/1.45 var(--mono, monospace); }
.eq-sd-imp { display: grid; gap: 6px; justify-items: start; } .eq-sd-imp .campo-g { width: 100%; }
.eq-sd-exp { display: block; margin-top: 10px; }
.eq-tera { min-height: 30px !important; max-width: 92px; padding: 2px 4px !important; font-size: 11px !important; }
.eq-botones { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.eq-guardar { display: flex; gap: 8px; } .eq-guardar input { flex: 1; min-width: 0; }
.eq-form textarea { width: 100%; margin-top: 8px; }
.eq-analisis { margin-top: 6px; }
.eq-tabla th .tp { font-size: 10.5px; }
.eq-tabla td.malo { color: var(--mal); font-weight: 800; } .eq-tabla td.bueno { color: #6fcf8f; font-weight: 800; } .eq-tabla td.nada { color: var(--mal); }
.eq-tabla thead img { object-fit: contain; }
.eq-filtros { display: grid; gap: 8px; } @media (min-width: 700px) { .eq-filtros { grid-template-columns: 2fr 1fr 1fr; } }
.eq-marcas { margin: 10px 0 !important; }
.eq-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.eq-poke { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 2px 6px; border: 0; border-radius: 10px; background: var(--panel); color: var(--texto); cursor: pointer; }
.eq-poke:hover { background: var(--panel-hover); }
.eq-poke img { width: 72px; height: 72px; object-fit: contain; }
.eq-poke span { position: absolute; top: 4px; left: 6px; font-size: 10px; color: var(--texto-4); }
.eq-poke b { font-size: 11.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-poke.en-equipo { box-shadow: inset 0 0 0 2px var(--app-equipos); background: color-mix(in srgb, var(--app-equipos) 14%, var(--panel)); }
.eq-poke.cambio b { color: var(--texto-3); }
.eq-poke[hidden] { display: none; }
.eq-fuente { margin-top: 10px; font-size: 12px; color: var(--texto-4); }
.eq-guardado .rotom-sprites img { margin: -4px -6px; }
@media (max-width: 480px) { .rotom-app-nombre { font-size: 13.5px; } .rotom-otras { gap: 4px; } .rotom-mini { width: 30px; height: 30px; } }

/* ══ Perfil social (27-sep-2026): actividad, clasificación y chats ═══════
   Su personalidad es la de una red social: tus amigos en círculos arriba
   (como las historias), un muro, un podio y burbujas de chat. */
.per-cab { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.per-yo { display: flex; align-items: center; gap: 12px; }
.per-avatar .avatar { width: 56px; height: 56px; font-size: 22px; }
.per-yo-t { display: flex; flex-direction: column; } .per-yo-t b { font-size: 20px; } .per-yo-t .sub { font-size: 12.5px; color: var(--texto-3); }
.per-amigos { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.per-amigos a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; flex: none; color: var(--texto-2); text-decoration: none; }
.per-amigos small { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.per-anillo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--naranja), var(--ambar), #ff4f8b, var(--naranja)); }
.per-anillo .avatar { width: 100%; height: 100%; border: 3px solid var(--suelo); font-size: 18px; }
.per-mas .per-anillo { background: var(--panel-2); color: var(--texto-3); font-size: 24px; font-weight: 300; }
.per-pestanas { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: var(--panel); }
.per-pestanas a { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 40px; border-radius: 9px; font: 700 12.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--texto-3); text-decoration: none; }
.per-pestanas a[aria-current] { background: var(--hueso); color: #171a1e; }
.per-pestanas .insignia { position: static; }
.per-vacio { padding: 22px 16px; border: 1px dashed var(--borde-2); border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.per-vacio p { margin: 0; color: var(--texto-2); }
.per-feed { margin-bottom: 22px; }
.per-eventos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.per-evento { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); }
.per-evento-av .avatar { width: 40px; height: 40px; }
.per-evento-t p { margin: 0 0 2px; font-size: 14.5px; line-height: 1.4; } .per-evento-t a { color: inherit; }
.per-evento-t .sub { font-size: 12px; color: var(--texto-4); }
.per-mod { color: var(--tono); font-weight: 700; }

.cla-ambitos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.cla-ambitos a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--panel); color: var(--texto-2); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.cla-ambitos a[aria-current] { background: var(--hueso); color: #171a1e; }
.cla-ambitos .cla-nuevo { color: var(--ambar); background: none; border: 1px dashed var(--borde-2); }
.cla-filtros { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-bottom: 12px; }
.cla-global { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--pantalla); box-shadow: inset 0 0 0 1px var(--pantalla-borde); color: var(--ambar); font-size: 13.5px; }
.cla-tabla { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cla-fila { display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--panel); }
.cla-fila.yo { box-shadow: inset 0 0 0 2px var(--ambar); }
.cla-pos { text-align: center; font: 800 18px var(--mono); color: var(--texto-3); }
.cla-av .avatar { width: 40px; height: 40px; }
.cla-nombre { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cla-valor { font: 800 18px var(--mono); color: var(--texto); } .cla-valor small { font-size: 11px; color: var(--texto-4); }
.cla-fila.podio .cla-pos { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #171a1e; font-size: 15px; }
.cla-fila.p1 .cla-pos { background: radial-gradient(circle at 35% 30%, #fff3b0, #f0b429 60%, #a8740a); }
.cla-fila.p2 .cla-pos { background: radial-gradient(circle at 35% 30%, #fff, #c9ccd3 60%, #858a94); }
.cla-fila.p3 .cla-pos { background: radial-gradient(circle at 35% 30%, #ffd9b0, #cd7f32 60%, #7e4a16); }
.cla-fila.p1 { background: linear-gradient(90deg, rgba(240,180,41,.16), var(--panel) 60%); }

.chat-lista { list-style: none; margin: 0 0 8px; padding: 0; border-radius: 12px; background: var(--panel); overflow: hidden; }
.chat-lista li + li { border-top: 1px solid var(--borde); }
.chat-conv { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; color: inherit; text-decoration: none; }
.chat-conv:hover { background: var(--panel-hover); text-decoration: none; }
.chat-conv-av .avatar { width: 48px; height: 48px; font-size: 18px; }
.chat-conv-t { display: flex; flex-direction: column; min-width: 0; } .chat-conv-t b { font-size: 15.5px; }
.chat-conv-t .sub { font-size: 13px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv.nuevo .chat-conv-t .sub { color: var(--texto); font-weight: 600; }
.chat-conv-d { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .chat-conv-d .insignia { position: static; }
.chat-grupo-av { position: relative; display: block; width: 48px; height: 48px; }
.chat-grupo-av .avatar { position: absolute; width: 30px; height: 30px; font-size: 12px; border: 2px solid var(--panel); }
.chat-grupo-av .avatar:nth-child(1) { left: 0; top: 0; } .chat-grupo-av .avatar:nth-child(2) { right: 0; top: 4px; } .chat-grupo-av .avatar:nth-child(3) { left: 9px; bottom: 0; }
.chat-amigos { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-amigo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: var(--panel); color: var(--texto); cursor: pointer; font-size: 14px; }
.chat-amigo:hover { background: var(--panel-hover); }

/* Una conversación: ocupa la pantalla, con el cuadro de escribir abajo. */
.contenido:has(> .chat-cab) { display: flex; flex-direction: column; height: calc(100dvh - 150px); min-height: 420px; }
@media (min-width: 900px) { .contenido:has(> .chat-cab) { height: calc(100dvh - 60px); } }
.chat-cab { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--borde); }
.chat-cab-av .avatar { width: 40px; height: 40px; } .chat-cab-av .chat-grupo-av { width: 40px; height: 40px; }
.chat-cab-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .chat-cab-t b { font-size: 16px; }
.chat-cab-t .sub { font-size: 12px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-mensajes { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 2px; }
.chat-vacio { margin: auto; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 84%; }
.msg.mio { align-self: flex-end; align-items: flex-end; }
.msg.seguido { margin-top: -3px; }
.msg-quien { font-size: 11.5px; font-weight: 700; color: var(--ambar); margin: 4px 0 2px 10px; }
.msg-burbuja { position: relative; padding: 8px 12px 18px; border-radius: 16px 16px 16px 5px; background: var(--panel-2); min-width: 64px; }
.msg.mio .msg-burbuja { border-radius: 16px 16px 5px 16px; background: #3a2e19; box-shadow: inset 0 0 0 1px #5a4520; }
.msg-burbuja p { margin: 0; font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.msg-hora { position: absolute; right: 10px; bottom: 4px; font-size: 10px; color: var(--texto-4); }
.chat-escribir { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--borde); }
.chat-escribir textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; field-sizing: content; }

/* Lo compartido dentro de una burbuja. */
.adj { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 6px; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.25); min-width: 220px; }
.adj-cab { display: flex; align-items: center; gap: 10px; }
.adj-poster { width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.adj-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--metal); color: var(--ambar); }
.adj-t { display: flex; flex-direction: column; min-width: 0; } .adj-t b { font-size: 15px; } .adj-t .sub { font-size: 12px; color: var(--texto-3); }
.adj .cat-abanico .cat-img { width: 40px; }
.adj-ejs { margin: 0; padding-left: 20px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; } .adj-ejs .sub { color: var(--texto-4); }
.adj-acc { display: flex; flex-wrap: wrap; gap: 6px; } .adj-acc form { display: contents; }
.per-anillo .avatar, .per-avatar .avatar, .chat-grupo-av .avatar, .chat-conv-av .avatar, .chat-cab-av .avatar, .cla-av .avatar, .per-evento-av .avatar { border-radius: 50%; }
@media (max-width: 480px) {
  .per-pestanas a { font-size: 11px; letter-spacing: .02em; }
  .contenido:has(> .chat-cab) { height: calc(100dvh - 118px); }
  .chat-cab .tecla.plana { padding: 0 6px; font-size: 10.5px; }
}
.chat-cab-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Teambuilder completo (27-sep, noche): formas, figuras, sexo y Gigamax. */
.eq-filtros { grid-template-columns: 1fr 1fr; } @media (min-width: 900px) { .eq-filtros { grid-template-columns: 2fr repeat(3, 1fr); } }
.eq-filtros #eq-buscar { grid-column: 1 / -1; } @media (min-width: 900px) { .eq-filtros #eq-buscar { grid-column: auto; } }
.eq-figuras { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.eq-figura { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--borde-2); cursor: pointer; }
.eq-figura input { position: absolute; opacity: 0; pointer-events: none; }
.eq-figura img { filter: invert(.85); opacity: .7; }
.eq-figura:has(input:checked) { background: var(--hueso); border-color: var(--hueso); } .eq-figura:has(input:checked) img { filter: none; opacity: 1; }
.eq-seccion-n { margin: 16px 0 6px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
.eq-seccion[hidden] { display: none; }
.eq-poke small { font-size: 9.5px; color: var(--texto-4); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-forma { font-size: 10.5px; color: var(--texto-3); min-height: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-sexo, .eq-gmax { width: 30px; height: 30px; border: 1px solid var(--borde-2); border-radius: 8px; background: none; color: var(--texto-3); font-size: 14px; font-weight: 800; cursor: pointer; }
.eq-sexo { color: #ff8fb7; } .eq-sexo[aria-pressed="true"] { color: #7fb4ff; }
.eq-gmax[aria-pressed="true"] { color: #ff5a5a; border-color: #ff5a5a; background: rgba(255,90,90,.12); }
.eq-sexo[hidden], .eq-gmax[hidden] { display: none; }

/* ══ Lateral del PC: riel plegable (27-sep-2026, repaso general) ═══════════
   Ángel, con Estudios abierto: «me gustaría que esto se viese en toda la
   pantalla para focusear más, y abajo a la izquierda se ve todo amontonado».
   Plegada (por defecto) ocupa 68 px: iconos de grupo y el punto de cada
   módulo, con su nombre al pasar el ratón (se despliega por encima, sin mover
   la página). El botón de arriba la deja fija abierta. */
.lat-cab { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 0 10px; }
.lat-cab .marca { padding: 4px 12px; }
.marca-corta { display: none; }
.lat-plegar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--texto-4); cursor: pointer; }
.lat-plegar:hover { background: var(--panel); color: var(--texto); }
.lat-plegar[aria-pressed="false"] { color: var(--texto-2); }
.lat-ico { display: inline-grid; place-items: center; width: 22px; flex: none; }
.lateral .nav a .punto { margin: 0 6px; }
.nav-det > summary .lat-ico { color: var(--texto-3); }
.nav-det > summary { gap: 10px; }
.nav-pie { flex-direction: column; gap: 2px; }
.nav-pie .pie-chats, .nav-pie .yo { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--texto-2); font-weight: 600; font-size: 14px; text-decoration: none; position: relative; }
.nav-pie .pie-chats:hover, .nav-pie .yo:hover { background: var(--panel); }
.nav-pie .yo.activo { background: var(--panel-2); color: var(--texto); }
.nav-pie .insignia { position: static; margin-left: auto; }
.nav-pie .yo .avatar { width: 28px; height: 28px; font-size: 12px; border-radius: 50%; }
@media (min-width: 900px) {
  /* Sin tope de ancho: la pantalla entera es para el contenido. */
  .contenido { max-width: none; }
  .armazon:has(> .lateral.riel) { grid-template-columns: 68px minmax(0, 1fr); }
  .lateral { z-index: 60; transition: width .16s ease-out, box-shadow .16s; }
  .lateral.riel { width: 68px; padding: 22px 10px; overflow-x: hidden; }
  .lateral.riel .nt, .lateral.riel .nav-det > summary::after, .lateral.riel .nav-det > summary::before { display: none; }
  .lateral.riel .marca-corta { display: inline; }
  .lateral.riel .lat-cab { flex-direction: column; gap: 8px; }
  .lateral.riel .lat-cab .marca { padding: 4px 0; text-align: center; }
  .lateral.riel .nav a, .lateral.riel .nav-det > summary, .lateral.riel .nav-pie a { justify-content: center; padding: 0; }
  .lateral.riel .nav a .punto { margin: 0; }
  .lateral.riel .nav-det > summary { padding: 12px 0 4px; }
  .lateral.riel .nav-pie .insignia { position: absolute; top: 2px; right: 6px; margin: 0; }
  /* Al pasar el ratón (o con el teclado dentro): desplegada por encima. */
  .lateral.riel:hover, .lateral.riel:focus-within { width: 240px; padding: 22px 16px; box-shadow: 14px 0 34px rgba(0,0,0,.55); }
  .lateral.riel:hover .nt, .lateral.riel:focus-within .nt { display: inline; }
  .lateral.riel:hover .marca-corta, .lateral.riel:focus-within .marca-corta { display: none; }
  .lateral.riel:hover .lat-cab, .lateral.riel:focus-within .lat-cab { flex-direction: row; }
  .lateral.riel:hover .nav a, .lateral.riel:focus-within .nav a, .lateral.riel:hover .nav-pie a, .lateral.riel:focus-within .nav-pie a { justify-content: flex-start; padding: 0 12px; }
  .lateral.riel:hover .nav a .punto, .lateral.riel:focus-within .nav a .punto { margin: 0 6px; }
  .lateral.riel:hover .nav-det > summary, .lateral.riel:focus-within .nav-det > summary { justify-content: flex-start; padding: 10px 12px 2px; }
  .lateral.riel:hover .nav-det > summary::after, .lateral.riel:focus-within .nav-det > summary::after,
  .lateral.riel:hover .nav-det > summary::before, .lateral.riel:focus-within .nav-det > summary::before { display: block; }
  .lateral.riel:hover .nav-pie .insignia, .lateral.riel:focus-within .nav-pie .insignia { position: static; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .lateral { transition: none; } }
/* Repaso de la distribución en pantalla grande (27-sep-2026). */
@media (min-width: 900px) {
  /* Las pestañas de cada módulo miden lo que su texto, no la pantalla entera
     (en 1.920 px, «Hoy» llegaba a medir 900 px). */
  .g-tres.todas, .g-tres.todas.n2, .g-tres.todas.n4 { grid-auto-columns: minmax(112px, max-content); justify-content: start; }
  .g-cab.mod .g-tres.todas { flex: 0 1 auto; }
  .g-tres.todas a { padding: 0 20px; }
  .per-pestanas { max-width: 560px; }
  .per-cab { max-width: none; }
  /* Ocio y Personal: puertas grandes a cada módulo, no tarjetitas. */
  .lista-modulos.portal { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .lista-modulos.portal .modulo-mini { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 170px; padding: 20px; }
  .lista-modulos.portal .bola { width: 56px; height: 56px; border-radius: 28px; }
  .lista-modulos.portal .bola span { width: 18px; height: 18px; border-radius: 9px; }
  .lista-modulos.portal b { font-size: 22px; }
  .lista-modulos.portal .tenue { font-size: 14px; }
}

/* ══ Cada módulo con su personalidad (27-sep-2026) ════════════════════════
   Ángel: «acaba de hacer con personalidad cada uno de los módulos que no
   hemos tocado y sus navegaciones». Cada uno se parece a la app de su mundo;
   el chasis (Acero) y el color de acento de cada módulo se mantienen. */

/* Juegos: el inicio de una consola. */
.consola { margin: 0 0 18px; }
/* Todos los cartuchos iguales y en una fila que cabe (2-oct-2026): antes el
   activo crecía, la fila no cabía en el móvil y los botones saltaban de sitio
   al cambiar de pantalla. El elegido se marca con el aro, no con el tamaño. */
.consola-fila { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 620px; padding: 6px 2px 4px; }
.cartucho { --c: #3b4250; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; color: var(--texto-3); text-decoration: none; }
.cartucho:hover { text-decoration: none; color: var(--texto); }
.cartucho-ico { display: grid; place-items: center; width: 100%; max-width: 68px; aspect-ratio: 1; border-radius: 28%; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #fff 15%), var(--c)); color: #fff; box-shadow: 0 5px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s ease-out; }
.cartucho-ico svg { width: 46%; height: auto; }
.cartucho b { max-width: 100%; font-size: 11.5px; letter-spacing: -.01em; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartucho[aria-current] { color: var(--texto); }
.cartucho[aria-current] .cartucho-ico { box-shadow: 0 0 0 2px var(--suelo), 0 0 0 4px #fff, 0 6px 16px rgba(0,0,0,.45); }
.cartucho:not([aria-current]):hover .cartucho-ico { transform: translateY(-2px); }
.c-resumen { --c: #4a5566; } .c-steam { --c: #1b3a5c; } .c-pokemon { --c: #d9432b; } .c-movil { --c: #1f9d6b; } .c-clash { --c: #c47f12; } .c-valorant { --c: #e0404e; } .c-aimlabs { --c: #6a4de0; }
@media (prefers-reduced-motion: reduce) { .cartucho-ico { transition: none; } }
.steam-menu { display: flex; gap: 22px; margin: -6px 0 16px; padding: 10px 14px; border-radius: 8px; background: linear-gradient(90deg, #171d25, #1b2838); overflow-x: auto; scrollbar-width: none; }
.steam-menu a { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8f98a0; text-decoration: none; white-space: nowrap; }
.steam-menu a:hover { color: #fff; } .steam-menu a[aria-current] { color: #1a9fff; }

/* Inventario: tiras de etiquetadora Dymo. */
.dymo-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.dymo { display: inline-block; padding: 6px 12px 5px; border-radius: 3px; background: #121416; color: #e8e6e0; font: 800 14px/1 var(--mono); letter-spacing: .18em; text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.25), 0 -1px 0 rgba(0,0,0,.8); box-shadow: 0 2px 4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.dymo-marca { background: var(--t-inventario); color: #2a2215; font-size: 16px; transform: rotate(-1.5deg); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.dymo-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.dymo-nav .dymo:nth-child(2) { transform: rotate(1deg); }
.dymo-nav .dymo:hover { text-decoration: none; color: #fff; }
.dymo-nav .dymo[aria-current] { background: #b3261e; color: #fff; }

/* Finanzas: una tarjeta de banco y sus acciones. */
.banco { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
@media (min-width: 900px) { .banco { flex-direction: row; align-items: center; gap: 28px; } }
.banco-tarjeta { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1.586; border-radius: 16px; padding: 18px 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--t-finanzas) 55%, transparent), transparent 60%), linear-gradient(135deg, #2b2a26, #121314);
  box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); color: #f3eee2; }
@media (min-width: 900px) { .banco-tarjeta { width: 300px; } }
.banco-chip { position: absolute; left: 20px; top: 52px; width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #e9d18c, #b18d3b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.banco-marca { position: absolute; right: 20px; top: 16px; font: 800 16px var(--mono); letter-spacing: .2em; }
.banco-num { position: absolute; left: 20px; bottom: 44px; font-size: 15px; letter-spacing: .12em; opacity: .9; }
.banco-tipo { position: absolute; left: 20px; bottom: 16px; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.banco-acciones { display: flex; gap: 18px; }
.banco-acciones a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--texto-3); text-decoration: none; }
.banco-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--panel); color: var(--texto-2); }
.banco-acciones a:hover .banco-ico { background: var(--panel-hover); }
.banco-acciones a[aria-current] { color: var(--texto); } .banco-acciones a[aria-current] .banco-ico { background: var(--t-finanzas); color: #231c05; }

/* Diario: un cuaderno. */
.cuaderno-cab { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 22px 16px 0; border-radius: 10px 10px 0 0; background: #1f2125; border-bottom: 2px solid var(--t-diario); }
.cuaderno-espiral { position: absolute; left: 14px; right: 14px; top: 6px; height: 10px; background: radial-gradient(circle at 50% 50%, var(--suelo) 0 3.5px, transparent 4px) 0 0 / 22px 10px repeat-x; }
.cuaderno-espiral::after { content: ""; position: absolute; inset: -6px 0 auto; height: 8px; background: repeating-linear-gradient(90deg, transparent 0 7px, #8a8d93 7px 9px, transparent 9px 22px); opacity: .7; }
.cuaderno-titulo b { display: block; padding-bottom: 12px; font: 700 26px var(--serif); }
.cuaderno-indice { display: flex; gap: 4px; }
.cuaderno-indice a { padding: 8px 16px 7px; border-radius: 8px 8px 0 0; background: #2c2f34; color: var(--texto-3); font: 600 14px var(--serif); text-decoration: none; }
.cuaderno-indice a[aria-current] { background: var(--t-diario); color: #17181b; }
/* Lo que se escribe: serif y renglones. */
.contenido:has(> .cuaderno-cab) textarea { font: 17px/28px var(--serif) !important; background: repeating-linear-gradient(transparent 0 27px, rgba(195,197,203,.14) 27px 28px), var(--campo) !important; background-attachment: local !important; padding-top: 6px !important; }
.contenido:has(> .cuaderno-cab) .lista .fila b { font-family: var(--serif); font-size: 16px; }

/* Idiomas: botones redondos y gorditos, en camino. */
.duo-cab { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .duo-cab { flex-direction: row; align-items: center; justify-content: space-between; } }
.duo-marca { font: 800 26px var(--sans); color: var(--t-idiomas); letter-spacing: -.01em; }
.duo-camino { display: flex; gap: 22px; align-items: flex-start; }
.duo-camino a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--texto-3); text-decoration: none; }
.duo-camino a:nth-child(2) { margin-top: 14px; }
.duo-boton { display: grid; place-items: center; width: 62px; height: 58px; border-radius: 50%; background: #3a3f46; color: #c9ccd2; box-shadow: 0 6px 0 #25292e; transition: transform .08s, box-shadow .08s; }
.duo-camino a:active .duo-boton { transform: translateY(6px); box-shadow: 0 0 0 #25292e; }
.duo-camino a[aria-current] { color: var(--texto); }
.duo-camino a[aria-current] .duo-boton { background: var(--t-idiomas); color: #3b0d0d; box-shadow: 0 6px 0 #a4474a; }

/* Cuerpo: la línea de pulso y píldoras (Oura, WHOOP). */
.pulso-cab { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .pulso-cab { flex-direction: row; align-items: center; justify-content: space-between; } }
.pulso-titulo { display: flex; align-items: center; gap: 10px; }
.pulso-padre { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-4); text-decoration: none; }
.pulso-padre::after { content: " /"; }
.pulso-titulo b { font: 800 24px var(--sans); }
.pulso-linea { width: 90px; height: 24px; }
.pulso-linea polyline { fill: none; stroke: var(--t-salud); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 160; animation: pulso 2.4s linear infinite; }
@keyframes pulso { from { stroke-dashoffset: 160; } to { stroke-dashoffset: -160; } }
@media (prefers-reduced-motion: reduce) { .pulso-linea polyline { animation: none; stroke-dasharray: none; } }
.pulso-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pulso-nav a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--panel); color: var(--texto-3); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.pulso-nav a[aria-current] { background: color-mix(in srgb, var(--t-salud) 22%, var(--panel)); color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--t-salud); }

/* Aprendizaje: un muro de diplomas. */
.diploma-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sello svg path:first-child { fill: var(--t-aprendizaje); } .sello-v { fill: none; stroke: #1b1740; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.diploma-t { display: flex; flex-direction: column; } .diploma-t b { font: 700 26px var(--serif); } .diploma-t span { color: var(--texto-3); font-size: 13.5px; }
.cintas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding: 2px; }
.cinta { flex: none; position: relative; padding: 8px 18px 8px 14px; background: var(--panel); color: var(--texto-3); font-weight: 700; font-size: 13.5px; text-decoration: none; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }
.cinta small { color: var(--texto-4); margin-left: 4px; }
.cinta[aria-current] { background: var(--t-aprendizaje); color: #1b1740; } .cinta[aria-current] small { color: #3a3480; }
.apr-item.diploma { position: relative; background: linear-gradient(135deg, color-mix(in srgb, var(--t-aprendizaje) 12%, var(--panel)), var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-aprendizaje) 45%, transparent); }
.apr-item.diploma::after { content: ""; position: absolute; right: 14px; bottom: 12px; width: 44px; height: 44px; opacity: .9;
  background: var(--t-aprendizaje); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 3l4.5 4 6-1 2 5.7 5.7 2-1 6 4 4.5-4 4.5 1 6-5.7 2-2 5.7-6-1L24 45l-4.5-4-6 1-2-5.7-5.7-2 1-6-4-4.5 4-4.5-1-6 5.7-2 2-5.7 6 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 3l4.5 4 6-1 2 5.7 5.7 2-1 6 4 4.5-4 4.5 1 6-5.7 2-2 5.7-6-1L24 45l-4.5-4-6 1-2-5.7-5.7-2 1-6-4-4.5 4-4.5-1-6 5.7-2 2-5.7 6 1z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Estudios en el móvil: separadores de agenda. */
.agenda-cab .marca-g { color: var(--t-estudios); }
.agenda { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex-basis: 100%; }
.agenda-grupo { flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 0; border-left: 3px solid var(--t-estudios); padding-left: 8px; }
.agenda-rot { font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-4); writing-mode: vertical-rl; transform: rotate(180deg); }
.agenda a { padding: 8px 11px; border-radius: 8px; color: var(--texto-3); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.agenda a[aria-current] { background: var(--t-estudios); color: #0f1a33; }

/* Hábitos (elegido el 27-sep: «el 1 y el 2»): la semana como una libreta de
   hábitos (Loop) y un mapa de calor por hábito (GitHub). */
.rachas-cab { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.rachas-cab b { font: 800 26px var(--sans); } .rachas-cab span { color: var(--texto-3); font-weight: 700; }
.hab-tabla-wrap { overflow-x: auto; border-radius: 12px; background: var(--panel); }
.hab-tabla { width: 100%; border-collapse: collapse; }
.hab-tabla th, .hab-tabla td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--borde); }
.hab-tabla tr:last-child th, .hab-tabla tr:last-child td { border-bottom: 0; }
.hab-tabla thead th { font: 700 11px var(--mono); color: var(--texto-4); padding: 10px 4px 6px; }
.hab-tabla thead th span { display: block; font-size: 12px; color: var(--texto-3); }
.hab-tabla thead th small { font-size: 10.5px; }
.hab-tabla .hoy { background: color-mix(in srgb, var(--naranja) 8%, transparent); }
.hab-tabla thead th.hoy span, .hab-tabla thead th.hoy small { color: var(--naranja); }
.hab-t-nombre { text-align: left !important; padding-left: 12px !important; min-width: 128px; }
.hab-t-nombre button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: none; padding: 0; color: var(--texto); cursor: pointer; text-align: left; font: inherit; }
.hab-t-nombre b { font-size: 14.5px; } .hab-t-nombre .sub { font-size: 11.5px; color: var(--texto-4); font-weight: 500; }
.hab-t-racha { width: 58px; padding-right: 12px !important; font: 800 13px var(--mono); color: var(--texto-3); }
.hab-t-racha .caliente { color: var(--naranja); }
.hab-tabla td form { display: contents; }
.hab-c { display: inline-block; width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--borde-2); background: none; padding: 0; vertical-align: middle; cursor: pointer; transition: transform .08s; }
.hab-c:active { transform: scale(.9); }
.hab-c.si { background: var(--naranja); border-color: var(--naranja); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.hab-c.auto { cursor: default; border-style: dashed; } .hab-c.auto.si { border-style: solid; background: color-mix(in srgb, var(--naranja) 70%, var(--panel)); }
.hab-c.futuro { border-color: var(--borde); opacity: .35; cursor: default; }
@media (max-width: 480px) { .hab-c { width: 28px; height: 28px; border-radius: 7px; } .hab-t-nombre { min-width: 104px; } }
.hab-mapas { display: grid; gap: 10px; } @media (min-width: 900px) { .hab-mapas { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); } }
.hab-mapa { padding: 12px 14px; border-radius: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.hab-mapa-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hab-mapa-cab b { display: block; font-size: 15px; } .hab-mapa-cab .sub { font-size: 12px; color: var(--texto-4); }
.hab-mapa-cab form { display: contents; }
.hab-solo { font: 700 11.5px var(--mono); color: var(--texto-4); } .hab-solo.si { color: var(--naranja); }
.hab-calor { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.hab-sem { display: flex; flex-direction: column; gap: 3px; flex: 1 0 12px; }
.hab-sem i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--panel-2); }
.hab-sem i.si { background: var(--naranja); }
.hab-sem i.hoy { box-shadow: 0 0 0 1.5px var(--texto); }
.hab-sem i.futuro { opacity: .25; }
/* Las cabeceras propias van arriba del todo (como iba cab-mod) y la página ya
   no repite el nombre del módulo encima de su título. */
.consola, .steam-menu, .dymo-cab, .banco, .cuaderno-cab, .duo-cab, .pulso-cab, .diploma-cab, .cintas, .rachas-cab { order: -1; }
.consola { order: -3; } .steam-menu { order: -2; } .diploma-cab { order: -2; }
.contenido:has(> .consola, > .dymo-cab, > .banco, > .cuaderno-cab, > .duo-cab, > .pulso-cab, > .diploma-cab, > .agenda-cab) > .cabecera .antetitulo { display: none; }
.est-cuerpo:has(> .agenda-cab) > .cabecera .antetitulo { display: none; }
/* Hábitos (27-sep, tras verlo Ángel): menos texto, iconos para cómo se marca,
   lápiz para editar y la casilla de hoy como las demás. */
.hab-t-nombre button { flex-direction: row; align-items: center; gap: 6px; }
.hab-ico { display: inline-grid; place-items: center; color: var(--texto-4); flex: none; }
.hab-ico.auto { color: color-mix(in srgb, var(--naranja) 70%, var(--texto-4)); }
.hab-mapa-cab { gap: 8px; }
.hab-editar { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; border: 0; background: none; padding: 4px 0; color: var(--texto); cursor: pointer; text-align: left; font: inherit; }
.hab-editar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hab-lapiz { color: var(--texto-4); flex: none; } .hab-editar:hover .hab-lapiz { color: var(--texto); }
.hab-racha { font: 800 13px var(--mono); color: var(--texto-3); } .hab-racha.caliente { color: var(--naranja); }
.hab-hoy { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 2px solid var(--borde-2); background: none; color: var(--texto-4); cursor: pointer; }
.hab-hoy.si { background: var(--naranja); border-color: var(--naranja); color: #1a0b02; }
.hab-hoy.auto { cursor: default; border-style: dashed; } .hab-hoy.auto.si { border-style: solid; }
.hab-sem i.hoy { box-shadow: inset 0 0 0 1.5px var(--naranja); }
.hab-sem i.hoy.si { box-shadow: none; }
.hab-leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; color: var(--texto-4); }
.hab-leyenda .hab-svg { vertical-align: -2px; }

/* ══ Ocio y Personal: su propio menú (27-sep-2026) ════════════════════════ */
.sala-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sala-cab b { font: 800 30px var(--sans); letter-spacing: -.01em; } .sala-cab .sub { color: var(--texto-3); }
.sala-rot { margin: 6px 0 10px; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--texto-3); }
/* Ocio: «Continuar», como la fila de Netflix. */
.sala-fila { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.seguir { position: relative; flex: none; width: 138px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.seguir-img { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--panel-2); color: var(--texto-3); text-align: center; font: 13px var(--serif); text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.seguir-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seguir-juego { width: 220px; } .seguir-juego .seguir-img { aspect-ratio: 460 / 215; margin-top: auto; }
.seguir-poke .seguir-img { background: radial-gradient(circle at 50% 40%, #3b2b2b, #1c1616); } .seguir-poke .seguir-img img { object-fit: contain; padding: 14px; }
.seguir-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.5); } .seguir-barra s { display: block; height: 100%; background: var(--t-catalogo); }
.seguir-t { display: flex; flex-direction: column; min-width: 0; }
.seguir-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seguir-t span { font-size: 12px; color: var(--texto-3); }
.seguir form { display: contents; }
.seguir-mas { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 8px; border: 0; border-radius: 17px; background: rgba(20,21,24,.82); backdrop-filter: blur(6px); color: #fff; font: 800 13px var(--mono); cursor: pointer; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.seguir-mas:active { transform: scale(.94); }
/* Las puertas, cada una con la personalidad de su módulo. */
.sala-puertas { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 900px) { .sala-puertas { grid-template-columns: 1.3fr 1.3fr 1fr; } }
.puerta { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 180px; padding: 18px; border-radius: 16px; overflow: hidden; background: var(--panel); color: var(--texto); text-decoration: none; }
.puerta:hover { text-decoration: none; background: var(--panel-hover); }
.puerta-t { position: relative; display: flex; flex-direction: column; gap: 2px; }
.puerta-t b { font-size: 24px; } .puerta-t span { font-size: 13px; color: var(--texto-3); }
.puerta-cat .puerta-t b { font: 700 26px var(--serif); }
.puerta-posters { position: absolute; right: 18px; top: 18px; display: flex; }
.puerta-posters img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; box-shadow: -4px 4px 12px rgba(0,0,0,.6); }
.puerta-posters img + img { margin-left: -24px; }
.puerta-posters img:nth-child(1) { transform: rotate(-8deg); } .puerta-posters img:nth-child(3) { transform: rotate(8deg); }
.puerta-jue { background: #1b3a5c; }
.puerta-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.puerta-jue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,16,.9), transparent 70%); }
.puerta-jue .puerta-t { z-index: 1; } .puerta-jue .puerta-t span { color: #cfd6de; }
.puerta-inv { justify-content: center; align-items: flex-start; background: repeating-linear-gradient(90deg, #2a2620 0 22px, #25221c 22px 44px); }
.puerta-inv .dymo-marca { font-size: 20px; }
/* Personal: un escritorio de widgets (bento). */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; } }
.w { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 16px; border-radius: 18px; background: var(--panel); color: var(--texto); text-decoration: none; overflow: hidden; }
.w:hover { text-decoration: none; filter: brightness(1.06); }
.w-rot { font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
.w-cifra { font: 800 30px var(--mono); line-height: 1.1; } .w-cifra small { font-size: 13px; font-weight: 600; color: var(--texto-3); }
.w-sub { font-size: 12.5px; color: var(--texto-3); margin-top: auto; }
.w-frase { font: 700 18px/1.25 var(--serif); }
.w-barra { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; } .w-barra s { display: block; height: 100%; background: currentColor; }
/* Hábitos: ancho, con un cuadro por hábito hecho hoy. */
.w-hab { grid-column: span 2; background: linear-gradient(135deg, #2b1b10, var(--panel)); }
.w-hab-hoy { display: flex; gap: 6px; margin-top: auto; } .w-hab-hoy i { flex: 1; max-width: 44px; aspect-ratio: 1; border-radius: 8px; border: 2px solid var(--borde-2); } .w-hab-hoy i.si { background: var(--naranja); border-color: var(--naranja); }
/* Finanzas: como la tarjeta del banco. */
.w-fin { grid-column: span 2; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--t-finanzas) 40%, transparent), transparent 60%), linear-gradient(135deg, #2b2a26, #141516); color: #f3eee2; }
.w-fin .w-barra { color: var(--t-finanzas); margin-top: auto; } .w-fin .w-sub { margin-top: 0; color: #c9c2ae; }
/* Diario: una página con renglones. */
.w-dia { background: repeating-linear-gradient(transparent 0 25px, rgba(195,197,203,.1) 25px 26px), #1f2125; border-left: 4px solid var(--t-diario); }
/* Idiomas: el botón gordito con la racha. */
.w-idi { align-items: flex-start; }
.w-duo { display: grid; place-items: center; width: 64px; height: 60px; border-radius: 50%; background: var(--t-idiomas); color: #3b0d0d; font: 800 24px var(--sans); box-shadow: 0 6px 0 #a4474a; margin: 4px 0 8px; }
/* Aprendizaje: con su sello. */
.w-apr { background: linear-gradient(135deg, color-mix(in srgb, var(--t-aprendizaje) 14%, var(--panel)), var(--panel)); }
.w-apr .w-barra { color: var(--t-aprendizaje); margin-top: auto; } .w-apr .w-sub { margin-top: 0; }
.w-apr::after { content: ""; position: absolute; right: -10px; top: -10px; width: 70px; height: 70px; opacity: .25; background: var(--t-aprendizaje);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 3l4.5 4 6-1 2 5.7 5.7 2-1 6 4 4.5-4 4.5 1 6-5.7 2-2 5.7-6-1L24 45l-4.5-4-6 1-2-5.7-5.7-2 1-6-4-4.5 4-4.5-1-6 5.7-2 2-5.7 6 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 3l4.5 4 6-1 2 5.7 5.7 2-1 6 4 4.5-4 4.5 1 6-5.7 2-2 5.7-6-1L24 45l-4.5-4-6 1-2-5.7-5.7-2 1-6-4-4.5 4-4.5-1-6 5.7-2 2-5.7 6 1z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ══ Tesela (27-sep-2026): el nombre y el logo ═══════════════════════════
   Ángel eligió «Tesela» (latín tessella, la pieza de un mosaico) y, del
   mosaico romano, el Emblema (el icono de la app) y el Medallón (el sello
   de dentro). El nombre va en capital romana: Cinzel (OFL), servida desde
   aquí por la CSP. */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.lateral a.marca, .lateral.riel a.marca { display: flex; align-items: center; gap: 10px; padding: 2px 6px 12px; font: 700 19px/1 "Cinzel", Georgia, serif; letter-spacing: .12em; text-transform: uppercase; color: #eadfc6; text-decoration: none; }
.marca-sello { flex: none; width: 34px; height: 34px; }
.lateral.riel .lat-cab .marca { padding: 2px 0 6px; justify-content: center; }
.lateral.riel:hover .lat-cab .marca, .lateral.riel:focus-within .lat-cab .marca { justify-content: flex-start; padding: 2px 6px 12px; }
.marca-grande { display: flex; flex-direction: column; align-items: center; gap: 12px; font: 700 34px/1 "Cinzel", Georgia, serif !important; letter-spacing: .16em !important; text-transform: uppercase; color: #eadfc6; }
.marca-grande img { width: 112px; height: 112px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
/* Foto de perfil (27-sep): la foto es el botón. */
.foto-perfil { display: contents; }
.foto-perfil-boton { position: relative; display: inline-block; flex: none; cursor: pointer; }
.foto-perfil-boton .avatar { width: 64px; height: 64px; border-radius: 50%; font-size: 24px; object-fit: cover; }
.foto-perfil-boton input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.foto-perfil-boton:focus-within .avatar { outline: 2px solid var(--ambar); outline-offset: 2px; }
.foto-perfil-lapiz { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hueso); color: #171a1e; box-shadow: 0 0 0 3px var(--panel); }
img.avatar { object-fit: cover; }
/* La ficha de una persona (27-sep): su top de cada módulo. */
.ficha-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ficha-av .avatar { width: 84px; height: 84px; border-radius: 50%; font-size: 32px; }
.ficha-t h1 { margin: 0 0 6px; }
.ficha-cuentas { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha-cuenta { padding: 5px 10px; border-radius: 999px; background: var(--panel); font-size: 12.5px; color: var(--texto-2); text-decoration: none; }
.ficha-cuenta b { color: var(--texto); }
.ficha-acc { margin-bottom: 14px; }
.ficha-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ficha-pieza { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--panel); color: var(--texto); text-decoration: none; }
a.ficha-pieza:hover { background: var(--panel-hover); text-decoration: none; }
.ficha-cifra { display: flex; align-items: center; gap: 10px; } .ficha-cifra b { font: 800 26px var(--mono); }
.ficha-portadas { display: flex; gap: 4px; } .ficha-portadas img { width: 44px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.ficha-filas { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ficha-filas li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); }
.ficha-filas li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-filas b { font-size: 12.5px; color: var(--texto); }

/* Clash of Clans como Clash Ninja (2-oct-2026). */
.clash-cab { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.clash-cab .crece { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.clash-cab h1 { margin: 0; }
.clash-cab .sub { font-size: 13px; color: var(--texto-3); }
.clash-cab img { flex: none; object-fit: contain; }
.clash-partes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 12px; }
.clash-pct { font-size: 22px; color: var(--ambar); }
.clash-costes { display: block; margin-top: 8px; font: 600 12px var(--mono); color: var(--texto-3); }
.clash-ico { width: 40px; height: 40px; flex: none; object-fit: contain; }
.clash-fila .sub { white-space: normal; }
.clash-fila.hecho { opacity: .55; }
.clash-falta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.clash-falta small { font: 600 11px var(--mono); color: var(--texto-3); }
.clash-datos { display: flex; flex-direction: column; gap: 14px; }
.clash-datos form { display: flex; flex-direction: column; gap: 8px; }
.clash-datos .sub { display: block; font-size: 12.5px; color: var(--texto-3); font-weight: 400; margin: 2px 0 6px; }
.clash-datos .campo-g { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--texto-2); }
.clash-datos .campo-g input, .clash-datos .campo-g textarea { background: var(--campo); border: 1px solid var(--borde-2); color: var(--texto); border-radius: 7px; min-height: 44px; padding: 8px 10px; font: 400 16px var(--sans); }


/* Inicio de Juegos (2-oct-2026): una tarjeta por plataforma con su color de
   cartucho arriba y lo que pasa en ella. */
.jt-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.jt { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--panel); color: var(--texto); text-decoration: none; box-shadow: inset 0 3px 0 var(--c); }
.jt:hover { text-decoration: none; background: var(--panel-2); }
.jt-cab { display: flex; align-items: center; gap: 10px; }
.jt-cab > b { flex: 1; min-width: 0; font-size: 16px; }
.jt-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: #fff; flex: none; }
.jt-ico svg { width: 19px; height: 19px; }
.jt-dato { font: 800 20px var(--mono); color: var(--texto); display: flex; align-items: baseline; gap: 5px; }
.jt-dato small { font-size: 11px; font-weight: 600; color: var(--texto-3); }
.jt-portada { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 460 / 215; background: var(--panel-2); }
.jt-portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jt-pie { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 22px 10px 8px; font-size: 12.5px; color: #e9edf2; background: linear-gradient(transparent, rgba(0,0,0,.8)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-cifras { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--texto-3); }
.jt-cifras b { font: 800 16px var(--mono); color: var(--texto); margin-right: 3px; }
.jt-cifras small { display: block; font: 600 11px var(--mono); color: var(--texto-4); }
.jt-cifras.grande b { font-size: 28px; }
.jt-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jt-lista li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; box-shadow: 0 -1px 0 var(--borde); }
.jt-lista li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-lista li b { flex: none; font: 700 12px var(--mono); color: var(--ambar); }
.jt-vacio { margin: 0; font-size: 13.5px; color: var(--texto-3); }
.jt-rot { font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
.jt-partida { display: flex; flex-direction: column; gap: 6px; }
.jt-partida > b { font-size: 18px; }
.jt-clash { display: flex; gap: 12px; align-items: center; }
.jt-clash img { flex: none; object-fit: contain; }
.jt-barras { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.jt-barras li { display: grid; grid-template-columns: 86px 1fr 38px; align-items: center; gap: 8px; font-size: 12px; color: var(--texto-2); }
.jt-barras li b { font: 700 11px var(--mono); text-align: right; color: var(--texto); }
.jt-rango { display: flex; align-items: center; gap: 12px; }
.jt-rango span { display: flex; flex-direction: column; gap: 2px; }
.jt-rango b { font-size: 20px; }
.jt-rango small { font: 600 11.5px var(--mono); color: var(--texto-3); }

/* Rotom de verdad (2-oct-2026): «la rotomdex es muy pequeña». El inicio crece
   en el PC, y cada app va dentro de la carcasa: la cara y el dock arriba, y la
   página es la pantalla. */
@media (min-width: 900px) {
  .rotom { max-width: 860px; gap: 64px; }
  .rotom-carcasa { padding: 48px 26px 26px; border-radius: 56px; }
  .rotom-cara { gap: 90px; height: 84px; }
  .rotom-ojo { width: 84px; height: 68px; }
  .rotom-dice { font-size: 16px; margin: 4px 30px 18px; }
  .rotom-pantalla { padding: 18px 22px 24px; border-radius: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rotom-pantalla > .rotom-estado, .rotom-pantalla > .rotom-apps { grid-column: 1 / -1; }
  .rotom-apps { gap: 18px; padding: 14px 20px 18px; }
  .rotom-icono { width: 88px; height: 88px; border-radius: 26px; }
  .rotom-icono svg { width: 42px; height: 42px; }
  .rotom-app b { font-size: 15px; } .rotom-app small { font-size: 12px; }
  .rotom-widget { padding: 16px 18px; } .rotom-widget > b { font-size: 20px; }
}
.contenido:has(> .rotom-cabeza) { gap: 14px; padding-top: 0; padding-bottom: 28px; margin-top: 40px; margin-bottom: 110px;
  background: #0f1a26; border: 8px solid var(--rotom-osc); border-top: 0; border-radius: 0 0 30px 30px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 8px 20px rgba(0,0,0,.4); }
.contenido:has(> .rotom-cabeza) > .cabecera .antetitulo { display: none; }
.rotom-cabeza { order: -5; position: relative; margin: 0 -24px 4px; padding: 30px 16px 14px; border-radius: 34px 34px 0 0;
  background: linear-gradient(170deg, #f2603f, var(--rotom) 45%, var(--rotom-osc)); box-shadow: inset 0 2px 0 rgba(255,255,255,.25); color: #fff; }
.rotom-cabeza .rotom-salir { position: absolute; left: 18px; top: 14px; color: #ffe2d9; }
.rotom-cara.mini { height: 44px; gap: 40px; margin-bottom: 14px; }
.rotom-cara.mini .rotom-ojo { width: 44px; height: 36px; }
.rotom-cara.mini .rotom-antena { top: -40px; width: 26px; height: 34px; }
.rotom-cara.mini .rotom-antena.izq { left: calc(50% - 104px); } .rotom-cara.mini .rotom-antena.der { left: auto; right: calc(50% - 104px); }
.rotom-dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 10px 6px 8px; border-radius: 20px; background: rgba(15,26,38,.55); }
.rotom-dock .rotom-icono { width: 48px; height: 48px; border-radius: 15px; }
.rotom-dock .rotom-icono svg { width: 24px; height: 24px; }
.rotom-dock .rotom-app b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rotom-dock .rotom-app { min-width: 0; color: #f3dcd5; }
.rotom-dock .rotom-app[aria-current] { color: #fff; }
.rotom-dock .rotom-app[aria-current] .rotom-icono { box-shadow: 0 0 0 2px #0f1a26, 0 0 0 4px #fff, 0 4px 10px rgba(0,0,0,.35); }
.app-inicio { --c: #263848; }
.app-inicio .rotom-ojitos i { width: 14px; height: 11px; }
@media (min-width: 900px) {
  .contenido:has(> .rotom-cabeza) { border-width: 14px; border-radius: 0 0 48px 48px; padding-left: 28px; padding-right: 28px; margin-left: 28px; margin-right: 28px; }
  .rotom-cara.mini .rotom-antena.izq { left: calc(50% - 160px); } .rotom-cara.mini .rotom-antena.der { right: calc(50% - 160px); }
  .rotom-cabeza { margin: 0 -42px 6px; padding: 40px 40px 20px; border-radius: 52px 52px 0 0; }
  .rotom-cara.mini { height: 64px; gap: 80px; } .rotom-cara.mini .rotom-ojo { width: 66px; height: 54px; }
  .rotom-dock { max-width: 760px; margin: 0 auto; gap: 10px; padding: 14px 16px 12px; }
  .rotom-dock .rotom-icono { width: 68px; height: 68px; border-radius: 20px; }
  .rotom-dock .rotom-icono svg { width: 32px; height: 32px; }
  .rotom-dock .rotom-app b { font-size: 13.5px; }
}
@media (max-width: 480px) { .consola-fila { gap: 4px; } .cartucho b { font-size: 10.5px; } }
@media (max-width: 480px) { .rotom-dock .rotom-app b { font-size: 10.5px; } }

/* Elegir ejercicios de una rutina, como en Hevy (2-oct-2026). */
.g-elegir { display: flex; flex-direction: column; gap: 10px; }
.g-elegir .g-titulo { margin: 0; }
.g-elegir-f { display: block; margin: 0; }
.g-elegir-f + .g-elegir-f .g-fila { box-shadow: 0 -1px 0 var(--borde); }
.g-elegir-f .g-fila { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.g-elegir-f .g-fila:active { background: var(--panel-2); }
.g-elegir-foto { width: 48px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.g-anadir { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 19px; background: var(--panel-2); color: var(--texto-2); font: 700 13px var(--mono); }
.g-anadir.puesto { background: var(--ambar); color: #1d1402; }
.g-anadir svg { width: 16px; height: 16px; }
.g-elegir-listo { position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
@media (min-width: 900px) { .g-elegir-listo { bottom: 16px; max-width: 360px; align-self: flex-end; } }
/* En la rutina, el nombre cabe en dos líneas: con −, foto, descanso y flechas
   se quedaba en «Press de ban…». */
.g-fila .g-toca b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }

/* Añadir al Catálogo como en Letterboxd (2-oct-2026). */
.cat-marca-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-anadir-b svg { width: 16px; height: 16px; }
.cat-anadir-p { display: flex; flex-direction: column; gap: 12px; }
.cat-anadir-p h1 { margin: 0; font-size: 30px; }
.cat-tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); }
.cat-tipos a { padding: 9px 0; border-radius: 9px; text-align: center; font: 700 13px var(--mono); color: var(--texto-3); text-decoration: none; }
.cat-tipos a[aria-current] { background: var(--cat); color: #1a0f1c; }
.cat-res { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-res-fila { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px 8px 8px; border: 0; border-radius: 12px; background: var(--panel); color: var(--texto); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.cat-res-fila:hover { text-decoration: none; background: var(--panel-2); }
.cat-res-img { flex: none; width: 46px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--panel-2); }
.cat-res-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-res-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-res-t b { font-size: 16px; line-height: 1.2; }
.cat-res-t .sub { font-size: 12.5px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-res-mas { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 19px; background: var(--panel-2); color: var(--cat); }
.cat-res-mas svg { width: 18px; height: 18px; }
.cat-res-mas.ok { background: var(--cat); color: #1a0f1c; font-weight: 800; }
.cat-res-fila.hecha { opacity: .8; }
.cat-res-fila.a-mano .cat-res-img { background: none; border: 1px dashed var(--borde-2); }
.cat-registrar .campo-g input[type=date] { min-height: 44px; }
.cat-reg-cab { display: flex; gap: 12px; align-items: center; }
.cat-reg-cab img { border-radius: 4px; flex: none; }
.cat-reg-cab h2 { margin: 0 0 2px; }
.cat-reg-estado { margin: 12px 0 4px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.cat-reg-hecha { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cat-registrar:not(:has(input[name=estado][value=hecha]:checked)) .cat-reg-hecha { display: none; }
.cat-reg-nota { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.cat-reg-gusta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-3); cursor: pointer; }
.cat-reg-gusta input { position: absolute; opacity: 0; pointer-events: none; }
.cat-reg-gusta svg { width: 22px; height: 22px; }
.cat-reg-gusta:has(input:checked) { color: #ff7a9a; }
.cat-reg-gusta:has(input:checked) svg { fill: currentColor; }
.cat-buscar input[type=search]:focus { outline: none; }
@media (min-width: 900px) { .cat-anadir-p, .g-elegir { max-width: 760px; width: 100%; margin: 0 auto; } }

/* El % de hábitos de cada día (2-oct-2026, idea de Focusity). */
.hab-serie { position: relative; display: flex; flex-direction: column; gap: 10px; }
.hab-serie-cifras { display: flex; gap: 22px; }
.hab-serie-cifras span { display: flex; flex-direction: column; }
.hab-serie-cifras b { font: 800 22px var(--mono); color: var(--texto); }
.hab-serie-cifras span:first-child b { color: var(--ambar); }
.hab-serie-cifras small { font: 600 11px var(--mono); color: var(--texto-3); }
.hab-serie-g { width: 100%; height: 120px; overflow: visible; }
.hab-serie-g line { stroke: var(--borde); stroke-width: .3; vector-effect: non-scaling-stroke; }
.hab-serie-g polygon { fill: color-mix(in srgb, var(--ambar) 16%, transparent); stroke: none; }
.hab-serie-g polyline { fill: none; stroke: var(--ambar); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hab-serie-et { position: absolute; right: 14px; top: 64px; height: 120px; display: flex; flex-direction: column; justify-content: space-between; font: 600 10px var(--mono); color: var(--texto-4); pointer-events: none; }
.hab-serie .sub { font-size: 12px; color: var(--texto-3); }

/* Crear, a un toque, bajo la cabecera de cada módulo (2-oct-2026). */
.rapidas { display: flex; flex-wrap: wrap; gap: 6px; }
.rapida { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px 0 10px; border: 1px solid var(--borde-2); border-radius: 19px; background: var(--panel); color: var(--texto); font: 600 13.5px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.rapida:hover { text-decoration: none; background: var(--panel-2); }
.rapida svg { width: 15px; height: 15px; color: var(--ambar); }

/* Finanzas: categorías en tarjetas, lo que se repite y mes a mes (2-oct-2026, Focusity). */
.fin-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fin-cat { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--panel); min-width: 0; }
.fin-cat-n { font-size: 13px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-cat b { font-size: 17px; }
.fin-cat-p { display: flex; align-items: center; gap: 8px; }
.fin-cat-p .s-barra { flex: 1; }
.fin-cat-p small { font: 600 11px var(--mono); color: var(--texto-3); }
.fin-sus { align-items: flex-end; text-align: right; }
.fin-mes { gap: 12px; text-decoration: none; color: inherit; }
.fin-mes.activo { box-shadow: inset 3px 0 0 var(--t-finanzas); }
.fin-mes-c { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }

/* Citas (2-oct-2026, idea de Focusity). */
.cat-cita { margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--cat); background: var(--panel); border-radius: 0 8px 8px 0; }
.cat-cita p { margin: 0; font: italic 16px/1.5 var(--serif); color: var(--texto); white-space: pre-line; }
.cat-cita footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--texto-3); }
.cat-cita-nueva { display: flex; flex-direction: column; gap: 6px; }
.cat-cita-nueva textarea, .cat-cita-pag { background: var(--campo); border: 1px solid var(--borde-2); color: var(--texto); border-radius: 7px; padding: 8px 10px; font: 400 16px var(--sans); }
.cat-cita-pag { width: 110px; min-height: 40px; }
.cat-citas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.cat-cita-t { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 10px; background: var(--panel); color: var(--texto); text-decoration: none; }
.cat-cita-t:hover { text-decoration: none; background: var(--panel-2); }
.cat-cita-t p { margin: 0; font: italic 14.5px/1.45 var(--serif); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cat-cita-o { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.cat-cita-o img { width: 22px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; flex: none; }
.cat-cita-o b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-cita-o small { font: 600 11px var(--mono); color: var(--texto-3); flex: none; }

/* Fichas de repaso (2-oct-2026). */
.ficha-fila .crece b, .ficha-fila .crece .sub { white-space: normal; }
.ficha-rep { display: flex; flex-direction: column; gap: 10px; }
.ficha-rep-de { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); }
.ficha-cara { padding: 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 3px 0 var(--t-estudios, var(--ambar)); }
.ficha-cara summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 16px; }
.ficha-cara summary::-webkit-details-marker { display: none; }
.ficha-cara[open] summary .tecla { display: none; }
.ficha-frente { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.35; white-space: pre-line; }
.ficha-dorso { margin: 14px 0 16px; padding-top: 14px; border-top: 1px dashed var(--borde-2); font-size: 17px; line-height: 1.5; white-space: pre-line; }
