.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.card-actions .btn { margin-top: 0; }

.signed-at {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(185, 152, 90, .38);
  color: #34475a;
  line-height: 1.45;
}

.act {
  position: relative;
  margin: 22px;
  padding: 42px 46px 34px;
  overflow: hidden;
  border: 1px solid #d9dee4;
  border-radius: 16px;
  background: #fff;
  color: #17212b;
  box-shadow: 0 12px 34px rgba(7, 26, 47, .08);
}

.act::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #071a2f 0 72%, #b9985a 72%);
}

.act::after {
  content: "LATAMLEX";
  position: absolute;
  right: -28px;
  bottom: 90px;
  color: rgba(7, 26, 47, .025);
  font: 700 70px/1 Georgia, serif;
  letter-spacing: .08em;
  transform: rotate(-90deg);
  pointer-events: none;
}

.act-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9dee4;
}

.act-brand img {
  width: 126px;
  height: 54px;
  max-width: 126px;
  object-fit: contain;
  object-position: left center;
}

.act-brand > div { text-align: right; }

.act-brand h2 {
  margin: 0;
  color: #071a2f;
  font: 700 28px/1.15 Georgia, serif;
  letter-spacing: -.02em;
}

.act-brand p {
  margin: 7px 0 0;
  color: #9a793f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.act dl {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 28px 0 30px;
  border-top: 1px solid #e5e8eb;
}

.act dt,
.act dd {
  margin: 0;
  padding: 12px 10px;
  border-bottom: 1px solid #e5e8eb;
}

.act dt {
  color: #66717d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.act dd {
  color: #17212b;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.act-signature {
  width: min(390px, 100%);
  margin-top: 34px;
}

.act-signature p {
  margin: 0 0 8px;
  color: #66717d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.act-signature img {
  display: block;
  width: 100%;
  height: 126px;
  object-fit: contain;
  object-position: left bottom;
  border-bottom: 1px solid #071a2f;
}

.act-signature::after {
  content: "Firma digital del receptor";
  display: block;
  margin-top: 7px;
  color: #66717d;
  font-size: 11px;
}

.act-foot {
  margin: 34px 0 0;
  padding-top: 15px;
  border-top: 1px solid #e5e8eb;
  color: #7b8792;
  font-size: 10px;
  line-height: 1.5;
}

.act-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 22px;
}

.public-act-page {
  min-height: 100vh;
  padding: 24px;
  background: #f5f2ec;
}

.public-act-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(820px, 100%);
  margin: 0 auto 14px;
  color: #071a2f;
  font-weight: 800;
}

.public-act-page .act { width: min(820px, 100%); margin: 0 auto; }
.public-act-error { width: min(560px, 100%); margin: 15vh auto; padding: 36px; border-radius: 16px; background: #fff; text-align: center; }
.public-act-error h1 { color: #071a2f; font-family: Georgia, serif; }

@media (max-width: 640px) {
  .card-actions { grid-template-columns: 1fr; }
  .act { margin: 10px; padding: 30px 22px 24px; border-radius: 12px; }
  .act-brand { align-items: flex-start; flex-direction: column; gap: 16px; }
  .act-brand > div { text-align: left; }
  .act-brand h2 { font-size: 24px; }
  .act-brand img { width: 112px; height: 42px; }
  .act dl { grid-template-columns: 1fr; }
  .act dt { padding-bottom: 3px; border-bottom: 0; }
  .act dd { padding-top: 2px; }
  .act-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .public-act-page { padding: 10px; }
  .public-act-toolbar { align-items: stretch; flex-direction: column; padding: 8px 2px; }
}

@media print {
  @page { size: letter portrait; margin: 12mm; }
  body { background: #fff !important; }
  body:not(.public-act-mode) > *:not(#modal) { display: none !important; }
  .modal-backdrop { position: static !important; display: block !important; padding: 0 !important; background: #fff !important; }
  .modal { width: 100% !important; max-height: none !important; overflow: visible !important; border-radius: 0 !important; box-shadow: none !important; }
  .modal-head, .act-actions { display: none !important; }
  .public-act-toolbar { display: none !important; }
  .public-act-page { min-height: 0 !important; padding: 0 !important; background: #fff !important; }
  .act {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9mm 11mm 7mm !important;
    border: 1px solid #cfd5db !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .act::after { color: rgba(7, 26, 47, .018); }
  .act-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12mm !important;
    padding-bottom: 6mm !important;
  }
  .act-brand > div { text-align: right !important; }
  .act-brand img { width: 31mm !important; height: 12mm !important; }
  .act-brand h2 { font-size: 21px !important; line-height: 1.08 !important; }
  .act-brand p { margin-top: 4px !important; font-size: 9px !important; }
  .act dl {
    display: grid !important;
    grid-template-columns: 38mm minmax(0, 1fr) !important;
    margin: 6mm 0 5mm !important;
  }
  .act dt, .act dd { padding: 3mm 3mm !important; }
  .act dt { font-size: 9px !important; }
  .act dd { font-size: 11.5px !important; line-height: 1.25 !important; }
  .act-signature { width: 92mm !important; margin-top: 5mm !important; }
  .act-signature p { font-size: 9px !important; margin-bottom: 2mm !important; }
  .act-signature img { height: 24mm !important; }
  .act-signature::after { margin-top: 1.5mm !important; font-size: 9px !important; }
  .act-foot { margin-top: 6mm !important; padding-top: 3mm !important; font-size: 8px !important; }
}
