/* La Poción del Arcoíris — hojas: el recetario ("Todos los datos"), el formulario y las repisas con frasquitos, en páginas de
   papel; el visor de fotos y el aviso del demo. */
.pa .hoja { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; opacity: 0; transition: opacity .22s; }
.pa .hoja.is-in { opacity: 1; }
.pa .hoja.is-out { opacity: 0; pointer-events: none; }
.pa .hoja-fondo { position: absolute; inset: 0; background: rgba(67, 38, 90, .55); }
.pa .hoja .pagina { position: relative; width: 100%; max-height: 90cqh; display: flex; flex-direction: column; padding: 14px 14px calc(12px + var(--safe-b)); transform: translateY(40px); transition: transform .3s cubic-bezier(.2, 1.3, .4, 1); }
.pa .hoja .pagina::after { display: none; }
.pa .hoja.is-in .pagina { transform: none; }
.pa .hoja.is-full .pagina { max-height: 100cqh; height: 100cqh; padding-top: calc(14px + var(--safe-t)); }
.pa .hoja.is-full .pagina::before { display: none; }
.pa .hoja-cabeza { display: flex; align-items: flex-start; gap: 10px; margin: 0 4px 8px; }
.pa .hoja-cabeza.is-solo { justify-content: flex-end; margin-bottom: 4px; }
.pa .hoja-titulos { flex: 1; min-width: 0; padding-top: 2px; }
.pa .hoja-k { margin: 0 0 1px; font: 700 14px/1.2 var(--f-texto); color: var(--rosa-d); }
.pa .hoja h2 { margin: 0; font: 800 clamp(24px, 6.8cqw, 29px)/1.08 var(--f-titulo); }
.pa .hoja-x { flex: none; }
.pa .hoja-cuerpo { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 6px 8px; font: 600 16px/1.35 var(--f-texto); -webkit-overflow-scrolling: touch; }

/* el recetario */
.pa .rc-lead { margin: 0 0 8px; font: 800 22px/1.15 var(--f-titulo); color: var(--rosa-d); }
.pa .rc-sec { padding: 10px 0; border-top: 2px dashed rgba(67, 38, 90, .4); display: flex; flex-direction: column; gap: 8px; }
.pa .rc-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 19px/1.15 var(--f-titulo); }
.pa .rc-sec p { margin: 0; }
.pa .rc-sec .rc-ic { display: inline-flex; color: var(--rosa); }
.pa .rc-big { font: 700 19px/1.2 var(--f-texto); }
.pa .rc-cta { padding-top: 12px; }
.pa .limite { margin: 8px 0 0; text-align: center; font: 700 14.5px/1.3 var(--f-texto); color: var(--tinta-2); }
.pa .rc-anfitriones { margin: 10px 0 0; text-align: center; font: 700 15px/1.3 var(--f-texto); }
.pa .rc-faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.pa .regalos { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pa .regalos li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; background: #FFFDF6; box-shadow: 0 0 0 2px rgba(67, 38, 90, .4); }
.pa .regalos li.is-destacado { background: #FFE9A8; box-shadow: 0 0 0 2px var(--oro-d); }
.pa .rg-txt { display: flex; flex-direction: column; }
.pa .rg-txt small { font: 500 14px/1.25 var(--f-texto); }
.pa .fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa .foto { position: relative; padding: 6px 6px 8px; border: 0; background: #fff; box-shadow: 0 0 0 2px rgba(67, 38, 90, .5), 2px 3px 0 2px rgba(67, 38, 90, .2); cursor: pointer; text-align: center; font: 700 14px/1.2 var(--f-texto); }
.pa .foto:nth-child(odd) { transform: rotate(-1.2deg); }
.pa .foto:nth-child(even) { transform: rotate(1deg); }
.pa .foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* formulario */
.pa .fm { display: flex; flex-direction: column; gap: 9px; }
.pa .fm-vista { display: flex; justify-content: center; min-height: 138px; }
.pa .fm-vista-b { display: inline-flex; align-items: flex-end; transform-origin: 50% 100%; animation: pa-bambolea 2.8s ease-in-out infinite; }
@keyframes pa-bambolea { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.pa .fm-l { display: flex; justify-content: space-between; margin: 0; font: 700 15.5px/1.2 var(--f-texto); }
.pa .fm-cuenta { font-weight: 500; color: var(--tinta-2); }
.pa .fm input, .pa .fm textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 6px; background: #fff; color: var(--tinta); font: 700 17px/1.25 var(--f-texto); box-shadow: inset 0 0 0 2px var(--tinta); resize: vertical; }
.pa .fm input::placeholder { color: var(--tinta-2); font-weight: 500; }
.pa .fm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa .fm-seg-b { min-height: 48px; border: 0; border-radius: 8px; padding: 6px 8px; background: #FFFDF6; box-shadow: inset 0 0 0 2px var(--tinta); font: 700 15.5px/1.15 var(--f-texto); cursor: pointer; }
.pa .fm-seg-b[aria-checked="true"] { color: #fff; background: var(--rosa-d); box-shadow: inset 0 0 0 2px var(--tinta), 0 2px 0 var(--tinta); }
.pa .fm-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa .fm-personas[hidden], .pa .fm-bloque[hidden] { display: none; }
.pa .fm-paso { display: flex; flex-direction: column; gap: 4px; align-items: center; font: 700 15px/1.2 var(--f-texto); }
.pa .fm-paso-c { display: flex; align-items: center; gap: 6px; }
.pa .fm-paso-c output { min-width: 28px; text-align: center; font: 800 25px/1 var(--f-titulo); }
.pa .fm-mas { width: 46px; height: 46px; }
.pa .fm-bloque { display: flex; flex-direction: column; gap: 5px; }
.pa .fm-colores { display: flex; justify-content: space-between; gap: 2px; }
.pa .fm-color { min-width: 46px; min-height: 60px; padding: 2px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; line-height: 0; }
.pa .fm-color[aria-checked="true"] { background: #FFE9A8; box-shadow: inset 0 0 0 3px var(--tinta); }
.pa .fm-error { margin: 0; min-height: 1.3em; color: #A0163F; font: 700 15px/1.25 var(--f-texto); }

/* las repisas */
.pa .re-sub { margin: 0 0 8px; font: 600 15.5px/1.3 var(--f-texto); }
.pa .re-muro { position: relative; overflow: hidden; padding: 8px 8px 104px; border-radius: 10px; background: radial-gradient(70% 40% at 50% 10%, #FFF3D0, rgba(255, 243, 208, 0) 75%), linear-gradient(180deg, #FFE2D4, #FFD6E0); box-shadow: inset 0 0 0 2px var(--tinta); }
.pa .re-filas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pa .re-fila { position: relative; padding-top: 2px; }
.pa .re-tiras { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; justify-content: space-evenly; min-height: 124px; }
.pa .re-tabla { display: block; height: 12px; margin: 0 -4px; border-radius: 3px; background: linear-gradient(180deg, #E6B98A, var(--corcho)); box-shadow: 0 0 0 2px var(--tinta), 0 5px 0 2px rgba(67, 38, 90, .15); }
.pa .fq { position: relative; display: block; line-height: 0; transform-origin: 50% 100%; }
.pa .fq-v { display: block; line-height: 0; }
.pa .fq.is-mio .fq-v { filter: drop-shadow(0 0 8px #FFD23F); }
.pa .fq.is-espera { opacity: 0; }
.pa .fq.is-sube { animation: pa-fq-sube 1.55s cubic-bezier(.3, .1, .3, 1) both; z-index: 3; }
.pa .fq.is-sube .fq-liquido { animation: pa-fq-llena .9s .1s ease-out both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pa-fq-sube { 0% { transform: translate(var(--vx), var(--vy)) scale(.45); opacity: 0; } 12% { opacity: 1; } 58% { transform: translate(var(--vx), calc(var(--vy) - 16px)) scale(.8); } 86% { transform: translate(0, -14px) scale(1.1); } 100% { transform: none; } }
@keyframes pa-fq-llena { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
.pa .re-caldero { position: absolute; left: 50%; bottom: 8px; margin-left: -60px; line-height: 0; }
.pa .re-caldero .rc-b { opacity: 0; }
.pa .re-caldero.is-burbujea .rc-b { animation: pa-rc-b 1s ease-out 2; transform-box: fill-box; }
.pa .re-caldero.is-burbujea .b2 { animation-delay: .22s; } .pa .re-caldero.is-burbujea .b3 { animation-delay: .4s; }
@keyframes pa-rc-b { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-32px) scale(1.2); } }
.pa .re-cuenta { margin: 9px 0; text-align: center; font: 700 17px/1.2 var(--f-texto); }
.pa .re-cuenta strong { font: 800 30px/1 var(--f-titulo); color: var(--rosa-d); }
.pa .re-lista, .pa .re-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pa .re-lista li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1.5px dotted rgba(67, 38, 90, .4); }
.pa .rl-f { line-height: 0; }
.pa .rl-nombre { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pa .rl-meta { font: 500 14px/1.2 var(--f-texto); color: var(--tinta-2); }
.pa .re-h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font: 800 19px/1.15 var(--f-titulo); }
.pa .re-msgs li { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 6px; background: #FFFDF6; box-shadow: 0 0 0 2px rgba(67, 38, 90, .35); }
.pa .re-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-right: 10px; }
.pa .re-acciones > * { flex: 1 1 150px; }

/* aviso del demo */
.pa .demo-nota .hoja-cuerpo { display: flex; flex-direction: column; gap: 10px; text-align: center; font-weight: 700; }
.pa .demo-ic { margin: 0; color: var(--rosa); line-height: 0; }
.pa .demo-nota p { margin: 0; }

/* visor de fotos */
.pa .visor .hoja-cuerpo { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--tinta); color: var(--papel); border-radius: 6px; }
.pa .visor-fig { margin: 0; text-align: center; }
.pa .visor-img { display: block; max-width: 100%; max-height: 70cqh; margin: auto; box-shadow: 0 0 0 5px #fff; }
.pa .visor-pie { margin: 12px 0 0; font: 700 17px/1.2 var(--f-texto); }
.pa .visor-ant, .pa .visor-sig { position: absolute; bottom: 12px; }
.pa .visor-ant { left: 12px; transform: scaleX(-1); }
.pa .visor-sig { right: 12px; }
@media (prefers-reduced-motion: reduce) { .pa .fm-vista-b { animation: none; } }
.pa.rm .fm-vista-b { animation: none; }
