/*
 * Elektron Geek top bar and Menú panel. ONE source for the landing and the store (Ernesto, 2026-11-06: 0 px difference).
 * Source: this file. Copies: theme/elektrongeek/assets/bar.css (scripts/sync-shared.sh) and the head of dist/landing/styles.css (landing/build.sh).
 * Markup: bar() in kb/render/chrome.mjs; the store header (theme/elektrongeek/parts/header.html) is generated from it by scripts/store/gen-header.mjs.
 * Tokens only (shared/tokens.css). Page-level concerns stay outside: view-transition-name, scroll-padding-top, the store's scroll-edge scrim.
 * Rules are scoped under .bar so they cannot hit WooCommerce or WordPress classes.
 * Decision (one bar, both surfaces): glass fill 0.88, blur 22px, height 52px, radius 26px, gap 8px (4px under 720px),
 * Menú under 1024px; from 1024px the bar shows every link (Tienda, Fichas técnicas, Comparativa, Garantía, Contacto, Carrito, WhatsApp).
 * The Menú panel lists exactly those links and never adds one (Ernesto, 2026-11-06). Nosotros, Entrega and Pago live in the footer.
 */

/* ---------- glass (functional layer: header and dock) ---------- */
.glass {
  --glass-fill: rgb(28 26 23 / 0.88); /* >= 5:1 for text and .pill over paper or white */
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--eg-glass-blur)) saturate(var(--eg-glass-saturate));
  backdrop-filter: blur(var(--eg-glass-blur)) saturate(var(--eg-glass-saturate));
  box-shadow: inset 0 1px 0 var(--eg-glass-rim-top), inset 0 0 0 1px rgb(255 255 255 / 0.08), var(--eg-glass-shadow);
  color: var(--eg-on-black);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--eg-ink-2); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--eg-ink-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass { background: var(--eg-ink-2); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); }
}

/* ---------- bar ---------- */
.bar {
  --eg-bar-offset: 0px; /* WordPress admin bar sets it below */
  position: fixed; z-index: 10;
  top: calc(var(--eg-bar-offset) + var(--eg-space-3)); left: var(--eg-space-3); right: var(--eg-space-3);
  box-sizing: border-box; max-width: 1080px; margin: 0 auto;
  min-height: 52px; padding: 0 var(--eg-space-2) 0 var(--eg-space-4);
  border-radius: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 0;
  font-family: var(--eg-font); font-size: var(--eg-size-sm); font-weight: var(--eg-weight-regular); line-height: 1.5; letter-spacing: normal; text-align: left;
  -webkit-font-smoothing: antialiased;
}
.admin-bar .bar { --eg-bar-offset: 32px; }
@media (max-width: 782px) { .admin-bar .bar { --eg-bar-offset: 46px; } }
.bar *, .bar *::before, .bar *::after { box-sizing: border-box; }
.bar a, .bar button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.bar .brand { display: inline-flex; align-items: center; gap: var(--eg-space-3); min-height: 44px; margin: 0; padding: 0; white-space: nowrap; flex: none; border-radius: 4px; color: var(--eg-on-black); font-size: var(--eg-size-sm); font-weight: var(--eg-weight-strong); line-height: 1.5; transform-origin: left center; }
.bar .mark { display: block; width: 28px; height: 28px; color: var(--eg-gold-light); flex: none; }
.bar-actions { display: flex; align-items: center; gap: var(--eg-space-1); margin: 0 0 0 auto; padding: 0; font-size: var(--eg-size-sm); line-height: 1.5; }
.bar .plain { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 var(--eg-space-2); border-radius: 4px; white-space: nowrap; color: var(--eg-on-black-muted); font-size: var(--eg-size-sm); font-weight: var(--eg-weight-regular); line-height: 1.5; }
.bar .pill { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 var(--eg-space-4); border-radius: 22px; background: rgb(255 255 255 / 0.12); color: var(--eg-on-black); font-size: var(--eg-size-sm); font-weight: var(--eg-weight-strong); line-height: 1.5; }
.bar-actions .nav-sheets, .bar-actions .nav-xwide, .bar .nav-long { display: none; }
/* WhatsApp (Wave 4): under 600 px a 44 px round icon, always visible outside Menú; from 600 px the pill shows the name. */
.bar-actions .nav-wa { margin-left: var(--eg-space-1); }
.bar .nav-wa { justify-content: center; }
.bar .nav-wa .ico { display: block; width: 20px; height: 20px; flex: none; }
.bar .nav-wa .nav-wa-text { display: none; }
@media (max-width: 599px) { .bar .nav-wa { width: 44px; padding: 0; border-radius: 50%; } }
/* Cart count (Wave 4): a small badge on "Carrito". Set by the store script; hidden while the cart is empty and on the landing. */
.bar .cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--eg-gold-light); color: #17120a; font-size: var(--eg-size-xs); font-weight: var(--eg-weight-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.bar .cart-count[hidden] { display: none; }
/* The badge arrives when the cart count goes from 0 to 1 or more after the page has loaded (ui.js adds .is-live after the first count, so a page load never animates it):
   opacity and --eg-materialise-scale over --eg-dur-fast, ease-out; it leaves over --eg-dur-exit. Reduced motion: the scale token is 1, so only the fade stays. */
.bar .cart-count.is-live { transition: opacity var(--eg-dur-fast) var(--eg-ease-out), scale var(--eg-dur-fast) var(--eg-ease-out), display var(--eg-dur-fast) allow-discrete; }
.bar .cart-count.is-live[hidden] { opacity: 0; scale: var(--eg-materialise-scale); transition: opacity var(--eg-dur-exit) var(--eg-ease-exit), scale var(--eg-dur-exit) var(--eg-ease-exit), display var(--eg-dur-exit) allow-discrete; }
@starting-style { .bar .cart-count.is-live:not([hidden]) { opacity: 0; scale: var(--eg-materialise-scale); } }
@media (max-width: 479px) { .bar { padding-left: var(--eg-space-3); } .bar .brand { gap: var(--eg-space-2); } .bar .plain { padding: 0 6px; } }
@media (max-width: 539px) { .bar .brand span { display: none; } } /* was 419 px: the icon and the count need the room */
@media (min-width: 600px) { .bar .nav-wa .ico { display: none; } .bar .nav-wa .nav-wa-text { display: inline; } }
@media (min-width: 720px) { .bar-actions { gap: var(--eg-space-2); } .bar .plain { padding: 0 var(--eg-space-3); } .bar { left: var(--eg-space-5); right: var(--eg-space-5); } }
@media (min-width: 1024px) { .bar-actions .nav-sheets, .bar-actions .nav-xwide { display: inline-flex; } .bar .nav-long { display: inline; } }
@media (min-width: 1140px) { .bar { left: 0; right: 0; width: min(1080px, calc(100% - 48px)); } }
.bar .plain[aria-current="page"] { color: var(--eg-on-black); box-shadow: inset 0 -2px 0 var(--eg-on-black-muted); }

/* ---------- states: every link in the bar and the panel has rest, hover (pointer only), press and focus-visible ---------- */
.bar .brand, .bar .plain {
  transition: color var(--eg-dur-fast) var(--eg-ease-in-out), text-decoration-color var(--eg-dur-fast) var(--eg-ease-in-out), opacity var(--eg-dur-fast) var(--eg-ease-out), transform var(--eg-dur-fast) var(--eg-ease-out);
}
.bar .mark { transition: color var(--eg-dur-fast) var(--eg-ease-in-out); }
.bar .pill { transition: background-color var(--eg-dur-fast) var(--eg-ease-in-out), transform var(--eg-dur-fast) var(--eg-ease-out); }
@media (hover: hover) {
  .bar .brand:hover .mark { color: var(--eg-paper); }
  .bar .plain:hover { color: var(--eg-on-black); }
  .bar .pill:hover { background: rgb(255 255 255 / 0.2); }
}
.bar :is(.brand, .plain):active { opacity: 0.7; }
.bar :is(.brand, .plain, .pill):active { transform: scale(var(--eg-press-scale)); transition-duration: var(--eg-dur-press); }
.bar .plain:active { color: var(--eg-on-black); }
.bar .pill:active { background: rgb(255 255 255 / 0.3); }
.bar :focus-visible { outline: 2px solid var(--eg-gold-light); outline-offset: var(--eg-focus-offset); }

/* ---------- Menú ----------
   Under 1024 px the bar shows a "Menú" pill; the panel lists exactly the links the bar shows at 1024 px and wider, WhatsApp last. Solid fill, no blur. Only opacity and transform move:
   in over --eg-dur, ease-out; out over --eg-dur-exit, --eg-ease-exit. From 600 px the panel sits under the button, so it also grows from the button's corner (top right) from
   --eg-materialise-scale. Reduced motion: --eg-rise is 0 and the scale token is 1, so only the fade stays. The script sets aria-expanded, CSS does the rest. */
.bar .eg-menu-btn { display: none; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 0 var(--eg-space-1); padding: 0 var(--eg-space-4); border: 0; border-radius: var(--eg-radius-pill); background: rgb(255 255 255 / 0.12); color: var(--eg-on-black); font: inherit; font-size: var(--eg-size-sm); font-weight: 600; line-height: 1.5; letter-spacing: normal; cursor: pointer; transition: background-color var(--eg-dur-fast) var(--eg-ease-in-out), transform var(--eg-dur-fast) var(--eg-ease-out); }
.bar .eg-menu-btn[aria-expanded="true"] { background: rgb(255 255 255 / 0.2); }
@media (hover: hover) { .bar .eg-menu-btn:hover { background: rgb(255 255 255 / 0.2); } }
.bar .eg-menu-btn:active { background: rgb(255 255 255 / 0.3); transform: scale(var(--eg-press-scale)); transition-duration: var(--eg-dur-press); }
@media (max-width: 479px) { .bar .eg-menu-btn { padding: 0 var(--eg-space-3); } }
.bar .eg-menu-panel { display: none; }
@media (max-width: 1023px) {
  .bar .eg-menu-btn { display: inline-flex; }
  .bar .eg-menu-panel { display: block; position: absolute; top: calc(100% + var(--eg-space-2)); left: 0; right: 0; z-index: 1; box-sizing: border-box; max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; padding: var(--eg-space-2); border-radius: var(--eg-radius-card); background: var(--eg-glass-solid); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 10px 30px rgb(0 0 0 / 0.38); visibility: hidden; opacity: 0; transform: translateY(calc(var(--eg-rise) * -0.5));
    transition: opacity var(--eg-dur-exit) var(--eg-ease-exit), transform var(--eg-dur-exit) var(--eg-ease-exit), visibility 0s linear var(--eg-dur-exit); }
  .bar .eg-menu-btn[aria-expanded="true"] + .eg-menu-panel { visibility: visible; opacity: 1; transform: none; transition: opacity var(--eg-dur) var(--eg-ease-out), transform var(--eg-dur) var(--eg-ease-out), visibility 0s; }
}
@media (min-width: 600px) and (max-width: 1023px) { .bar .eg-menu-panel { left: auto; width: 360px; transform-origin: top right; transform: translateY(calc(var(--eg-rise) * -0.5)) scale(var(--eg-materialise-scale)); } }
.bar .eg-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.bar .eg-menu-panel li { margin: 0; padding: 0; }
.bar .eg-menu-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--eg-space-3); border-radius: calc(var(--eg-radius-card) - var(--eg-space-2)); color: var(--eg-on-black); font-size: var(--eg-size-md); font-weight: var(--eg-weight-regular); line-height: 1.5; transition: background-color var(--eg-dur-fast) var(--eg-ease-in-out), transform var(--eg-dur-fast) var(--eg-ease-out); }
.bar .eg-menu-panel a[aria-current="page"] { background: rgb(255 255 255 / 0.08); font-weight: 600; }
@media (hover: hover) { .bar .eg-menu-panel a:hover { background: rgb(255 255 255 / 0.1); } }
.bar .eg-menu-panel a:active { background: rgb(255 255 255 / 0.16); transform: scale(var(--eg-press-scale-lg)); transition-duration: var(--eg-dur-press); }
.bar .eg-menu-panel a:focus-visible { outline-offset: -2px; } /* inside the row: the panel scrolls and would clip an outer ring */
.bar .eg-menu-panel a.eg-menu-wa { justify-content: center; min-height: 48px; margin-top: var(--eg-space-2); border-radius: var(--eg-radius-pill); background: rgb(255 255 255 / 0.12); font-size: var(--eg-size-sm); font-weight: 600; }
@media (hover: hover) { .bar .eg-menu-panel a.eg-menu-wa:hover { background: rgb(255 255 255 / 0.2); } }
.bar .eg-menu-panel a.eg-menu-wa:active { background: rgb(255 255 255 / 0.3); transform: scale(var(--eg-press-scale)); }
@media (prefers-contrast: more) { .bar .eg-menu-panel { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); } .bar .eg-menu-btn { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); } }
@media (forced-colors: active) { .bar .eg-menu-panel { border: 1px solid CanvasText; } .bar .eg-menu-btn { border: 1px solid ButtonText; } }
/* Without scripting the Menú cannot open: hide it and keep every bar link visible where it fits (the footer directory holds the rest). */
@media (scripting: none) { .bar .eg-menu-btn, .bar .eg-menu-panel { display: none !important; } .bar-actions .nav-sheets { display: inline-flex; } }
@media print { .bar { display: none !important; } }
/* Trio composition, shared by the landing hero and the store Próximamente band (DESIGN.md, Trío insignia imagery).
   Source of truth: shared/trio.css. The theme gets a copy (scripts/sync-shared.sh); landing/build.sh puts this file before landing/styles.css.
   Not here: the load entrance, the scroll stage-out (landing only) and the desktop height rule of the hero. Each surface adds its own. */
/* Trio stage: three separate layers (iPhone 18 Pro Max pair, open Duo, Galaxy S26 Ultra pair) placed with percentages of one box,
   so every layer can be animated alone (motion v2 section 1: .lineup, .dev-iphone, .dev-galaxy, .refl keep their names).
   --stage-w is the box width. Height is 0.38 of it (the pairs are 82% of that, the Duo 95%); the reflection hangs under the box (27% of the pairs).
   --stage-w is in cqw of the hero (or the store band), never %: a % inside it resolves against a different box in each property that reads it
   (the scrollport height in a sticky top, the timeline range in animation-range, the device box in translate). Wave 21, hero motion H-1. */
.hero, .eg-trio { container-type: inline-size; } /* 100cqw = content width; cq units follow the layout width, so a classic scrollbar does not offset the bleed (vw includes it) */
.lineup {
  --stage-w: min(100cqw, 1180px);
  position: relative; width: var(--stage-w); aspect-ratio: 100 / 38; margin: var(--eg-space-7) auto calc(var(--stage-w) * 0.38 * 0.22);
}
/* Every layer sits on one baseline (bottom: 0). Width and left are % of the stage; height follows the image ratio. */
.dev { position: absolute; bottom: 0; transform-origin: 50% 100%; }
.dev picture, .dev img { display: block; width: 100%; height: auto; }
.dev-iphone { left: 3.25%; width: 17%;   z-index: 1; }
.dev-duo    { left: 18.75%; width: 56%; z-index: 2; }
.dev-galaxy { left: 73.25%; width: 23.5%; z-index: 1; }
.refl {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); height: 27%; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.25), transparent);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.25), transparent);
}
.dev .refl picture { position: absolute; left: 0; bottom: 0; width: 100%; height: 370%; transform: scaleY(-1); }
.dev .refl img { height: 100%; }
.dev-duo .refl { height: 22%; }
.dev-duo .refl picture { height: 455%; }
/* Heights: the pairs are the same height; the Duo is lower in the ratio but wider and nearer (bigger). */
.dev-iphone, .dev-galaxy { height: 82%; }
.dev-duo { height: 95.5%; }
.dev-iphone picture, .dev-galaxy picture, .dev-duo picture { height: 100%; }
.dev-iphone img, .dev-galaxy img, .dev-duo img { height: 100%; object-fit: contain; object-position: 50% 100%; }
@media (max-width: 719px) {
  /* Phones (Ernesto 2026-11-06: the devices looked small): the stage is 108% of the screen wide and centred, so it bleeds past the hero padding; the layers overlap
     more so every device stays inside the screen (smallest visible gap to the edge: 2.3vw). Heights are % of the stage height, as before. */
  .lineup { --stage-w: calc(1.08 * (100cqw + 2 * var(--eg-space-4))); margin-inline: calc((100% - var(--stage-w)) / 2); aspect-ratio: 100 / 46; margin-top: var(--eg-space-6); margin-bottom: calc(var(--stage-w) * 0.46 * 0.2); }
  .dev-iphone { left: 5.8%;  width: 20%;   height: 80%; }
  .dev-duo    { left: 21.1%; width: 50%;   height: 70.5%; }
  .dev-galaxy { left: 66.4%; width: 27.8%; height: 80%; }
}
/* Turntable box (shared/spin.js). The poster (frame 000) fills the box until the canvas holds a frame; then the poster hides in that same frame.
   The box takes its height from the host and keeps the frame aspect (one class per export size), so it has its final size before any byte loads.
   The floor shadow narrows with the turn (spin.js sets scaleX). */
.eg-spin { position: relative; height: 100%; aspect-ratio: 400 / 800; max-width: 100%; margin-inline: auto; }
.eg-spin--560 { aspect-ratio: 560 / 800; } /* iPhone Duo frames */
.eg-spin > picture { position: relative; display: block; width: 100%; height: 100%; }
.eg-spin > picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eg-spin.is-drawn > picture { opacity: 0; transition: none; } /* at once: a fading poster under the canvas would be a second phone */
.eg-spin__c { position: absolute; top: 0; left: 0; display: block; pointer-events: none; }
.eg-spin__floor { position: absolute; left: 12%; right: 12%; bottom: 3%; height: 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.22), rgb(0 0 0 / 0)); transform-origin: 50% 50%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eg-spin__floor { display: none; } }
:root[data-theme="dark"] .eg-spin__floor { display: none; }

/* No wrong-pose flash while the selected first still loads. No-JS keeps the poster. */
.eg-spin.is-pending > picture { opacity: 0; transition: none; }
/* Elektron Geek landing. Tokens: tokens.css (copied from shared/tokens.css by build.sh). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--eg-gold-deep) transparent; scroll-padding-top: 80px; scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body {
  margin: 0;
  background: var(--eg-bg);
  color: var(--eg-fg);
  font-family: var(--eg-font);
  font-size: var(--eg-size-md);
  line-height: 1.5;
  font-weight: var(--eg-weight-regular);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-weight: var(--eg-weight-strong); text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: none; }
::selection { background: var(--eg-gold); color: #17120a; }
a { color: inherit; }
a, button { touch-action: manipulation; }
/* The ring follows the element's own radius. Plain text links get a small default radius (zero specificity: any class wins). */
:where(a, summary) { border-radius: 4px; }
:focus-visible { outline: 2px solid var(--ring, var(--eg-accent-text)); outline-offset: var(--eg-focus-offset); }
[data-surface="black"] { --ring: var(--eg-gold-light); }

/* Page changes: a short crossfade between same-origin pages (Chrome 126+, Safari 18.2+; other browsers navigate as before).
   The bar has its own name, so it stays still while the page behind it fades. Reduced motion shortens it (--eg-dur-page = 150ms). */
@view-transition { navigation: auto; }
.bar { view-transition-name: eg-bar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--eg-dur-page); animation-timing-function: var(--eg-ease-in-out); }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--eg-space-4); }
@media (min-width: 720px) { .wrap { padding-inline: var(--eg-space-6); } }

.skip { position: absolute; left: var(--eg-space-4); top: -80px; z-index: 20; padding: var(--eg-space-3) var(--eg-space-4); background: var(--eg-paper); color: var(--eg-ink); border-radius: var(--eg-radius-control); font-weight: var(--eg-weight-strong); }
.skip:focus { top: var(--eg-space-3); outline: 2px solid var(--eg-gold-light); outline-offset: 2px; box-shadow: 0 0 0 2px var(--eg-black); }

/* Glass, the bar and the Menú panel: shared/bar.css (build.sh puts it before this file). */

/* Smooth scroll only for a click on a link to an anchor of this same page (/menu.js sets html.eg-smooth). A page load never animates (polish audit P1-1). */
@media (prefers-reduced-motion: no-preference) { html.eg-smooth { scroll-behavior: smooth; } }

/* ---------- hero (black) ---------- */
.hero {
  padding: 112px var(--eg-space-4) 0;
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  max-width: 20ch; margin-inline: auto;
  font-size: var(--eg-size-xl);
  line-height: 1.12; letter-spacing: 0;
}
.hero h1 span[translate="no"] { white-space: nowrap; }
.lead { color: var(--eg-fg-muted); font-size: var(--eg-size-md); max-width: 44ch; margin: var(--eg-space-4) auto 0; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--eg-space-3); margin: var(--eg-space-6) auto 0; max-width: 360px; }

@media (min-width: 720px) {
  .hero { padding-top: 128px; }
  .hero h1 { max-width: 22ch; font-size: var(--eg-size-2xl); letter-spacing: -0.025em; line-height: 1.08; }
  .actions { flex-direction: row; justify-content: center; align-items: center; gap: var(--eg-space-6); max-width: none; }
  .lead { font-size: var(--eg-size-md); max-width: 56ch; }
}
@media (min-width: 1040px) { .hero h1 { font-size: var(--eg-size-3xl); max-width: 20ch; letter-spacing: -0.03em; line-height: 1.05; } }

/* Trio stage geometry (.lineup, .dev-*, .refl): shared/trio.css (build.sh puts it before this file). Landing-only rules follow. */
@media (min-width: 720px) { .lineup { --stage-w: min(100cqw, 1180px, max(640px, calc((100svh - 520px) * 2.63))); } }

/* Scroll reveal: one shot per element. Visible by default; hidden only when the inline <head> script set html.eg-motion
   (motion allowed and IntersectionObserver present). reveal.js adds .is-in once. Never on the hero or the first viewport. */
.eg-motion .eg-reveal:not(.is-in) { opacity: 0; transform: translateY(var(--eg-rise)); }
.eg-motion .eg-reveal.eg-settle:not(.is-in) { transform: scale(var(--eg-settle-scale)); }
.eg-motion .eg-reveal { transition: opacity var(--eg-dur-slow) var(--eg-ease-out), transform var(--eg-dur-slow) var(--eg-ease-out); }
.eg-motion .eg-reveal.eg-late { transition-delay: 60ms; }
/* Depth (motion v2 section 3): a card item rises 1.5 x --eg-rise while the heading rises --eg-rise, so they arrive on two planes.
   Only an image well (.eg-depth-media: an img or picture, never text) settles from --eg-settle-scale. */
.eg-motion .eg-reveal.eg-depth:not(.is-in) { transform: translateY(calc(var(--eg-rise) * 1.5)); }
.eg-motion .eg-reveal.eg-depth { transition-delay: 60ms; } /* 60 ms after the heading, as the store and the spec sheets; a second card waits 120 ms */
.eg-motion .eg-reveal.eg-depth.eg-late { transition-delay: 120ms; }
.eg-motion .eg-reveal.eg-depth .eg-depth-media { transition: scale var(--eg-dur-slow) var(--eg-ease-out) 60ms; }
.eg-motion .eg-reveal.eg-depth.eg-late .eg-depth-media { transition-delay: 120ms; }
.eg-motion .eg-reveal.eg-depth:not(.is-in) .eg-depth-media { scale: var(--eg-settle-scale); }
.eg-motion .eg-reveal.eg-now, .eg-motion .eg-reveal.eg-now .eg-depth-media { transition: none; }
@media print { .eg-reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
/* Load entrance (DESIGN.md -> Motion: one load entrance, the hero lineup; wave 21 prototype docs/design/prototypes/motion-hero/). The devices only:
   the headline and the buttons are at full opacity from the first frame. The Duo (near) settles first; the two pairs follow 60 ms later from
   --eg-rise nearer the centre, the direction they keep moving in when the visitor scrolls. 660 ms in all. Transform only: the LCP image (Duo)
   is never hidden. The reflections (decorative) fade in with the pairs. Under reduced motion --eg-dur-slow is 0: nothing moves. */
.dev-iphone { --in-dir: 1; }
.dev-galaxy { --in-dir: -1; }
@keyframes eg-in-duo { from { transform: translateY(var(--eg-rise)) scale(var(--eg-settle-scale)); } }
@keyframes eg-in-pair { from { transform: translate(calc(var(--in-dir) * var(--eg-rise)), var(--eg-rise)) scale(var(--eg-settle-scale)); } }
@keyframes eg-in-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .dev-duo { animation: eg-in-duo var(--eg-dur-slow) var(--eg-ease-out) both; }
  .dev-iphone, .dev-galaxy { animation: eg-in-pair var(--eg-dur-slow) var(--eg-ease-out) 60ms both; }
  .dev > .refl > picture { animation: eg-in-fade var(--eg-dur-slow) var(--eg-ease-out) 60ms both; }
}

/* Hero B, depth and light (Wave 7, DESIGN.md -> Scroll-linked motion; prototype docs/design/prototypes/hero-scroll/b.html). The lineup pins for --eg-pin-dist of extra scroll (135svh under 720px, 125svh from 720px, 110svh from 1024px) while the headline and the
   buttons scroll away. While it is pinned the Duo grows from its baseline (so it rises), the two pairs part and recede, the reflections fade and a soft specular band crosses each device.
   translate, scale and opacity only, driven by one view-timeline on .lineup-track: no inertia, the visitor can reverse at any instant. Only the lineup pins (never the whole hero),
   so a phone with a short visible height still shows the whole product. The band is decorative: it lives in a layer clipped to the device silhouette.
   Velocity (wave 21): every move uses one trapezoid (ease in over the first quarter, constant speed, ease out over the last quarter), so the speed never steps.
   The sticky pin itself starts and ends with a speed step (the lineup moves 1:1, stops, moves 1:1 again); two seam animations on .lineup translate it so that
   the speed ramps over 2 x --eg-hero-ease of scroll (hero.js sets it to min(approach, 240px); without the script it is 0, the plain pin).
   Without animation-timeline (Firefox today) hero.js writes the same values from scrollY (the fallback block below lays out the same pin when scripting is on).
   Reduced motion: none of this; the hero is the plain static lineup (no pin, no extra scroll, no sheen layer). */
.sheen { display: none; }
@supports (animation-timeline: view()) and (animation-range: cover calc(100svh - 96px) cover calc(300svh - 96px)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { overflow: clip; } /* hidden would make the hero the sticky scroll container; clip keeps the side bleed of the phone lineup without that */
    /* The track is the lineup plus --eg-pin-dist of empty row (the ::after), so the sticky lineup has that distance to stay. Phones keep 135svh (touch scrolls a long way per flick); tablets 125svh; desktop 110svh; a wide screen with a wheel or trackpad reads the same move as slow, so it gets less (see the min-width blocks below). Its margin moves from the lineup to the track, so the track top is the lineup top. */
    .lineup-track { --eg-pin-dist: 135svh; --eg-scroll-grow: 1.1; --eg-scroll-part: 0.02; --eg-scroll-recede: 0.9; margin-top: var(--eg-space-7); view-timeline: --eg-hero block; view-timeline-inset: 0; }
    .lineup-track::after { content: ""; display: block; height: var(--eg-pin-dist); }
    /* The lineup sits at the middle of the screen while pinned (never under the bar: 96px minimum). --pin-h = the box plus its reflection. */
    .lineup { --pin-h: calc(var(--stage-w) * 0.46); --pin-top: max(96px, calc((100svh - var(--pin-h)) / 2)); position: sticky; top: var(--pin-top); margin-top: 0; }
    .sheen { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 50% 100%; mask-position: 50% 100%; -webkit-mask-size: contain; mask-size: contain; }
    .sheen i { position: absolute; top: -10%; bottom: -10%; left: 0; width: 42%; translate: -140% 0; transform: skewX(-16deg);
      background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--eg-gold-light) 9%, transparent) 35%, color-mix(in srgb, var(--eg-gold-light) 26%, transparent) 50%, color-mix(in srgb, var(--eg-gold-light) 9%, transparent) 65%, transparent 100%); }
    .dev-iphone .sheen { -webkit-mask-image: url(/img/iphone-18-pro-max-pair-1x.avif); mask-image: url(/img/iphone-18-pro-max-pair-1x.avif); }
    .dev-duo .sheen { -webkit-mask-image: url(/img/iphone-duo-star-white-open-1x.avif); mask-image: url(/img/iphone-duo-star-white-open-1x.avif); }
    .dev-galaxy .sheen { -webkit-mask-image: url(/img/galaxy-s26-ultra-violet-pair-right-1x.avif); mask-image: url(/img/galaxy-s26-ultra-violet-pair-right-1x.avif); }
    /* Pin phase on the cover range of the track: it starts when the track top is --pin-top from the screen top (100svh - pin-top into the cover range) and lasts --eg-pin-dist. */
    .lineup-track:not(.is-js) .refl, .lineup-track:not(.is-js) .sheen i { animation-timeline: --eg-hero; animation-range: cover calc(100svh - var(--pin-top)) cover calc(100svh + var(--eg-pin-dist) - var(--pin-top)); animation-timing-function: linear; animation-fill-mode: both; animation-duration: 1ms; }
    .lineup-track:not(.is-js) .refl { animation-name: eg-refl; }
    .lineup-track:not(.is-js) .dev-iphone .sheen i { animation-name: eg-sweep-l; }
    .lineup-track:not(.is-js) .dev-duo .sheen i { animation-name: eg-sweep-c; }
    .lineup-track:not(.is-js) .dev-galaxy .sheen i { animation-name: eg-sweep-r; }
    /* The entrance (transform, document timeline) and the scroll move (translate and scale, scroll timeline) run on the same layer and compose. */
    .lineup-track:not(.is-js) .dev {
      animation-timeline: auto, --eg-hero; animation-range: normal, cover calc(100svh - var(--pin-top)) cover calc(100svh + var(--eg-pin-dist) - var(--pin-top));
      animation-duration: var(--eg-dur-slow), 1ms; animation-timing-function: var(--eg-ease-out), linear; animation-delay: 60ms, 0ms; animation-fill-mode: both, both;
    }
    .lineup-track:not(.is-js) .dev-duo { animation-name: eg-in-duo, eg-duo; animation-delay: 0ms, 0ms; }
    .lineup-track:not(.is-js) .dev-iphone, .lineup-track:not(.is-js) .dev-galaxy { animation-name: eg-in-pair, eg-pair; }
    /* Pin seams. */
    .lineup-track:not(.is-js) .lineup {
      animation-name: eg-seam-in, eg-seam-out; animation-duration: 1ms; animation-fill-mode: both; animation-composition: replace, add;
      animation-timeline: --eg-hero, --eg-hero;
      animation-range: cover calc(100svh - var(--pin-top) - var(--eg-hero-ease)) cover calc(100svh - var(--pin-top) + var(--eg-hero-ease)),
                       cover calc(100svh + var(--eg-pin-dist) - var(--pin-top) - var(--eg-hero-ease)) cover calc(100svh + var(--eg-pin-dist) - var(--pin-top) + var(--eg-hero-ease));
    }
  }
  /* Wide screens: the same move over a shorter pin. Same start and end states, same keyframes, only the distance changes. */
  @media (prefers-reduced-motion: no-preference) and (min-width: 720px) { .lineup-track { --eg-pin-dist: 125svh; } }
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) { .lineup-track { --eg-pin-dist: 110svh; } }
  @media (prefers-reduced-motion: no-preference) and (max-width: 719px) {
    .lineup-track { --eg-scroll-grow: 1.45; --eg-scroll-part: 0.1; margin-top: var(--eg-space-6); }
    .lineup { --pin-h: calc(var(--stage-w) * 0.54); }
    .dev-duo .sheen { -webkit-mask-image: url(/img/iphone-duo-star-white-open-sm.avif); mask-image: url(/img/iphone-duo-star-white-open-sm.avif); }
  }
}
/* Script fallback layout: browsers without animation-timeline, motion allowed and scripting on. The same pin as above, in place at first paint (CLS 0);
   hero.js adds .is-js and writes the values. Without scripting the hero stays the static lineup. */
@supports not ((animation-timeline: view()) and (animation-range: cover calc(100svh - 96px) cover calc(300svh - 96px))) {
  @media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
    .hero { overflow: clip; }
    .lineup-track { --eg-pin-dist: 135svh; --eg-scroll-grow: 1.1; --eg-scroll-part: 0.02; --eg-scroll-recede: 0.9; margin-top: var(--eg-space-7); }
    .lineup-track::after { content: ""; display: block; height: var(--eg-pin-dist); }
    .lineup { --pin-h: calc(var(--stage-w) * 0.46); --pin-top: max(96px, calc((100svh - var(--pin-h)) / 2)); position: sticky; top: var(--pin-top); margin-top: 0; }
    .sheen { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 50% 100%; mask-position: 50% 100%; -webkit-mask-size: contain; mask-size: contain; }
    .sheen i { position: absolute; top: -10%; bottom: -10%; left: 0; width: 42%; translate: -140% 0; transform: skewX(-16deg);
      background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--eg-gold-light) 9%, transparent) 35%, color-mix(in srgb, var(--eg-gold-light) 26%, transparent) 50%, color-mix(in srgb, var(--eg-gold-light) 9%, transparent) 65%, transparent 100%); }
    .dev-iphone .sheen { -webkit-mask-image: url(/img/iphone-18-pro-max-pair-1x.avif); mask-image: url(/img/iphone-18-pro-max-pair-1x.avif); }
    .dev-duo .sheen { -webkit-mask-image: url(/img/iphone-duo-star-white-open-1x.avif); mask-image: url(/img/iphone-duo-star-white-open-1x.avif); }
    .dev-galaxy .sheen { -webkit-mask-image: url(/img/galaxy-s26-ultra-violet-pair-right-1x.avif); mask-image: url(/img/galaxy-s26-ultra-violet-pair-right-1x.avif); }
  }
  @media (prefers-reduced-motion: no-preference) and (scripting: enabled) and (min-width: 720px) { .lineup-track { --eg-pin-dist: 125svh; } }
  @media (prefers-reduced-motion: no-preference) and (scripting: enabled) and (min-width: 1024px) { .lineup-track { --eg-pin-dist: 110svh; } }
  @media (prefers-reduced-motion: no-preference) and (scripting: enabled) and (max-width: 719px) {
    .lineup-track { --eg-scroll-grow: 1.45; --eg-scroll-part: 0.1; margin-top: var(--eg-space-6); }
    .lineup { --pin-h: calc(var(--stage-w) * 0.54); }
    .dev-duo .sheen { -webkit-mask-image: url(/img/iphone-duo-star-white-open-sm.avif); mask-image: url(/img/iphone-duo-star-white-open-sm.avif); }
  }
}
/* Script mode: only the entrance stays a CSS animation; hero.js writes the scroll values (translate, scale, opacity). */
.lineup-track.is-js .lineup, .lineup-track.is-js .refl, .lineup-track.is-js .sheen i { animation: none; }
.lineup-track.is-js .dev-duo { animation: eg-in-duo var(--eg-dur-slow) var(--eg-ease-out) both; }
.lineup-track.is-js .dev-iphone, .lineup-track.is-js .dev-galaxy { animation: eg-in-pair var(--eg-dur-slow) var(--eg-ease-out) 60ms both; }
@media (prefers-reduced-motion: reduce) { .lineup-track.is-js .dev { animation: none; } }

/* Scroll keyframes. One trapezoid velocity profile: 0 -> 1/6 (ease in), 1/6 -> 5/6 (linear), 5/6 -> 1 (ease out); peak speed 4/3 of the mean, never a step.
   Keyframe curves are literals: var() is not resolved in a keyframe's animation-timing-function (Chromium and WebKit fall back to ease).
   cubic-bezier(0.3333, 0, 0.6667, 0.3333) is exactly y = t^2; cubic-bezier(0.3333, 0.6667, 0.6667, 1) is exactly y = 1 - (1 - t)^2; cubic-bezier(0.45, 0, 0.25, 1) is --eg-ease-in-out.
   --part-x: how far each side pair moves outward (a share of the one stage width). */
.lineup-track { --eg-hero-ease: 0px; }
.dev-iphone { --part-x: calc(var(--stage-w) * var(--eg-scroll-part, 0) * -1); }
.dev-galaxy { --part-x: calc(var(--stage-w) * var(--eg-scroll-part, 0)); }
@keyframes eg-duo {
  0% { scale: 1; animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 0.3333); }
  25% { scale: calc(1 + (var(--eg-scroll-grow) - 1) / 6); animation-timing-function: linear; }
  75% { scale: calc(1 + (var(--eg-scroll-grow) - 1) * 5 / 6); animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1); }
  100% { scale: var(--eg-scroll-grow); }
}
@keyframes eg-pair {
  0% { translate: 0 0; scale: 1; animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 0.3333); }
  25% { translate: calc(var(--part-x) / 6) 0; scale: calc(1 - (1 - var(--eg-scroll-recede)) / 6); animation-timing-function: linear; }
  75% { translate: calc(var(--part-x) * 5 / 6) 0; scale: calc(1 - (1 - var(--eg-scroll-recede)) * 5 / 6); animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1); }
  100% { translate: var(--part-x) 0; scale: var(--eg-scroll-recede); }
}
@keyframes eg-refl { 0% { opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); } 40%, 100% { opacity: 0; } }
/* Pin seams: a quadratic bump (peak w/4) that turns the speed step into a straight ramp over 2w. Down at the start, up at the end. */
@keyframes eg-seam-in { 0% { translate: 0 0; animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 0.3333); } 50% { translate: 0 calc(var(--eg-hero-ease) / 4); animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1); } 100% { translate: 0 0; } }
@keyframes eg-seam-out { 0% { translate: 0 0; animation-timing-function: cubic-bezier(0.3333, 0, 0.6667, 0.3333); } 50% { translate: 0 calc(var(--eg-hero-ease) / -4); animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1); } 100% { translate: 0 0; } }
@keyframes eg-sweep-l { 0%, 28% { translate: -140% 0; } 62%, 100% { translate: 340% 0; } }
@keyframes eg-sweep-c { 0%, 34% { translate: -140% 0; } 70%, 100% { translate: 340% 0; } }
@keyframes eg-sweep-r { 0%, 40% { translate: -140% 0; } 76%, 100% { translate: 340% 0; } }

/* ---------- paper sections (content layer) ---------- */
.band { padding: var(--eg-space-8) 0; background: var(--eg-bg); color: var(--eg-fg); }
:root[data-theme="dark"] .band { background: var(--eg-black); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: var(--eg-black); } }
.band + .band { border-top: 1px solid var(--eg-hairline); }
.hero + .band { border-top: 1px solid var(--eg-hairline); }
.band h2, .closing h2 { font-size: var(--eg-size-xl); line-height: 1.15; letter-spacing: 0; max-width: 24ch; }
@media (min-width: 720px) {
  .band { padding: var(--eg-space-9) 0; }
  .band h2, .closing h2 { font-size: var(--eg-size-2xl); letter-spacing: -0.025em; line-height: 1.1; }
}

.sub { margin-top: var(--eg-space-7); font-size: var(--eg-size-lg); line-height: 1.25; }
.facts { margin-top: var(--eg-space-4); border-top: 1px solid var(--eg-hairline); }
.facts > div { display: grid; gap: var(--eg-space-1); padding: var(--eg-space-4) 0; border-bottom: 1px solid var(--eg-hairline); }
.facts dt { font-weight: var(--eg-weight-strong); }
.facts dd { color: var(--eg-fg-muted); max-width: 60ch; }
@media (min-width: 720px) {
  .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--eg-space-7); margin-top: var(--eg-space-5); }
  .facts > div { padding: var(--eg-space-5) 0; align-content: start; }
}

.split { display: grid; gap: var(--eg-space-6); }
@media (min-width: 720px) { .split { grid-template-columns: 5fr 6fr; gap: var(--eg-space-7); align-items: stretch; } }

.zones { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--eg-hairline); }
.zones li { padding: var(--eg-space-4) 0; border-bottom: 1px solid var(--eg-hairline); font-size: var(--eg-size-lg); font-weight: var(--eg-weight-strong); }
.zones li:nth-child(odd) { padding-right: var(--eg-space-3); }
.zones li:nth-child(even) { padding-left: var(--eg-space-4); border-left: 1px solid var(--eg-hairline); }
@media (min-width: 720px) { .zones li { padding-block: var(--eg-space-5); font-size: var(--eg-size-xl); font-weight: var(--eg-weight-regular); } .zones li:nth-child(even) { padding-left: var(--eg-space-5); } }

.methods { border-top: 1px solid var(--eg-hairline); }
.methods li { display: grid; gap: var(--eg-space-1); padding: var(--eg-space-4) 0; border-bottom: 1px solid var(--eg-hairline); }
.m-name { font-size: var(--eg-size-lg); font-weight: var(--eg-weight-strong); }
.m-note { font-size: var(--eg-size-sm); color: var(--eg-fg-muted); max-width: 52ch; }
@media (min-width: 720px) { .methods li { padding-block: var(--eg-space-5); } }

/* ---------- closing (black) ---------- */
.note { margin-top: var(--eg-space-4); max-width: 52ch; color: var(--eg-fg-muted); font-size: var(--eg-size-sm); }
.closing { padding: var(--eg-space-8) 0 var(--eg-space-7); text-align: center; }
.closing h2 { margin-inline: auto; max-width: 20ch; }
.closing .lead { margin-top: var(--eg-space-4); }
.closing .actions { margin-top: var(--eg-space-6); }
@media (min-width: 720px) { .closing { padding: var(--eg-space-9) 0 var(--eg-space-8); } }
/* ---------- footer directory: four groups of plain text links (4 columns, 2 on tablet, 1 on phone) ---------- */
.foot { padding: var(--eg-space-7) 0 var(--eg-space-6); border-top: 1px solid var(--eg-hairline); font-size: var(--eg-size-sm); color: var(--eg-fg-muted); text-align: left; }
.has-dock .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.dir { display: grid; grid-template-columns: 1fr; gap: var(--eg-space-5); }
@media (min-width: 600px) { .dir { grid-template-columns: 1fr 1fr; gap: var(--eg-space-6) var(--eg-space-7); } }
@media (min-width: 960px) { .dir { grid-template-columns: repeat(4, 1fr); gap: var(--eg-space-6); } }
.dir-h { margin: 0 0 var(--eg-space-1); font-size: var(--eg-size-sm); line-height: 1.4; font-weight: var(--eg-weight-strong); color: var(--eg-fg); letter-spacing: 0; text-transform: none; text-wrap: auto; }
.dir ul { display: grid; }
.foot a { display: inline-flex; align-items: center; gap: var(--eg-space-2); min-height: 44px; color: var(--eg-fg-muted); text-decoration: none; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.foot .ico { flex: none; width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .foot a { min-height: 32px; } }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--eg-space-5); margin-top: var(--eg-space-6); padding-top: var(--eg-space-4); border-top: 1px solid var(--eg-hairline); font-size: var(--eg-size-xs); }
.foot-base p { display: flex; align-items: center; min-height: 32px; }
.foot-base a { font-size: var(--eg-size-xs); text-decoration: underline; }

/* ---------- 404 ---------- */
/* 404 (copy-deck rows 158-160): the page surface (paper in light, black in dark), one heading, one line, the shared button and link set. The store 404 uses the same text and link order. */
.is-404 { min-height: 100svh; display: flex; flex-direction: column; }
.is-404 main { flex: 1; }
.nf { padding: 144px 0 var(--eg-space-8); text-align: center; }
.nf h1 { max-width: 16ch; margin-inline: auto; font-size: var(--eg-size-xl); line-height: 1.12; text-wrap: balance; }
.nf .lead { max-width: 34ch; margin: var(--eg-space-4) auto 0; color: var(--eg-fg-muted); text-wrap: balance; }
.nf-actions { display: grid; justify-items: center; gap: var(--eg-space-4); margin-top: var(--eg-space-7); }
.nf .eg-more-row { justify-content: center; margin-top: 0; gap: 0 var(--eg-space-5); }
@media (min-width: 720px) { .nf { padding: 192px 0 var(--eg-space-9); } .nf h1 { font-size: var(--eg-size-2xl); letter-spacing: -0.025em; line-height: 1.1; } }

/* ---------- interaction states ----------
   Hover (pointer only, in @media (hover: hover)) raises contrast. Press (:active, all devices) dims or scales.
   Focus ring is the shared :focus-visible rule at the top. The bar and Menú states live in shared/bar.css. */
.foot a, .dock a, .cta, .eg-btn-secondary { -webkit-tap-highlight-color: transparent; }
.foot a {
  transition: color var(--eg-dur-fast) var(--eg-ease-in-out), text-decoration-color var(--eg-dur-fast) var(--eg-ease-in-out), opacity var(--eg-dur-fast) var(--eg-ease-out), transform var(--eg-dur-fast) var(--eg-ease-out);
}
@media (hover: hover) {
  .foot a:hover { color: var(--eg-fg); text-decoration: underline; }
}
.foot a:active { opacity: 0.7; transform: scale(var(--eg-press-scale)); transition-duration: var(--eg-dur-press); }

/* ---------- CTA cristal: glitter under a 3px glass pane ---------- */
.cta {
  --metal: linear-gradient(135deg, #7a5d24, #c9a961 35%, #ebddb3 50%, #be9b52 68%, #8a6a2a);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--eg-btn-h); padding: 0 var(--eg-btn-pad);
  border-radius: var(--eg-radius-pill); background: var(--metal); color: #17120a;
  text-decoration: none; font-size: var(--eg-btn-size); font-weight: var(--eg-btn-weight);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 20px rgb(0 0 0 / 0.5);
  transition: transform var(--eg-dur-fast) var(--eg-ease-out);
}
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta .pane {
  position: absolute; inset: 0; border-radius: inherit;
  -webkit-backdrop-filter: blur(var(--eg-cta-pane-blur)) saturate(130%) brightness(1.04);
  backdrop-filter: blur(var(--eg-cta-pane-blur)) saturate(130%) brightness(1.04);
  background: linear-gradient(180deg, rgb(255 252 240 / 0.34), rgb(255 252 240 / 0.2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.65), inset 0 -1px 0 rgb(60 40 10 / 0.25), inset 0 0 0 1px rgb(255 255 255 / 0.3);
  transition: opacity var(--eg-dur) var(--eg-ease-in-out);
}
/* Hover pane: the same glass with the lighter blur, on top of the base pane. Hover crossfades the two (opacity only), so the blur never animates
   and the glitter canvas under it is not filtered at a new radius on every frame. */
.cta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  -webkit-backdrop-filter: blur(var(--eg-cta-pane-blur-hover)) saturate(130%) brightness(1.04);
  backdrop-filter: blur(var(--eg-cta-pane-blur-hover)) saturate(130%) brightness(1.04);
  background: linear-gradient(180deg, rgb(255 252 240 / 0.34), rgb(255 252 240 / 0.2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.65), inset 0 -1px 0 rgb(60 40 10 / 0.25), inset 0 0 0 1px rgb(255 255 255 / 0.3);
  transition: opacity var(--eg-dur) var(--eg-ease-in-out);
}
.cta .label { position: relative; z-index: 1; }
@media (hover: hover) {
  .cta:hover::after { opacity: 1; } /* the base pane stays at 1 under it, so the glass never thins mid-fade */
}
/* Press: scale down fast, back at release. In reduced motion the scale token is 1, so the veil lightens instead. */
.cta:active { transform: scale(var(--eg-press-scale)); transition-duration: var(--eg-dur-press); }
.cta:active .pane, .cta:active::after { background: linear-gradient(180deg, rgb(255 252 240 / 0.22), rgb(255 252 240 / 0.1)); }
/* No glass (reduced transparency, more contrast, forced colours, no backdrop-filter): no hover pane; the base pane stays. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) { .cta::after { display: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cta::after { display: none; } }
@media (prefers-reduced-transparency: reduce) {
  .cta { background: var(--eg-gold); }
  .cta canvas { display: none; }
  .cta .pane { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; box-shadow: inset 0 0 0 1px rgb(23 18 10 / 0.35); }
  .cta { box-shadow: 0 1px 2px rgb(0 0 0 / 0.4); }
}
@media (prefers-reduced-transparency: reduce) and (hover: hover) {
  .cta:hover { background: var(--eg-gold-light); }
}
/* Without the glass pane, press darkens the solid fill instead. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .cta { transition: transform var(--eg-dur-fast) var(--eg-ease-out), background-color var(--eg-dur-fast) var(--eg-ease-in-out); }
  .cta:active { background: var(--eg-gold-deep); color: var(--eg-paper); }
  .cta:active .pane { background: none; }
}
@media (prefers-contrast: more) {
  .cta { background: var(--eg-gold); }
  .cta canvas { display: none; }
  .cta .pane { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; }
}
@media (forced-colors: active) {
  .cta canvas, .cta .pane { display: none; }
  .cta { border: 1px solid ButtonText; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cta .pane { background: rgb(255 252 240 / 0.28); }
}

/* ---------- secondary button: the one quiet style (outline). Same height, size and radius as .cta. Pair it with a .cta; never alone as the page's main action. ---------- */
.eg-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: var(--eg-btn-h); padding: 0 var(--eg-btn-pad); border: 0; border-radius: var(--eg-radius-pill);
  background: transparent; color: var(--eg-fg); box-shadow: inset 0 0 0 1px var(--eg-fg-muted);
  font: inherit; font-size: var(--eg-btn-size); font-weight: var(--eg-btn-weight); line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: box-shadow var(--eg-dur-fast) var(--eg-ease-in-out), transform var(--eg-dur-fast) var(--eg-ease-out);
}
@media (hover: hover) { .eg-btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--eg-fg); } }
.eg-btn-secondary:active { box-shadow: inset 0 0 0 1px var(--eg-fg); transform: scale(var(--eg-press-scale)); transition-duration: var(--eg-dur-press); }
.eg-btn-secondary:is(:disabled, [aria-disabled="true"]) { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.cta:is(:disabled, [aria-disabled="true"]) { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
@media (prefers-contrast: more) { .eg-btn-secondary { box-shadow: inset 0 0 0 2px var(--eg-fg); } }
@media (forced-colors: active) { .eg-btn-secondary { border: 1px solid ButtonText; } }

/* ---------- mobile dock ---------- */
.dock {
  position: fixed; z-index: 10; left: var(--eg-space-4); right: var(--eg-space-4);
  bottom: calc(var(--eg-space-3) + env(safe-area-inset-bottom));
  max-width: 420px; margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--eg-space-1);
  padding: 5px; border-radius: 28px;
}
.dock a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 23px; text-decoration: none; font-weight: var(--eg-weight-strong); font-size: var(--eg-size-sm); transition: transform var(--eg-dur-fast) var(--eg-ease-out), background-color var(--eg-dur-fast) var(--eg-ease-in-out); }
.dock-alt { background: rgb(255 255 255 / 0.12); }
.dock-primary { background: var(--eg-gold); color: #17120a; }
.dock a:active { transform: scale(var(--eg-press-scale)); transition-duration: var(--eg-dur-press); }
.dock-alt:active { background: rgb(255 255 255 / 0.24); }
.dock-primary:active { background: var(--eg-gold-light); }
/* Hidden while a hero or closing CTA is on screen (dock.js). Fixed position: no layout shift.
   In: --eg-dur, ease-out. Out: --eg-dur-exit, --eg-ease-exit (same as the store dock). The glass materialises from its bottom centre:
   rise + --eg-materialise-scale + opacity; the blur never animates. Reduced motion: rise 0 and scale 1 (tokens.css), so only the fade stays. */
.dock { transform-origin: 50% 100%; transition: opacity var(--eg-dur) var(--eg-ease-out), transform var(--eg-dur) var(--eg-ease-out), visibility 0s; }
.dock[data-hidden] { opacity: 0; transform: translateY(var(--eg-rise)) scale(var(--eg-materialise-scale)); visibility: hidden; pointer-events: none; transition: opacity var(--eg-dur-exit) var(--eg-ease-exit), transform var(--eg-dur-exit) var(--eg-ease-exit), visibility 0s linear var(--eg-dur-exit); }
@media (min-width: 720px) { .dock { display: none; } .has-dock .foot { padding-bottom: var(--eg-space-6); } }

/* Reduced motion: the motion tokens in tokens.css already zero the movement and keep short fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Closing: link to the store (social icons live in the footer only) */
.store-link-row { margin-top: var(--eg-space-6); text-align: center; }
.store-link-row a { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== Reviews carousel (variant A, Wave 5): one quote per card, solid fill, no border, no shadow. Full bleed, aligned to the content column.
   The first card starts on the column's left edge, the last card ends on its right edge (real list padding, no spacer elements).
   Cards are equal height (the tallest sets it), the attribution sits right under the quote. Only a 24px mask fade sits at the viewport edge.
   Touch and trackpad scroll natively; a mouse drags (reviews.js). Buttons are shown by reviews.js. ===== */
.reviews-note { margin: var(--eg-space-3) 0 0; max-width: 56ch; font-size: var(--eg-size-md); line-height: 1.4; color: var(--eg-fg-muted); text-wrap: pretty; }
.reviews-note span { display: inline-block; }
.reviews-note .reviews-sep { display: inline; } /* the dot and its two spaces are real (nbsp), never at a line edge: below the width that fits the row, the two facts stack and the dot goes */
@container (max-width: 519px) { .reviews-note span { display: block; } .reviews-note .reviews-sep { display: none; } }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--eg-space-4) var(--eg-space-5); }
.reviews-head > :first-child { flex: 1 1 24rem; min-width: 0; }
.band-reviews { overflow-x: clip; container-type: inline-size; } /* cqw instead of vw: classic scrollbars do not offset the full bleed; the band has no side padding */
.reviews-edges { --eg-reviews-gutter: var(--eg-space-4); --eg-reviews-edge: min(24px, var(--eg-reviews-gutter));
  position: relative; margin-top: var(--eg-space-6); }
@media (min-width: 720px) { .reviews-edges { --eg-reviews-gutter: max(var(--eg-space-6), calc((100cqw - 1080px) / 2 + var(--eg-space-6))); margin-top: var(--eg-space-7); } }
.reviews-scroller { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--eg-reviews-gutter); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--eg-reviews-edge), #000 calc(100% - var(--eg-reviews-edge)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--eg-reviews-edge), #000 calc(100% - var(--eg-reviews-edge)), transparent 100%); }
.reviews-scroller::-webkit-scrollbar { display: none; }
.reviews-scroller:focus-visible { outline-offset: -2px; }
/* The mask would hide the ring: draw it on the unmasked wrapper. */
@supports selector(:has(*)) {
  .reviews-scroller:focus-visible { outline: none; }
  .reviews-edges:has(> .reviews-scroller:focus-visible) { outline: var(--eg-focus); outline-offset: -4px; border-radius: var(--eg-radius-card); }
}
.reviews-list { display: flex; gap: var(--eg-space-4); width: max-content; margin: 0; padding: 0 var(--eg-reviews-gutter); list-style: none; align-items: start; } /* phones: cards fit their content (an empty card reads as broken; paper under a short card is fine); the track height stays fixed */
@media (min-width: 720px) { .reviews-list { align-items: stretch; } } /* equal-height cards (shelf pattern) from 720px: each card is as tall as the tallest, so the track height is fixed */
/* One card width per breakpoint for every card (the Apple shelf rhythm), one constant gap, no overlap. The width is explicit (not a percent or a flex-basis): WebKit sizes a
   max-content list from the unwrapped text otherwise. cqw, not %, because the list is max-content. Whole pixels. */
.reviews-item { --eg-review-w: min(84cqw, 22rem); flex: none; width: round(var(--eg-review-w), 1px); min-width: 0; scroll-snap-align: start; display: flex; }
@media (min-width: 720px) { .reviews-item { --eg-review-w: 30rem; } }
.reviews-item[hidden] { display: none; }
.reviews-card { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: flex-start; gap: var(--eg-space-5); margin: 0; padding: var(--eg-space-5); border-radius: var(--eg-radius-card); background: var(--eg-well); }
@media (min-width: 720px) { .reviews-card { padding: var(--eg-space-6); } }
.reviews-card blockquote { margin: 0; padding: 0; border: 0; }
.reviews-card blockquote p { margin: 0; font-size: var(--eg-size-lg); line-height: 1.25; hyphens: none; overflow-wrap: break-word; }
@media (min-width: 720px) { .reviews-card blockquote p { font-size: var(--eg-size-xl); line-height: 1.2; } } /* 21px on phones: at 28px the quote equalled the section heading and inverted the hierarchy */
/* One <p> per chat message (the customer's message boundaries, never a break inside a sentence). No margin between them: the gap between messages is one line rhythm, the same as a wrapped line. */
.reviews-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.reviews-who { font-size: var(--eg-size-sm); line-height: 1.35; }
.reviews-who b { font-weight: var(--eg-weight-strong); }
.reviews-dev { color: var(--eg-fg-muted); }
.reviews-meta { font-size: var(--eg-size-xs); line-height: 1.35; color: var(--eg-fg-muted); }
/* Arrows: in the heading row, on the content column's right edge (the last card's edge), level with the subtitle. Nothing sits under the track. Disabled stays visible. */
.reviews-nav { display: flex; justify-content: flex-end; gap: var(--eg-space-2); margin-left: auto; }
.reviews-nav[hidden] { display: none; }
@media (max-width: 719px) and (hover: none) and (pointer: coarse) { .reviews-nav { display: none; } } /* touch phones: swipe is the control (as on apple.com); keyboard keeps Left/Right/Home/End on the focusable scroller */
.reviews-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--eg-radius-pill); background: color-mix(in srgb, var(--eg-fg) 10%, transparent); color: var(--eg-fg); cursor: pointer; transition: background-color var(--eg-dur-fast) var(--eg-ease-in-out), opacity var(--eg-dur-fast) var(--eg-ease-in-out), transform var(--eg-dur-press) var(--eg-ease-out); }
.reviews-btn:disabled { opacity: 0.35; cursor: default; }
.reviews-btn:not(:disabled):active { background: color-mix(in srgb, var(--eg-fg) 18%, transparent); transform: scale(var(--eg-press-scale)); }
@media (hover: hover) { .reviews-btn:not(:disabled):hover { background: color-mix(in srgb, var(--eg-fg) 16%, transparent); } }
/* Mouse with JS: grab cursor; no text selection while dragging. */
@media (hover: hover) and (pointer: fine) {
  .is-live .reviews-scroller { cursor: grab; }
  .is-live .reviews-scroller.is-drag { cursor: grabbing; -webkit-user-select: none; user-select: none; }
}
/* Reduced transparency or more contrast: no mask fade. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .reviews-scroller { -webkit-mask-image: none; mask-image: none; }
}
/* ===== Content pages moved from the store (Contacto, Nosotros, Términos, Privacidad). Same bands, rhythm and components as the home. ===== */
.page-hero { padding-bottom: var(--eg-space-8); }
.page-hero h1 { font-size: var(--eg-size-xl); line-height: 1.12; }
@media (min-width: 720px) { .page-hero { padding-bottom: var(--eg-space-9); } .page-hero h1 { font-size: var(--eg-size-2xl); } }
@media (min-width: 1040px) { .page-hero h1 { font-size: var(--eg-size-3xl); } }
/* ---------- .eg-more: standalone text link with a chevron (links on their own line or in a link row; not for links inside a sentence) ---------- */
.eg-more {
  display: inline-flex; align-items: center; min-height: 44px; border-radius: 4px;
  font: inherit; font-size: var(--eg-size-md); font-weight: var(--eg-weight-regular); line-height: 1.3;
  color: var(--eg-accent-text); text-decoration: underline 1px; text-underline-offset: 0.25em; text-decoration-color: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: text-decoration-color var(--eg-dur-fast) var(--eg-ease-in-out), opacity var(--eg-dur-fast) var(--eg-ease-out);
}
.eg-more::after { content: "›"; content: "›" / ""; display: inline-block; margin-inline-start: 0.25em; transition: transform var(--eg-dur-fast) var(--eg-ease-in-out); }
.eg-more[hidden] { display: none; }
@media (hover: hover) {
  .eg-more:hover { text-decoration-color: currentColor; }
  .eg-more:hover::after { transform: translateX(2px); }
}
.eg-more:active { opacity: 0.7; transition-duration: var(--eg-dur-press); }
@media (prefers-reduced-motion: reduce) { .eg-more:hover::after { transform: none; } }
@media (prefers-contrast: more) { .eg-more { text-decoration-color: currentColor; } }
@media (forced-colors: active) { .eg-more { color: LinkText; } }
.eg-more--action { display: flex; width: fit-content; padding: 0; border: 0; background: none; cursor: pointer; }
.eg-more--action::after { content: none; }
.eg-more-row { display: flex; flex-wrap: wrap; gap: 0 var(--eg-space-5); margin-top: var(--eg-space-2); }

/* Nosotros: the story as one centred statement */
.band-statement .statement { max-width: 40ch; margin-inline: auto; text-align: center; font-size: var(--eg-size-lg); line-height: 1.3; font-weight: var(--eg-weight-strong); text-wrap: balance; }
.statement-sm { font-size: var(--eg-size-lg); line-height: 1.4; max-width: 36ch; color: var(--eg-fg); }
@media (min-width: 720px) { .band-statement .statement { font-size: var(--eg-size-xl); line-height: 1.25; } .statement-sm { font-size: calc(var(--eg-size-lg) + 2px); } }
@media (min-width: 900px) { .facts.facts-3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--eg-space-6); } }
.facts-3 dt { font-size: var(--eg-size-lg); line-height: 1.25; }
.closing-ask h2 { max-width: 24ch; }

.band-reviews + .closing.closing-ask { padding-top: var(--eg-space-8); }
@media (min-width: 720px) { .band-reviews + .closing.closing-ask { padding-top: var(--eg-space-9); } }

/* Contacto: need-based list (no cards, no icons) */
.split-lg { display: grid; gap: var(--eg-space-6); }
@media (min-width: 960px) {
  .split-lg { grid-template-columns: 5fr 6fr; gap: var(--eg-space-7); align-items: start; }
  .split-lg > h2 { position: sticky; top: 96px; padding-top: var(--eg-space-6); }
}
.topics { max-width: 680px; }
.topics li { padding: var(--eg-space-5) 0; border-top: 1px solid var(--eg-hairline); }
.topics li:last-child { border-bottom: 1px solid var(--eg-hairline); }
.topics h3 { font-size: var(--eg-size-lg); line-height: 1.25; }
.topics p { max-width: 56ch; margin-top: var(--eg-space-2); font-size: var(--eg-size-md); color: var(--eg-fg-muted); }
@media (min-width: 720px) { .topics li { padding: var(--eg-space-6) 0; } }
@media (prefers-contrast: more) { .topics li, .chan-list li { border-color: var(--eg-fg-muted); } }
@media (forced-colors: active) { .topics li, .chan-list li { border-color: CanvasText; } }
/* Contacto: channel rows. One link per row: icon, name above handle, chevron. */
.chan-list { margin-top: var(--eg-space-6); }
.chan-list li { border-top: 1px solid var(--eg-hairline); }
.chan-list li:last-child { border-bottom: 1px solid var(--eg-hairline); }
.chan { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; column-gap: var(--eg-space-4); min-height: 64px; padding: var(--eg-space-4) 0; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform var(--eg-dur-fast) var(--eg-ease-out); }
.chan .ico { width: 24px; height: 24px; color: var(--eg-accent-text); }
.chan-text { display: grid; line-height: 1.3; }
.chan-name { font-size: var(--eg-size-md); font-weight: var(--eg-weight-strong); color: var(--eg-fg); transition: color var(--eg-dur-fast) var(--eg-ease-in-out); }
.chan-text .handle { font-size: var(--eg-size-sm); color: var(--eg-fg-muted); overflow-wrap: anywhere; }
.chan::after { content: "›"; content: "›" / ""; color: var(--eg-fg-muted); font-size: var(--eg-size-lg); line-height: 1; }
@media (hover: hover) { .chan:hover .chan-name { color: var(--eg-accent-text); } }
.chan:active { transform: scale(var(--eg-press-scale-lg)); transition-duration: var(--eg-dur-press); }
.chan:active .chan-name { color: var(--eg-accent-text); }
@media (min-width: 720px) {
  .chan-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--eg-space-7); margin-top: var(--eg-space-7); }
  .chan-list li:nth-last-child(2) { border-bottom: 1px solid var(--eg-hairline); }
}
@media (min-width: 720px) and (prefers-contrast: more) { .chan-list li:nth-last-child(2) { border-color: var(--eg-fg-muted); } }
@media (min-width: 720px) and (forced-colors: active) { .chan-list li:nth-last-child(2) { border-color: CanvasText; } }
@media (forced-colors: active) { .chan .ico { color: CanvasText; } }

/* Legal long-form: "En esta página" index (closed list on a phone, sticky beside the text from 960px) and a 68ch reading column */
.band-legal { padding-top: var(--eg-space-7); }
.wrap.legal { display: grid; gap: var(--eg-space-6); align-items: start; max-width: calc(29em + 2 * var(--eg-space-6)); }
@media (min-width: 960px) { .wrap.legal { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--eg-space-8); max-width: 1080px; } }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; font-weight: var(--eg-weight-strong); border-top: 1px solid var(--eg-hairline); border-bottom: 1px solid var(--eg-hairline); -webkit-tap-highlight-color: transparent; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "›"; content: "›" / ""; color: var(--eg-fg-muted); font-size: var(--eg-size-lg); line-height: 1; transition: transform var(--eg-dur-fast) var(--eg-ease-in-out); }
.toc[open] summary::after { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .toc summary::after { transition: none; }
}
/* Content fade on open (opacity only, so it stays under reduced motion; --eg-dur is 200ms there). */
@keyframes eg-fade { from { opacity: 0; } }
.toc[open] > :not(summary) { animation: eg-fade var(--eg-dur) var(--eg-ease-out); }
.toc ol { list-style: none; margin: 0; padding: var(--eg-space-2) 0 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding-block: 4px; font-size: var(--eg-size-sm); line-height: 1.35; color: var(--eg-fg-muted); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color var(--eg-dur-fast) var(--eg-ease-in-out); }
@media (hover: hover) and (pointer: fine) { .toc a { min-height: 32px; } }
@media (hover: hover) { .toc a:hover { color: var(--eg-fg); } }
.toc a:active { color: var(--eg-fg); }
@media (min-width: 960px) {
  .toc { position: sticky; top: 96px; max-height: calc(100svh - 120px); overflow-y: auto; overscroll-behavior: contain; }
  .toc summary { pointer-events: none; min-height: 0; padding-bottom: var(--eg-space-2); border: 0; font-size: var(--eg-size-sm); }
  .toc summary::after { display: none; }
  .toc ol { padding-top: 0; }
}
@media (prefers-contrast: more) { .toc summary { border-color: var(--eg-fg-muted); } }
.prose { max-width: 29em; line-height: 1.6; }
.prose > * + * { margin-top: var(--eg-space-4); }
.prose p, .prose li { line-height: 1.6; }
.prose .legal-intro { max-width: 25em; font-size: var(--eg-size-lg); line-height: 1.45; }
.prose h2 { margin-top: var(--eg-space-7); font-size: var(--eg-size-lg); line-height: 1.25; max-width: none; letter-spacing: 0; scroll-margin-top: 96px; }
.prose h3 { margin-top: var(--eg-space-6); font-size: var(--eg-size-md); line-height: 1.35; color: var(--eg-fg); scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: var(--eg-space-3); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--eg-space-2); }
.prose li::marker { color: var(--eg-fg-muted); }
.prose a { color: var(--eg-accent-text); text-decoration: underline 1px; text-underline-offset: 0.25em; }
.prose strong { font-weight: var(--eg-weight-strong); }
@media (min-width: 720px) { .prose h2 { margin-top: var(--eg-space-8); font-size: var(--eg-size-xl); line-height: 1.2; } .prose h3 { font-size: var(--eg-size-lg); } .band-legal { padding-top: var(--eg-space-8); } }
/* Print (legal pages): no chrome, black text on white, full width, headings kept with their text. */
@media print {
  .bar, .foot, .toc, .skip, [data-print], .eg-menu-btn, .eg-menu-panel { display: none !important; }
  html, body, .hero, .band, [data-surface="black"] { background: #fff !important; color: #000 !important; --eg-fg: #000; --eg-fg-muted: #333; --eg-accent-text: #000; --eg-bg: #fff; }
  .hero, .page-hero { padding: 0 0 16px; text-align: left; overflow: visible; }
  .hero h1 { margin-inline: 0; max-width: none; font-size: 28px; letter-spacing: 0; }
  .hero .lead { margin: 8px 0 0; max-width: none; }
  .band, .band-legal { padding: 0; border: 0; }
  .wrap, .wrap.legal { display: block; max-width: none; padding-inline: 0; }
  .prose { max-width: none; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose a { color: #000; }
}
.band-reviews + .closing { padding-top: 0; }
@media (min-width: 720px) { .page-hero { padding-bottom: var(--eg-space-8); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band-reviews + .closing.closing-ask { padding-top: var(--eg-space-7); } }
:root[data-theme="dark"] .band-reviews + .closing.closing-ask { padding-top: var(--eg-space-7); }

/* ===== Story (#garantia). One device (iPhone 18 Pro Max Burgundy, Blender frame sequence, assets/devices/turntable/), three steps:
   Originales = back (0 deg), Control de calidad = side (90 deg), Condición = front (180 deg). The figure is decoration (aria-hidden); the steps are a real list.
   Rest layout (no JS, short screens): the poster above the list. Reduced motion: the three key frames side by side above the list, no pin, no rotation.
   Turn layout (.story.is-spin, set by story.js when motion is allowed): the figure pins and the device turns with the scroll (shared/spin.js, canvas).
   One framing rule at every width: the device box is --spin-h high = 58 % of the screen below the bar (at most 600px), centred on one x.
   Steps keep full opacity and never fade. Under 1024px each step text sticks on the reading line just below the device (CSS sticky) for
   --story-step minus its own height while the device rests on that step's angle; then the next step pushes it under the device panel while the
   device turns (--story-move plus the text height). From 1024px the steps scroll beside the device, one per --story-step. ===== */
.story-fig { display: flex; align-items: center; justify-content: center; gap: var(--eg-space-3); height: 320px; margin: var(--eg-space-5) 0 0; }
.story-key { display: none; }
.story-steps { margin: var(--eg-space-5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--eg-hairline); }
.story-steps > li { padding: var(--eg-space-4) 0; border-bottom: 1px solid var(--eg-hairline); }
.story-txt { display: grid; gap: var(--eg-space-1); }
.story-txt h4 { margin: 0; font-size: inherit; font-weight: var(--eg-weight-strong); line-height: inherit; }
.story-txt p { margin: 0; color: var(--eg-fg-muted); max-width: 60ch; }
.story-rest { margin-top: 0; border-top: 0; }
@media (min-width: 720px) {
  .story-fig { height: 400px; margin-top: var(--eg-space-6); }
  .story-steps > li { padding: var(--eg-space-5) 0; }
  .story-rest { margin-top: 0; grid-template-columns: 1fr; }
}
@media (min-width: 900px) { .story-rest { grid-template-columns: repeat(3, 1fr); } }
/* Reduced motion under 1024px: back, side and front (frames 000, 060, 120) as three still figures, in step order. */
@media (prefers-reduced-motion: reduce) {
  .story-fig { height: auto; }
  .story-fig > .story-spin, .story-key { display: block; flex: 0 1 auto; width: min(30%, 160px); height: auto; aspect-ratio: 400 / 800; }
  .story-fig > .story-spin > picture, .story-key img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .story-fig .eg-spin__floor { display: none; }
}

/* Turn layout. Phone: rest 54svh minus the text, turn 20svh plus the text. Tablet: 36svh and 16svh (the free band under the device is taller). */
.story.is-spin { --story-top: 72px; --story-step: 54svh; --story-move: 20svh; --spin-h: min(calc((100svh - var(--story-top)) * 0.58), 600px); --story-gap: var(--eg-space-5);
  position: relative; display: flow-root; } /* flow-root: the last step's negative margin shortens the story instead of escaping it */
.story.is-spin .story-fig { position: sticky; top: var(--story-top); z-index: 1; display: block; height: var(--spin-h); margin: var(--story-gap) 0 0;
  background: var(--eg-bg); box-shadow: 0 24px 16px -8px var(--eg-bg); } /* opaque: a step that has been read scrolls behind the device, never across it; the shadow in the page colour feathers the edge */
.story.is-spin .story-key { display: none; }
.story.is-spin .story-steps { margin-top: var(--story-gap); border-top: 0; }
.story.is-spin .story-steps > li { min-height: var(--story-step); padding: 0 0 var(--story-move); border-bottom: 0; }
.story.is-spin .story-txt { position: sticky; top: calc(var(--story-top) + var(--spin-h) + var(--story-gap)); }
  .story.is-spin .story-txt p { color: var(--eg-fg); }
  .story.is-spin .story-txt { opacity: 0.62; transition: opacity var(--eg-dur) var(--eg-ease-in-out); }
  .story.is-spin .is-active > .story-txt { opacity: 1; }
/* The pin ends when the last step's rest ends: figure and step leave together, the step fully shown.
   story.js sets --story-tail (the last text's height plus the gap); the list overhangs the story by that much and the story's bottom margin gives it back. */
.story.is-spin .story-steps > li:last-child { padding-bottom: 0; margin-bottom: calc(-1 * var(--story-tail, 0px)); }
.story.is-spin .story-txt h4 { font-size: var(--eg-size-lg); line-height: 1.25; }
.story.is-spin { margin-bottom: calc(var(--story-tail, 0px) + var(--eg-space-6)); }
.story.is-spin + .story-rest { margin-top: var(--eg-space-6); }
@media (min-width: 720px) { .story.is-spin { --story-step: 36svh; --story-move: 16svh; } }
@media (min-width: 1024px) {
  .story.is-spin { --story-top: 96px; --story-step: 42svh; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--eg-space-8); margin-top: var(--eg-space-5); margin-bottom: 0; }
  /* Centred on the screen below the bar; story.js rounds the offset to a whole pixel. */
  .story.is-spin .story-fig { top: max(var(--story-top), calc((100svh - var(--spin-h)) / 2)); align-self: start; margin: 0; background: none; box-shadow: none; }
  /* The first step is centred on the device when the pin starts and the last one when it ends (plus a short rest). */
  .story.is-spin .story-steps { margin: 0; padding: max(0px, calc(var(--spin-h) / 2 - var(--story-step) / 2)) 0 max(0px, calc(var(--spin-h) / 2 - var(--story-step) * 0.3)); }
  .story.is-spin .story-steps > li, .story.is-spin .story-steps > li:last-child { position: relative; display: grid; align-content: center; min-height: var(--story-step); margin-bottom: 0; padding: 0 0 0 var(--eg-space-5); }
  .story.is-spin .story-txt { position: static; }
  .story.is-spin .story-txt h4 { font-size: var(--eg-size-xl); line-height: 1.2; }
  .story.is-spin .story-txt p { font-size: var(--eg-size-lg); line-height: 1.4; }
  /* The step at the device's rest angle carries the 2px marker (a state from story.js, not a scrub). */
  .story.is-spin .story-steps > li::before { content: ""; position: absolute; left: 0; top: calc(50% - var(--mark-h, 4.5em) / 2); height: var(--mark-h, 4.5em); width: 2px; border-radius: 2px; background: var(--eg-accent-text);
    opacity: 0; transition: opacity var(--eg-dur) var(--eg-ease-in-out); }
  .story.is-spin .story-steps > li.is-active::before { opacity: 1; }
  /* The marker fades (never scale: WebKit scroll anchoring reads a scaling marker as a layout change and moves the page 6 to 27px when the step
     changes after the scroll has stopped). The list is also taken out of anchor selection. */
  .story.is-spin .story-steps { overflow-anchor: none; }
  /* The step of the scroll position (story.js, spin.onbeat) is at full ink; the other steps sit at 62 % (the --eg-fg-muted level: 5.45:1 on paper,
     7.16:1 on black). Opacity only. The marker carries the same state without colour or contrast. */
  .story.is-spin + .story-rest { margin-top: var(--eg-space-7); border-top: 1px solid var(--eg-hairline); }
}
@media (prefers-contrast: more) { .story-steps > li::before { background: currentColor; } .story.is-spin .story-txt { opacity: 1; } }
/* Reduced motion from 1024px (.is-still, story.js): the sticky figure holds one rest frame per step (crossfade in shared/spin.js); nothing turns. */
.story.is-still .story-fig > .story-spin { width: auto; height: 100%; flex: none; }

/* ===== Closing (#contacto), copy-deck row 90: two chevron links under the CTA, centred. ===== */
.closing .eg-more-row { justify-content: center; margin-top: var(--eg-space-5); }

.story:has(.is-pending) .story-txt { transition: none; }
@media (prefers-reduced-motion: no-preference) and (min-height: 500px) {
  html.eg-motion .story-spin:not(.is-drawn) > picture { opacity: 0; }
}
