/* ¡Fuego de Confeti! — hojas: "Todos los datos", el formulario y las cuerdas con banderines, en tablas de barco con
   remaches y papel crema; el visor de fotos y el aviso del demo. */
.fc .tabla { position: relative; background: var(--tablas); box-shadow: inset 0 0 0 3px var(--madera-dd), inset 0 0 0 5px var(--madera-l), 0 6px 0 var(--madera-dd), 0 14px 30px rgba(30, 10, 2, .5); }

.fc .hoja { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; opacity: 0; transition: opacity .22s; }
.fc .hoja.is-in { opacity: 1; }
.fc .hoja.is-out { opacity: 0; pointer-events: none; }
.fc .hoja-fondo { position: absolute; inset: 0; background: rgba(30, 12, 30, .62); }
.fc .hoja .tabla { position: relative; width: 100%; max-height: 90cqh; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; padding: 12px 12px calc(12px + var(--safe-b)); transform: translateY(40px); transition: transform .3s cubic-bezier(.2, 1.3, .4, 1); }
.fc .hoja.is-in .tabla { transform: none; }
.fc .hoja.is-full .tabla { max-height: 100cqh; height: 100cqh; border-radius: 0; padding-top: calc(12px + var(--safe-t)); }
.fc .hoja-cabeza { display: flex; align-items: flex-start; gap: 10px; margin: 0 4px 10px; color: var(--crema); }
.fc .hoja-cabeza.is-solo { justify-content: flex-end; margin-bottom: 4px; }
.fc .hoja-titulos { flex: 1; min-width: 0; padding-top: 2px; }
.fc .hoja-k { margin: 0 0 3px; }
.fc .hoja-k span { display: inline-block; padding: 3px 16px 3px 12px; font: 800 13.5px/1.2 var(--f-texto); color: var(--crema); background: var(--rojo); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }
.fc .hoja h2 { margin: 0; font: 400 clamp(23px, 6.6cqw, 28px)/1.08 var(--f-cartel); color: #FFE14D; -webkit-text-stroke: 1.5px var(--tinta); paint-order: stroke fill; text-shadow: 0 2px 0 var(--tinta); }
.fc .hoja-x { flex: none; width: 46px; height: 46px; }
.fc .hoja-cuerpo { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px; border-radius: 4px; background: var(--papel); box-shadow: 0 0 0 2px var(--madera-dd); font: 500 16px/1.35 var(--f-texto); -webkit-overflow-scrolling: touch; }

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

/* formulario */
.fc .fm { display: flex; flex-direction: column; gap: 9px; }
.fc .fm-vista { display: flex; justify-content: center; min-height: 132px; }
.fc .fm-vista-b { display: inline-flex; align-items: flex-start; transform-origin: 50% 0; animation: fc-ondea 2.6s ease-in-out infinite; }
.fc .fm-l { display: flex; justify-content: space-between; margin: 0; font: 800 15.5px/1.2 var(--f-texto); }
.fc .fm-cuenta { font-weight: 500; color: var(--tinta-2); }
.fc .fm input, .fc .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(--madera-d); resize: vertical; }
.fc .fm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fc .fm-seg-b { min-height: 48px; border: 0; border-radius: 6px; padding: 6px 8px; background: var(--crema); box-shadow: inset 0 0 0 2px var(--madera-d); font: 800 15.5px/1.15 var(--f-texto); cursor: pointer; }
.fc .fm-seg-b[aria-checked="true"] { color: var(--crema); background: var(--rojo); box-shadow: inset 0 0 0 2px var(--oro); }
.fc .fm-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fc .fm-personas[hidden], .fc .fm-bloque[hidden] { display: none; }
.fc .fm-paso { display: flex; flex-direction: column; gap: 4px; align-items: center; font: 800 15px/1.2 var(--f-texto); }
.fc .fm-paso-c { display: flex; align-items: center; gap: 6px; }
.fc .fm-paso-c output { min-width: 28px; text-align: center; font: 400 24px/1 var(--f-cartel); }
.fc .fm-mas { width: 46px; height: 46px; }
.fc .fm-bloque { display: flex; flex-direction: column; gap: 5px; }
.fc .fm-colores { display: flex; justify-content: space-between; gap: 2px; }
.fc .fm-banderin { min-width: 46px; min-height: 58px; padding: 2px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; line-height: 0; }
.fc .fm-banderin[aria-checked="true"] { background: #FFE9A8; box-shadow: inset 0 0 0 3px var(--tinta); }
.fc .fm-error { margin: 0; min-height: 1.3em; color: var(--rojo); font: 800 15px/1.25 var(--f-texto); }

/* las cuerdas */
.fc .cu-sub { margin: 0 0 8px; font: 700 15.5px/1.3 var(--f-texto); }
.fc .cu-cielo { position: relative; overflow: hidden; padding: 12px 0 86px; border-radius: 6px; background: linear-gradient(180deg, #4A70C4, #B884B8 38%, #F4A08A 66%, #FFC163 88%, #2C7EA8 88.4%, #0E4E78); box-shadow: 0 0 0 2px var(--madera-dd); }
.fc .cu-filas { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fc .cu-fila { position: relative; padding-top: 6px; }
.fc .cu-cuerda { position: absolute; left: -4%; right: -4%; top: 0; height: 26px; border-bottom: 3.5px solid #F5E2B8; border-radius: 0 0 50% 50% / 0 0 100% 100%; filter: drop-shadow(0 1px 0 rgba(30, 10, 2, .5)); }
.fc .cu-tiras { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-evenly; }
.fc .bn { position: relative; transform-origin: 50% 2px; margin-top: 6px; }
.fc .bn:nth-child(2) { margin-top: 15px; }
.fc .bn-tela { display: block; line-height: 0; filter: drop-shadow(0 3px 2px rgba(30, 10, 2, .4)); }
.fc .is-ondea .bn { animation: fc-ondea 2.4s ease-in-out var(--d, 0s) infinite; }
.fc .bn.is-mio .bn-tela { filter: drop-shadow(0 0 7px #FFE14D) drop-shadow(0 3px 2px rgba(30, 10, 2, .4)); }
@keyframes fc-ondea { 0%, 100% { transform: rotate(-4deg) skewX(2deg); } 50% { transform: rotate(4deg) skewX(-2deg); } }
.fc .bn.is-espera { opacity: 0; }
.fc .bn.is-vuela { animation: fc-vuela 1.05s cubic-bezier(.3, .1, .3, 1) both; opacity: 1; z-index: 3; }
@keyframes fc-vuela { 0% { transform: translate(var(--vx), var(--vy)) scale(.3) rotate(-140deg); opacity: 1; } 55% { transform: translate(calc(var(--vx) * .36), calc(var(--vy) * .3 - 80px)) scale(.8) rotate(-30deg); } 85% { transform: translate(0, -12px) scale(1.12) rotate(14deg); } 100% { transform: none; } }
.fc .cu-canon { position: absolute; left: 6px; bottom: 2px; line-height: 0; }
.fc .cu-tubo { transform-box: fill-box; transform-origin: 20% 80%; }
.fc .cu-canon.is-fuego .cu-tubo { animation: fc-retro .4s ease-out; }
@keyframes fc-retro { 0% { transform: translate(-12px, 5px) rotate(-5deg); } 100% { transform: none; } }
.fc .cu-cuenta { margin: 9px 0; text-align: center; font: 800 17px/1.2 var(--f-texto); }
.fc .cu-cuenta strong { font: 400 28px/1 var(--f-cartel); color: var(--rojo); }
.fc .cu-lista, .fc .cu-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fc .cu-lista li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 2px dashed rgba(91, 47, 20, .3); }
.fc .cl-b { line-height: 0; }
.fc .cl-nombre { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.fc .cl-meta { font: 500 14px/1.2 var(--f-texto); color: var(--tinta-2); }
.fc .cu-h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font: 400 18px/1.15 var(--f-cartel); }
.fc .cu-msgs li { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 6px; background: var(--crema); box-shadow: 0 0 0 2px rgba(91, 47, 20, .35); }
.fc .cu-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fc .cu-acciones > * { flex: 1 1 150px; }

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

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