:root {
  --y: #336cf0;         /* azul dzngio.com */
  --y-dark: #2556c9;
  --y-soft: #6f9aff;    /* azul claro para textos chicos sobre fondo oscuro */
  --ink: #f4f1ea;
  --ink-dim: #b9b4a8;
  --bg: #0c0c0b;
  --panel: rgba(16, 16, 15, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --display: 'Archivo', system-ui, sans-serif; /* texto corrido */
  --mono: 'Archivo', system-ui, sans-serif; /* datos: Archivo con cifras tabulares */
  --heading: 'Archivo', system-ui, sans-serif; /* títulos: Archivo normal, siempre con tracking negativo */
  --hero: 'Archivo', system-ui, sans-serif; /* hero: Archivo Condensed Black en mayúsculas */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--display); font-feature-settings: 'cv11', 'ss01'; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { color: var(--y-soft); margin-bottom: 0.8rem; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* ── loader ── */
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .8s ease, visibility .8s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-logo { width: min(320px, 70vw); filter: invert(1); }
.loader-bar { width: min(320px, 70vw); height: 3px; background: #222; overflow: hidden; }
#loader-fill { display: block; height: 100%; width: 0; background: var(--y); transition: width .3s; }
#loader p { color: var(--ink-dim); }

/* ── escena ── */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; touch-action: pan-y; }
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
}
body.hovering #scene { cursor: pointer; }

/* ── header ── */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 36px) 14px;
  background: linear-gradient(to bottom, rgba(12,12,11,.85), transparent);
}
.brand img { height: 26px; filter: invert(1); display: block; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav button, .top nav a {
  font-family: var(--display); font-size: .86rem; font-weight: 500; letter-spacing: 0;
  padding: 9px 12px; border-radius: 99px; text-decoration: none; transition: background .2s, color .2s;
}
.top nav button:hover { background: rgba(255,255,255,.08); }
.top nav button.active { color: var(--y-soft); }
.nav-cta { background: var(--y); color: #fff !important; font-weight: 600; }
@media (max-width: 640px) { .top nav button { display: none; } }

/* ── recorrido ── */
#journey { position: relative; z-index: 2; pointer-events: none; }
.stop { height: 130vh; }
.stop[data-key="0"] { height: 100vh; }
.stop[data-key="6"] { height: 110vh; }

.copy-layer { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.copy {
  position: absolute; opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease; pointer-events: none;
}
.copy.on { opacity: 1; transform: none; }
.copy.on .actions, .copy.on .btn { pointer-events: auto; }

.hero {
  left: clamp(16px, 6vw, 96px); bottom: clamp(60px, 12vh, 120px); max-width: 780px;
}
/* hero: Archivo Condensed Black, mayúsculas sostenidas */
.hero h1 {
  font-family: var(--hero); font-weight: 900; font-stretch: 75%; text-transform: uppercase;
  /* como el diseño en Illustrator: interlineado ~75% del cuerpo y tracking -75 */
  font-size: clamp(3.6rem, 8.2vw, 8rem); line-height: .76; letter-spacing: -0.075em; color: #fbf8f2;
}
.hero h1 .ln { display: block; overflow: hidden; padding: .1em .08em .02em 0; margin: -.1em 0 -.02em; } /* el recorte de la animación no come las letras con interlineado tan cerrado */
.hero h1 .ln > span { display: block; white-space: nowrap; }
.hero h1 .ln > .tag { display: inline-block; color: var(--y); } /* el mismo azul del kiosco */
.lede { margin-top: 1.4rem; max-width: 40ch; color: #e7e3d9; font-size: 1.125rem; line-height: 1.55; letter-spacing: -0.011em; text-wrap: pretty; }
/* fondo que contiene el texto: la escena 3D queda detrás, el texto siempre se lee */
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -45%; right: -55%; top: -38%; bottom: -34%;
  background: radial-gradient(closest-side, rgba(5,7,12,.82), rgba(5,7,12,.6) 52%, rgba(5,7,12,0));
}
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; margin-top: 1.4rem; list-style: none;
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .82rem; letter-spacing: 0; color: #cbc6bb; }
.hero-facts li { display: flex; align-items: center; gap: 1.1rem; }
.hero-facts li + li::before { content: ''; width: 4px; height: 4px; background: var(--y); }
.hero-facts b { color: #fff; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.6rem; }
.scroll-hint { display: flex; align-items: center; gap: .5rem; margin-top: 1.8rem; color: #a9a499; font-size: .85rem; }
.scroll-hint .ico { width: 16px; height: 16px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.card {
  left: clamp(16px, 4vw, 56px); bottom: max(clamp(24px, 6vh, 64px), env(safe-area-inset-bottom));
  max-width: 380px; padding: 22px 24px 24px;
  background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-left: 3px solid var(--y); border-radius: 4px;
}
.card.right { left: auto; right: clamp(56px, 6vw, 96px); }
.card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1;  margin-bottom: .6rem; }
.card p { color: var(--ink-dim); line-height: 1.5; font-size: .95rem; }
.tap { margin-top: .9rem; color: var(--y-soft) !important; font-size: .68rem !important; }
.tap::first-letter { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
/* íconos dibujados (en lugar de emojis) */
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top nav .cafe-btn { display: inline-flex; align-items: center; gap: .45rem; }
/* títulos de toda la página en la misma voz */
h2, h3 { font-family: var(--heading); font-weight: 700; font-stretch: 100%; letter-spacing: -0.04em; }
.cafe h3 em { font-family: inherit; font-style: normal; color: var(--y-soft); }

/* entrada del hero: una sola vez al cargar; el título entra por líneas, después bajada, botones y datos */
html.hero-intro .copy.hero { transition: none; }
html.hero-intro .hero h1 .ln > span { animation: heroLine .85s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--intro, .55s) + var(--d)); }
html.hero-intro .hero::before { animation: heroFade .9s ease-out both; animation-delay: var(--intro, .55s); }
html.hero-intro .hero .lede { animation: heroUp .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--intro, .55s) + 260ms); }
html.hero-intro .hero .actions { animation: heroUp .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--intro, .55s) + 340ms); --rise: 6px; }
html.hero-intro .hero .hero-facts { animation: heroFade .6s ease-out both; animation-delay: calc(var(--intro, .55s) + 430ms); }
html.hero-intro .hero .scroll-hint { animation: heroFade .6s ease-out both; animation-delay: calc(var(--intro, .55s) + 750ms); }
@keyframes heroLine { from { transform: translateY(108%); } to { transform: none; } }
@keyframes heroUp { from { opacity: 0; transform: translateY(var(--rise, 10px)); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.hero-intro .hero *, html.hero-intro .hero::before { animation: none !important; } }
::selection { background: var(--y); color: #fff; }

@media (max-width: 720px) {
  .card, .card.right { left: 16px; right: 16px; max-width: none; padding: 16px 18px; }
  .card h2 { font-size: 1.5rem; }
  .hero { left: 16px; right: 16px; bottom: 48px; }
  .hero h1 { font-size: clamp(3rem, 18.5vw, 5.4rem); }
  .hero h1 .ln > span { white-space: normal; }
  .lede { font-size: 1rem; margin-top: .9rem; }
  .hero-facts { font-size: .74rem; gap: .4rem .8rem; }
  .hero-facts li { gap: .8rem; }
  .scroll-hint { display: none; }
}

/* ── botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 99px; font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn.primary { background: var(--y); color: #fff; }
.btn.primary:hover { background: var(--y-dark); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(51,108,240,.25); }
.btn.ghost { border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.big { padding: 16px 28px; font-size: 1rem; }

/* ── riel ── */
.rail {
  position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 15; list-style: none; display: flex; flex-direction: column; gap: 14px;
  transition: opacity .4s;
}
.rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 2px; }
.rail button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); transition: all .3s; }
.rail button span { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: all .25s; color: var(--ink-dim); }
.rail button:hover span, .rail button.on span { opacity: 1; transform: none; }
.rail button.on::after { background: var(--y); border-color: var(--y); transform: scale(1.3); }
.rail button.on span { color: var(--y-soft); }
body.past-journey .rail, body.past-journey .copy-layer { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .rail { display: none; } }

/* ── tooltip ── */
#tooltip {
  position: fixed; z-index: 30; pointer-events: none; left: 0; top: 0;
  background: var(--y); color: #fff; padding: 8px 12px 9px; border-radius: 3px;
  font-weight: 800; font-size: .9rem; line-height: 1.15; opacity: 0;
  transform: translate(-50%, calc(-100% - 18px)); transition: opacity .15s; white-space: nowrap;
}
#tooltip small { display: block; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
#tooltip.on { opacity: 1; }

/* ── contenido posterior ── */
.after { position: relative; z-index: 10; background: var(--bg); }
.after::before { content: ''; position: absolute; left: 0; right: 0; top: -40vh; height: 40vh; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.catalog { padding: 100px 0 80px; }
.sec-head h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 650; letter-spacing: -0.035em; line-height: .95; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 36px; }
.filters button {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); transition: all .2s;
}
.filters button.on { background: var(--y); color: #fff; border-color: var(--y); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.item { text-align: left; display: block; }
.item .ph { position: relative; aspect-ratio: 1131 / 1600; overflow: hidden; background: #1a1a19; box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item:hover .ph { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 28px 60px rgba(0,0,0,.6), 0 0 0 3px var(--y); }
.item h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.item p { display: flex; justify-content: space-between; color: var(--ink-dim); font-size: .85rem; margin-top: 4px; }
.item p b { color: var(--y-soft); font-weight: 700; }

.how { padding: 60px 0 100px; border-top: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 20px; }
.steps b { font-family: var(--mono); color: var(--y-soft); font-size: .8rem; }
.steps h3 { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.035em; margin: 8px 0; }
.steps p { color: var(--ink-dim); line-height: 1.5; }
.foot { padding: 60px 0 calc(60px + env(safe-area-inset-bottom)); background: var(--y); color: #fff; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-logo { height: 46px; filter: invert(1); }

/* ── visor ── */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s; }
.viewer.open { visibility: visible; opacity: 1; }
.viewer-bg { position: absolute; inset: 0; background: rgba(8,8,7,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.viewer-inner {
  position: relative; width: min(1180px, 100%); max-height: 100dvh; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; padding: clamp(60px, 7vh, 80px) clamp(16px, 5vw, 72px);
}
.v-stage { display: grid; justify-items: center; gap: 18px; perspective: 1400px; }
.v-frame { transition: all .4s ease; transform: translateY(30px) scale(.94); opacity: 0; }
.viewer.open .v-frame { transform: none; opacity: 1; transition-delay: .08s; }
.v-tilt { position: relative; transform-style: preserve-3d; transition: transform .2s ease-out; will-change: transform; }
#v-img { display: block; height: min(72vh, 820px); max-width: 100%; aspect-ratio: 1131 / 1600; object-fit: cover; box-shadow: 0 40px 80px rgba(0,0,0,.6); background: #1a1a19; }
.v-glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.45), transparent 55%); }
.v-frame[data-frame="black"] .v-tilt { padding: 22px; background: #111; box-shadow: inset 0 0 0 1px #333, 0 40px 80px rgba(0,0,0,.6); }
.v-frame[data-frame="black"] #v-img { outline: 30px solid #f5f2ea; height: min(64vh, 740px); }
.v-frame[data-frame="wood"] .v-tilt { padding: 22px; background: linear-gradient(135deg, #a8774a, #7a5131 40%, #9b6c42 70%, #6c4529); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 40px 80px rgba(0,0,0,.6); }
.v-frame[data-frame="wood"] #v-img { outline: 30px solid #f5f2ea; height: min(64vh, 740px); }
.v-frame[data-frame="black"] .v-tilt, .v-frame[data-frame="wood"] .v-tilt { margin: 30px; }
.v-frames { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.v-frames button { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .66rem; }
.v-frames button.on { border-color: var(--y); color: var(--y-soft); }
.v-info h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 650; letter-spacing: -0.035em; line-height: .95; }
.v-sub { color: var(--ink-dim); margin-top: 8px; }
.v-desc { margin-top: 22px; line-height: 1.6; color: #dcd7cc; max-width: 46ch; }
.v-specs { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.v-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: .02em; }
.v-specs li span { color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; }
.v-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.v-price { font-size: 1.8rem; font-weight: 650; letter-spacing: -0.035em; }
.v-note { margin-top: 14px; color: var(--ink-dim); text-transform: none; letter-spacing: .02em; line-height: 1.5; }
.v-close, .v-nav { position: absolute; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 1.1rem; transition: background .2s; }
.v-close:hover, .v-nav:hover { background: var(--y); color: #fff; }
.v-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.v-nav { top: 50%; transform: translateY(-50%); }
.v-nav.prev { left: 12px; } .v-nav.next { right: 12px; }
@media (max-width: 860px) {
  .viewer-inner { grid-template-columns: 1fr; align-items: start; padding-top: 70px; }
  #v-img { height: auto; width: min(78vw, 420px); }
  .v-frame[data-frame="black"] #v-img, .v-frame[data-frame="wood"] #v-img { height: auto; width: min(62vw, 340px); outline-width: 18px; }
  .v-frame[data-frame="black"] .v-tilt, .v-frame[data-frame="wood"] .v-tilt { margin: 18px; padding: 14px; }
  .v-nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; position: fixed; }
}

.zoom { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; cursor: zoom-out; display: none; }
.zoom.open { display: block; }
.zoom img { position: absolute; left: 0; top: 0; width: 220vw; max-width: none; transform-origin: 0 0; will-change: transform; }
@media (orientation: landscape) { .zoom img { width: 140vw; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; transition: all .3s;
  background: #f4f1ea; color: #111; padding: 12px 18px; border-radius: 6px; max-width: min(92vw, 520px);
  text-transform: none; letter-spacing: .02em; line-height: 1.4; pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .copy, .v-frame, .item .ph { transition: none; }
  .scroll-hint, .tap::first-letter { animation: none; }
}

/* ── toggle día / noche ── */
.top nav .theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.28); margin: 0 4px;
}
.theme-btn i {
  width: 14px; height: 14px; border-radius: 50%; display: block; position: relative;
  background: var(--ink); box-shadow: inset -5px -2px 0 0 #222; transition: all .4s;
}
:root[data-theme="day"] .theme-btn i { background: #ffd21f; box-shadow: 0 0 0 3px rgba(255,210,31,.35); }
@media (max-width: 640px) { .top nav .theme-btn { display: inline-flex; } .theme-btn span { display: none; } }
.vignette { transition: background .8s; }
:root[data-theme="day"] .vignette {
  background: linear-gradient(90deg, rgba(10,10,10,.28), rgba(10,10,10,.06) 45%, transparent 65%),
              radial-gradient(ellipse at 50% 45%, transparent 65%, rgba(0,0,0,.14) 100%);
}
:root[data-theme="day"] .hero h1, :root[data-theme="day"] .lede { text-shadow: 0 1px 18px rgba(0,0,0,.35); }

/* ── cafecito ── */
.top nav .cafe-btn {
  font-family: var(--display); font-size: .86rem; font-weight: 500; letter-spacing: 0;
  padding: 9px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.28); display: inline-flex; gap: 6px; align-items: center;
}
.top nav .cafe-btn:hover { background: rgba(51,108,240,.25); border-color: var(--y); }
@media (max-width: 640px) { .top nav .cafe-btn { display: inline-flex; } .cafe-btn span { display: none; } }

.cafe {
  position: fixed; z-index: 45; right: clamp(12px, 3vw, 32px); bottom: max(clamp(12px, 3vw, 32px), env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 24px)); padding: 22px 22px 24px;
  background: rgba(14,14,13,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-top: 3px solid var(--y); border-radius: 10px;
  display: grid; grid-template-columns: 96px 1fr; gap: 6px 18px; align-items: start;
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.98);
  transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.2,1), visibility .35s;
}
.cafe.open { opacity: 1; visibility: visible; transform: none; }
.cafe-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; }
.cafe-x:hover { background: rgba(255,255,255,.1); }
.cafe h3 { font-size: 1.55rem; font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; padding-right: 20px; }
.cafe h3 em { font-family: inherit; font-style: normal; color: var(--y-soft); }
.cafe-copy { color: var(--ink-dim); font-size: .88rem; line-height: 1.45; margin-top: 8px; }
.cafe-opts { display: flex; gap: 8px; margin-top: 14px; }
.cafe-opts button { flex: 1; padding: 9px 6px; border-radius: 8px; border: 1px solid var(--line); display: grid; justify-items: center; transition: all .2s; }
.cafe-opts b { font-size: 1.2rem; font-weight: 650; }
.cafe-opts span { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.cafe-opts button.on { border-color: var(--y); background: rgba(51,108,240,.18); }
.cafe-row { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 12px; }
.cafe-row .mono { color: var(--ink-dim); }
.cafe-row b { font-size: 1.15rem; font-weight: 650; }
.cafe .btn.big { width: 100%; padding: 14px 18px; font-size: .95rem; }
.cafe-body, .cafe-thanks { grid-column: 2; grid-row: 1; }
.cafe-thanks { display: none; }
.cafe-thanks .btn { margin-top: 14px; }
.cafe.thanks .cafe-body { display: none; }
.cafe.thanks .cafe-thanks { display: block; animation: cafeIn .5s .2s both; }
@keyframes cafeIn { from { opacity: 0; transform: translateY(8px); } }

/* taza animada */
.cafe-cup { grid-column: 1; grid-row: 1; position: relative; color: var(--ink); padding-top: 6px; }
.cafe-cup svg { width: 96px; height: 96px; display: block; overflow: visible; }
.cafe-cup .fill { fill: #6b3a1a; transform: translateY(44px); }
.cafe-cup .steam path { opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 40; color: var(--y-soft); }
.cafe.open .cafe-cup .steam path { animation: steam 2.6s ease-in-out infinite; }
.cafe.open .cafe-cup .steam path:nth-child(2) { animation-delay: .4s; }
.cafe.open .cafe-cup .steam path:nth-child(3) { animation-delay: .8s; }
@keyframes steam { 0% { stroke-dashoffset: 40; opacity: 0; transform: translateY(6px); } 40% { opacity: .7; } 100% { stroke-dashoffset: -40; opacity: 0; transform: translateY(-10px); } }
.cafe.thanks .cafe-cup .fill { animation: pour 2.2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes pour { from { transform: translateY(60px); } to { transform: translateY(4px); } }
.cafe.thanks .cafe-cup svg { animation: wobble .6s 2.2s ease-in-out; }
@keyframes wobble { 30% { transform: rotate(-6deg) scale(1.06); } 60% { transform: rotate(4deg); } }
.cafe-beans { position: absolute; left: 44px; top: 40px; pointer-events: none; }
.cafe-beans i { position: absolute; width: 10px; height: 14px; border-radius: 50%; background: #5a3216; box-shadow: inset -2px 0 0 #3a1f0d; opacity: 0; }
.cafe.thanks .cafe-beans i { animation: bean 1.4s var(--d) cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes bean {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  35% { opacity: 1; transform: translate(calc(var(--x) * .5), -90px) rotate(calc(var(--r) * .5)); }
  100% { opacity: 0; transform: translate(var(--x), 60px) rotate(var(--r)); }
}
@media (max-width: 520px) { .cafe { grid-template-columns: 72px 1fr; } .cafe-cup svg { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .cafe-cup *, .cafe-beans i { animation: none !important; } }

/* persiana arrastrable */
body.grab #scene { cursor: grab; }
body.grabbing, body.grabbing * { cursor: grabbing !important; user-select: none; }
.shutter-hint {
  position: fixed; z-index: 6; left: 0; top: 0; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  font: 600 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  pointer-events: none; opacity: 0; transition: opacity .35s;
}
.shutter-hint.on { opacity: 1; }
.shutter-hint i {
  font-style: normal; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--y); color: #fff; font-size: 1.2rem; box-shadow: 0 0 0 6px rgba(51,108,240,.25), 0 8px 24px rgba(0,0,0,.4);
  animation: hintUp 1.6s cubic-bezier(.3,.7,.3,1) infinite;
}
.shutter-hint span { background: rgba(10,12,18,.72); padding: .4rem .7rem; border-radius: 99px; backdrop-filter: blur(6px); }
@keyframes hintUp { 0%, 100% { transform: translateY(8px); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .shutter-hint i { animation: none; } }

/* pegboard: modal para dibujar la nota */
.nota { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .3s; }
.nota.open { pointer-events: auto; opacity: 1; }
.nota-bg { position: absolute; inset: 0; background: rgba(6, 9, 18, .62); backdrop-filter: blur(4px); }
.nota-card { position: relative; width: min(420px, 92vw); background: #121318; color: #fff; border-radius: 18px; padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nota.open .nota-card { transform: none; }
.nota-card h2 { margin: .2rem 0 .3rem; font-size: 1.7rem; }
.nota-sub { margin: 0 0 .9rem; opacity: .7; font-size: .92rem; }
.nota-x { position: absolute; top: .8rem; right: .9rem; background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: .7; }
#nota-pad { display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; cursor: crosshair; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.08); transform: rotate(-1.2deg); }
.nota-tools { display: flex; flex-direction: column; gap: .55rem; margin: .9rem 0 1rem; }
.nota-row { display: flex; align-items: center; gap: .45rem; }
.nota-row button { width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; background: var(--c, #2a2c34); cursor: pointer; display: grid; place-items: center; }
.nota-row button.ink { border-radius: 50%; }
.nota-row button.on { border-color: var(--y); box-shadow: 0 0 0 2px rgba(51,108,240,.35); }
.nota-row button.size { background: #2a2c34; }
.nota-row button.size i { width: var(--s); height: var(--s); border-radius: 50%; background: #fff; display: block; }
.nota-sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); margin: 0 .25rem; }
.nota-actions { display: flex; justify-content: space-between; gap: .6rem; }
.nota:not(.dirty) #nota-send { opacity: .55; }

/* pegboard: muro con todas las notas */
.muro { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .3s; }
.muro.open { pointer-events: auto; opacity: 1; }
.muro-bg { position: absolute; inset: 0; background: rgba(6, 9, 18, .62); backdrop-filter: blur(4px); }
.muro-card { position: relative; width: min(980px, 94vw); max-height: 88vh; display: flex; flex-direction: column; background: #121318; color: #fff;
  border-radius: 18px; padding: 1.3rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.muro.open .muro-card { transform: none; }
.muro-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.muro-head h2 { margin: .2rem 0 0; font-size: 1.9rem; }
#muro-count { opacity: .6; margin-left: .4rem; }
.muro-actions { display: flex; align-items: center; gap: .6rem; }
.muro-x { background: none; border: 0; color: #fff; font-size: 1.15rem; cursor: pointer; opacity: .7; padding: .4rem; }
/* tablero azul perforado, igual al del kiosco */
.muro-board { overflow: auto; border-radius: 10px; padding: 1.6rem 1.2rem 1.4rem; min-height: 260px;
  /* tablero azul liso, como el pegboard del kiosco visto de cerca: solo luz y canto, sin patrón de fondo */
  background: linear-gradient(165deg, #3a72f2 0%, #2f63e0 55%, #2a59cc 100%);
  box-shadow: inset 0 0 0 6px #2556c9, inset 0 8px 18px rgba(255,255,255,.08), inset 0 -10px 24px rgba(0,0,0,.18); }
.muro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.6rem 1.2rem; }
.muro-nota { margin: 0; position: relative; transform: rotate(var(--r)); transition: transform .2s; }
.muro-nota:hover { transform: rotate(0deg) scale(1.06); z-index: 1; }
.muro-nota img { display: block; width: 100%; aspect-ratio: 1; border-radius: 2px; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.muro-nota::before { content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5f99, #0d1b46 70%); box-shadow: 0 2px 4px rgba(0,0,0,.4); z-index: 1; }
.muro-nota.nueva { animation: notaNueva .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes notaNueva { from { transform: rotate(var(--r)) scale(.2); opacity: 0; } to { transform: rotate(var(--r)) scale(1); opacity: 1; } }
.muro-empty { display: none; margin: 3rem 0; text-align: center; font-weight: 600; }
.muro.vacio .muro-empty { display: block; }
@media (max-width: 600px) { .muro-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem .9rem; } .muro-head h2 { font-size: 1.5rem; } }

/* ── carrito ── */
.top nav .cart-btn em { font-style: normal; font: 600 .7rem/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--y); color: #fff; display: inline-grid; place-items: center; }
.top nav .cart-btn em[hidden] { display: none; }
@media (max-width: 640px) { .top nav .cart-btn em { margin-left: -2px; } }
.carrito {
  position: fixed; z-index: 46; right: clamp(12px, 3vw, 32px); top: 76px;
  width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 96px); overflow: auto; padding: 22px 22px 20px;
  background: rgba(14,14,13,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-top: 3px solid var(--y); border-radius: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.98);
  transition: opacity .3s, transform .4s cubic-bezier(.2,.9,.2,1), visibility .3s;
}
.carrito.open { opacity: 1; visibility: visible; transform: none; }
.carrito h3 { font-size: 1.55rem; letter-spacing: -0.035em; line-height: 1.05; }
.cart-rule { margin-top: 6px; color: var(--y-soft); font-size: .85rem; }
.cart-list { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.cart-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.cart-list img { width: 44px; height: 60px; object-fit: cover; border-radius: 3px; }
.cart-list b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.cart-list span { display: block; color: var(--ink-dim); font-size: .8rem; margin-top: 2px; }
.cart-list button { font-size: .78rem; color: var(--ink-dim); padding: 6px 8px; border-radius: 6px; }
.cart-list button:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.cart-empty { display: none; margin-top: 14px; color: var(--ink-dim); }
.carrito.empty .cart-empty { display: block; }
.carrito.empty .cart-sum, .carrito.empty #cart-form { opacity: .45; }
.cart-sum { margin-top: 16px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.cart-sum div { display: flex; justify-content: space-between; color: var(--ink-dim); font-size: .9rem; }
.cart-sum dd { color: var(--ink); }
.cart-sum .tot { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.cart-sum .tot dd { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; }
.cart-hint { margin-top: 8px; color: var(--y-soft); font-size: .85rem; }
#cart-form { margin-top: 16px; display: grid; gap: 8px; }
#cart-form label { font-size: .82rem; color: var(--ink-dim); }
#cart-form input { font: inherit; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
#cart-form input:focus { outline: none; border-color: var(--y); box-shadow: 0 0 0 3px rgba(51,108,240,.3); }
#cart-pay { width: 100%; margin-top: 4px; }
#cart-pay:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.cart-note { margin-top: 12px; color: var(--ink-dim); font-size: .78rem; line-height: 1.45; }

/* descargas gratis (varias versiones) */
.v-files { list-style: none; margin-top: 14px; display: grid; gap: 6px; }
.v-files[hidden] { display: none; }
.v-files a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: background .2s, border-color .2s; }
.v-files a:hover { background: rgba(51,108,240,.15); border-color: var(--y); }
.v-files span { font-size: .72rem; letter-spacing: .06em; color: var(--y-soft); }

/* ── apartado Gratis ── */
.top nav .nav-free { color: #fff; font-weight: 600; }
.top nav .nav-free::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #7dffb0; vertical-align: middle; }
.gratis { background: var(--y); color: #fff; padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.gratis-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 36px; }
.gratis-head h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 650; letter-spacing: -0.04em; line-height: .95; }
.gratis-head p { max-width: 36ch; font-size: 1.05rem; line-height: 1.5; color: rgba(255,255,255,.88); }
.gratis-row { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-color: rgba(255,255,255,.5) transparent; }
.free-card { scroll-snap-align: start; display: flex; flex-direction: column; }
.free-ph { display: block; aspect-ratio: 1131 / 1600; overflow: hidden; background: rgba(0,0,0,.2); box-shadow: 0 16px 34px rgba(8,20,60,.35); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.free-ph:hover { transform: translateY(-5px) rotate(-.6deg); }
.free-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.free-card h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.free-card > p { font-size: .85rem; color: rgba(255,255,255,.78); margin-top: 3px; }
.free-dl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.free-dl a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: #fff; color: #10204d; font-size: .82rem; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s; }
.free-dl a:hover { transform: translateY(-2px); background: #e9efff; }
.free-dl a span { font-size: .66rem; letter-spacing: .06em; color: var(--y); }
.free-dl .soon { font-size: .82rem; color: rgba(255,255,255,.75); padding: 8px 0; }
#v-buy:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
@media (max-width: 720px) { .top nav .nav-free { display: none; } }

/* ── diario: guía de impresión (páginas = diseños originales en JPG) ── */
.diario { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; --k: 1; }
.diario.open { opacity: 1; visibility: visible; }
.diario-bg { position: absolute; inset: 0; background: rgba(6,7,11,.84); backdrop-filter: blur(6px); }
.diario-x { position: absolute; top: 16px; right: 18px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; }
.diario-x:hover { background: rgba(255,255,255,.22); }
.diario-ayuda { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.72); font-size: .85rem; pointer-events: none; transition: opacity .3s; }
.diario-escena { position: relative; z-index: 1; perspective: 2400px; }
.diario-spread { position: relative; width: 1120px; height: 866px; transform-style: preserve-3d;
  transform: scale(var(--k)) translateX(-280px) rotateX(10deg) rotateZ(-3deg) translateY(30px);
  transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.diario.open .diario-spread { animation: dzLevantar .7s cubic-bezier(.2,.9,.3,1) both; }
.diario.abierto .diario-spread { transform: scale(var(--k)) translateX(0) rotateX(0) rotateZ(0); animation: none; }
@keyframes dzLevantar { from { opacity: 0; transform: scale(calc(var(--k) * .7)) translateX(-280px) translateY(160px) rotateX(55deg) rotateZ(-8deg); } }
.dz-pagina { position: absolute; top: 0; width: 560px; height: 866px; margin: 0; overflow: hidden; background: #ebe7dd; }
.dz-pagina img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.dz-p2 { left: 560px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.dz-p2::after, .dz-dorso::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.dz-p2::after { background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 7%); }
.dz-dorso::after { background: linear-gradient(270deg, rgba(0,0,0,.28), rgba(0,0,0,0) 7%); }
.dz-hoja { position: absolute; left: 560px; top: 0; width: 560px; height: 866px; transform-origin: left center; transform-style: preserve-3d; cursor: pointer;
  transition: transform 1.05s cubic-bezier(.45,.05,.2,1); }
.diario.abierto .dz-hoja { transform: rotateY(-180deg); cursor: default; }
.dz-cara { left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.dz-dorso { transform: rotateY(180deg); }
.diario.abierto [data-zoom] { cursor: zoom-in; }
.diario.abierto .diario-ayuda span { display: none; }
.diario.abierto .diario-ayuda::after { content: 'Tocá una página para verla en grande'; }
/* zoom: la página a tamaño completo, con scroll */
.diario-zoom { position: absolute; inset: 0; z-index: 4; overflow: auto; background: rgba(6,7,11,.94); display: grid; justify-items: center; padding: 24px 12px 90px; cursor: zoom-out; }
.diario-zoom[hidden] { display: none; }
.diario-zoom img { width: min(1009px, 100%); height: auto; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.diario-zoom-x { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: 99px; background: #fff; color: #10204d; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
@media (prefers-reduced-motion: reduce) { .diario-spread, .dz-hoja { transition: none; } .diario.open .diario-spread { animation: none; } }
/* celular: sin giro, las dos páginas en columna con scroll (cada una se puede ampliar) */
@media (max-width: 760px) {
  .diario { place-items: start center; overflow-y: auto; }
  .diario-escena { perspective: none; padding: 64px 10px 40px; }
  .diario-spread, .diario.abierto .diario-spread { width: auto; height: auto; transform: none; animation: none !important; display: flex; flex-direction: column-reverse; gap: 14px; }
  .dz-pagina, .dz-p2, .dz-hoja, .dz-cara { position: relative; left: 0; transform: none !important; width: calc(100vw - 20px); height: auto; aspect-ratio: 1009 / 1559; }
  .dz-hoja { cursor: default; }
  .dz-dorso { display: none; }
  .dz-frente { cursor: zoom-in; }
  .diario-ayuda { display: none; }
}

/* nota: frase escrita con el teclado, encima del dibujo */
.nota-papel { position: relative; }
.nota-texto-prev { position: absolute; left: 6%; right: 6%; bottom: 5%; margin: 0; pointer-events: none; text-align: center;
  font: 700 clamp(1.2rem, 4.2vw, 1.7rem)/1.05 'Caveat', 'Comic Sans MS', cursive; color: var(--nota-ink, #151514); overflow-wrap: anywhere; }
.nota-texto { display: grid; gap: 6px; margin-top: 12px; font-size: .82rem; color: var(--ink-dim); }
.nota-texto input { font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.nota-texto input:focus { outline: none; border-color: var(--y); box-shadow: 0 0 0 3px rgba(51,108,240,.3); }
.muro-solo { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(51,108,240,.16); border: 1px solid rgba(51,108,240,.5); color: #dfe8ff; font-size: .9rem; line-height: 1.45; }

#muro-new[hidden] { display: none; }

/* ── sin etiquetas decorativas: los títulos hablan solos ── */
body { letter-spacing: -0.005em; }
.how-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: .95; margin-bottom: 28px; }
.muro-count { font-family: var(--display); font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--ink-dim); vertical-align: middle; }
.v-frames .ico, .v-nav .ico { width: 18px; height: 18px; }
.v-frames button { display: inline-flex; align-items: center; gap: 6px; }
