/* Récipe digital: hoja carta acostada (récipe a la izquierda, indicaciones a la derecha). Siempre en colores claros, como el papel. */
@font-face { font-family: 'Playfair'; font-weight: 700; font-display: swap; src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
.rx-fit { position: relative; width: 100%; overflow: hidden; }
.rx-sheet { width: 1056px; height: 816px; display: flex; background: #fff; color: #1E2A33; font-family: 'Nunito', system-ui, sans-serif; transform-origin: top left; box-shadow: 0 2px 14px rgba(20, 40, 50, .14); }
.rx-half { position: relative; width: 50%; height: 100%; padding: 38px 42px 30px; display: flex; flex-direction: column; overflow: hidden; }
.rx-half + .rx-half { border-left: 1.2px dashed #B9C7CD; }
.rx-wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.rx-wm img { width: 62%; opacity: .05; filter: grayscale(1); }
.rx-void { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 74px; font-weight: 800; letter-spacing: .1em; color: rgba(200, 40, 40, .55); border: 6px solid rgba(200, 40, 40, .55); padding: 4px 22px; border-radius: 12px; z-index: 3; pointer-events: none; }
.rx-mh { position: relative; display: flex; align-items: center; gap: 15px; padding-bottom: 13px; border-bottom: 2.2px solid #1FA9C9; }
.rx-mono { width: 57px; height: 57px; border-radius: 50%; background: #0B2E3A; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Playfair', Georgia, serif; font-weight: 700; font-size: 26px; flex: none; }
.rx-logo { width: 62px; height: 62px; object-fit: contain; flex: none; }
.rx-mh-t { flex: 1; min-width: 0; }
.rx-dr { font-family: 'Playfair', Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.08; color: #0B2E3A; }
.rx-spec { font-size: 13.5px; font-weight: 700; color: #1FA9C9; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.rx-ids { font-size: 11px; color: #5B6770; margin-top: 3px; }
.rx-kind { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #1FA9C9; padding: 4px 10px; border-radius: 99px; }
.rx-pt { position: relative; display: grid; grid-template-columns: 2fr 1.2fr .8fr 1fr; gap: 8px 11px; margin-top: 15px; }
.rx-f { border-bottom: 1px solid #C9D6DB; padding-bottom: 4px; min-width: 0; }
.rx-f label { display: block; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8A979E; }
.rx-f span { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-body { position: relative; flex: 1; margin-top: 15px; min-height: 0; overflow: hidden; }
.rx-sym { font-family: 'Playfair', Georgia, serif; font-size: 48px; font-weight: 700; color: #1FA9C9; line-height: 1; }
.rx-sym span { font-size: 30px; margin-left: -4px; }
.rx-meds { margin: 10px 0 0; padding-left: 22px; font-size: 14.5px; line-height: 1.35; }
.rx-meds li { margin-bottom: 11px; }
.rx-meds li span { display: block; color: #5B6770; font-size: 12.5px; }
.rx-ind { font-size: 14.5px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.rx-sign { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.rx-qr { display: flex; align-items: center; gap: 9px; }
.rx-qrbox { width: 72px; height: 72px; flex: none; }
.rx-qrbox svg { width: 100%; height: 100%; display: block; }
.rx-qrt { font-size: 10px; line-height: 1.35; color: #5B6770; }
.rx-qrt b { color: #1E2A33; }
.rx-seal-wrap { position: relative; width: 220px; text-align: center; }
.rx-seal { position: absolute; width: 104px; height: 104px; object-fit: contain; right: 4px; bottom: 10px; opacity: .9; transform: rotate(-6deg); mix-blend-mode: multiply; }
.rx-firma { display: block; max-width: 170px; max-height: 64px; margin: 0 auto -6px; position: relative; mix-blend-mode: multiply; }
.rx-firma-blank { height: 58px; }
.rx-line { border-top: 1.2px solid #1E2A33; font-size: 10.5px; color: #5B6770; padding-top: 4px; position: relative; }
.rx-ft { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding-top: 9px; border-top: 1px solid #E1EAEC; }
.rx-ft-l { font-size: 10px; color: #5B6770; line-height: 1.35; max-width: 62%; }
.rx-ft-r { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: #5B6770; line-height: 1.2; flex: none; }
.rx-ft-r img { width: 32px; height: 32px; border-radius: 8px; }
.rx-ft-r b { color: #0B2E3A; font-size: 11px; }
@media print {
  @page { size: letter landscape; margin: 0; }
  html, body { background: #fff !important; }
  .no-print { display: none !important; }
  .rx-fit { height: auto !important; overflow: visible; }
  .rx-sheet { transform: none !important; box-shadow: none; width: 279.4mm; height: 215.4mm; page-break-inside: avoid; break-inside: avoid; }
}
/* Documentos del médico: hoja carta vertical */
.rx-sheet.doc-sheet { width: 816px; height: 1056px; }
.rx-sheet.doc-sheet .rx-half { width: 100%; padding: 48px 56px 36px; }
.doc-title { font-family: 'Playfair', Georgia, serif; font-size: 26px; text-align: center; letter-spacing: .06em; text-transform: uppercase; color: #0B2E3A; margin: 28px 0 10px; }
.doc-body { font-size: 16px; line-height: 1.7; }
.doc-p { margin: 0 0 14px; text-align: justify; white-space: normal; overflow-wrap: anywhere; }
.doc-exams { columns: 2; column-gap: 28px; margin-bottom: 12px; }
.doc-eg { break-inside: avoid; margin-bottom: 12px; }
.doc-eg-t { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1FA9C9; border-bottom: 1px solid #C9D6DB; padding-bottom: 2px; margin-bottom: 4px; }
.doc-eg ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.doc-result { display: inline-block; font-weight: 800; font-size: 18px; padding: 8px 16px; border-radius: 10px; margin: 4px 0 14px; border: 2px solid #3E9B4F; color: #2E7D3E; }
.doc-result.apto_rec { border-color: #E59A2B; color: #A9640E; }
.doc-result.no_apto { border-color: #C0392B; color: #A0261D; }
.doc-note { font-size: 12px; color: #5B6770; margin: 6px 0 0; }
@page doc { size: letter portrait; margin: 0; }
@media print {
  .rx-sheet.doc-sheet { page: doc; width: 215.9mm; height: 279.4mm; }
}
