/* MioPDF: identidad, donaciones y recomendaciones. */
.editor-identity { min-width: 0 !important; gap: 12px !important; }
.editor-identity > .editor-brand-image {
  display: block;
  flex: 0 0 auto;
  width: 154px;
  height: auto;
  object-fit: contain;
}
.editor-identity > div { min-width: 0; }
.editor-identity small { white-space: normal !important; line-height: 1.4 !important; }

.main-support-card {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4eaf1;
}
.main-support-card #topDonationBtn {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 46px !important;
  padding: 12px 10px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  color: #c82340;
}
.main-support-card .support-choice,
.preview-support-card .support-choice {
  margin: 0 !important;
  color: #526277 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.support-share-button,
.support-action,
.support-copy-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 15px;
  box-sizing: border-box;
  border: 1px solid #d4e0ee;
  border-radius: 11px;
  background: #f3f7fd;
  color: #123b68;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.support-share-button svg,
.support-action svg { width: 20px; height: 20px; flex: 0 0 20px; }
.support-share-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.support-share-button:hover,
.support-copy-row button:hover { background: #e7effa; border-color: #9ab4d5; }
.preview-support-card .support-share-button {
  margin-top: 10px;
  background: #f3f7fd !important;
  color: #123b68 !important;
  border: 1px solid #d4e0ee !important;
  min-height: 44px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
.preview-support-card .support-choice { margin-top: 10px !important; }
.preview-support-card #openDonationBtn { font-size: 14px !important; min-height: 44px !important; }

#donationModal, #shareModal {
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#donationModal { z-index: 10100; }
#shareModal { z-index: 10110; }
#donationModal .donation-card,
#shareModal .share-card {
  box-sizing: border-box;
  width: min(680px, 100%) !important;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 24px;
  font-size: 16px;
  color: #172b45;
  overscroll-behavior: contain;
}
#shareModal .share-card { width: min(540px, 100%) !important; }
.support-modal .modal-kicker { font-size: 12px; letter-spacing: .1em; color: #c82340; }
.support-modal .modal-card h2 { font-size: 24px; line-height: 1.25; }
.support-modal .modal-close { min-width: 44px; width: 44px; height: 44px; flex: 0 0 auto; }
.support-modal .modal-copy { font-size: 16px; line-height: 1.5; margin: 12px 0 20px; color: #526277; }
.donation-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.donation-method {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  border: 1px solid #e2d6ea;
  border-radius: 16px;
  background: #fcf9ff;
  text-align: center;
}
.donation-method h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; color: #672080; }
.donation-method p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #526277; }
.donation-yape-qr {
  display: block;
  width: 100%;
  max-width: 244px;
  height: auto;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid #eadff0;
  border-radius: 10px;
  background: #fff;
}
.support-qr-download { margin-top: 10px; padding: 10px; font-size: 14px; font-weight: 700; color: #672080; text-underline-offset: 3px; }
.donation-paypal { justify-content: center; background: #f5f9ff; border-color: #d6e5f8; }
.donation-paypal h3 { color: #003087; }
.donation-paypal .paypal-wordmark { margin-bottom: 16px; font-size: 32px; font-style: italic; font-weight: 850; letter-spacing: -.04em; color: #003087; }
.paypal-wordmark span { color: #0070ba; }
.support-paypal-action { width: 100%; color: #fff; background: #003087; border-color: #003087; }
.support-paypal-action:hover { color: #fff; background: #00266b; border-color: #00266b; }
.donation-paypal small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.4; color: #526277; }
.donation-share-prompt { margin: 20px 0 16px; padding-top: 18px; border-top: 1px solid #e4eaf1; text-align: center; }
.donation-share-prompt p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
#donationDoneBtn { min-height: 44px; font-size: 14px; }
.share-network-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.support-whatsapp { color: #fff; background: #12813e; border-color: #12813e; }
.support-whatsapp:hover { color: #fff; background: #0e6832; border-color: #0e6832; }
.support-facebook { color: #fff; background: #155bd7; border-color: #155bd7; }
.support-facebook:hover { color: #fff; background: #124cb4; border-color: #124cb4; }
.support-link-label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 700; }
.support-copy-row { display: flex; gap: 8px; }
.support-copy-row input { flex: 1; width: 0; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cad5e2; border-radius: 10px; color: #33465d; background: #fff; font: inherit; font-size: 14px; }
.support-copy-row button { flex: 0 0 auto; }
#nativeShareBtn { width: 100%; margin-top: 12px; }
#nativeShareBtn[hidden] { display: none !important; }
.support-share-status { margin: 12px 0 0; font-size: 14px; color: #345473; line-height: 1.5; }
.support-share-status:empty { display: none; }
.support-action[aria-disabled="true"], .support-modal button:disabled { opacity: .5; cursor: default; pointer-events: none; }
.support-modal :is(a, button, input):focus-visible,
.support-share-button:focus-visible { outline: 3px solid #3973c1; outline-offset: 3px; }
@media (max-width: 560px) {
  .editor-identity { max-width: 100%; gap: 10px !important; }
  .editor-identity > .editor-brand-image { width: 128px; }
  .editor-identity > div > strong { font-size: 17px !important; white-space: normal !important; }
  #donationModal .donation-card, #shareModal .share-card { padding: 18px; }
  .support-modal .modal-card h2 { font-size: 21px; }
  .donation-methods { grid-template-columns: minmax(0, 1fr); }
  .donation-yape-qr { max-width: 232px; }
  .donation-method { padding: 16px; }
  .donation-paypal .paypal-wordmark { margin-bottom: 8px; }
}
@media (max-width: 360px) {
  .share-network-buttons { grid-template-columns: 1fr; }
  .support-copy-row { flex-direction: column; }
  .support-copy-row input { width: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .main-support-card .top-donation-btn, .support-action, .support-share-button { transition: none; transform: none; }
}
