/* El Hechizo de las Estrellas — hojas: "Todos los datos", el formulario y el cielo de invitados, en cartas estelares azul noche;
   el visor de fotos y el aviso del demo. */
.he .carta { position: relative; background: rgba(9, 14, 46, .96); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .75), inset 0 0 0 5px rgba(9, 14, 46, .4), inset 0 0 0 6px rgba(255, 217, 138, .28), 0 20px 44px rgba(2, 3, 20, .6); }
.he .fin.carta { position: absolute; background: rgba(9, 14, 46, .9); }

.he .hoja { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; opacity: 0; transition: opacity .22s; }
.he .hoja.is-in { opacity: 1; }
.he .hoja.is-out { opacity: 0; pointer-events: none; }
.he .hoja-fondo { position: absolute; inset: 0; background: rgba(4, 6, 30, .68); }
.he .hoja .carta { width: 100%; max-height: 90cqh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; padding: 14px 12px calc(12px + var(--safe-b)); transform: translateY(40px); transition: transform .3s cubic-bezier(.2, 1.15, .35, 1); }
.he .hoja.is-in .carta { transform: none; }
.he .hoja.is-full .carta { max-height: 100cqh; height: 100cqh; border-radius: 0; padding-top: calc(14px + var(--safe-t)); background: var(--noche); }
.he .hoja .constelado { border-radius: inherit; }
.he .hoja-cabeza { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0 4px 10px; color: var(--crema); }
.he .hoja-cabeza.is-solo { justify-content: flex-end; margin-bottom: 4px; }
.he .hoja-titulos { flex: 1; min-width: 0; padding-top: 2px; }
.he .hoja-k { margin: 0 0 3px; font: 800 13.5px/1.25 var(--f-texto); letter-spacing: .07em; text-transform: uppercase; color: var(--oro); }
.he .hoja h2 { margin: 0; font: 700 clamp(23px, 6.6cqw, 28px)/1.1 var(--f-grabado); color: var(--crema); }
.he .hoja-x { flex: none; width: 46px; height: 46px; }
.he .hoja-cuerpo { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 4px 2px; font: 500 16px/1.35 var(--f-texto); color: var(--texto); -webkit-overflow-scrolling: touch; }

/* todos los datos */
.he .tb-lead { margin: 0 0 8px; font: 700 21px/1.2 var(--f-grabado); color: var(--oro); }
.he .tb-sec { padding: 10px 0; border-top: 1px dashed rgba(255, 217, 138, .4); display: flex; flex-direction: column; gap: 8px; }
.he .tb-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 18px/1.15 var(--f-grabado); color: var(--crema); }
.he .tb-sec p { margin: 0; }
.he .tb-ic { display: inline-flex; color: var(--oro); }
.he .tb-big { font: 800 19px/1.2 var(--f-texto); color: var(--crema); }
.he .tb-cta { padding-top: 12px; }
.he .limite { margin: 8px 0 0; text-align: center; font: 700 14.5px/1.3 var(--f-texto); color: var(--oro); }
.he .tb-anfitriones { margin: 10px 0 0; text-align: center; font: 700 15px/1.3 var(--f-texto); color: var(--texto); }
.he .tb-faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; cursor: pointer; color: var(--crema); }
.he .regalos { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.he .regalos li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 233, 180, .08); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .32); }
.he .regalos li.is-destacado { background: rgba(255, 217, 138, .16); box-shadow: inset 0 0 0 1.5px var(--oro); }
.he .rg-txt { display: flex; flex-direction: column; color: var(--crema); }
.he .rg-txt small { font: 500 14px/1.25 var(--f-texto); color: var(--texto); }
.he .fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.he .foto { position: relative; padding: 6px 6px 8px; border: 0; border-radius: 12px; background: rgba(255, 247, 226, .95); box-shadow: 0 0 0 1px var(--oro), 0 6px 12px rgba(2, 3, 20, .4); cursor: pointer; text-align: center; font: 700 14px/1.2 var(--f-texto); color: var(--tinta); }
.he .foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }

/* formulario */
.he .fm { display: flex; flex-direction: column; gap: 9px; }
.he .fm-vista { display: flex; justify-content: center; min-height: 138px; }
.he .fm-vista-b { display: inline-flex; align-items: flex-start; animation: he-titila 2.6s ease-in-out infinite; }
@keyframes he-titila { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.he .fm-l { display: flex; justify-content: space-between; margin: 0; font: 800 15.5px/1.2 var(--f-texto); color: var(--crema); }
.he .fm-cuenta { font-weight: 500; color: var(--texto); }
.he .fm input, .he .fm textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--crema); color: var(--tinta); font: 700 17px/1.25 var(--f-texto); box-shadow: inset 0 0 0 2px var(--oro-d); resize: vertical; }
.he .fm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.he .fm-seg-b { min-height: 48px; border: 0; border-radius: 24px; padding: 6px 8px; background: rgba(255, 233, 180, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 217, 138, .55); font: 800 15.5px/1.15 var(--f-texto); color: var(--crema); cursor: pointer; }
.he .fm-seg-b[aria-checked="true"] { color: var(--tinta); background: var(--oro); }
.he .fm-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.he .fm-personas[hidden], .he .fm-bloque[hidden] { display: none; }
.he .fm-paso { display: flex; flex-direction: column; gap: 4px; align-items: center; font: 800 15px/1.2 var(--f-texto); color: var(--crema); }
.he .fm-paso-c { display: flex; align-items: center; gap: 6px; }
.he .fm-paso-c output { min-width: 28px; text-align: center; font: 700 24px/1 var(--f-grabado); color: var(--crema); }
.he .fm-mas { width: 46px; height: 46px; }
.he .fm-bloque { display: flex; flex-direction: column; gap: 5px; }
.he .fm-colores { display: flex; justify-content: space-between; gap: 2px; }
.he .fm-color { min-width: 48px; min-height: 52px; padding: 2px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; line-height: 0; }
.he .fm-color[aria-checked="true"] { background: rgba(255, 217, 138, .22); box-shadow: inset 0 0 0 2px var(--oro); }
.he .fm-error { margin: 0; min-height: 1.3em; color: #FFB3BE; font: 800 15px/1.25 var(--f-texto); }

/* el cielo de invitados */
.he .cu-sub { margin: 0 0 8px; font: 700 15.5px/1.3 var(--f-texto); color: var(--crema); }
.he .cu-cielo { position: relative; list-style: none; margin: 0; padding: 0; border-radius: 16px; overflow: hidden; background: radial-gradient(70% 60% at 30% 25%, #2A2E78 0%, #120F4A 60%, #070B2E 100%); box-shadow: 0 0 0 1px rgba(255, 217, 138, .5); }
.he .cu-cielo::before { content: ""; position: absolute; inset: 0; background: var(--constel) 8% 12% / 150px 118px no-repeat, var(--constel) 96% 90% / 170px 134px no-repeat; opacity: .55; }
.he .cu-est { position: absolute; transform: translate(-50%, -8%); line-height: 0; }
.he .cu-svg { display: block; }
.he .is-brilla .cu-est { animation: he-titila 3s ease-in-out var(--d, 0s) infinite; }
.he .cu-est.is-mia .cu-svg { filter: drop-shadow(0 0 10px #FFE9A8); }
.he .cu-est.is-espera { opacity: 0; }
.he .cu-est.is-cae { animation: he-fugaz 1.2s cubic-bezier(.3, .05, .3, 1) both; z-index: 3; }
.he .cu-est.is-cae::after { content: ""; position: absolute; left: 50%; top: 30%; width: 120px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 240, 200, .95), rgba(255, 240, 200, 0)); transform-origin: left center; transform: rotate(-33deg); animation: he-cola 1.2s ease-out both; }
@keyframes he-fugaz { 0% { transform: translate(calc(-50% + 180px), calc(-8% - 150px)) scale(.3); opacity: 1; } 75% { transform: translate(-50%, -8%) scale(1.25); } 100% { transform: translate(-50%, -8%) scale(1); } }
@keyframes he-cola { 0%, 70% { opacity: 1; } 100% { opacity: 0; width: 0; } }
.he .cu-cuenta { margin: 9px 0; text-align: center; font: 800 17px/1.2 var(--f-texto); color: var(--crema); }
.he .cu-cuenta strong { font: 700 28px/1 var(--f-grabado); color: var(--oro); }
.he .cu-lista, .he .cu-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.he .cu-lista li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1px dashed rgba(255, 217, 138, .3); }
.he .cl-b { line-height: 0; }
.he .cl-nombre { font-weight: 800; min-width: 0; overflow-wrap: anywhere; color: var(--crema); }
.he .cl-meta { font: 500 14px/1.2 var(--f-texto); color: var(--texto); }
.he .cu-h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font: 700 18px/1.15 var(--f-grabado); color: var(--crema); }
.he .cu-h3 .pi { color: var(--oro); }
.he .cu-msgs li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: rgba(255, 233, 180, .08); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, .3); color: var(--texto); }
.he .cu-msgs strong { color: var(--crema); }
.he .cu-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.he .cu-acciones > * { flex: 1 1 150px; }
.he .cu-vacio { margin: 8px 0; text-align: center; font: 700 16px/1.3 var(--f-texto); color: var(--crema); }

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

/* visor de fotos */
.he .visor .hoja-cuerpo { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px; background: #05081F; color: var(--crema); }
.he .visor-fig { margin: 0; text-align: center; }
.he .visor-img { display: block; max-width: 100%; max-height: 70cqh; margin: auto; border-radius: 8px; box-shadow: 0 0 0 2px var(--oro); }
.he .visor-pie { margin: 12px 0 0; font: 800 17px/1.2 var(--f-texto); }
.he .visor-ant, .he .visor-sig { position: absolute; bottom: 12px; }
.he .visor-ant { left: 12px; transform: scaleX(-1); }
.he .visor-sig { right: 12px; }
@media (prefers-reduced-motion: reduce) { .he .is-brilla .cu-est, .he .fm-vista-b { animation: none; } .he .cu-est.is-cae { animation-duration: .01s; } }
