/* TOQUIA Cinematic — Scene 04 · Menú digital y Experiencia (available today).
   Cream room. The digital menu gets its own pinned moment: scan, browse, switch category,
   see what is sold out per location. Then table calls, availability and staff arrive around
   the phone as complementary tools. Static mode shows the whole composition at once. */

.ops-layout { display: grid; gap: var(--space-lg); align-items: center; width: 100%; }
@media (min-width: 960px) { .ops-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.ops-stage { aspect-ratio: auto; height: clamp(420px, calc(100svh - 200px), 700px); perspective: none; }
.ops-light {
  position: absolute; inset: -10% -6%;
  background:
    radial-gradient(ellipse 45% 40% at 55% 45%, rgba(197,164,109,.22), transparent 70%),
    radial-gradient(ellipse 30% 30% at 70% 75%, rgba(20,92,70,.10), transparent 70%);
  pointer-events: none;
}
.ops-layer { position: absolute; will-change: transform; }
.ops-k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--tq-gold-ink); margin-bottom: .45rem; }

/* Surfaces: warm white paper, hairline borders, long soft shadows */
.ops-tent, .ops-team, .ops-alert, .ops-stock {
  background: #fff;
  border: 1px solid rgba(17,20,18,.07);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(17,20,18,.05), 0 30px 50px -30px rgba(60,44,20,.45);
  color: var(--tq-charcoal);
}

/* Table tent with the table QR (behind, left) */
.ops-tent {
  left: 0; top: 12%;
  width: 30%;
  padding: 1rem;
  display: grid; justify-items: center; gap: .35rem; text-align: center;
  background: linear-gradient(170deg, var(--tq-beige), #fff 70%);
  rotate: -7deg;
}
.ops-tent-qr {
  width: 62%; aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(var(--tq-charcoal) 0 0) 8% 8% / 26% 26% no-repeat,
    linear-gradient(var(--tq-charcoal) 0 0) 92% 8% / 26% 26% no-repeat,
    linear-gradient(var(--tq-charcoal) 0 0) 8% 92% / 26% 26% no-repeat,
    repeating-conic-gradient(var(--tq-charcoal) 0 25%, #fff 0 50%) 0 0 / 14% 14%;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px rgba(17,20,18,.08);
}
.ops-tent b { font-size: 1.05rem; }
.ops-tent small { font-size: .72rem; color: var(--ink-muted); line-height: 1.35; }

/* Team of the day (behind, right) */
.ops-team { right: 0; top: 6%; width: 34%; padding: .9rem 1rem; rotate: 4deg; }
.ops-team ul { display: grid; gap: .45rem; }
.ops-team li { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; font-size: .82rem; font-weight: 500; }
.ops-team li small { grid-column: 2; font-size: .7rem; color: var(--ink-muted); font-weight: 400; margin-top: -.2rem; }
.ops-team i { grid-row: span 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-style: normal; font-size: .62rem; font-weight: 700; background: var(--tq-beige); color: var(--tq-emerald); border: 1px solid rgba(20,92,70,.18); }

/* Phone with the digital menu (center) */
.ops-phone {
  left: 50%; top: 0;
  height: 86%;
  aspect-ratio: 9 / 18.5;
  translate: -50% 0;
  padding: 2.2%;
  border-radius: 36px;
  background: linear-gradient(160deg, #2c312d, var(--tq-charcoal) 60%);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 50px 70px -40px rgba(40,28,10,.7);
  z-index: 2;
}
.ops-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--tq-cream);
  padding: 20% 7% 0;
  display: flex; flex-direction: column; gap: 4%;
  font-size: clamp(.62rem, .95vw, .82rem);
}
.ops-top { display: grid; gap: .7em; }
.ops-viewport { position: relative; flex: 1; overflow: hidden; margin: 0 -4%; padding: 0 4%; }
.ops-menu li em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-weight: 600; font-size: .95em; }
.ops-menu li.is-tap { box-shadow: 0 0 0 2px var(--tq-emerald), 0 10px 18px -12px rgba(60,44,20,.5); }
.ops-scan { position: absolute; left: 4%; right: 4%; top: 0; height: 3px; border-radius: 3px; background: var(--tq-emerald); box-shadow: 0 0 12px 3px rgba(20,92,70,.45); opacity: 0; }
.ops-tent-qr { position: relative; }
.ops-brand { font-weight: 700; font-size: 1.35em; color: var(--tq-emerald); }
.ops-tabs { display: flex; gap: .4em; font-size: .85em; }
.ops-tabs li { padding: .3em .8em; border-radius: 99px; border: 1px solid rgba(17,20,18,.1); color: var(--ink-muted); }
.ops-tabs li.is-on { background: var(--tq-charcoal); color: var(--tq-beige); border-color: transparent; }
.ops-menu { display: grid; gap: .7em; }
.ops-menu li { display: grid; grid-template-columns: 2.9em 1fr auto; column-gap: .7em; align-items: center; padding: .45em; border-radius: 12px; background: #fff; box-shadow: 0 6px 14px -10px rgba(60,44,20,.4); }
.ops-menu li b { font-weight: 600; }
.ops-menu li small { grid-column: 2; color: var(--ink-muted); font-size: .85em; }
.ops-dish { grid-row: span 2; width: 2.9em; aspect-ratio: 1; border-radius: 10px; background: center / cover no-repeat #eadfca; }
.d1 { background: radial-gradient(circle at 40% 40%, #f3c46b 0 22%, #f7efe2 23% 60%, #c8693a 61%); }
.d2 { background: radial-gradient(circle at 50% 45%, #b5463f 0 14%, #d9a35e 15% 62%, #f7efe2 63%); }
.d3 { background: radial-gradient(circle at 50% 50%, #c33f2a 0 30%, #e8b35d 31% 60%, #f7efe2 61%); }
.d4 { background: radial-gradient(circle at 45% 45%, #7fb069 0 28%, #c9d98f 29% 55%, #f7efe2 56%); }
.d5 { background: linear-gradient(170deg, #f6c7cf, #e3828f); }
.d6 { background: linear-gradient(170deg, #eef3c9, #b9d36b); }
.d7 { background: linear-gradient(170deg, #f7efe2, #e7d6b2); }
.ops-menu li.is-out { opacity: .55; }
.ops-menu li.is-out small { color: var(--tq-gold-ink); font-weight: 600; }

/* Table call (front, right) */
.ops-alert {
  right: -2%; top: 44%;
  width: 52%;
  padding: .8rem .9rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
  z-index: 3;
  background: var(--tq-charcoal); color: var(--tq-beige);
  border-color: rgba(197,164,109,.35);
  box-shadow: 0 40px 60px -30px rgba(17,20,18,.6);
}
.ops-alert b { display: block; font-size: .86rem; font-weight: 600; }
.ops-alert small { font-size: .72rem; color: #A9A59D; }
.ops-bell { position: relative; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(197,164,109,.16); }
.ops-bell::before { content: ""; position: absolute; inset: 28%; border-radius: 50% 50% 20% 20%; background: var(--tq-gold); }
.ops-bell::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(197,164,109,.6); opacity: 0; }
.ops-alert.is-ringing .ops-bell::after { animation: ring 1.6s var(--ease-out) infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
.ops-accept { padding: .45em .9em; border-radius: 99px; background: var(--tq-beige); color: var(--tq-charcoal); font-size: .72rem; font-weight: 600; }

/* Availability by location (front, left) */
.ops-stock { left: -2%; bottom: 14%; width: 38%; padding: .85rem 1rem; z-index: 3; rotate: -3deg; }
.ops-stock p:not(.ops-k) { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 500; padding: .2rem 0; }
.ops-stock small { margin-left: auto; font-size: .7rem; color: var(--ink-muted); }
.ops-stock i { width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--tq-gold-ink); }
.ops-stock i.on { background: var(--tq-emerald); border-color: var(--tq-emerald); }

/* ── Adaptable modules ─────────────────────────────── */
.ops-adapt {
  display: grid; gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
@media (min-width: 960px) { .ops-adapt { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; column-gap: var(--space-xl); } .ops-adapt-head { grid-row: span 2; } }
.ops-adapt-head { display: grid; gap: .5rem; }
.ops-adapt-head h3 { font-size: var(--fs-h2); }
.ops-adapt-head p:last-child { color: var(--ink-muted); font-size: var(--fs-small); max-width: 26rem; }
.ops-switch { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; border-radius: 99px; background: var(--tq-beige); border: 1px solid var(--line); justify-self: start; }
.ops-switch button { padding: .55em 1.1em; border-radius: 99px; font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); transition: background .25s, color .25s; }
.ops-switch button[aria-checked="true"] { background: var(--tq-charcoal); color: var(--tq-beige); }
.ops-modules { display: grid; gap: 0; }
@media (min-width: 640px) { .ops-modules { grid-template-columns: 1fr 1fr; column-gap: var(--space-md); } }
.ops-modules li {
  position: relative;
  display: grid; gap: .2rem;
  padding: .9rem 0 .9rem 2.1rem;
  border-bottom: 1px solid var(--line);
  transition: opacity .3s;
}
.ops-modules li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--tq-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FAF7F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.ops-modules li b { font-weight: 600; }
.ops-modules li span { font-size: var(--fs-small); color: var(--ink-muted); }
.ops-modules li.is-off { opacity: .42; }
.ops-modules li.is-off::before { background: transparent; border: 1.5px dashed var(--tq-gold-ink); }
.ops-modules li.is-off b::after { content: " · no lo necesitás"; font-weight: 400; color: var(--tq-gold-ink); }

@media (max-width: 959px) {
  .ops-stage { height: clamp(280px, calc(100svh - 450px), 560px); max-width: 560px; margin-inline: auto; width: 100%; }
  .ops-phone .ops-screen { font-size: .62rem; }
  .ops-tent { width: 32%; padding: .7rem; }
  .ops-team { width: 38%; padding: .7rem; }
  .ops-alert { width: 64%; right: -1%; padding: .6rem .7rem; }
  .ops-stock { width: 46%; left: 0; padding: .7rem; }
  .ops-tent small, .ops-team li small { display: none; }
}
@media (max-width: 767px) {
  #experiencia .lead { font-size: var(--fs-body); }
  .ops-tent { width: 28%; } .ops-team { width: 34%; }
}
@media (max-width: 420px) {
  .ops-alert b { font-size: .74rem; } .ops-alert small { font-size: .64rem; }
  .ops-accept { display: none; }
  .ops-alert { grid-template-columns: auto 1fr; }
  .ops-team li, .ops-stock p:not(.ops-k) { font-size: .7rem; }
}
[data-tier="mid"] .ops-layer { will-change: auto; }

/* Captions and complementary layers (motion only; static mode shows everything) */
.ops-stage .stage-captions { z-index: 6; }
.is-animated .ops-extra { opacity: 0; }

/* Scene CTA (shared look) */
.scene-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-lg); padding: var(--space-md) var(--space-md); border-radius: 22px; background: var(--tq-charcoal); color: var(--tq-beige); }
.scene-cta p { font-size: var(--fs-h3); font-weight: 600; }
.scene-cta .btn-scene { background: var(--tq-beige) !important; color: var(--tq-charcoal) !important; }
[data-theme="cinema"] .scene-cta, [data-theme="dark"] .scene-cta { background: rgba(242,235,221,.05); border: 1px solid rgba(197,164,109,.35); }
.wallet-outro .scene-cta { margin-top: var(--space-sm); }
@media (max-width: 640px) { .scene-cta { justify-content: center; text-align: center; } }
.ops-menu[hidden] { display: none; }
@media (max-width: 767px) {
  .ops-tent b { font-size: .78rem; }
  .ops-tent { padding: .55rem; }
  .ops-team { width: 31%; right: 1%; padding: .55rem .6rem; }
  .ops-team li { font-size: .66rem; }
  .ops-team i { width: 1.4rem; height: 1.4rem; font-size: .5rem; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .ops-stage { height: clamp(230px, calc(100svh - 430px), 560px); }
  #experiencia .lead { font-size: var(--fs-small); }
  #experiencia h2 { font-size: 1.45rem; }
}
