/* ═══════════════════════════════════════════════════════════════════════
   AEJ Suma — aejadvisors.com.mx
   Estilo Apple con la paleta de AEJ: claro por defecto, un solo acento
   (teal), tipografía del sistema, rejilla de 8 pt, vidrio sólo en la barra,
   motion continuo ligado al scroll en la portada y casi invisible en los
   formularios. Sin dependencias externas.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #071d1c;
  --ink-2: #0d2b29;
  --teal: #0b817a;
  --teal-hover: #0a726c;
  --aqua: #48d8c8;
  --mint: #b8f4e7;
  --paper: #fbfaf6;
  --cream: #f5f2e9;
  --white: #ffffff;
  --line: #d8ddd7;
  --muted: #5b6966;
  --orange: #c2472a;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--muted);
  --surface: var(--white);
  --hairline: rgba(7, 29, 28, .10);
  --vidrio: rgba(251, 250, 246, .72);
  --vidrio-alto: rgba(251, 250, 246, .94);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 52px;
  --w-content: 1080px;
  --w-read: 720px;
  --r-card: 22px;
  --r-control: 12px;
  --pill: 980px;

  --sec: clamp(88px, 12vw, 160px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .8s var(--ease-std), color .8s var(--ease-std);
}
body.is-dark {
  --bg: var(--ink);
  --fg: #f5f5f7;
  --fg-2: rgba(245, 245, 247, .66);
  --hairline: rgba(255, 255, 255, .14);
  --vidrio: rgba(7, 29, 28, .72);
  --vidrio-alto: rgba(7, 29, 28, .96);
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 40px, var(--w-content)); margin-inline: auto; }
.read { max-width: var(--w-read); }

/* ── Tipografía ────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  color: var(--teal); margin-bottom: 14px;
}
body.is-dark .eyebrow { color: var(--aqua); }
.h1 {
  font-size: clamp(42px, 6.2vw, 84px); font-weight: 700; line-height: 1.02;
  letter-spacing: -.03em; text-wrap: balance;
}
.h2 {
  font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.025em; text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.tagline { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.35; color: var(--fg-2); text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.small { font-size: 14px; color: var(--fg-2); }
.body { font-size: 17px; line-height: 1.55; }

/* ── Enlaces y botones (44 pt) ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px; border-radius: var(--pill);
  font-size: 17px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s, opacity .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); }
.btn-secondary { background: rgba(7, 29, 28, .06); color: var(--fg); }
.btn-secondary:hover { background: rgba(7, 29, 28, .10); }
body.is-dark .btn-secondary { background: rgba(255, 255, 255, .12); }
body.is-dark .btn-secondary:hover { background: rgba(255, 255, 255, .18); }
body.is-dark .btn-primary { background: var(--aqua); color: var(--ink); }
body.is-dark .btn-primary:hover { background: #63e0d2; }
.link {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px;
  color: var(--teal); font-weight: 500; font-size: 17px;
}
.link::after { content: "›"; font-size: 1.15em; line-height: 1; transition: transform .2s var(--ease-out); }
.link:hover::after { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
body.is-dark .link { color: var(--aqua); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* ── Barra de navegación (vidrio, sólo aquí) ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: transparent; transition: background-color .3s, box-shadow .3s;
}
.nav.is-scrolled, .nav.is-open {
  background: var(--vidrio);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 17px; white-space: nowrap; }
.brand span b { font-weight: 700; color: var(--teal); }
body.is-dark .brand span b { color: var(--aqua); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 14px; color: var(--fg); opacity: .78; border-radius: 8px; transition: opacity .15s; white-space: nowrap;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  margin-left: 8px; min-height: 36px; padding: 0 16px; font-size: 14px;
}
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.nav-toggle .x { display: none; }
.nav.is-open .nav-toggle .x { display: block; }
.nav.is-open .nav-toggle .bars { display: none; }

@media (max-width: 1000px) {
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--vidrio-alto);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 var(--hairline), 0 20px 40px rgba(7, 29, 28, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .28s var(--ease-out), opacity .2s, visibility 0s .28s;
  }
  .nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-links a { font-size: 19px; min-height: 52px; padding: 0 4px; opacity: 1; border-bottom: 1px solid var(--hairline); border-radius: 0; }
  .nav-links a:last-of-type { border-bottom: 0; }
  .nav-cta { margin: 14px 0 0; min-height: 48px; font-size: 17px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* ── Secciones ─────────────────────────────────────────────────────── */
.section { padding-block: var(--sec); }
.section-tight { padding-block: calc(var(--sec) * .6); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 18px; max-width: var(--w-read); }
.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: 0; overflow: clip; }
.hero-copy { max-width: 900px; margin-inline: auto; text-align: center; }
.hero-copy .h1 { margin-bottom: 22px; }
.hero-copy .tagline { max-width: var(--w-read); margin-inline: auto; }
.hero-copy .cta-row { justify-content: center; margin-top: 32px; }
.hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  margin-top: 26px; font-size: 14px; color: var(--fg-2);
}
.hero-proof b { color: var(--teal); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* El producto real: dos marcos de dispositivo con capturas del punto de venta. */
.hero-stage {
  position: relative; margin-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(60px, 9vw, 140px);
  perspective: 1400px;
}
.device-window {
  position: relative; width: min(100%, 980px); margin-inline: auto;
  background: var(--white); border-radius: 16px;
  border: 1px solid rgba(7, 29, 28, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 80px rgba(7, 29, 28, .16), 0 6px 18px rgba(7, 29, 28, .06);
  overflow: hidden;
}
.device-window::before {
  content: ""; display: block; height: 34px;
  background: linear-gradient(#f7f6f1, #efeee8); border-bottom: 1px solid rgba(7, 29, 28, .08);
}
.device-window::after {
  content: ""; position: absolute; top: 11px; left: 14px; width: 12px; height: 12px; border-radius: 50%;
  background: #d8ddd7; box-shadow: 20px 0 0 #d8ddd7, 40px 0 0 #d8ddd7;
}
.device-window img { width: 100%; }
.device-phone {
  position: absolute; right: clamp(-8px, 2vw, 40px); bottom: 0;
  width: clamp(150px, 20vw, 232px);
  border-radius: 40px; padding: 9px; background: var(--ink);
  box-shadow: 0 30px 70px rgba(7, 29, 28, .28), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.device-phone img { border-radius: 32px; }
.device-phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 18px; border-radius: 12px; background: var(--ink);
}
.float { animation: float 6.5s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@media (max-width: 720px) {
  .device-phone { display: none; }
  .device-window { border-radius: 12px; }
  .device-window::before { height: 24px; }
  .device-window::after { top: 7px; left: 10px; width: 9px; height: 9px; box-shadow: 15px 0 0 #d8ddd7, 30px 0 0 #d8ddd7; }
}

/* ── Principios (franja de texto) ───────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; }
.principles b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.principles p { color: var(--fg-2); }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; gap: 24px; } }

/* ── Soluciones: pila pegajosa de tres tarjetas ─────────────────────── */
.stack { position: relative; }
.stack-card {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  min-height: min(560px, 72vh); margin-bottom: 24px;
  padding: clamp(28px, 4vw, 56px);
  background: var(--surface); border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 60px rgba(7, 29, 28, .08);
  transform-origin: center top;
  will-change: transform;
}
.stack-card:nth-child(2) { top: calc(var(--nav-h) + 40px); }
.stack-card:nth-child(3) { top: calc(var(--nav-h) + 56px); }
.stack-card:last-child { margin-bottom: 0; }
.stack-card .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 18px;
}
.stack-card .h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 14px; }
.stack-card .lead { margin-bottom: 22px; }
.stack-visual { display: grid; gap: 10px; }
.stack-visual .row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--cream);
  font-size: 15px;
}
.stack-visual .row b { font-weight: 600; }
.stack-visual .row span { color: var(--fg-2); font-size: 14px; }
.stack-visual .row i {
  font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill);
  background: rgba(11, 129, 122, .12); color: var(--teal);
}
.stack-visual .row i.warn { background: rgba(194, 71, 42, .10); color: var(--orange); }
.stack-visual .grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stack-visual .grid6 span {
  display: grid; place-items: center; aspect-ratio: 1.6; border-radius: 14px;
  background: var(--cream); font-family: var(--mono); font-size: 14px; color: var(--fg-2);
}
.stack-visual .grid6 span.on { background: rgba(11, 129, 122, .12); color: var(--teal); font-weight: 600; }
@media (max-width: 860px) {
  .stack-card { grid-template-columns: 1fr; min-height: 0; position: relative; top: auto !important; }
  .stack-visual { order: -1; }
}
.also { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.also > span { color: var(--fg-2); }

/* ── Capítulo: Punto de Venta Modular (producto real) ───────────────── */
.chapter { overflow: clip; background: var(--cream); }
body.is-dark .chapter { background: var(--ink-2); }
.chapter-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chapter-copy .h2 { margin-bottom: 18px; }
.chapter-copy .lead { margin-bottom: 26px; }
.chapter-list { display: grid; gap: 14px; margin-bottom: 28px; }
.chapter-list li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: baseline; }
.chapter-list li b { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.chapter-list li span { color: var(--fg-2); }
.chapter-list li span strong { color: var(--fg); font-weight: 600; }
.chapter-visual { position: relative; }
.chapter-visual .device-window { width: 100%; }
.chapter-visual .device-window.back { position: absolute; inset: 0 auto auto 0; width: 88%; opacity: .9; }
.chapter-visual .device-window.front { margin-left: 12%; margin-top: 14%; }
@media (max-width: 860px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-visual .device-window.back { display: none; }
  .chapter-visual .device-window.front { margin: 0; }
}

/* ── Casos de aplicación: la única rejilla bento ───────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento article {
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--hairline);
}
.bento .kicker { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 16px; }
.bento h3 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 22px; min-height: 2.4em; }
.bento dl { display: grid; gap: 14px; }
.bento dt { font-size: 13px; font-weight: 600; color: var(--teal); }
.bento dd { margin: 2px 0 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento h3 { min-height: 0; } }

/* ── Ingeniería a la medida ────────────────────────────────────────── */
.eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.eng-list { display: grid; }
.eng-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.eng-list li:last-child { border-bottom: 1px solid var(--hairline); }
.eng-list b { font-family: var(--mono); font-size: 13px; color: var(--teal); padding-top: 6px; }
.eng-list h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.eng-list p { color: var(--fg-2); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 8px 12px;
  border-radius: var(--pill); border: 1px solid var(--hairline); color: var(--fg-2);
}
@media (max-width: 860px) { .eng-grid { grid-template-columns: 1fr; } }

/* ── Método: escena fijada de cuatro pasos ─────────────────────────── */
.pin { height: 340vh; position: relative; }
.pin-scene {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.pin-steps { display: grid; gap: 8px; position: relative; padding-left: 28px; }
.pin-rail { position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.pin-rail i { display: block; width: 100%; height: 100%; background: var(--teal); transform-origin: top; transform: scaleY(0); }
.pin-step { padding: 14px 0; opacity: .3; transition: opacity .3s; }
.pin-step.is-on { opacity: 1; }
.pin-step b { display: block; font-family: var(--mono); font-size: 13px; color: var(--teal); margin-bottom: 6px; }
.pin-step h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.pin-step p { color: var(--fg-2); }
@media (max-width: 860px) {
  .pin { height: auto; }
  .pin-scene { position: static; height: auto; grid-template-columns: 1fr; padding-block: var(--sec); }
  .pin-step { opacity: 1; }
  .pin-rail i { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pin { height: auto; }
  .pin-scene { position: static; height: auto; padding-block: var(--sec); }
  .pin-step { opacity: 1; }
  .pin-rail i { transform: none; }
}

/* ── Preguntas frecuentes ──────────────────────────────────────────── */
.faq { max-width: var(--w-read); }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; color: var(--teal); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 24px; color: var(--fg-2); max-width: 60ch; }

/* ── Siguiente paso: el único momento oscuro (morph de tema) ────────── */
.cta-final { text-align: center; }
.cta-final .h2 { max-width: 820px; margin-inline: auto; margin-bottom: 18px; }
.cta-final .lead { margin-inline: auto; margin-bottom: 32px; }
.cta-final .cta-row { justify-content: center; }

/* ── Pie ───────────────────────────────────────────────────────────── */
.footer { padding: 56px 0 40px; font-size: 13px; color: var(--fg-2); border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.footer li { padding: 4px 0; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer .brand { margin-bottom: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── WhatsApp (discreto) ───────────────────────────────────────────── */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px;
  border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(7, 29, 28, .28);
  transition: transform .18s var(--ease-out);
}
.wa:hover { transform: translateY(-2px); }
.wa svg { width: 20px; height: 20px; fill: currentColor; }
body.is-dark .wa { background: var(--aqua); color: var(--ink); }
@media (max-width: 520px) { .wa span { display: none; } .wa { padding: 0 14px; } }

/* ── Páginas de solución ───────────────────────────────────────────── */
.sol-hero { padding-top: clamp(56px, 9vw, 120px); }
.sol-hero .h1 { margin-bottom: 20px; max-width: 900px; }
.sol-hero .tagline { max-width: var(--w-read); }
.sol-hero .cta-row { margin-top: 32px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.results li { padding: 24px; border-radius: 18px; background: var(--cream); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.results li::before { content: "+"; display: block; color: var(--teal); font-size: 24px; line-height: 1; margin-bottom: 10px; }
@media (max-width: 720px) { .results { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.two-col .h3 { margin-bottom: 12px; }
.two-col p { color: var(--fg-2); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.caps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--hairline); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.caps li b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--teal); padding-top: 6px; }
@media (max-width: 720px) { .caps { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); font-weight: 500; }
.steps li b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--teal); margin-bottom: 10px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; }
.values li { padding: 16px 0; border-top: 1px solid var(--hairline); font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.note { padding: 22px 24px; border-radius: 16px; background: var(--cream); color: var(--fg-2); font-size: 15px; max-width: var(--w-read); }
.note b { display: block; color: var(--fg); margin-bottom: 4px; }
.sol-shots { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: clamp(48px, 6vw, 80px); }
.sol-shots .device-phone { position: static; width: clamp(150px, 18vw, 220px); }
@media (max-width: 720px) { .sol-shots { grid-template-columns: 1fr; } .sol-shots .device-phone { display: none; } }

/* ── Formularios (superficie de utilidad: motion casi nulo) ─────────── */
.form-page { padding-top: clamp(48px, 7vw, 96px); }
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form-intro .h1 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 18px; }
.form-intro .lead { margin-bottom: 28px; }
.form-contacts { display: grid; gap: 4px; margin-bottom: 28px; }
.form-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.form-facts span { font-size: 13px; padding: 8px 12px; border-radius: var(--pill); background: var(--cream); color: var(--fg-2); }
.form-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: clamp(24px, 3.5vw, 40px);
}
.form-card .form-title { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 26px; }
.form-card .form-title b { font-family: var(--mono); font-size: 13px; color: var(--teal); padding-top: 6px; }
.form-card .form-title h2 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 4px; }
.form-card .form-title p { color: var(--fg-2); font-size: 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 500; }
.field > span em { font-style: normal; color: var(--orange); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--fg);
  min-height: 48px; padding: 10px 14px; border-radius: var(--r-control);
  border: 1px solid rgba(7, 29, 28, .16); background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%235b6966' stroke-width='1.6' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(72, 216, 200, .28);
}
.field .hint { font-size: 13px; color: var(--fg-2); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--fg-2); padding: 4px 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 8px; }
.form-actions .btn { width: 100%; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.form-status.success { background: rgba(11, 129, 122, .10); color: #075c57; }
.form-status.error { background: rgba(194, 71, 42, .10); color: var(--orange); }
.perfil { display: grid; gap: 10px; }
.perfil li { padding: 14px 0; border-top: 1px solid var(--hairline); font-weight: 500; }
.stat { display: grid; gap: 4px; padding: 24px; border-radius: 18px; background: var(--cream); margin-top: 28px; max-width: 320px; }
.stat b { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--teal); }
.stat span { font-size: 14px; color: var(--fg-2); }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); }
.how li b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--teal); margin-bottom: 10px; }
.how li h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.how li p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .how { grid-template-columns: 1fr; } }

/* ── Revelado (una sola vez, ease-out; sin springs en scroll) ───────── */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
html.js .reveal-group.is-in > * { opacity: 1; transform: none; }
html.js .reveal-group.is-in > :nth-child(2) { transition-delay: .08s; }
html.js .reveal-group.is-in > :nth-child(3) { transition-delay: .16s; }
html.js .reveal-group.is-in > :nth-child(4) { transition-delay: .24s; }

/* ── Menos movimiento: estado final, sin ocultar nada ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js .reveal, html.js .reveal-group > * { opacity: 1 !important; transform: none !important; }
  [data-fx] { transform: none !important; opacity: 1 !important; }
  .stack-card { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .nav.is-open, .nav-links { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
@media print { .nav, .wa { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   AEJ Suma v3 · identidad, propósito y recorrido de producto
   Nuevos componentes mobile-first; los bloques heredados conservan su
   comportamiento en las páginas secundarias.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --nav-h: 64px;
  --w-content: 1200px;
  --r-card: 28px;
  --sec: clamp(80px, 10vw, 144px);
  --shadow-soft: 0 24px 80px rgba(7, 29, 28, .10);
  --shadow-deep: 0 34px 110px rgba(7, 29, 28, .22);
}

.container { width: min(calc(100% - 32px), var(--w-content)); }
.nav { padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right)); }
.nav-inner { gap: 12px; }
.brand { gap: 8px; }
.brand picture { flex: 0 0 auto; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { font-size: 18px; }
.brand span b { color: var(--ink); }
.nav-links a { font-size: 13px; padding-inline: 10px; }
.nav-cta { color: #fff !important; opacity: 1 !important; }
.footer .brand span b { color: var(--ink); }
body.is-dark .brand span b { color: var(--aqua); }
.footer-grid > :first-child p { max-width: 31ch; }

/* Portada: propósito a la izquierda, producto real a la derecha. */
.hero-suma {
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 9vw, 118px);
  padding-bottom: clamp(64px, 9vw, 112px);
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
}
.hero-suma::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -140px -20vw auto 38%;
  height: min(78vw, 920px);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 44%, rgba(184, 244, 231, .9), rgba(72, 216, 200, .16) 42%, rgba(251, 250, 246, 0) 72%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(64px, 9vw, 108px); align-items: center; }
.hero-suma .hero-copy { max-width: 680px; margin: 0; text-align: left; min-width: 0; }
.hero-suma .hero-copy .h1 { margin-bottom: 26px; font-size: clamp(48px, 8.4vw, 92px); line-height: .98; }
.hero-suma .hero-copy .h1 em { color: var(--teal); font-style: normal; }
.hero-suma .hero-copy .tagline { max-width: 610px; margin: 0; font-size: clamp(20px, 2vw, 25px); }
.hero-suma .hero-copy .cta-row { justify-content: flex-start; margin-top: 32px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 6px rgba(72, 216, 200, .16); margin-right: 6px; }
.hero-suma .hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
  gap: 12px;
  margin-top: 32px;
  text-align: left;
}
.hero-suma .hero-proof li { padding-top: 12px; border-top: 1px solid var(--hairline); min-width: 0; }
.hero-suma .hero-proof b { display: block; margin: 0 0 4px; font-size: 12px; }
.hero-suma .hero-stage { margin: 0; padding: 0; min-width: 0; }
.hero-suma .device-window { width: 100%; border-radius: 22px; box-shadow: var(--shadow-deep); }
.hero-suma .device-window::before { height: 28px; }
.hero-suma .device-window::after { top: 9px; width: 10px; height: 10px; box-shadow: 17px 0 0 #d8ddd7, 34px 0 0 #d8ddd7; }
.hero-mark {
  position: relative;
  z-index: 2;
  width: min(78%, 360px);
  margin: 0 0 18px 18px;
  padding: 12px 18px;
  border: 1px solid rgba(7, 29, 28, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 16px 50px rgba(7, 29, 28, .10);
}
.hero-mark img { width: 100%; }
.hero-pulse {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: -24px 12px 0 auto;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(7, 29, 28, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
}
.hero-pulse > span { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(11, 129, 122, .12); }
.hero-pulse div { display: grid; }
.hero-pulse b { font-size: 14px; }
.hero-pulse small { color: var(--muted); font-size: 12px; }

.principles li { padding-top: 22px; border-top: 1px solid var(--hairline); }
.principles b { font-size: 21px; }

/* Recorrido POS: navegación accesible + escenario de capturas reales. */
.pos-tour {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #f7fbfa;
  background: var(--ink);
}
.pos-tour::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  top: -340px;
  right: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 216, 200, .20), rgba(72, 216, 200, 0) 70%);
}
.pos-tour .eyebrow { color: var(--aqua); }
.pos-tour .lead { color: rgba(247, 251, 250, .68); }
.tour-heading { max-width: 820px; }
.tour-layout { display: grid; gap: 28px; align-items: start; }
.tour-tabs {
  display: flex;
  gap: 10px;
  margin-inline: -16px;
  padding: 2px 16px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs li { flex: 0 0 min(82vw, 290px); scroll-snap-align: start; }
.tour-tab {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  text-align: left;
  color: rgba(247, 251, 250, .70);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  transition: color .2s, background-color .2s, border-color .2s, transform .2s var(--ease-out);
}
.tour-tab:hover { color: #fff; border-color: rgba(72, 216, 200, .38); }
.tour-tab:active { transform: scale(.985); }
.tour-tab.is-active { color: #fff; background: rgba(72, 216, 200, .12); border-color: rgba(72, 216, 200, .46); }
.tour-number { font-family: var(--mono); font-size: 12px; color: var(--aqua); padding-top: 4px; }
.tour-tab > span:last-child { display: grid; min-width: 0; }
.tour-tab strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tour-tab small { display: none; margin-top: 5px; color: rgba(247, 251, 250, .56); font-size: 14px; line-height: 1.42; }
.tour-viewer { min-width: 0; align-self: start; }
.tour-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 22px 22px 0 0;
  background: #eef1ed;
  color: var(--muted);
  font-size: 12px;
}
.tour-viewer-bar span { display: inline-flex; align-items: center; gap: 8px; }
.tour-viewer-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(11, 129, 122, .12); }
.tour-viewer-bar strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tour-canvas {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(390px, 100vw, 520px);
  background: var(--paper);
  overflow: hidden;
}
.tour-panel { position: absolute; inset: 0; display: none; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.tour-panel[hidden] { display: none; }
.tour-panel.is-active { display: grid; animation: tour-in .48s var(--ease-out) both; }
.tour-enlarge { display: grid; place-items: center; min-height: 0; padding: 16px; cursor: zoom-in; }
.tour-enlarge:focus-visible { outline: 3px solid var(--teal); outline-offset: -4px; }
.tour-panel picture { display: block; width: 100%; height: 100%; min-height: 0; }
.tour-panel img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tour-panel figcaption { display: flex; gap: 8px; align-items: center; padding: 12px 16px; color: var(--ink); background: var(--white); font-size: 13px; }
.tour-panel figcaption b { color: var(--teal); font-family: var(--mono); font-size: 11px; }
.tour-zoom-hint { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 4px; color: var(--teal); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
body.tour-in-view .wa { opacity: 0; visibility: hidden; pointer-events: none; }
.tour-actions {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 0 0 22px 22px;
  background: #eef1ed;
}
.tour-arrow { width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: #fff; border: 1px solid rgba(7, 29, 28, .10); }
.tour-arrow:hover { background: var(--mint); }
.tour-progress { height: 3px; border-radius: 3px; background: rgba(7, 29, 28, .12); overflow: hidden; }
.tour-progress i { display: block; width: 100%; height: 100%; background: var(--teal); transform: scaleX(calc(1 / 6)); transform-origin: left; transition: transform .35s var(--ease-out); }
.tour-note { max-width: 760px; margin-top: 24px; color: rgba(247, 251, 250, .52); font-size: 13px; }
@keyframes tour-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

/* Filosofía: el símbolo deja de ser ornamento y explica el producto. */
.philosophy {
  position: relative;
  overflow: clip;
  background: var(--cream);
}
.philosophy-intro { display: grid; gap: clamp(40px, 7vw, 88px); align-items: center; }
.philosophy-mark {
  position: relative;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.philosophy-mark::before {
  content: "";
  position: absolute;
  inset: 14% 18% auto auto;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(184, 244, 231, .48);
  filter: blur(22px);
}
.philosophy-mark img { position: relative; width: 100%; }
.philosophy-intro .lead { margin-top: 22px; }
.suma-grid { display: grid; gap: 12px; margin-top: clamp(54px, 8vw, 96px); }
.suma-grid article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: rgba(255, 255, 255, .64);
}
.suma-grid article > b { font-size: 34px; line-height: 1; color: var(--teal); }
.suma-grid h3 { font-size: 19px; margin-bottom: 4px; }
.suma-grid p { color: var(--muted); font-size: 15px; }
.manifesto {
  max-width: 980px;
  margin: clamp(64px, 10vw, 120px) 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(34px, 5.7vw, 72px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

@media (min-width: 720px) {
  .container { width: min(calc(100% - 56px), var(--w-content)); }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero-suma .hero-copy .h1 { font-size: clamp(54px, 5vw, 78px); }
  .hero-mark { width: min(68%, 340px); margin-left: 32px; }
  .tour-canvas { height: clamp(520px, 54vw, 660px); }
  .suma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philosophy-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

@media (min-width: 980px) {
  .tour-layout { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.65fr); gap: 42px; }
  .tour-tabs { display: grid; gap: 0; margin: 0; padding: 0; overflow: visible; }
  .tour-tabs li { min-width: 0; }
  .tour-tab { min-height: 0; padding: 18px 12px; border-width: 0 0 1px; border-radius: 0; background: transparent; }
  .tour-tab.is-active { padding-left: 20px; background: linear-gradient(90deg, rgba(72, 216, 200, .14), transparent 90%); border-color: rgba(72, 216, 200, .42); }
  .tour-tab small { display: block; }
  /* El visor y sus controles deben caber en la altura útil del escritorio.
     El espacio sobrante en la columna permite que sticky respete la cabecera. */
  .tour-viewer { position: sticky; top: calc(var(--nav-h) + 16px); }
  .tour-canvas { height: min(660px, calc(100svh - var(--nav-h) - 160px)); }
  .suma-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .hero-suma .hero-proof { grid-template-columns: 1fr; }
  .hero-mark { margin-left: 0; }
  .hero-pulse { margin-top: -16px; }
  .tour-viewer-bar span { max-width: 62%; }
}

@media (max-width: 340px) {
  .wa { display: none; }
}

@media (max-width: 1000px) {
  .nav-links { background: var(--paper); }
  .nav-links a { min-height: 52px; padding-inline: 4px; font-size: 18px; }
  .nav-cta { margin-top: 14px; font-size: 17px; }
  body.is-dark .nav-links { background: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .tour-panel.is-active { animation: none; }
  .tour-progress i { transition: none; }
}

@media print {
  .tour-actions { display: none; }
  .tour-panel { position: relative; display: none; height: 420px; }
  .tour-panel:first-child { display: grid; }
}

/* Identidad institucional y lectura ampliada de las pantallas. */
.purpose-statement { max-width: var(--w-read); margin: 64px 0 36px; }
.purpose-statement > p:last-child { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.purpose-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--hairline); border-top: 3px solid var(--teal); border-radius: var(--r-card); background: var(--paper); scroll-margin-top: calc(var(--nav-h) + 32px); }
.purpose-card .eyebrow { font-size: 11px; }
.purpose-card h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 16px 0 20px; }
.purpose-card > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.7; }
.philosophy-more { margin-top: 24px; border-top: 1px solid var(--hairline); }
.philosophy-more summary { padding: 16px 0; min-height: 48px; color: var(--teal); font-weight: 600; cursor: pointer; }
.philosophy-more p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 16px; }
.image-dialog { position: fixed; inset: 0; width: min(1280px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 1px solid var(--hairline); border-radius: var(--r-card); color: var(--ink); background: var(--paper); box-shadow: var(--shadow-deep); }
.image-dialog::backdrop { background: rgba(7, 29, 28, .78); }
.image-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; padding: 12px 20px; background: var(--paper); border-bottom: 1px solid var(--hairline); z-index: 1; }
.image-dialog-bar h2 { font-size: 18px; line-height: 1.3; }
.image-dialog-bar button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
.image-dialog-content { padding: 16px; }
.image-dialog-content img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
body.image-open { overflow: hidden; }
@media (max-width: 719px) {
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-statement { margin-top: 48px; }
  .tour-panel figcaption { padding: 12px; font-size: 12px; gap: 6px; }
  .tour-zoom-hint { font-size: 11px; }
  .image-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .image-dialog-bar { padding: 8px 12px; }
  .image-dialog-bar h2 { font-size: 15px; }
  .image-dialog-content { padding: 8px; overflow: auto; }
  .image-dialog-content img { max-width: none; width: max(100%, min(960px, var(--image-width))); }
}
