/* AutoKine+: test, sesión guiada, registro de dolor, recordatorios e informe (ver plus.js) */

/* ---- test «¿Dónde te duele?» ---- */
.tx-cta{display:flex; align-items:center; gap:14px; width:100%; text-align:left; font-family:inherit; color:#fff; background:var(--grad); border:none; border-radius:18px; padding:14px 16px; margin:0 0 14px; cursor:pointer; box-shadow:var(--shadow)}
.login .tx-cta{width:min(100%,380px); margin:24px 0 0}
.tx-cta svg{width:44px; height:44px; flex:none; background:rgba(255,255,255,.14); border-radius:12px; padding:4px; fill:#E6FBF5}
.tx-cta svg .hl{fill:#FFB59A}
.tx-cta b{display:block; font-family:'Space Grotesk','Inter',sans-serif; font-size:16.5px; font-weight:600; line-height:1.2}
.tx-cta small{display:block; font-size:12.5px; opacity:.85; margin-top:3px}
.tx-cta i{margin-left:auto; font-style:normal; font-size:20px; opacity:.9}
.tx-cta:focus-visible{outline:3px solid var(--coral); outline-offset:2px}
.tx{display:flex; flex-direction:column; align-items:stretch}
.tx > .back{align-self:flex-start; margin-bottom:6px}
.tx-step{align-self:center; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--teal); background:var(--teal-soft); border-radius:100px; padding:4px 12px; margin:6px 0 4px}
.tx-lede{text-align:center; font-size:14.5px; color:var(--muted); margin:6px 0 10px}
.tx-q{text-align:center; font-family:'Space Grotesk','Inter',sans-serif; font-size:20px; font-weight:600; line-height:1.25; margin:12px 0 4px}
.tx-zone-wrap{display:grid; grid-template-columns:minmax(150px,220px) 1fr; gap:14px; align-items:center}
@media (max-width:560px){ .tx-zone-wrap{grid-template-columns:1fr} .tx-body{max-height:300px} }
.tx-body{width:100%; height:auto; justify-self:center; max-width:230px}
.tx-sil > *{fill:color-mix(in srgb, var(--teal) 14%, var(--card)); stroke:color-mix(in srgb, var(--teal) 35%, var(--line)); stroke-width:1.2}
.tx-dot{cursor:pointer; outline:none}
.tx-dot circle:not(.tx-pulse){fill:var(--coral); stroke:var(--card); stroke-width:2.5}
.tx-dot .tx-pulse{fill:var(--coral); opacity:.35; transform-box:fill-box; transform-origin:center; animation:txPulse 2.2s ease-out infinite}
.tx-dot:hover circle:not(.tx-pulse), .tx-dot:focus-visible circle:not(.tx-pulse){fill:var(--teal)}
@keyframes txPulse{0%{transform:scale(.6); opacity:.5} 80%,100%{transform:scale(1.6); opacity:0}}
@media (prefers-reduced-motion: reduce){ .tx-dot .tx-pulse{animation:none} }
.tx-chips{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px}
.tx-chip{display:flex; align-items:center; gap:8px; font-family:inherit; font-size:13.5px; font-weight:600; text-align:left; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:14px; padding:6px 10px 6px 6px; cursor:pointer; min-height:52px}
.tx-chip .path-icon{width:40px; height:40px; margin:0; flex:none}
.tx-chip:hover{border-color:var(--teal)}
.tx-opts{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.tx-opt{font-family:inherit; font-size:15px; line-height:1.4; text-align:left; color:var(--ink); background:var(--card); border:1.5px solid var(--line); border-radius:16px; padding:14px 16px; cursor:pointer}
.tx-opt:hover, .tx-opt:focus-visible{border-color:var(--teal); background:var(--teal-soft); outline:none}
.tx-backlink{align-self:center; margin-top:16px}
.tx-flags{display:flex; flex-direction:column; gap:8px; margin-top:8px}
.tx-flag{display:flex; gap:10px; align-items:flex-start; font-size:14.5px; line-height:1.4; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px 14px; cursor:pointer}
.tx-flag input{width:20px; height:20px; flex:none; margin:1px 0 0; accent-color:var(--coral)}
.tx-flags .login-btn{margin-top:8px}
.tx-ghost{background:transparent !important; color:var(--teal) !important; border:1.5px solid var(--teal) !important; margin-top:0 !important}
.tx-alert{background:#FDECE3; color:#7A2A12; border:1px solid #F3B9A2; border-radius:16px; padding:16px; margin:10px 0 16px; font-size:14.5px; line-height:1.5}
.tx-alert b{font-family:'Space Grotesk','Inter',sans-serif; font-size:18px}
.tx-alert p{margin:6px 0 0}
.tx-res{background:var(--card); border:1px solid var(--line); border-top:5px solid var(--acc); border-radius:20px; padding:18px; margin-top:10px; box-shadow:var(--shadow)}
.tx-res-k{font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.tx-res-head{display:flex; align-items:center; gap:10px; margin:8px 0 4px}
.tx-res-head .path-icon{margin:0; width:60px; height:60px}
.tx-res-head b{font-family:'Space Grotesk','Inter',sans-serif; font-size:22px; line-height:1.15}
.tx-res p{font-size:14.5px; line-height:1.55; margin:8px 0}
.tx-res .tx-res-meta{font-weight:600; color:var(--acc)}
.tx-res .tx-res-note{font-size:12.5px; color:var(--muted); text-align:center; margin-bottom:0}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .tx-alert{background:#4A2618; color:#FFD3BE; border-color:#6B3A26} }
:root[data-theme="dark"] .tx-alert{background:#4A2618; color:#FFD3BE; border-color:#6B3A26}

/* ---- herramientas del inicio ---- */
.px-tools{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px}
.px-tool{flex:1 1 0; min-width:120px; display:flex; align-items:center; justify-content:center; gap:6px; font-family:inherit; font-size:13px; font-weight:600; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:100px; padding:9px 12px; cursor:pointer}
.px-tool:hover{border-color:var(--teal)}
.px-testlink{display:block; margin:18px auto 0}

/* ---- detalle: avance automático y acciones ---- */
.px-flash{margin:10px 0 0; font-size:13.5px; font-weight:600; color:var(--teal); background:var(--teal-soft); border-radius:10px; padding:8px 12px}
.px-auto{display:flex; gap:10px; align-items:flex-start; margin-top:10px; font-size:13px; line-height:1.45}
.px-auto p{margin:0}
.px-auto.holdPain p, .px-auto.few p{color:#9A3412}
.px-dots{display:flex; gap:4px; padding-top:4px; flex:none}
.px-dots i{width:10px; height:10px; border-radius:50%; background:var(--line)}
.px-dots i.on{background:var(--acc)}
.px-adjust{margin-top:8px; font-size:12.5px}
.px-adjust summary{cursor:pointer; color:var(--muted)}
.px-actions{margin-top:12px; display:flex; flex-direction:column; gap:8px}
.px-go{display:flex; align-items:center; gap:14px; width:100%; text-align:left; font-family:inherit; color:#fff; background:var(--acc); border:none; border-radius:16px; padding:14px 16px; cursor:pointer; box-shadow:0 6px 18px color-mix(in srgb, var(--acc) 35%, transparent)}
.px-go .px-play{width:42px; height:42px; flex:none; border-radius:50%; background:rgba(255,255,255,.22); display:grid; place-items:center; font-size:17px}
.px-go b{display:block; font-family:'Space Grotesk','Inter',sans-serif; font-size:17px}
.px-go small{display:block; font-size:12.5px; opacity:.9; margin-top:2px}
.px-row{display:flex; gap:8px; flex-wrap:wrap}
.px-sec{flex:1 1 0; min-width:110px; font-family:inherit; font-size:13px; font-weight:600; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:100px; padding:9px 12px; cursor:pointer}
.px-sec:hover{border-color:var(--acc,var(--teal))}

/* ---- ventana a pantalla completa ---- */
body.px-lock{overflow:hidden}
.px-overlay{display:none; position:fixed; inset:0; z-index:200; background:var(--bg); overflow-y:auto; justify-content:center; padding:max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom))}
.px-box{width:min(100%,520px)}
body.big .px-box{zoom:1.15}
.px-log h2{font-family:'Space Grotesk','Inter',sans-serif; font-size:22px; margin:10px 0 4px}
.px-q{font-size:14px; font-weight:600; margin:16px 0 8px}
.px-pain{display:grid; grid-template-columns:repeat(11,1fr); gap:4px}
.px-pain label{position:relative}
.px-pain input{position:absolute; opacity:0; inset:0}
.px-pain span{display:grid; place-items:center; height:44px; border-radius:10px; font-weight:700; font-size:15px; color:var(--pc); background:color-mix(in srgb, var(--pc) 12%, var(--card)); border:2px solid transparent; cursor:pointer}
.px-pain input:checked + span{background:var(--pc); color:#fff}
.px-pain input:focus-visible + span{border-color:var(--ink)}
.px-painword{font-size:13.5px; font-weight:600; text-align:center; margin:8px 0 0; min-height:1.2em}
.px-done{display:flex; flex-direction:column; gap:6px}
.px-done label{display:flex; gap:10px; align-items:flex-start; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:14px; line-height:1.35; cursor:pointer}
.px-done input{width:19px; height:19px; flex:none; margin:0; accent-color:var(--teal)}
.px-done small{display:block; font-size:12px; color:var(--muted); margin-top:2px}
.px-voice{display:flex; gap:8px; align-items:center; font-size:14px; margin:14px 0 4px}
.px-voice input{width:19px; height:19px; accent-color:var(--teal)}
.px-est{font-size:13.5px; color:var(--muted); margin:10px 0 0; text-align:center}
.px-err{font-size:13px; font-weight:600; color:#9A3412; margin:10px 0 0}
.px-log .login-btn{margin-top:16px}
.px-cancel{display:block; margin:14px auto 0}
.gx-finish{display:flex; flex-direction:column; align-items:center; gap:4px; font-size:40px; margin-top:12px}
.gx-finish b{font-family:'Space Grotesk','Inter',sans-serif; font-size:20px; text-align:center}

/* ---- sesión guiada ---- */
.gx{display:flex; flex-direction:column; align-items:center; text-align:center}
.gx-top{display:flex; align-items:center; gap:8px; width:100%; font-size:13px; font-weight:600; color:var(--muted)}
.gx-top span{margin-right:auto}
.gx-icon{width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:var(--card); color:var(--ink); font-size:16px; cursor:pointer}
.gx-bar{width:100%; height:5px; background:var(--line); border-radius:3px; margin:8px 0 12px; overflow:hidden}
.gx-bar i{display:block; height:100%; background:var(--acc); transition:width .3s}
.gx-stage{width:min(100%,300px); aspect-ratio:1/1; border-radius:20px; overflow:hidden; background:#eef0f2; border:2px solid var(--acc)}
.gx-stage.dim{opacity:.55}
.gx-stage .rot-gif-stage, .gx-stage video{width:100%; height:100%; display:block; object-fit:cover}
.gx-name{font-family:'Space Grotesk','Inter',sans-serif; font-size:21px; line-height:1.2; margin:12px 0 2px}
.gx-sub{font-size:14px; color:var(--muted); margin:0}
.gx-ringwrap{position:relative; width:150px; height:150px; margin:12px 0 4px}
.gx-ringwrap svg{width:100%; height:100%; transform:rotate(-90deg)}
.gx-ring-bg{fill:none; stroke:var(--line); stroke-width:9}
.gx-ring{fill:none; stroke:var(--acc); stroke-width:9; stroke-linecap:round; transition:stroke-dashoffset .2s linear}
.gx-ringwrap.rest .gx-ring, .gx-ringwrap.switch .gx-ring{stroke:var(--teal)}
.gx-num{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center}
.gx-num b{font-family:'Space Grotesk','Inter',sans-serif; font-size:46px; line-height:1; font-variant-numeric:tabular-nums}
.gx-num span{font-size:13px; font-weight:600; margin-top:4px; max-width:120px}
.gx-num small{font-size:11.5px; color:var(--muted)}
.gx-steps{text-align:left; font-size:14px; line-height:1.5; margin:4px 0 0; padding-left:20px; max-width:440px}
.gx-ctrl{display:flex; gap:10px; justify-content:center; width:100%; margin:14px 0 6px}
.gx-ctrl button{flex:1; max-width:130px; display:flex; flex-direction:column; align-items:center; gap:2px; font-family:inherit; font-size:20px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:16px; padding:10px 6px; cursor:pointer}
.gx-ctrl button span{font-size:12px; font-weight:600}
.gx-ctrl button.main{background:var(--acc); color:#fff; border-color:var(--acc)}

/* ---- recordatorios ---- */
.rx{display:flex; flex-direction:column; gap:14px}
.rx > .back{align-self:flex-start}
.rx-card{background:var(--card); border:1px solid var(--line); border-radius:18px; padding:16px}
.rx-card h3{font-family:'Space Grotesk','Inter',sans-serif; font-size:17px; margin:20px 0 6px}
.rx-card > h3:first-child{margin-top:0}
.rx-days{display:grid; grid-template-columns:repeat(7,1fr); gap:5px}
.rx-days label{position:relative}
.rx-days input{position:absolute; opacity:0; inset:0}
.rx-days span{display:grid; place-items:center; height:42px; border-radius:12px; font-size:13px; font-weight:600; text-transform:capitalize; border:1.5px solid var(--line); background:var(--bg); cursor:pointer}
.rx-days input:checked + span{background:var(--teal); color:var(--card); border-color:var(--teal)}
.rx-days input:focus-visible + span{outline:3px solid var(--coral)}
.rx-times{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.rx-time{display:inline-flex; align-items:center; gap:4px}
.rx-time input{font-family:inherit; font-size:16px; padding:9px 10px; border-radius:12px; border:1px solid var(--line); background:var(--bg); color:var(--ink)}
.rx-time button{border:none; background:none; color:var(--muted); cursor:pointer; font-size:14px}
.rx-for{font-size:13px; color:var(--muted); margin:12px 0 0}
.rx-note{font-size:13.5px; line-height:1.5; color:var(--muted); margin:6px 0 10px}
.rx-ok{font-size:13.5px; font-weight:600; color:var(--teal); margin:10px 0 4px}
.rx-msg{font-size:13.5px; font-weight:600; color:#9A3412; margin:10px 0 0}
.rx-msg.ok{color:var(--teal)}
.rx-cal{display:flex; gap:8px; flex-wrap:wrap}

/* ---- informe ---- */
.rp-bar{display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.rp-print{width:auto !important; margin:0 !important; padding:10px 18px !important}
.rp-hint{font-size:12.5px; color:var(--muted); margin:8px 0 12px}
.rp-doc{background:#fff; color:#14262C; border:1px solid var(--line); border-radius:16px; padding:22px; font-size:13.5px}
.rp-head{display:flex; align-items:center; gap:14px; border-bottom:2px solid #0C5A61; padding-bottom:12px}
.rp-head .brand-logo{width:52px !important; height:52px !important; margin:0 !important; flex:none}
.rp-head h1{font-family:'Space Grotesk','Inter',sans-serif; font-size:22px; margin:0}
.rp-head p{margin:2px 0 0; color:#6F8188}
.rp-doc h2{font-family:'Space Grotesk','Inter',sans-serif; font-size:16px; margin:20px 0 8px; color:#0C5A61}
.rp-grid{display:grid; grid-template-columns:1fr 1fr; gap:8px 18px; margin-top:14px}
.rp-grid div{border-bottom:1px solid #E1E8EA; padding-bottom:6px}
.rp-grid span{display:block; font-size:11.5px; color:#6F8188}
.rp-grid b{font-size:14px}
.rp-chart{--teal:#0C5A61; --line:#E1E8EA; --muted:#6F8188; --ink:#14262C; --card:#fff}
.rp-tbl{width:100%; border-collapse:collapse; font-size:12.5px}
.rp-tbl th, .rp-tbl td{text-align:left; border-bottom:1px solid #E1E8EA; padding:6px 4px}
.rp-tbl th{color:#6F8188; font-weight:600}
.rp-ex{padding-left:20px; line-height:1.6; margin:0}
.rp-foot{font-size:11.5px; color:#6F8188; margin:18px 0 0; border-top:1px solid #E1E8EA; padding-top:10px}
@media print{
  @page{margin:14mm}
  body{background:#fff !important}
  .disclaimer, .langbar, body > header, body > footer, .legal-links, .no-print, .sum-tip{display:none !important}
  main{padding:0 !important; max-width:none !important}
  body.big main{zoom:1 !important}
  .rp-doc{border:none; padding:0; border-radius:0}
  .rp-tbl tr, .rp-ex li{break-inside:avoid}
}

/* instalar la app: guía por navegador y aviso inferior */
.ig{position:relative; padding-bottom:70px}
.ig-head{display:flex; gap:14px; align-items:center; margin:14px 0 18px}
.ig-head img{border-radius:16px; box-shadow:var(--shadow); flex:none}
.ig-head h2{font-family:'Space Grotesk','Inter',sans-serif; font-size:21px; margin:0 0 4px}
.ig-head p{font-size:14px; color:var(--muted); margin:0; line-height:1.45}
.ig-steps{list-style:none; counter-reset:ig; padding:0; margin:0 0 14px; display:grid; gap:10px}
.ig-steps li{counter-increment:ig; position:relative; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:14px 14px 14px 54px; font-size:15px; line-height:1.5}
.ig-steps li::before{content:counter(ig); position:absolute; left:14px; top:13px; width:28px; height:28px; border-radius:50%; background:var(--teal); color:var(--card); font-weight:700; display:grid; place-items:center; font-size:14px}
.ig-ic{display:inline-block; width:22px; height:22px; vertical-align:-5px; margin:0 2px; fill:none; stroke:var(--teal); stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.ig-k{display:inline-grid; place-items:center; min-width:24px; height:24px; padding:0 4px; border-radius:6px; background:var(--teal-soft); color:var(--teal); font-size:16px; vertical-align:-3px}
.ig-btn{display:block; text-align:center; text-decoration:none; box-sizing:border-box; margin-bottom:10px}
.ig-copy{width:100%; margin-bottom:6px}
.ig-done{font-size:16px; font-weight:600; color:var(--teal)}
.ig-arrow{position:fixed; left:50%; transform:translateX(-50%); font-size:38px; font-weight:700; color:var(--teal); animation:ig-bob 1.1s ease-in-out infinite; pointer-events:none}
.ig-arrow-down{bottom:max(4px, env(safe-area-inset-bottom))}
.ig-arrow-up{top:max(2px, env(safe-area-inset-top)); left:auto; right:14px; transform:none}
@keyframes ig-bob{50%{translate:0 8px}}
.ig-arrow-up{animation-name:ig-bob-up}
@keyframes ig-bob-up{50%{translate:0 -8px}}
@media (prefers-reduced-motion: reduce){.ig-arrow{animation:none}}
.ig-banner{position:fixed; z-index:150; left:12px; right:12px; bottom:max(12px, env(safe-area-inset-bottom)); max-width:520px; margin:0 auto; display:flex; gap:10px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:10px 10px 10px 12px; box-shadow:var(--shadow)}
.ig-banner img{border-radius:10px; flex:none}
.ig-banner div{flex:1; min-width:0}
.ig-banner b{display:block; font-size:14.5px}
.ig-banner small{display:block; font-size:12.5px; color:var(--muted); line-height:1.35}
.ig-ban-go{font-family:inherit; font-size:14px; font-weight:600; color:var(--card); background:var(--teal); border:none; border-radius:100px; padding:9px 14px; cursor:pointer; flex:none}
.ig-ban-x{background:none; border:none; color:var(--muted); font-size:16px; padding:6px; cursor:pointer; flex:none}
.px-rule{display:block; margin-top:6px; font-size:12.5px; line-height:1.45; color:var(--muted)}

/* fases del plan */
.px-phase{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:14px 16px; margin:0 0 14px; font-size:13.5px; line-height:1.5}
.px-phase p{margin:6px 0 0}
.px-phsteps{list-style:none; padding:0; margin:0 0 4px; display:grid; grid-template-columns:repeat(3,1fr); gap:6px}
.px-phsteps li{display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; font-size:11.5px; color:var(--muted); line-height:1.25}
.px-phsteps b{width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:13px; border:1.5px solid var(--line); background:var(--bg)}
.px-phsteps li.done b{background:var(--teal-soft); border-color:var(--teal); color:var(--teal)}
.px-phsteps li.on b{background:var(--teal); border-color:var(--teal); color:var(--card)}
.px-phsteps li.on span{color:var(--ink); font-weight:600}
.px-phrule, .px-phnext{color:var(--muted); font-size:12.5px}
.px-phdose{display:block; margin-top:3px; font-size:12px; line-height:1.4; color:var(--teal)}

/* ---- inicio: test destacado, menú grande, aviso de fármacos y telemedicina ---- */
.tx-cta{padding:20px 18px; border-radius:22px; margin:0 0 18px; box-shadow:0 0 0 4px color-mix(in srgb, var(--coral) 28%, transparent), var(--shadow); animation:txGlow 2.4s ease-in-out infinite}
.tx-cta svg{width:58px; height:58px}
.tx-cta b{font-size:21px}
.tx-cta small{font-size:14px}
.tx-cta i{font-size:26px}
@keyframes txGlow{50%{box-shadow:0 0 0 9px color-mix(in srgb, var(--coral) 10%, transparent), var(--shadow)}}
@media (prefers-reduced-motion: reduce){ .tx-cta{animation:none} }
.tx-req{background:#FFF3D6; color:#6B4A00; border:1px solid #F1D48A; border-radius:14px; padding:10px 14px; margin:0 0 12px; font-weight:600; text-align:center}
.px-tool-big{flex:1 1 100%; font-size:16.5px; padding:15px 16px; border-radius:16px}
.px-tool-big span{font-size:22px}
.px-tool-inst{color:#fff; background:var(--grad); border:none}
.px-med{background:#FDECE3; color:#7A2A12; border:2px solid #F3B9A2; border-radius:20px; padding:24px 20px; margin:12px 0; text-align:center; font-size:16.5px; line-height:1.55}
.px-med-ic{font-size:44px; line-height:1}
.px-med h2{font-family:'Space Grotesk','Inter',sans-serif; font-size:21px; margin:10px 0 8px}
.px-med p{margin:0 0 18px}
.px-tele{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; margin:18px 0 0; font-family:inherit; font-size:15.5px; font-weight:600; line-height:1.35; text-align:left; color:#fff; background:var(--grad); border:none; border-radius:16px; padding:15px 16px; cursor:pointer; box-shadow:var(--shadow)}
.px-tele span{font-size:24px; flex:none}
.px-tele-msg{text-align:center; margin:8px 0 0; font-size:14px; opacity:.85}
/* margen final para que ningún aviso flotante del alojamiento tape botones en el teléfono */
@media (max-width:700px){ body{padding-bottom:calc(84px + env(safe-area-inset-bottom))} }
.pp-box{margin-top:12px}
.pp-box #ppBtns{margin-top:6px; min-height:45px}

/* ---- panel del dueño: actividad de cada persona ---- */
.ua-link{font-size:12px; margin-top:3px}
.ua-kpis{display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin:6px 0 16px}
.ua-kpi{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px 14px}
.ua-kpi b{display:block; font-size:18px; color:var(--teal)}
.ua-kpi span{font-size:12.5px; opacity:.75}
.ua-bars{display:flex; align-items:flex-end; gap:5px; height:70px; margin:8px 0}
.ua-bar{flex:1; height:calc(var(--h) * 100%); background:var(--line); border-radius:4px 4px 0 0}
.ua-bar.on{background:var(--teal)}
.ua-pain{display:inline-flex; align-items:center; gap:6px; white-space:nowrap}
.ua-btns td:last-child{text-align:right; width:60px}

/* ---- índice: programa elegido activado, los demás difuminados ---- */
.path-card.px-chosen{grid-column:1 / -1; border:2px solid var(--acc); box-shadow:0 0 0 5px color-mix(in srgb, var(--acc) 18%, transparent), var(--shadow)}
.path-card.px-chosen b{font-size:18px}
.path-card.px-chosen .badge{align-self:flex-start; display:inline-block; width:auto; font-size:13px; color:#fff; background:var(--acc); border-radius:100px; padding:4px 12px; opacity:1}
.path-card.px-dim{opacity:.42; filter:grayscale(.7) blur(1.2px); transition:opacity .2s, filter .2s}
.path-card.px-dim:hover, .path-card.px-dim:focus-visible{opacity:.7; filter:grayscale(.4) blur(0)}

/* vista previa sin plan */
.pv-card{background:var(--card); border:1px solid var(--line); border-radius:18px; padding:14px 16px; margin:0 0 16px; box-shadow:var(--shadow)}
.pv-card b{display:block; font-family:'Space Grotesk','Inter',sans-serif; font-size:16px; font-weight:600}
.pv-card p{margin:6px 0 10px; font-size:14px; line-height:1.5}
.pv-btns{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px}
.pv-btns .login-btn{width:auto; margin:0; padding-left:18px; padding-right:18px}
.login .pv-back{margin:14px 0 0}
