/* Centro de control ILA · sistema solar con estética HUD. Marino + dorado (sol) + cian (instrumentos). */
:root {
  --bg: #050b14; --panel: rgba(10, 22, 40, .72); --line: rgba(120, 214, 255, .16); --line-2: rgba(120, 214, 255, .34);
  --ink: #e9f3fa; --muted: #93aabd; --cyan: #6fdcff; --gold: #f2c35b;
  --good: #58d6a6; --warn: #f0b24a; --crit: #ff7a70; --info: #6fdcff;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; background: #04060d;
}
.sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.muted { color: var(--muted); }

/* Barra superior */
.top { display: flex; align-items: center; gap: 24px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: rgba(5, 11, 20, .7); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.top nav { display: flex; gap: 20px; margin-left: auto; overflow-x: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.brand i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.brand small { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.link { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 0; }
.link:hover { color: var(--ink); }

/* Paneles HUD con esquinas de instrumento */
.hud { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 18px; backdrop-filter: blur(10px); }
.hud::before, .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid var(--cyan); pointer-events: none; }
.hud::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.hud-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 28px; }
.hud-head h2 { font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.narrow { max-width: 420px; display: grid; gap: 12px; justify-items: start; }
.center { min-height: 70vh; display: grid; place-items: center; padding: 24px; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.foot { margin-top: 10px; font-size: 13px; }

/* Puente de mando: rutinas · sistema · rango */
.bridge { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(260px, 320px); gap: 20px; padding: 20px 24px; max-width: 1680px; margin: auto; align-items: start; }
.bridge-left, .bridge-right { display: grid; gap: 16px; }
.bridge-center { min-width: 0; }
.hello { text-align: center; margin-bottom: 4px; }
.hello h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; }
.hello p { color: var(--muted); margin-top: 2px; }

/* El sistema solar */
.system { position: relative; width: min(100%, calc(100vh - 170px)); min-width: 300px; aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.reticle { position: absolute; inset: 1%; border: 1px dashed var(--line); border-radius: 50%; animation: spin 240s linear infinite; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: var(--line-2); }
.reticle::before { left: 50%; top: -1%; width: 1px; height: 102%; opacity: .25; }
.reticle::after { top: 50%; left: -1%; height: 1px; width: 102%; opacity: .25; }
.reticle.r2 { inset: 36%; border-style: solid; border-color: rgba(242, 195, 91, .22); animation-direction: reverse; animation-duration: 120s; }
.reticle.r2::before, .reticle.r2::after { display: none; }
.orbit { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2cqw); height: calc(var(--r) * 2cqw); margin: calc(var(--r) * -1cqw) 0 0 calc(var(--r) * -1cqw);
  border: 1px solid var(--line); border-radius: 50%; animation: spin var(--dur) linear infinite; animation-delay: var(--delay); pointer-events: none; }
.planet { position: absolute; left: 50%; top: 0; width: calc(var(--size) * 1cqw); height: calc(var(--size) * 1cqw); margin: calc(var(--size) * -.5cqw) 0 0 calc(var(--size) * -.5cqw);
  animation: spin var(--dur) linear infinite reverse; animation-delay: var(--delay); pointer-events: auto; text-decoration: none; transition: transform .25s; }
.planet:hover, .planet:focus-visible { transform: scale(1.14); }
.system:hover .orbit, .system:hover .planet, .system:focus-within .orbit, .system:focus-within .planet, .is-paused .orbit, .is-paused .planet { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.sphere { display: block; position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--a), var(--b) 48%, var(--c) 100%);
  box-shadow: inset -6px -8px 16px rgba(0, 0, 0, .55), 0 0 18px color-mix(in srgb, var(--b) 45%, transparent); }
.p-academica { --a: #e9a06a; --b: #a4532a; --c: #2a1512; }
.p-ventas { --a: #f6ecd2; --b: #c9b892; --c: #4e4538; }
.p-coordinacion { --a: #c4fff2; --b: #1fa7a2; --c: #063c46; }
.p-marketing { --a: #bfe4ff; --b: #2277cc; --c: #06204f; }
.p-finanzas { --a: #f1e3cb; --b: #c79a72; --c: #4c2f24; }
.saturn { position: absolute; left: -32%; right: -32%; top: 38%; height: 24%; border: 2px solid color-mix(in srgb, var(--a) 70%, transparent); border-radius: 50%; transform: rotate(-16deg); }
.planet-arc { position: absolute; inset: -18%; width: 136%; height: 136%; pointer-events: none; }
.arc-track { fill: none; stroke: var(--line); stroke-width: 2; }
.arc-fill { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.ping { position: absolute; top: -6%; right: -6%; width: 10px; height: 10px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 3px rgba(255, 122, 112, .25); }
.tag { position: absolute; top: 118%; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; line-height: 1.2; color: var(--ink); text-shadow: 0 1px 6px #000; }
.tag b { display: block; font-size: 13px; font-weight: 500; }
.tag small { color: var(--muted); font: 11px var(--mono); }

.sun { position: absolute; left: 50%; top: 50%; width: 26cqw; height: 26cqw; margin: -13cqw 0 0 -13cqw; display: grid; place-items: center; text-decoration: none; border-radius: 50%; }
.sun-core, .zone-sphere.sun-core { display: block; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #fff6d8, #f7cf6f 40%, #e4902a 78%, #a8551a); box-shadow: 0 0 40px 10px rgba(242, 195, 91, .4), 0 0 120px 40px rgba(242, 160, 60, .18); transition: box-shadow .3s; }
a.sun:hover .sun-core { box-shadow: 0 0 56px 16px rgba(242, 195, 91, .55), 0 0 140px 50px rgba(242, 160, 60, .25); }
.sun-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun-arc .arc-fill { stroke: var(--gold); }
.sun-text { position: relative; text-align: center; color: #3a1e05; line-height: 1.1; }
.sun-text b { font-size: clamp(18px, 4.4cqw, 34px); font-weight: 650; letter-spacing: -.02em; }
.sun-text small { display: block; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* Rutinas */
.task-list { display: grid; }
.group { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.group:first-child { margin-top: 0; }
.task { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.tick { flex: none; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line-2); background: none; position: relative; transition: background .2s, border-color .2s, transform .15s; }
.tick:hover:not(:disabled) { border-color: var(--cyan); }
.tick:active { transform: scale(.9); }
.tick:disabled { opacity: .35; cursor: not-allowed; }
.tick[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(111, 220, 255, .5); }
.tick[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 12px; border: solid #04202e; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.task-text { flex: 1; min-width: 0; }
.task-text b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.task-text small { color: var(--muted); font-size: 12.5px; }
.task.is-done .task-text b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.pts { font: 12px var(--mono); color: var(--gold); white-space: nowrap; }

/* Rango y logros */
.rank-ticks { display: flex; gap: 4px; margin-bottom: 8px; }
.rank-ticks i { flex: 1; height: 4px; background: var(--line); }
.rank-ticks i.on { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.rank strong { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.rank p { font-size: 13px; }
.meter { height: 3px; background: var(--line); margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--cyan); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.stats div { min-width: 0; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 0; font-size: 24px; font-weight: 600; }
.stats dd small { font-size: 13px; font-weight: 400; color: var(--muted); }
.stats dd.small { font-size: 15px; font-weight: 500; }
.week { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0; font: 11px var(--mono); color: var(--muted); }
.week li { display: grid; justify-items: center; gap: 4px; }
.week i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); }
.week .full i { background: var(--cyan); border-color: var(--cyan); }
.week .miss i { border-color: var(--crit); }
.week .today i { border-color: var(--gold); box-shadow: 0 0 6px var(--gold); }
.badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.badges li { display: flex; align-items: center; gap: 10px; }
.badges i { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--line-2); }
.badges .on { color: var(--ink); }
.badges .on i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Misiones */
.mission { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mission:last-of-type { border-bottom: 0; }
.mission b { font-weight: 500; }
.mission p { color: var(--muted); font-size: 13.5px; }
.mission small { display: block; color: var(--muted); font-size: 12.5px; }
.mission.is-late small { color: var(--crit); }
.crm-link { display: inline-block; margin-top: 10px; color: var(--cyan); font-size: 13.5px; text-decoration: none; }

/* Botones */
.btn, .btn-ghost, .btn-mini, .btn-danger { border-radius: 3px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn { background: var(--cyan); color: #04202e; border: 0; padding: 10px 16px; font-weight: 600; }
.btn:hover { background: #9be8ff; }
.btn-ghost { background: none; border: 1px solid var(--line-2); padding: 6px 10px; font-size: 13px; }
.btn-ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn-mini { background: none; border: 1px solid var(--line); color: var(--muted); padding: 3px 8px; font-size: 12px; }
.btn-mini:hover { color: var(--ink); border-color: var(--line-2); }
.btn-danger { background: none; border: 1px solid var(--crit); color: var(--crit); padding: 8px 12px; font-size: 13px; margin-top: 10px; }

/* Pantalla de planeta */
.zoom { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: rgba(4, 7, 15, .42); animation: fade .25s ease; }
.zoom[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.zoom-clone { position: fixed; z-index: 31; pointer-events: none; }
.zone { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; padding: 24px; max-width: 1400px; margin: auto; align-items: start; }
.zone-hero { position: sticky; top: 76px; display: grid; gap: 8px; }
.zoom .zone-hero { top: 24px; }
.zone-close { color: var(--muted); text-decoration: none; font-size: 14px; }
.zone-close:hover { color: var(--cyan); }
.zone-planet { position: relative; width: min(62%, 210px); aspect-ratio: 1; margin: 34px auto 30px; }
.zone-hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dots { display: flex; gap: 6px; }
.dots i { flex: 1; height: 6px; background: var(--cyan); opacity: calc(.15 + var(--v) * .85); }
.dots i.off { background: var(--line); opacity: 1; }
.zone-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.wide { grid-column: 1 / -1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { position: relative; border-left: 1px solid var(--line-2); padding: 2px 12px; min-width: 0; }
.kpi small { color: var(--muted); font-size: 12.5px; display: block; padding-right: 58px; }
.kpi strong { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi.big strong { font-size: 32px; }
.kpi p { color: var(--muted); font-size: 12.5px; }
.kpi .btn-mini { position: absolute; top: 0; right: 0; }
.state { display: inline-block; font: 11px var(--mono); padding: 1px 6px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.state.good { color: var(--good); } .state.warn, .state.atencion { color: var(--warn); } .state.critica { color: var(--crit); } .state.info { color: var(--info); }
.kpi .state { margin-top: 6px; }
.plan { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 20px; }
.plan li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plan b { display: block; font-weight: 500; font-size: 14px; }
.plan small { color: var(--muted); font-size: 12px; }

/* Comando */
.zone-list { display: grid; }
.zone-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.zone-row:last-child { border: 0; }
.zone-row:hover b { color: var(--cyan); }
.zone-row b { display: block; font-weight: 500; font-size: 14px; }
.zone-row small { color: var(--muted); font-size: 12px; }
.zone-row strong { font: 13px var(--mono); }
.mini-planet { width: 22px; height: 22px; display: block; }
.mini-planet .sphere { box-shadow: inset -3px -3px 6px rgba(0, 0, 0, .55); }
.alerts { list-style: none; padding: 0; margin: 0; display: grid; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.alert:last-child { border: 0; }
.alert > div { flex: 1; min-width: 0; }
.alert b { display: block; font-weight: 500; font-size: 14px; }
.alert small { color: var(--muted); font-size: 12.5px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 170px; }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.bar i { display: block; width: min(100%, 22px); margin: 0 auto; background: var(--line-2); border-radius: 4px 4px 0 0; }
.bar.now i { background: var(--cyan); }
.bar span { text-align: center; font: 11px var(--mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; }
.bar:hover::after, .bar:focus::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #0b1a2c; border: 1px solid var(--line-2); padding: 4px 8px; font-size: 12px; z-index: 3; }
.bar:first-child:hover::after, .bar:first-child:focus::after { left: 0; transform: none; }
.bar:last-child:hover::after, .bar:last-child:focus::after { left: auto; right: 0; transform: none; }
.crew { width: 100%; border-collapse: collapse; font-size: 14px; }
.crew th, .crew td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.crew thead th { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crew tbody th { font-weight: 500; }
.crew tr:last-child th, .crew tr:last-child td { border-bottom: 0; }

/* Páginas */
.page { padding: 28px 24px; max-width: 1400px; margin: auto; }
.page-head { margin-bottom: 20px; display: grid; gap: 6px; justify-items: start; }
.page-head h1 { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.flow-col { display: grid; gap: 12px; justify-items: stretch; }
.flow-col > .btn { justify-self: start; }
.flow-col header { display: flex; gap: 12px; }
.flow-col header span { font: 12px var(--mono); color: var(--gold); padding-top: 3px; }
.flow-col h2 { font-size: 17px; font-weight: 600; }
.flow-col header p { color: var(--muted); font-size: 13.5px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px; display: grid; gap: 6px; }
.card.is-off { opacity: .55; }
.card h3 { font-size: 16px; font-weight: 600; }
.card p { font-size: 14px; }
.card small { color: var(--muted); font-size: 12.5px; }
.eyebrow { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.link-state { color: var(--gold) !important; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.review { display: grid; gap: 8px; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

/* Formularios y hojas */
.sheet { width: min(460px, calc(100vw - 24px)); max-height: 88vh; color: var(--ink); background: #0a1727; border: 1px solid var(--line-2); border-radius: 6px; padding: 20px; }
.sheet::backdrop { background: rgba(2, 6, 12, .7); backdrop-filter: blur(3px); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-head h3 { font-size: 17px; font-weight: 600; }
.x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 4px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea, .review textarea { width: 100%; padding: 9px 10px; color: var(--ink); background: rgba(5, 11, 20, .6); border: 1px solid var(--line-2); border-radius: 3px; font-size: 15px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.days { display: flex; gap: 6px; }
.day input { position: absolute; opacity: 0; }
.day span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--muted); cursor: pointer; }
.day input:checked + span { background: var(--cyan); border-color: var(--cyan); color: #04202e; font-weight: 600; }
.day input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; margin: 6px 0; }
.switch input { width: 18px; height: 18px; accent-color: var(--cyan); }
blockquote { margin: 0 0 12px; padding-left: 10px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 10px 16px; background: #0b1a2c; border: 1px solid var(--cyan); border-radius: 4px; font-size: 14px; max-width: calc(100vw - 32px); animation: rise .25s ease; }
.toast.is-error { border-color: var(--crit); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 1180px) {
  .bridge { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bridge-center { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  .top { padding: 10px 14px; gap: 12px; flex-wrap: wrap; }
  .top nav { order: 3; margin: 0; width: 100%; }
  .top form { margin-left: auto; }
  .brand small { display: none; }
  .bridge { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .system { width: 100%; }
  .zone, .zone-panels { grid-template-columns: minmax(0, 1fr); }
  .zone { padding: 14px; }
  .zone-hero { position: static; }
  .zone-planet { width: 150px; margin: 24px auto; }
  .tag b { font-size: 11px; } .tag small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .planet, .reticle { animation: none; }
  .toast, .zoom { animation: none; }
}

/* Estación del planeta: holograma al centro y cuatro paneles (pendientes, avances, problemas, mejoras) */
.station { max-width: 1560px; margin: auto; padding: 16px 24px 28px; position: relative; }
.station::before { content: ""; position: absolute; left: 4%; right: 4%; top: 6px; height: 40px; border-top: 2px solid var(--line-2); border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; }
.station-top { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 58px; }
.station-title { text-align: center; }
.station-title h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.station-title p { color: var(--muted); font-size: 13.5px; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px auto 14px; max-width: 1040px; }
.readout .kpi { border-left: 0; border-bottom: 1px solid var(--line); text-align: center; padding: 2px 8px 6px; }
.readout .kpi small { padding: 0; font-size: 12px; }
.readout .kpi strong { font: 500 22px var(--mono); color: var(--cyan); text-shadow: 0 0 10px rgba(111, 220, 255, .4); letter-spacing: -.02em; }
.readout .kpi p { font-size: 11px; }
.readout .kpi .btn-mini { position: static; margin-top: 4px; }
.readout .kpi .state { margin: 3px 4px 0 0; }
.deck { --podh: max(280px, calc((100vh - 300px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr) minmax(0, 1fr); grid-template-rows: var(--podh) var(--podh); grid-template-areas: "a h c" "b h d"; gap: 14px 20px; }
.pod.a { grid-area: a; } .pod.b { grid-area: b; } .pod.c { grid-area: c; } .pod.d { grid-area: d; } .holo { grid-area: h; }
.pod { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 14px 16px; background: var(--line-2); isolation: isolate;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.pod::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: linear-gradient(160deg, #0d2238, #081424);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.pod header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 26px; }
.pod h2 { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-right: auto; order: 0; }
.pod-n { font: 500 15px var(--mono); color: var(--gold); order: 1; }
.pod header .btn-mini { order: 2; }
.pod-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 6px; }
.pod .mission { padding: 8px 0; }
.pod .btn-ghost { padding: 4px 8px; font-size: 12px; }
.task-list:empty { display: none; }
.item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border: 0; }
.item b { font-weight: 500; font-size: 14px; display: block; }
.item p { color: var(--muted); font-size: 13px; }
.item small { color: var(--muted); font-size: 12px; }
.item-act { display: flex; gap: 6px; align-items: flex-start; }
.state.s-propuesta { color: var(--gold); } .state.s-en_curso { color: var(--cyan); } .state.s-hecha { color: var(--good); }
.bars-7 { height: 96px; gap: 8px; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.wins { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.wins li { padding: 5px 0; }
.wins b { font-weight: 500; display: block; }
.wins small { color: var(--muted); font-size: 12px; }

.holo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.holo-stage { position: relative; width: min(100%, calc(var(--podh) * 1.32)); aspect-ratio: 1; z-index: 2; }
.holo-rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.holo-rings g { transform-origin: 200px 200px; }
.ring-a { stroke: color-mix(in srgb, var(--b) 45%, #17394f); animation: spin 90s linear infinite; }
.ring-b { stroke: var(--line-2); animation: spin 60s linear infinite reverse; }
.ring-track { stroke: var(--line); stroke-width: 3; }
.ring-fill { stroke: var(--cyan); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--cyan)); }
.holo .zone-sphere { position: absolute; inset: 24%; width: 52%; height: 52%; box-shadow: inset -14px -18px 34px rgba(0, 0, 0, .55), 0 0 44px color-mix(in srgb, var(--b) 50%, transparent); animation: float 6s ease-in-out infinite; }
.zoom-clone.zone-sphere { animation: none; }
@keyframes float { 50% { transform: translateY(-6px); } }
.beam { position: absolute; bottom: 12%; left: 50%; width: 46%; height: 34%; transform: translateX(-50%); background: linear-gradient(to top, color-mix(in srgb, var(--cyan) 38%, transparent), transparent); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); opacity: .55; z-index: 1; }
.projector { position: absolute; bottom: 3%; left: 50%; width: 76%; aspect-ratio: 1; transform: translateX(-50%) translateY(38%) scaleY(.2); z-index: 0; }
.projector i { position: absolute; border-radius: 50%; border: 3px solid var(--cyan); box-shadow: 0 0 22px rgba(111, 220, 255, .45), inset 0 0 22px rgba(111, 220, 255, .3); }
.projector i:nth-child(1) { inset: 0; border-style: dashed; opacity: .6; animation: spin 40s linear infinite; }
.projector i:nth-child(2) { inset: 13%; opacity: .75; }
.projector i:nth-child(3) { inset: 28%; background: radial-gradient(circle, rgba(111, 220, 255, .55), rgba(111, 220, 255, .08)); }
.callout { position: absolute; left: 0; bottom: 16%; z-index: 3; padding-bottom: 4px; border-bottom: 1px solid var(--cyan); min-width: 104px; }
.callout::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.callout strong { display: block; font: 500 22px var(--mono); color: var(--ink); }
.callout small { color: var(--muted); font-size: 11.5px; }
.tools { margin-top: 18px; }

@media (max-width: 1100px) {
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 380px 340px 340px; grid-template-areas: "h h" "a c" "b d"; }
  .holo-stage { width: 300px; }
}
@media (max-width: 680px) {
  .station { padding: 10px 14px 24px; }
  .station-top { grid-template-columns: 1fr; justify-items: center; }
  .station-top .zone-close { justify-self: start; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "h" "a" "b" "c" "d"; }
  .holo { min-height: 340px; }
  .holo-stage { width: 270px; }
  .pod { min-height: 200px; }
  .pod-body { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .ring-a, .ring-b, .projector i, .holo .zone-sphere { animation: none; } }

.login { width: min(360px, 100%); justify-items: stretch; }
.login .field { margin: 0; }

@media (max-width: 680px) {
  .station::before { display: none; }
  .callout { position: static; order: 3; margin-top: 34px; text-align: center; border: 0; }
  .callout::after { display: none; }
  .holo { min-height: 0; }
  .beam { display: none; }
  .projector { bottom: 62px; }
}

/* Con un planeta abierto, atrás solo queda el cielo */
.is-zoomed > .top, .is-zoomed > main { visibility: hidden; }
.zoom { background: transparent; }

/* Astros dibujados por WebGL (planets.js): el degradado solo queda si el navegador no lo soporta */
.has-gl { background: none !important; box-shadow: none !important; }
.has-gl > .saturn { display: none; }
.sun-text { z-index: 2; color: #fff; padding: 5px 13px 6px; border-radius: 999px; background: rgba(16, 7, 3, .62); backdrop-filter: blur(4px); }
.sun-core, a.sun:hover .sun-core { box-shadow: none; }
.holo .zone-sphere { inset: 19%; width: 62%; height: 62%; }
.credit { position: fixed; left: 0; right: 0; bottom: 10px; text-align: center; color: var(--muted); font-size: 11px; }
