/* CAAmino · Hipocampo — sistema visual */
@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/fraunces-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --font-ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --bg: #f7f3ec;
  --bg-2: #efe9df;
  --surface: #ffffff;
  --surface-2: #f6f2ea;
  --border: #e6dfd3;
  --border-strong: #d3c9b9;
  --ink: #102c33;
  --ink-2: #3d575d;
  --muted: #6d8287;
  --brand-deep: #0b4f5c;
  --brand: #0e7a72;
  --brand-bright: #16a39a;
  --brand-soft: #dcf2ee;
  --brand-ink: #ffffff;
  --coral: #f2643f;
  --coral-bright: #ff8a65;
  --coral-soft: #ffe7de;
  --sun: #f5b52e;
  --sun-soft: #fff1d1;
  --ok: #1f7a3a;
  --ok-soft: #e1f3e5;
  --warn: #8f5a00;
  --warn-soft: #fff0cf;
  --danger: #c0392b;
  --danger-soft: #fde8e5;
  --series-1: #2a78d6;
  --series-2: #16a39a;
  --seq-hi: #1d5fae;
  --grid: #ece6db;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16, 44, 51, .06);
  --shadow: 0 1px 2px rgba(16, 44, 51, .05), 0 8px 24px -6px rgba(16, 44, 51, .10);
  --shadow-lg: 0 2px 4px rgba(16, 44, 51, .06), 0 24px 48px -12px rgba(16, 44, 51, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side-w: 264px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1a1d;
    --bg-2: #112226;
    --surface: #152629;
    --surface-2: #1b2f33;
    --border: #26403f;
    --border-strong: #335553;
    --ink: #eef5f3;
    --ink-2: #c1d3d0;
    --muted: #8fa8a5;
    --brand-deep: #0b4f5c;
    --brand: #3cc4b6;
    --brand-bright: #4fd6c7;
    --brand-soft: #173c3a;
    --brand-ink: #062320;
    --coral: #ff8a65;
    --coral-soft: #3a2219;
    --sun-soft: #352b14;
    --ok: #7fd18b;
    --ok-soft: #173321;
    --warn: #f0c060;
    --warn-soft: #352b14;
    --danger: #ff8f84;
    --danger-soft: #3a1c19;
    --series-1: #3987e5;
    --seq-hi: #5a9cf0;
    --grid: #22393b;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(255,255,255,.02);
    --shadow-lg: 0 24px 48px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4rem; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.6rem, 2.2vw + 1rem, 2.15rem); font-variation-settings: 'SOFT' 50, 'opsz' 72; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1.04rem; font-weight: 800; }
p { margin: 0 0 .7rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.with-ico { display: flex; align-items: center; gap: .45rem; }
.mt { margin-top: 1rem; }

/* ---------- shell ---------- */
.sidebar, .tabbar { display: none; }
body[data-mode="app"] { display: grid; grid-template-columns: var(--side-w) 1fr; }
body[data-mode="app"] .sidebar {
  display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100dvh;
  padding: 1.4rem 1rem 1rem; background: var(--surface); border-right: 1px solid var(--border);
}
#app { min-width: 0; outline: none; }
#app.enter > * { animation: enter .32s var(--ease) backwards; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.side-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); padding: 0 .4rem; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wm-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.wm-pre { color: var(--coral); }
.wm-parent { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: .15rem; }
.logo-mark { flex: none; filter: drop-shadow(0 4px 10px rgba(11, 79, 92, .25)); }
.side-nav { display: flex; flex-direction: column; gap: .2rem; }
.side-link {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; border: 0; background: none;
  font: inherit; font-weight: 700; color: var(--ink-2); text-decoration: none; cursor: pointer; text-align: left; width: 100%;
  transition: background .15s, color .15s;
}
.side-link .ico { width: 1.25em; height: 1.25em; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: var(--brand-soft); color: var(--brand); }
.side-link.subtle { color: var(--muted); font-weight: 600; }
.side-foot { margin-top: auto; display: grid; gap: .4rem; }
.me-card { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 14px; background: var(--surface-2); }
.me-card div { display: grid; min-width: 0; }
.me-card strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page { max-width: 1120px; margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2.5rem) 5rem; }
.narrow-page { max-width: 760px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.brand-row { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.brand-row .wm-name { font-size: 1.15rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--muted); margin-bottom: 1rem; font-size: .92rem; }
.back:hover { color: var(--brand); }

@media (max-width: 900px) {
  body[data-mode="app"] { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body[data-mode="app"] .sidebar { display: none; }
  body[data-mode="app"] .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  }
  .tab-link {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .2rem; border: 0; background: none; border-radius: 12px;
    font: inherit; font-size: .7rem; font-weight: 800; color: var(--muted); text-decoration: none; cursor: pointer;
  }
  .tab-link .ico { width: 1.45rem; height: 1.45rem; }
  .tab-link.active { color: var(--brand); background: var(--brand-soft); }
  .page { padding-top: 1.25rem; }
}

.mtop { display: none; }
@media (max-width: 900px) {
  body[data-mode="app"] .mtop { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 1rem 0; padding-top: calc(.7rem + env(safe-area-inset-top)); }
  .mtop .wm-name { font-size: 1.2rem; }
  .mtop .wm-parent { font-size: .62rem; }
  .mtop a { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
}
/* ---------- controles ---------- */
.btn {
  font: inherit; font-weight: 800; font-size: .93rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.05rem; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.primary {
  background: linear-gradient(180deg, var(--brand-bright), var(--brand)); border-color: transparent; color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -6px rgba(14, 122, 114, .55);
}
.btn.primary:hover { filter: brightness(1.05); background: linear-gradient(180deg, var(--brand-bright), var(--brand)); }
@media (prefers-color-scheme: dark) { .btn.primary { color: var(--brand-ink); } }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: transparent; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger-text { color: var(--danger); }
.btn.link { border: 0; background: none; color: var(--brand); padding: .25rem .35rem; min-height: 0; font-weight: 800; }
.btn.link:hover { text-decoration: underline; background: none; }
.btn.sm { min-height: 36px; padding: .35rem .75rem; font-size: .84rem; border-radius: 10px; }
.btn.lg { min-height: 52px; padding: .75rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .ico { width: 1.25rem; height: 1.25rem; }

.field label, .dictate-box > label { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; font-size: .86rem; font-weight: 800; color: var(--ink-2); margin-bottom: .35rem; }
.hint { font-weight: 600; color: var(--muted); font-size: .78rem; }
.hint::before { content: '· '; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 12px; padding: .62rem .8rem; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
button:focus-visible, a:focus-visible, .chip input:focus-visible + span, .tile input:focus-visible + span, [tabindex]:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .95rem; cursor: pointer; }
.check input { margin-top: .2rem; width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.error-msg { color: var(--danger); font-size: .9rem; font-weight: 700; min-height: 1.2em; margin: 0; }
.error-msg:empty { min-height: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { margin: 0; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: .45rem .85rem; min-height: 38px; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: .88rem; font-weight: 700; color: var(--ink-2); cursor: pointer; user-select: none; background: var(--surface);
  transition: all .15s var(--ease);
}
.chip span:hover { border-color: var(--brand); color: var(--brand); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px -4px rgba(14,122,114,.5); }
@media (prefers-color-scheme: dark) { .chip input:checked + span { color: var(--brand-ink); } }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.badge .ico { width: .95em; height: .95em; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.fam { background: var(--coral-soft); color: var(--coral); }
.pill { font-style: normal; font-size: .75rem; font-weight: 900; background: rgba(255,255,255,.25); padding: .05rem .5rem; border-radius: 999px; }

.notice { display: flex; gap: .6rem; align-items: flex-start; border-radius: 14px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.notice .ico { margin-top: .12rem; }
.notice.info { background: var(--brand-soft); color: var(--ink); }
.notice.info .ico { color: var(--brand); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.card + .card, .stack > * + *, .card + details, details + .card { margin-top: 1rem; }
.stack > * { margin-top: 0; }
.stack { display: grid; gap: 1rem; }
.stack.tight { gap: .55rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.tight { gap: .4rem; }
.grid { display: grid; gap: .9rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.two-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.grid.two-col .card { margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 0 0 1rem; }
.toolbar > p { margin: 0; max-width: 60ch; }
details > summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; gap: .4rem; }
details > summary::before { content: ''; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: .2rem; }
details[open] > summary::before { transform: rotate(45deg); }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: .8rem; }

.empty { text-align: center; padding: 2rem 1rem; display: grid; justify-items: center; gap: .3rem; }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--sun-soft)); color: var(--brand); margin-bottom: .5rem; }
.empty-ico .ico { width: 30px; height: 30px; }
.empty p { max-width: 46ch; }
.state-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 1rem; }
.state-ico .ico { width: 30px; height: 30px; }
.state-ico.warn { background: var(--warn-soft); color: var(--warn); }

.avatar { display: inline-grid; place-items: center; border-radius: 30%; font-weight: 900; letter-spacing: .02em; flex: none; font-family: var(--font-ui); }
.avatar.sm { width: 36px; height: 36px; font-size: .8rem; border-radius: 12px; }
.avatar.md { width: 48px; height: 48px; font-size: .95rem; border-radius: 15px; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; border-radius: 20px; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.55rem; border-radius: 26px; box-shadow: 0 10px 24px -10px rgba(16,44,51,.35); }

/* ---------- acceso ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(255,138,101,.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(22,163,154,.55), transparent 60%),
    linear-gradient(160deg, #0b4f5c 0%, #0a3d48 55%, #072f38 100%);
}
.auth-art-inner { position: relative; z-index: 2; max-width: 520px; }
.auth-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 3rem; }
.auth-brand .wm-name { color: #fff; font-size: 2rem; }
.auth-brand .wm-pre { color: var(--coral-bright); }
.auth-brand .wm-parent { color: rgba(255,255,255,.65); }
.auth-claim { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 2rem; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.auth-points li { display: flex; gap: .8rem; align-items: center; font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.9); }
.auth-points .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.12); color: #ffd3c4; }
.waves { position: absolute; inset: auto 0 0 0; height: 38%; z-index: 1; pointer-events: none; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave.w1 path { fill: rgba(255,255,255,.06); }
.wave.w2 path { fill: rgba(255,255,255,.08); }
.auth-main { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { margin-bottom: .3rem; }
.auth-card .stack { margin: 1.5rem 0 1rem; }
.auth-mobile-brand { display: none; align-items: center; gap: .7rem; margin-bottom: 2rem; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-main { align-items: start; padding-top: 3rem; }
}

/* ---------- inicio ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; color: #fff; margin-bottom: 1.5rem;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255,138,101,.45), transparent 60%),
    radial-gradient(420px 300px at 0% 120%, rgba(22,163,154,.7), transparent 60%),
    linear-gradient(135deg, #0b4f5c, #0d6466);
  box-shadow: var(--shadow-lg);
}
.hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); }
.hero-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 900; margin: 0; opacity: .8; }
.hero-title { font-size: clamp(2rem, 4vw, 2.9rem); margin: .1rem 0 .25rem; color: #fff; }
.hero-sub { margin: 0; opacity: .85; font-weight: 600; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: .6rem; }
.stat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: .7rem .9rem; backdrop-filter: blur(6px); }
.stat strong { display: flex; align-items: center; gap: .3rem; font-size: 1.6rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat strong .ico { color: #ffb59e; width: 1rem; height: 1rem; }
.stat span { font-size: .78rem; font-weight: 700; opacity: .85; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; } }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search .ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 2.6rem; border-radius: 14px; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.student-card {
  display: grid; gap: .8rem; padding: 1.1rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.student-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.sc-top { display: flex; align-items: center; gap: .8rem; }
.sc-id { display: grid; min-width: 0; flex: 1; }
.sc-id strong { font-size: 1.08rem; font-weight: 900; }
.sc-id span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-go { color: var(--muted); transition: transform .18s var(--ease); }
.student-card:hover .sc-go { transform: translateX(3px); color: var(--brand); }
.sc-stats { display: flex; gap: .5rem; flex-wrap: wrap; }
.sc-stats span { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 800; color: var(--ink-2); background: var(--surface-2); padding: .25rem .6rem; border-radius: 999px; }
.sc-stats span.fam { background: var(--coral-soft); color: var(--coral); }
.sc-foot { border-top: 1px dashed var(--border); padding-top: .6rem; }
.archived summary { color: var(--muted); }

/* ---------- ficha ---------- */
.student-hero { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sh-id { flex: 1; min-width: 200px; }
.sh-id h1 { display: flex; align-items: center; gap: .6rem; margin: 0; }
.sh-id p { margin: .2rem 0 0; }
.sh-notes { max-width: 70ch; color: var(--ink-2); }
.sh-actions { display: grid; gap: .4rem; justify-items: end; }
@media (max-width: 640px) { .sh-actions { justify-items: stretch; width: 100%; } .sh-actions .btn.lg { width: 100%; } }
.tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .3rem; margin: 0 0 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 800; font-size: .9rem; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { background: var(--surface-2); }
.tabs a.active { background: var(--ink); color: var(--bg); }
.tabs a em { font-style: normal; font-size: .72rem; background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: .05rem .45rem; }
.tabs a.active em { background: rgba(255,255,255,.18); color: inherit; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: .25rem; gap: .2rem; }
.seg button { font: inherit; font-weight: 800; font-size: .86rem; border: 0; background: none; padding: .45rem .85rem; border-radius: 9px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.timeline { display: grid; gap: 1.4rem; }
.tl-day { display: grid; gap: .65rem; }
.tl-date { display: flex; align-items: baseline; gap: .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.tl-date em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.obs-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.1rem 1rem 1.3rem; box-shadow: var(--shadow-sm); display: grid; gap: .5rem; }
.obs-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-bright); }
.obs-card.fam::before { background: var(--coral); }
.obs-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.obs-head strong { font-size: 1.02rem; }
.obs-meta { display: inline-flex; gap: .5rem; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-size: .78rem; font-weight: 800; padding: .2rem .6rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.tag.soft { background: var(--surface-2); color: var(--ink-2); }
.obs-desc { margin: 0; color: var(--ink-2); }
.obs-actions { display: flex; gap: .3rem; margin: -.2rem 0 -.4rem -.35rem; opacity: .75; }
.obs-card:hover .obs-actions { opacity: 1; }

.dictate-box { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--sun-soft) 70%, var(--surface))); border-radius: 18px; padding: 1rem; display: grid; gap: .6rem; }
.dictate-box textarea { background: var(--surface); }
.btn.mic { border-color: transparent; background: var(--coral); color: #fff; box-shadow: 0 6px 16px -6px rgba(242,100,63,.6); }
.btn.mic:hover { background: var(--coral); filter: brightness(1.05); }
.btn.mic.rec { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,100,63,.55); } 70% { box-shadow: 0 0 0 14px rgba(242,100,63,0); } 100% { box-shadow: 0 0 0 0 rgba(242,100,63,0); } }
.detected { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .86rem; font-weight: 700; color: var(--brand); }
.flash { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sun) 80%, transparent); background-color: var(--sun-soft); } 100% { box-shadow: 0 0 0 8px transparent; } }

.goal-card { display: grid; gap: 1rem; }
.goal-head { display: flex; gap: 1rem; align-items: flex-start; }
.goal-id { flex: 1; min-width: 0; display: grid; gap: .25rem; }
.goal-id h3 { font-size: 1.1rem; margin: .1rem 0 0; }
.goal-id p { margin: 0; display: flex; align-items: center; gap: .3rem; }
.goal-actions { display: flex; }
.home-tip { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: var(--sun-soft); }
.home-tip > .ico { color: var(--warn); margin-top: .15rem; }
.home-tip p { margin: .1rem 0 0; color: var(--ink-2); font-size: .92rem; }
.measure { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; padding-top: .9rem; border-top: 1px dashed var(--border); }
.measure .field { width: 120px; }
.measure .field:first-child { width: 160px; }
.measure .grow { flex: 1; min-width: 160px; width: auto; }
.measure .field label { font-size: .78rem; }
.measure .error-msg { flex-basis: 100%; }
.mini-table summary { font-size: .88rem; color: var(--ink-2); font-weight: 700; }

/* gráficos */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font-ui); font-weight: 600; }
.chart .crit-label { font-weight: 800; }
.chart .area { fill: color-mix(in srgb, var(--series-1) 10%, transparent); }
.chart .line { stroke: var(--series-1); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.sp { stroke: var(--series-2); stroke-dasharray: 5 4; }
.chart .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; transition: r .15s; }
.chart .dot.hover { r: 7; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .criterion { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.legend { display: flex; gap: 1rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .4rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.key-line { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--series-1); }
.key-line.sp { border-top: 2px dashed var(--series-2); }
.tooltip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 10px; padding: .45rem .7rem; font-size: .8rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); z-index: 3; }
.tooltip strong { display: block; font-size: 1rem; color: var(--ink); }
.tooltip span { display: block; color: var(--ink-2); }
.tooltip .tip-sp { color: var(--brand); font-weight: 700; }
.ring .ring-bg { stroke: var(--surface-2); }
.ring .ring-fg { stroke: var(--brand-bright); transition: stroke-dasharray .4s var(--ease); }
.ring .ring-txt { font-family: var(--font-ui); font-weight: 900; font-size: 15px; fill: var(--ink); }

/* tablas */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.heat td.cell { text-align: center; font-variant-numeric: tabular-nums; min-width: 2.4rem; border: 2px solid var(--surface); border-radius: 6px; font-weight: 800; }
.heat th { text-transform: none; letter-spacing: 0; }
.heat th.rot { font-size: .72rem; vertical-align: bottom; }

/* ---------- modal ---------- */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(600px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog[open] { animation: pop-in .22s var(--ease); }
dialog::backdrop { background: rgba(7, 32, 38, .5); backdrop-filter: blur(3px); }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
#modal-body { padding: 1.4rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { font-family: var(--font-display); font-weight: 650; font-size: 1.45rem; margin: 0; }
.modal-head p { margin: .15rem 0 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; position: sticky; bottom: -1.4rem; background: var(--surface); padding: .8rem 0 .2rem; }
@media (max-width: 640px) {
  dialog { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  dialog[open] { animation: sheet-in .28s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  #modal-body { padding: 1.2rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); }
  .modal-actions .btn { flex: 1; }
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.kv dt { font-weight: 800; color: var(--muted); font-size: .86rem; }
.kv dd { margin: 0; word-break: break-all; }
.secret { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem; background: var(--surface-2); padding: .6rem .8rem; border-radius: 10px; user-select: all; word-break: break-all; }
.share-box { margin: .5rem 0; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; gap: .5rem; justify-items: center; }
body[data-mode="app"] #toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
@media (min-width: 901px) { body[data-mode="app"] #toast { bottom: 1.5rem; left: calc(50% + var(--side-w) / 2); } }
.toast-item { display: flex; align-items: center; gap: .55rem; background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 14px; font-size: .92rem; font-weight: 700; box-shadow: var(--shadow-lg); max-width: 90vw; animation: toast-in .25s var(--ease); }
.toast-item .ico { color: var(--brand-bright); }
.toast-item.error { background: var(--danger); color: #fff; }
.toast-item.error .ico { color: #fff; }
.toast-item.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.boot { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- modo sesión ---------- */
body[data-mode="focus"] { background: var(--bg-2); }
.session { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.sess-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .7rem; padding: .7rem clamp(.8rem, 3vw, 2rem); padding-top: calc(.7rem + env(safe-area-inset-top)); background: linear-gradient(135deg, #0b4f5c, #0d6466); color: #fff; box-shadow: var(--shadow); }
.sess-bar .icon-btn { color: #fff; }
.sess-bar .icon-btn:hover { background: rgba(255,255,255,.12); }
.sess-id { display: grid; line-height: 1.2; min-width: 0; }
.sess-id strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-id .muted { color: rgba(255,255,255,.7); }
.sess-clock { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 900; font-size: 1.2rem; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.12); padding: .35rem .8rem; border-radius: 12px; }
.sess-bar .btn.primary { background: var(--coral); box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); color: #fff; flex: none; }
@media (max-width: 520px) {
  .sess-bar { gap: .45rem; }
  .sess-bar .avatar { display: none; }
  .sess-id .muted { display: none; }
  .sess-clock { font-size: 1rem; padding: .3rem .55rem; }
  .sess-bar .btn.primary { padding: .5rem .8rem; }
  .taps { gap: .45rem; }
  .tap { min-height: 100px; font-size: .8rem; }
}
.sess-body { width: 100%; max-width: 980px; margin: 0 auto; padding: 1.2rem clamp(.8rem, 3vw, 2rem) 7rem; display: grid; gap: 1rem; align-content: start; }
.sess-tools { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.sess-goals { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.sess-goal { background: var(--surface); border-radius: 24px; padding: 1.1rem; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; gap: 1rem; }
.sg-head { display: flex; gap: .9rem; align-items: center; }
.sg-head h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.sg-head p { margin: 0; }
.taps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tap {
  position: relative; display: grid; justify-items: center; gap: .25rem; padding: 1rem .4rem .8rem; min-height: 112px; border-radius: 20px; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-size: .88rem; transition: transform .1s var(--ease), filter .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tap .ico { width: 30px; height: 30px; }
.tap b { font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tap:active { transform: scale(.95); }
.tap.sp { background: linear-gradient(180deg, #19b3a8, #0e7a72); color: #fff; box-shadow: 0 10px 20px -10px rgba(14,122,114,.8); }
.tap.su { background: linear-gradient(180deg, #e3f4f1, #cdebe6); color: #0b4f5c; }
.tap.mi { background: linear-gradient(180deg, #fff0ea, #ffdcd0); color: #a5391c; }
@media (prefers-color-scheme: dark) { .tap.su { background: #1e3f3d; color: #bff0e8; } .tap.mi { background: #3d2219; color: #ffb59e; } }
.tap.pop b { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.sess-note textarea { background: var(--surface-2); }
.sess-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); pointer-events: none; }
.btn.fab { pointer-events: auto; min-height: 58px; padding: .8rem 1.5rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-size: 1rem; box-shadow: var(--shadow-lg); }
.btn.fab:hover { background: var(--ink); filter: brightness(1.15); }
.btn.fab .ico { color: var(--coral-bright); }
.sum-rows { display: grid; gap: .7rem; }
.sum-row { display: flex; gap: .8rem; align-items: center; padding: .6rem; border-radius: 14px; background: var(--surface-2); }
.sum-row p { margin: 0; }
.sum-row .ring-txt { font-size: 12px; }

/* ---------- familia ---------- */
.fam-hero { display: flex; gap: 1.2rem; align-items: center; background: linear-gradient(135deg, var(--coral-soft), color-mix(in srgb, var(--sun-soft) 70%, var(--surface))); border: 0; }
.fam-hero h2 { font-family: var(--font-display); font-weight: 650; font-size: 1.45rem; }
.fh-art { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--surface); color: var(--coral); flex: none; box-shadow: var(--shadow); }
.fh-art .ico { width: 38px; height: 38px; }
@media (max-width: 560px) { .fam-hero { flex-direction: column; align-items: flex-start; } }
.link-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .7rem; border-radius: 14px; background: var(--surface-2); }
.link-row.off { opacity: .6; }
.lr-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); flex: none; }
.lr-ico.soft { background: var(--brand-soft); color: var(--brand); }
.lr-id { flex: 1; display: grid; min-width: 180px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0 0 .2rem; }
.section-head p { margin: 0; }
.section-head .field { width: 200px; }
.summary { border-radius: 20px; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--border); }
.summary.preview { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 14px, var(--surface-2) 14px, var(--surface-2) 15px); }
.sum-head { margin-bottom: .6rem; }
.sum-kicker { font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.sum-head h3 { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; margin: .1rem 0 0; }
.summary h4 { font-size: .95rem; margin: 1rem 0 .3rem; color: var(--brand); }
.summary ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.sum-msg { display: flex; gap: .7rem; margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 14px; background: var(--coral-soft); }
.sum-msg .ico { color: var(--coral); margin-top: .1rem; }
.sum-msg p { margin: 0; font-weight: 600; }

.fam-page { min-height: 100dvh; background: radial-gradient(800px 400px at 100% 0%, var(--coral-soft), transparent 60%), radial-gradient(700px 400px at 0% 100%, var(--brand-soft), transparent 60%), var(--bg); }
.fam-top { display: flex; align-items: center; gap: .6rem; padding: 1rem clamp(1rem, 4vw, 2rem); }
.fam-top .wm-name { font-size: 1.2rem; }
.fam-wrap { max-width: 680px; margin: 0 auto; padding: .5rem 1rem 3rem; display: grid; gap: 1rem; }
.fam-welcome { display: flex; gap: 1rem; align-items: center; padding: .5rem 0 .5rem; }
.fam-welcome h1 { margin: .1rem 0 .2rem; }
.fam-welcome .hero-kicker { color: var(--coral); opacity: 1; }
.fam-welcome p { margin: 0; }
.fam-card { margin: 0 !important; }
.step { display: grid; gap: .6rem; }
.step h3 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.05rem; flex-wrap: wrap; }
.step h3 i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: .85rem; font-weight: 900; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.tile { position: relative; margin: 0; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile span { display: flex; align-items: center; min-height: 56px; padding: .6rem .8rem; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); font-weight: 800; font-size: .92rem; cursor: pointer; line-height: 1.25; transition: all .15s var(--ease); }
.tile span:hover { border-color: var(--coral); }
.tile input:checked + span { border-color: var(--coral); background: var(--coral-soft); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(242,100,63,.6); }
.thanks { text-align: center; display: grid; justify-items: center; gap: .3rem; padding: 1.5rem 0; animation: enter .4s var(--ease); }
.thanks-ico { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); animation: bump .6s var(--ease); }
.thanks-ico .ico { width: 40px; height: 40px; }
.thanks h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 650; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tips li { padding: .8rem 1rem; border-radius: 14px; background: var(--sun-soft); }
.tips li p { margin: .2rem 0 0; color: var(--ink-2); }
.recent { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }

/* ---------- perfil ---------- */
.print-name { padding: 1rem 1.25rem; }
.print-name .field { max-width: 420px; }
.passport { background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.pp-head {
  display: flex; gap: 1.2rem; align-items: center; padding: 1.6rem clamp(1.2rem, 3vw, 2rem); color: #fff;
  background: radial-gradient(400px 200px at 100% 0%, rgba(255,138,101,.55), transparent 60%), linear-gradient(135deg, #0b4f5c, #0e7a72);
}
.pp-kicker { margin: 0; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.pp-head h2 { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .1rem 0; }
.pp-sub { margin: 0; opacity: .9; font-weight: 600; }
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.3rem clamp(1.2rem, 3vw, 2rem); }
.pp-block { background: var(--surface-2); border-radius: 18px; padding: 1rem 1.1rem; }
.pp-block.wide { grid-column: 1 / -1; }
.pp-block h3 { color: var(--brand); margin-bottom: .55rem; }
.pp-block p { margin: 0 0 .4rem; }
.pp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.pp-list li { position: relative; padding-left: 1.4rem; font-weight: 600; }
.pp-list li::before { content: ''; position: absolute; left: .2rem; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); }
.pp-means { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.pp-means li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--surface); padding: .5rem .75rem; border-radius: 12px; }
.pp-means .ico { color: var(--coral); }
.pp-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem clamp(1.2rem, 3vw, 2rem); border-top: 1px solid var(--border); }
.pp-foot .brand-row { margin: 0; }
.pp-foot .wm-name { font-size: .95rem; }
.pp-foot .wm-parent { font-size: .6rem; }
@media (max-width: 640px) { .pp-grid { grid-template-columns: 1fr; } .pp-head { flex-direction: column; align-items: flex-start; } }
.meaning-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: center; }
@media (max-width: 560px) { .meaning-row { grid-template-columns: 1fr auto; } .meaning-row input:nth-child(2) { grid-column: 1; } }

/* ---------- admin y cuenta ---------- */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.user-grid .card { margin: 0; }
.user-card { display: grid; gap: .8rem; }
.uc-top { display: flex; align-items: center; gap: .8rem; }
.uc-id { flex: 1; display: grid; min-width: 0; }
.uc-id span { overflow: hidden; text-overflow: ellipsis; }
.uc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.uc-stats span { display: grid; text-align: center; background: var(--surface-2); border-radius: 12px; padding: .5rem .2rem; font-size: .7rem; font-weight: 700; color: var(--muted); }
.uc-stats strong { font-size: 1.25rem; color: var(--ink); font-weight: 900; }
.user-card p { margin: 0; }
.fb { margin: 0; padding: .8rem 1rem; border-left: 4px solid var(--brand-bright); background: var(--surface-2); border-radius: 0 14px 14px 0; }
.fb p { margin: 0 0 .3rem; }
.account-card { display: flex; gap: 1rem; align-items: center; }
.account-card h2 { margin: 0; }
.account-card p { margin: .2rem 0; }
.terms { max-height: 50vh; overflow-y: auto; border-radius: 14px; padding: 1rem 1.2rem; background: var(--surface-2); font-size: .92rem; margin: 1rem 0; }
.terms h3 { margin-top: 1rem; font-size: .98rem; }
.terms ul { padding-left: 1.2rem; margin: 0 0 .75rem; }

/* ---------- informe ---------- */
.report-controls { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
.report-controls .field { width: 180px; }
.paper { padding: clamp(1.2rem, 4vw, 2.5rem); }
.report-head { border-bottom: 2px solid var(--ink); padding-bottom: .8rem; margin-bottom: 1.2rem; }
.report section { margin-bottom: 1.6rem; break-inside: avoid-page; }
.report h2 { font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; }
.report .disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: .8rem; }
.goal-block { break-inside: avoid; margin-bottom: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f5f3ef; --ink: #000; --ink-2: #333; --muted: #555; --border: #ddd; --grid: #e5e5e5; --series-1: #2a78d6; --seq-hi: #1d5fae; --shadow: none; --shadow-lg: none; }
  body { display: block !important; background: #fff; }
  .sidebar, .tabbar, .no-print, .tabs, #toast, .sess-foot { display: none !important; }
  .page { max-width: none; padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .heat td.cell, .pp-head, .pp-block, .passport, .tag, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-passport .tab-body > .stack > :not(.passport) { display: none !important; }
  .passport { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  dialog { position: static; box-shadow: none; }
}
