.editorial-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(420px, 1.14fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(107, 38, 156, 0.16);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(31, 27, 46, 0.08);
}

.editorial-editor {
  padding: clamp(22px, 3vw, 42px);
  border-right: 1px solid rgba(107, 38, 156, 0.12);
  background: linear-gradient(180deg, #fff 0%, rgba(247, 243, 235, 0.65) 100%);
}

.editorial-editor-head {
  margin-bottom: 26px;
}

.editorial-kicker,
.document-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-kicker::before,
.document-label::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.editorial-editor h2 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.editorial-editor-head p {
  margin: 0;
  color: var(--gray);
}

.editorial-step {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(107, 38, 156, 0.12);
}

.editorial-step-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-step-title span {
  color: var(--purple-mid);
}

.editorial-canvas {
  padding: clamp(22px, 4vw, 52px);
  background-color: #eee8df;
  background-image:
    linear-gradient(rgba(107, 38, 156, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 38, 156, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.editorial-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.editorial-canvas-toolbar p {
  margin: 0;
  color: var(--gray);
  font-size: 0.78rem;
}

.editorial-paper {
  position: relative;
  min-height: 760px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(107, 38, 156, 0.12);
  background: #fff;
  box-shadow: 0 24px 55px rgba(31, 27, 46, 0.12);
}

.editorial-paper::before {
  position: absolute;
  top: 0;
  left: 54px;
  width: 1px;
  height: 34px;
  background: var(--purple);
  content: "";
}

.document-logo {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 64px;
  margin-bottom: 36px;
  object-fit: contain;
}

.document-title {
  max-width: 12ch;
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.document-claim {
  max-width: 32ch;
  margin: 0;
  color: var(--gray);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.document-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: 48px;
}

.document-facts {
  padding-top: 18px;
  border-top: 1px solid rgba(107, 38, 156, 0.18);
}

.document-fact {
  margin-bottom: 20px;
}

.document-fact small {
  display: block;
  margin-bottom: 3px;
  color: #8a8195;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-fact strong,
.document-fact a {
  color: var(--white);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.document-fact a {
  color: var(--purple);
}

.document-hero {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  overflow: hidden;
  place-items: center;
  background: rgba(107, 38, 156, 0.08);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.document-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.document-body {
  padding-left: 20px;
  border-left: 3px solid var(--purple);
  white-space: pre-line;
}

.document-body p {
  margin: 0;
}

.document-list {
  margin: 24px 0 0;
  padding: 20px 20px 20px 38px;
  background: var(--bg-deep);
}

.document-list li + li {
  margin-top: 8px;
}

.document-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(107, 38, 156, 0.14);
  color: var(--gray);
  font-size: 0.72rem;
}

.editorial-upload {
  display: grid;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed rgba(107, 38, 156, 0.4);
  background: rgba(107, 38, 156, 0.025);
  color: var(--purple);
  place-items: center;
  text-align: center;
  cursor: pointer;
}

.editorial-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.image-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.image-stat {
  padding: 14px;
  border: 1px solid rgba(107, 38, 156, 0.14);
  border-radius: 14px;
  background: rgba(107, 38, 156, 0.035);
}

.image-stat strong {
  display: block;
  color: var(--purple);
  font-size: 1.2rem;
}

.image-queue {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.image-queue-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(107, 38, 156, 0.14);
  border-radius: 14px;
  background: #fff;
}

.image-queue-item img {
  width: 72px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.image-queue-item strong,
.image-queue-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-queue-item span {
  color: var(--gray);
  font-size: 0.75rem;
}

.image-preview {
  display: grid;
  min-height: 360px;
  padding: 24px;
  place-items: center;
  background:
    linear-gradient(45deg, #e6dfea 25%, transparent 25%),
    linear-gradient(-45deg, #e6dfea 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6dfea 75%),
    linear-gradient(-45deg, transparent 75%, #e6dfea 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.image-preview img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(31, 27, 46, 0.16);
}

@media (max-width: 900px) {
  .editorial-workspace {
    grid-template-columns: 1fr;
  }
  .editorial-editor {
    border-right: 0;
    border-bottom: 1px solid rgba(107, 38, 156, 0.12);
  }
  .editorial-paper {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .document-grid,
  .image-result-grid {
    grid-template-columns: 1fr;
  }
  .image-queue-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .image-queue-item img {
    width: 58px;
    height: 50px;
  }
  .image-queue-item .suite-btn {
    grid-column: 1 / -1;
  }
  .document-footer {
    display: block;
  }
}

@media print {
  body[data-tool-id="generador_dossier_prensa"] site-header,
  body[data-tool-id="generador_dossier_prensa"] .brand-hero,
  body[data-tool-id="generador_dossier_prensa"] .editorial-editor,
  body[data-tool-id="generador_dossier_prensa"] .editorial-canvas-toolbar,
  body[data-tool-id="generador_dossier_prensa"] .brand-content,
  body[data-tool-id="generador_dossier_prensa"] .brand-faq,
  body[data-tool-id="generador_dossier_prensa"] site-footer {
    display: none !important;
  }
  body[data-tool-id="generador_dossier_prensa"],
  body[data-tool-id="generador_dossier_prensa"] .suite-shell,
  body[data-tool-id="generador_dossier_prensa"] .editorial-workspace,
  body[data-tool-id="generador_dossier_prensa"] .editorial-canvas {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body[data-tool-id="generador_dossier_prensa"] .editorial-workspace {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body[data-tool-id="generador_dossier_prensa"] .editorial-paper {
    min-height: 0;
    border: 0;
    box-shadow: none;
    break-inside: avoid;
  }
}
