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

.gpdf-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);
}

.gpdf-mark svg { width: 36px; height: 36px; display: block; }

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

.article .gpdf-page .conv-lede { color: #5b6b8a; }

.gpdf-perk {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #fff center / 18px no-repeat;
}

.gpdf-perk.is-turn {
  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");
}

.gpdf-perk.is-big {
  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='%23fff' d='M9 11h6v1.5H9zm0 3h4.2V15.5H9z'/%3E%3Cpath fill='%23fecdd3' d='M14 2v4.5A1.5 1.5 0 0 0 15.5 8H20z'/%3E%3C/svg%3E");
}

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

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

.gpdf-page .conv-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 18px;
}

.article .gpdf-page .conv-steps li { flex: 1 1 0; margin: 0; }
.article .gpdf-page .conv-steps li::before { content: none; }

.gpdf-page .conv-steps li > span:first-child {
  width: 34px;
  height: 34px;
  border: 2px solid #bfdbfe;
  background: #fff;
  color: var(--gpdf-blue);
  font-size: 0.95rem;
}

.gpdf-page .conv-steps li.is-on > span:first-child,
.gpdf-page .conv-steps li.is-done > span:first-child {
  border-color: var(--gpdf-blue);
  background: var(--gpdf-blue);
  color: #fff;
}

.gpdf-page .conv-steps strong { color: var(--gpdf-blue); font-size: 0.92rem; white-space: nowrap; }
.gpdf-page .conv-steps small { color: #64748b; }

.gpdf-page .conv-steps li:not(:last-child)::after {
  content: "→";
  margin-left: auto;
  padding: 0 10px;
  color: #94a3b8;
  font-size: 1.05rem;
}

.gpdf-page .conv-card { padding: 16px 16px 18px; border-radius: 18px; }

.gpdf-page .cpdf-drop {
  min-height: 240px;
  padding: 28px 18px 18px;
  border: 1.5px dashed #93c5fd;
  border-radius: 16px;
  background: #f3f8ff;
}

.gpdf-page .conv-cloud { width: 72px; height: 72px; background-size: 46px; }

.gpdf-page .cpdf-drop-title { font-size: 1.2rem; }
.gpdf-page .cpdf-drop-hint { color: var(--gpdf-blue); font-weight: 750; }

.gpdf-page .cpdf-drop-actions { margin-top: 8px; }

.gpdf-page .cpdf-app .cpdf-drop-cta {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--gpdf-blue);
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.gpdf-page .cpdf-app #epdf-btn-sample {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--gpdf-ink);
}

.gpdf-page .cpdf-btn-icon { width: 18px; height: 18px; fill: currentColor; }
.gpdf-page .cpdf-btn-icon.is-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gpdf-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'%3E%3Crect x='3' y='4' width='18' height='12' rx='2' fill='%232563eb'/%3E%3Cpath fill='%232563eb' d='M9 19h6v2H9z'/%3E%3Cpath fill='%23fff' d='M6 7h12v6H6z'/%3E%3C/svg%3E");
}

.article .gpdf-meta {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  text-align: center;
}

.article .gpdf-page h2.gpdf-block-title,
.gpdf-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gpdf-ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
}

.gpdf-block-title > span,
.gpdf-block-head .gpdf-block-title > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--gpdf-blue);
  color: #fff;
  font-size: 0.85rem;
}

.gpdf-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gpdf-block-head .gpdf-block-title { margin: 0; }

.gpdf-count { color: #64748b; font-size: 0.84rem; font-weight: 700; }

.gpdf-label {
  margin: 14px 0 8px;
  color: var(--gpdf-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.gpdf-label:first-of-type { margin-top: 0; }

.gpdf-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gpdf-tiles.is-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gpdf-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 12px 12px 12px 14px;
  border: 1.5px solid #e6edf5;
  border-radius: 14px;
  background: #fff;
  color: var(--gpdf-ink);
  text-align: left;
  cursor: pointer;
}

.gpdf-tile:hover { border-color: #bfdbfe; }

.gpdf-tile.is-on {
  border-color: #60a5fa;
  background: #f5f9ff;
  box-shadow: 0 0 0 1px #60a5fa inset;
}

.gpdf-tile strong,
.gpdf-tile small { display: block; }

.gpdf-tile strong { font-size: 0.86rem; font-weight: 800; }
.gpdf-tile.is-on strong { color: #1d4ed8; }

.gpdf-tile small {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
}

.gpdf-tile > span:not(.gpdf-tick):not(.gpdf-dir) { flex: 1 1 auto; min-width: 0; }

.gpdf-tick {
  width: 22px;
  height: 22px;
  flex: none;
  border: 2px solid #d5deea;
  border-radius: 50%;
  background: #fff;
}

.gpdf-tile.is-on .gpdf-tick {
  border-color: var(--gpdf-blue);
  background: var(--gpdf-blue) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.gpdf-dir {
  width: 28px;
  height: 28px;
  flex: none;
  background: center / 24px no-repeat;
}

.gpdf-dir.is-left {
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.3-5.7'/%3E%3Cpath d='M4 4v5h5'/%3E%3C/svg%3E");
}

.gpdf-dir.is-right {
  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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
}

.gpdf-tile.is-on .gpdf-dir.is-right {
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
}

.gpdf-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.gpdf-extra label { color: #475569; font-size: 0.82rem; font-weight: 700; }

.gpdf-page #gpdf-range {
  flex: 1 1 auto;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
}

.gpdf-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: var(--gpdf-ink);
  font-weight: 750;
  cursor: pointer;
}

.gpdf-chip.is-on {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.gpdf-page .epdf-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 4px 0 0;
}

.gpdf-sheet { min-width: 0; }

.gpdf-sheet-hit {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.gpdf-page .gpdf-pick {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 2px solid #d5deea;
  border-radius: 7px;
  background: #fff;
  appearance: none;
  cursor: pointer;
}

.gpdf-page .gpdf-pick:checked {
  border-color: var(--gpdf-blue);
  background: var(--gpdf-blue) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.gpdf-sheet-frame {
  display: block;
  overflow: hidden;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
}

.gpdf-sheet-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.gpdf-sheet-name,
.gpdf-page .epdf-thumb-ph {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.gpdf-page .cpdf-list-empty {
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-style: normal;
  text-align: left;
}

.gpdf-page .cpdf-card.gpdf-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);
}

.gpdf-page .cpdf-card-label,
.article .gpdf-tips h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gpdf-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

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

.gpdf-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");
}

.gpdf-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");
}

.gpdf-page .cpdf-stat {
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.84rem;
}

.gpdf-page .cpdf-stat:last-child { border-bottom: 0; }
.gpdf-page .cpdf-stat-label { color: #64748b; font-weight: 650; }
.gpdf-page .cpdf-stat-value { overflow-wrap: anywhere; text-align: right; color: var(--gpdf-ink); font-weight: 750; }
.gpdf-page .cpdf-status:empty { display: none; }
.gpdf-page .cpdf-status { margin-top: 8px; }

.gpdf-page .gpdf-tips { background: #fff8e8; border-color: #f6e3b0; }

.article .gpdf-tips ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article .gpdf-tips li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #3d4658;
  font-size: 0.84rem;
  line-height: 1.35;
}

.article .gpdf-tips li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  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;
}

.gpdf-actions { display: grid; gap: 8px; }

.gpdf-page .cpdf-app #epdf-btn-save,
.gpdf-page .cpdf-app #epdf-btn-save:hover,
.gpdf-page .cpdf-app #epdf-btn-save: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;
}

.gpdf-page .cpdf-app #epdf-btn-save:disabled { opacity: 0.72; cursor: not-allowed; }

.gpdf-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.gpdf-page .cpdf-app .gpdf-action-row .cpdf-btn {
  min-height: 44px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
  color: var(--gpdf-ink);
  font-weight: 750;
}

.gpdf-page #epdf-btn-download { width: 100%; min-height: 44px; }
.gpdf-page #epdf-btn-download:disabled { display: none; }

body.page-girar-pdf-online .article .gpdf-page .pdf-related {
  margin: 0;
  padding: 14px;
  border: 1px solid #e4def8;
  border-radius: 16px;
  background: #f6f3ff;
  box-shadow: none;
}

body.page-girar-pdf-online .article .gpdf-page h2.pdf-related-title { display: none !important; }

body.page-girar-pdf-online .article .gpdf-page .pdf-related-head {
  margin-bottom: 10px;
  padding: 0;
}

body.page-girar-pdf-online .article .gpdf-page .pdf-related-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5b21b6;
  font-size: 0.98rem;
  font-weight: 800;
}

body.page-girar-pdf-online .article .gpdf-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='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.4H9z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

body.page-girar-pdf-online .article .gpdf-page .pdf-related-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px;
}

body.page-girar-pdf-online .article .gpdf-page a.pdf-related-card {
  gap: 8px;
  padding: 8px;
  border-color: #ece7f8;
  background: #fff;
}

body.page-girar-pdf-online .article .gpdf-page .pdf-related-name { font-size: 0.78rem; }
body.page-girar-pdf-online .article .gpdf-page .pdf-related-hint { font-size: 0.68rem; }
body.page-girar-pdf-online .article .gpdf-page .pdf-related-icon { width: 32px; height: 32px; }
body.page-girar-pdf-online .article .gpdf-page .pdf-related-arrow { font-size: 0.95rem; }

body.page-girar-pdf-online .article .gpdf-page .pdf-related-grid a:nth-child(1) .pdf-related-icon { background: #ffe4e6; color: #e11d48; }
body.page-girar-pdf-online .article .gpdf-page .pdf-related-grid a:nth-child(2) .pdf-related-icon { background: #ede9fe; color: #7c3aed; }
body.page-girar-pdf-online .article .gpdf-page .pdf-related-grid a:nth-child(3) .pdf-related-icon { background: #dbeafe; color: #2563eb; }
body.page-girar-pdf-online .article .gpdf-page .pdf-related-grid a:nth-child(4) .pdf-related-icon { background: #e0f2fe; color: #0284c7; }

.gpdf-page .cpdf-success,
.gpdf-page .cpdf-progress-wrap { border-radius: 16px; }

@media (max-width: 1100px) {
  .gpdf-page .conv-board { grid-template-columns: 1fr; }
  .gpdf-tiles,
  .gpdf-tiles.is-dir { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .article .gpdf-art { display: none; }
}

@media (max-width: 720px) {
  .gpdf-page .conv-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .gpdf-page .conv-steps li:not(:last-child)::after { content: none; }
  body.page-girar-pdf-online .article .gpdf-page .pdf-related-grid { grid-template-columns: 1fr !important; }
}

html[data-theme="dark"] .gpdf-page { --gpdf-ink: #f8fafc; }
html[data-theme="dark"] .article .gpdf-page .conv-lede,
html[data-theme="dark"] .gpdf-tile small,
html[data-theme="dark"] .gpdf-count,
html[data-theme="dark"] .gpdf-page .cpdf-stat-label { color: #94a3b8; }
html[data-theme="dark"] .gpdf-tile,
html[data-theme="dark"] .gpdf-chip,
html[data-theme="dark"] .gpdf-page .cpdf-card.gpdf-summary,
html[data-theme="dark"] .gpdf-page .cpdf-app .gpdf-action-row .cpdf-btn,
html[data-theme="dark"] .gpdf-page .cpdf-app #epdf-btn-sample,
html[data-theme="dark"] .gpdf-sheet-frame { background: #1e293b; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .gpdf-tile.is-on,
html[data-theme="dark"] .gpdf-chip.is-on { background: #172554; }
html[data-theme="dark"] .gpdf-page .cpdf-drop { background: #0f1b33; }
html[data-theme="dark"] .gpdf-page .gpdf-tips { background: #3b2f12; border-color: #854d0e; }
html[data-theme="dark"] .article .gpdf-tips li { color: #e2e8f0; }
html[data-theme="dark"] body.page-girar-pdf-online .article .gpdf-page .pdf-related { background: #221c33; border-color: #3b3358; }
html[data-theme="dark"] .gpdf-page .cpdf-stat { border-bottom-color: #334155; }
