/* Utiliec Comparar — estilos (paleta Utiliec: menta pastel, verde oscuro, sin fondos pesados) */
:root {
  --mint: #DDF2E8;
  --mint-2: #C6E9D8;
  --ink: #0D3A2D;
  --ink-2: #1F5A47;
  --accent: #1F7A5A;
  --accent-h: #17684C;
  --bg: #FFFFFF;
  --soft: #F4F9F6;
  --line: #E2E8F0;
  --text: #1E293B;
  --muted: #64748B;
  --del-bg: #FDECEC;
  --del: #B42318;
  --ins-bg: #DCFAE6;
  --ins: #067647;
  --warn-bg: #FEF3C7;
  --warn: #92400E;
  --info-bg: #E0F2FE;
  --info: #075985;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 58, 45, .05), 0 6px 24px rgba(13, 58, 45, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* cabecera */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 30; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.brand small { font-weight: 600; color: var(--accent); }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 10px; }
.top nav a:hover { background: var(--soft); }

/* hero */
.hero { padding: 22px 0 8px; }
.hero h1 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.2; margin: 0 0 6px; color: var(--ink); letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--muted); max-width: 760px; }

/* tarjeta de la herramienta */
.tool-card { margin: 16px 0 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--soft); display: flex; flex-direction: column; min-width: 0; }
.side-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.side-h h2 { font-size: .98rem; margin: 0; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.tag { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: .8rem; font-weight: 800; }
.tag-a { background: var(--del-bg); color: var(--del); }
.tag-b { background: var(--ins-bg); color: var(--ins); }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.linkbtn:hover { background: var(--mint); }
.drop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 150px; border: 2px dashed #B7DCCB; border-radius: 12px; background: #fff; padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #FAFDFB; }
.drop strong { color: var(--ink); }
.drop span { color: var(--muted); font-size: .86rem; }
.drop svg { width: 34px; height: 34px; color: var(--accent); }
.drop input { display: none; }
.file-chip { display: none; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 150px; }
.file-chip .fi { width: 40px; height: 48px; border-radius: 8px; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .72rem; flex: none; }
.file-chip .meta { min-width: 0; flex: 1; }
.file-chip .name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.file-chip .info { color: var(--muted); font-size: .86rem; }
.file-chip .info.err { color: var(--del); }
.side textarea { display: none; width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; font-size: .9rem; background: #fff; }
.side[data-view="file"] .drop { display: none; }
.side[data-view="file"] .file-chip { display: flex; }
.side[data-view="text"] .drop { display: none; }
.side[data-view="text"] textarea { display: block; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 0; font-size: .92rem; }
.opts label { display: inline-flex; align-items: center; gap: 7px; color: var(--text); cursor: pointer; }
.opts select { font: inherit; font-size: .9rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.opts input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; font-size: 1rem; }
.btn-primary:hover { background: var(--accent-h); }
.btn-primary:disabled { background: #A7C4B8; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-dl { background: var(--mint); color: var(--ink); border: 1px solid var(--mint-2); padding: 10px 14px; font-size: .92rem; }
.btn-dl:hover { background: var(--mint-2); }
.btn-dl:disabled { opacity: .6; cursor: wait; }
.btn svg { width: 18px; height: 18px; }
.privacy { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.privacy b { color: var(--ink); }
.msg { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.msg.show { display: block; }
.msg.err { background: var(--del-bg); color: var(--del); }
.msg.info { background: var(--info-bg); color: var(--info); }
.nojs { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 10px; margin-top: 12px; }

/* resultados */
#results { display: none; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
#results.show { display: block; }
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.res-head h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--ink); }
.res-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.downloads .small { font-size: .82rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; width: 100%; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 12px; font: inherit; font-size: .88rem; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; color: var(--text); }
.chip b { font-size: .95rem; }
.chip[aria-pressed="false"] { opacity: .45; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.st-reformado .dot, .dot.st-reformado { background: #D97706; }
.st-agregado .dot, .dot.st-agregado { background: var(--ins); }
.st-eliminado .dot, .dot.st-eliminado { background: var(--del); }
.st-renumerado .dot, .dot.st-renumerado { background: #6366F1; }
.st-igual .dot, .dot.st-igual { background: #94A3B8; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"] { flex: 1; min-width: 180px; font: inherit; font-size: .92rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; font: inherit; font-size: .88rem; padding: 8px 12px; cursor: pointer; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--mint); color: var(--ink); font-weight: 700; }
.legend { font-size: .84rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.res-body { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.index { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--soft); }
.index h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 4px 6px 6px; }
.index a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .86rem; line-height: 1.3; }
.index a:hover { background: #fff; }
.index a .dot { flex: none; }
.index .empty { font-size: .86rem; color: var(--muted); padding: 6px 8px; }
.items { min-width: 0; }
.item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; scroll-margin-top: 72px; overflow: hidden; }
.item-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); cursor: default; }
.item-h .lbl { font-weight: 800; color: var(--ink); }
.item-h .ttl { color: var(--muted); font-size: .88rem; flex: 1; min-width: 150px; }
.badge { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.badge.st-reformado { background: #FEF3C7; color: #92400E; }
.badge.st-agregado { background: var(--ins-bg); color: var(--ins); }
.badge.st-eliminado { background: var(--del-bg); color: var(--del); }
.badge.st-renumerado { background: #E0E7FF; color: #3730A3; }
.badge.st-igual { background: #F1F5F9; color: #475569; }
.nums { font-size: .82rem; color: var(--ink-2); background: var(--mint); padding: 3px 9px; border-radius: 8px; }
.item-b { padding: 12px 14px; font-size: .95rem; overflow-wrap: anywhere; }
.item.collapsed .item-b { display: none; }
.item.st-igual .item-h { cursor: pointer; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols > div { min-width: 0; }
.cols h4 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
del { background: var(--del-bg); color: var(--del); text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 3px; padding: 0 1px; }
ins { background: var(--ins-bg); color: var(--ins); text-decoration: underline; text-decoration-color: rgba(6, 118, 71, .35); border-radius: 3px; padding: 0 1px; }
.item.st-agregado ins, .item.st-eliminado del { background: none; padding: 0; }
.item.st-agregado .item-b { background: #F6FEF9; }
.item.st-eliminado .item-b { background: #FFFAFA; }
.more { text-align: center; margin: 8px 0 0; }
.none { padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

/* anuncios (espacios reservados) */
.ad-slot { margin: 18px auto; min-height: 100px; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: #A0AEC0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: #FCFDFD; }

/* contenido SEO */
.content { padding: 10px 0 30px; }
.content h2 { color: var(--ink); font-size: 1.35rem; margin: 30px 0 10px; }
.content h3 { color: var(--ink); font-size: 1.05rem; margin: 18px 0 6px; }
.content p, .content li { color: #334155; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 12px 0; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--soft); }
.step .n { width: 30px; height: 30px; border-radius: 9px; background: var(--mint); color: var(--ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 8px; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; font-size: .92rem; }
.limits { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.limits li { margin: 4px 0; font-size: .94rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin: 8px 0 0; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-link { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text); background: #fff; }
.tool-link:hover { border-color: var(--accent); }
.tool-link strong { color: var(--ink); display: block; }
.tool-link span { font-size: .88rem; color: var(--muted); }

/* pie */
footer { border-top: 1px solid var(--line); background: var(--soft); padding: 22px 0; font-size: .88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer .linkbtn { color: var(--ink-2); font-weight: 400; font-size: .88rem; padding: 0; }

/* aviso de cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(13, 58, 45, .18); padding: 14px 16px; z-index: 60; font-size: .9rem; display: none; }
.consent.show { display: block; }
.consent p { margin: 0 0 10px; }
.consent .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { padding: 9px 14px; font-size: .9rem; }

/* páginas legales */
.legal { max-width: 820px; padding: 24px 16px 40px; }
.legal h1 { color: var(--ink); }
.legal h2 { color: var(--ink); font-size: 1.15rem; margin-top: 24px; }

@media (max-width: 900px) {
  .res-body { grid-template-columns: 1fr; }
  .index { position: static; max-height: 240px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .inputs { grid-template-columns: 1fr; }
  .drop, .file-chip, .side textarea { min-height: 96px; }
  .drop svg { width: 26px; height: 26px; }
  .tool-card { padding: 12px; }
  .steps, .tools-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .downloads { width: 100%; }
  .downloads .small { justify-content: flex-start; }
  .top nav a.hide-sm { display: none; }
  .hero { padding-top: 14px; }
  .hero p { font-size: .92rem; }
}

/* ajustes de celular: sin desborde horizontal y herramienta visible sin desplazar */
.opts select { max-width: 100%; }
@media (max-width: 680px) {
  .opts { gap: 8px 14px; margin-top: 10px; font-size: .88rem; }
  .opts label:first-child { width: 100%; display: flex; }
  .opts label:first-child select { flex: 1; min-width: 0; }
  .hero h1 { font-size: 1.3rem; }
  .hero p { font-size: .88rem; line-height: 1.45; }
  .inputs { gap: 10px; }
  .side { padding: 10px; }
  .side-h { margin-bottom: 6px; }
  .drop, .file-chip, .side textarea { min-height: 84px; padding: 10px; }
  .drop svg { display: none; }
  .actions { margin-top: 10px; }
  .btn-primary { width: 100%; }
}
.brand, .top nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: .98rem; gap: 8px; }
  .top nav a { padding: 8px; font-size: .86rem; }
}

/* =============================================================
   Familia Utiliec (oct 2026): base común, color granate.
   Elemento propio: las marcas de revisión de un corrector.
   ============================================================= */
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --mint: #f6e7eb; --mint-2: #ecd0d8;
  --ink: #1f2328; --ink-2: #3f3438;
  --accent: #9f1239; --accent-h: #881337;
  --bg: #eef1f4; --soft: #f6f7f9; --line: #d5dae1; --text: #1f2328; --muted: #59606b;
  --radius: 10px; --shadow: none;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
body { font-size: 17px; }
.top { position: static; }
.brand { font-weight: 700; }
.brand .logo { background: var(--accent); color: #fff; border-radius: 8px; }
.top nav a { border-radius: 0; border-bottom: 2px solid transparent; }
.top nav a:hover { background: none; border-bottom-color: var(--line); }
.hero { padding: 26px 0 10px; }
.hero h1 { font-size: clamp(1.6rem, 3vw + .6rem, 2.4rem); max-width: 26ch; }
.tool-card { box-shadow: none; border-radius: 10px; }
.side { border-radius: 8px; background: #fff; }
.tag { border-radius: 50%; }
.drop { border-radius: 8px; border-color: #d9b8c2; }
.drop:hover, .drop.over { background: var(--mint); }
.file-chip, .side textarea, .opts select, .toolbar input[type="search"] { border-radius: 6px; }
.btn { border-radius: 6px; }
.btn-primary:disabled { background: #c9b6bc; }
.btn-dl { background: #fff; border-color: var(--line); }
.btn-dl:hover { background: var(--mint); border-color: var(--accent); }
.seg { border-radius: 6px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip { border-radius: 6px; }
.index { border-radius: 8px; background: #fff; }
.index h3, .cols h4 { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.item { border-radius: 8px; }
.item-h .lbl { font-weight: 700; }
.badge { text-transform: none; letter-spacing: 0; border-radius: 4px; font-size: .8rem; }
.nums { font-family: var(--mono); background: var(--mint); border-radius: 4px; }

/* Marcas de revisión: lo eliminado tachado en rojo, lo nuevo subrayado en verde */
del { background: none; color: #b42318; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #b42318; padding: 0; }
ins { background: #e9f8ef; color: #05603a; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: #05603a; padding: 0 1px; border-radius: 0; }
.item-b { font-size: 1rem; line-height: 1.65; }
.item.st-reformado { border-left: 3px solid #d97706; }
.item.st-agregado { border-left: 3px solid #067647; }
.item.st-eliminado { border-left: 3px solid #b42318; }

.ad-slot { text-transform: none; letter-spacing: 0; border-radius: 6px; color: var(--muted); }
.step { border-radius: 8px; background: #fff; }
.step .n { border-radius: 50%; background: none; border: 1.5px solid var(--accent); color: var(--accent); }
.limits { border-radius: 8px; background: #fff; }
.faq details { border-radius: 8px; }
.tool-link { border-radius: 8px; }
.tool-link strong { color: var(--accent); }
footer { background: #fff; }
.consent { border-radius: 8px; }
