/* El Barquito en la Tina — hojas: datos, formulario "Suelte su patito", la tina de la fiesta y visor de fotos. Muro de
   azulejos con junta y agua abajo. Todo cuelga de html.bt y se mide contra el marco. */
.bt .hoja { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; opacity: 0; transition: opacity .25s ease; }
.bt .hoja.is-in { opacity: 1; }
.bt .hoja.is-out { opacity: 0; }
.bt .hoja-velo { position: absolute; inset: 0; background: rgba(14, 59, 70, .46); }
.bt .hoja-panel { position: relative; width: 100%; max-height: calc(100cqh - 34px - var(--safe-t)); display: flex; flex-direction: column; border-radius: 22px 22px 0 0; color: var(--tinta); transform: translateY(26px); transition: transform .3s cubic-bezier(.2, 1.2, .4, 1);
  background: linear-gradient(#ffffffb5 2px, transparent 2px) 0 0 / 74px 74px, linear-gradient(90deg, #ffffffb5 2px, transparent 2px) 0 0 / 74px 74px, linear-gradient(180deg, #eaf8f4, #dcf3ec);
  box-shadow: 0 -2px 0 #fff, 0 -14px 30px rgba(14, 59, 70, .26); }
.bt .hoja.is-in .hoja-panel { transform: none; }
.bt .hoja.is-completa .hoja-panel { height: 100cqh; max-height: none; border-radius: 0; }
.bt .hoja-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: calc(14px + var(--safe-t)) 14px 8px 18px; flex: none; }
.bt .hoja-cab.is-sola { justify-content: flex-end; }
.bt .hoja-k { margin: 0; font: 800 14px/1.2 var(--f-texto); color: var(--tinta-2); }
.bt .hoja-tit h2 { margin: 1px 0 0; font: 700 clamp(23px, 6.8cqw, 28px)/1.1 var(--f-titulo); color: var(--tapa); }
.bt .hoja-cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px calc(18px + var(--safe-b)); }

/* datos */
.bt .dt-lead { margin: 0 0 12px; font: 800 17px/1.3 var(--f-texto); }
.bt .dt-sec { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--esmalte); box-shadow: 0 0 0 3px #efe8db, inset 0 2px 0 #fff; }
.bt .dt-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 19px/1.15 var(--f-titulo); color: var(--agua-o); }
.bt .dt-sec > p { margin: 0 0 4px; font: 700 16px/1.35 var(--f-texto); }
.bt .dt-big { font: 800 19px/1.25 var(--f-texto) !important; }
.bt .regalos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bt .regalos li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--menta); }
.bt .regalos li.is-destacado { background: var(--crema); box-shadow: inset 0 0 0 2px #f0d58a; }
.bt .rg-txt { flex: 1; min-width: 0; display: grid; }
.bt .rg-txt strong { font: 800 16px/1.2 var(--f-texto); } .bt .rg-txt small { font: 700 14px/1.25 var(--f-texto); color: var(--tinta-2); }
.bt .fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bt .foto { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--menta); cursor: pointer; aspect-ratio: 4 / 3; box-shadow: 0 0 0 3px #fff; }
.bt .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt .foto span { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 253, 248, .95); font: 800 13px/1.2 var(--f-texto); color: var(--tinta); }
.bt .dt-faq { margin: 0 0 6px; }
.bt .dt-faq summary { min-height: 44px; display: flex; align-items: center; font: 800 16px/1.25 var(--f-texto); cursor: pointer; }
.bt .dt-faq p { margin: 0 0 6px; font: 700 15px/1.35 var(--f-texto); color: var(--tinta-2); }
.bt .dt-cta { margin: 14px 0 8px; }
.bt .fecha-limite { margin: 8px 0 0; text-align: center; font: 800 15px/1.25 var(--f-texto); color: var(--tinta-2); }
.bt .dt-hosts { margin: 0; text-align: center; font: 800 15px/1.3 var(--f-texto); }

/* formulario */
.bt .fm { display: grid; gap: 10px; }
.bt .fm-vista { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 8px; border-radius: 16px; background: linear-gradient(180deg, #e7f8f5 0 56%, #a8e4e2 56%, #7ccad6 100%); box-shadow: 0 0 0 3px #fff; overflow: hidden; }
.bt .fm-vista-pato { line-height: 0; animation: bt-flota 2.8s ease-in-out infinite; }
.bt .fm-vista-nombre { padding: 3px 11px; border-radius: 10px; background: rgba(255, 253, 248, .96); font: 800 15px/1.25 var(--f-texto); color: var(--tinta); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes bt-flota { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
.bt .fm-l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 -4px; font: 800 16px/1.2 var(--f-texto); }
.bt .fm-count { font: 700 14px/1 var(--f-texto); color: var(--tinta-2); }
.bt .fm input, .bt .fm textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 2px solid #8cc9bd; border-radius: 12px; background: #fff; font: 700 17px/1.3 var(--f-texto); color: var(--tinta); resize: vertical; }
.bt .fm input::placeholder { color: #55737a; }
.bt .fm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bt .fm-seg-b { min-height: 50px; padding: 4px 8px; border: 0; border-radius: 12px; cursor: pointer; font: 800 16px/1.15 var(--f-texto); color: var(--tinta); background: var(--esmalte); box-shadow: 0 0 0 2px #cfe7df; }
.bt .fm-seg-b[aria-checked="true"] { color: #fff; background: var(--agua-o); box-shadow: 0 0 0 2px var(--agua-o), inset 0 2px 0 rgba(255, 255, 255, .3); }
.bt .fm-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bt .fm-personas[hidden], .bt .fm-bloque[hidden] { display: none; }
.bt .fm-paso { padding: 7px 8px; border-radius: 12px; background: var(--esmalte); box-shadow: 0 0 0 2px #cfe7df; text-align: center; }
.bt .fm-paso-l { font: 800 15px/1.2 var(--f-texto); }
.bt .fm-paso-c { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 3px; }
.bt .fm-paso-c output { font: 700 24px/1 var(--f-titulo); min-width: 30px; }
.bt .paso-btn { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--agua-o); background: radial-gradient(circle at 32% 26%, #fff 0 14%, #dff4f1 60%, #b6e4df 100%); box-shadow: inset 0 0 0 2px #fff, 0 3px 6px var(--sombra-2); }
.bt .fm-colores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.bt .fm-pato { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 4px; border: 0; border-radius: 12px; background: var(--esmalte); cursor: pointer; box-shadow: 0 0 0 2px #cfe7df; line-height: 0; }
.bt .fm-pato[aria-checked="true"] { background: #e3f6f3; box-shadow: 0 0 0 3px var(--agua-o); }
.bt .fm-err { margin: 0; min-height: 0; font: 800 15px/1.25 var(--f-texto); color: #a01c2e; }
.bt .fm-err:empty { display: none; }

/* la tina de la fiesta */
.bt .tina-hoja { background: linear-gradient(#ffffffb5 2px, transparent 2px) 0 0 / 74px 74px, linear-gradient(90deg, #ffffffb5 2px, transparent 2px) 0 0 / 74px 74px, linear-gradient(180deg, #e0f5ef, #cdeee6); }
.bt .tina-sub { margin: 0 0 8px; font: 800 15px/1.25 var(--f-texto); color: var(--tinta-2); }
.bt .tina-agua { position: relative; padding: 16px 10px 20px; border-radius: 22px 22px 44px 44px; border: 9px solid #fffdf8;
  box-shadow: 0 0 0 2px #e4dccc, inset 0 8px 14px rgba(255, 255, 255, .5), 0 10px 18px var(--sombra-2);
  background:
    radial-gradient(circle at 12% 12%, #ffffff 0 7px, transparent 8px), radial-gradient(circle at 21% 8%, #ffffff 0 10px, transparent 11px), radial-gradient(circle at 30% 12%, #ffffff 0 6px, transparent 7px),
    radial-gradient(circle at 88% 10%, #ffffff 0 9px, transparent 10px), radial-gradient(circle at 78% 7%, #ffffff 0 6px, transparent 7px),
    radial-gradient(60% 40% at 50% 100%, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(180deg, #b4ede6, #7ccad6 100%); }
.bt .tina-patos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 4px; }
.bt .pato { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; animation: bt-flota var(--t, 3s) ease-in-out var(--d, 0s) infinite; }
.bt .pato-svg { position: relative; line-height: 0; z-index: 1; }
.bt .pato-agua { position: absolute; left: 50%; top: 50px; width: 74px; height: 16px; margin-left: -37px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
.bt .pato-nombre { position: relative; z-index: 1; max-width: 100%; padding: 2px 7px; border-radius: 8px; background: rgba(255, 253, 248, .96); font: 800 13px/1.15 var(--f-texto); color: var(--tinta); text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.bt .pato.is-mio .pato-nombre { background: var(--tapa); color: #fff; }
/* el patito nuevo: cae desde arriba, se hunde un poco, sale a flote y se acomoda */
.bt .pato.is-llega { animation: none; }
.bt .pato.is-llega .pato-svg { animation: bt-cae 1.5s cubic-bezier(.4, 0, .6, 1) both; }
.bt .pato.is-llega .pato-nombre { animation: bt-sube .4s ease 1.2s both; }
@keyframes bt-cae { 0% { transform: translateY(-260px) rotate(-14deg); } 40% { transform: translateY(16px) rotate(8deg) scale(1.08, .9); } 58% { transform: translateY(-13px) rotate(-5deg); } 76% { transform: translateY(5px) rotate(3deg); } 100% { transform: none; } }
.bt .pato-splash { position: absolute; left: 50%; top: 48px; width: 0; height: 0; z-index: 2; pointer-events: none; }
.bt .pato-splash i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset -2px -2px 3px rgba(90, 180, 200, .55); opacity: 0; animation: bt-gota .75s ease-out .58s both; --a: calc(var(--k) * 22deg - 88deg); }
@keyframes bt-gota { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.5); } 18% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-72px) scale(1); } }
.bt .tina-cuenta { margin: 12px 0 2px; text-align: center; font: 800 16px/1.2 var(--f-texto); }
.bt .tina-cuenta strong { font: 700 28px/1 var(--f-titulo); color: var(--tapa); }
.bt .tina-vacio { text-align: center; font: 800 16px/1.3 var(--f-texto); }
.bt .tina-h3 { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font: 700 19px/1.15 var(--f-titulo); color: var(--agua-o); }
.bt .tina-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bt .tina-msgs li { padding: 9px 12px; border-radius: 6px 14px 6px 14px; background: linear-gradient(180deg, #fff9ea, #fff3d6); box-shadow: inset 0 0 0 2px #f1e3c0; display: grid; gap: 2px; font: 700 15px/1.3 var(--f-texto); }
.bt .tina-msgs strong { font-weight: 800; }
.bt .tina-acciones { display: grid; gap: 8px; margin-top: 14px; }

/* aviso demo y visor */
.bt .demo-nota .hoja-cuerpo { text-align: center; }
.bt .demo-nota p { font: 800 17px/1.35 var(--f-texto); margin: 0 0 12px; }
.bt .demo-ic { color: var(--agua-o); line-height: 0; }
.bt .visor { background: #0f3a44; color: #fff; }
.bt .visor .hoja-cuerpo { position: relative; display: flex; align-items: center; justify-content: center; }
.bt .visor-fig { margin: 0; width: 100%; }
.bt .visor-img { display: block; width: 100%; max-height: 70cqh; object-fit: contain; border-radius: 14px; }
.bt .visor-pie { margin: 10px 0 0; text-align: center; font: 700 19px/1.2 var(--f-titulo); color: #fff; }
.bt .visor-ant, .bt .visor-sig { position: absolute; top: 44%; }
.bt .visor-ant { left: 4px; } .bt .visor-sig { right: 4px; transform: scaleX(-1); }

.bt.rm .pato, .bt.rm .fm-vista-pato { animation: none; }
.bt.rm .pato.is-llega .pato-svg { animation: none; }
.bt.rm .pato-splash i { animation-duration: .01s; }
@media (prefers-reduced-motion: reduce) {
  .bt .pato, .bt .fm-vista-pato, .bt .pato.is-llega .pato-svg { animation: none; }
}
