/* Shell Neoverso · opción A «Dock cristal»: fondo con resplandores, topbar de cristal y tabbar anclada abajo.
   Solo aspecto; se carga tras app.css. Mínimos: letra 12 px, toques 44 px. */
/* Paleta y fuentes Neoverso (tokens de la maqueta A, rama rediseno/neoverso-base); pisan Cartografía. */
:root, :root[data-theme="light"] {
  --bg: #F2F3FF; --surface: #FFFFFF; --line: #CDD1F5; --contour: rgba(79, 87, 234, .08);
  --fg: #0B1030; --muted: #4F5788; --neo: #2B47D9; --health: #4349D6; --train: #C2410C;
  --glass: rgba(242, 243, 255, .92); --tab-active: #4349D6; --median: #6B3FD0; --danger: #B4232F;
  --green-text: #0B7A55; --yellow-text: #725019; --red-text: #B4232F; --error-text: #B4232F;
  --f-display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-ui: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root {
  --tab-h: 62px;
  --grad-hero: linear-gradient(135deg, #2B47D9 0%, #4F57EA 45%, #6B3FD0 100%);
  --glow-a: rgba(79, 87, 234, .20); --glow-b: rgba(194, 65, 12, .10); --glow-c: rgba(107, 63, 208, .12);
  --card-shadow: 0 1px 2px rgba(11, 16, 48, .06), 0 8px 24px -12px rgba(43, 71, 217, .25);
  --tab-bg: rgba(255, 255, 255, .93); --tab-line: rgba(79, 87, 234, .14);
  --soft-health: color-mix(in srgb, var(--health) 12%, var(--surface));
  --soft-train: color-mix(in srgb, var(--train) 12%, var(--surface));
  --soft-median: color-mix(in srgb, var(--median) 12%, var(--surface));
  --indigo-hi: var(--health);
}
:root[data-theme="dark"] {
  --bg: #070A1C; --surface: #0F1636; --line: #252F66; --contour: rgba(124, 131, 255, .10);
  --fg: #EEF0FF; --muted: #949DD8; --neo: #8A9CFF; --health: #7C83FF; --train: #FF7A45;
  --glass: rgba(11, 16, 48, .92); --tab-active: #B6BBFF; --median: #C9B5FF; --danger: #FF6B7F;
  --green-text: #2FF2A6; --yellow-text: #F2C878; --red-text: #FF5C72; --error-text: #FF6B7F;
  --grad-hero: linear-gradient(135deg, #2B47D9 0%, #4349D6 45%, #5B33B8 100%);
  --glow-a: rgba(124, 131, 255, .22); --glow-b: rgba(255, 122, 69, .10); --glow-c: rgba(201, 181, 255, .10);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -14px rgba(0, 0, 0, .7);
  --tab-bg: rgba(11, 16, 48, .93); --tab-line: rgba(124, 131, 255, .18); --indigo-hi: #B6BBFF;
}
@media (prefers-color-scheme: dark) { :root[data-theme="system"] {
  --bg: #070A1C; --surface: #0F1636; --line: #252F66; --contour: rgba(124, 131, 255, .10);
  --fg: #EEF0FF; --muted: #949DD8; --neo: #8A9CFF; --health: #7C83FF; --train: #FF7A45;
  --glass: rgba(11, 16, 48, .92); --tab-active: #B6BBFF; --median: #C9B5FF; --danger: #FF6B7F;
  --green-text: #2FF2A6; --yellow-text: #F2C878; --red-text: #FF5C72; --error-text: #FF6B7F;
  --grad-hero: linear-gradient(135deg, #2B47D9 0%, #4349D6 45%, #5B33B8 100%);
  --glow-a: rgba(124, 131, 255, .22); --glow-b: rgba(255, 122, 69, .10); --glow-c: rgba(201, 181, 255, .10);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -14px rgba(0, 0, 0, .7);
  --tab-bg: rgba(11, 16, 48, .93); --tab-line: rgba(124, 131, 255, .18); --indigo-hi: #B6BBFF;
} }

body {
  background:
    radial-gradient(120% 50% at 0% 0%, var(--glow-a), transparent 60%),
    radial-gradient(80% 40% at 100% 8%, var(--glow-b), transparent 65%),
    radial-gradient(90% 50% at 50% 100%, var(--glow-c), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* Topbar: cristal desde arriba, sin borde duro */
.topbar {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--tab-line);
}
.topbar::before { display: none; }

@media (max-width: 767px) {
  .topbar { min-height: 56px; padding: 6px 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-parent { display: inline; color: var(--fg); font: 800 19px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
  .brand-name { padding: 4px 8px; border-radius: var(--r-chip); background: var(--soft-health); color: var(--indigo-hi); font: 600 12px/1 var(--f-ui); }
  .compact-title { display: none !important; }
  .link-button { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; color: var(--muted); }

  .page { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 28px); }
  .site-footer { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 20px); }

  /* Tabbar A · Dock cristal: pegada abajo a todo el ancho; el área segura queda debajo de los iconos */
  .tabbar {
    left: 0; right: 0; bottom: 0; padding: 6px 8px env(safe-area-inset-bottom);
    border: 0; border-top: 1px solid var(--tab-line); border-radius: 0;
    background: var(--tab-bg);
    -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  }
  .tabbar a, .tabbar button { min-height: var(--tab-h); font: 500 12px/1 var(--f-ui); }
  .tabbar svg {
    box-sizing: content-box; width: 20px; height: 20px; padding: 5px 16px; border-radius: var(--r-chip);
    transition: background var(--t-move) var(--ease-out);
  }
  .tabbar a[aria-current="page"], .tabbar button[aria-current="page"] { color: var(--indigo-hi); font-weight: 700; }
  .tabbar a[aria-current="page"] svg, .tabbar button[aria-current="page"] svg {
    background: color-mix(in srgb, var(--health) 16%, transparent);
  }
  .tab-indicator { display: none; }
}
