:root {
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, .35);
  --ink: #0b0b0c;
  --paper: #131314;
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, .66);
  --line: rgba(245, 241, 234, .14);
  --overlay: .45;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.lock, html.lock body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ==================== INICIO (VIDEO) ==================== */
.home {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transition: opacity .6s ease, filter .6s ease;
}
.home.is-away { opacity: 0; pointer-events: none; filter: blur(6px); }
.home__video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; background: #000;
}
.home__shade {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,calc(var(--overlay) * .6)) 0%, rgba(0,0,0,var(--overlay)) 60%, rgba(0,0,0,calc(var(--overlay) + .25)) 100%);
}
.home__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(18px + var(--safe-top)) 20px 0;
}
.icon-btn {
  width: 58px; height: 58px; border-radius: 50%;
  overflow: hidden; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.9);
  background: rgba(0,0,0,.3);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .25s ease, border-color .25s ease;
}
.icon-btn:hover { transform: scale(1.06); border-color: var(--gold); }
.icon-btn img { width: 100%; height: 100%; object-fit: cover; }
.home__center {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 18px; padding: 24px 20px calc(clamp(28px, 7vh, 72px) + var(--safe-bottom));
  text-align: center;
}
.home__logo { width: min(64vw, 300px); height: auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); }
.home__tagline:empty { display: none; }
.home__tagline {
  font-size: .78rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.home__buttons { display: flex; flex-direction: column; gap: 16px; width: min(100%, 360px); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,.88);
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 1.15rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; color: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold); }
.btn--primary {
  min-height: 72px; font-size: 1.45rem;
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201,164,92,.28), rgba(0,0,0,.45));
  box-shadow: 0 0 0 4px rgba(201,164,92,.12), 0 10px 30px rgba(0,0,0,.45);
}
.btn--primary:hover { color: #fff; background: linear-gradient(135deg, rgba(201,164,92,.45), rgba(0,0,0,.4)); }
.btn--primary svg { width: 26px; height: 26px; }

/* ==================== LIBRO ==================== */
.book-stage {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(5,5,6,.45), rgba(5,5,6,.85));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  perspective: 2000px;
  opacity: 0; transition: opacity .45s ease;
  cursor: pointer;
}
.book-stage.is-visible { opacity: 1; }
.book-stage.is-done { opacity: 0; pointer-events: none; }
.book {
  --w: min(44vw, 290px, 34vh);
  width: var(--w); aspect-ratio: 3 / 4.2;
  position: relative;
  transform-style: preserve-3d;
  transform: scale(.55) rotateX(14deg);
  transition: transform 1.1s cubic-bezier(.3,.7,.2,1);
}
.book-stage.is-visible .book { transform: scale(1) rotateX(8deg); }
.book-stage.is-open .book { transform: translateX(calc(var(--w) / 2)) scale(1) rotateX(4deg); }
.book-stage.is-zoom .book { transform: translateX(calc(var(--w) / 2)) scale(3.4); transition-duration: .8s; transition-timing-function: cubic-bezier(.6,0,.4,1); }
.book-stage.is-zoom { opacity: 0; transition: opacity .7s ease .15s; }

.book__face, .leaf, .book__cover {
  position: absolute; inset: 0;
  border-radius: 4px 12px 12px 4px;
}
.book__inside {
  background: linear-gradient(90deg, #0d0d0e 0%, #19191b 8%, #151516 100%);
  box-shadow: inset 0 0 0 1px var(--gold-soft), 0 30px 60px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
}
.book__inside::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid var(--gold-soft); border-radius: 2px 8px 8px 2px;
}
.book__inside img { width: 70%; }
.book__inside .k { font-family: var(--display); font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: .25em; color: var(--gold); }
.book__inside .s { font-size: .62rem; letter-spacing: .4em; color: var(--muted); text-transform: uppercase; }

.leaf, .book__cover {
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.45,.05,.25,1);
}
.leaf > i, .book__cover > i {
  position: absolute; inset: 0; border-radius: inherit;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.leaf > i { background: linear-gradient(90deg, #121213, #1d1d1f 60%, #171718); box-shadow: inset 0 0 0 1px rgba(201,164,92,.18); }
.leaf > i + i, .book__cover > i + i { transform: rotateY(180deg); border-radius: 12px 4px 4px 12px; }
.leaf > i + i { background: linear-gradient(270deg, #121213, #1c1c1e 60%, #161617); }
.leaf.l1 { transform: translateZ(1px); }
.leaf.l2 { transform: translateZ(2px); }
.leaf.l3 { transform: translateZ(3px); }
.book__cover { transform: translateZ(4px); }
.book__cover > i:first-child {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(135deg, #1b1b1d, #0a0a0b 70%);
  background-size: cover; background-position: center;
  box-shadow: inset 6px 0 12px rgba(0,0,0,.6), inset 0 0 0 1px var(--gold-soft), 0 30px 60px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.book__cover > i:first-child::before {
  content: ''; position: absolute; inset: 14px;
  border: 1.5px solid var(--gold); border-radius: 2px 8px 8px 2px; opacity: .8;
}
.book__cover > i:first-child::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.6), transparent);
}
.book__cover img { width: 68%; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.book__cover .t { font-family: var(--display); font-style: normal; color: var(--gold); letter-spacing: .35em; font-size: clamp(1.1rem, 4vw, 1.5rem); }
.book__cover > i + i { background: linear-gradient(270deg, #0f0f10, #1a1a1c); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.book__cover.has-image > i:first-child img, .book__cover.has-image > i:first-child .t { display: none; }

.book-stage.is-open .book__cover { transform: translateZ(4px) rotateY(-178deg); }
.book-stage.is-open .leaf.l3 { transform: translateZ(3px) rotateY(-176deg); transition-delay: .18s; }
.book-stage.is-open .leaf.l2 { transform: translateZ(2px) rotateY(-174deg); transition-delay: .34s; }
.book-stage.is-open .leaf.l1 { transform: translateZ(1px) rotateY(-172deg); transition-delay: .5s; }
.book-stage__hint { position: absolute; bottom: calc(26px + var(--safe-bottom)); font-size: .7rem; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }

/* ==================== MENÚ ==================== */
.menu {
  min-height: 100vh; min-height: 100dvh;
  position: relative;
  opacity: 0; transform: scale(1.03);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.menu.is-visible { opacity: 1; transform: none; }
.menu__bg {
  position: fixed; inset: 0; z-index: -1;
  background-color: var(--ink);
  background-size: cover; background-position: center top;
}
.menu__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7)); }

.menu__header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(8,8,9,.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.back-btn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 6px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.back-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.back-btn svg { width: 22px; height: 22px; }
.menu__logo { height: 34px; width: auto; }

.menu__main { max-width: 1080px; margin: 0 auto; padding: 34px 16px calc(40px + var(--safe-bottom)); }
.menu__title { text-align: center; margin-bottom: 30px; }
.menu__title h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4rem); letter-spacing: .3em; padding-left: .3em;
}
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament span { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }

.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  background: #151516;
  box-shadow: 0 16px 36px rgba(0,0,0,.5);
  text-align: left;
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.card.is-in { opacity: 1; transform: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%);
}
.card::before {
  content: ''; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(201,164,92,0); border-radius: 15px; transition: border-color .4s ease;
}
.card:hover img { transform: scale(1.06); }
.card:hover::before, .card:focus-visible::before { border-color: rgba(201,164,92,.7); }
.card__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  padding: 18px 22px 20px;
}
.card__label h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.55rem, 5vw, 1.9rem); letter-spacing: .08em; line-height: 1.05;
  text-shadow: 0 3px 12px rgba(0,0,0,.8);
}
.card__label small { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .28em; color: var(--gold); margin-top: 6px; }
.card__go {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.35);
  transition: background .25s ease, border-color .25s ease;
}
.card:hover .card__go { background: var(--gold); border-color: var(--gold); color: #111; }
.card__go svg { width: 18px; height: 18px; }

.menu__footer { margin-top: 42px; text-align: center; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.menu__footer p { max-width: 640px; margin: 0 auto 18px; }
.menu__social { display: flex; justify-content: center; gap: 14px; }
.menu__social .icon-btn { width: 46px; height: 46px; }

/* ==================== SECCIÓN (MODAL) ==================== */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.6);
  opacity: 0; transition: opacity .35s ease;
}
.sheet.is-open { opacity: 1; }
.sheet__panel {
  position: relative;
  width: 100%; max-width: 780px; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(10,10,11,.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(40px);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.sheet.is-open .sheet__panel { transform: none; }
@media (min-width: 820px) {
  .sheet { align-items: center; padding: 3vh 20px; }
  .sheet__panel { height: auto; max-height: 94vh; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
}
.sheet__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + var(--safe-top)) 14px 12px 22px;
  background: rgba(10,10,11,.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) { .sheet__bar { padding-top: 12px; } }
.sheet__bar h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: .12em; }
.close-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); transition: background .2s ease, border-color .2s ease;
}
.close-btn:hover { background: rgba(255,255,255,.08); border-color: var(--gold); }
.close-btn svg { width: 20px; height: 20px; }
.sheet__body { padding: 18px 20px calc(30px + var(--safe-bottom)); }
@media (min-width: 640px) { .sheet__body { padding: 22px 40px 40px; } }

.carousel {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: #151516; margin-bottom: 26px;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  touch-action: pan-y;
}
.carousel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.1s ease, transform 4s ease;
}
.carousel img.is-active { opacity: 1; transform: scale(1); }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.5); transition: width .3s ease, background .3s ease; padding: 0; }
.carousel__dots button.is-active { width: 22px; background: var(--gold); }
.carousel__nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s ease; }
.carousel:hover .carousel__nav { opacity: 1; }
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.carousel__nav svg { width: 18px; height: 18px; }

.promo {
  margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--gold-soft);
  background: linear-gradient(135deg, rgba(201,164,92,.18), rgba(201,164,92,.05));
  text-align: center; font-size: .82rem; letter-spacing: .14em; color: #f3e3c0; line-height: 1.6;
}

.group { margin-top: 30px; }
.group:first-of-type { margin-top: 6px; }
.group__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: .14em; color: var(--gold);
  margin-bottom: 6px;
}
.group__title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-soft), transparent); }
.group__note { font-size: .86rem; color: var(--muted); font-style: italic; margin-bottom: 8px; line-height: 1.5; }
.items { list-style: none; }
.items--compact { display: grid; grid-template-columns: 1fr; column-gap: 36px; }
@media (min-width: 560px) { .items--compact { grid-template-columns: 1fr 1fr; } }
.item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.item__row { display: flex; align-items: baseline; gap: 10px; }
.item__name { font-weight: 500; font-size: .98rem; letter-spacing: .06em; }
.item__dots { flex: 1; min-width: 14px; border-bottom: 1px dotted rgba(245,241,234,.25); transform: translateY(-4px); }
.item__price { font-weight: 500; color: var(--gold); white-space: nowrap; font-size: 1rem; }
.item__desc { margin-top: 4px; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px;
  font-size: .6rem; letter-spacing: .14em; vertical-align: 2px;
  color: #111; background: var(--gold);
}
.sheet__notes { margin-top: 28px; font-size: .74rem; color: var(--muted); line-height: 1.6; text-align: center; }
.sheet__notes p + p { margin-top: 8px; }
.sheet__pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pager-btn {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  font-size: .9rem; letter-spacing: .08em; transition: border-color .2s ease, background .2s ease;
}
.pager-btn small { font-size: .62rem; letter-spacing: .24em; color: var(--muted); }
.pager-btn--next { text-align: right; }
.pager-btn:hover { border-color: var(--gold); background: rgba(201,164,92,.06); }

.loading { text-align: center; color: var(--muted); padding: 40px 0; letter-spacing: .2em; font-size: .75rem; }

@media (max-width: 380px) {
  .btn { font-size: 1rem; letter-spacing: .2em; }
  .btn--primary { font-size: 1.25rem; }
  .icon-btn { width: 50px; height: 50px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .home__logo { width: 180px; }
  .home__tagline { margin-bottom: 4px; }
  .home__buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; width: min(100%, 760px); }
  .btn { min-height: 50px; flex: 1 1 200px; }
  .btn--primary { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Marca de agua en la página izquierda del libro abierto (食 = "shoku", comida) */
.leaf.l1 > i + i { display: grid; place-items: center; }
.leaf.l1 > i + i::after {
  content: '食'; font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-style: normal;
  font-size: calc(var(--w) * .42); color: var(--gold); opacity: .22;
}

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 8px; padding: 2px 20px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: .68rem; letter-spacing: .14em; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.chips button:hover { border-color: var(--gold); color: var(--gold); }
@media (min-width: 640px) { .chips { margin: 0 -40px 8px; padding: 2px 40px 10px; flex-wrap: wrap; } }
