/* SEO Studio — identidad de inesIA (azul marino + azul eléctrico, Plus Jakarta Sans) con tema claro y oscuro */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Sistema de diseño común de inesIA (el mismo que la cuenta y Scraping), con los colores de inesia.cloud */
  --navy: #0b2c48; --navy-deep: #071d31; --blue: #1455ff; --blue-600: #0f45d6; --cyan: #2ad4ff; --violet: #7a5cff;
  --ink: #0b2c48; --text: #0b2c48; --text-2: #364a63; --muted: #607086;
  --page: #f4f7fb; --surface: #ffffff; --surface-2: #f8fafd; --line: #e3e9f1; --line-strong: #d3dce8;
  --blue-50: #e8efff; --blue-100: #d3e0ff; --blue-ring: rgba(20, 85, 255, .22); --btn-bg: #1455ff; --btn-bg-hover: #0f45d6;
  --ok: #0f8a5f; --ok-50: #e4f6ee; --warn: #a15c00; --warn-50: #fff3df; --bad: #c42b2b; --bad-50: #fde9e9; --orange: #b3470a; --orange-50: #fff0e6;
  --side-bg: #0b2c48; --side-text: #c9d6e6; --side-muted: #7f97b3; --side-hover: rgba(255, 255, 255, .07); --side-active: rgba(126, 162, 255, .18);
  --code-bg: #0b2c48; --code-ink: #e6eefc;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 44, 72, .06), 0 8px 24px -12px rgba(11, 44, 72, .12);
  --shadow-lg: 0 24px 60px -24px rgba(11, 44, 72, .35);
  --grad: var(--btn-bg);
  --grad-hero: linear-gradient(135deg, #0b2c48 0%, #123a5e 100%);
  --side: 252px;
  color-scheme: light;
}
/* Tema oscuro: por preferencia del sistema o por elección guardada. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #e8eef8; --text: #e8eef8; --text-2: #c3cfdf; --muted: #93a3b8;
  --page: #0b1220; --surface: #111a2b; --surface-2: #0f1828; --line: #1f2b40; --line-strong: #2a3953;
  --blue: #5a7dff; --blue-600: #7a96ff; --blue-50: #18264a; --blue-100: #22336a; --blue-ring: rgba(90, 125, 255, .3); --btn-bg: #3d60f5; --btn-bg-hover: #3557e8;
  --ok: #3ccf91; --ok-50: #10301f; --warn: #f0b04a; --warn-50: #33260f; --bad: #ff7b7b; --bad-50: #3a1717; --orange: #ffa366; --orange-50: #3a2414;
  --side-bg: #070d18;
  --code-bg: #070d18; --code-ink: #cfe0f7;
  --grad-hero: linear-gradient(135deg, #132544 0%, #0f1828 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5); --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --ink: #e8eef8; --text: #e8eef8; --text-2: #c3cfdf; --muted: #93a3b8;
  --page: #0b1220; --surface: #111a2b; --surface-2: #0f1828; --line: #1f2b40; --line-strong: #2a3953;
  --blue: #5a7dff; --blue-600: #7a96ff; --blue-50: #18264a; --blue-100: #22336a; --blue-ring: rgba(90, 125, 255, .3); --btn-bg: #3d60f5; --btn-bg-hover: #3557e8;
  --ok: #3ccf91; --ok-50: #10301f; --warn: #f0b04a; --warn-50: #33260f; --bad: #ff7b7b; --bad-50: #3a1717; --orange: #ffa366; --orange-50: #3a2414;
  --side-bg: #070d18;
  --code-bg: #070d18; --code-ink: #cfe0f7;
  --grad-hero: linear-gradient(135deg, #132544 0%, #0f1828 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5); --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 1rem/1.6 var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 88% -8%, var(--glow-a), transparent 62%),
    radial-gradient(700px 480px at 30% 105%, var(--glow-b), transparent 60%),
    radial-gradient(600px 420px at 105% 70%, var(--glow-c), transparent 60%),
    var(--page);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.022em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--blue-100); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, .mono { font-family: var(--mono); font-size: .875em; }
code { background: var(--blue-50); color: var(--ink); padding: .12em .45em; border-radius: 6px; word-break: break-all; }

/* ---------- Estructura ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; color: #c9d8ea;
  background: radial-gradient(420px 300px at 0% 0%, rgb(20 85 255 / .42), transparent 68%), radial-gradient(380px 300px at 110% 100%, rgb(42 212 255 / .16), transparent 65%), linear-gradient(180deg, #0b2c48, #071d31);
  border-right: 1px solid rgb(255 255 255 / .06);
}
.brand { display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 4px; text-decoration: none; }
.brand img { width: 132px; height: auto; }
.brand span { align-self: flex-start; font-weight: 800; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; padding: 3px 9px; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .14); }
.nav-label { padding: 0 12px 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7f9ab8; }
.nav ul { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: .6rem .8rem; border-radius: 12px; color: #d3e0ef; font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background-color .18s, color .18s, transform .18s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: rgb(255 255 255 / .08); color: #fff; transform: translateX(2px); }
.nav a[aria-current="page"] { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgb(20 85 255 / .9); }
.nav a[aria-current="page"] svg { opacity: 1; }
.nav .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .25); flex: none; margin-inline: 5px; }
.nav a[aria-current="page"] .dot { background: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / .22); }
.side-foot { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; display: grid; gap: 2px; }
.side-foot strong { color: #fff; }
.side-foot .muted { color: #8fa8c2; overflow: hidden; text-overflow: ellipsis; }
.side-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.linklike { background: none; border: 0; padding: 0; color: #9fc0ff; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: #fff; }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .06); color: #fff; cursor: pointer; transition: background-color .18s, transform .3s; }
.theme-toggle:hover { background: rgb(255 255 255 / .14); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; } :root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }

.main { padding: clamp(18px, 3.4vw, 40px); min-width: 0; }
.wrap { max-width: 1120px; margin-inline: auto; display: grid; gap: 22px; }
.wrap > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.wrap > *:nth-child(2) { animation-delay: .05s; } .wrap > *:nth-child(3) { animation-delay: .1s; } .wrap > *:nth-child(4) { animation-delay: .15s; } .wrap > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head p { margin-top: 6px; color: var(--muted); max-width: 70ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 600; font-size: .8125rem; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--blue-100); }

/* ---------- Cabecera de proyecto ---------- */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 3.4vw, 34px); color: #dbe8ff; background: var(--grad-hero); box-shadow: var(--shadow-lg); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -220px; background: radial-gradient(circle, rgb(42 212 255 / .55), transparent 62%); }
.hero::after { width: 520px; height: 520px; left: 28%; bottom: -420px; background: radial-gradient(circle, rgb(122 92 255 / .5), transparent 60%); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: -0.03em; }
.hero p { margin-top: 8px; max-width: 62ch; color: #cfe0ff; }
.hero .eyebrow { background: rgb(255 255 255 / .14); color: #fff; }
.hero .eyebrow::before { box-shadow: 0 0 0 4px rgb(255 255 255 / .2); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: #fff; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(6px); text-decoration: none; }
.chip:hover { color: #fff; background: rgb(255 255 255 / .2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; }
.chip.ok i { background: #5cf0b3; }
.score { display: grid; justify-items: center; gap: 6px; text-align: center; }
.score small { font-size: .75rem; color: #cfe0ff; max-width: 16ch; line-height: 1.3; }
.ring { width: 132px; height: 132px; }
.ring-bg { fill: none; stroke: rgb(255 255 255 / .16); stroke-width: 11; }
.ring-fg { fill: none; stroke-width: 11; stroke-linecap: round; stroke: #5cf0b3; animation: draw 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.ring-mid { stroke: #ffd27a; } .ring-poor { stroke: #ff9a8f; } .ring-none { stroke: transparent; }
.ring-num { fill: #fff; font: 800 34px var(--font); letter-spacing: -0.03em; }
.ring-cap { fill: #cfe0ff; font: 600 10px var(--font); letter-spacing: .12em; }
@keyframes draw { from { stroke-dasharray: 0 326.7; } }
/* El mismo anillo, pequeño y sobre fondo claro (tarjetas del inicio). */
.ring-sm { width: 64px; height: 64px; flex: none; }
.ring-sm .ring-bg { stroke: var(--line); } .ring-sm .ring-num { fill: var(--ink); font-size: 38px; }
.ring-sm .ring-fg { stroke: var(--ok); } .ring-sm .ring-mid { stroke: #e9a21a; } .ring-sm .ring-poor { stroke: var(--bad); } .ring-sm .ring-none { stroke: transparent; }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 26px); }
.card > h2 { margin-bottom: 4px; }
.card > h2 + p { color: var(--muted); margin-bottom: 18px; font-size: .9375rem; max-width: 80ch; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.project-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; }
.project-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); transform: scaleX(.18); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); color: inherit; }
.project-card:hover::before { transform: scaleX(1); }
.project-top { display: flex; gap: 14px; align-items: center; }
.project-top > div { flex: 1; min-width: 0; }
.project-card h2 { font-size: 1.25rem; }
.avatar { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.15rem; box-shadow: 0 8px 18px -8px rgb(20 85 255 / .8); }
.stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.stats b { color: var(--ink); font-size: 1.05rem; }
.new-card { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; min-height: 180px; border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.new-card:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.new-card b { font-size: 2rem; line-height: 1; font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.3rem; border-radius: 999px; border: 1px solid transparent; font: 600 .9375rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s, color .2s, background-position .3s; }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 24px -10px rgb(20 85 255 / .85); }
.btn-primary:hover { background-position: 100% 0; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgb(20 85 255 / .95); }
.btn-primary:active { transform: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--line-strong); }
.btn-danger:hover { border-color: var(--bad); background: var(--bad-50); color: var(--bad); }
.btn-light { background: #fff; color: #0b2c48; }
.btn-light:hover { background: #e9f0ff; color: #0b2c48; transform: translateY(-1px); }
.btn-sm { min-height: 36px; padding: .4rem .95rem; font-size: .875rem; }
.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-50); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-50); color: var(--warn); border-color: transparent; }
.badge-bad { background: var(--bad-50); color: var(--bad); border-color: transparent; }
.badge-blue { background: var(--blue-50); color: var(--blue); border-color: transparent; }
.sev-critical { background: var(--bad-50); color: var(--bad); border-color: transparent; }
.sev-high { background: var(--orange-50); color: var(--orange); border-color: transparent; }
.sev-medium { background: var(--warn-50); color: var(--warn); border-color: transparent; }
.sev-low { background: var(--blue-50); color: var(--blue); border-color: transparent; }
.sev-info { background: var(--surface-2); color: var(--muted); }

.alert { padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: .9375rem; border: 1px solid transparent; box-shadow: var(--shadow); }
.alert-ok { background: var(--ok-50); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-err { background: var(--bad-50); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.reveal { border: 1px solid var(--blue-100); background: linear-gradient(180deg, var(--blue-50), transparent), var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; box-shadow: var(--shadow); }

.tabs { position: sticky; top: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .46rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background-color .18s, color .18s; }
.tabs a:hover { color: var(--ink); background: var(--surface-2); }
.tabs a[aria-current="page"] { color: #fff; background: var(--grad); box-shadow: 0 6px 16px -8px rgb(20 85 255 / .9); }

form.stack, .stack { display: grid; gap: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .875rem; color: var(--ink); }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .9rem; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color .18s, box-shadow .18s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
input:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); }
.checks input { width: 18px; height: 18px; accent-color: var(--blue); }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th { text-align: left; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.empty { padding: 34px 24px; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); display: grid; gap: 6px; justify-items: center; }
.empty::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--blue); opacity: .55; box-shadow: 15px 15px 0 -17px var(--blue), 20px 20px 0 -17px var(--blue), 25px 25px 0 -17px var(--blue); margin-bottom: 8px; }

.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: .875rem; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgb(20 85 255 / .8); }
.steps p { color: var(--muted); font-size: .9375rem; }

.domain { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 14px; background: var(--surface); }
.domain-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.domain-head strong { font-size: 1.05rem; color: var(--ink); }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
details + details { margin-top: 8px; }
summary { padding: 12px 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
details > div { padding: 0 14px 14px; display: grid; gap: 10px; font-size: .9375rem; }
.copy-row { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.copy-row code { flex: 1; background: none; padding: 0; }
.result { display: flex; gap: 8px; align-items: baseline; font-size: .875rem; flex-wrap: wrap; }

/* Auditoría, recomendaciones, cambios, IA, búsqueda */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.kpi { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.kpi::after { content: ""; position: absolute; right: -22px; top: -22px; width: 64px; height: 64px; border-radius: 50%; background: var(--grad); opacity: .1; }
.kpi b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }
.kpi span { font-size: .8125rem; color: var(--muted); }
.rec { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; scroll-margin-top: 80px; position: relative; overflow: hidden; }
.rec + .rec { margin-top: 12px; }
.rec.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.rec:target { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100), var(--shadow); }
.rec-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.rec-head h3 { font-size: 1.08rem; }
.rec dl { margin: 0; display: grid; gap: 6px; font-size: .9375rem; }
.rec dt { font-weight: 600; font-size: .6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rec dd { margin: 0 0 6px; }
.urls { font-size: .875rem; display: grid; gap: 4px; word-break: break-all; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters a { padding: .38rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .875rem; text-decoration: none; transition: border-color .18s, color .18s; }
.filters a:hover { border-color: var(--blue); color: var(--blue); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
pre.code { margin: 0; padding: 16px; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; font: 400 .8125rem/1.55 var(--mono); overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; border: 1px solid rgb(255 255 255 / .06); }
textarea.code { font: 400 .8125rem/1.55 var(--mono); min-height: 320px; }
.diff { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.diff h3 { margin-bottom: 8px; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.flow span { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.flow span.on { background: var(--grad); color: #fff; border-color: transparent; }
.chart { margin: 0; }
.chart svg { width: 100%; height: 150px; background: linear-gradient(180deg, var(--blue-50), transparent); border: 1px solid var(--line); border-radius: 16px; }
.chart polyline { stroke: var(--blue); }
.up { color: var(--ok); font-weight: 600; } .down { color: var(--bad); font-weight: 600; }
.rate-good { color: var(--ok) !important; } .rate-mid { color: var(--warn) !important; } .rate-poor { color: var(--bad) !important; }

/* Utilidades (sin estilos en línea: la política de seguridad de contenido los bloquea) */
.mt { margin-top: 16px; }
.end { justify-content: flex-end; }
fieldset.plain { border: 0; padding: 0; margin: 0; }
.legend { font-weight: 600; padding: 0; margin-bottom: 8px; color: var(--ink); }

/* ---------- Acceso ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; color: #cfe0ff; background: var(--grad-hero); }
.auth-art img { width: 150px; }
.orb { position: absolute; border-radius: 50%; z-index: -1; filter: blur(4px); animation: float 14s ease-in-out infinite; }
.orb-a { width: 460px; height: 460px; right: -140px; top: -160px; background: radial-gradient(circle, rgb(42 212 255 / .6), transparent 62%); }
.orb-b { width: 560px; height: 560px; left: -200px; bottom: -280px; background: radial-gradient(circle, rgb(122 92 255 / .55), transparent 60%); animation-delay: -5s; }
.orb-c { width: 260px; height: 260px; left: 46%; top: 44%; background: radial-gradient(circle, rgb(255 255 255 / .16), transparent 65%); animation-delay: -9s; }
@keyframes float { 50% { transform: translate3d(18px, -22px, 0) scale(1.06); } }
.auth-claim h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.auth-claim h2 em { font-style: normal; background: linear-gradient(90deg, #7fe4ff, #b6a4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-claim p { margin-top: 16px; max-width: 46ch; font-size: 1.05rem; }
.trio { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.trio li { padding: 14px; border-radius: 16px; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(8px); font-size: .875rem; }
.trio b { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.auth-form { display: grid; place-items: center; padding: clamp(20px, 4vw, 48px); }
.auth-card { width: min(100%, 440px); display: grid; gap: 20px; animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.auth-card .btn { width: 100%; min-height: 50px; }
.auth-card .logo-mobile { display: none; width: 132px; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; } :root[data-theme="dark"] .logo-lightmode { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-dark { display: block; } :root:not([data-theme="light"]) .logo-lightmode { display: none; } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; }
  .brand { padding: 0; flex-direction: row; align-items: center; margin-right: auto; }
  .brand img { width: 104px; }
  .nav-label, .side-foot strong, .side-foot .muted { display: none; }
  .nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a { padding: .45rem .7rem; }
  .side-foot { margin: 0; padding: 0; border: 0; }
  .side-actions { margin: 0; }
  .tabs { position: static; border-radius: 18px; }
  .hero { border-radius: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card .logo-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================================
   v0.7 — Navegación reorganizada y densidad compacta.
   Escala de espaciado: 4 · 8 · 12 · 16 · 24. Filas de menú de 34 px. Un solo acento (degradado azul).
   ===================================================================================== */
:root { --side: 232px; --bar: 60px; }
.shell { grid-template-columns: var(--side) minmax(0, 1fr); }
.side { padding: 14px 10px; gap: 12px; }
.brand { flex-direction: row; align-items: center; gap: 10px; padding: 4px 8px 8px; }
.brand img.brand-full { width: 96px; }
.brand img.brand-mark { display: none; }
.brand span { font-size: .625rem; padding: 2px 7px; align-self: center; }

/* Desplegables: selector de proyecto y menú de usuario */
.pop { position: relative; border: 0; background: none; border-radius: 0; }
.pop + .pop { margin-top: 0; }
.pop > summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 12px; cursor: pointer; color: #fff; font-weight: 600; font-size: .9rem; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .1); transition: background-color .15s; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary:hover { background: rgb(255 255 255 / .13); }
.pop > summary > svg { width: 15px; height: 15px; margin-left: auto; opacity: .7; flex: none; transition: transform .2s; }
.pop[open] > summary > svg { transform: rotate(180deg); }
.switch-name, .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pop-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; display: grid; gap: 1px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .16s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop-panel a, .pop-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 600 .875rem/1.2 var(--font); text-decoration: none; text-align: left; cursor: pointer; }
.pop-panel a:hover, .pop-panel button:hover { background: var(--surface-2); color: var(--ink); }
.pop-panel a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
.pop-panel svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.pop-head { display: grid; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.pop-head strong { color: var(--ink); font-size: .9rem; }
.usermenu { margin-top: auto; }
.usermenu .pop-panel { top: auto; bottom: calc(100% + 6px); }
.usermenu > summary { background: none; border-color: transparent; }
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: .8125rem; box-shadow: none; }
.avatar.xs { width: 20px; height: 20px; border-radius: 6px; font-size: .6875rem; box-shadow: none; }
.avatar.ghost { background: rgb(255 255 255 / .16); }

/* Menú lateral compacto */
.nav { display: grid; gap: 2px; align-content: start; overflow-y: auto; min-height: 0; }
.nav-label { padding: 12px 10px 4px; font-size: .625rem; letter-spacing: .12em; }
.nav ul { gap: 1px; }
.nav a { gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: 9px; font-size: .875rem; }
.nav a svg { width: 16px; height: 16px; }
.nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a:hover { transform: none; }
.nav a[aria-current="page"] { box-shadow: 0 6px 16px -8px rgb(20 85 255 / .9); }
.count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; font-size: .6875rem; font-weight: 800; text-align: center; }
.count.hot { background: #ffd27a; color: #4a2e00; }

/* Cabecera compacta */
.main { padding: clamp(14px, 2.4vw, 28px); }
.wrap { gap: 16px; max-width: 1180px; }
.hero.slim { padding: 18px 22px; border-radius: 20px; gap: 16px; flex-wrap: nowrap; }
.hero.slim .hero-main { min-width: 0; flex: 1; }
.hero.slim h1 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.hero.slim p { margin-top: 4px; font-size: .9375rem; }
.hero.slim .hero-chips { margin-top: 10px; gap: 6px; }
.hero.slim .chip { padding: 3px 10px; font-size: .75rem; }
.chip.plain { background: none; border-color: rgb(255 255 255 / .22); color: #cfe0ff; }
.hero.slim .score { grid-auto-flow: row; gap: 0; text-decoration: none; flex: none; }
.hero.slim .ring { width: 74px; height: 74px; }
.hero.slim .ring-num { font-size: 38px; }
.hero.slim .score small { font-size: .625rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #cfe0ff; }
.hero.slim::before { width: 300px; height: 300px; top: -200px; }
.hero.slim::after { display: none; }

/* Contenido más denso */
.card { padding: clamp(16px, 2vw, 22px); border-radius: 18px; }
.card > h2 + p { margin-bottom: 14px; }
.grid { gap: 16px; }
.kpis { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { padding: 12px 14px; border-radius: 14px; }
.kpi b { font-size: 1.5rem; }
.kpi.link { text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.kpi.link:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.rec { padding: 16px 18px; }
td { padding: 10px 14px; } th { padding: 9px 14px; }
.subnav, .bottom { display: none; }

/* ---------- Móvil: barra superior mínima + barra inferior tipo app ---------- */
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); overflow: visible; backdrop-filter: blur(12px); }
  .brand { padding: 0; margin: 0; }
  .brand img.brand-full, .brand span { display: none; }
  .brand img.brand-mark { display: block; width: 28px; height: 28px; }
  .side .nav { display: none; }
  .switch { flex: 1; min-width: 0; }
  .switch > summary { padding: 6px 8px; }
  .usermenu { margin: 0; flex: none; }
  .usermenu > summary { padding: 4px; border: 0; }
  .usermenu .user-name, .usermenu > summary > svg { display: none; }
  .usermenu .pop-panel { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; }
  .switch .pop-panel { left: 0; right: auto; width: min(86vw, 320px); max-height: 70vh; overflow-y: auto; }

  .main { padding: 12px 12px calc(var(--bar) + 20px + env(safe-area-inset-bottom)); }
  .wrap { gap: 12px; }
  .hero.slim { padding: 14px 16px; border-radius: 16px; }
  .hero.slim h1 { font-size: 1.25rem; }
  .hero.slim p { display: none; }
  .hero.slim .ring { width: 56px; height: 56px; }
  .hero.slim .btn { min-height: 36px; padding: .4rem .9rem; font-size: .875rem; }
  .card { padding: 14px; border-radius: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 1.3rem; }
  .row { grid-template-columns: 1fr; }
  .domain { padding: 14px; }
  .diff { grid-template-columns: 1fr; }
  h2 { font-size: 1.05rem; }

  .subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .875rem; text-decoration: none; }
  .subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

  .bottom { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(var(--bar) + env(safe-area-inset-bottom)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(11 44 72 / .35); }
  .bottom a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 12px; color: var(--muted); font-size: .6875rem; font-weight: 600; text-decoration: none; }
  .bottom a svg { width: 21px; height: 21px; }
  .bottom a[aria-current="page"] { color: var(--blue); background: var(--blue-50); }
  .bottom .pip { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: #ff8a3d; border: 2px solid var(--surface); }
  .table-wrap { margin-inline: -2px; }
}

/* v0.7 · pulido */
.brand { flex-wrap: nowrap; }
.brand img.brand-full { width: 86px; flex: none; }
.brand span { white-space: nowrap; letter-spacing: .1em; }
@media (max-width: 900px) {
  /* El nombre del proyecto ya está en el selector superior: fuera del resumen, la cabecera sobra. */
  .hero.desk-only { display: none; }
  /* Los indicadores del resumen pasan a una sola fila deslizable: sin huecos ni scroll vertical extra. */
  .kpis.strip { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; scroll-snap-type: x proximity; }
  .kpis.strip::-webkit-scrollbar { display: none; }
  .kpis.strip .kpi { flex: 0 0 136px; scroll-snap-align: start; }
  /* Los textos de apoyo se quedan en dos líneas. */
  .card > h2 + p { font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
  .rec { padding: 14px; }
  .rec-head h3 { font-size: 1rem; }
  .steps li { padding: 10px 0; gap: 10px; }
  .btn { min-height: 42px; }
}

/* ---------- Cuenta común de inesIA: plan de la empresa ---------- */
.alert-warn { background: var(--warn-50); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.plan-card { padding: 18px 22px; margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-head h2 { font-size: 1.05rem; margin: 0; }
.plan-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-usage > div { display: flex; flex-direction: column; gap: 4px; }
.plan-usage b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.meter { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--blue); }
@media (max-width: 560px) { .plan-usage { grid-template-columns: 1fr; } }
.break { overflow-wrap: anywhere; }
section.card { min-width: 0; }


/* ---------- Sistema de diseño común de inesIA (F6) ----------
   Mismo lenguaje visual que la cuenta y Scraping: superficies planas, radios de 14 px, botones rectangulares,
   barra lateral azul marino lisa y sin animaciones de entrada. */
body { font-size: 15px; line-height: 1.55; background: var(--page); }
h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.015em; } h2 { font-size: 1.12rem; font-weight: 700; } h3 { font-size: .98rem; font-weight: 700; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.side :focus-visible, .bottom :focus-visible { outline-color: #9db8ff; }

.side { background: var(--side-bg); color: var(--side-text); border-right: 0; padding: 22px 14px; }
.brand span { color: #7ea2ff; background: transparent; border: 1px solid rgba(126, 162, 255, .35); font-weight: 700; letter-spacing: .12em; padding: 2px 8px; }
.nav-label { color: var(--side-muted); font-weight: 700; font-size: .7rem; letter-spacing: .12em; }
.nav a { border-radius: 10px; padding: 10px 12px; gap: 12px; color: var(--side-text); font-size: .94rem; transition: background-color .15s, color .15s; }
.nav a:hover { background: var(--side-hover); color: #fff; transform: none; text-decoration: none; }
.nav a[aria-current="page"] { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 #7ea2ff; }
.nav-svc { margin-top: auto; }
.nav-svc + .usermenu { margin-top: 0; }

.wrap > * { animation: none; }
.eyebrow { display: block; padding: 0; margin-bottom: 6px; background: none; border-radius: 0; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { display: none; }
.hero { border-radius: var(--radius); background: var(--grad-hero); box-shadow: var(--shadow); }
.hero::before, .hero::after { display: none; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2rem); letter-spacing: -.02em; }
.hero .eyebrow { background: none; color: #9db8ff; }
.chip { backdrop-filter: none; }

.card { border-radius: var(--radius); padding: 22px; }
.project-card::before { display: none; }
.project-card:hover { transform: none; border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.avatar { border-radius: 12px; background: linear-gradient(135deg, #1455ff, #7ea2ff); box-shadow: none; }
.new-card { border-radius: var(--radius); }

.btn { border-radius: 10px; min-height: 42px; padding: 10px 16px; font-weight: 700; font-size: .92rem; transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); box-shadow: 0 6px 16px -8px var(--btn-bg); }
.btn-primary:hover { background: var(--btn-bg-hover); transform: none; box-shadow: 0 6px 16px -8px var(--btn-bg); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); color: var(--text); }
.btn-light:hover { transform: none; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .84rem; border-radius: 8px; }

.badge { font-size: .76rem; font-weight: 700; color: var(--text-2); }
.alert { border-radius: 12px; box-shadow: none; font-weight: 500; font-size: .92rem; padding: 12px 14px; }

.tabs { border-radius: 12px; padding: 4px; }
.tabs a { border-radius: 8px; font-weight: 700; }
.tabs a[aria-current="page"] { background: var(--btn-bg); box-shadow: none; }
.filters a { border-radius: 8px; font-weight: 700; }
.filters a[aria-current="page"] { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }

label { color: var(--text-2); font-weight: 700; font-size: .88rem; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=datetime-local], select, textarea {
  min-height: 42px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: inherit; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--blue-ring); }

.table-wrap { border-radius: var(--radius-sm); }
table { font-size: .9rem; }
th { font-size: .74rem; letter-spacing: .06em; font-weight: 700; padding: 10px 14px; }

.kpi { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 16px 18px; }
.kpi::after { display: none; }
.empty { border: 1px dashed var(--line-strong); background: var(--surface-2); padding: 40px 22px; }
.empty::before { display: none; }
.steps .n { border-radius: 9px; background: var(--btn-bg); box-shadow: none; }
.rec { border-radius: var(--radius); }
.rec.card::before { width: 3px; background: var(--blue); }
.domain, details { border-radius: 12px; }
pre.code { border-radius: 12px; }
.hero.slim { border-radius: var(--radius); }
.subnav a { border-radius: 8px; font-weight: 700; }
.subnav a[aria-current="page"] { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px); background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
/* Restos del diseño anterior: sin halos, desenfoques, degradados ni animación del anillo */
body { background-image: none; }
.tabs, .bottom, .top, .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
.tabs { background: var(--surface); }
.reveal { background: var(--surface); border-color: var(--line); }
.chart svg { background: var(--surface-2); border-radius: 12px; }
.trio li { border-radius: 12px; backdrop-filter: none; }
.ring-fg { animation: none; }
.flow span.on { background: var(--btn-bg); }
@media (max-width: 900px) {
  .side { background: var(--side-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card { padding: 16px; }
  .bottom { background: var(--surface); }
  .bottom a[aria-current="page"] { color: var(--blue); background: var(--blue-50); }
}
.side > * { flex-shrink: 0; }  /* si no cabe, la barra se desplaza en vez de recortar secciones */
/* Pie de la barra lateral como en la cuenta: tarjeta de la persona, Tema y Salir */
.usermenu > summary { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px; }
.usermenu .user-name { display: grid; line-height: 1.25; font-weight: 700; }
.usermenu .user-name small { color: var(--side-muted); font-weight: 500; font-size: .76rem; }
.avatar.sm.ghost { border-radius: 50%; }
.side { gap: 14px; }
.nav a { padding: 8px 12px; }
.nav ul + .nav-label, .nav-label { margin-top: 6px; }
.usermenu .user-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.side-foot-actions { display: flex; gap: 6px; margin-top: -6px; position: sticky; bottom: -22px; padding-bottom: 22px; background: var(--side-bg); }
.side-foot-actions > * { flex: 1; }
.side-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid rgba(255, 255, 255, .12);
  color: var(--side-text); border-radius: 10px; padding: 8px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.side-btn:hover { background: var(--side-hover); color: #fff; }
.side-btn svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .side-foot-actions, .nav-svc { display: none; }
  .usermenu .user-name { display: none; }  /* en móvil solo la inicial: el selector de proyecto necesita el ancho */
  .usermenu > summary { background: none; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
