/* Comparar PDF page. Shared PDF CSS stays; this file only restyles this page. */
.pdfcmp-page {
  --pdfcmp-ink: #172033;
  --pdfcmp-body: #3d4658;
  --pdfcmp-muted: #64748b;
  --pdfcmp-line: #e3e9f1;
  --pdfcmp-blue: #2563eb;
  --pdfcmp-blue-dark: #1d4ed8;
  --pdfcmp-aside-w: 220px;
  --pdfcmp-side-w: 268px;
  display: grid;
  grid-template-columns: var(--pdfcmp-aside-w) minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
  margin: 4px 0 28px;
}

.pdfcmp-aside { display: flex; flex-direction: column; min-width: 0; padding-top: 6px; }

.pdfcmp-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 2.6vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--pdfcmp-ink);
  text-align: left;
}

.article .pdfcmp-lede {
  margin: 0 0 18px;
  color: #3b4d9a;
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: left;
}

.article .pdfcmp-perks,
.article .pdfcmp-tip-list,
.article .pdfcmp-sumlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article .pdfcmp-perks { display: grid; gap: 14px; }

.article .pdfcmp-perks li,
.article .pdfcmp-tip-list li,
.article .pdfcmp-sumlist li { margin: 0; padding: 0; }

.article .pdfcmp-perks li::before,
.article .pdfcmp-sumlist li::before { content: none; }

.article .pdfcmp-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pdfcmp-body);
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: left;
}

.pdfcmp-perks strong { display: block; color: var(--pdfcmp-ink); font-size: 0.9rem; }

.pdfcmp-perk {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #fff center / 20px no-repeat;
}

.pdfcmp-perk.is-online {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M12 2 5 5v6.2c0 4.4 2.9 8.2 7 9.3 4.1-1.1 7-4.9 7-9.3V5z'/%3E%3Cpath d='m8.2 12.1 2.4 2.4 5-5.2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pdfcmp-perk.is-fast {
  background-color: #ffe4e6;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e11d48' d='M13.5 2 4.5 13.5h6.2L9.8 22l9-11.5h-6.2z'/%3E%3C/svg%3E");
}

.pdfcmp-perk.is-diff {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M14 2H6.5A2.5 2.5 0 0 0 4 4.5v15A2.5 2.5 0 0 0 6.5 22h11a2.5 2.5 0 0 0 2.5-2.5V8z'/%3E%3Cpath fill='%23fff' d='M8 12h8v1.6H8zm0 3.4h6V17H8z'/%3E%3C/svg%3E");
}

.pdfcmp-perk.is-files {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
}

.article img.pdfcmp-art {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 16px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

body.page-comparar-pdf-online .cpdf-app {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-comparar-pdf-online .cpdf-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pdfcmp-side-w);
  gap: 14px;
  align-items: start;
}

body.page-comparar-pdf-online .cpdf-main {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}

.pdfcmp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  border: 1px solid var(--pdfcmp-line);
  border-radius: 16px;
  background: #fff;
}

.article .pdfcmp-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

.article .pdfcmp-steps li::before { content: none; }

.pdfcmp-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: #e8eef6;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.pdfcmp-steps li.is-current .pdfcmp-num { background: var(--pdfcmp-blue); color: #fff; }

.pdfcmp-steps li.is-done .pdfcmp-num {
  background: var(--pdfcmp-blue) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.2 3.6 3.6L18 8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  color: transparent;
}

.pdfcmp-steps strong,
.pdfcmp-steps small { display: block; }

.pdfcmp-steps strong {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.pdfcmp-steps small {
  color: var(--pdfcmp-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.pdfcmp-steps li.is-current strong,
.pdfcmp-steps li.is-done strong { color: var(--pdfcmp-ink); }

.pdfcmp-drops {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot {
  justify-content: flex-start;
  gap: 6px;
  min-height: 268px;
  margin: 0;
  padding: 18px 14px 12px;
  border: 1.5px dashed #93c5fd;
  border-radius: 16px;
  background: #f5f9ff;
  box-shadow: none;
  text-align: center;
}

body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot.is-b {
  border-color: #86efac;
  background: #f3fbf6;
}

body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot:hover,
body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot.is-dragover {
  border-color: var(--pdfcmp-blue);
  background: #eaf2ff;
  box-shadow: none;
}

body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot.is-b:hover,
body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot.is-b.is-dragover {
  border-color: #16a34a;
  background: #e8f8ee;
}

.pdfcmp-doc {
  width: 52px;
  height: 52px;
  margin: 2px auto 2px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 3h7l4 4v14H7z'/%3E%3Cpath fill='%23fff' d='M14 3v4h4'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

body.page-comparar-pdf-online .pdfcmp-slot .cpdf-drop-title {
  color: var(--pdfcmp-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

body.page-comparar-pdf-online .pdfcmp-slot .cpdf-drop-hint {
  max-width: none;
  color: var(--pdfcmp-muted);
}

.article .pdfcmp-limit {
  margin: 0;
  color: var(--pdfcmp-muted);
  font-size: 0.78rem;
}

.pdfcmp-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 8px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.pdfcmp-chip[hidden] { display: none !important; }

.pdfcmp-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 40px;
  border-radius: 7px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.58rem;
  font-weight: 800;
}

.pdfcmp-chip-body { min-width: 0; }
.pdfcmp-chip-body strong,
.pdfcmp-chip-body small { display: block; }
.pdfcmp-chip-body strong {
  overflow: hidden;
  color: var(--pdfcmp-ink);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdfcmp-chip-body small { color: var(--pdfcmp-muted); font-size: 0.7rem; }

.pdfcmp-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.pdfcmp-x:hover { background: #f1f5f9; color: #0f172a; }

.pdfcmp-swap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--pdfcmp-muted);
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
}

.pdfcmp-swap-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--pdfcmp-line);
  border-radius: 50%;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.pdfcmp-swap-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdfcmp-swap-btn:hover { border-color: #93c5fd; color: var(--pdfcmp-blue); }

.pdfcmp-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.pdfcmp-actions #cmp-sample { justify-self: start; }
.pdfcmp-actions #cmp-run { justify-self: center; min-width: 220px; min-height: 48px; padding: 0 22px; font-size: 1rem; font-weight: 800; }
.pdfcmp-actions #cmp-clear { justify-self: end; }

.pdfcmp-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page-comparar-pdf-online .cpdf-app .cpdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
}

body.page-comparar-pdf-online .cpdf-app #cmp-pick-a,
body.page-comparar-pdf-online .cpdf-app #cmp-run {
  border-color: var(--pdfcmp-blue-dark);
  background: linear-gradient(180deg, #2f6ff0, #1d5ad6);
}

body.page-comparar-pdf-online .cpdf-app #cmp-pick-b,
body.page-comparar-pdf-online .cpdf-app #cmp-pick-b:hover {
  border-color: #178a48;
  background: linear-gradient(180deg, #22a35a, #178a48);
  color: #fff !important;
}

body.page-comparar-pdf-online .cpdf-app #cmp-run:disabled {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
  opacity: 0.72;
}

#cmp-board[hidden],
#cmp-pager[hidden] { display: none !important; }

.pdfcmp-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pdfcmp-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pdfcmp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pdfcmp-ink);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.pdfcmp-tabs button.is-on {
  border-color: var(--pdfcmp-blue);
  background: var(--pdfcmp-blue);
  color: #fff;
}

.pdfcmp-tabs .pdfcmp-report {
  margin-left: auto;
  color: var(--pdfcmp-blue);
}

.pdfcmp-tabs .pdfcmp-ico { width: 15px; height: 15px; }

#cmp-result .pdfcmp-sheet {
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--pdfcmp-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

#cmp-result .pdfcmp-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}

#cmp-result .pdfcmp-sheet h3 {
  margin: 0;
  color: var(--pdfcmp-ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.pdfcmp-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pdfcmp-muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.pdfcmp-note.is-same { color: #15803d; }
.pdfcmp-note.is-same::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2316a34a'/%3E%3Cpath d='m7 12.2 3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pdfcmp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.pdfcmp-col {
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--pdfcmp-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdfcmp-cell {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef2f7;
}

.pdfcmp-cell p {
  margin: 0;
  color: var(--pdfcmp-ink);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.pdfcmp-cell.is-muted {
  background: #f3f5f8;
  border-color: transparent;
}

.pdfcmp-cell.is-muted p { color: #94a3b8; }

.cmp-del,
.cmp-ins {
  border-radius: 4px;
  padding: 0 3px;
  text-decoration: none;
}

.cmp-del { background: #fecdd3; color: #9f1239; }
.cmp-ins { background: #bbf7d0; color: #166534; }

.pdfcmp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.pdfcmp-pager span {
  min-width: 7rem;
  color: var(--pdfcmp-ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.article .pdfcmp-sumlist { display: grid; gap: 8px; padding: 4px 0 0; }

.article .pdfcmp-sumlist li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--pdfcmp-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.pdfcmp-sumlist strong { color: var(--pdfcmp-ink); font-size: 0.88rem; }
.pdfcmp-sumlist span { color: var(--pdfcmp-body); font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; }

body.page-comparar-pdf-online .cpdf-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
}

body.page-comparar-pdf-online .cpdf-card {
  padding: 14px;
  border: 1px solid var(--pdfcmp-line);
  border-radius: 16px;
  background: #fff;
}

body.page-comparar-pdf-online .cpdf-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--pdfcmp-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.pdfcmp-card-ico {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #e8f0fe center / 16px no-repeat;
}

.pdfcmp-card-ico.is-chart {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 19V9M12 19V5M19 19v-7'/%3E%3C/svg%3E");
}

.pdfcmp-card-ico.is-bulb {
  background-color: #fff4d6;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b400' d='M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3Cpath fill='%23f5b400' d='M9 19h6v1.4a2 2 0 0 1-2 1.6h-2a2 2 0 0 1-2-1.6z'/%3E%3C/svg%3E");
}

.pdfcmp-card-ico.is-screen {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E");
}

.pdfcmp-stats { display: grid; }

.pdfcmp-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #eef2f7;
  color: var(--pdfcmp-body);
  font-size: 0.84rem;
  text-align: left;
}

.pdfcmp-stat:first-child { border-top: 0; padding-top: 2px; }
.pdfcmp-stat strong { color: var(--pdfcmp-ink); font-size: 0.95rem; font-weight: 800; }
.pdfcmp-stat strong.is-hot { color: #e11d48; }

.pdfcmp-pill {
  display: inline-flex;
  align-items: center;
  max-width: 168px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569 !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  line-height: 1.25;
  text-align: right;
}

.pdfcmp-pill.is-ok { background: #dcfce7; color: #15803d !important; }
.pdfcmp-pill.is-ready,
.pdfcmp-pill.is-loading { background: #dbeafe; color: #1d4ed8 !important; }
.pdfcmp-pill.is-error { background: #fee2e2; color: #b91c1c !important; }

body.page-comparar-pdf-online .cpdf-card.pdfcmp-tips { background: #fff8e8; border-color: #f6e3b0; }
body.page-comparar-pdf-online .cpdf-card.pdfcmp-where { background: #f3f7ff; border-color: #dbe7fb; }

.article .pdfcmp-tip-list { display: grid; gap: 8px; counter-reset: pdfcmp-tip; }

.article .pdfcmp-tip-list li {
  position: relative;
  padding: 1px 0 1px 28px;
  color: var(--pdfcmp-body);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
  counter-increment: pdfcmp-tip;
}

.article .pdfcmp-tip-list li::before {
  content: counter(pdfcmp-tip);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f5b400;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.pdfcmp-where-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.article .pdfcmp-where p { margin: 0; color: var(--pdfcmp-body); font-size: 0.82rem; line-height: 1.35; text-align: left; }
.pdfcmp-devices { display: flex; gap: 8px; flex: none; }

.pdfcmp-devices span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  background: #fff;
}

.pdfcmp-devices svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #1e293b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1360px) {
  .pdfcmp-page {
    --pdfcmp-stage-w: min(1560px, calc(100vw - 96px));
    --pdfcmp-aside-w: clamp(220px, 16vw, 280px);
    --pdfcmp-side-w: clamp(268px, 18vw, 320px);
    width: var(--pdfcmp-stage-w);
    margin-left: calc((100% - var(--pdfcmp-stage-w)) / 2);
  }
}

@media (max-width: 1100px) {
  .pdfcmp-steps strong { font-size: 0.72rem; }
  .pdfcmp-steps small { display: none; }
}

@media (max-width: 980px) {
  .pdfcmp-page { grid-template-columns: minmax(0, 1fr); }
  .article .pdfcmp-perks,
  .article img.pdfcmp-art { display: none; }
  body.page-comparar-pdf-online .cpdf-shell { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .pdfcmp-steps { grid-template-columns: 1fr 1fr; }
  .pdfcmp-drops { grid-template-columns: minmax(0, 1fr); }
  .pdfcmp-swap { flex-direction: row; justify-content: center; padding: 2px 0; }
  .pdfcmp-actions { display: flex; flex-wrap: wrap; }
  .pdfcmp-actions #cmp-run { order: -1; flex: 1 0 100%; min-width: 0; }
  .pdfcmp-actions #cmp-sample,
  .pdfcmp-actions #cmp-clear { flex: 1; }
  .pdfcmp-tabs .pdfcmp-report { margin-left: 0; }
  .pdfcmp-pair { grid-template-columns: minmax(0, 1fr); }
  .pdfcmp-where-body { display: grid; }
  .pdfcmp-title { font-size: 1.85rem; }
}
html[data-theme="dark"] .pdfcmp-page {
  --pdfcmp-ink: #f1f5f9;
  --pdfcmp-body: #cbd5e1;
  --pdfcmp-muted: #94a3b8;
  --pdfcmp-line: #334155;
}

html[data-theme="dark"] .article .pdfcmp-lede { color: #a5b4fc; }

html[data-theme="dark"] .pdfcmp-steps,
html[data-theme="dark"] body.page-comparar-pdf-online .cpdf-card,
html[data-theme="dark"] .pdfcmp-chip,
html[data-theme="dark"] .pdfcmp-swap-btn,
html[data-theme="dark"] .pdfcmp-tabs button,
html[data-theme="dark"] #cmp-result .pdfcmp-sheet,
html[data-theme="dark"] .article .pdfcmp-sumlist li,
html[data-theme="dark"] .pdfcmp-cell {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot {
  background: #0f1b33;
  border-color: #3b5b9a;
}

html[data-theme="dark"] body.page-comparar-pdf-online .cpdf-drop.pdfcmp-slot.is-b {
  background: #102418;
  border-color: #166534;
}

html[data-theme="dark"] .pdfcmp-doc,
html[data-theme="dark"] .pdfcmp-devices span { background-color: #0f172a; }

html[data-theme="dark"] .pdfcmp-cell.is-muted { background: #0f172a; }
html[data-theme="dark"] .cmp-del { background: #7f1d1d; color: #fee2e2; }
html[data-theme="dark"] .cmp-ins { background: #14532d; color: #dcfce7; }
html[data-theme="dark"] .pdfcmp-stat { border-top-color: #334155; }
html[data-theme="dark"] #cmp-result .pdfcmp-sheet header { border-bottom-color: #334155; }
html[data-theme="dark"] body.page-comparar-pdf-online .cpdf-card.pdfcmp-tips { background: #2a2416; border-color: #4a3d1c; }
html[data-theme="dark"] body.page-comparar-pdf-online .cpdf-card.pdfcmp-where { background: #172036; border-color: #334155; }
html[data-theme="dark"] .pdfcmp-devices svg { stroke: #e2e8f0; }
html[data-theme="dark"] .pdfcmp-pill { background: #334155; color: #e2e8f0 !important; }
html[data-theme="dark"] .pdfcmp-pill.is-ok { background: rgba(22, 163, 74, 0.2); color: #86efac !important; }
html[data-theme="dark"] .pdfcmp-pill.is-error { background: rgba(220, 38, 38, 0.2); color: #fca5a5 !important; }
html[data-theme="dark"] .pdfcmp-tabs button.is-on { background: var(--pdfcmp-blue); color: #fff; }
html[data-theme="dark"] body.page-comparar-pdf-online .cpdf-app .cpdf-btn:not(.cpdf-btn-primary) {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.pdfcmp-visual { margin-top: 12px; }
.pdfcmp-visual-note { margin: 0 0 8px; color: var(--pdfcmp-muted, #64748b); font-size: 0.92rem; }
.pdfcmp-visual-mark { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.92rem; }
.pdfcmp-visual-stage { position: relative; width: min(100%, 920px); background: #fff; border: 1px solid var(--pdfcmp-line); border-radius: 12px; overflow: hidden; }
.pdfcmp-visual-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdfcmp-visual-slider { width: min(100%, 920px); margin-top: 8px; }
