/* Recortar PDF. Shared PDF and converter CSS stay; this file only restyles this page. */
.rpdf-page { --rpdf-blue: #2563eb; --rpdf-ink: #172033; }

.rpdf-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 0 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fb7185, #e11d48);
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.22);
}
.rpdf-mark svg { width: 36px; height: 36px; display: block; }

.article .rpdf-page .conv-title {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 2.4vw, 2.45rem);
  line-height: 1.02;
}
.article .rpdf-page .conv-lede { color: #5b6b8a; }

.rpdf-perk {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #fff center / 18px no-repeat;
}
.rpdf-perk.is-fast {
  background-color: #fef3c7;
  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='%23d97706' d='M13 2 4 13.5h6.2L9.2 22l9-11.5h-6.1z'/%3E%3C/svg%3E");
}
.rpdf-perk.is-quality {
  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='M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath fill='%23fecdd3' d='M14 2v4.5A1.5 1.5 0 0 0 15.5 8H20z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' d='M9 12h2.2V9.8M15 9.8V12H12.8M9 16h2.2v-2.2M15 13.8V16h-2.2'/%3E%3C/svg%3E");
}
.rpdf-page .conv-perk.is-device {
  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' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Crect x='8' y='2' width='8' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.article .rpdf-art {
  display: block;
  width: calc(100% + 8px);
  max-width: 280px;
  height: auto;
  margin: 18px 0 0 -8px;
}

.rpdf-page .cpdf-app { display: flex; flex-direction: column; gap: 12px; }
.rpdf-page .cpdf-app.pvc-app > .cpdf-toolbar { display: flex !important; }
.rpdf-page .conv-board { width: 100%; grid-template-columns: minmax(0, 1fr) 320px; }
.rpdf-page .conv-stack { grid-template-columns: minmax(0, 1fr); }
.rpdf-page .conv-stack,
.rpdf-page .conv-card,
.rpdf-page .rpdf-config-grid,
.rpdf-page .rpdf-preview { min-width: 0; max-width: 100%; }
.rpdf-page .cpdf-side { margin-top: 0; gap: 12px; }

.rpdf-page .conv-steps { display: flex; align-items: center; gap: 0; padding: 14px 18px; }
.article .rpdf-page .conv-steps li { flex: 1 1 0; margin: 0; }
.article .rpdf-page .conv-steps li::before { content: none; }
.rpdf-page .conv-steps li > span:first-child {
  width: 34px; height: 34px; border: 2px solid #bfdbfe; background: #fff; color: var(--rpdf-blue); font-size: 0.95rem;
}
.rpdf-page .conv-steps li.is-on > span:first-child,
.rpdf-page .conv-steps li.is-done > span:first-child { border-color: var(--rpdf-blue); background: var(--rpdf-blue); color: #fff; }
.rpdf-page .conv-steps strong { color: var(--rpdf-blue); font-size: 0.92rem; white-space: nowrap; }
.rpdf-page .conv-steps small { color: #64748b; }
.rpdf-page .conv-steps li:not(:last-child)::after { content: "→"; margin-left: auto; padding: 0 10px; color: #94a3b8; font-size: 1.05rem; }

.rpdf-page .conv-card { padding: 16px 16px 18px; border-radius: 18px; }
.rpdf-page .cpdf-drop {
  min-height: 220px; padding: 28px 18px 18px; border: 1.5px dashed #93c5fd; border-radius: 16px; background: #f3f8ff;
}
.rpdf-page .conv-cloud { width: 72px; height: 72px; background-size: 46px; }
.rpdf-page .cpdf-drop-title { font-size: 1.2rem; }
.rpdf-page .cpdf-drop-hint { color: var(--rpdf-blue); font-weight: 750; }
.rpdf-page .cpdf-drop-actions { margin-top: 8px; }
.rpdf-page .cpdf-app .cpdf-drop-cta {
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--rpdf-blue); color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}
.rpdf-page .cpdf-app #rpdf-btn-sample {
  min-height: 46px; padding: 0 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: var(--rpdf-ink);
}
.rpdf-page .cpdf-btn-icon { width: 18px; height: 18px; fill: currentColor; }
.rpdf-page .cpdf-btn-icon.is-stroke,
.rpdf-page .cpdf-btn-icon.is-stroke path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article .rpdf-meta { margin: 12px 0 0; color: #64748b; font-size: 0.82rem; text-align: center; }

.article .rpdf-page h2.rpdf-block-title,
.rpdf-block-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--rpdf-ink);
  font-size: 1.05rem; font-weight: 800; text-align: left;
}
.rpdf-block-title > span {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--rpdf-blue); color: #fff;
}
.rpdf-block-title > span svg { width: 16px; height: 16px; display: block; }
.rpdf-label { margin: 0 0 8px; color: var(--rpdf-ink); font-size: 0.92rem; font-weight: 800; }
.rpdf-label-models { margin-top: 16px; }

.rpdf-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
}

.rpdf-mm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "t . b"
    "l link r";
  gap: 10px 8px;
  align-items: end;
}
.rpdf-field { display: grid; gap: 6px; min-width: 0; }
.rpdf-field span { color: #64748b; font-size: 0.78rem; font-weight: 700; }
.rpdf-field-t { grid-area: t; }
.rpdf-field-b { grid-area: b; }
.rpdf-field-l { grid-area: l; }
.rpdf-field-r { grid-area: r; }
.rpdf-page .rpdf-field input {
  width: 100%; min-height: 44px; margin: 0; padding: 0 10px;
  border: 1.5px solid #dbe7ff; border-radius: 12px; background: #fff;
  color: #1d4ed8; font-weight: 750; text-align: left;
}
.rpdf-link {
  grid-area: link; align-self: center; display: grid; place-items: center;
  width: 34px; height: 34px; margin-top: 18px; padding: 0;
  border: 1.5px solid #dbe7ff; border-radius: 50%; background: #fff; color: #94a3b8; cursor: pointer;
}
.rpdf-link svg { width: 16px; height: 16px; display: block; }
.rpdf-link.is-on { border-color: #93c5fd; background: #eff6ff; color: var(--rpdf-blue); }

.rpdf-models { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rpdf-model {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 92px; padding: 10px; border: 1.5px solid #e6edf5; border-radius: 14px; background: #fff;
  color: var(--rpdf-ink); text-align: left; cursor: pointer;
}
.rpdf-model:hover { border-color: #bfdbfe; }
.rpdf-model.is-active { border-color: #60a5fa; background: #f5f9ff; box-shadow: 0 0 0 1px #60a5fa inset; }
.rpdf-model strong, .rpdf-model small { display: block; }
.rpdf-model strong { font-size: 0.82rem; font-weight: 800; line-height: 1.2; }
.rpdf-model.is-active strong { color: #1d4ed8; }
.rpdf-model small { margin-top: 2px; color: #64748b; font-size: 0.7rem; font-weight: 600; line-height: 1.25; }
.rpdf-model-ico { width: 32px; height: 32px; color: #94a3b8; }
.rpdf-model-ico rect, .rpdf-model-ico path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rpdf-model.is-active .rpdf-model-ico { color: #2563eb; }
.rpdf-model:disabled { opacity: 0.55; cursor: not-allowed; }

.rpdf-apply {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  color: #334155; font-size: 0.84rem; font-weight: 650;
}
.rpdf-apply input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #2563eb; }

.rpdf-page .rpdf-preview.ppdf-workspace { margin: 0; }
.rpdf-preview-title { margin: 0 0 8px; color: var(--rpdf-blue); font-size: 0.92rem; font-weight: 800; text-align: center; }
.rpdf-empty { margin: 28px 0; color: #64748b; font-size: 0.86rem; text-align: center; }
.rpdf-preview.is-ready .rpdf-empty { display: none; }
.rpdf-preview:not(.is-ready) .ppdf-preview-wrap,
.rpdf-preview:not(.is-ready) .rpdf-pager { display: none; }

.rpdf-page .ppdf-preview-wrap {
  display: block; overflow: hidden; padding: 12px; border: 1px solid #e6edf5; border-radius: 14px; background: #f8fafc;
}
.rpdf-page .ppdf-page-stage { display: block; width: 100%; margin: 0 auto; line-height: 0; }
.rpdf-page .ppdf-page-canvas { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }
.rpdf-page .ppdf-crop-box {
  border: 2px dashed #3b82f6;
  box-shadow: none;
  background: rgba(59, 130, 246, 0.05);
}
.rpdf-page .ppdf-handle {
  width: 12px; height: 12px; border: 2px solid #3b82f6; border-radius: 50%; background: #fff;
}
.rpdf-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.rpdf-pager span { min-width: 3.2rem; color: #334155; font-size: 0.86rem; font-weight: 800; text-align: center; }
.rpdf-page .rpdf-pager .cpdf-btn {
  width: 36px; min-height: 36px; padding: 0; border: 1px solid #e6edf5; border-radius: 10px; background: #fff;
  color: var(--rpdf-ink); font-size: 1.2rem; line-height: 1;
}
.rpdf-page .rpdf-pager .cpdf-btn:disabled { opacity: 0.45; }

.rpdf-page .cpdf-card.rpdf-summary {
  padding: 16px; border: 1px solid var(--cv-line, #e3e9f1); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(30, 50, 90, 0.04);
}
.rpdf-page .cpdf-card-label,
.article .rpdf-tips h2 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--rpdf-ink);
  font-size: 1rem; font-weight: 800; letter-spacing: 0; text-transform: none; text-align: left;
}
.rpdf-card-ico { width: 28px; height: 28px; flex: none; border-radius: 8px; background: #e8f0fe center / 16px no-repeat; }
.rpdf-card-ico.is-file { 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 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath fill='%23fff' d='M9 12h6v1.4H9zm0 3h4v1.4H9z'/%3E%3C/svg%3E"); }
.rpdf-card-ico.is-bulb { background-color: transparent; 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.7V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.3A7 7 0 0 0 12 2z'/%3E%3Cpath fill='%23d97706' d='M9 19h6v1.2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.rpdf-page .cpdf-stat { align-items: center; padding: 8px 4px; border-bottom: 1px solid #eef2f7; font-size: 0.84rem; }
.rpdf-page .cpdf-stat:last-child { border-bottom: 0; }
.rpdf-page .cpdf-stat-label { color: #64748b; font-weight: 650; }
.rpdf-page .cpdf-stat-value { overflow-wrap: anywhere; text-align: right; color: var(--rpdf-ink); font-weight: 750; }
.rpdf-page .cpdf-status:empty { display: none; }
.rpdf-page .cpdf-status { margin-top: 8px; }
.rpdf-page .rpdf-tips { background: #fff8e8; border-color: #f6e3b0; }
.article .rpdf-tips ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.article .rpdf-tips li { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #3d4658; font-size: 0.84rem; line-height: 1.35; }
.article .rpdf-tips li::before {
  content: ""; width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 0; 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='%2322a55a'/%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 / 18px no-repeat;
}

.rpdf-actions { display: grid; gap: 8px; }
.rpdf-page .cpdf-app #rpdf-btn-crop,
.rpdf-page .cpdf-app #rpdf-btn-crop:hover,
.rpdf-page .cpdf-app #rpdf-btn-crop:disabled {
  width: 100%; min-height: 52px; border: 0 !important; border-radius: 12px; background: #f5b400 !important;
  color: #1f2937 !important; font-size: 1rem; font-weight: 800; box-shadow: none !important; opacity: 1;
}
.rpdf-page .cpdf-app #rpdf-btn-crop:disabled { opacity: 0.72; cursor: not-allowed; }
.rpdf-page .cpdf-app #rpdf-btn-crop .cpdf-btn-icon,
.rpdf-page .cpdf-app #rpdf-btn-crop .cpdf-btn-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.rpdf-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rpdf-page .cpdf-app .rpdf-action-row .cpdf-btn {
  min-height: 44px; border: 1px solid #e6edf5; border-radius: 12px; background: #fff; color: var(--rpdf-ink); font-weight: 750;
}
.rpdf-page #rpdf-btn-download { width: 100%; min-height: 44px; }
.rpdf-page #rpdf-btn-download:disabled { display: none; }

body.page-recortar-pdf-online .article .rpdf-page .pdf-related {
  margin: 0; padding: 14px; border: 1px solid #e4def8; border-radius: 16px; background: #f6f3ff; box-shadow: none;
}
body.page-recortar-pdf-online .article .rpdf-page h2.pdf-related-title { display: none !important; }
body.page-recortar-pdf-online .article .rpdf-page .pdf-related-head { margin-bottom: 10px; padding: 0; }
body.page-recortar-pdf-online .article .rpdf-page .pdf-related-sub {
  display: flex; align-items: center; gap: 8px; color: #5b21b6; font-size: 0.98rem; font-weight: 800;
}
body.page-recortar-pdf-online .article .rpdf-page .pdf-related-sub::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237c3aed' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
body.page-recortar-pdf-online .article .rpdf-page .pdf-related-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
body.page-recortar-pdf-online .article .rpdf-page a.pdf-related-card { gap: 8px; padding: 8px; border-color: #ece7f8; background: #fff; }
body.page-recortar-pdf-online .article .rpdf-page .pdf-related-name { font-size: 0.78rem; }
body.page-recortar-pdf-online .article .rpdf-page .pdf-related-hint { font-size: 0.68rem; }
body.page-recortar-pdf-online .article .rpdf-page .pdf-related-icon { width: 32px; height: 32px; }
.rpdf-page .cpdf-success, .rpdf-page .cpdf-progress-wrap { border-radius: 16px; }

@media (max-width: 1100px) {
  .rpdf-page .conv-board { grid-template-columns: 1fr; }
  .rpdf-config-grid { grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); }
}
@media (max-width: 980px) { .article .rpdf-art { display: none; } }
@media (max-width: 860px) {
  .rpdf-config-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rpdf-page .conv-steps { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .rpdf-page .conv-steps li:not(:last-child)::after { content: none; }
  .rpdf-page .conv-steps strong { white-space: normal; }
  body.page-recortar-pdf-online .article .rpdf-page .pdf-related-grid { grid-template-columns: 1fr !important; }
}

html[data-theme="dark"] .rpdf-page { --rpdf-ink: #f8fafc; }
html[data-theme="dark"] .article .rpdf-page .conv-lede,
html[data-theme="dark"] .rpdf-model small,
html[data-theme="dark"] .rpdf-field span,
html[data-theme="dark"] .rpdf-page .cpdf-stat-label,
html[data-theme="dark"] .rpdf-empty { color: #94a3b8; }
html[data-theme="dark"] .rpdf-model,
html[data-theme="dark"] .rpdf-link,
html[data-theme="dark"] .rpdf-page .rpdf-field input,
html[data-theme="dark"] .rpdf-page .cpdf-card.rpdf-summary,
html[data-theme="dark"] .rpdf-page .cpdf-app .rpdf-action-row .cpdf-btn,
html[data-theme="dark"] .rpdf-page .cpdf-app #rpdf-btn-sample,
html[data-theme="dark"] .rpdf-page .rpdf-pager .cpdf-btn { background: #1e293b; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .rpdf-model.is-active,
html[data-theme="dark"] .rpdf-link.is-on { background: #172554; color: #93c5fd; }
html[data-theme="dark"] .rpdf-page .cpdf-drop,
html[data-theme="dark"] .rpdf-page .ppdf-preview-wrap { background: #0f1b33; }
html[data-theme="dark"] .rpdf-page .rpdf-tips { background: #3b2f12; border-color: #854d0e; }
html[data-theme="dark"] .article .rpdf-tips li,
html[data-theme="dark"] .rpdf-apply { color: #e2e8f0; }
html[data-theme="dark"] body.page-recortar-pdf-online .article .rpdf-page .pdf-related { background: #221c33; border-color: #3b3358; }
html[data-theme="dark"] .rpdf-page .cpdf-stat { border-bottom-color: #334155; }
