/* Página de la historia de Instagram (abre el QR del mural) */
@font-face { font-family: "Cascadia"; src: url("assets/fonts/cascadia-code-latin-200-normal.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Cascadia"; src: url("assets/fonts/cascadia-code-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --cream: #fff9ee; --soft: cubic-bezier(.22, .8, .25, 1); color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--cream); color: #000; font-family: "Cascadia", ui-monospace, Consolas, monospace; font-weight: 200; -webkit-font-smoothing: antialiased; }
.h-wrap { max-width: 520px; margin: 0 auto; padding: 28px 18px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.h-t { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.h-p { margin: 0; font-size: 15px; line-height: 21px; letter-spacing: -.6px; }
.h-fig { position: relative; margin: 6px 0 0; width: min(100%, 340px); aspect-ratio: 9 / 16; background: #f3ece0; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.h-fig img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--soft); }
.h-carga { position: absolute; left: 0; right: 0; top: 33%; margin: 0; font-size: 13px; opacity: .6; }
.h-wrap:not([data-estado="cargando"]) .h-carga { display: none; }
.h-wrap[data-estado="cargando"] .h-fig img { opacity: .55; }
.h-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px 3px; border: 1px solid #000; border-radius: 23px; background: transparent; color: #000; text-decoration: none; cursor: pointer;
  font: inherit; font-size: 21px; letter-spacing: -2px; white-space: nowrap; transition: background .3s var(--soft), color .3s var(--soft); }
.h-share { background: #000; color: var(--cream); }
@media (hover: hover) { .pill:hover { background: #000; color: var(--cream); } .h-share:hover { background: transparent; color: #000; } }
.pill:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.h-wrap[data-estado="cargando"] .h-acc { opacity: .4; pointer-events: none; }
.h-ayuda { margin: 0; font-size: 13px; line-height: 19px; opacity: .75; max-width: 400px; }
.h-error { margin: 0; color: #d3201f; font-size: 15px; }
.h-error[hidden], .h-share[hidden] { display: none; }
.h-volver { margin-top: 8px; font-size: 18px; height: 38px; }
