/* FINDLEY MEDICAL · Receta digital (formato pase para la botica + horarios del paciente) */
.rx { background: #0B1F33; padding: 110px 16px 60px; min-height: 100vh; }
.rx-caja { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.rx-cargando { color: #b9c8db; text-align: center; padding: 40px 0; }
.rx [hidden] { display: none !important; }
.rx-demo { margin: 0; background: rgba(47,212,200,.12); color: #2FD4C8; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.rx-marca { display: inline-flex; flex-direction: column; line-height: .86; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.rx-marca .m { background: linear-gradient(90deg, #4A9DF0, #2FD4C8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rx-top > span:last-child { font-size: 12.5px; font-weight: 700; color: #b9c8db; }
.rx-tk { background: #fff; color: #0B1F33; border-radius: 22px; overflow: hidden; }
.rx-tk-cab { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.rx-tk-cab small { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #0f8a80; }
.rx-tk-cab span { font-size: 13px; color: #5b6b7f; }
.rx-vencida { color: #a12020 !important; font-weight: 700; }
.rx-corte { border-top: 2px dashed #c9d6e6; margin: 0 14px; }
.rx-items { padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.rx-item { display: flex; justify-content: space-between; gap: 10px; }
.rx-item b { font-size: 17px; display: block; }
.rx-item small { color: #5b6b7f; font-size: 13px; }
.rx-cant { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 14px; text-align: right; flex-shrink: 0; max-width: 40%; }
.rx-medico { margin: 0 14px 12px; background: #f5f8fc; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #3c4d63; display: flex; flex-direction: column; gap: 2px; }
.rx-ind { margin: 0 14px 12px; font-size: 13px; color: #3c4d63; line-height: 1.45; }
.rx-cod { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #5b6b7f; padding: 0 20px 16px; }
.rx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; padding: 14px; font-weight: 800; font-size: 15px; font-family: inherit; cursor: pointer; min-height: 48px; }
.rx-btn-teal { background: #2FD4C8; color: #0B1F33; }
.rx-btn-azul { background: #155eef; color: #fff; }
.rx-btn.listo { background: #0f8a80; color: #fff; }
.rx-sec { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.rx-sec b { font-size: 16px; }
.rx-sec small { color: #9fb7d4; font-size: 12px; }
.rx-med { background: #fff; color: #0B1F33; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rx-med b { font-size: 16px; }
.rx-med > span, .rx-med > small { font-size: 13px; color: #3c4d63; }
.rx-tomas { display: flex; gap: 6px; flex-wrap: wrap; }
.rx-tomas button { border: 1.5px solid #155eef; background: #fff; color: #155eef; border-radius: 999px; padding: 6px 12px; font: 700 13px inherit; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; min-height: 38px; }
.rx-tomas button[aria-pressed="true"] { background: #155eef; color: #fff; }
.rx-barra { height: 7px; background: #e3ecfa; border-radius: 999px; overflow: hidden; }
.rx-barra i { display: block; height: 100%; background: #2FD4C8; transition: width .4s; }
.rx-pie { display: flex; gap: 8px; align-items: flex-start; color: #b9c8db; font-size: 12.5px; line-height: 1.45; margin: 4px 0 0; }
.rx-pie i { color: #2FD4C8; flex-shrink: 0; margin-top: 2px; }
.rx-verif { display: flex; gap: 12px; background: #e6f8f5; color: #0a5f58; border-radius: 18px; padding: 16px; }
.rx-verif i { font-size: 28px; flex-shrink: 0; }
.rx-verif p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }
/* Pantalla para la botica */
.rx-farm { position: fixed; inset: 0; z-index: 500; background: #fff; color: #0B1F33; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 22px) max(18px, env(safe-area-inset-left, 0px)); }
.rx-farm > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.rx-farm-cab { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #0B1F33; padding-bottom: 12px; }
.rx-farm-cab .rx-marca { font-size: 26px; }
.rx-farm-cab > span:last-child { text-align: right; font-size: 12px; color: #5b6b7f; font-weight: 700; }
.rx-farm h2 { margin: 0; font-size: 15px; letter-spacing: .12em; color: #0f8a80; }
.rx-farm-item { border-bottom: 2px solid #eef2f7; padding-bottom: 12px; }
.rx-farm-item b { display: block; font-size: 26px; line-height: 1.15; }
.rx-farm-item span { font-size: 18px; color: #3c4d63; }
.rx-farm-med { font-size: 16px; line-height: 1.5; }
.rx-farm-med span { color: #5b6b7f; }
.rx-farm-sello { display: flex; gap: 8px; align-items: center; background: #eef4ff; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #1b3a63; }
.rx-farm-sello i { color: #155eef; flex-shrink: 0; }
.rx-farm-tip { margin: 0; color: #5b6b7f; font-size: 13px; }
.rx-farm .rx-btn { margin-top: auto; }
