/* Centro de ayuda · La ficha del paciente (prefijo fp-). Todo va dentro de .ay-escena. */

/* ---------- piezas comunes ---------- */
.ay-escena .fp-si:not(.ver) { display: none !important; }
.ay-escena .fp-fila { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ay-escena .fp-fila--abajo { align-items: flex-end; }
.ay-escena .fp-fila--arriba { align-items: flex-start; }
.ay-escena .fp-fila .crece, .ay-escena .fp-pie .crece { flex: 1; min-width: 0; }
.ay-escena .fp-fila-entre { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ay-escena .fp-pila { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ay-escena .fp-pila4 { display: grid; gap: 4px; align-content: start; min-width: 0; }
.ay-escena .fp-pila2 { display: grid; gap: 2px; min-width: 0; }
.ay-escena .fp-chico { font-size: 9.5px; line-height: 1.35; }
.ay-escena .fp-h2 { font-size: 12.5px; font-weight: 700; }
.ay-escena .fp-h3 { font-size: 11px; font-weight: 700; }
.ay-escena .fp-ic { display: inline-grid; place-items: center; }
.ay-escena .k-btn.fp-ic { width: 24px; padding: 0; }
.ay-escena .fp-izq { justify-self: start; }
.ay-escena .fp-guardado { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: var(--k-exito, #167A52); font-weight: 600; }
.ay-escena .fp-guardado .k-ic { width: 12px; height: 12px; }
.ay-escena .fp-rejilla2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ay-escena .fp-dl { display: grid; grid-template-columns: 70px 1fr; gap: 3px 8px; font-size: 10.5px; margin: 0; }
.ay-escena .fp-dl dt { color: var(--k-texto2, #55555F); }
.ay-escena .fp-dl dd { margin: 0; }
.ay-escena .fp-detalles { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--k-enlace, #3A3C8C); }
.ay-escena .fp-franja { display: grid; gap: 2px; min-width: 0; }
.ay-escena .fp-franja > .fp-fila { margin-top: 5px; }
.ay-escena .fp-area { min-height: 38px; }
.ay-escena .fp-seg-chico > * { padding: 3px 7px; font-size: 9.5px; display: inline-flex; align-items: center; gap: 3px; }
.ay-escena .fp-seg-chico .k-tecla { min-width: 13px; height: 13px; font-size: 8px; padding: 0 2px; }
.ay-escena .fp-tost-acc { margin-left: 8px; color: #FFB4A8; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- la ficha: cabecera fija, cuerpo con scroll y pie opcional ---------- */
.ay-escena .fp-ficha { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.ay-escena .fp-ficha--pie { grid-template-rows: auto minmax(0, 1fr) auto; }
.ay-escena .fp-cab { position: relative; z-index: 3; background: var(--k-sup, #FFFFFF); border-bottom: 1px solid var(--k-borde, #E3DFD6); padding: 7px 14px 0; display: grid; gap: 4px; }
.ay-escena .fp-cab__fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ay-escena .fp-cab__quien { display: grid; gap: 3px; min-width: 0; }
.ay-escena .fp-nombre { display: flex; align-items: center; gap: 7px; }
.ay-escena .fp-nombre h1 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.ay-escena .fp-atras { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--k-borde-control, #707196); display: grid; place-items: center; }
.ay-escena .fp-atras .k-ic { width: 12px; height: 12px; }
.ay-escena .fp-datos { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 10px; color: var(--k-texto2, #55555F); }
.ay-escena .fp-datos > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ay-escena .fp-datos strong { color: var(--k-texto, #1D1D24); font-weight: 600; }
.ay-escena .fp-datos .k-ic { width: 12px; height: 12px; }
.ay-escena .fp-saldo { display: grid; justify-items: end; text-align: right; gap: 0; font-size: 9.5px; color: var(--k-texto2, #55555F); flex: none; }
.ay-escena .fp-saldo strong { font-size: 14px; color: var(--k-error, #B32630); font-variant-numeric: tabular-nums; }
.ay-escena .fp-alertas { display: flex; gap: 4px; flex-wrap: wrap; }
.ay-escena .fp-alertas:empty { display: none; }
.ay-escena .fp-pest { display: flex; align-items: flex-end; gap: 2px; margin-top: 1px; }
.ay-escena .fp-pest__lista { display: flex; gap: 2px; min-width: 0; }
.ay-escena .fp-pest__it { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px 6px; font-size: 11px; font-weight: 600; color: var(--k-texto2, #55555F); border-bottom: 3px solid transparent; white-space: nowrap; }
.ay-escena .fp-pest__it.on { color: var(--k-texto, #1D1D24); border-bottom-color: #FF6B57; }
.ay-escena .fp-pest__it .k-tecla { min-width: 14px; height: 14px; font-size: 8.5px; }
.ay-escena .fp-pest__it .k-etq { min-height: 15px; font-size: 8.5px; padding: 0 5px; }
.ay-escena .fp-pest__mas { margin-left: auto; position: relative; }
.ay-escena .fp-pest__btn .k-ic { width: 12px; height: 12px; }
.ay-escena .fp-menu { right: 0; top: calc(100% + 2px); }
.ay-escena .fp-menu > * { justify-content: space-between; }
.ay-escena .fp-menu .crece { flex: 1; }
.ay-escena .fp-cuerpo { overflow: hidden; min-height: 0; padding: 10px 14px 18px; display: grid; gap: 10px; align-content: start; }
.ay-escena .fp-cuerpo > * { min-width: 0; }
.ay-escena .fp-sec { background: var(--k-sup, #FFFFFF); border: 1px solid var(--k-borde, #E3DFD6); border-radius: 12px; padding: 9px 12px 10px; display: grid; gap: 7px; min-width: 0; }
.ay-escena .fp-sec__cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ay-escena .fp-sec__cab h2 { font-size: 12.5px; font-weight: 700; }
.ay-escena .fp-pie { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--k-sup, #FFFFFF); border-top: 1px solid var(--k-borde, #E3DFD6); }
.ay-escena .fp-linea { font-size: 10.5px; color: var(--k-texto2, #55555F); }
.ay-escena .fp-panel-borde { border: 1.5px solid var(--k-info, #3A3C8C); border-radius: 12px; background: var(--k-sup, #FFFFFF); padding: 9px 12px; display: grid; gap: 7px; }

/* ---------- odontograma ---------- */
.ay-escena .fp-linea-form { max-width: 440px; }
.ay-escena .fp-odlinea { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px; border: 1.5px solid var(--k-borde-control, #707196); border-radius: 9px; background: #FFFFFF; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ay-escena .fp-odlinea > .k-ic { color: var(--k-texto2, #55555F); }
.ay-escena .fp-odlinea i { font-style: normal; }
.ay-escena .fp-odlinea .ph { font-weight: 400; }
.ay-escena .fp-odlinea.escribiendo { border-color: #3A3C8C; box-shadow: 0 0 0 3px rgba(58, 60, 140, .18); }
.ay-escena .fp-odlinea.presionado { border-color: #3A3C8C; }
.ay-escena .fp-lectura { font-size: 10.5px; min-height: 15px; }
.ay-escena .fp-lectura b { font-weight: 700; color: var(--k-texto, #1D1D24); }
.ay-escena .fp-ok { color: var(--k-exito, #167A52); display: inline-flex; vertical-align: -2px; }
.ay-escena .fp-ok .k-ic { width: 13px; height: 13px; stroke-width: 3; }
.ay-escena .fp-odrej { display: grid; gap: 10px; align-items: start; }
.ay-escena .fp-odrej--lado { grid-template-columns: minmax(0, 1fr) 244px; }
.ay-escena .fp-odcaja { background: #FFFFFF; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 12px; padding: 4px; }
.ay-escena .fp-boca { display: block; width: 100%; height: auto; }
.ay-escena .fp-boca__n { font-size: 10px; font-weight: 600; fill: #55555F; text-anchor: middle; }
.ay-escena .fp-boca__n.sel { font-weight: 800; fill: #1D1D24; }
.ay-escena .fp-boca__etq { font-size: 9.5px; font-weight: 800; dominant-baseline: auto; }
.ay-escena .fp-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 9.5px; color: var(--k-texto2, #55555F); align-items: center; }
.ay-escena .fp-leyenda > span { display: inline-flex; align-items: center; gap: 4px; }
.ay-escena .fp-cod { display: inline-grid; place-items: center; min-width: 26px; height: 16px; padding: 0 3px; border-radius: 4px; border: 1.5px solid currentColor; background: #FFFFFF; font-size: 8.5px; font-weight: 800; letter-spacing: .02em; line-height: 1; flex: none; }
.ay-escena .fp-cod--existente { color: #1F5FBF; border-style: solid; }
.ay-escena .fp-cod--hallazgo { color: #C8323C; border: 3px double currentColor; }
.ay-escena .fp-cod--realizado { color: #167A52; border-style: dotted; border-width: 2px; }
.ay-escena .fp-cod--borrador, .ay-escena .fp-cod--pend { color: #C8323C; border: 1.5px dashed currentColor; }
.ay-escena .fp-dia { display: grid; gap: 1px; padding: 5px 9px; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 9px; background: #FFFFFF; font-size: 10px; }
.ay-escena .fp-dia b { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; }
.ay-escena .fp-dia small { color: var(--k-texto2, #55555F); font-size: 9.5px; }
.ay-escena .fp-dia.on { border-color: #3A3C8C; background: var(--k-info-suave, #ECECF7); }
.ay-escena .fp-dia .k-ic { width: 12px; height: 12px; }
.ay-escena .fp-fecha { height: 24px; font-size: 10px; }
.ay-escena .fp-panel { background: #FFFFFF; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 12px; padding: 9px 10px 10px; display: grid; gap: 9px; align-content: start; font-size: 10.5px; }
.ay-escena .fp-diente { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 30px); gap: 3px; }
.ay-escena .fp-cara { display: grid; place-items: center; align-content: center; border: 1.5px solid #707196; border-radius: 6px; background: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1; gap: 1px; }
.ay-escena .fp-cara small { font-size: 7.5px; font-weight: 800; padding: 0 2px; border-radius: 3px; background: #FFFFFF; color: #1D1D24; }
.ay-escena .fp-cara--arriba { grid-area: 1 / 2; }
.ay-escena .fp-cara--izquierda { grid-area: 2 / 1; }
.ay-escena .fp-cara--centro { grid-area: 2 / 2; }
.ay-escena .fp-cara--derecha { grid-area: 2 / 3; }
.ay-escena .fp-cara--abajo { grid-area: 3 / 2; }
.ay-escena .fp-cara.on { outline: 3px solid #3A3C8C; outline-offset: 0; background: #E9E9EF; }
.ay-escena .fp-cara.con-hallazgo { background: repeating-linear-gradient(45deg, #C8323C 0 2px, #FBDFE1 2px 5px); color: #1D1D24; }
.ay-escena .fp-cara.con-existente { background: #1F5FBF; color: #FFFFFF; }
.ay-escena .fp-cara.con-realizado { background: #D9F0E6 radial-gradient(circle, #167A52 1.1px, transparent 1.4px) 0 0 / 5px 5px; }
.ay-escena .fp-paleta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.ay-escena .fp-opcion { display: flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 5px; border: 1px solid var(--k-borde-fuerte, #C8C8D7); border-radius: 8px; background: #FFFFFF; font-size: 10px; font-weight: 600; line-height: 1.15; min-width: 0; }
.ay-escena .fp-panel .k-seg { display: flex; }
.ay-escena .fp-panel .k-seg > * { flex: 1; justify-content: center; text-align: center; line-height: 1.15; }

/* ---------- ficha de salud ---------- */
.ay-escena .fp-sps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ay-escena .fp-sp { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; padding: 7px 10px; background: #FFFFFF; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 10px; }
.ay-escena .fp-sp__n { width: 18px; height: 18px; border-radius: 50%; background: var(--k-sup2, #F4F4F7); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: var(--k-texto2, #55555F); }
.ay-escena .fp-sp__c { display: grid; gap: 5px; min-width: 0; }
.ay-escena .fp-sp__t { font-size: 11px; font-weight: 600; }
.ay-escena .fp-sp .k-campo { max-width: 320px; }
.ay-escena .fp-opc { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 1.5px solid var(--k-borde-control, #707196); border-radius: 8px; background: #FFFFFF; font-size: 10.5px; font-weight: 600; transition: background .2s, color .2s; }
.ay-escena .fp-opc .k-tecla { min-width: 14px; height: 14px; font-size: 8.5px; }
.ay-escena .fp-opc.on { background: #23255E; border-color: #23255E; color: #FFFFFF; }
.ay-escena .fp-opc.on .k-tecla { background: rgba(255, 255, 255, .16); color: #FFFFFF; border-color: rgba(255, 255, 255, .4); }
.ay-escena .fp-acepto { display: grid; gap: 6px; padding: 10px 12px; background: #FFFFFF; border: 1.5px solid var(--k-borde-control, #707196); border-radius: 12px; font-size: 10.5px; }
.ay-escena .fp-acepto p { margin: 0; color: var(--k-texto2, #55555F); }
.ay-escena .fp-salud-enlace { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ay-escena .fp-enlace-fam { display: grid; gap: 7px; }
.ay-escena .fp-wa-texto { margin: 0; padding: 7px 9px; border-radius: 9px; background: #DCF8C6; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.ay-escena .fp-wa-enlace { color: #027EB5; text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- lo que ve la familia (resources/views/familia) ---------- */
.ay-escena .fp-fam { min-height: 100%; padding: 6px 12px 16px; display: grid; gap: 10px; align-content: start; background: #FAF8F4; color: #1D1D24; font-size: 12.5px; line-height: 1.45; }
.ay-escena .fp-fam__cab { display: grid; justify-items: center; gap: 4px; padding: 6px 0 2px; }
.ay-escena .fp-fam__clinica { margin: 0; color: #23255E; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.ay-escena .fp-fam__tarjeta { background: #FFFFFF; border: 1px solid #E3DFD6; border-radius: 14px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 1px 2px rgba(13, 14, 36, .06); }
.ay-escena .fp-fam__tarjeta h1 { font-size: 16px; line-height: 1.25; font-weight: 800; color: #1D1D24; }
.ay-escena .fp-fam__tarjeta h2 { font-size: 14px; font-weight: 800; }
.ay-escena .fp-fam__tarjeta p { margin: 0; }
.ay-escena .fp-fam__paso { color: #55555F; font-size: 11px; margin: 0; }
.ay-escena .fp-fam__prog { height: 6px; border-radius: 3px; background: #E3DFD6; overflow: hidden; }
.ay-escena .fp-fam__prog i { display: block; height: 100%; background: #23255E; }
.ay-escena .fp-fam__et { font-weight: 600; font-size: 12px; margin-top: 2px; }
.ay-escena .fp-fam__campo { display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1.5px solid #707196; border-radius: 10px; background: #FFFFFF; font-size: 13px; overflow: hidden; white-space: nowrap; }
.ay-escena .fp-fam__campo.escribiendo { border-color: #23255E; box-shadow: 0 0 0 3px rgba(35, 37, 94, .18); }
.ay-escena .fp-fam__radio, .ay-escena .fp-fam__casilla { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 11px; border: 1.5px solid #E3DFD6; border-radius: 10px; font-size: 12.5px; line-height: 1.35; }
.ay-escena .fp-fam__radio::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #707196; flex: none; background: #FFFFFF; }
.ay-escena .fp-fam__radio.on { border-color: #23255E; }
.ay-escena .fp-fam__radio.on::before { border-color: #23255E; box-shadow: inset 0 0 0 4px #FFFFFF; background: #23255E; }
.ay-escena .fp-fam__casilla::before { content: ""; width: 18px; height: 18px; border-radius: 4px; border: 2px solid #707196; flex: none; background: #FFFFFF; }
.ay-escena .fp-fam__casilla.on::before { background: #23255E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; border-color: #23255E; }
.ay-escena .fp-fam__bots { display: flex; gap: 8px; margin-top: 4px; }
.ay-escena .fp-fam__bots > * { flex: 1; }
.ay-escena .fp-fam__btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 11px; background: #23255E; color: #FFFFFF; font-weight: 700; font-size: 13px; border: 1.5px solid #23255E; }
.ay-escena .fp-fam__btn--sec { background: #FFFFFF; color: #1D1D24; border-color: #707196; }
.ay-escena .fp-fam__btn--acento { background: #FF6B57; border-color: #FF6B57; color: #1D1D24; }
.ay-escena .fp-fam__btn--bloque { width: 100%; }
.ay-escena .fp-fam__ayuda { color: #55555F; font-size: 11px; margin: 0; }
.ay-escena .fp-fam__doc { white-space: pre-wrap; line-height: 1.55; font-size: 12px; padding: 10px 12px; border-radius: 10px; background: #F4F4F7; }
.ay-escena .fp-fam__aviso { border: 1.5px solid #167A52; background: #EEF8F3; color: #0F4F36; border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.ay-escena .fp-fam__pie { text-align: center; color: #55555F; font-size: 11px; padding: 6px 4px 0; display: grid; gap: 4px; }
.ay-escena .fp-fam__pie p { margin: 0; }
.ay-escena .fp-fam__marca { color: #8A8A96; font-size: 10px; }

/* ---------- periodontograma ---------- */
.ay-escena .fp-cifras { display: flex; gap: 8px; flex-wrap: wrap; }
.ay-escena .fp-cifras > div { display: grid; gap: 0; padding: 3px 9px; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 9px; background: #FFFFFF; font-size: 9.5px; color: var(--k-texto2, #55555F); min-width: 92px; }
.ay-escena .fp-cifras strong { font-size: 13px; line-height: 1.2; color: var(--k-texto, #1D1D24); font-variant-numeric: tabular-nums; }
.ay-escena .fp-pcaja { overflow: hidden; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 10px; background: #FFFFFF; }
.ay-escena .fp-ptabla { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 9.5px; }
.ay-escena .fp-ptabla caption { text-align: left; font-size: 10px; font-weight: 700; padding: 4px 8px 2px; caption-side: top; }
.ay-escena .fp-ptabla th { font-weight: 700; font-size: 9.5px; padding: 2px 0; text-align: center; color: var(--k-texto2, #55555F); }
.ay-escena .fp-ptabla th.fp-lado { width: 52px; text-align: left; padding-left: 6px; font-size: 8.5px; }
.ay-escena .fp-ptabla th.fp-lado--mov { font-size: 7.5px; line-height: 1.1; }
.ay-escena .fp-pcol { border-left: 1px solid var(--k-borde, #E3DFD6); }
.ay-escena .fp-pcol.on { background: #E9E9EF; color: #1D1D24; }
.ay-escena .fp-ptabla td { padding: 1px 0; border-top: 1px solid var(--k-borde, #E3DFD6); text-align: center; }
.ay-escena .fp-ptabla td.ini { border-left: 1px solid var(--k-borde, #E3DFD6); }
.ay-escena .fp-pmov { height: 10px; }
.ay-escena [data-p=perio] .fp-cuerpo { gap: 7px; padding-bottom: 8px; }
.ay-escena .fp-pc { display: grid; grid-template-rows: 7px 13px; justify-items: center; align-items: center; margin: 0 1px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.ay-escena .fp-pc__m { display: flex; align-items: center; justify-content: center; height: 7px; font-style: normal; }
.ay-escena .fp-pc__v { font-size: 10px; line-height: 13px; }
.ay-escena .fp-pc--bolsa { background: #FFF3D6; color: #8A5A00; font-weight: 800; }
.ay-escena .fp-pc--prof { background: #B32630; color: #FFFFFF; font-weight: 800; }
.ay-escena .fp-pc--actual { outline: 2.5px solid #3A3C8C; outline-offset: -1px; background: #E9E9EF; }
.ay-escena .fp-pc--recien { outline: 2px dashed #3A3C8C; outline-offset: -1px; }
.ay-escena .fp-sangra { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #B32630; flex: none; }
.ay-escena .fp-supura { display: inline-block; width: 7px; height: 7px; border: 1.5px solid #B07800; transform: rotate(45deg); flex: none; }
.ay-escena .fp-pc--prof .fp-sangra { background: #FFFFFF; }
.ay-escena .fp-pmuestra { display: inline-grid; place-items: center; width: 16px; height: 15px; border-radius: 3px; font-size: 9.5px; }
.ay-escena .fp-pteclado { background: #FFFFFF; border-top: 1px solid var(--k-borde-fuerte, #C8C8D7); padding: 7px 14px 8px; display: grid; gap: 6px; box-shadow: 0 -6px 14px rgba(13, 14, 36, .06); }
.ay-escena .fp-pteclado__estado { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ay-escena .fp-pteclado__estado > .k-btn { margin-left: auto; }
.ay-escena .fp-pteclado__punto { display: flex; align-items: baseline; gap: 6px; margin: 0; min-width: 210px; }
.ay-escena .fp-pteclado__punto strong { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.ay-escena .fp-pteclado__punto > span:not(.k-suave) { font-size: 11px; font-weight: 600; }
.ay-escena .fp-pteclas { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.ay-escena .fp-ptecla { display: grid; justify-items: center; align-content: center; gap: 1px; height: 40px; border: 1.5px solid var(--k-borde-control, #707196); border-radius: 8px; background: #FFFFFF; font-size: 9px; font-weight: 600; text-align: center; line-height: 1.05; padding: 1px; min-width: 0; overflow: hidden; transition: background .15s, color .15s; }
.ay-escena .fp-ptecla--n { font-size: 16px; font-weight: 700; }
.ay-escena .fp-ptecla small { font-size: 8px; font-weight: 600; white-space: nowrap; }
.ay-escena .fp-ptecla b { font-size: 11px; }
.ay-escena .fp-ptecla .k-tecla { min-width: 12px; height: 12px; font-size: 7.5px; padding: 0 2px; }
.ay-escena .fp-ptecla .k-ic { width: 13px; height: 13px; }
.ay-escena .fp-ptecla.on, .ay-escena .fp-ptecla.presionado { background: #23255E; border-color: #23255E; color: #FFFFFF; }
.ay-escena .fp-ptecla.on .fp-sangra { background: #FFFFFF; }
.ay-escena .fp-pteclado__destino { margin: 0; }

/* ---------- evolución, notas y enmiendas ---------- */
.ay-escena .fp-editor { background: #FFFFFF; border: 1.5px solid #3A3C8C; border-radius: 12px; padding: 9px 12px 10px; display: grid; gap: 7px; }
.ay-escena .fp-editor .fp-opc.on { background: #23255E; }
.ay-escena .fp-evodia { display: grid; gap: 5px; }
.ay-escena .fp-evodia h3 { font-size: 10.5px; font-weight: 700; color: var(--k-texto2, #55555F); }
.ay-escena .fp-evolista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ay-escena .fp-evolista > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; align-items: start; }
.ay-escena .fp-evolista time { font-size: 10px; color: var(--k-texto2, #55555F); font-variant-numeric: tabular-nums; padding-top: 7px; }
.ay-escena .fp-nota { border: 1px solid var(--k-borde, #E3DFD6); border-radius: 10px; padding: 7px 10px 8px; display: grid; gap: 4px; background: #FFFFFF; font-size: 10.5px; }
.ay-escena .fp-nota p { margin: 0; }
.ay-escena .fp-nota__campos { margin: 0; display: grid; gap: 3px; }
.ay-escena .fp-nota__campos dt { font-size: 9.5px; font-weight: 700; color: var(--k-texto2, #55555F); }
.ay-escena .fp-nota__campos dd { margin: 0; }
.ay-escena .fp-nota__pie { font-size: 9.5px; color: var(--k-texto2, #55555F); }
.ay-escena .fp-enms { list-style: none; margin: 0; padding: 6px 9px; border-left: 3px solid #3A3C8C; background: var(--k-sup2, #F4F4F7); border-radius: 0 8px 8px 0; display: grid; gap: 2px; }
.ay-escena .fp-enms p { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ay-escena .fp-enms .k-ic { width: 12px; height: 12px; }
.ay-escena .fp-meds { margin: 0; padding-left: 16px; }

/* ---------- receta impresa ---------- */
.ay-escena .fp-med { border: 1px solid var(--k-borde, #E3DFD6); border-radius: 10px; padding: 6px 10px 10px; margin: 0; }
.ay-escena .fp-med legend { font-size: 10.5px; font-weight: 700; padding: 0 4px; }
.ay-escena .fp-doc { min-height: 100%; background: #FFFFFF; color: #1D1D24; padding: 20px 60px 16px; display: grid; gap: 9px; align-content: start; font-size: 11px; font-family: Georgia, "Times New Roman", serif; }
.ay-escena .fp-doc > .k-etq { justify-self: end; font-family: system-ui, sans-serif; margin-top: -4px; }
.ay-escena .fp-doc header { border-bottom: 2px solid #23255E; padding-bottom: 6px; display: flex; align-items: baseline; justify-content: space-between; }
.ay-escena .fp-doc h1 { font-size: 18px; color: #23255E; font-weight: 700; }
.ay-escena .fp-doc header p { margin: 0; color: #55555F; }
.ay-escena .fp-doc dl { display: grid; grid-template-columns: 70px 1fr; gap: 2px 10px; margin: 0; }
.ay-escena .fp-doc dt { color: #55555F; }
.ay-escena .fp-doc dd { margin: 0; }
.ay-escena .fp-doc h2 { font-size: 13px; color: #23255E; }
.ay-escena .fp-doc table { border-collapse: collapse; width: 100%; }
.ay-escena .fp-doc th, .ay-escena .fp-doc td { text-align: left; padding: 5px 7px; border-bottom: 1px solid #C8C8D7; vertical-align: top; }
.ay-escena .fp-doc th { font-size: 10px; color: #55555F; }
.ay-escena .fp-doc p { margin: 0; }
.ay-escena .fp-doc__firma { margin-top: 26px !important; justify-self: end; min-width: 200px; text-align: center; border-top: 1px solid #1D1D24; padding-top: 4px; }
.ay-escena .fp-doc__huella { font-size: 9.5px; color: #55555F; }
.ay-escena .fp-doc footer { border-top: 1px solid #E3DFD6; padding-top: 6px; color: #55555F; font-size: 9.5px; text-align: center; }

/* ---------- imágenes y comparación ---------- */
.ay-escena .fp-etiquetas { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 7px 10px 9px; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 10px; background: #FFFFFF; }
.ay-escena .fp-etiquetas .k-dato { width: 120px; }
.ay-escena .fp-leyenda-campo { width: 100%; font-size: 10px; font-weight: 700; color: var(--k-texto2, #55555F); }
.ay-escena .fp-cola { display: grid; gap: 5px; padding: 8px 10px; border: 1px solid var(--k-borde, #E3DFD6); border-radius: 10px; background: #FFFFFF; font-size: 10.5px; }
.ay-escena .fp-cola__f { display: flex; align-items: center; gap: 8px; }
.ay-escena .fp-cola__f small { display: block; font-size: 9.5px; }
.ay-escena .fp-cola__v { width: 38px; height: 28px; border-radius: 5px; overflow: hidden; flex: none; }
.ay-escena .fp-barra { display: block; width: 80px; height: 5px; border-radius: 3px; background: #E3DFD6; overflow: hidden; margin-bottom: 2px; }
.ay-escena .fp-barra i { display: block; width: 55%; height: 100%; background: #3A3C8C; }
.ay-escena [data-t=cola-e2] { display: grid; justify-items: end; }
.ay-escena .fp-elegir { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 10px; background: var(--k-info-suave, #ECECF7); font-size: 10.5px; }
.ay-escena .fp-elegir > .k-ic { color: #3A3C8C; }
.ay-escena .fp-grupo { display: grid; gap: 5px; }
.ay-escena .fp-grupo h3 { font-size: 10.5px; font-weight: 700; color: var(--k-texto2, #55555F); }
.ay-escena .fp-grupo h3:first-letter { text-transform: uppercase; }
.ay-escena .fp-rejilla-img { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 128px); gap: 8px; }
.ay-escena .fp-celda { border: 1.5px solid var(--k-borde, #E3DFD6); border-radius: 10px; overflow: hidden; background: #FFFFFF; transition: border-color .2s, box-shadow .2s; }
.ay-escena .fp-celda.elegida { border-color: #3A3C8C; box-shadow: 0 0 0 2px #3A3C8C; }
.ay-escena .fp-celda__ver { position: relative; display: block; height: 72px; }
.ay-escena .fp-foto { display: block; width: 100%; height: 100%; }
.ay-escena .fp-puesto { position: absolute; top: 5px; left: 5px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 99px; background: #3A3C8C; color: #FFFFFF; font-size: 10px; font-weight: 800; }
.ay-escena .fp-puesto .k-ic { width: 11px; height: 11px; stroke-width: 3; }
.ay-escena .fp-celda__pie { display: flex; align-items: center; gap: 4px; padding: 4px 7px; font-size: 10px; }
.ay-escena .fp-celda__pie small { display: block; font-size: 9px; }
.ay-escena .fp-celda__pie .crece { flex: 1; min-width: 0; }
.ay-escena .fp-celda__pie .k-ic { width: 12px; height: 12px; }
.ay-escena .fp-visor { position: absolute; inset: 0; z-index: 35; background: #15161B; color: #E6E6F0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.ay-escena .fp-visor.ver { opacity: 1; visibility: visible; transition: opacity .3s; }
.ay-escena .fp-visor__cab { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; }
.ay-escena .fp-visor__par { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; min-height: 0; }
.ay-escena .fp-visor__lado { margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; min-height: 0; }
.ay-escena .fp-visor__lado figcaption { display: flex; align-items: center; gap: 7px; font-size: 10.5px; flex-wrap: wrap; }
.ay-escena .fp-visor__lado figcaption .k-etq { background: #FFFFFF; color: #1D1D24; border-color: transparent; font-weight: 800; }
.ay-escena .fp-visor__zoom { margin-left: auto; color: #A9A9B8; }
.ay-escena .fp-visor__img { border-radius: 8px; overflow: hidden; min-height: 0; background: #000000; }
.ay-escena .fp-visor__pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 10.5px; flex-wrap: wrap; }
.ay-escena .fp-visor__pie .k-check::before { border-color: #A9A9B8; }
.ay-escena .fp-vbtn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); font-size: 10px; font-weight: 600; }
.ay-escena .fp-vbtn .k-ic { width: 13px; height: 13px; }
.ay-escena .fp-vbtn--fan { border-color: transparent; color: #C9CBFF; }

/* ---------- consentimientos ---------- */
.ay-escena .fp-subnav { display: flex; gap: 2px; border-bottom: 1px solid var(--k-borde, #E3DFD6); }
.ay-escena .fp-subnav > span { padding: 4px 10px 6px; font-size: 10.5px; font-weight: 600; color: var(--k-texto2, #55555F); border-bottom: 2.5px solid transparent; }
.ay-escena .fp-subnav > .on { color: var(--k-texto, #1D1D24); border-bottom-color: #23255E; }
.ay-escena .fp-consent { align-items: flex-start; flex-wrap: wrap; padding: 8px 12px; }
.ay-escena .fp-consent__acc { flex: 0 1 auto; justify-content: flex-end; max-width: 100%; }
.ay-escena .fp-texto-previa { padding: 9px 11px; border-radius: 10px; background: var(--k-sup2, #F4F4F7); display: grid; gap: 4px; line-height: 1.5; }
.ay-escena .fp-firma { position: absolute; inset: 0; z-index: 35; background: #FAF8F4; color: #1D1D24; display: grid; grid-template-rows: auto minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.ay-escena .fp-firma.ver { opacity: 1; visibility: visible; transition: opacity .3s; }
.ay-escena .fp-firma__cab { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; background: #FFFFFF; border-bottom: 1px solid #E3DFD6; font-size: 13px; }
.ay-escena .fp-firma__cuerpo { overflow: hidden; padding: 12px 16px; }
.ay-escena .fp-firma__hoja { max-width: 540px; margin: 0 auto; display: grid; gap: 9px; font-size: 11px; }
.ay-escena .fp-firma__hoja p { margin: 0; }
.ay-escena .fp-firma__texto { padding: 10px 12px; background: #FFFFFF; border: 1px solid #E3DFD6; border-radius: 10px; line-height: 1.55; font-size: 11.5px; }
.ay-escena .fp-firma__hoja .k-btn--bloque { height: 40px; font-size: 13px; }
.ay-escena .fp-testigo { display: flex; align-items: flex-start; gap: 6px; padding: 7px 10px; border-radius: 9px; background: var(--k-info-suave, #ECECF7); }
.ay-escena .fp-firma__hecho { justify-items: center; text-align: center; padding-top: 40px; }
.ay-escena .fp-firma__hecho h3 { font-size: 17px; }
.ay-escena .fp-sello { width: 54px; height: 54px; border-radius: 50%; background: var(--k-exito-suave, #E3F3EC); color: #167A52; display: grid; place-items: center; }
.ay-escena .fp-sello .k-ic { width: 28px; height: 28px; stroke-width: 2.6; }
