/* SUMO V4 · hojas inferiores (dialog nativo) compartidas por menu.html e index.html (sucursal del mapa).
   En celular salen de abajo con manija para arrastrar; desde 700 px son un modal centrado. */
:root { --ac: var(--ink); --ac-t: var(--cream); --tag: var(--orange); --tag-t: var(--ink); --tile: #F7EEDD; --ac-txt: var(--orange-ink); }
[data-tema="express"] { --ac: var(--royal); --ac-t: #fff; --tag: var(--royal); --tag-t: #fff; --tile: #E9ECF8; --ac-txt: var(--royal); }
html.lock { overflow: hidden; }
/* ---------- Hojas (dialog nativo) ---------- */
dialog.hoja { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 560px; max-height: min(92dvh, 92vh); border: 0; border-radius: 26px 26px 0 0; padding: 0; background: var(--cream); color: var(--ink); overflow: hidden; box-shadow: 0 -10px 40px rgba(20, 18, 16, .3); }
dialog.hoja::backdrop { background: rgba(20, 18, 16, .55); }
dialog.hoja[open] { animation: hoja-in .3s cubic-bezier(.2, .85, .25, 1); }
dialog.hoja[open]::backdrop { animation: fade-in .3s ease; }
dialog.hoja.is-closing { animation: hoja-out .2s ease-in forwards; }
dialog.hoja.is-closing::backdrop { animation: fade-out .2s ease-in forwards; }
@keyframes hoja-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes hoja-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.hoja-in { position: relative; display: flex; flex-direction: column; max-height: min(92dvh, 92vh); }
.grab { flex: none; height: 28px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.grab i { width: 44px; height: 5px; border-radius: 3px; background: rgba(20, 18, 16, .3); }
.hoja-x { position: absolute; top: 8px; right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); display: grid; place-items: center; }
.hoja-c { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(22px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.kick { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ac-txt); padding-right: 52px; }
.hoja-h { font-size: clamp(2.2rem, 11vw, 3.1rem); line-height: .9; font-stretch: 66%; margin: 2px 0 8px; padding-right: 50px; }
.tag { display: inline-block; background: var(--tag); color: var(--tag-t); border-radius: 999px; padding: 4px 10px 3px; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
@media (min-width: 700px) {
  dialog.hoja { inset: 0; margin: auto; height: fit-content; border-radius: 26px; max-height: 90vh; }
  .hoja-in { max-height: 90vh; }
  .grab { display: none; }
  .hoja-c { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { dialog.hoja[open], dialog.hoja[open]::backdrop { animation: none; } }
