/* La Isla del Tesoro — hojas de pergamino: bitácora (todos los datos), formulario de la moneda, el cofre de los invitados,
   visor de fotos y aviso de demo. Todo cuelga de html.it. */
.it .sheet { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.it .sheet-scrim { position: absolute; inset: 0; background: rgba(28, 16, 6, .58); opacity: 0; transition: opacity .25s; }
.it .sheet.is-in .sheet-scrim { opacity: 1; }
.it .sheet-card { position: relative; width: 100%; max-height: 90cqh; display: flex; flex-direction: column; border: 12px solid transparent; border-bottom-width: 0; border-image: var(--pergamino) 72 fill / 28px 28px 0 / 0 stretch; padding: 8px 8px 0; transform: translateY(105%); transition: transform .34s cubic-bezier(.2, .9, .25, 1); }
.it .sheet.is-full .sheet-card { max-height: 95cqh; height: 95cqh; }
.it .sheet.is-in .sheet-card { transform: none; }
.it .sheet.is-out .sheet-card { transform: translateY(105%); }
.it .sheet.is-out .sheet-scrim { opacity: 0; }
.it .sheet-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 6px 6px; }
.it .sheet-tit { flex: 1; min-width: 0; }
.it .sheet-k { margin: 0; font: 800 14px/1.25 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--lacre-2); }
.it .sheet-head h2 { margin: 0; font: 400 27px/1.08 var(--f-display); color: var(--tinta); }
.it .sheet-head.is-bare { justify-content: flex-end; }
.it .sheet-body { overflow: auto; overscroll-behavior: contain; padding: 2px 6px calc(var(--safe-b) + 14px); }
.it .demo-note .sheet-body { text-align: center; font: 500 18px/1.4 var(--f-body); display: grid; gap: 12px; }
.it .demo-ic { margin: 0; color: var(--lacre); display: grid; place-items: center; }

/* bitácora */
.it .datos .dt-lead { margin: 0 0 8px; font: 400 21px/1.25 var(--f-display); color: var(--lacre-2); }
.it .dt-sec { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 2px dotted var(--oro-2); }
.it .dt-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 400 21px var(--f-display); color: var(--tinta); }
.it .dt-sec h3 .bi { display: inline-flex; color: var(--lacre); }
.it .dt-sec p { margin: 0; font: 500 17.5px/1.4 var(--f-body); }
.it .dt-big { font-weight: 800 !important; font-size: 19px !important; }
.it .regalos { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.it .regalos li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1.5px dotted rgba(90, 52, 8, .5); }
.it .regalos li.is-dest { background: rgba(165, 34, 43, .1); border-radius: 8px; }
.it .rg-txt { flex: 1; display: flex; flex-direction: column; font: 700 17px/1.3 var(--f-body); }
.it .rg-txt small { font: 500 16px/1.25 var(--f-body); color: var(--tinta-2); }
.it .dt-faq { border-bottom: 1.5px dotted rgba(90, 52, 8, .5); padding: 4px 2px; }
.it .dt-faq summary { font: 700 17px var(--f-body); cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.it .dt-faq p { margin: 2px 0 6px; color: var(--tinta); }
.it .dt-cta { padding-top: 12px; }
.it .dt-hosts { margin: 12px 0 0; text-align: center; font: 500 16.5px var(--f-body); color: var(--tinta-2); }
.it .fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.it .foto { display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 4px; border: 0; background: #FFFAEC; cursor: pointer; box-shadow: 0 1px 4px rgba(50, 30, 10, .4); transform: rotate(-1deg); }
.it .foto:nth-child(even) { transform: rotate(1.2deg); }
.it .foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.it .foto span { font: 500 15.5px var(--f-body); color: var(--tinta); }

/* visor */
.it .viewer { background: none; }
.it .viewer .sheet-body { position: relative; flex: 1; display: grid; place-items: center; }
.it .viewer-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 8px 6px; background: #FFFAEC; box-shadow: 0 2px 8px rgba(50, 30, 10, .5); }
.it .viewer-img { max-width: calc(100cqw - 96px); max-height: calc(100cqh - 230px); object-fit: contain; }
.it .viewer-cap { margin: 0; color: var(--tinta); font: 400 21px var(--f-display); }
.it .viewer-prev, .it .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.it .viewer-prev { left: 0; } .it .viewer-prev svg { transform: scaleX(-1); }
.it .viewer-next { right: 0; }

/* formulario */
.it .fm { display: flex; flex-direction: column; gap: 8px; }
.it .fm-vista { display: grid; place-items: center; padding: 2px 0 4px; }
.it .fm-vista-m { display: inline-flex; animation: it-flota 3s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(80, 44, 10, .4)); }
@keyframes it-flota { 50% { transform: translateY(-4px) rotate(2deg); } }
.it .fm-l { margin: 2px 0 0; font: 700 17px var(--f-body); display: flex; justify-content: space-between; color: var(--tinta); }
.it .fm input, .it .fm textarea { width: 100%; min-height: 48px; padding: 8px 12px; border: 2px solid var(--oro-2); border-radius: 10px; background: #FFFAEC; font: 500 18px var(--f-body); color: var(--tinta); }
.it .fm input::placeholder, .it .fm textarea::placeholder { color: #7A5C3A; }
.it .fm input:focus, .it .fm textarea:focus { border-color: var(--lacre); box-shadow: 0 0 0 3px rgba(165, 34, 43, .25); outline: none; }
.it .fm textarea { resize: vertical; }
.it .fm-count { font-weight: 500; color: var(--tinta-2); }
.it .fm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.it .fm-seg-b { min-height: 48px; border: 2px solid var(--oro-2); border-radius: 12px 16px 12px 16px; background: #FFFAEC; font: 700 17px var(--f-body); cursor: pointer; color: var(--tinta); }
.it .fm-seg-b[aria-checked="true"] { background: radial-gradient(120% 130% at 36% 26%, #C93C43, var(--lacre) 50%, var(--lacre-2)); color: #FFF3DC; border-color: var(--lacre-2); }
.it .fm-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.it .fm-personas[hidden], .it .fm-bloque[hidden] { display: none; }
.it .fm-step { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-bottom: 2px dotted var(--oro-2); }
.it .fm-step-l { font: 700 16px var(--f-body); color: var(--tinta-2); }
.it .fm-step-c { display: flex; align-items: center; gap: 10px; }
.it .fm-step-c output { min-width: 28px; text-align: center; font: 400 30px var(--f-display); color: var(--tinta); }
.it .step-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--oro-2); background: #FFFAEC; color: var(--lacre-2); cursor: pointer; }
.it .fm-colores { display: flex; flex-wrap: wrap; gap: 8px; }
.it .fm-sw { width: 50px; height: 50px; padding: 3px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.it .fm-sw svg { display: block; }
.it .fm-sw[aria-checked="true"] { box-shadow: 0 0 0 3px var(--lacre); }
.it .fm-err { margin: 0; min-height: 1.2em; font: 700 16.5px var(--f-body); color: var(--lacre-2); }

/* el cofre de los invitados */
.it .cofre-hoja .sheet-body { display: flex; flex-direction: column; gap: 10px; }
.it .cofre-invitados { position: relative; flex: none; width: 100%; aspect-ratio: 1 / .94; max-height: 50cqh; overflow: hidden; border-radius: 10px; background: radial-gradient(90% 60% at 50% 110%, #FFD86B 0%, rgba(255, 216, 107, 0) 70%), linear-gradient(#7CD9E0, #39B6CE 60%, #1E9BC4); box-shadow: inset 0 0 0 2px var(--oro-2); }
.it .ci-tapa { position: absolute; left: 5%; right: 5%; bottom: 25%; height: 42%; line-height: 0; }
.it .ci-tapa svg, .it .ci-frente svg { width: 100%; height: 100%; display: block; }
.it .ci-frente { position: absolute; left: 3%; right: 3%; bottom: 0; height: 31%; line-height: 0; z-index: 40; filter: drop-shadow(0 -3px 3px rgba(40, 20, 8, .4)); }
.it .mc-lista { position: absolute; left: 7%; right: 7%; top: 0; bottom: 23%; margin: 0; padding: 0; list-style: none; z-index: 20; }
.it .mc { position: absolute; left: var(--x); bottom: var(--y); width: 0; height: 0; z-index: var(--z); }
.it .mc-gira { position: absolute; left: 0; bottom: 0; display: block; width: clamp(70px, 23cqw, 92px); height: clamp(70px, 23cqw, 92px); transform: translate(-50%, 34%) rotate(var(--r)); filter: drop-shadow(0 3px 2px rgba(50, 26, 4, .5)); }
.it .mc-gira svg { width: 100%; height: 100%; display: block; }
.it .mc.is-mia .mc-gira { filter: drop-shadow(0 0 6px #FFF2B0) drop-shadow(0 3px 2px rgba(50, 26, 4, .5)); }
/* la moneda del invitado cae girando (eje vertical) y rebota al llegar */
.it .mc.is-cae { animation: it-cae 1.05s .42s cubic-bezier(.5, 0, .9, .6) both; }
.it .mc.is-cae .mc-gira { animation: it-gira 1.05s .42s linear both; }
@keyframes it-cae { 0% { transform: translateY(-340px); } 74% { transform: translateY(0); } 86% { transform: translateY(-20px); } 100% { transform: translateY(0); } }
@keyframes it-gira { 0% { transform: translate(-50%, 34%) rotateY(0deg) rotate(var(--r)); } 80% { transform: translate(-50%, 34%) rotateY(1080deg) rotate(var(--r)); } 100% { transform: translate(-50%, 34%) rotateY(1080deg) rotate(var(--r)); } }
.it .cofre-cuenta { margin: 0; text-align: center; font: 500 18px var(--f-body); color: var(--tinta); }
.it .cofre-cuenta strong { font: 400 32px var(--f-display); color: var(--lacre-2); }
.it .cofre-nombres { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.it .cofre-nombres li { display: flex; align-items: center; gap: 8px; padding: 4px 4px; border-bottom: 1.5px dotted rgba(90, 52, 8, .5); }
.it .cn-m { display: inline-flex; }
.it .cn-nombre { flex: 1; min-width: 0; font: 700 17px/1.2 var(--f-body); }
.it .cn-meta { font: 500 15.5px/1.2 var(--f-body); color: var(--tinta-2); text-align: right; }
.it .cofre-vacio { margin: 0; text-align: center; font: 500 17px var(--f-body); }
.it .cofre-h3 { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font: 400 21px var(--f-display); }
.it .cofre-h3 .bi { display: inline-flex; color: var(--lacre); }
.it .cofre-msgs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.it .cofre-msgs li { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-left: 3px solid var(--lacre); font: 500 17px/1.3 var(--f-body); }
.it .cofre-acciones { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.it .cofre-acciones > * { flex: 1 1 150px; }
