.mundo { padding-bottom: 120px; }
.barra {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  transition: background 200ms;
}
.barra[data-bajo] { background: color-mix(in oklab, var(--papel) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.volver { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-left: -6px; }
.volver svg { width: 24px; height: 24px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--noche); color: var(--lima); font-weight: 800; font-size: 16px; }
.avatar[data-sin] { background: #fff; color: var(--tinta); border: 1.5px dashed var(--apagado); }

.portada { padding: 6px 20px 20px; display: grid; gap: 8px; }
.heroe { margin: 0 16px; display: block; width: calc(100% - 32px); text-align: left; }
.heroe .foto-caja { aspect-ratio: 4 / 3.3; border-radius: 32px; }
.heroe .foto { box-shadow: var(--elevar); }
.heroe-pie { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.heroe-pie b { font-size: 19px; font-weight: 780; letter-spacing: -.025em; }
.heroe-acciones { padding: 16px 0 0; display: grid; gap: 4px; }
.al-pagar { display: flex; gap: 10px; align-items: center; min-height: 54px; padding: 12px 16px; border-radius: 18px; background: var(--lima); color: var(--noche); font-weight: 680; font-size: 16.5px; line-height: 1.25; rotate: -.6deg; }
.al-pagar span { flex: none; width: 24px; height: 24px; }
.al-pagar svg { width: 100%; height: 100%; }

.seccion { padding: 36px 20px 0; display: grid; gap: 16px; }
.seccion-cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

.estante { display: flex; gap: 16px; overflow-x: auto; margin: 0 -20px; padding: 4px 26px 10px 20px; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.estante::-webkit-scrollbar { display: none; }
.item { flex: 0 0 150px; scroll-snap-align: start; text-align: left; display: grid; gap: 9px; align-content: start; }
.item .foto-caja { aspect-ratio: 1; border-radius: 24px; }
.item b { font-size: 15.5px; font-weight: 720; line-height: 1.2; letter-spacing: -.015em; }
.item .chico { margin-top: -5px; }
.item:nth-child(3n + 2) .foto-caja { border-radius: 24px 24px 24px 64px; }
.item:nth-child(3n) .foto-caja { border-radius: 64px 24px 24px 24px; }
.relacion { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 22px 20px 20px; border-radius: 30px; background: var(--noche); color: #fff; --clave: var(--lima); --raya: var(--lima); }
.relacion > :not(.masas) { position: relative; z-index: 1; }
.recuerdos { display: flex; align-items: flex-start; padding: 4px 4px 2px; }
.polaroid {
  flex: none; width: 112px; display: grid; gap: 6px; padding: 7px 7px 8px; border-radius: 10px;
  background: #fff; color: var(--tinta); box-shadow: 0 14px 24px -12px rgb(0 0 0 / .7);
  rotate: var(--giro); translate: 0 var(--alto);
  animation: soltar 640ms var(--rebote) calc(var(--k) * 120ms + 150ms) both paused;
}
.polaroid + .polaroid { margin-left: min(-10px, calc((100% - var(--n) * 112px) / (var(--n) - 1))); }
.polaroid img { width: 98px; height: 98px; object-fit: cover; border-radius: 5px; }
.polaroid > span { padding-left: 3px; font-size: 13px; font-weight: 720; letter-spacing: -.01em; white-space: nowrap; }
.polaroid-hueco > span { padding: 0; text-align: center; }
.polaroid-hueco { min-height: 137px; place-content: center; background: none; box-shadow: none; border: 2.5px dashed rgb(255 255 255 / .4); color: rgb(255 255 255 / .75); }
.recuerdos[data-visto] .polaroid { animation-play-state: running; }
@keyframes soltar { from { opacity: 0; transform: translateY(-46px) scale(1.18) rotate(-10deg); } }

.lista { display: grid; background: var(--superficie); border-radius: 24px; overflow: hidden; }
.renglon { display: flex; align-items: center; gap: 14px; padding: 15px 18px; width: 100%; text-align: left; }
.renglon + .renglon { border-top: 1px solid var(--linea); }
.renglon .crece { flex: 1; min-width: 0; display: grid; gap: 1px; }
.renglon b { font-weight: 680; }
.renglon .chico { opacity: 1; color: var(--apagado); }
.renglon svg.flecha { width: 20px; height: 20px; color: var(--apagado); flex: none; }
.renglon .foto-caja { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.marca-f { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.marca-f img { width: 32px; height: 32px; }
.lugar {
  position: relative; display: block; width: calc(100% - 28px); margin: 0 14px; text-align: left;
  border-radius: 32px; overflow: hidden; background: var(--noche); color: #fff; box-shadow: var(--elevar);
  --clave: var(--lima); --raya: var(--lima);
}
.lugar .foto-caja { aspect-ratio: 16 / 10.5; }
.lugar-texto { position: relative; display: grid; gap: 10px; padding: 18px 20px 22px; }
.lugar-texto > :not(.masas) { position: relative; z-index: 1; }
.lugar-texto .local img { width: 28px; height: 28px; }
.lugar > .pastilla { position: absolute; top: 16px; left: 16px; z-index: 5; }
.otros { display: grid; gap: 12px; padding: 16px 14px 0; }
.otro { display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 26px; width: 100%; text-align: left; background: var(--superficie); box-shadow: 0 1px 2px rgb(28 25 54 / .06); }
.otro .foto-caja { width: 80px; height: 80px; border-radius: 20px; flex: none; }
.otro .crece { flex: 1; min-width: 0; display: grid; gap: 3px; }
.otro .local { font-size: 13.5px; color: var(--apagado); gap: 7px; }
.otro .local img { width: 20px; height: 20px; box-shadow: none; }
.otro b { font-size: 17px; font-weight: 760; letter-spacing: -.02em; line-height: 1.15; }
.otro .cuanto { font-size: 14.5px; font-weight: 700; color: var(--violeta-tinta); }
.interruptor { width: 54px; height: 32px; border-radius: 99px; background: var(--linea); position: relative; flex: none; transition: background 200ms; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: translate 220ms var(--rebote); }
.interruptor[aria-checked="true"] { background: var(--noche); }
.interruptor[aria-checked="true"]::after { translate: 22px 0; background: var(--lima); }
.peligro { color: #b42318; }
.empezar-cuerpo { padding: 56px 24px 0; display: grid; gap: 18px; }
.mosaico { flex: 1; position: relative; min-height: 250px; margin: 6px 0 12px; }
.mosaico .foto-caja { position: absolute; width: 150px; height: 150px; border-radius: 50%; animation: flotar 700ms var(--rebote) var(--d) both; }
.mosaico .foto { border: 4px solid #fff; }
.mosaico .foto-caja:nth-child(1) { left: 6%; top: 22%; --d: 300ms; rotate: -6deg; }
.mosaico .foto-caja:nth-child(2) { left: 35%; top: 2%; width: 172px; height: 172px; --d: 420ms; }
.mosaico .foto-caja:nth-child(3) { right: 5%; top: 40%; width: 138px; height: 138px; --d: 540ms; rotate: 8deg; }
.mosaico .ficha { right: auto; left: 50%; top: auto; bottom: -12px; translate: -50% 0; }
@keyframes flotar { from { opacity: 0; transform: translateY(40px) scale(.7); } }
.empezar-pie { padding: 0 20px max(20px, env(safe-area-inset-bottom)); display: grid; gap: 6px; }
