/* Adquira Hub V2 · claro, sobrio y con un solo acento: el violeta de Adquira solo marca acción, avance y estado activo. */
:root {
  color-scheme: light;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --subtle: #F4F4F2;
  --hover: #EFEFEC;
  --line: #E9E8E5;
  --line-2: #DAD9D5;
  --line-3: #C6C4BF;
  --text: #17161B;
  --text-2: #55535B;
  --text-3: #8B8991;
  --accent: #6B2BEF;
  --accent-hover: #5C1FDC;
  --accent-press: #4F17C4;
  --accent-soft: #F2EDFE;
  --accent-line: rgba(107, 43, 239, 0.3);
  --ok: #1A7F4B;
  --warn: #9A5B00;
  --bad: #C0362C;
  --ok-text: #146A3E;
  --ok-soft: #E9F5EE;
  --ok-line: rgba(26, 127, 75, 0.3);
  --warn-soft: #FDF3E1;
  --warn-line: rgba(154, 91, 0, 0.3);
  --bad-soft: #FCEDEB;
  --bad-line: rgba(192, 54, 44, 0.3);
  --r-sm: 10px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(23, 22, 27, 0.04);
  --shadow-2: 0 1px 2px rgba(23, 22, 27, 0.04), 0 8px 24px rgba(23, 22, 27, 0.06);
  --shadow-3: 0 2px 8px rgba(23, 22, 27, 0.06), 0 24px 56px rgba(23, 22, 27, 0.14);
  --ring: 0 0 0 3px rgba(107, 43, 239, 0.18);
  --side: 248px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:where(h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
h2 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 600; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(107, 43, 239, 0.16); }
.muted { color: var(--text-2); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }

/* Ritmo vertical: separación por defecto dentro de tarjetas y columnas (sin especificidad, cada pieza la ajusta). */
:where(.card, .sheet, .class-page, .home-main, .split > div, .resume) > * + * { margin-top: 16px; }
:where(.eyebrow) + * { margin-top: 0; }
.page-wrap > * + *, .focus-main > * + * { margin-top: 20px; }

/* ---------- Marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: auto; height: 20px; }
.logo-word { width: auto; height: 11px; }

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r); background: transparent; color: inherit; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s; -webkit-tap-highlight-color: transparent; }
.btn .ic { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #FFFFFF; box-shadow: 0 1px 2px rgba(76, 22, 190, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--text); box-shadow: var(--shadow-1); }
.btn-secondary:hover { background: var(--subtle); border-color: var(--line-3); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 14.5px; font-weight: 500; }
.link .ic { width: 15px; height: 15px; transition: transform 0.18s var(--ease); }
.link:hover { color: var(--accent-hover); }
.link:hover .ic { transform: translateX(2px); }
.link-quiet { padding: 0; border: 0; background: none; color: var(--text-3); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-quiet:hover { color: var(--text-2); }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px -4px; padding: 4px 8px 4px 4px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; }
.back:hover { color: var(--text); background: var(--hover); }
.back .ic { width: 16px; height: 16px; }

/* ---------- Marco de la plataforma ---------- */
.app { min-height: 100vh; }
.side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 10; display: flex; flex-direction: column; width: var(--side); padding: 22px 14px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.side-logo { display: inline-flex; align-self: flex-start; padding: 4px 10px 28px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: background-color 0.15s, color 0.15s; }
.nav-item .ic { color: var(--text-3); transition: color 0.15s; }
.nav-item:hover { background: var(--subtle); color: var(--text); }
.nav-item.is-on { background: var(--subtle); color: var(--text); }
.nav-item.is-on .ic { color: var(--accent); }
.side-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid var(--line); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
a.avatar:hover, button.avatar:hover { border-color: var(--line-2); color: var(--text); }
.who { display: flex; flex-direction: column; min-width: 0; }
.who-name, .who-biz { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.who-name { font-size: 14px; font-weight: 500; }
.who-biz { font-size: 12.5px; color: var(--text-3); }
.main { min-height: 100vh; margin-left: var(--side); }
.page-wrap { max-width: 1040px; margin: 0 auto; padding: 48px 48px 96px; }
.topbar, .tabbar { display: none; }
.is-enter { animation: enter 0.35s var(--ease) both; }
.is-enter .progress > span { animation: grow 0.9s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* Menú de cuenta */
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-3); animation: rise 0.18s var(--ease) both; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font-size: 14.5px; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--subtle); }
.menu .ic { width: 16px; height: 16px; color: var(--text-3); }

/* ---------- Modo enfocado: acceso, bienvenida y diagnóstico ---------- */
.focus { display: flex; flex-direction: column; min-height: 100vh; }
.focus-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 28px; background: rgba(250, 250, 249, 0.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
.focus-logo { display: inline-flex; }
.focus-actions { display: flex; align-items: center; gap: 8px; }
.focus-main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 40px 24px 72px; }
.focus-main.is-wide { max-width: 920px; }
.focus-main:focus, .main:focus { outline: none; }

.auth { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-2); }
.auth-logo { margin-bottom: 32px; }
.auth-logo .logo-mark { height: 24px; }
.auth-logo .logo-word { height: 13px; }
.auth h1 { font-size: 26px; }
.auth .lede { margin-top: 8px; font-size: 15.5px; }
.auth .form { margin-top: 26px; }
.auth .proto { margin-top: 18px; }
.auth-alt { margin-top: 18px; text-align: center; }
.auth-foot { margin-top: 24px; }

.welcome { max-width: 600px; padding-top: 7vh; }
.welcome .eyebrow { margin-bottom: 14px; }
.welcome .display { font-size: 46px; line-height: 1.06; letter-spacing: -0.035em; }
.welcome .lede { margin-top: 20px; }
.welcome .lede + .lede { margin-top: 6px; }
.welcome-cta { margin-top: 36px; }
.welcome-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-3); font-size: 14px; }
.welcome-meta .ic { width: 16px; height: 16px; }
.resume .lede { margin-top: 10px; }
.resume > .next { margin-top: 32px; }

.q-meter { margin-bottom: 44px; }
.q-meter-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.q-meter-row span:first-child { color: var(--text-2); }
.q-title { font-size: 30px; line-height: 1.22; letter-spacing: -0.025em; }
.q-help { max-width: 560px; margin-top: 12px; color: var(--text-2); font-size: 16px; }
.q-input { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.q-error { margin-top: 14px; }
.q-body > [data-live]:not(:empty) { margin-top: 14px; }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; }
.q.is-edit .q-foot { justify-content: flex-end; }
.q-saved { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; color: var(--text-3); font-size: 13px; }
.q-saved .ic { width: 14px; height: 14px; }
.q .field.is-alone .input-wrap.is-num { max-width: 380px; }
.q .input { font-size: 17px; }
.q .input-wrap .affix { font-size: 16px; }
.q-review .q-body + .rv-group { margin-top: 32px; }
.rv-group + .rv-group { margin-top: 28px; }
.rv-title { margin-bottom: 6px; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.rv { border-top: 1px solid var(--line); }
.rv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rv-row dt { grid-column: 1; color: var(--text-3); font-size: 13.5px; }
.rv-row dd { grid-column: 1; overflow-wrap: anywhere; font-size: 15px; }
.rv-row .btn { grid-column: 2; grid-row: 1 / span 2; }
.rv-empty { color: var(--bad); font-size: 14px; }
.rv-skip { color: var(--text-3); font-size: 14px; }
.rv-card { padding: 20px 24px 24px; }

.done { padding-top: 6vh; text-align: center; }
.done-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 999px; background: var(--accent); color: #FFFFFF; box-shadow: 0 0 0 8px var(--accent-soft); animation: pop 0.5s var(--ease) both; }
.done-ic .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.done .lede { margin: 12px auto 0; }
.done-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* ---------- Cabeceras y textos ---------- */
.head { margin-bottom: 32px; }
.head h1 { max-width: 760px; }
.head .lede { margin-top: 10px; }
.eyebrow { margin-bottom: 8px; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.lede { max-width: 640px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.hello { margin-bottom: 6px; color: var(--text-3); font-size: 15.5px; }
.card-title { font-size: 16px; }
.mini { margin: 22px 0 10px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.big { margin-top: 2px; font-size: 24px; letter-spacing: -0.02em; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Tarjetas y bloques ---------- */
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-head h2 { font-size: 19px; letter-spacing: -0.015em; }
.card-head .eyebrow { margin-bottom: 6px; }
.card-head .mini { margin: 0; }
.btn-flush { margin-left: -14px; }
.count { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.page-wrap > .block, .block + .block { margin-top: 36px; }
.home-main > .block { margin-top: 28px; }
.block-title { margin-bottom: 12px; font-size: 15.5px; }
.block-text { margin: -6px 0 14px; color: var(--text-2); font-size: 14.5px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.row-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.progress { overflow: hidden; height: 6px; border-radius: 999px; background: var(--subtle); box-shadow: inset 0 0 0 1px rgba(23, 22, 27, 0.03); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 12px; background: var(--subtle); color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.note .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--text-3); }
.note.is-ok .ic { color: var(--accent); stroke-width: 2.2; }
.note strong { color: var(--text); }
.proto { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: #FCFCFB; color: var(--text-2); font-size: 13.5px; }
.proto-tag { flex: none; margin-top: 1px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); color: var(--text-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.empty { padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.empty-ic { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 14px; background: var(--subtle); color: var(--text-2); }
.empty-ic .ic { width: 22px; height: 22px; }
.empty h2 { font-size: 19px; }
.empty p { max-width: 460px; margin: 8px auto 0; color: var(--text-2); }
.empty .btn { margin-top: 22px; }
.task-ok { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.task-ok .ic { color: var(--accent); stroke-width: 2.4; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 15px; }
.ticks .ic { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); stroke-width: 2.2; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label { color: var(--text); font-size: 14px; font-weight: 500; }
.help { color: var(--text-3); font-size: 13px; line-height: 1.45; }
.input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; transition: border-color 0.15s, box-shadow 0.15s; }
textarea.input { min-height: 80px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #A9A7AE; }
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.input[disabled] { background: var(--subtle); color: var(--text-3); }
select.input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B8991' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; background-size: 14px; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.input-wrap:hover { border-color: var(--line-3); }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.input-wrap .input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; }
.input-wrap .affix { color: var(--text-3); font-size: 15px; white-space: nowrap; }
.input-wrap .affix:first-child { margin-right: -8px; padding-left: 14px; }
.input-wrap .affix:last-child { padding-right: 14px; }
.input-wrap.is-num .input { font-variant-numeric: tabular-nums; }
.error { color: var(--bad); font-size: 14px; }
.error:empty { display: none; }
.error.is-on { animation: nudge 0.32s var(--ease); }
@keyframes nudge { 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }

.options { display: flex; flex-direction: column; gap: 10px; }
.options.is-row { flex-direction: row; flex-wrap: wrap; }
.options.is-row .option { flex: 1 1 150px; width: auto; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 16px 14px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--text); font-size: 16px; text-align: left; box-shadow: var(--shadow-1); transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; -webkit-tap-highlight-color: transparent; }
.option:hover { border-color: var(--line-3); }
.option:active { transform: scale(0.995); }
.option.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.option-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.option-l { font-weight: 500; line-height: 1.35; }
.option-h { color: var(--text-3); font-size: 14px; }
.option-tick { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 999px; color: transparent; transition: background-color 0.15s, border-color 0.15s; }
.options.is-multi .option-tick { border-radius: 7px; }
.option-tick .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.option.is-on .option-tick { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.option.is-right { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.option.is-right .option-tick { border-color: var(--ok); background: var(--ok); color: #FFFFFF; }
.option.is-wrong { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.option.is-wrong .option-tick { border-color: var(--bad); background: var(--bad); color: #FFFFFF; }
.option[disabled] { cursor: default; }
.option[disabled]:not(.is-right):not(.is-wrong) { opacity: 0.55; }

.seg { display: inline-flex; flex: none; gap: 3px; padding: 3px; border-radius: 11px; background: var(--subtle); }
.seg-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(23, 22, 27, 0.08), 0 0 0 1px rgba(23, 22, 27, 0.04); }
.seg-btn input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg-btn:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; transition: border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.chip:hover { border-color: var(--line-3); color: var(--text); }
.chip.is-on { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 15px; cursor: pointer; }
.check input { display: grid; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.check:hover input:not(:checked) { border-color: var(--line-3); }
.check input:checked { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check input:checked + span { color: var(--text-2); }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background-color 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(23, 22, 27, 0.18); transition: transform 0.22s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Inicio ---------- */
.home-title { font-size: 36px; }
.home .lede { margin-top: 10px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 24px; margin-top: 36px; }
.next { padding: 28px; }
.next h2 { margin-top: 2px; font-size: 23px; letter-spacing: -0.02em; }
.next .next-text { max-width: 540px; margin-top: 8px; color: var(--text-2); }
.next .next-meta { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--text-2); font-size: 14px; }
.next-meta .progress { flex: 1; max-width: 280px; }
.next .next-items { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.next .next-cta { margin-top: 26px; }
.journey-card { padding: 22px 22px 20px; }
.journey { display: flex; flex-direction: column; }
.jstep { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.jstep:last-child { padding-bottom: 0; }
.jstep:not(:last-child)::after { content: ""; position: absolute; top: 32px; bottom: 4px; left: 13px; width: 2px; border-radius: 2px; background: var(--line); }
.jstep.is-done:not(:last-child)::after { background: var(--accent-line); }
.jdot { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text-3); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jdot .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.is-done .jdot { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.is-current .jdot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.is-open .jdot { border-color: var(--accent-line); color: var(--accent); }
.jtext { display: flex; flex-direction: column; min-width: 0; padding-top: 3px; }
.jname { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.is-next .jname { color: var(--text-2); font-weight: 500; }
.jnow { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.jhint { margin-top: 1px; color: var(--text-3); font-size: 13.5px; }
.needs { display: flex; flex-direction: column; gap: 10px; }
.need { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.need-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--subtle); color: var(--text-2); }
.need.is-done .need-ic { color: var(--accent); }
.need.is-done { background: transparent; }
.need.is-done .need-ic .ic { stroke-width: 2.4; }
.need-main { flex: 1; min-width: 0; }
.need-title { font-size: 14.5px; font-weight: 600; }
.need.is-done .need-title { color: var(--text-2); }
.need-text { margin-top: 2px; color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.also { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--subtle); }
.also-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text-2); }
.also-main { flex: 1; min-width: 0; }
.also-title { font-size: 14.5px; font-weight: 600; }
.also-text { color: var(--text-2); font-size: 13.5px; }
.week h2 { font-size: 21px; letter-spacing: -0.015em; }
.week .week-list { margin-top: 18px; border-top: 1px solid var(--line); }
.week-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.week-dot { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.week-row.is-done .week-dot { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.week-dot .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.week-main { flex: 1; min-width: 0; }
.week-title { font-size: 15px; font-weight: 600; }
.week-row.is-done .week-title { color: var(--text-2); }
.week-text { margin-top: 2px; color: var(--text-2); font-size: 14px; }
.advice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--subtle); color: var(--text-2); font-size: 14.5px; }
.advice .ic { margin-top: 2px; color: var(--accent); }
.advice strong { color: var(--text); }
.week .advice { margin-top: 18px; }

/* ---------- Clases ---------- */
.meter { display: flex; align-items: center; gap: 16px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.meter .progress { flex: 1; max-width: 320px; }
.class-page { max-width: 760px; }
.video { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-lg); background: #EEEDEA; }
.video-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); }
.video-play .ic { width: 22px; height: 22px; margin-left: 3px; stroke: none; }
.video-len { position: absolute; right: 14px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.task-text { color: var(--text-2); }
.quiz-q { margin-top: 22px; }
.quiz-q legend { display: flex; gap: 10px; margin-bottom: 12px; font-size: 15.5px; font-weight: 600; }
.quiz-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 12.5px; }
.quiz-q .option { min-height: 50px; padding: 12px 14px 12px 16px; font-size: 15px; }
.inv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.inv-row:first-child { border-top: 1px solid var(--line); }
.inv-q { font-size: 15px; }
.class-done { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--subtle); }
.class-done-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: #FFFFFF; animation: pop 0.45s var(--ease) both; }
.class-done-ic .ic { stroke-width: 2.4; }
.class-done-main { flex: 1; min-width: 0; }
.class-done-t { font-weight: 600; }

/* ---------- Mi máquina ---------- */
.now .progress { margin-top: 18px; }
.steps { margin-top: 6px; }
.step { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-dot { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.step.is-done .step-dot { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.step.is-next .step-dot { border-color: var(--accent); color: var(--accent); }
.step-dot .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.step-main { flex: 1; min-width: 0; }
.step-title { font-size: 15px; font-weight: 600; }
.step.is-done .step-title { color: var(--text-2); }
.step-text { margin-top: 1px; color: var(--text-2); font-size: 14px; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; }
.card > .flow { margin-top: 18px; }
.flow li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.flow b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--subtle); color: var(--text-3); font-size: 11px; font-weight: 600; }
.facts { display: flex; flex-direction: column; gap: 14px; }
.facts dt { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.facts dd { margin-top: 2px; font-size: 15px; }
.offer-box { padding: 16px; border-radius: 12px; background: var(--subtle); }
.offer-box .eyebrow { margin-bottom: 4px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card > .metrics { margin-top: 18px; }
.metrics.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 16px; border-radius: 14px; background: var(--subtle); }
.metric-label { color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.metric-value { margin-top: 6px; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric-help { margin-top: 6px; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.tone { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; font-weight: 600; }
.tone-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--text-3); }
.tone.is-ok { color: var(--ok); }
.tone.is-warn { color: var(--warn); }
.tone.is-bad { color: var(--bad); }
.tone.is-ok .tone-dot, .tone-dot.is-ok { background: var(--ok); }
.tone.is-warn .tone-dot, .tone-dot.is-warn { background: #D98A00; }
.tone.is-bad .tone-dot, .tone-dot.is-bad { background: var(--bad); }
.reading { color: var(--text-2); font-size: 15px; }
.reading strong { color: var(--text); }
.cares li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cares li:first-child { padding-top: 4px; }
.cares li:last-child { padding-bottom: 0; border-bottom: 0; }
.care-t { font-size: 15px; font-weight: 600; }
.care-m { margin-top: 3px; color: var(--text-2); font-size: 14.5px; }
.os-card { display: flex; align-items: center; gap: 16px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.os-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.os-card > * + *, .help-opt > * + *, .faq-more > * + *, .set > * + * { margin-top: 0; }
.os-ic, .help-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--subtle); color: var(--text-2); }
.os-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.os-t { font-weight: 600; }
.os-x { color: var(--text-2); font-size: 14px; }
.soon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.soon-item { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.soon-ic { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 10px; background: var(--subtle); color: var(--text-3); }
.soon-t { font-weight: 600; }
.soon-x { margin-top: 2px; color: var(--text-2); font-size: 13.5px; }

/* ---------- Recursos y herramientas ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.res { display: flex; flex-direction: column; min-height: 136px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.res:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.res-name { font-size: 15.5px; font-weight: 600; }
.res-text { flex: 1; margin-top: 4px; color: var(--text-2); font-size: 14px; }
.res-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 500; }
.res-cta .ic { width: 15px; height: 15px; transition: transform 0.18s var(--ease); }
.res:hover .res-cta .ic { transform: translateX(2px); }
.step-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.page-wrap > .step-mark { margin-top: 20px; }
.step-mark p { flex: 1; min-width: 180px; color: var(--text-2); }
.step-mark.is-done { border-color: transparent; background: var(--subtle); }
.step-mark-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: #FFFFFF; }
.step-mark-ic .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.out .eyebrow { margin-bottom: 12px; }
.out-main { display: flex; flex-direction: column; gap: 10px; }
.out-box { padding: 16px; border-radius: 14px; background: var(--subtle); }
.out-label { color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.out-value { margin-top: 2px; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.out-help { color: var(--text-3); font-size: 13px; }
.out-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.out-list dt { color: var(--text-2); }
.out-list dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.calc-empty { padding: 24px 8px; color: var(--text-2); text-align: center; }
.calc-empty .ic { display: block; width: 28px; height: 28px; margin: 0 auto 12px; color: var(--text-3); }
.adv { border-top: 1px solid var(--line); }
.adv summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; color: var(--text-2); font-size: 14.5px; font-weight: 500; list-style: none; cursor: pointer; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after { content: "+"; color: var(--text-3); font-size: 20px; line-height: 1; transition: transform 0.2s var(--ease); }
.adv[open] summary::after { transform: rotate(45deg); }
.adv-body { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px; }
.offer-sentence { font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; }
.checks-read { display: flex; flex-direction: column; gap: 8px; }
.card > .card-head + .checks-read { margin-top: 10px; }
.checks-read li { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14px; }
.checks-read .ic { width: 16px; height: 16px; }
.checks-read li.is-ok { color: var(--text); }
.checks-read li.is-ok .ic { color: var(--accent); stroke-width: 2.4; }
.check-group + .check-group { margin-top: 22px; }
.check-group .mini { margin-top: 0; margin-bottom: 4px; }
.lp { padding: 26px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: center; }
.lp-h { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.lp-s { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
.lp-b { display: flex; flex-direction: column; gap: 8px; max-width: 300px; margin: 16px auto 0; text-align: left; }
.lp-b li { display: flex; gap: 8px; font-size: 14px; }
.lp-b .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); stroke-width: 2.4; }
.lp-btn { display: inline-flex; margin-top: 20px; padding: 11px 20px; border-radius: 10px; background: var(--text); color: #FFFFFF; font-size: 14.5px; font-weight: 500; }
.angles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.angle { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.angle-n { color: var(--text-3); font-family: var(--mono); font-size: 12.5px; }
.angle-name { margin-top: 8px; font-weight: 600; }
.angle-text { margin-top: 2px; color: var(--text-2); font-size: 14px; }
.hooks { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.hooks li { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hooks li:last-child { border-bottom: 0; }
.hooks li.is-on { background: var(--subtle); }
.hooks p { flex: 1; font-size: 15px; }
.tips { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; }
.tips li { padding-left: 16px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 999px; background: var(--line-3); }
.script { display: flex; flex-direction: column; gap: 18px; }
.script-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.script-time { padding: 2px 7px; border-radius: 6px; background: var(--subtle); color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.script-name { font-size: 14.5px; font-weight: 600; }
.script-hint { color: var(--text-3); font-size: 13px; }
.script-full { font-size: 15.5px; line-height: 1.6; }
.link-block { display: flex; justify-content: center; }
.spec-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-row:first-child { padding-top: 0; }
.spec-row:last-child { padding-bottom: 0; border-bottom: 0; }
.spec dt { color: var(--text-2); font-size: 14px; font-weight: 500; }
.spec-v { display: block; font-weight: 600; }
.spec-h { display: block; margin-top: 2px; color: var(--text-3); font-size: 13.5px; }
.guide { padding: 6px 28px; }
.card > .guide-block { margin-top: 0; }
.guide-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.guide-block:last-child { border-bottom: 0; }
.guide-block h2 { font-size: 16px; }
.guide-block p { max-width: 640px; margin-top: 6px; color: var(--text-2); }
.gloss > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.gloss > div:first-child { padding-top: 0; }
.gloss > div:last-child { padding-bottom: 0; border-bottom: 0; }
.gloss dt { font-weight: 600; }
.gloss dd { margin-top: 3px; color: var(--text-2); }
.tone-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tone-row:first-child { padding-top: 0; }
.tone-label { font-size: 14.5px; font-weight: 500; }
.tone-target { color: var(--text-3); font-size: 13px; }
.tone-right { text-align: right; }
.tone-val { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
[data-live="score-preview"] .help { margin-top: 12px; }
.weeks { display: flex; flex-direction: column; gap: 10px; }
.wk { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.wk-title { font-weight: 600; }
.wk-sum { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.wk-tones { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.wk-tone { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wk-dec { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--line); color: var(--text-2); font-size: 14px; }
.calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.call { padding: 18px; }
.call > .eyebrow { margin-bottom: 4px; }
.call-t { font-weight: 600; }
.call > * + * { margin-top: 12px; }
.kv-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kv { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.kv span { color: var(--text-2); font-size: 12.5px; }
.kv strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.card > .kv-row + .help { margin-top: 8px; }
.changes { display: flex; flex-direction: column; gap: 10px; }
.change { padding: 18px; }
.change > * + * { margin-top: 6px; }
.change-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.change-t { font-weight: 600; }
.change-when { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.change-x { color: var(--text-2); font-size: 14px; }
.change-x span { color: var(--text); font-weight: 500; }
.rec { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rec:first-child { padding-top: 0; }
.rec:last-child { padding-bottom: 0; border-bottom: 0; }
.rec-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--subtle); color: var(--text-2); }
.rec-main { flex: 1; min-width: 0; }
.rec-t { font-size: 15px; font-weight: 600; }
.rec-x { color: var(--text-3); font-size: 13px; }

/* ---------- Soporte y FAQ ---------- */
.help-list { display: flex; flex-direction: column; gap: 12px; }
.help-opt { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.help-main { flex: 1; min-width: 0; }
.help-main h2 { font-size: 16.5px; }
.help-main p { margin-top: 2px; color: var(--text-2); font-size: 14.5px; }
.help-foot { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14px; }
.page-wrap > .help-foot, .focus-main > .help-foot { margin-top: 24px; }
.faq-cats { margin-bottom: 4px; }
.faq-cat { margin-top: 36px; scroll-margin-top: 88px; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-h { font-size: inherit; font-weight: inherit; }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; color: var(--text); font-size: 16px; font-weight: 500; text-align: left; }
.acc-btn .ic { color: var(--text-3); transition: transform 0.25s var(--ease), color 0.15s; }
.acc-btn:hover .ic { color: var(--text); }
.acc-item.is-open .acc-btn .ic { transform: rotate(45deg); color: var(--text); }
.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.28s var(--ease), visibility 0s linear 0.28s; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.28s var(--ease), visibility 0s; }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-panel p { max-width: 680px; padding: 0 32px 20px 0; color: var(--text-2); }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; }
.page-wrap > .faq-more, .focus-main > .faq-more { margin-top: 40px; }
.faq-more h2 { font-size: 17px; }

/* ---------- Hojas (modal en escritorio, hoja inferior en teléfono) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(23, 22, 27, 0.28); }
.sheet-wrap.is-in { animation: fade 0.2s ease both; }
.sheet { position: relative; width: 100%; max-width: 520px; padding: 32px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-3); }
.sheet-wrap.is-in .sheet { animation: rise 0.28s var(--ease) both; }
.sheet-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); }
.sheet-x:hover { background: var(--subtle); color: var(--text); }
.sheet-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--subtle); color: var(--text-2); }
.sheet-ic.is-ok { border-radius: 999px; background: var(--accent); color: #FFFFFF; animation: pop 0.45s var(--ease) both; }
.sheet-ic.is-ok .ic { stroke-width: 2.4; }
.sheet > .sheet-title { margin-top: 18px; padding-right: 24px; font-size: 21px; letter-spacing: -0.015em; }
.sheet > .sheet-text { margin-top: 6px; color: var(--text-2); }
.sheet > .sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.sheet > .sheet-sub { margin-top: 24px; font-weight: 600; }
.sheet-help { color: var(--text-3); font-size: 13.5px; text-align: center; }
.sheet-links { display: flex; justify-content: center; gap: 20px; }
.sheet > .form { margin-top: 22px; }
.howto { display: flex; flex-direction: column; gap: 10px; counter-reset: h; }
.howto li { display: flex; gap: 12px; color: var(--text-2); font-size: 14.5px; counter-increment: h; }
.howto li::before { content: counter(h); display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 12px; font-weight: 600; }
.more-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font-size: 16px; font-weight: 500; text-align: left; }
.more-row:last-child { border-bottom: 0; color: var(--text-2); }
.more-row span { flex: 1; }
.more-row .ic { color: var(--text-3); }

/* ---------- Ajustes ---------- */
.set { padding: 4px 24px; }
.set-title { padding: 18px 0 4px; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row.is-toggle { cursor: pointer; }
.set-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.set-label { font-size: 15px; font-weight: 500; }
.set-value { color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.set-dots { letter-spacing: 0.14em; }
.set-help { color: var(--text-3); font-size: 13.5px; }
.set-form { display: flex; align-items: flex-end; gap: 12px; padding: 12px 0 20px; }
.set-form .field { flex: 1; }
.set .error:not(:empty) { padding-bottom: 14px; }
.proto-box { border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.page-wrap > .proto-box, .focus-main > .proto-box { margin-top: 40px; }
.proto-box summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--text-2); font-size: 14px; font-weight: 500; list-style: none; cursor: pointer; }
.proto-box summary::-webkit-details-marker { display: none; }
.proto-body { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 20px; }

/* ---------- Videos y grabaciones ---------- */
.video-play { transition: transform 0.2s var(--ease); }
.video.is-link, .video.is-soon { align-content: center; justify-items: center; gap: 10px; }
.video.is-link { color: var(--text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.video.is-link:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.video.is-link:hover .video-play { transform: scale(1.05); }
.video-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.video-cta .ic { width: 15px; height: 15px; color: var(--text-3); }
.video-host { color: var(--text-3); font-size: 13px; }
.video.is-soon .video-play { background: rgba(255, 255, 255, 0.7); box-shadow: none; color: var(--text-3); }
.video-soon { color: var(--text-3); font-size: 14px; font-weight: 500; }
.video.is-file, .player { background: #0E0D12; }
.video.is-file video, .player video { display: block; width: 100%; height: 100%; background: #0E0D12; }
.player { overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; }
.sheet.is-wide { max-width: 880px; }
.badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; vertical-align: 2px; }
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.rec-card > * + * { margin-top: 0; }
.rec-d { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.class-meta.is-next { color: var(--accent); font-weight: 500; }

/* ---------- Equipo de Adquira: contenido ---------- */
.admin-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.admin-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-n { flex: none; width: 36px; color: var(--text-3); font-family: var(--mono); font-size: 13px; text-align: center; }
.admin-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--subtle); color: var(--text-2); }
.admin-main { flex: 1; min-width: 0; }
.admin-t { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.admin-x { margin-top: 2px; color: var(--text-3); font-size: 13px; }
.admin-row.is-hidden .admin-t, .admin-row.is-hidden .admin-n { color: var(--text-3); }
.admin-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text-2); transition: background-color 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--subtle); color: var(--text); }
.icon-btn[disabled] { opacity: 0.35; pointer-events: none; }
.icon-btn .ic { width: 16px; height: 16px; }
.set-foot { padding: 0 0 18px; color: var(--text-3); font-size: 13px; }
.label-opt { color: var(--text-3); font-weight: 400; }
.field > .seg { align-self: flex-start; }
.btn-danger { background: var(--bad); color: #FFFFFF; }
.btn-danger:hover { background: #A72E25; }
.btn-danger-text { color: var(--bad); }
.btn-danger-text:hover { background: #FBEFEE; color: var(--bad); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg); text-align: center; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--surface); }
.drop.has-file { border-style: solid; }
.drop-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.drop-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: var(--subtle); color: var(--text-2); }
.drop-t { max-width: 100%; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.drop-h { color: var(--text-3); font-size: 13px; }

/* ---------- Panel del equipo ---------- */
.side-tag { display: flex; align-items: center; gap: 6px; margin: -22px 0 18px 10px; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 11.5px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.tab { position: relative; }
.tab-dot { position: absolute; top: 7px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 2px #FFFFFF; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.head-row > h1, .head-row > .file-id { flex: 1 1 340px; min-width: 0; }
.head-row > .status { margin-top: 0; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.stage { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.stage::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--line-3); }
.stage.is-invitado { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); }
.stage.is-archivada { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); }
.stage.is-estrategia { background: var(--accent-soft); color: var(--accent); }
.stage.is-estrategia::before { background: var(--accent); }
.stage.is-construccion { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.stage.is-construccion::before { background: var(--accent-line); }
.stage.is-lanzamiento, .stage.is-operacion { background: var(--ok-soft); color: var(--ok-text); }
.stage.is-lanzamiento::before, .stage.is-operacion::before { background: var(--ok); }
.stage.is-pausada { background: var(--warn-soft); color: var(--warn); }
.stage.is-pausada::before { background: #D98A00; }
.attn h2 { font-size: 19px; letter-spacing: -0.015em; }
.attn .eyebrow + h2 { margin-top: 0; }
.attn-list { border-top: 1px solid var(--line); }
.attn-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.attn-list li:last-child .attn-row { padding-bottom: 0; border-bottom: 0; }
.attn-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--subtle); color: var(--text-2); transition: color 0.15s; }
.attn-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.attn-who { font-size: 14.5px; font-weight: 600; }
.attn-text { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.attn-row > .ic:last-child, .person > .ic:last-child { color: var(--text-3); transition: transform 0.18s var(--ease), color 0.15s; }
.attn-row:hover .attn-ic { color: var(--accent); }
.attn-row:hover > .ic:last-child, a.person:hover > .ic:last-child { color: var(--text); transform: translateX(2px); }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.search { flex: 0 1 340px; min-width: 220px; }
.search .input { min-height: 40px; padding: 8px 12px; font-size: 15px; }
.search .affix .ic { width: 16px; height: 16px; margin-top: 3px; }
.chip-n { margin-left: 3px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip.is-on .chip-n { color: inherit; }
.chip-static { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.list-empty { padding: 24px 4px; }
.people { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.people > li + li { border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 36px minmax(0, 1.3fr) minmax(0, 1fr) 128px 18px; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text); transition: background-color 0.15s; }
a.person:hover { background: #FCFCFB; }
.person.is-static { grid-template-columns: 36px minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.person-main, .person-stage { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.person-stage { align-items: flex-start; }
.person-name { display: flex; align-items: center; overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.person-sub { overflow: hidden; color: var(--text-3); font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
.person-detail { color: var(--text-3); font-size: 12.5px; }
.person-seen { color: var(--text-3); font-size: 13px; text-align: right; white-space: nowrap; }
.phase-card .card-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.way { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; }
.way .ic { width: 16px; height: 16px; color: var(--accent); }
.way strong { color: var(--text); }
.prog-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.prog-row:last-child { padding-bottom: 0; border-bottom: 0; }
.prog-dot { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.prog-row.is-done .prog-dot { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.prog-dot .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.prog-label { padding-top: 1px; font-size: 14.5px; font-weight: 500; }
.prog-row:not(.is-done) .prog-label { color: var(--text-2); }
.prog-x { grid-column: 2; color: var(--text-3); font-size: 13px; }
.call-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.call-row:first-child { padding-top: 4px; }
.call-row:last-child { padding-bottom: 0; border-bottom: 0; }
.call-m { flex: none; width: 52px; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.call-s { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.prep-sent { padding: 14px 16px; border-radius: 12px; background: var(--subtle); }
.prep-sent .mini { margin: 0 0 10px; }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.msg.is-new { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.msg-who { color: var(--text); font-size: 14.5px; font-weight: 600; }
a.msg-who:hover { color: var(--accent); }
.msg-when { margin-left: auto; color: var(--text-3); font-size: 12.5px; }
.msg-body { margin-top: 8px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .btn-row { margin-top: 12px; }
.answers { padding: 0; }
.answers > * + * { margin-top: 0; }
.answers summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; list-style: none; cursor: pointer; }
.answers summary::-webkit-details-marker { display: none; }
.answers-head { display: flex; flex-direction: column; }
.answers-head .eyebrow { margin-bottom: 2px; }
.answers-t { font-size: 17px; font-weight: 600; }
.answers summary > .ic { color: var(--text-3); transition: transform 0.2s var(--ease); }
.answers[open] summary > .ic { transform: rotate(180deg); }
.answers-body { padding: 0 24px 22px; }
.set-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 14.5px; overflow-wrap: anywhere; }
.set-link .ic { flex: none; width: 14px; height: 14px; }
.loading-card { display: flex; align-items: center; gap: 12px; }
.loading-card > * + * { margin-top: 0; }
.spinner { flex: none; width: 20px; height: 20px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 999px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.boot .auth-logo { margin: 0; }
.auth-links { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.auth-foot { text-align: center; }
.auth-foot.is-confirm { width: 100%; max-width: 420px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text-2); font-size: 14px; text-align: left; }
.auth-foot.is-confirm .btn-row { margin-top: 12px; }
.design-opts .option-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.q-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.q-sec-head .block-title { margin-bottom: 0; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; align-items: center; gap: 8px; }
.opt-row .input { flex: 1; min-width: 0; }
.field-short { max-width: 200px; }
.demo-as { width: 100%; max-width: 420px; margin-top: 16px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 18px; background: #FCFCFB; }
.demo-as-t { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.demo-as-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.demo-as-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; transition: border-color 0.15s, box-shadow 0.15s; }
.demo-as-btn:hover { border-color: var(--line-3); box-shadow: var(--shadow-1); }
.demo-as-btn > .ic { color: var(--text-3); }
.demo-as-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.demo-as-name { overflow: hidden; font-size: 14.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.demo-as-role { overflow: hidden; color: var(--text-3); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.demo-as-other { margin-top: 12px; }
.demo-mail { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 14px; background: #FCFCFB; }
.auth .demo-mail { margin-top: 18px; }
.demo-mail-t { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.demo-mail-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.demo-mail-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--subtle); color: var(--text-2); }
.demo-mail-s { flex: 1; min-width: 140px; font-size: 14px; font-weight: 600; }
.sent-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.sent-ic .ic { width: 22px; height: 22px; }
.auth-tag { display: block; margin-top: 8px; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }

/* ---------- Mi máquina (V3) ---------- */
.hero-video { overflow: hidden; padding: 0; }
.hero-video > * + * { margin-top: 0; }
.hero-video-head { padding: 22px 24px 18px; }
.hero-video-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.hero-video .video { border: 0; border-radius: 0; }
.hero-quote { padding: 18px 24px 22px; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; line-height: 1.55; }
.hero-note .hero-quote { padding: 0; border: 0; }
.how h2 { font-size: 24px; letter-spacing: -0.02em; }
.how .eyebrow + h2 { margin-top: 0; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.how-step { display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.how-ic { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.how-n { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.how-t { font-size: 15px; font-weight: 600; line-height: 1.3; }
.how-x { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.how-why { padding-top: 16px; border-top: 1px solid var(--line); }
.how-why .mini { margin-top: 0; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.num { padding: 18px; border-radius: 14px; background: var(--subtle); }
.num-v { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.num-l { margin-top: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.pending { padding: 40px 24px; text-align: center; }
.pending-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.pending-ic .ic { width: 26px; height: 26px; }
.pending .muted { max-width: 540px; margin-left: auto; margin-right: auto; }
.pending .btn-row { justify-content: center; }
.next-list { display: flex; flex-direction: column; }
.next-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.next-row:first-child { padding-top: 4px; }
.next-row:last-child { padding-bottom: 0; border-bottom: 0; }
.next-dot { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.next-row.is-done .next-dot { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.next-dot .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.next-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-t { font-size: 15px; font-weight: 600; }
.next-row.is-done .next-t { color: var(--text-2); }
.next-x { color: var(--text-2); font-size: 14px; }
.next-main > .btn-row, .next-main > .needs { margin-top: 12px; }

/* ---------- Panel: diseñar su máquina ---------- */
.phase-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.phase-facts > div { padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.phase-facts dt { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.phase-facts dd { margin-top: 2px; font-size: 14.5px; font-weight: 600; }
.pick-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1.5px solid var(--accent); border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.pick-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pick-text { color: var(--text-2); font-size: 14.5px; }
.mini-flow { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-flow li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.mini-flow b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: var(--surface); color: var(--text-3); font-size: 10.5px; }
.pick-why { display: flex; gap: 8px; color: var(--text-2); font-size: 13.5px; }
.pick-why .ic { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.link-more .ic { width: 15px; height: 15px; }
.guide-box { padding: 14px 16px; border-radius: 14px; background: var(--subtle); }
.guide-box .mini { margin: 0 0 10px; }
.guide-box .help { margin-top: 10px; }

/* ---------- Clases (V3) ---------- */
.prep-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: stretch; }
.prep-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 20px; padding: 16px; border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); transition: box-shadow 0.15s, transform 0.15s; }
.prep-hero:hover { box-shadow: var(--shadow-3); transform: translateY(-1px); }
.prep-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 4px 4px 4px 0; }
.prep-hero-main .eyebrow { margin-bottom: 2px; }
.prep-hero-t { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.prep-hero-x { color: var(--text-2); font-size: 14.5px; }
.prep-hero-meta { margin-top: 2px; color: var(--text-3); font-size: 13px; }
.prep-hero-main .btn { margin-top: auto; }
.prep-progress { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.prep-ring { --p: 0; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 999px; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--subtle) 0); }
.prep-ring b { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 999px; background: var(--surface); font-size: 17px; font-variant-numeric: tabular-nums; }
.prep-progress-t { font-size: 16px; font-weight: 600; }
.prep-done { display: flex; align-items: center; gap: 16px; }
.prep-done > * + * { margin-top: 0; }
.class-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; }
.class-nav .link .ic { width: 15px; height: 15px; }
.class-done-main { display: flex; flex-direction: column; gap: 10px; }
.next-class { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.next-class:hover { border-color: var(--accent-line); box-shadow: var(--shadow-1); }
.next-class-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.next-class-n { color: var(--text-3); font-size: 12.5px; }
.next-class-t { font-size: 15px; font-weight: 600; }
.next-class > .ic:last-child { color: var(--accent); }
/* Portadas de las clases (16:9, como en las plataformas de cursos): imagen subida, miniatura de YouTube o portada generada. */
.cover { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; background: #2A1A55; color: #FFFFFF; isolation: isolate; }
.cover-gen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%), linear-gradient(135deg, #2A1A55, #6B2BEF); }
.cover.is-v1 .cover-gen { background: radial-gradient(120% 90% at 0% 100%, rgba(255, 255, 255, 0.14), transparent 55%), linear-gradient(150deg, #231748, #5A35E6); }
.cover.is-v2 .cover-gen { background: radial-gradient(110% 80% at 100% 100%, rgba(255, 255, 255, 0.14), transparent 55%), linear-gradient(120deg, #33195F, #7B3CF2); }
.cover.is-v3 .cover-gen { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.14), transparent 55%), linear-gradient(160deg, #1E1A4D, #5B45E8); }
.cover-n { color: rgba(255, 255, 255, 0.74); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.cover-t { display: -webkit-box; overflow: hidden; max-width: calc(100% - 60px); font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cover.is-big .cover-t { font-size: 18px; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--text); box-shadow: 0 6px 18px rgba(20, 10, 50, 0.28); opacity: 0; transform: scale(0.9); transition: opacity 0.18s, transform 0.18s var(--ease); }
.cover-play .ic { width: 17px; height: 17px; margin-left: 2px; stroke: none; }
a:hover > .cover .cover-play, a:focus-visible > .cover .cover-play, .cover.is-big:has(.cover-img) .cover-play { opacity: 1; transform: none; }
.cover-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(14, 13, 18, 0.74); color: #FFFFFF; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cover-done { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: var(--accent); font-size: 12px; font-weight: 600; }
.cover-done .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.cover-bar { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: rgba(14, 13, 18, 0.45); }
.cover-bar > span { display: block; height: 100%; background: #FFFFFF; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cgrid > li { display: flex; min-width: 0; }
.ccard { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ccard:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.ccard.is-next { border-color: var(--accent-line); }
.ccard .cover { border-radius: 0; }
.ccard-body { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.ccard-n { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.ccard-t { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ccard-x { display: -webkit-box; overflow: hidden; color: var(--text-2); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ccard-meta { margin-top: auto; padding-top: 8px; color: var(--text-3); font-size: 12.5px; }
.ccard-meta.is-next { color: var(--accent); font-weight: 500; }
.next-class .cover { flex: none; width: 92px; border-radius: 8px; }
.next-class .cover-gen > *, .next-class .cover-dur, .next-class .cover-play { display: none; }
.video.has-cover { border: 0; background: #2A1A55; }
.video.has-cover > .cover { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.video.has-cover > .cover .cover-gen > *, .video.has-cover > .cover .cover-play, .video.has-cover > .cover .cover-dur { display: none; }
.video-over { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 16px; background: rgba(14, 13, 18, 0.34); color: #FFFFFF; text-align: center; }
.video.is-soon .video-over { background: rgba(14, 13, 18, 0.5); }
.video.has-cover .video-cta, .video.has-cover .video-host, .video.has-cover .video-soon { color: #FFFFFF; }
.video.has-cover .video-cta .ic { color: rgba(255, 255, 255, 0.8); }
.video.has-cover .video-host { opacity: 0.8; }
.set-select { width: auto; max-width: 100%; }
label.btn { position: relative; overflow: hidden; }
.admin-row.has-thumb .admin-thumb { display: block; flex: none; width: 112px; border-radius: 8px; }
.admin-row.has-thumb .admin-thumb .cover { border-radius: 8px; }
.admin-row.has-thumb .admin-thumb .cover-t, .admin-row.has-thumb .admin-thumb .cover-dur, .admin-row.has-thumb .admin-thumb .cover-play { display: none; }
.admin-row.has-thumb .admin-thumb .cover-gen { padding: 8px 10px; }
.admin-row.is-hidden .admin-thumb { opacity: 0.55; }
.thumb-ed { margin-bottom: 12px; }
.slot-pv { display: flex; flex-direction: column; gap: 10px; }
.slot-pv > li { display: flex; flex-direction: column; gap: 2px; }
.slot-pv-d { font-size: 14px; font-weight: 600; }
.slot-pv-t { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.tips.is-flat { padding-top: 0; border-top: 0; }

/* ---------- Tu página ---------- */
.check-body { display: flex; flex-direction: column; gap: 2px; }
.check-t { font-size: 15px; }
.check-why { color: var(--text-3); font-size: 13px; line-height: 1.4; }
.page-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.page-preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.page-preview .help { text-align: center; }
.page-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.phone { width: 100%; max-width: 300px; margin: 0 auto; padding: 10px; border-radius: 34px; background: #17161B; box-shadow: var(--shadow-3); }
.phone-screen { display: flex; flex-direction: column; gap: 12px; min-height: 520px; padding: 26px 18px 22px; border-radius: 26px; background: #FFFFFF; color: #17161B; text-align: center; }
.ph-h { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ph-s { color: #55535B; font-size: 13px; overflow-wrap: anywhere; }
.ph-video { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; background: #17161B; color: #FFFFFF; }
.ph-video .ic { width: 28px; height: 28px; stroke: none; }
.ph-video.is-live span { padding: 3px 8px; border-radius: 6px; background: #C0362C; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.ph-form, .ph-quiz { display: flex; flex-direction: column; gap: 6px; }
.ph-form span { height: 30px; border: 1px solid #DAD9D5; border-radius: 8px; }
.ph-quiz span { height: 34px; border: 1.5px solid #DAD9D5; border-radius: 10px; }
.ph-quiz span:first-child { border-color: #6B2BEF; }
.ph-b { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ph-b li { display: flex; gap: 6px; font-size: 12.5px; }
.ph-b .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; color: #6B2BEF; stroke-width: 2.4; }
.ph-o { padding: 8px 10px; border-radius: 10px; background: #F2EDFE; color: #4F17C4; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ph-btn { display: block; margin-top: auto; padding: 12px; border-radius: 10px; background: #6B2BEF; color: #FFFFFF; font-size: 13.5px; font-weight: 600; }

/* ---------- Recursos por etapa ---------- */
.res-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.res-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--subtle); color: var(--text-2); }
.res-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--subtle); color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.res-chip .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.res.is-now { border-color: var(--accent-line); }
.res.is-now .res-ic, .res.is-now .res-chip { background: var(--accent-soft); color: var(--accent); }
.res.is-done .res-chip { background: transparent; box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent); }
.res.is-later { background: #FCFCFB; }
.res.is-later .res-name { color: var(--text-2); }

/* ---------- Avisos ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 60; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--text); color: #FFFFFF; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-3); transform: translateX(-50%); }
.toast.is-in { animation: toast 0.3s var(--ease) both; }
@media (min-width: 900px) { body:has(.app) .toast { left: calc(50% + var(--side) / 2); } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1000px) {
  .split, .two, .page-layout, .prep-top { grid-template-columns: minmax(0, 1fr); }
  .page-preview { position: static; }
  .sticky { position: static; }
  .page-wrap { padding: 40px 32px 96px; }
}

/* ---------- Teléfono: barra inferior, objetivos grandes ---------- */
@media (max-width: 899px) {
  .side { display: none; }
  .main { margin-left: 0; }
  .topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(250, 250, 249, 0.88); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
  .topbar-logo { display: inline-flex; }
  .tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--text-3); font-size: 11px; font-weight: 500; -webkit-tap-highlight-color: transparent; }
  .tab .ic { width: 22px; height: 22px; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
  .tab.is-on { color: var(--accent); }
  .page-wrap { padding: 24px 16px calc(104px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  h1 { font-size: 27px; }
  .home-title { font-size: 29px; }
  .home-grid { margin-top: 28px; }
}
@media (max-width: 640px) {
  .card { padding: 20px; }
  .next { padding: 22px; }
  .next h2 { font-size: 21px; }
  .next .next-cta .btn, .welcome-cta .btn, .done-cta .btn { width: 100%; }
  .lede { font-size: 16px; }
  .head { margin-bottom: 24px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .focus-top { height: 56px; padding: 0 16px; }
  .focus-main { padding: 20px 16px 40px; }
  .q-meter { margin-bottom: 28px; }
  .q-title { font-size: 25px; }
  .q-help { font-size: 15.5px; }
  .q-input { margin-top: 24px; }
  .q-foot { position: sticky; bottom: 0; z-index: 5; margin: 28px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(250, 250, 249, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .q-foot .btn-primary { flex: 1; }
  .q-saved { margin-top: 18px; }
  .welcome { padding-top: 3vh; }
  .welcome .display { font-size: 36px; }
  .done { padding-top: 3vh; }
  .auth { justify-content: flex-start; padding-top: 32px; }
  .auth-card { padding: 28px 20px; border-radius: 18px; }
  .class-done { flex-wrap: wrap; }
  .class-done .btn { width: 100%; }
  .inv-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .seg { display: flex; }
  .seg-btn { flex: 1; height: auto; min-height: 36px; padding: 6px 8px; line-height: 1.25; text-align: center; }
  .field > .seg { align-self: stretch; }
  .need, .also { flex-wrap: wrap; }
  .need .btn, .also .btn { width: 100%; }
  .step, .week-row, .rec { flex-wrap: wrap; align-items: flex-start; }
  .week-dot { margin-top: 1px; }
  .step-main { flex-basis: calc(100% - 42px); }
  .step .btn { margin-left: 42px; }
  .week-main { flex-basis: calc(100% - 36px); }
  .week-row .btn { margin-left: 36px; }
  .rec-main { flex-basis: calc(100% - 54px); }
  .rec .btn { margin-left: 54px; }
  .need-main, .also-main { flex-basis: calc(100% - 52px); }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics.is-4 .metric-value { font-size: 22px; }
  .soon { grid-template-columns: minmax(0, 1fr); }
  .os-card { flex-wrap: wrap; }
  .admin-row, .rec-card { flex-wrap: wrap; }
  .admin-main { flex-basis: calc(100% - 50px); }
  .admin-actions { margin-left: 50px; }
  .admin-row.has-thumb .admin-main { flex-basis: calc(100% - 126px); }
  .admin-row.has-thumb .admin-actions { margin-left: 126px; }
  .admin-row.has-thumb .admin-thumb { width: 96px; }
  .rec-card { align-items: flex-start; }
  .rec-card .rec-main { flex-basis: calc(100% - 56px); }
  .rec-card .btn { margin-left: 56px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .head-actions .btn { flex: 1 1 auto; }
  .person, .person.is-static { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 6px 12px; padding: 14px 16px; }
  .person .avatar { grid-row: 1 / span 2; align-self: start; }
  .person-main, .person-stage { grid-column: 2; }
  .person-stage { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .person-seen { display: none; }
  .person > .ic:last-child { grid-column: 3; grid-row: 1 / span 2; }
  .person.is-static .btn { grid-column: 2; justify-self: start; margin-top: 4px; }
  .search { flex: 1 1 100%; min-width: 0; }
  .list-tools > .btn { width: 100%; }
  .call-row { flex-wrap: wrap; }
  .call-row .btn { margin-left: 64px; }
  .msg .btn-row .btn { flex: 1 1 auto; }
  .answers summary { padding: 18px 20px; }
  .answers-body { padding: 0 20px 18px; }
  .hero-video-head { padding: 18px 20px 14px; }
  .hero-quote { padding: 16px 20px 18px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .prep-hero { grid-template-columns: minmax(0, 1fr); }
  .prep-progress { flex-direction: row; align-items: center; }
  .prep-ring { flex: none; width: 64px; height: 64px; }
  .prep-ring b { width: 50px; height: 50px; font-size: 14px; }
  .how-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
  .how-ic { grid-row: 1 / span 3; margin: 0; }
  .nums { grid-template-columns: minmax(0, 1fr); }
  .num-v { font-size: 28px; }
  .pending { padding: 32px 20px; }
  .os-card .link { margin-left: 60px; }
  .res-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .res { min-height: 0; }
  .angles { grid-template-columns: minmax(0, 1fr); }
  .hooks li { flex-direction: column; align-items: stretch; gap: 10px; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .guide { padding: 4px 20px; }
  .calls { grid-template-columns: minmax(0, 1fr); }
  .kv-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-opt { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .help-opt .btn { width: 100%; }
  .faq-more .btn { width: 100%; }
  .acc-panel p { padding-right: 0; }
  .set { padding: 4px 18px; }
  .set-row { flex-wrap: wrap; }
  .set-row:not(.is-toggle) .btn { width: 100%; }
  .set-form { flex-direction: column; align-items: stretch; }
  .sheet-wrap { place-items: end stretch; padding: 0; }
  .sheet { max-width: none; max-height: 92vh; overflow-y: auto; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .sheet-wrap.is-in .sheet { animation: up 0.32s var(--ease) both; }
}
@media (max-width: 380px) {
  .metrics.is-4 { grid-template-columns: minmax(0, 1fr); }
  .rv-row { grid-template-columns: minmax(0, 1fr); }
  .rv-row .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-left: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   V5 · producto real: estados, pestañas, plan, mapa, entregables, Preparación,
   sesiones con calendario, biblioteca y panel del equipo.
   ===================================================================== */

/* ---------- Utilidades ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: #FFFFFF; font-size: 14px; font-weight: 500; transform: translateY(-160%); transition: transform 0.15s var(--ease); }
.skip:focus { transform: none; }
.link-plain { color: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-plain:hover { text-decoration-color: currentColor; }
.link-danger, .link-danger:hover { color: var(--bad); }
.btn-col { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.input-sm { min-height: 36px; padding: 6px 10px; border-radius: var(--r-sm); font-size: 14px; }
select.input-sm { padding-right: 30px; background-position: right 10px center; background-size: 12px; }
.spinner.is-inline { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-width: 2px; vertical-align: -2px; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--line-3); }
.lead-text { color: var(--text); font-size: 16.5px; line-height: 1.6; }
.help > .ic { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.files { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.file-a { max-width: 100%; }
.file-a > span:not(.muted) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-a .muted { font-weight: 400; }
.file-a:hover .ic { transform: none; }
label.icon-btn { position: relative; cursor: pointer; }
.check.is-field { padding: 4px 0; }
.check.is-inline { flex: none; align-items: center; gap: 8px; padding: 0; font-size: 14px; white-space: nowrap; }
.check.is-inline input { margin-top: 0; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.chip-static .icon-btn { width: 22px; height: 22px; margin-right: -6px; border: 0; background: transparent; }
.note.is-fix { background: var(--warn-soft); color: #6E4A0E; }
.note.is-fix .ic { color: var(--warn); }
.note.is-fix strong { color: #4F3507; }
.switch.is-sm { width: 38px; height: 22px; }
.switch.is-sm span::after { width: 16px; height: 16px; }
.switch.is-sm input:checked + span::after { transform: translateX(16px); }
.switch input:disabled { cursor: default; }
.switch input:disabled + span { opacity: 0.45; }

/* ---------- Estados: una etiqueta para cada estado real ---------- */
.pill { display: inline-flex; flex: none; align-items: center; gap: 6px; max-width: 100%; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; }
.pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--line-3); }
.pill > .ic { width: 13px; height: 13px; margin-left: -3px; stroke-width: 2.2; }
.pill:has(> .ic)::before { display: none; }
.pill.is-en_progreso, .pill.is-disponible { background: var(--accent-soft); color: var(--accent); }
.pill.is-en_progreso::before, .pill.is-disponible::before { background: var(--accent); }
.pill.is-en_revision, .pill.is-reprogramar { background: var(--warn-soft); color: var(--warn); }
.pill.is-en_revision::before, .pill.is-reprogramar::before { background: #D98A00; }
.pill.is-requiere_cambios { background: var(--bad-soft); color: var(--bad); }
.pill.is-requiere_cambios::before { background: var(--bad); }
.pill.is-aprobado, .pill.is-agendada { background: var(--ok-soft); color: var(--ok-text); }
.pill.is-aprobado::before, .pill.is-agendada::before { background: var(--ok); }
.pill.is-publicado { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ok-line); color: var(--ok-text); }
.pill.is-publicado::before { background: var(--ok); }
.pill.is-verificado { background: var(--ok); color: #FFFFFF; }
.pill.is-verificado::before { background: #FFFFFF; }
.pill.is-completada { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.pill.is-completada::before { background: var(--ok); }
.pill.is-bloqueada, .pill.is-cancelada, .pill.is-muted { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }

/* ---------- Pestañas de una página (sub-rutas reales) ---------- */
.head + .tabs { margin-top: -12px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs-a { position: relative; display: inline-flex; flex: none; align-items: center; gap: 7px; height: 44px; padding: 0 12px; color: var(--text-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color 0.15s; }
.tabs-a:hover, .tabs-a.is-on { color: var(--text); }
.tabs-a.is-on::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.tabs-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 11.5px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.tabs-a.is-on .tabs-n { background: var(--accent-soft); color: var(--accent); }
.subnav { margin-bottom: 4px; }

/* ---------- Marco del cliente: guardado, avisos ---------- */
.nav-sep { display: block; height: 1px; margin: 10px 12px; background: var(--line); }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.bell { position: relative; border-color: transparent; border-radius: 999px; background: transparent; }
.bell:hover { background: var(--subtle); }
.bell .ic { width: 19px; height: 19px; }
.bell-n { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.side-top .bell { margin: -4px -2px 0 0; }
.side-save { display: flex; margin-top: auto; padding: 0 12px 12px; }
.side-save + .side-foot { margin-top: 0; }
.save-wrap { display: inline-flex; min-width: 0; }
.save { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; font-weight: 500; white-space: nowrap; }
.save .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.save.is-busy { color: var(--text-2); }
.save.is-off { color: var(--warn); }
.save-dot { flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
a.side-foot { color: var(--text); }
a.side-foot:hover .who-name { color: var(--accent); }
.sheet-wrap.is-drawer { place-items: stretch end; padding: 0; }
.sheet.is-drawer { width: 420px; max-width: 100%; height: 100vh; height: 100dvh; overflow-y: auto; padding: 28px 24px 32px; border-radius: 0; }
.sheet-wrap.is-in .sheet.is-drawer { animation: slide 0.28s var(--ease) both; }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } }
.notes { display: flex; flex-direction: column; margin-top: 16px; }
.note-row + .note-row { border-top: 1px solid var(--line); }
.note-a { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; padding: 14px 8px; border-radius: 10px; color: var(--text); }
a.note-a:hover { background: var(--subtle); }
.note-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 999px; }
.note-row.is-new .note-dot { background: var(--accent); }
.note-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-t { font-size: 14.5px; font-weight: 500; }
.note-row.is-new .note-t { font-weight: 600; }
.note-x { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.note-when { color: var(--text-3); font-size: 12.5px; }

/* ---------- Entrada del equipo: distinta de la de clientes ---------- */
.auth:has(> .auth-split) { display: block; padding: 0; }
.auth-split { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); min-height: 100vh; }
.auth-panel { display: flex; padding: 48px; border-right: 1px solid var(--line); background: #F3F1F8; }
.auth-panel-in { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 360px; margin: auto; }
.auth-panel-in .logo-mark { height: 24px; }
.auth-panel-in .logo-word { height: 13px; }
.auth-panel-t { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.auth-panel-list { display: flex; flex-direction: column; gap: 14px; color: var(--text-2); font-size: 15px; }
.auth-panel-list li { display: flex; align-items: center; gap: 12px; }
.auth-panel-list .ic { color: var(--accent); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-split .auth-card .auth-logo .logo { display: none; }
.auth-split .auth-card .auth-logo { margin-bottom: 22px; }
.auth-split .auth-card .auth-tag { margin-top: 0; }
.auth-tag { display: inline-flex; align-items: center; gap: 6px; }
.auth-tag .ic { width: 13px; height: 13px; }

/* ---------- Inicio: el centro de control ---------- */
.next.is-wait { background: var(--subtle); border-color: transparent; box-shadow: none; }
.home-main, .home-side { min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.side-card .card-head { align-items: center; }
.side-card > .sc-when + p { margin-top: 4px; }
.side-card > .help { margin-top: 12px; }
.sc-when { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.mc .card-head { align-items: center; }
.mc.is-pending h2 { font-size: 20px; letter-spacing: -0.015em; }
.mc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.mc-facts > div { min-width: 0; padding: 14px 16px; border-radius: 12px; background: var(--subtle); }
.mc-facts dt { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.mc-facts dd { margin-top: 4px; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.mc-facts .progress { margin-top: 10px; background: var(--surface); }
.mini-steps { display: flex; flex-direction: column; gap: 10px; }
.mini-steps li { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14.5px; }
.mini-steps .ic { flex: none; width: 16px; height: 16px; color: var(--accent); stroke-width: 2.4; }
.mini-steps .dot { margin: 0 4px; }
.mini-steps li.is-done { color: var(--text-2); }
.mini-steps li.is-now { color: var(--text); font-weight: 600; }
.mini-steps li.is-now .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mini-steps.is-row { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
.team-links { display: flex; flex-direction: column; margin-inline: -8px; }
.team-a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 8px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 14.5px; font-weight: 500; text-align: left; transition: background-color 0.15s; }
.team-a:hover { background: var(--subtle); }
.team-a > .ic:first-child { color: var(--text-3); }
.team-a span { flex: 1; min-width: 0; }
.team-a > .ic:last-child { width: 15px; height: 15px; color: var(--text-3); }

/* ---------- Mi máquina: resumen, entregables, recomendaciones ---------- */
.obj { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--subtle); }
.obj-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-1); }
.obj-ic .ic { width: 16px; height: 16px; }
.obj p { padding-top: 4px; font-size: 15px; font-weight: 500; }
.plist { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plist > li + li { border-top: 1px solid var(--line); }
.prow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); transition: background-color 0.15s; }
a.prow:hover { background: var(--bg); }
.prow-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.prow-t { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.prow-x { color: var(--text-3); font-size: 13px; }
.prow > .ic:last-child { flex: none; width: 16px; height: 16px; color: var(--text-3); transition: transform 0.18s var(--ease), color 0.15s; }
a.prow:hover > .ic:last-child { color: var(--text); transform: translateX(2px); }
.plist.is-compact { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.plist.is-compact .prow { padding: 12px 0; }
.plist.is-compact a.prow:hover { background: transparent; }
.plist.is-compact a.prow:hover .prow-t { color: var(--accent); }
.block-title > .ic { width: 17px; height: 17px; margin-right: 8px; color: var(--text-3); vertical-align: -3px; }
.rec-items { display: flex; flex-direction: column; }
.rec-items > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rec-items > li:first-child { padding-top: 4px; }
.rec-items > li:last-child { padding-bottom: 0; border-bottom: 0; }
.rec-title { font-size: 15.5px; font-weight: 600; }
.rec-body { margin-top: 4px; color: var(--text-2); font-size: 15px; }
.rec-by { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.rec-by .ic { width: 14px; height: 14px; color: var(--accent); }
.card.auto { border-style: dashed; background: var(--bg); box-shadow: none; }
.card.auto .card-head { align-items: center; }

/* ---------- El plan ---------- */
.plan-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.plan-toc { position: sticky; top: 24px; }
.plan-toc .mini { margin: 0 0 10px; }
.plan-toc ol { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.plan-toc a { display: block; margin-left: -1px; padding: 6px 12px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14px; line-height: 1.35; }
.plan-toc a:hover { border-left-color: var(--accent); color: var(--text); }
.plan-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; }
.plan-meta .ic { width: 14px; height: 14px; color: var(--accent); }
.pb { scroll-margin-top: 80px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.pb > * + * { margin-top: 14px; }
.pb-title { font-size: 19px; letter-spacing: -0.015em; }
.pb.pb-titulo { padding: 14px 0 0; border: 0; background: none; box-shadow: none; }
.pb.pb-titulo > * + * { margin-top: 6px; }
.pb-section { font-size: 24px; letter-spacing: -0.02em; text-wrap: balance; }
.pb.pb-video, .pb.pb-enlace { padding: 0; border: 0; background: none; box-shadow: none; }
.pb.pb-resumen { border-color: var(--accent-line); }
.pb-highlight .lead-text { margin-top: 4px; font-size: 18px; line-height: 1.55; }
.pb-obj { display: flex; align-items: flex-start; gap: 14px; }
.pb-obj .obj-ic { width: 40px; height: 40px; border-radius: 12px; }
.pb-obj .obj-ic .ic { width: 20px; height: 20px; }
.pb-obj .eyebrow { margin-bottom: 4px; }
.pb-obj-t { font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
.pb-rec .eyebrow { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.pb-rec .eyebrow .ic { width: 14px; height: 14px; }
.pb-rec > * + * { margin-top: 10px; }
.pb-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.pb-action p { flex: 1 1 300px; color: var(--text-2); }
.pb-img { margin: 0; }
.pb-img img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.pb-img figcaption { margin-top: 8px; color: var(--text-3); font-size: 13px; }
.pb-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); transition: border-color 0.15s, box-shadow 0.15s; }
.pb-link:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.pb-link > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.pb-link > .ic:last-child { color: var(--text-3); }
.pb-link-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--subtle); color: var(--accent); }
.pb-link-t { font-weight: 600; overflow-wrap: anywhere; }
.hero-video.is-inline .hero-video-head h2 { font-size: 19px; }
.facts.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.facts.is-grid > div { min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.facts.is-grid dd { font-weight: 600; overflow-wrap: anywhere; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; transition: border-color 0.15s, color 0.15s; }
.tool-chip .ic { width: 16px; height: 16px; color: var(--accent); }
.tool-chip:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- El mapa de la máquina: un recorrido vertical, paso a paso ---------- */
.map { display: flex; flex-direction: column; }
.map-node { position: relative; }
.map-node:not(:last-child)::after { content: ""; position: absolute; top: 52px; bottom: -14px; left: 33px; width: 2px; border-radius: 2px; background: var(--line); }
.map-node.is-aprobado:not(:last-child)::after { background: var(--ok-line); }
.map-btn { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic n st" "ic t st" "ic x st"; align-items: start; column-gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: none; color: var(--text); text-align: left; transition: background-color 0.15s; }
button.map-btn:hover { background: var(--subtle); }
button.map-btn:hover .map-t { color: var(--accent); }
.map-ic { position: relative; z-index: 1; display: grid; grid-area: ic; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-2); }
.map-ic .ic { width: 17px; height: 17px; }
.map-n { grid-area: n; color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.map-t { grid-area: t; font-size: 15.5px; font-weight: 600; line-height: 1.35; transition: color 0.15s; }
.map-x { grid-area: x; margin-top: 2px; color: var(--text-2); font-size: 14px; }
.map-st { grid-area: st; align-self: center; }
.map-node.is-aprobado .map-ic { background: var(--ok); box-shadow: none; color: #FFFFFF; }
.map-node.is-en_progreso .map-ic, .map-node.is-en_revision .map-ic { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.map-node.is-requiere_cambios .map-ic { box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); }
.card > .map { margin-inline: -16px; }

/* ---------- Un entregable: su espacio de trabajo ---------- */
.part-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.part-main, .part-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.part-state .card-head { display: block; }
.part-help { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.part-state > .help { display: flex; gap: 6px; }
.part-state > .help > .ic { flex: none; margin-top: 2px; }
.part-state.is-en_revision { border-color: var(--warn-line); }
.part-state.is-requiere_cambios { border-color: var(--bad-line); }
.part-state.is-aprobado, .part-state.is-publicado, .part-state.is-verificado { border-color: var(--ok-line); }
.partbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.partbar-t { flex: 1 1 260px; min-width: 0; color: var(--text-2); font-size: 14px; }
.partbar-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.partbar.is-en_revision { border-color: var(--warn-line); }
.partbar.is-requiere_cambios { border-color: var(--bad-line); }
.partbar.is-aprobado, .partbar.is-publicado, .partbar.is-verificado { border-color: var(--ok-line); }
.thread-list { display: flex; flex-direction: column; gap: 10px; }
.tl { padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.tl.is-team { background: var(--accent-soft); }
.tl.is-envio, .tl.is-retiro, .tl.is-reabierto { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tl.is-cambios { background: var(--bad-soft); }
.tl.is-aprobado, .tl.is-publicado, .tl.is-verificado { background: var(--ok-soft); }
.tl.is-internal { background: var(--warn-soft); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; color: var(--text-2); font-size: 13px; }
.tl-head strong { color: var(--text); font-size: 13.5px; }
.tl-tag { padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--accent); font-size: 11px; font-weight: 600; }
.tl-when { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.tl-body { margin-top: 6px; font-size: 14.5px; overflow-wrap: anywhere; }
.tl-files { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.tl-files .link { font-size: 13.5px; }
.comment-form { gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.comment-form > .btn { align-self: flex-start; }
.attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.attach-f { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--subtle); color: var(--text-2); font-size: 13px; font-weight: 500; }
.attach-f > .ic { width: 14px; height: 14px; }
.attach-f .icon-btn { width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; }
.attach-add { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px dashed var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.attach-add:hover, .attach-add:focus-within { border-color: var(--accent); color: var(--accent); }
.attach-add .ic { width: 14px; height: 14px; }

/* ---------- Herramientas ---------- */
.issues { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 8px; color: var(--text-2); font-size: 14.5px; text-align: left; }
.issues li { position: relative; padding-left: 14px; }
.issues li::before { content: ""; position: absolute; top: 9px; left: 0; width: 5px; height: 5px; border-radius: 999px; background: var(--warn); }
.phone { position: relative; }
.phone-tag { position: absolute; top: -10px; left: 50%; z-index: 1; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: var(--shadow-1); transform: translateX(-50%); }
.page-real .facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.checklist { display: flex; flex-direction: column; }
.checklist > li + li { border-top: 1px solid var(--line); }

/* ---------- Preparación: requisitos, quiz y tarea ---------- */
.req-list { display: flex; flex-direction: column; gap: 10px; }
.req-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.req-list li > .ic { flex: none; width: 18px; height: 18px; }
.req-list li > .dot { margin: 0 5px; }
.req-list li.is-done > .ic { color: var(--accent); stroke-width: 2.4; }
.req-list li.is-wait > .ic { color: var(--warn); }
.reqs > .btn { align-self: flex-start; }
.more-info { padding: 0; }
.more-info > * + * { margin-top: 0; }
.more-info summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; list-style: none; cursor: pointer; }
.more-info summary::-webkit-details-marker { display: none; }
.more-info summary .ic { color: var(--text-3); transition: transform 0.2s var(--ease); }
.more-info[open] summary .ic { transform: rotate(180deg); }
.more-info-body { padding: 0 24px 20px; color: var(--text-2); }
.quiz-card .card-head { flex-wrap: wrap; }
.qz { display: flex; flex-direction: column; gap: 14px; }
.qz .q-meter-row { margin-bottom: -6px; }
.qz-t { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.qz .q-foot { margin-top: 8px; }
.qz-result { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; }
.qz-result.is-ok { background: var(--ok-soft); }
.qz-result.is-bad { background: var(--bad-soft); }
.qz-score { flex: none; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.qz-result.is-ok .qz-score { color: var(--ok-text); }
.qz-result.is-bad .qz-score { color: var(--bad); }
.qz-review { display: flex; flex-direction: column; gap: 10px; }
.qz-review > li { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--line-3); border-radius: 12px; }
.qz-review > li.is-ok { border-left-color: var(--ok); }
.qz-review > li.is-bad { border-left-color: var(--bad); }
.qz-q { display: flex; gap: 10px; font-weight: 600; }
.qz-a { margin-top: 6px; padding-left: 34px; color: var(--text-2); font-size: 14.5px; }
.qz-x { display: flex; gap: 8px; margin: 8px 0 0 34px; padding: 10px 12px; border-radius: 10px; background: var(--subtle); color: var(--text-2); font-size: 14px; }
.qz-x .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--text-3); }
.task-wait { display: flex; align-items: center; gap: 8px; color: var(--warn); font-size: 14.5px; font-weight: 500; }
.task-wait .ic { width: 17px; height: 17px; }

/* ---------- Sesiones ---------- */
.ses-list { display: flex; flex-direction: column; gap: 10px; }
.ses { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.ses > * + * { margin-top: 0; }
.ses-n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--subtle); color: var(--text-2); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.ses-n .ic { width: 18px; height: 18px; }
.ses-main { flex: 1; min-width: 0; }
.ses-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ses-t { font-size: 16px; font-weight: 600; }
.ses-x { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.ses-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--text-3); font-size: 13px; }
.ses-meta .ic { width: 14px; height: 14px; }
.ses.is-disponible, .ses.is-reprogramar { border-color: var(--accent-line); }
.ses.is-disponible .ses-n { background: var(--accent-soft); color: var(--accent); }
.ses.is-agendada .ses-n { background: var(--ok-soft); color: var(--ok-text); }
.ses.is-bloqueada { background: var(--bg); box-shadow: none; }
.ses.is-bloqueada .ses-t { color: var(--text-2); }
.ses.is-cancelada .ses-t { color: var(--text-3); text-decoration: line-through; }
.ses-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ses-layout > div, .ses-layout > aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ses-layout:has(> aside:empty) { grid-template-columns: minmax(0, 1fr); }
.ses-layout > aside:empty { display: none; }
.booked { border-color: var(--ok-line); }
.booked-when { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.booked > .booked-when + p { margin-top: 4px; }
.booked-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.booked-foot .muted { flex-basis: 100%; }
.prep-card .form { gap: 14px; }
.summary .ticks { margin-top: 0; }
.cal .card-head { align-items: center; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { max-width: 420px; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week { margin-bottom: 4px; }
.cal-week span { color: var(--text-3); font-size: 12px; font-weight: 600; text-align: center; }
.cal-cell { display: grid; place-items: center; aspect-ratio: 1; min-height: 38px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--text-3); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cal-cell.is-free { background: var(--accent-soft); color: var(--accent); font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.cal-cell.is-free:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-cell.is-on, .cal-cell.is-on:hover { background: var(--accent); box-shadow: none; color: #FFFFFF; }
.cal-times { padding-top: 16px; border-top: 1px solid var(--line); }
.cal-times .mini { margin: 0 0 10px; }
.cal-times .mini::first-letter, .day-group .mini::first-letter { text-transform: uppercase; }
.cal-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cal-slot { height: 42px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color 0.15s, color 0.15s, background-color 0.15s; }
.cal-slot:hover { border-color: var(--accent); color: var(--accent); }
.cal-slot.is-on, .cal-slot.is-on:hover { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.cal-confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px; background: var(--subtle); }
.cal > .help { display: flex; align-items: center; gap: 2px; }

/* ---------- Biblioteca y soporte ---------- */
.lib { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.lib-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); transition: background-color 0.15s; }
.lib-item + .lib-item { border-top: 1px solid var(--line); }
.lib-item:hover { background: var(--bg); }
.lib-item.is-new { box-shadow: inset 3px 0 0 var(--accent); }
.lib-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--subtle); color: var(--text-2); }
.lib-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.lib-t { font-size: 15px; font-weight: 600; }
.lib-x { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.lib-for { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--accent); font-size: 12.5px; font-weight: 500; }
.lib-for .ic { width: 13px; height: 13px; }
.lib-item > .ic:last-child { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.res-preview { border: 1px solid var(--line); border-radius: 12px; }
.res-text-body { max-width: 68ch; font-size: 16px; line-height: 1.65; }
.resolved { border-color: var(--ok-line); }
.resolved .eyebrow { display: flex; align-items: center; gap: 6px; color: var(--ok-text); }
.resolved .eyebrow .ic { width: 14px; height: 14px; }

/* ---------- Panel del equipo: marco y resumen ---------- */
.app.is-team .nav { overflow-y: auto; min-height: 0; margin-inline: -6px; padding-inline: 6px; }
.nav-group { margin: 16px 12px 6px; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.nav-group:first-child { margin-top: 0; }
.nav-badge.is-soft { background: var(--accent-soft); color: var(--accent); }
.page-wrap.is-wide { max-width: 1240px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.side-tag .ic { width: 13px; height: 13px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); transition: border-color 0.15s, box-shadow 0.15s; }
.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.stat-n { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--text-2); font-size: 13.5px; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.attn-when { flex: none; color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.attn-row.is-p1 .attn-ic { background: var(--accent-soft); color: var(--accent); }
.attn-row.is-p3 .attn-ic, .attn-row.is-p4 .attn-ic { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }
.mini-list { display: flex; flex-direction: column; }
.mini-list > li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list > li:last-child { padding-bottom: 0; border-bottom: 0; }
.ml-when { flex: none; min-width: 84px; color: var(--text-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ml-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.act-list { display: flex; flex-direction: column; }
.act-list > li { position: relative; display: flex; gap: 12px; padding: 9px 0; }
.act-list > li:not(:last-child)::after { content: ""; position: absolute; top: 25px; bottom: -8px; left: 3px; width: 2px; border-radius: 2px; background: var(--line); }
.act-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 999px; background: var(--line-3); }
.act-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.act-t { font-size: 14px; overflow-wrap: anywhere; }
.act-x { color: var(--text-3); font-size: 12.5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th { padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td, .table tbody th { padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; vertical-align: middle; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr { transition: background-color 0.15s; }
.table tbody tr:hover { background: var(--bg); }
.t-main { display: flex; align-items: center; gap: 12px; min-width: 200px; color: var(--text); }
.t-main > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.t-t { font-weight: 600; overflow-wrap: anywhere; }
a.t-main:hover .t-t { color: var(--accent); }
.t-x { color: var(--text-3); font-size: 12.5px; }
td > .t-x { display: block; margin-top: 4px; }
.t-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--subtle); color: var(--text-2); }
.num-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.num-cell .pill { margin-left: 6px; }
.t-actions { text-align: right; white-space: nowrap; }
.avatar.is-sm { width: 30px; height: 30px; font-size: 11.5px; }
.inv-list { display: flex; flex-direction: column; }
.inv-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.inv-item:last-child { padding-bottom: 0; border-bottom: 0; }
.inv-main { display: flex; flex: 1 1 220px; flex-direction: column; min-width: 0; }
.inv-t { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.inv-x { color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.inv-a { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.perm-table thead th:not(:first-child), .perm-table td:not(:first-child) { text-align: center; }
.perm-table td:first-child { min-width: 220px; }
.perm-table .switch { display: inline-block; vertical-align: middle; }
.ints { display: flex; flex-direction: column; padding-block: 6px; }
.ints > * + * { margin-top: 0; }
.int { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.int:last-child { border-bottom: 0; }
.int-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--subtle); color: var(--text-2); }
.int-main { flex: 1 1 260px; min-width: 0; }
.int-t { font-size: 15px; font-weight: 600; }
.int-x { color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }

/* ---------- Panel: expediente de una empresa ---------- */
.file-head .head-row { align-items: flex-end; }
.file-id { display: flex; flex-direction: column; }
.file-id .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.file-detail { color: var(--text-3); font-size: 13px; }
.file-id .lede { margin-top: 4px; font-size: 15px; }
.owner-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); }
.owner-pick select { min-width: 190px; }
.file-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.file-main, .file-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.attn-list.is-flat .attn-row { padding: 10px 0; }
.people-mini { display: flex; flex-direction: column; }
.people-mini > li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.people-mini > li:last-child { padding-bottom: 0; border-bottom: 0; }
.pm-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pm-t { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.pm-x { color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.rec-admin { display: flex; flex-direction: column; }
.rec-admin > li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rec-admin > li:last-child { padding-bottom: 0; border-bottom: 0; }
.ra-main { flex: 1 1 300px; min-width: 0; }
.ra-t { font-weight: 600; }
.ra-x { margin-top: 2px; color: var(--text-2); font-size: 14px; }
.ra-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.task-reviews { display: flex; flex-direction: column; gap: 12px; }
.tr { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.tr > * + * { margin-top: 10px; }
.tr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tr-t { font-weight: 600; }
.tr-fb { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--subtle); color: var(--text-2); font-size: 14px; }
.tr-fb .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.qz-open > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qz-open > li:last-child { padding-bottom: 0; border-bottom: 0; }
.qz-open .mini { margin: 0 0 6px; }
.qz-open .qz-q { margin-top: 8px; }
.qz-open .qz-a { margin-top: 2px; padding-left: 0; }
.ses-admin { display: flex; flex-direction: column; }
.sa { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sa:last-child { padding-bottom: 0; border-bottom: 0; }
.sa-n { display: grid; place-items: center; flex: none; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 9px; background: var(--subtle); color: var(--text-2); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.sa-n .ic { width: 16px; height: 16px; color: var(--accent); }
.sa-main { flex: 1 1 260px; min-width: 0; }
.sa-t { font-size: 14.5px; }
.sa-x { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; color: var(--text-3); font-size: 13px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.pick-list .check { padding: 8px 0; font-size: 14.5px; }
.pick-list.is-scroll { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; padding: 4px 12px; border: 1px solid var(--line); border-radius: 12px; }
.notes-list { display: flex; flex-direction: column; gap: 10px; }
.notes-list > li { padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.notes-list > li.is-pinned { background: var(--warn-soft); }
.notes-list .tl-body { margin-top: 4px; }
.notes-list .btn-row { margin-top: 6px; }

/* ---------- Panel: constructor de planes ---------- */
.pb-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pb-bar-l { min-width: 0; }
.pb-bar-l h2 { font-size: 22px; letter-spacing: -0.02em; }
.pb-bar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.pb-blocks { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pb-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.pb-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pb-add-b { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.25; text-align: left; transition: border-color 0.15s, color 0.15s; }
.pb-add-b:hover { border-color: var(--accent-line); color: var(--accent); }
.pb-add-b .ic { width: 16px; height: 16px; color: var(--accent); }
.pbe { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.pbe.is-hidden { border-style: dashed; background: var(--bg); box-shadow: none; }
.pbe.is-hidden > :not(.pbe-head) { opacity: 0.6; }
.pbe.is-todo { border-color: var(--bad-line); box-shadow: 0 0 0 1px var(--bad-soft); }
.pbe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pbe-type { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.pbe-type .ic { width: 15px; height: 15px; color: var(--accent); }
.pbe-head > .input-sm { width: auto; }
.pbe-tools { display: flex; gap: 2px; margin-left: auto; }
.pbe-tools .icon-btn { width: 32px; height: 32px; border-color: transparent; background: transparent; }
.pbe-tools .icon-btn:hover { background: var(--subtle); }
.pbe-title { font-weight: 600; }
.pbe-rows { display: flex; flex-direction: column; gap: 8px; }
.pbe-row { display: flex; align-items: center; gap: 8px; }
.pbe-row > .input { flex: 1 1 0; min-width: 0; }
.pbe-row > .input-sm, .pbe-row > select.input { flex: 0 1 auto; width: auto; }
.pbe-row > .icon-btn, .pbe-row > .check, .pbe-row > .muted { flex: none; }
.pbe-parts { display: flex; flex-direction: column; gap: 10px; }
.pbe-part { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pbe-more summary { color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pbe-more[open] summary { margin-bottom: 8px; }
.pb-preview { padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg); }
.pb-preview > * + * { margin-top: 16px; }
.pb-preview-t { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.pb-preview-t .ic { width: 16px; height: 16px; color: var(--accent); }
.pb-preview.is-sheet { max-height: 60vh; overflow-y: auto; padding: 16px; }
.tpl-list { display: flex; flex-direction: column; gap: 8px; }
.tpl { display: flex; align-items: center; gap: 10px; }
.tpl > .input { flex: 1; min-width: 0; }
.tpl-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--subtle); color: var(--accent); }
.tpl.is-col { flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- Panel: contenido, formularios y disponibilidad ---------- */
.ce-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ce-main, .ce-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ce-res { display: flex; flex-direction: column; gap: 8px; }
.qb { display: flex; flex-direction: column; gap: 12px; }
.qb-q { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.qb-opts { display: flex; flex-direction: column; gap: 6px; }
.qb-opt { display: flex; align-items: center; gap: 8px; }
.qb-opt > .input { flex: 1; min-width: 0; }
.qb-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); color: transparent; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.qb-mark .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.qb-mark:hover { border-color: var(--ok); color: var(--ok); }
.qb-opt.is-right .qb-mark { border-color: var(--ok); background: var(--ok); color: #FFFFFF; }
.qb-opt.is-right > .input { border-color: var(--ok-line); }
.fd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fd-sec { padding: 0; }
.fd-sec > * + * { margin-top: 0; }
.fd-sec > summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; list-style: none; cursor: pointer; }
.fd-sec > summary::-webkit-details-marker { display: none; }
.fd-sec-t { display: inline-flex; flex: 1; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.fd-sec-t .ic { width: 16px; height: 16px; color: var(--text-3); }
.fd-sec > summary > .ic { color: var(--text-3); transition: transform 0.2s var(--ease); }
.fd-sec[open] > summary > .ic { transform: rotate(180deg); }
.fd-sec-body { padding: 0 22px 20px; }
.fd-sec-body > * + * { margin-top: 12px; }
.fd-pv { display: flex; flex-direction: column; gap: 10px; }
.fd-pv > li { padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.fd-pv-t { font-weight: 600; }
.week-ed { display: flex; flex-direction: column; }
.we-day { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.we-day:last-child { padding-bottom: 0; border-bottom: 0; }
.we-name { padding-top: 8px; font-size: 14.5px; font-weight: 600; }
.we-blocks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.we-b { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.we-b > span { color: var(--text-3); font-size: 13px; }
.we-b .input-sm { width: 112px; }
.we-b .icon-btn { width: 28px; height: 28px; border-color: transparent; background: transparent; }
.day-group + .day-group { margin-top: 18px; }
.day-group .mini { margin: 0 0 4px; }

/* ---------- V5 · pantallas medianas ---------- */
@media (max-width: 1180px) {
  .dash { grid-template-columns: minmax(0, 1fr) 320px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pb-layout { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 1000px) {
  .part-layout, .ses-layout, .file-grid, .dash, .ce-layout, .pb-layout, .plan-layout { grid-template-columns: minmax(0, 1fr); }
  .plan-toc, .pb-side { position: static; }
  .plan-toc { display: none; }
  .pb-add { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---------- V5 · teléfono ---------- */
@media (max-width: 899px) {
  .topbar-actions .save-wrap { max-width: 42vw; }
  .topbar-actions .save:not(.is-busy):not(.is-off) { display: none; }
  .topbar-actions .save { font-size: 12px; line-height: 1.2; white-space: normal; }
  .auth-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-panel { padding: 22px 20px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-panel-in { max-width: 420px; gap: 10px; }
  .auth-panel-t { font-size: 18px; }
  .auth-panel-list { display: none; }
  .auth-main { justify-content: flex-start; padding: 28px 16px 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sheet-wrap.is-drawer { place-items: end stretch; }
  .sheet.is-drawer { width: auto; height: auto; max-height: 92vh; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .sheet-wrap.is-in .sheet.is-drawer { animation: up 0.32s var(--ease) both; }
  .tabs { margin-inline: -16px; padding-inline: 4px; }
  .pb { padding: 20px; }
  .pb.pb-titulo { padding: 10px 0 0; }
  .pb-section { font-size: 21px; }
  .prow { flex-wrap: wrap; gap: 8px 12px; }
  .prow-main { flex-basis: calc(100% - 40px); }
  .prow > .ic:last-child { order: 2; }
  .prow > .pill { order: 3; }
  .map-btn { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "ic n" "ic t" "ic x" "ic st"; }
  .map-st { justify-self: start; padding-top: 8px; }
  .card > .map { margin-inline: -12px; }
  .map-btn { padding: 12px; }
  .map-node:not(:last-child)::after { top: 50px; left: 29px; bottom: -12px; }
  .ses { flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 16px; }
  .ses-main { flex-basis: calc(100% - 54px); }
  .ses > .btn { margin-left: 54px; }
  .booked-when { font-size: 21px; }
  .cal-grid { max-width: none; }
  .cal-confirm .btn { width: 100%; }
  .lib-item { align-items: flex-start; }
  .stat { padding: 14px 16px; }
  .stat-n { font-size: 24px; }
  .t-main { min-width: 170px; }
  .we-day { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .we-name { padding-top: 0; }
  .pbe-row { flex-wrap: wrap; }
  .pbe-row > .input { flex-basis: calc(100% - 44px); }
  .qz-a { padding-left: 0; }
  .qz-x { margin-left: 0; }
  .qz-score { font-size: 24px; }
  .mc-facts { grid-template-columns: minmax(0, 1fr); }
  .owner-pick { width: 100%; }
  .owner-pick select { flex: 1; min-width: 0; }
  .pb-bar-r .btn { flex: 1 1 auto; }
}
[data-live="pb-todo"]:empty { display: none; }
.app:has(.page-wrap .save-wrap) .side-save { visibility: hidden; }
.perm-table tbody th .t-t, .perm-table tbody th .t-x { display: block; }
.perm-table td > .ic { display: inline-block; width: 16px; height: 16px; color: var(--accent); stroke-width: 2.4; vertical-align: middle; }
.table-wrap { position: relative; }
.card-head { flex-wrap: wrap; }
.card-head > :first-child { flex: 1 1 auto; min-width: 0; }
