.a2p-poster,
.a2p-poster *,
.a2p-pdf-body,
.a2p-pdf-body * {
  box-sizing: border-box;
}

@page {
  margin: 0;
  size: 1080px 1920px;
}

.a2p-pdf-body {
  margin: 0;
  padding: 0;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: #ffffff;
  font-family: Arial, DejaVu Sans, sans-serif;
  color: #1b2a4a;
}

.a2p-pdf-page {
  position: relative;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  page-break-after: avoid;
  page-break-inside: avoid;
}

.a2p-poster {
  position: relative;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #d7e8f8 48%, #ffffff 100%);
  font-family: Arial, DejaVu Sans, sans-serif;
  color: #1b2a4a;
}

.a2p-poster-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 145px;
  max-height: 145px;
  overflow: hidden;
  background: #b2b2b2;
  line-height: 0;
}

.a2p-poster-header img {
  display: block;
  width: 1080px;
  height: 145px;
  max-height: 145px;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.a2p-poster-header-fallback {
  height: 145px;
  line-height: 145px;
  text-align: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

.a2p-poster-heading {
  position: absolute;
  top: 145px;
  left: 40px;
  width: 1000px;
  height: 230px;
  padding: 6px 0 0;
  overflow: hidden;
}

.a2p-poster-title {
  width: 1000px;
  max-width: 1000px;
  height: 134px;
  max-height: 134px;
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 0.95;
  color: #003CA5;
}

.a2p-poster-authors {
  width: 1000px;
  max-width: 1000px;
  height: 84px;
  max-height: 84px;
  margin: 6px 0 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.1;
  color: #006CF9;
  vertical-align: top;
}

/* 3 autores por línea: 12 autores = 4 líneas. Cada celda es 1/3 del ancho y no salta de línea. */
.a2p-authors-table {
  width: 1000px;
  table-layout: fixed;
  border-collapse: collapse;
}

.a2p-authors-table td {
  width: 333px;
  padding: 0 8px 1px 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  color: #006CF9;
}

.a2p-poster-date {
  margin-top: 2px;
  font-size: 11px;
}

.a2p-row {
  position: absolute;
  left: 40px;
  width: 1000px;
  overflow: visible;
}

.a2p-row-top {
  top: 376px;
  height: 268px;
}

.a2p-row-conclusions {
  top: 1310px;
  height: 186px;
}

.a2p-panel {
  position: relative;
  overflow: visible;
  background: #ffffff;
  border: 2px solid #8FBDEF;
  border-radius: 14px;
}

.a2p-panel-intro {
  position: absolute;
  top: 0;
  left: 0;
  width: 608px;
  height: 268px;
}

.a2p-panel-objectives {
  position: absolute;
  top: 0;
  right: 0;
  width: 383px;
  height: 268px;
}

.a2p-panel-methods {
  position: absolute;
  top: 668px;
  left: 40px;
  width: 1000px;
  height: 288px;
}

.a2p-panel-results {
  position: absolute;
  top: 968px;
  left: 40px;
  width: 1000px;
  height: 330px;
}

.a2p-panel-conclusion {
  position: absolute;
  top: 0;
  left: 0;
  width: 494px;
  height: 186px;
}

.a2p-panel-conclusion + .a2p-panel-conclusion {
  left: 506px;
}

.a2p-panel-conflicts {
  position: absolute;
  top: 1508px;
  left: 40px;
  width: 1000px;
  height: 92px;
  background: #EBF2FC;
}

.a2p-panel-biblio {
  position: absolute;
  top: 1608px;
  left: 40px;
  width: 1000px;
  height: 204px;
  background: #EBF2FC;
}

.a2p-panel-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 32px;
  padding: 5px 16px 0;
  border-radius: 12px 12px 0 0;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
}

.a2p-label-blue {
  background: #003CA5;
}

.a2p-label-orange {
  background: #FF6920;
}

.a2p-label-blue-soft {
  right: auto;
  width: auto;
  background: #8FBDEF;
  font-size: 16px;
  height: 24px;
  padding: 3px 14px 0;
  border-radius: 12px 12px 10px 0;
}

.a2p-panel-body {
  position: absolute;
  top: 36px;
  left: 16px;
  right: 16px;
  bottom: 12px;
  padding-top: 5px;
  overflow: hidden;
}

.a2p-panel-conflicts .a2p-panel-body,
.a2p-panel-biblio .a2p-panel-body {
  top: 27px;
  bottom: 6px;
  padding-top: 3px;
}

.a2p-panel-conflicts .a2p-panel-body p {
  font-size: 12px;
  line-height: 0.95;
}

.a2p-panel-body p,
.a2p-panel-body li {
  margin: 0 0 5px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  text-align: justify;
  color: #1b2a4a;
}

.a2p-panel-biblio li {
  font-size: 11px;
  line-height: 0.95;
  margin-bottom: 1px;
}

/* Muchas líneas de bibliografía: se reduce la letra para que no se corte. */
.a2p-biblio-dense li {
  font-size: 10px;
}

.a2p-biblio-xdense li {
  font-size: 9px;
}

.a2p-panel-body ol,
.a2p-panel-body ul {
  margin: 0;
  padding-left: 18px;
}

.a2p-split-text {
  float: left;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.a2p-panel-methods.has-visual .a2p-split-text {
  width: 560px;
  padding-right: 12px;
}

.a2p-panel-methods.has-visual .a2p-split-visual {
  float: right;
  width: 398px;
  height: 220px;
}

.a2p-panel-results.has-visual .a2p-split-text {
  width: 700px;
  padding-right: 12px;
}

.a2p-panel-results.has-visual .a2p-split-visual {
  float: right;
  width: 247px;
  height: 268px;
}

/* Conclusiones sin floats: dompdf arrastraba el float de la 1 y dejaba vacía la etiqueta de la 2. */
.a2p-panel-conclusion .a2p-split-text {
  position: absolute;
  top: 5px;
  left: 0;
  float: none;
  width: 100%;
  height: auto;
  bottom: 0;
}

.a2p-panel-conclusion.has-visual .a2p-split-text {
  width: 320px;
  padding-right: 8px;
}

.a2p-panel-conclusion.has-visual .a2p-split-visual {
  position: absolute;
  top: 5px;
  right: 0;
  float: none;
  width: 120px;
  height: 120px;
}

.a2p-visual-16x9,
.a2p-visual-1x1,
.a2p-visual-sm {
  overflow: hidden;
  background: #C4D6EA;
  border-radius: 10px;
}

.a2p-visual-stack .a2p-visual-sm {
  width: 247px;
  height: 126px;
  margin-bottom: 10px;
}

.a2p-visual-stack .a2p-visual-sm:last-child {
  margin-bottom: 0;
}

.a2p-resource-img,
.a2p-visual-chart-img,
.a2p-resource-chart,
.a2p-resource-chart img,
.a2p-chart {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #ffffff;
}

.a2p-poster-footer {
  position: absolute;
  top: 1820px;
  left: 0;
  width: 1080px;
  height: 100px;
  overflow: hidden;
  background: #003BA4;
}

.a2p-poster-footer-art {
  position: absolute;
  top: 1px;
  left: 0;
  display: block;
  width: 920px;
  height: 98px;
  border: 0;
}

.a2p-poster-qr {
  position: absolute;
  top: 12px;
  left: 951px;
  width: 76px;
  height: 76px;
  padding: 5px;
  background: #ffffff;
}

.a2p-poster-qr img {
  display: block;
  width: 66px;
  height: 66px;
  border: 0;
}

@media print {
  .a2p-poster {
    width: 1080px;
    height: 1920px;
  }
}
