/* La Guardería de Bip — hojas: COBIJITAS que suben desde abajo (formulario, lamparitas, datos, visor, aviso del demo). */
.gd .hoja { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.gd .hoja.is-full { align-items: stretch; }
.gd .hoja-fondo { position: absolute; inset: 0; background: rgba(14, 10, 40, .55); opacity: 0; transition: opacity .25s; }
.gd .hoja.is-in .hoja-fondo { opacity: 1; }
.gd .hoja > .cobija { position: relative; width: 100%; max-height: calc(100cqh - 28px - var(--safe-t)); margin: 0 8px 8px; display: flex; flex-direction: column; overflow: hidden; transform: translateY(105%); transition: transform .42s cubic-bezier(.25, 1.2, .45, 1); }
.gd .hoja.is-full > .cobija { max-height: none; margin: calc(10px + var(--safe-t)) 8px 8px; }
.gd .hoja.is-in > .cobija { transform: none; }
.gd .hoja.is-out > .cobija { transform: translateY(105%); transition-duration: .25s; }
.gd .hoja.is-out .hoja-fondo { opacity: 0; }
.gd .cb-cabeza { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 10px; padding: 22px 18px 6px 22px; }
.gd .cb-cabeza.is-solo { justify-content: flex-end; padding-bottom: 0; }
.gd .cb-titulos { flex: 1; min-width: 0; }
.gd .cb-k { margin: 0 0 2px; font: 700 13px var(--f-body); color: var(--muted); }
.gd .cb-cabeza h2 { margin: 0; font: 700 23px/1.15 var(--f-display); color: var(--tinta); }
.gd .cb-x { flex: none; }
.gd .cb-x > svg { background: radial-gradient(circle at 35% 30%, #FFFFFF, #FFDDE8); }
.gd .cb-cuerpo { position: relative; z-index: 1; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 6px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.gd .demo-nota .cb-cuerpo { align-items: center; text-align: center; }
.gd .demo-ic { margin: 0; color: #8A6A10; }
.gd .demo-nota p { margin: 0; font: 700 16px/1.45 var(--f-body); }

/* ---------- formulario ---------- */
.gd .fm { display: flex; flex-direction: column; gap: 12px; }
.gd .fm-vista { display: grid; place-items: center; min-height: 170px; border-radius: 22px; background: radial-gradient(70% 70% at 50% 45%, #3E3478 0%, var(--noche) 75%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); }
.gd .fm-vista-b { display: block; }
.gd .fm-l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font: 700 15px var(--f-body); color: var(--tinta); }
.gd .fm input, .gd .fm textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 18px; font: 600 16px/1.35 var(--f-body); color: var(--tinta); background: #FFFFFF; box-shadow: inset 0 0 0 2.5px var(--costura), inset 0 3px 6px rgba(150, 110, 200, .12); }
.gd .fm textarea { resize: vertical; }
.gd .fm input::placeholder, .gd .fm textarea::placeholder { color: #776F96; }
.gd .fm-cuenta { font: 600 13px var(--f-body); color: var(--muted); }
.gd .fm-seg { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(183, 155, 230, .25); }
.gd .fm-seg-b { flex: 1; min-height: 48px; border: 0; border-radius: 999px; background: transparent; font: 700 15px var(--f-body); color: var(--tinta); cursor: pointer; }
.gd .fm-seg-b[aria-checked="true"] { background: #FFFFFF; box-shadow: 0 3px 0 rgba(150, 110, 200, .4), 0 0 0 2.5px var(--costura); }
.gd .fm-personas { display: flex; gap: 10px; }
.gd .fm-personas[hidden], .gd .fm-bloque[hidden] { display: none; }
.gd .fm-paso { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 2px rgba(183, 155, 230, .45); }
.gd .fm-paso-l { font: 700 14px var(--f-body); color: var(--muted); }
.gd .fm-paso-c { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gd .fm-paso output { font: 700 26px var(--f-display); color: var(--tinta); min-width: 30px; text-align: center; }
.gd .fm-bloque { display: flex; flex-direction: column; gap: 8px; }
.gd .fm-colores { display: flex; flex-wrap: wrap; gap: 10px 6px; justify-content: center; padding: 8px 6px 4px; border-radius: 22px; background: radial-gradient(90% 90% at 50% 0%, #3E3478, var(--noche)); }
.gd .fm-lamp { position: relative; width: 52px; height: 58px; padding: 0 0 6px; border: 0; border-radius: 16px; background: none; cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.gd .fm-lamp::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 7px; border-radius: 4px; background: linear-gradient(180deg, var(--madera), var(--madera-2)); }
.gd .fm-lamp[aria-checked="true"] { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5.5px var(--tinta); }
.gd .fm-error { margin: 0; min-height: 1.2em; font: 700 15px var(--f-body); color: #A3132E; }
.gd .limite { margin: 0; text-align: center; font: 700 14px var(--f-body); color: var(--muted); }

/* ---------- la repisa de las lamparitas ---------- */
.gd .lamps-h .cb-cuerpo { gap: 12px; }
.gd .lm-cielo { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 24px; color: #FFFFFF; background: radial-gradient(40% 70% at 85% 30%, rgba(255, 224, 138, .35), transparent 70%), radial-gradient(90% 90% at 30% 20%, #3E3478, var(--noche) 80%); }
.gd .lm-bip { flex: none; transition: transform .3s; }
.gd .lm-bip.is-feliz { animation: gd-salta .8s cubic-bezier(.3, 1.6, .4, 1); }
@keyframes gd-salta { 40% { transform: translateY(-12px) rotate(-5deg); } }
.gd .lm-cuenta { margin: 0; font: 700 16px/1.3 var(--f-body); }
.gd .lm-cuenta strong { display: block; font: 700 38px/1 var(--f-display); color: var(--amarillo); }
.gd .lm-sub { margin: 0; font: 600 15px/1.4 var(--f-body); color: var(--muted); }
.gd .lm-repisa { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 4px; margin: 0; padding: 14px 6px 12px; list-style: none; border-radius: 22px; background: radial-gradient(90% 60% at 50% 0%, #3E3478, var(--noche)); }
.gd .lm-lamp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: gd-aparece .5s var(--d, 0s) both cubic-bezier(.25, 1.3, .45, 1); }
@keyframes gd-aparece { from { opacity: 0; transform: translateY(10px) scale(.9); } }
/* (cada lamparita sobre su tablita de madera; el texto va debajo de la tabla) */
.gd .lm-svg { position: relative; display: block; padding-bottom: 9px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); }
.gd .lm-svg::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 0; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #F1CFA6, var(--madera) 50%, var(--madera-2)); box-shadow: 0 3px 0 #9E6A3E; }
.gd .lm-meta { font: 700 12.5px/1.25 var(--f-body); color: #FFFFFF; text-shadow: 0 1px 4px rgba(10, 8, 34, .9); }
.gd .lm-lamp.is-entra .lm-svg { animation: gd-entra .8s cubic-bezier(.3, 1.4, .45, 1) both; }
@keyframes gd-entra { from { transform: translateY(-60px) scale(.6); opacity: 0; } }
.gd .lm-lamp.is-encendida .lm-svg { animation: gd-destello 1.2s ease-out; }
@keyframes gd-destello { 0% { filter: brightness(2.6) drop-shadow(0 0 28px var(--c)); } 100% { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); } }
.gd .lm-vacio { margin: 0; padding: 18px; text-align: center; border-radius: 20px; font: 700 16px var(--f-body); background: rgba(255, 255, 255, .7); }
.gd .lm-h3 { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 700 18px var(--f-display); color: var(--tinta); }
.gd .lm-msgs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gd .lm-msgs li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 18px; background: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(183, 155, 230, .45); font: 600 15px/1.4 var(--f-body); }
.gd .lm-acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.gd .lm-acciones .chupon { width: 100%; }

/* ---------- todos los datos ---------- */
.gd .dt-lead { margin: 0; font: 700 17px/1.4 var(--f-body); color: var(--tinta); }
.gd .dt-sec { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 2px rgba(183, 155, 230, .4); }
.gd .dt-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 18px var(--f-display); color: var(--tinta); }
.gd .dt-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--tinta); background: radial-gradient(circle at 35% 30%, #FFFFFF, #E6D9FF); }
.gd .dt-sec p { margin: 0; font: 600 15.5px/1.45 var(--f-body); }
.gd .dt-big { font: 700 20px/1.3 var(--f-display) !important; }
.gd .regalos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gd .regalos li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(183, 155, 230, .45); }
.gd .regalos li.is-destacado { box-shadow: inset 0 0 0 2.5px #E8C25A; background: #FFFBEE; }
.gd .rg-txt { flex: 1; display: flex; flex-direction: column; font-size: 15px; }
.gd .rg-txt small { font: 600 13.5px var(--f-body); color: var(--muted); }
.gd .fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gd .foto { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; box-shadow: 0 0 0 3px #FFFFFF, 0 4px 10px rgba(14, 10, 40, .2); }
.gd .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd .foto span { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; font: 700 12px var(--f-body); color: var(--tinta); background: rgba(255, 255, 255, .9); }
.gd .dt-faq { border-radius: 14px; background: #FFFFFF; padding: 4px 12px; box-shadow: inset 0 0 0 1.5px rgba(183, 155, 230, .4); }
.gd .dt-faq summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font: 700 15px var(--f-body); }
.gd .dt-faq p { padding: 0 0 10px; }
.gd .dt-cta { display: flex; flex-direction: column; gap: 8px; }
.gd .dt-anfitriones { margin: 0; text-align: center; font: 700 15px var(--f-body); color: var(--muted); }

/* ---------- visor de fotos ---------- */
.gd .visor .cb-cuerpo { justify-content: center; align-items: center; }
.gd .visor-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.gd .visor-img { width: 100%; max-height: 62cqh; object-fit: contain; border-radius: 20px; box-shadow: 0 0 0 4px #FFFFFF; background: #FFFFFF; }
.gd .visor-pie { margin: 0; font: 700 17px var(--f-display); color: var(--tinta); }
.gd .visor-ant, .gd .visor-sig { position: absolute; top: 46%; z-index: 2; }
.gd .visor-ant { left: 10px; } .gd .visor-sig { right: 10px; }
.gd .visor-ant .sj-bola, .gd .visor-ant > svg { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .gd .hoja > .cobija, .gd .hoja-fondo { transition-duration: .01s; }
  .gd .lm-lamp, .gd .lm-lamp .lm-svg, .gd .lm-bip.is-feliz { animation: none !important; }
}
.gd.rm .lm-lamp, .gd.rm .lm-lamp .lm-svg { animation: none !important; }
