/* TipMate — venue pages (restaurantes.html, hoteles.html, salones.html).
 * Hero + a numbered walkthrough where every step has a live scene (app screens from
 * screens.css, plus the printed QR items and the split diagram drawn here). */

/* ─── Hero visual: printed QR + phone ────────────────────── */
.vn-hero-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 1.5rem; --dm-phone-w: 260px; }
@media (max-width: 560px) { .vn-hero-visual { --dm-phone-w: 200px; gap: 0.75rem; } .vn-hero-visual .vn-stand { transform: scale(.78); transform-origin: bottom right; margin-left: -1.5rem; } }

/* ─── Walkthrough ────────────────────────────────────────── */
.vn-walk { padding: 6rem 2rem; background: var(--page-bg-deep); }
.vn-steps { position: relative; max-width: 1200px; margin: 0 auto; }
.vn-steps::before { content: ''; position: absolute; left: 21px; top: 2.5rem; bottom: 2.5rem; width: 2px; background: linear-gradient(180deg, rgba(73,205,254,0.5), rgba(73,205,254,0.08)); }
.vn-step { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: center; padding: 3rem 0 3rem 76px; }
.vn-step-num {
  position: absolute; left: 0; top: 3.2rem; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--page-bg-deep);
  border: 2px solid var(--accent); color: var(--accent); font-family: 'Space Mono', monospace; font-weight: 700;
}
.vn-step h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.75rem; }
.vn-step p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1rem; }
.vn-step ul { list-style: none; display: grid; gap: 0.6rem; }
.vn-step li { color: #d4d4d8; font-size: 0.97rem; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.vn-step li::before { content: '✓'; color: var(--accent); font-weight: 700; flex: none; }
.vn-scene { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 420px; --dm-phone-w: 250px; }
.vn-scene .dm-laptop { max-width: 620px; }

/* ─── Printed items ──────────────────────────────────────── */
.vn-qr { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px; padding: 7px; }
/* Table stand, stylised: a thin clear frame around the printed card, on a slim base.
   Deliberately halfway between a flat card and a photo-real acrylic, so it doesn't pull focus. */
.vn-stand { position: relative; width: 170px; display: flex; flex-direction: column; align-items: center; }
.vn-stand-acrylic {
  position: relative; width: 100%; padding: 5px; border-radius: 16px 16px 7px 7px;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.22); box-shadow: 0 18px 36px rgba(0,0,0,0.32);
}
.vn-stand-acrylic::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,0.07) 46%, transparent 56%);
}
.vn-stand-card { position: relative; padding: 15px 13px 12px; border-radius: 12px 12px 4px 4px; text-align: center; background: linear-gradient(180deg, #302e33, #252328); }
.vn-stand-base {
  position: relative; width: 112%; height: 9px; margin-top: -2px; border-radius: 4px 4px 9px 9px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)); border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
.vn-stand-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; color: #fff; line-height: 1.2; margin-bottom: 10px; }
.vn-stand-sub { font-size: 10px; color: #9a9a9f; margin-top: 9px; }
.vn-stand-tag { display: inline-block; margin-top: 8px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: #0f0f11; background: var(--accent); border-radius: 20px; padding: 2px 10px; }
.vn-stand-logo { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 12px; }
.vn-stand-logo svg { width: 16px; height: 16px; }
.vn-stand-logo .t { color: #fff; } .vn-stand-logo .m { color: var(--accent); }
/* Personal card: the waiter's own QR */
.vn-card {
  width: 190px; border-radius: 18px; padding: 16px; background: #fff; color: #1a1a1d; text-align: center;
  box-shadow: 0 26px 50px rgba(0,0,0,0.35); transform: rotate(-4deg);
}
.vn-card-ava { width: 54px; height: 54px; border-radius: 16px; border: 3px solid var(--accent); overflow: hidden; margin: -38px auto 8px; background: #EFE6DA; }
.vn-card-ava svg { width: 100%; height: 100%; display: block; }
.vn-card-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px; }
.vn-card-sub { font-size: 11px; color: #6B7280; margin-bottom: 10px; }
.vn-card .vn-qr { padding: 0; }
.vn-choice { display: flex; align-items: flex-end; gap: 2.5rem; }
.vn-choice-item { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.vn-choice-label { font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* A row of room stands */
.vn-stands { display: flex; align-items: flex-end; gap: 1.1rem; }
.vn-stands-item .vn-stand { width: 138px; }
.vn-stands-item:nth-child(2) { transform: translateY(-14px); }
@media (max-width: 600px) { .vn-stands { gap: 0.5rem; } .vn-stands-item .vn-stand { width: 100px; } .vn-stands-item .vn-stand-title { font-size: 10px; } }

/* ─── Split diagram ──────────────────────────────────────── */
.vn-split {
  width: 100%; max-width: 480px; background: #48464B; border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 1.4rem;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif; box-shadow: 0 26px 50px rgba(0,0,0,0.3);
}
.vn-split-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; }
.vn-split-tabs span { padding: 0.45rem 0.85rem; border-radius: 10px; font-size: 0.85rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.08); color: #c4c4c8; transition: all .3s; }
.vn-split-tabs span.is-on { background: rgba(73,205,254,0.15); border-color: #49CDFE; color: #49CDFE; }
.vn-split-tip { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(73,205,254,0.14), rgba(73,205,254,0.04)); border: 1px solid rgba(73,205,254,0.3); }
.vn-split-tip span { color: #c4c4c8; font-size: 0.85rem; }
.vn-split-tip b { color: #49CDFE; font-size: 1.35rem; font-weight: 600; }
.vn-split-row { display: grid; grid-template-columns: 36px 1fr 44px; grid-template-rows: auto auto; column-gap: 0.75rem; row-gap: 0.35rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid rgba(255,255,255,0.07); transition: opacity .3s; }
.vn-split-ava { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.vn-split-ava svg { width: 100%; height: 100%; display: block; }
.vn-split-name { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 500; }
.vn-split-name em { font-style: normal; color: #8e8c92; font-size: 0.8rem; margin-left: 0.4rem; }
.vn-split-amt { color: #49CDFE; font-weight: 600; font-variant-numeric: tabular-nums; }
.vn-split-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.vn-split-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #49CDFE, #7BE0FF); transition: width .7s cubic-bezier(.4,0,.2,1); }
.vn-split-row .dm-switch { grid-row: 1 / 3; grid-column: 3; --bg-el: #3F3D42; --border: rgba(255,255,255,0.08); --muted: #c4c4c8; --c: #49CDFE; --c-dim: rgba(73,205,254,0.15); }
.vn-split-row.is-off { opacity: 0.5; }
.vn-split-row.is-off .vn-split-amt { color: #8e8c92; }
.vn-split-note { margin-top: 0.9rem; font-size: 0.82rem; color: #8e8c92; min-height: 2.4em; }
.vn-split.is-pct .dm-switch { visibility: hidden; }

/* Menu step: the stand plus one phone that swaps between the carta and the pay page */
.vn-menu-stand { flex: none; }
.vn-stack { display: grid; }
.vn-stack > div { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s ease; }
.vn-stack-b { opacity: 0; transform: translateX(16px); pointer-events: none; }
.vn-stack.is-pay .vn-stack-a { opacity: 0; transform: translateX(-16px); }
.vn-stack.is-pay .vn-stack-b { opacity: 1; transform: none; }
@media (max-width: 600px) { .vn-menu-stand { display: none; } }

/* ─── Advantages (white cards) ───────────────────────────── */
.dm-explain-grid.vn-adv-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1099px) {
  .vn-walk { padding: 4rem 1.25rem; }
  .vn-step { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2.5rem 0 2.5rem 60px; }
  .vn-step-num { top: 2.4rem; }
  .vn-steps::before { left: 21px; }
  .vn-scene { min-height: 0; }
  .dm-explain-grid.vn-adv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .vn-step { padding-left: 0; }
  .vn-step-num { position: static; margin-bottom: -1rem; }
  .vn-steps::before { display: none; }
  .vn-scene { --dm-phone-w: 230px; }
  .vn-choice { gap: 1rem; }
  .vn-choice .vn-card { width: 150px; padding: 12px; }
  .vn-choice .vn-stand { width: 146px; }
  .vn-choice .vn-stand-card { padding: 12px 10px 10px; }
  .vn-choice-label { font-size: 0.62rem; letter-spacing: 1px; }
  .dm-explain-grid.vn-adv-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vn-split-bar i { transition: none; } }

/* ─── Restaurant hero scene: a customer at a table, her screen shown up close beside it ── */
.rs-scene { --dm-phone-w: 200px; }
.rs-table { position: absolute; z-index: 2; left: 0; right: 22%; bottom: 0; height: 176px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%); }
.rs-table-top { position: absolute; left: 0; right: 0; bottom: 28px; height: 148px; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(91deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 23px), linear-gradient(180deg, #5d4839 0%, #4d3b2e 55%, #433327 100%); }
.rs-table-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(180deg, #33271f, #251c17); }
.rs-obj { position: absolute; z-index: 3; }
.rs-obj > svg { display: block; width: 100%; height: auto; overflow: visible; }
.rs-person { z-index: 1; left: 30%; bottom: 140px; width: 250px; }
.rs-plate { left: 5%; bottom: 86px; width: 132px; }
.rs-cutlery { left: 7%; bottom: 66px; width: 86px; z-index: 2; }
.rs-bill { left: 37%; bottom: 62px; width: 128px; }
.rs-stand { left: 21.5%; bottom: 100px; }
.rs-stand .vn-stand { width: 108px; }
/* On the table the stand is a small table card: one-line title, QR, table number, logo */
.rs-stand .vn-stand-title { font-size: 10px; white-space: nowrap; margin-bottom: 7px; letter-spacing: -0.1px; }
.rs-stand .vn-stand-card { padding: 9px 9px 8px; }
.rs-stand .vn-stand-sub { display: none; }
.rs-stand .vn-stand-tag { margin-top: 6px; font-size: 9.5px; padding: 1px 8px; }
.rs-stand .vn-stand-logo { margin-top: 6px; font-size: 10px; }
.rs-stand .vn-stand-logo svg { width: 12px; height: 12px; }
.rs-cup { left: 52%; bottom: 92px; width: 96px; }
.rs-glass { left: 63%; bottom: 100px; width: 34px; }
.rs-phone { z-index: 4; right: 3%; bottom: 36px; }
.rs-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.rs-steam path { animation: rs-steam 3.2s ease-in-out infinite; opacity: 0; }
.rs-steam path:nth-child(2) { animation-delay: 1.1s; }
.rs-steam path:nth-child(3) { animation-delay: 2.1s; }
@keyframes rs-steam { 0% { opacity: 0; transform: translateY(8px); } 35% { opacity: .55; } 100% { opacity: 0; transform: translateY(-18px); } }
@media (max-width: 900px) {
  .rs-scene { --dm-phone-w: 170px; }
  .rs-table { right: 26%; }
  .rs-plate, .rs-glass, .rs-link, .rs-cutlery, .rs-bill { display: none; }
  .rs-stand { left: 2%; }
  .rs-person { left: 22%; width: 210px; }
  .rs-cup { left: 50%; width: 80px; }
}
@media (max-width: 560px) {
  .rs-scene { --dm-phone-w: 142px; height: 380px; }
  .rs-table { right: 34%; height: 150px; }
  .rs-table-top { height: 122px; }
  /* Phones: the stand stays (it's the point of the scene), small and in front of the customer */
  .rs-stand { left: 3%; bottom: 62px; z-index: 5; }
  .rs-stand .vn-stand { width: 82px; }
  .rs-stand .vn-stand-title { font-size: 7.5px; margin-bottom: 5px; }
  .rs-stand .vn-stand-card { padding: 7px 7px 6px; }
  .rs-stand .vn-stand-tag { font-size: 7.5px; margin-top: 4px; }
  .rs-stand .vn-stand-logo { font-size: 8px; margin-top: 4px; }
  .rs-person { left: 16%; width: 170px; bottom: 110px; }
  .rs-cup { left: 44%; width: 58px; bottom: 76px; }
  .rs-phone { right: 2%; bottom: 20px; }
}
@media (max-width: 400px) { .rs-cup { display: none; } }
@media (prefers-reduced-motion: reduce) { .rs-steam path { animation: none; opacity: .35; } }

/* ─── Hotel hero scene: a guest sitting up in bed; the room card on the bedside table ── */
.ht-headboard { position: absolute; z-index: 0; left: 20%; width: 44%; bottom: 110px; height: 200px; border-radius: 26px 26px 6px 6px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 54px), linear-gradient(180deg, #62566a, #4f4556); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.ht-pillows { z-index: 1; left: 22%; width: 40%; bottom: 136px; }
.ht-person { z-index: 2; left: 30.5%; bottom: 104px; width: 230px; }
.ht-duvet { position: absolute; z-index: 3; left: 16%; width: 52%; bottom: 0; height: 132px; border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #F1EEE9 0%, #E4E0DA 100%); box-shadow: inset 0 10px 0 rgba(255,255,255,0.5), 0 -6px 18px rgba(0,0,0,0.18); }
.ht-duvet::after { content: ''; position: absolute; left: 0; right: 0; bottom: 34px; height: 30px; background: #6B8F71; opacity: 0.9; }
.ht-book { display: none; }
.ht-night { position: absolute; z-index: 3; left: 1%; width: 13%; bottom: 0; height: 150px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #5d4839 0 12px, #4d3b2e 12px 100%); box-shadow: 0 -4px 14px rgba(0,0,0,0.25); }
.ht-night-drawer { position: absolute; left: 12%; right: 12%; top: 34px; height: 44px; border: 2px solid rgba(0,0,0,0.25); border-radius: 4px; }
.ht-night-drawer::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 4px; margin: -2px 0 0 -9px; border-radius: 2px; background: #c9a96b; }
.ht-sconce { z-index: 1; left: 10%; bottom: 318px; width: 96px; transform: scaleX(-1); }
.ht-scene .rs-stand { left: 2.5%; bottom: 150px; z-index: 4; }
@media (max-width: 900px) {
  .ht-headboard { left: 22%; width: 46%; }
  .ht-pillows { left: 24%; width: 42%; }
  .ht-person { left: 30%; width: 200px; }
  .ht-duvet { left: 18%; width: 54%; }
  .ht-book, .ht-sconce { display: none; }
}
@media (max-width: 560px) {
  .ht-headboard { left: 16%; width: 52%; bottom: 92px; height: 150px; }
  .ht-pillows { left: 18%; width: 48%; bottom: 118px; }
  .ht-person { left: 17%; width: 160px; bottom: 80px; }
  .ht-duvet { left: 10%; width: 62%; height: 104px; }
  .ht-duvet::after { bottom: 26px; height: 22px; }
  .ht-night { left: 0; width: 22%; height: 120px; }
  .ht-scene .rs-stand { left: 1%; bottom: 120px; }
}

/* ─── Salon hero scene: a client at reception choosing her stylist ── */
.sl-mirror { z-index: 0; left: 5%; bottom: 140px; width: 180px; }
.sl-plant { z-index: 0; left: 61%; bottom: 140px; width: 96px; }
.sl-person { z-index: 1; left: 30.5%; bottom: 104px; width: 230px; }
.sl-counter { position: absolute; z-index: 2; left: 0; right: 22%; bottom: 0; height: 150px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.sl-counter-top { position: absolute; left: 0; right: 0; top: 0; height: 26px; border-radius: 6px 6px 0 0;
  background: linear-gradient(100deg, #F1ECE5 0%, #E6DFD6 40%, #F3EEE8 60%, #E2DBD2 100%); }
.sl-counter-top::after { content: ''; position: absolute; left: 12%; right: 30%; top: 9px; height: 1px; background: rgba(160,150,140,0.45); transform: rotate(-0.6deg); }
.sl-counter-front { position: absolute; left: 0; right: 0; top: 26px; bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0 2px, transparent 2px 64px), linear-gradient(180deg, #CFC5B8, #B9AE9F); }
.sl-bottles { z-index: 3; left: 53%; bottom: 142px; width: 60px; }
.sl-scissors { display: none; }
.sl-scene .rs-stand { left: 17%; bottom: 140px; z-index: 3; }
@media (max-width: 900px) {
  .sl-plant, .sl-scissors { display: none; }
  .sl-mirror { width: 150px; }
  .sl-person { left: 30%; width: 200px; }
  .sl-bottles { left: 50%; }
}
@media (max-width: 560px) {
  .sl-mirror { left: 2%; width: 110px; bottom: 120px; }
  .sl-person { left: 17%; width: 160px; bottom: 92px; }
  .sl-counter { right: 34%; height: 128px; }
  .sl-bottles { display: none; }
  .sl-scene .rs-stand { left: 1%; bottom: 118px; }
}
/* Split card on narrow screens: one line per tab and per person */
.vn-split-tabs span { white-space: nowrap; }
.vn-split-name > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-split-amt { white-space: nowrap; flex: none; margin-left: 0.5rem; }
@media (max-width: 600px) {
  .vn-split { padding: 1rem; }
  .vn-split-tabs { gap: 0.3rem; }
  .vn-split-tabs span { padding: 0.4rem 0.55rem; font-size: 0.74rem; }
  .vn-split-name em { font-size: 0.72rem; }
}
