/* chat.utilthings.com — estilos comunes de la suite (basados en Compare Excel). */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f7fb; --sheet: #ffffff; --sheet-2: #eceef6;
  --ink: #17191c; --ink-2: #565b63; --ink-3: #6b7078;
  --line: #e2e3ea; --line-2: #cacdd8;
  --accent: #3a45c9; --accent-ink: #ffffff; --accent-soft: #e4e7fb; --accent-hover: #2b34a3;
  --add: #1f7a4d; --add-bg: #dcf1e4; --add-row: #effaf3;
  --del: #b3261e; --del-bg: #fbe1df; --del-row: #fdf2f1;
  --mod: #8a5a00; --mod-bg: #fdefc2; --mod-row: #fffaea;
  --danger: #b3261e; --danger-soft: #fdecea; --warn-soft: #fff5d6;
  --shadow: 0 1px 2px rgba(23,25,28,.05), 0 6px 20px -12px rgba(23,25,28,.22);
  --radius: 12px; --radius-sm: 8px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1118; --sheet: #171a24; --sheet-2: #1f2331;
    --ink: #ebeeea; --ink-2: #a5aca6; --ink-3: #8c938d;
    --line: #2a2d3a; --line-2: #3a3e4f;
    --accent: #aab3ff; --accent-ink: #0b0f3a; --accent-soft: #1d2147; --accent-hover: #c6ccff;
    --add: #6fd39b; --add-bg: #173a26; --add-row: #13241a;
    --del: #ff8a80; --del-bg: #4a1f1c; --del-row: #2a1816;
    --mod: #f3c55a; --mod-bg: #4a3a10; --mod-row: #272110;
    --danger: #ff8a80; --danger-soft: #3a1c1a; --warn-soft: #33290f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1118; --sheet: #171a24; --sheet-2: #1f2331;
  --ink: #ebeeea; --ink-2: #a5aca6; --ink-3: #8c938d;
  --line: #2a2d3a; --line-2: #3a3e4f;
  --accent: #aab3ff; --accent-ink: #0b0f3a; --accent-soft: #1d2147; --accent-hover: #c6ccff;
  --add: #6fd39b; --add-bg: #173a26; --add-row: #13241a;
  --del: #ff8a80; --del-bg: #4a1f1c; --del-row: #2a1816;
  --mod: #f3c55a; --mod-bg: #4a3a10; --mod-row: #272110;
  --danger: #ff8a80; --danger-soft: #3a1c1a; --warn-soft: #33290f;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3, p, ol, ul { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
b, strong { font-weight: 600; }
small { font-size: 13px; color: var(--ink-2); }
.muted { color: var(--ink-3); font-weight: 400; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Cabecera ---------- */
.top { display: flex; align-items: center; gap: 16px; padding: 0 24px; height: 54px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { color: var(--accent); }
.top__privacy { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13px; }
.top__privacy svg { color: var(--accent); flex: none; }

.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); }
.lang a { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; letter-spacing: .02em; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; max-width: 22ch; }
.lede { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; max-width: 62ch; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.perks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.perks svg { color: var(--accent); flex: none; }

/* ---------- Archivos ---------- */
.files { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file { min-width: 0; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 196px; padding: 28px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--sheet); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop__tag, .file__tag { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); text-transform: uppercase; }
.drop__icon { color: var(--accent); margin: 6px 0 2px; }
.drop__title { font-weight: 600; font-size: 16px; }
.drop__hint { font-size: 13px; color: var(--ink-2); }
.file__info { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); padding: 16px; display: grid; gap: 12px; min-height: 196px; align-content: start; box-shadow: var(--shadow); }
.file__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file__icon { color: var(--accent); flex: none; }
.file__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__status { font-size: 13.5px; color: var(--ink-2); min-height: 22px; margin-top: 8px; }
.file__status.is-error, .error { color: var(--danger); }
.sample { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }

/* ---------- Campos ---------- */
.field { display: grid; gap: 5px; min-width: 0; }
.field > label { font-weight: 500; font-size: 14px; }
.field--inline { grid-template-columns: auto 120px; align-items: center; column-gap: 12px; }
.field--inline small { grid-column: 1 / -1; }
select, input[type="number"], input[type="search"] { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--sheet); }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; text-overflow: ellipsis; }
select:focus, input:focus { border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; line-height: 1.4; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check--compact { align-items: center; white-space: nowrap; }
.check--compact input { margin: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--sheet); font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn--sm { height: 32px; padding: 0 10px; font-size: 13.5px; }
.btn--lg { height: 46px; padding: 0 26px; font-size: 16px; }

/* ---------- Configuración ---------- */
.setup { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); display: grid; gap: 16px; }
.setup__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.opts summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-2); width: fit-content; }
.opts__body { display: grid; gap: 10px; padding-top: 12px; }
.setup__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.setup__status { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Resultados ---------- */
.results { margin-top: 28px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); font-size: 14px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sheet); text-align: left; min-width: 0; position: relative; }
.stat::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--dot, var(--ink-3)); }
.stat__n { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat__l { font-size: 13px; color: var(--ink-2); }
.stat:hover { border-color: var(--line-2); }
.stat.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stat--added { --dot: var(--add); } .stat--removed { --dot: var(--del); } .stat--modified { --dot: var(--mod); } .stat--changes { --dot: var(--accent); } .stat--same { --dot: var(--line-2); } .stat--all { --dot: var(--ink-3); }
.cols-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.toolbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 18px; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search svg { position: absolute; left: 11px; top: 12px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 34px; }
.toolbar__dl { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.dl-status { font-size: 13.5px; color: var(--ink-2); min-height: 20px; margin-top: 8px; }

.table-wrap { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); overflow: auto; max-height: 70vh; }
.diff { border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 100%; }
.diff th, .diff td { padding: 7px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.diff th { position: sticky; top: 0; background: var(--sheet-2); font-weight: 600; z-index: 2; font-size: 13px; }
.diff th.is-changed { box-shadow: inset 0 -3px 0 var(--mod); }
.diff th.is-only { color: var(--ink-3); font-style: italic; }
.diff td.c-status, .diff th.c-status { position: sticky; left: 0; z-index: 1; background: inherit; }
.diff th.c-status { z-index: 3; background: var(--sheet-2); }
.diff td.c-row { color: var(--ink-3); font-size: 12.5px; }
.diff tbody tr { background: var(--sheet); }
.diff tr.r-added { background: var(--add-row); }
.diff tr.r-removed { background: var(--del-row); }
.diff tr.r-removed td:not(.c-status):not(.c-row) { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--del) 60%, transparent); }
.diff td.is-mod { background: var(--mod-bg); }
.diff td.is-mod del { color: var(--ink-2); text-decoration-color: var(--del); margin-right: 6px; }
.diff td.is-mod ins { text-decoration: none; font-weight: 600; }
.diff td.is-empty { color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.b-added { color: var(--add); --dot: var(--add); }
.b-removed { color: var(--del); --dot: var(--del); }
.b-modified { color: var(--mod); --dot: var(--mod); }
.b-same { color: var(--ink-3); --dot: var(--line-2); }
.diff .empty-row td { text-align: center; color: var(--ink-2); padding: 32px 12px; white-space: normal; }
.more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Contenido ---------- */
.content { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 18px; }
.content h2 { font-size: 21px; letter-spacing: -.01em; font-weight: 600; margin-top: 18px; }
.content p, .content li { color: var(--ink-2); max-width: 70ch; }
.content p + p { margin-top: 10px; }
.content__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.content__grid h2 { margin: 0 0 12px; }
.steps { padding-left: 20px; display: grid; gap: 8px; }
.steps b { color: var(--ink); }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin-top: 8px; }
.limits { padding-left: 20px; display: grid; gap: 6px; }
.limits b { color: var(--ink); }
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.uses li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sheet); display: grid; gap: 4px; max-width: none; }
.uses b { color: var(--ink); font-size: 15px; }
.uses span { font-size: 14px; }
code { font-family: var(--mono); font-size: 13px; padding: 1px 5px; border-radius: 4px; background: var(--sheet-2); color: var(--ink); overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 26px; font-size: 14px; color: var(--ink-2); margin-top: 40px; }

/* ---------- Suite: navegación ---------- */
.top__all { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.top__all:hover { color: var(--ink); background: var(--sheet-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.hero--home h1 { max-width: 24ch; font-size: clamp(28px, 4.6vw, 42px); }

/* ---------- Suite: menú de categorías ---------- */
.top { position: relative; z-index: 40; }
.menu { display: flex; align-items: center; margin-left: 8px; min-width: 0; }
.menu__toggle { display: none; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet); font-size: 14px; font-weight: 500; }
.menu__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu__item { position: relative; }
.menu__cat { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.menu__cat > svg:first-child { color: var(--accent); flex: none; }
.menu__chev { opacity: .6; transition: transform .15s; }
.menu__cat:hover, .menu__cat[aria-expanded="true"] { background: var(--sheet-2); color: var(--ink); }
.menu__item.is-current > .menu__cat { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menu__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; width: 340px; display: none; gap: 2px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; }
.menu__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.menu__item:nth-last-child(-n+2) .menu__sub { left: auto; right: 0; }
.menu__sub a { display: grid; gap: 1px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.menu__sub a b { font-size: 14px; }
.menu__sub a span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.menu__sub a:hover, .menu__sub a:focus-visible { background: var(--accent-soft); }
.menu__sub a[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.top > .lang { margin-left: auto; }
@media (hover: hover) and (min-width: 1281px) {
  .menu__item:hover > .menu__sub { display: grid; }
  .menu__item:hover > .menu__cat .menu__chev { transform: rotate(180deg); }
}
@media (min-width: 1281px) {
  .menu__cat > svg:first-child { display: none; }
  .menu__cat[aria-expanded="true"] + .menu__sub { display: grid; }
  .menu__cat[aria-expanded="true"] .menu__chev { transform: rotate(180deg); }
}
@media (max-width: 1280px) {
  .menu { margin-left: auto; }
  .top > .lang { margin-left: 0; }
  .menu__toggle { display: inline-flex; }
  .menu__list { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 54px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu.is-open .menu__list { display: flex; }
  .menu__item { border-bottom: 1px solid var(--line); }
  .menu__item:last-child { border-bottom: 0; }
  .menu__cat { width: 100%; height: 46px; border-radius: 0; padding: 0 4px; font-size: 15px; }
  .menu__cat:hover, .menu__cat[aria-expanded="true"] { background: none; }
  .menu__item.is-current > .menu__cat { box-shadow: none; color: var(--accent); }
  .menu__chev { margin-left: auto; }
  .menu__cat[aria-expanded="true"] .menu__chev { transform: rotate(180deg); }
  .menu__sub { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 10px; background: none; }
  .menu__sub::before { display: none; }
  .menu__cat[aria-expanded="true"] + .menu__sub { display: grid; }
}
@media (max-width: 640px) { .menu__toggle span { display: none; } .menu__toggle { padding: 0 10px; } }

/* ---------- Suite: tarjetas de herramientas ---------- */
.tools { display: grid; gap: 28px; padding-top: 8px; }
.tools__search { position: relative; max-width: 420px; }
.tools__search svg { position: absolute; left: 12px; top: 13px; color: var(--ink-3); pointer-events: none; }
.tools__search input { padding-left: 36px; height: 42px; }
.tools__none { color: var(--ink-2); }
.group h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.group__icon { color: var(--accent); display: inline-flex; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card a { height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.card__icon { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.card b { font-size: 15px; }
.card a > span:last-child { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.related { padding-top: 8px; padding-bottom: 8px; display: grid; gap: 14px; }
.related h2 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.content--faq { padding-top: 8px; }
.privacy-note { font-size: 13.5px; color: var(--ink-2); max-width: 80ch; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); margin-top: 16px; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 28px; margin-bottom: 22px; }
.foot__cols h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; }
.foot__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.foot__cols a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.foot__cols a:hover { color: var(--accent); text-decoration: underline; }
.foot__note { max-width: 90ch; }

/* ---------- Suite: componentes de herramienta ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.drop--single { min-height: 170px; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); display: grid; gap: 16px; }
.panel__title { font-size: 16px; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.filelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.filelist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sheet); min-width: 0; }
.filelist .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.filelist small { white-space: nowrap; }
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--sheet); }
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sheet-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: 6px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg input:checked + span { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.grid { border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 100%; }
.grid th, .grid td { padding: 7px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.grid th { position: sticky; top: 0; background: var(--sheet-2); font-weight: 600; font-size: 13px; z-index: 1; }
.grid td.num { text-align: right; }
.grid tr.is-bad td { background: var(--del-row); }
.grid tr.is-good td { background: var(--add-row); }
.grid td.is-bad { background: var(--del-bg); }
.grid td.is-warn { background: var(--mod-bg); }
.grid td.is-good { background: var(--add-bg); }
.grid .rownum { color: var(--ink-3); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sheet-2); color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: var(--add-bg); color: var(--add); }
.pill--bad { background: var(--del-bg); color: var(--del); }
.pill--warn { background: var(--mod-bg); color: var(--mod); }
.status { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; min-height: 22px; }
.status.is-error { color: var(--danger); }
.status.is-ok { color: var(--add); }
.progress { height: 6px; border-radius: 999px; background: var(--sheet-2); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.callout { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 14px; }
.callout--warn { background: var(--warn-soft); }
.callout--bad { background: var(--danger-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content__grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top__all { display: none; }
  .cards { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .panel { padding: 16px; }
  .top { padding: 0 16px; }
  .top__privacy span { display: none; }
  .top { gap: 10px; }
  .perks li { font-size: 13px; padding: 5px 10px 5px 8px; }
  .hero { padding-top: 26px; }
  .files { grid-template-columns: 1fr; gap: 12px; }
  .drop, .file__info { min-height: 0; }
  .drop { padding: 22px 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar__dl { margin-left: 0; width: 100%; }
  .toolbar__dl .btn--primary { flex: 1 1 100%; }
  .toolbar__dl .btn:not(.btn--primary) { flex: 1; }
  .search { max-width: none; }
  .field--inline { grid-template-columns: 1fr; }
  .table-wrap { max-height: 65vh; }
  .diff th, .diff td { max-width: 200px; padding: 6px 10px; }
}

/* Fotos: filas de archivo y hojas de datos */
.ph-list { display: grid; gap: 10px; margin-top: 14px; list-style: none; padding: 0; }
.ph-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); box-shadow: var(--shadow); }
.ph-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--sheet-2); display: block; }
.ph-name { font-weight: 600; overflow-wrap: anywhere; margin: 0; }
.ph-meta { font-size: 13px; color: var(--ink-2); margin: 2px 0 6px; }
.ph-pills { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ph-row details { grid-column: 1 / -1; font-size: 14px; }
.ph-row summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.ph-row .table-wrap { margin-top: 8px; max-height: 380px; overflow: auto; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ph-keep { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ph-map { margin: 8px 0 2px; font-size: 14px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ph-ok { color: var(--add); font-weight: 600; font-size: 14px; }
.ph-bad { color: var(--danger); font-weight: 600; font-size: 14px; }
@media (max-width: 520px) { .ph-row { grid-template-columns: 44px minmax(0, 1fr); } .ph-thumb { width: 44px; height: 44px; } .ph-row > .btn, .ph-row > a.btn { grid-column: 1 / -1; } }
#ph-panel { min-width: 0; }
#ph-panel .table-wrap td { white-space: nowrap; }

/* ---------- Suite chat ---------- */
:root { --cp-wall: #ece7df; --cp-in: #ffffff; --cp-out: #d5f3cf; --cp-out-ink: #10210f; --cp-meta: #5d6470; --cp-l: 36%; --cp-mark: #ffe27a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cp-wall: #0c0e14; --cp-in: #1f2331; --cp-out: #1d4a3b; --cp-out-ink: #e9f7ee; --cp-meta: #a3a9b6; --cp-l: 74%; --cp-mark: #7a6200; } }
:root[data-theme="dark"] { --cp-wall: #0c0e14; --cp-in: #1f2331; --cp-out: #1d4a3b; --cp-out-ink: #e9f7ee; --cp-meta: #a3a9b6; --cp-l: 74%; --cp-mark: #7a6200; }

.hero--chat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: center; }
.hero__chat { width: 300px; padding: 14px; border-radius: 22px; background: var(--cp-wall); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 6px; transform: rotate(1.5deg); font-size: 13.5px; }
.hero__chat span { max-width: 84%; padding: 7px 11px; border-radius: 12px; background: var(--cp-in); color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.08); line-height: 1.35; }
.hero__chat span:nth-child(even) { justify-self: end; background: var(--cp-out); color: var(--cp-out-ink); }
@media (max-width: 820px) { .hero--chat { grid-template-columns: minmax(0, 1fr); } .hero__chat { display: none; } }

.cp-how { font-size: 13.5px; color: var(--ink-2); max-width: 78ch; margin-top: 8px; }
.cp-head { display: flex; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
.cp-head > div { flex: 1 1 260px; min-width: 0; }
.cp-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cp-head p { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.cp-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; align-items: end; }
.cp-controls input[type="date"] { height: 40px; min-height: 0; padding: 0 12px; }
.cp-controls .field--wide { grid-column: span 2; }
.cp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cp-actions .seg { margin-right: auto; }
.cp-optgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; align-items: end; }
.cp-count { font-size: 13.5px; color: var(--ink-2); }
.cp-chat { height: min(70vh, 720px); min-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cp-wall); padding: 14px clamp(10px, 3vw, 28px) 18px; overscroll-behavior: contain; }
.cp-chat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-more { display: flex; margin: 6px auto 10px; }
.cp-none { text-align: center; color: var(--ink-2); padding: 40px 12px; }
.cp-day, .cp-sys { display: flex; justify-content: center; margin: 12px 0 8px; }
.cp-day span, .cp-sys span { padding: 3px 11px; border-radius: 999px; background: var(--sheet); color: var(--cp-meta); font-size: 12.5px; box-shadow: 0 1px 1px rgba(0,0,0,.08); text-align: center; max-width: 86%; overflow-wrap: anywhere; }
.cp-day span { font-weight: 600; }
.cp-sys { margin: 6px 0; }
.cp-sys span { border-radius: 10px; font-size: 12px; }
.cp-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.cp-msg--first { margin-top: 9px; }
.cp-msg--out { justify-content: flex-end; }
.cp-bubble { max-width: min(78%, 620px); padding: 6px 10px 5px; border-radius: 12px; background: var(--cp-in); color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.1); font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; min-width: 0; }
.cp-msg--out .cp-bubble { background: var(--cp-out); color: var(--cp-out-ink); }
.cp-msg--first.cp-msg--in .cp-bubble { border-top-left-radius: 3px; }
.cp-msg--first.cp-msg--out .cp-bubble { border-top-right-radius: 3px; }
.cp-name { display: block; font-size: 13px; font-weight: 600; color: hsl(var(--h, 212) 62% var(--cp-l)); margin-bottom: 1px; }
.cp-text { white-space: pre-wrap; }
.cp-text a { color: inherit; text-decoration: underline; }
.cp-text code { font-size: 12.5px; background: rgba(127,127,127,.18); color: inherit; }
.cp-dim { font-style: italic; opacity: .72; }
.cp-time { float: right; margin: 5px 0 0 12px; font-size: 11px; color: var(--cp-meta); white-space: nowrap; }
.cp-msg--out .cp-time { color: inherit; opacity: .68; }
.cp-img { display: block; max-width: 100%; width: auto; max-height: 340px; min-height: 40px; border-radius: 8px; margin: 2px 0 4px; background: rgba(127,127,127,.15); }
.cp-video { display: block; width: min(100%, 360px); max-height: 340px; border-radius: 8px; margin: 2px 0 4px; background: #000; }
.cp-audio { display: block; width: min(100%, 300px); height: 40px; margin: 2px 0 4px; }
.cp-file { display: inline-flex; align-items: flex-start; gap: 7px; padding: 6px 9px; border-radius: 8px; background: rgba(127,127,127,.14); font-size: 13px; color: inherit; text-decoration: none; margin: 2px 0 3px; overflow-wrap: anywhere; }
.cp-file svg { flex: none; margin-top: 1px; }
.cp-file i { opacity: .75; }
.cp-file--link { text-decoration: underline; }
.cp-ctx { border: 0; background: none; padding: 2px 0; color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: underline; white-space: nowrap; align-self: center; }
.cp-msg--out .cp-ctx { order: -1; }
.cp-chat mark, .cp-stats mark { background: var(--cp-mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.cp-flash .cp-bubble { animation: cp-flash 1.6s ease-out; }
@keyframes cp-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 1px 1px rgba(0,0,0,.1); } }

.cp-stats { display: grid; gap: 14px; }
.cp-stats h3 { font-size: 15.5px; font-weight: 600; margin-top: 8px; }
.cp-tiles .stat::before { background: var(--accent); }
.cp-statline { color: var(--ink-2); font-size: 14px; }
.cp-who th[scope="row"] { min-width: 180px; white-space: normal; font-weight: 500; }
.cp-who th, .cp-who td { position: static; }
.cp-who thead th { position: sticky; }
.cp-meter { display: block; height: 5px; border-radius: 999px; background: var(--sheet-2); margin-top: 4px; overflow: hidden; }
.cp-meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.cp-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 28px; }
.cp-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; }
.cp-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.cp-bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); }
.cp-bar span { font-size: 11px; color: var(--ink-3); white-space: nowrap; line-height: 1; height: 11px; }
.cp-bars--24 .cp-bar:nth-child(odd) span { visibility: hidden; }
.cp-scroll { overflow-x: auto; padding-bottom: 4px; }
.cp-bars--months { min-width: 100%; width: max-content; }
.cp-bars--months .cp-bar { flex: 1 0 34px; }
.cp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: 13.5px; }
.cp-chips b { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cp-chips--emoji span { font-size: 19px; line-height: 1.2; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-2); overflow-x: auto; white-space: pre; max-width: 100%; }
.content table.plain { border-collapse: collapse; font-size: 14px; max-width: 100%; }
.content table.plain th, .content table.plain td { text-align: left; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.content table.plain th { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .cp-controls .field--wide { grid-column: auto; }
  .cp-actions .seg { margin-right: 0; width: 100%; }
  .cp-actions .btn { flex: 1 1 auto; }
  .cp-bubble { max-width: 88%; }
  .cp-chat { height: 66vh; }
}

/* Documento para imprimir: colores fijos y claros, también con el tema oscuro. */
#cp-print-root { display: none; }
@media print {
  html.cp-printing, html.cp-printing body { background: #fff !important; }
  html.cp-printing body { display: block; min-height: 0; }
  html.cp-printing body > *:not(#cp-print-root) { display: none !important; }
  html.cp-printing #cp-print-root { display: block; }
}
.cp-print { color: #111; font-family: var(--font); font-size: 10.5pt; line-height: 1.38; --cp-in: #f1f2f5; --cp-out: #d9f2d3; --cp-out-ink: #111; --cp-meta: #555; --cp-l: 30%; --sheet: #fff; --ink: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cp-print .cp-day span { background: #fff; border: 1px solid #c9c9c9; color: #333; box-shadow: none; }
.cp-print .cp-sys span { background: #fff; border: 1px dashed #c9c9c9; color: #555; box-shadow: none; }
.cp-print .cp-day { break-after: avoid; margin: 12pt 0 6pt; }
.cp-print .cp-msg { break-inside: avoid; }
.cp-print .cp-bubble { max-width: 76%; box-shadow: none; border: 1px solid #dcdde2; font-size: 10.5pt; }
.cp-print .cp-msg--out .cp-bubble { border-color: #bfdfb8; }
.cp-print .cp-time { font-size: 8pt; }
.cp-print .cp-img { max-height: 70mm; max-width: 80mm; break-inside: avoid; }
.cp-print .cp-file { background: #fff; border: 1px solid #c9c9c9; }
.cp-print .cp-text a { color: #111; }
.cp-print--compact .cp-line { display: grid; grid-template-columns: 19mm minmax(0, 1fr); gap: 0 3mm; padding: 1.4pt 0; break-inside: avoid; overflow-wrap: anywhere; }
.cp-print--compact .cp-lt { color: #555; font-size: 9pt; font-variant-numeric: tabular-nums; padding-top: .6pt; }
.cp-print--compact .cp-line--sys { color: #555; font-style: italic; }
.cp-print--compact .cp-img { margin: 3pt 0; max-height: 55mm; }
.cp-cover { break-after: page; padding-top: 30mm; }
.cp-cover__k { font-size: 11pt; letter-spacing: .08em; text-transform: uppercase; color: #555; }
.cp-cover h1 { font-size: 26pt; line-height: 1.15; margin: 4pt 0 14mm; font-weight: 600; overflow-wrap: anywhere; }
.cp-cover table { border-collapse: collapse; width: 100%; font-size: 10.5pt; }
.cp-cover th, .cp-cover td { text-align: left; vertical-align: top; padding: 6pt 0; border-top: 1px solid #d5d5d5; }
.cp-cover th { width: 52mm; font-weight: 600; padding-right: 6mm; }
.cp-cover td { overflow-wrap: anywhere; }
.cp-cover code { font-size: 9pt; background: none; padding: 0; color: #111; }
.cp-cover__note { margin-top: 12mm; font-size: 9pt; color: #555; }
