@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }

/* =========================================================
   SAMPAUL AGENCY
   Pieza central: el chip. El fondo cambia de claro a oscuro con el scroll.
   Display: Space Grotesk 700 (mayúsculas) + Instrument Serif cursiva.
   Texto: Geist. Paleta: verde bosque y beige arena (sector inmobiliario).
   ========================================================= */

@property --bg      { syntax: '<color>'; inherits: true; initial-value: #eee7da; }
@property --ink     { syntax: '<color>'; inherits: true; initial-value: #13201a; }
@property --text    { syntax: '<color>'; inherits: true; initial-value: #2f3b33; }
@property --muted   { syntax: '<color>'; inherits: true; initial-value: #5a6358; }
@property --line    { syntax: '<color>'; inherits: true; initial-value: rgba(19, 32, 26, 0.12); }
@property --line-2  { syntax: '<color>'; inherits: true; initial-value: rgba(19, 32, 26, 0.24); }
@property --accent  { syntax: '<color>'; inherits: true; initial-value: #2d6a4f; }
@property --accent-ink { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --card    { syntax: '<color>'; inherits: true; initial-value: #ffffff; }

:root {
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --max: 1360px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 76px;
  --section-gap: clamp(104px, 13vw, 180px);

  /* Fixed dark palette for mockups that stay dark in any theme */
  --night: #0f2319;
  --night-2: #173126;
  --night-line: rgba(232, 220, 192, 0.14);
  --night-ink: #f0e9da;
  --night-muted: #a49d8b;
  --ice: #d9c8a3;
}

/* Theme tokens: global on <html> (switched by scroll), or per section without JS */
html[data-theme="light"], html:not(.js) [data-theme="light"] {
  --bg: #eee7da; --ink: #13201a; --text: #2f3b33; --muted: #5a6358;
  --line: rgba(19, 32, 26, 0.12); --line-2: rgba(19, 32, 26, 0.24);
  --accent: #2d6a4f; --accent-ink: #ffffff; --card: #ffffff;
}
html[data-theme="dark"], html:not(.js) [data-theme="dark"] {
  --bg: #0f2319; --ink: #f0e9da; --text: #d4cdbd; --muted: #a49d8b;
  --line: rgba(232, 220, 192, 0.12); --line-2: rgba(232, 220, 192, 0.26);
  --accent: #8cc5a2; --accent-ink: #0f2319; --card: #173126;
}
html:not(.js) [data-theme] { background: var(--bg); color: var(--text); }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  transition: --bg 600ms ease, --ink 600ms ease, --text 600ms ease, --muted 600ms ease,
              --line 600ms ease, --line-2 600ms ease, --accent 600ms ease, --accent-ink 600ms ease, --card 600ms ease;
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
@media (pointer: fine) { html { overscroll-behavior: none; } }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }

.icon { width: 20px; height: 20px; flex: none; }

/* Mixed display type: grotesk caps + serif italic accents */
.mix {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.04em; line-height: 0.9; color: var(--ink);
  text-wrap: balance;
}
.mix em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.12em; line-height: 0.8; letter-spacing: -0.015em;
  color: var(--accent);
}

.grain {
  position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Loader ---------- */
.loader { display: none; }
.motion:not(.booted) .loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-content: center; justify-items: center; gap: 28px;
  background: var(--night);
}
.loader__chip { width: 132px; height: 132px; overflow: visible; }
.loader__meta {
  display: flex; gap: 24px; min-width: 180px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 13px; color: var(--night-muted);
}
.loader__count { color: var(--night-ink); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms ease, box-shadow 200ms ease, color 200ms ease, filter 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 24px; font-size: 16px; }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { filter: brightness(1.1); }
  .btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
}
[data-magnetic] { will-change: transform; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: var(--header-h); padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ink);
  transition: transform 360ms var(--ease-out);
}
.header.is-hidden { transform: translateY(-110%); }
.logo { justify-self: start; display: grid; text-decoration: none; color: var(--accent); line-height: 0.86; }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.logo__word--sub { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 19px; letter-spacing: 0; text-transform: lowercase; color: var(--accent); opacity: 0.82; }
.header__mark img { width: 36px; height: 36px; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.menu-btn {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 200ms ease;
}
.menu-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.menu-btn span {
  position: absolute; right: 12px; height: 1.6px; border-radius: 2px; background: var(--ink);
  transition: transform 280ms var(--ease-out), width 280ms var(--ease-out);
}
.menu-btn span:first-child { top: 17px; width: 20px; }
.menu-btn span:last-child { top: 25px; width: 12px; }
.menu-open .menu-btn span { background: var(--night-ink); }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { width: 20px; transform: translateY(-4px) rotate(-45deg); }
.menu-open .menu-btn { box-shadow: inset 0 0 0 1px var(--night-line); }
.menu-open .header { color: var(--night-ink); }
.menu-open .logo, .menu-open .logo__word--sub { color: #8cc5a2; }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 70;
  display: grid; grid-template-rows: 1fr auto; gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--night); color: var(--night-ink);
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__nav { align-self: center; display: grid; gap: 4px; }
.menu__nav a {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95;
  font-size: clamp(40px, min(8.5vw, 11vh), 120px); text-decoration: none; color: var(--night-ink);
  display: inline-flex; align-items: baseline; gap: 0.25em; width: fit-content;
  transition: color 200ms ease, transform 300ms var(--ease-out);
}
.menu__nav a em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: #8cc5a2; font-size: 0.9em; }
@media (hover: hover) and (pointer: fine) { .menu__nav a:hover { transform: translateX(16px); } }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.menu__foot .btn--accent { background: #8cc5a2; color: var(--night); }
.menu__mail { color: var(--night-muted); text-decoration: none; overflow-wrap: anywhere; }
.menu__mail:hover { color: var(--night-ink); }

/* ---------- Wave rings (generated) ---------- */
.waves {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(75% 70% at 50% 45%, #000 30%, transparent 85%);
}
.waves svg { position: absolute; left: 50%; top: 46%; width: 1800px; height: 1800px; transform: translate(-50%, -50%); }
.waves path { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ================= HERO ================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto; align-content: start;
  padding-top: var(--header-h);
}
.hero__poster { position: relative; grid-row: 1; height: clamp(340px, 64vh, 760px); z-index: 0; pointer-events: none; will-change: transform; }
/* Hidden until the intro reveals them (prevents a flash before GSAP loads) */
.motion .hero__word span, .motion .hero__chip, .motion [data-hero], .motion .hero__title { visibility: hidden; }
.hero__word {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: min(23vw, 34vh); line-height: 0.8; letter-spacing: -0.065em;
  color: var(--ink); white-space: nowrap; user-select: none;
}
.hero__word span { display: inline-block; will-change: transform; }
.hero__chip {
  --w: min(60vh, 56vw, 700px);
  position: absolute; width: var(--w); height: var(--w);
  left: calc(50% - var(--w) / 2); top: calc(52% - var(--w) / 2);
  will-change: transform;
}
.hero__chip img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 50px 50px rgba(19, 32, 26, 0.35)); }

.hero__bottom {
  grid-row: 2; position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; align-self: end; gap: 32px;
}
.hero__title {
  max-width: 19ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 46px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance;
}
.hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); font-size: 1.1em; }
.hero__title .line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__lead { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: 16.5px; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.secondary-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px;
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--accent); text-underline-offset: 5px;
}
.secondary-link:hover { color: var(--accent); }

.callcard {
  display: grid; gap: 2px; width: 188px; padding: 14px;
  border-radius: 10px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.callcard:active { transform: scale(0.98); }
.callcard:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.callcard__label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.callcard__time { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 0.9; letter-spacing: -0.05em; margin-top: 10px; }
.callcard__time small { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; color: var(--accent); margin-left: 4px; }
.callcard__sub { font-size: 13px; color: var(--muted); }
.callcard__go {
  display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px;
  font-size: 13.5px; font-weight: 500; box-shadow: inset 0 1px 0 var(--line);
}
.callcard__go .icon { width: 16px; height: 16px; color: var(--accent); }

.hero__foot {
  grid-row: 3; position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.scroll-cue i { position: relative; width: 1px; height: 32px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: var(--accent);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-12px); } 100% { transform: translateY(32px); } }

.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--muted);
  transition: color 200ms ease, box-shadow 200ms ease;
}
.motion-toggle .icon { width: 16px; height: 16px; }
.motion-toggle:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
html:not(.motion) .motion-toggle { display: none; }

/* ================= BAND (marquee + trace) ================= */
.band { position: relative; overflow: hidden; padding: clamp(80px, 12vh, 140px) 0; }
.band__rows { display: grid; gap: 1vw; }
.band__row { display: flex; width: max-content; will-change: transform; }
.band__track {
  display: flex; align-items: center; gap: 0.32em; padding-right: 0.32em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 11vw, 190px); line-height: 0.9; letter-spacing: -0.05em; white-space: nowrap;
  color: var(--ink);
}
.band__track em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.015em; color: var(--accent); font-size: 1.05em; }
.band__track i { width: 0.22em; height: 0.22em; flex: none; background: var(--accent); transform: rotate(45deg); }
.band__row--alt .band__track span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.band__trace { position: absolute; left: 0; top: 50%; width: 100%; height: 30vw; max-height: 420px; transform: translateY(-50%); color: var(--accent); pointer-events: none; overflow: visible; }
.band__trace path { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 60%, transparent)); }
.band__chip {
  position: absolute; left: 50%; top: 50%; width: clamp(140px, 16vw, 230px);
  transform: translate(-50%, -50%); pointer-events: none;
}
.band__chip img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }

/* ================= MANIFESTO ================= */
.manifesto { max-width: var(--max); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; text-align: center; }
.manifesto__big { font-size: clamp(40px, 6.6vw, 112px); }
.manifesto__big .word { display: inline-block; }
.manifesto__small { max-width: 46ch; margin: 48px auto 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); text-wrap: pretty; }

/* ================= SECTIONS ================= */
.section { max-width: var(--max); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: 64px; }
.h2 { font-size: clamp(44px, 6.6vw, 108px); }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 48ch; text-wrap: pretty; }
.lead a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }

.tag-example {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--night-muted);
  box-shadow: inset 0 0 0 1px var(--night-line);
}

/* ---------- Services (typographic rows) ---------- */
.svc { box-shadow: inset 0 1px 0 var(--line-2); }
.svc__row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: center;
  padding: clamp(28px, 3.4vw, 44px) 0;
  box-shadow: inset 0 -1px 0 var(--line-2);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.svc__row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
.svc__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.22em;
  font-size: clamp(42px, 6.4vw, 108px);
  transition: transform 450ms var(--ease-out);
}
.svc__title em { font-size: 0.82em; }
.svc__info p { color: var(--text); }
.svc__list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc__list li { padding: 4px 10px; border-radius: 6px; font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .svc__row:hover::after { transform: scaleX(1); }
  .svc__row:hover .svc__title { transform: translateX(20px); }
}

/* Cursor-follow preview (fine pointers) */
.preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 300px; opacity: 0; visibility: hidden;
}
.preview__inner {
  position: relative; padding: 22px; border-radius: 14px;
  background: var(--night-2); color: var(--night-ink);
  box-shadow: inset 0 0 0 1px var(--night-line), 0 30px 60px -20px rgba(6, 12, 9, 0.6);
  transform: rotate(-3deg);
}
.preview .tag-example { position: absolute; top: 12px; right: 12px; }
.pv { display: none; }
.pv.is-active { display: block; }
@media (hover: none), (pointer: coarse) { .preview { display: none; } }

.vflow { position: relative; display: grid; gap: 2px; padding-top: 14px; }
.vflow::before { content: ""; position: absolute; left: 5px; top: 26px; bottom: 22px; width: 1px; background: var(--night-line); }
.vflow li { position: relative; display: flex; gap: 14px; padding: 5px 0; }
.vflow li > span {
  flex: none; width: 11px; height: 11px; margin-top: 6px; border-radius: 999px;
  background: var(--night); box-shadow: inset 0 0 0 1.5px rgba(236, 226, 204, 0.35);
}
.vflow li:last-child > span { background: #8cc5a2; box-shadow: 0 0 0 4px rgba(140, 197, 162, 0.2); }
.vflow strong { display: block; font-size: 14px; font-weight: 500; }
.vflow small { display: block; font-size: 12.5px; color: var(--night-muted); }
.vpanel { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 30px; }
.vpanel i { flex: 1; height: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8cc5a2, rgba(140, 197, 162, 0.15)); transform-origin: bottom; transform: scaleY(var(--h)); }
.vweb { display: grid; gap: 10px; padding-top: 24px; }
.vweb__bar { display: flex; gap: 5px; margin-bottom: 6px; }
.vweb__bar i { width: 8px; height: 8px; border-radius: 999px; background: var(--night-line); }
.vweb b { display: block; height: 14px; border-radius: 4px; background: rgba(236, 226, 204, 0.16); }
.vweb b:first-of-type { width: 82%; height: 22px; background: rgba(236, 226, 204, 0.34); }
.vweb b:last-of-type { width: 58%; }
.vweb span { display: block; width: 104px; height: 30px; margin-top: 8px; border-radius: 6px; background: #8cc5a2; }
.vbrand { display: flex; align-items: center; gap: 18px; padding-top: 22px; }
.vbrand__aa { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 12px; font-family: var(--font-serif); font-style: italic; font-size: 52px; box-shadow: inset 0 0 0 1px var(--night-line); }
.vbrand__sw { display: grid; grid-template-columns: repeat(2, 36px); gap: 6px; }
.vbrand__sw i { width: 36px; height: 36px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px var(--night-line); }

/* ================= CONNECT ================= */
.connect { position: relative; margin-top: var(--section-gap); }
.connect__pin { min-height: 100dvh; display: flex; align-items: center; }
.connect__grid {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
}
.connect__copy .h2 { font-size: clamp(40px, 5vw, 84px); }
.connect__copy .lead { margin-top: 24px; }
.steps { margin-top: 32px; display: grid; gap: 2px; }
.steps li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0 11px 16px; font-size: 17px; color: var(--muted);
  box-shadow: inset 1px 0 0 var(--line-2);
  transition: color 300ms ease, box-shadow 300ms ease;
}
.steps li span { font-family: var(--font-mono); font-size: 13px; }
.steps li.is-active { color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.steps li.is-active span { color: var(--accent); }
.connect__note { margin-top: 24px; font-size: 13.5px; color: var(--muted); }

.board__svg { width: 100%; height: auto; overflow: visible; }
.node rect { fill: var(--night-2); stroke: rgba(232, 220, 192, 0.16); stroke-width: 1.2; transition: stroke 300ms ease; }
.node text { fill: #d4cdbd; font-family: var(--font-sans); font-size: 14px; text-anchor: middle; }
.node.is-on rect { stroke: #8cc5a2; }
.chip__die { transition: stroke-opacity 400ms ease; }
.connect.is-live .chip__die { stroke-opacity: 0.9; }
.pulses path { stroke-dasharray: 8 104; stroke-dashoffset: 8; opacity: 0; }
.is-live .pulses path { opacity: 0.95; animation: pulse 3.6s linear infinite; animation-delay: var(--d); }
@keyframes pulse { from { stroke-dashoffset: 8; } to { stroke-dashoffset: -104; } }
.board__list { display: none; }

.examples { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.examples__label { font-size: 14px; color: var(--muted); padding-bottom: 16px; box-shadow: inset 0 -1px 0 var(--line-2); }
.examples__list li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 48px; align-items: baseline;
  padding: 24px 0; box-shadow: inset 0 -1px 0 var(--line);
}
.examples__list h2 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
.examples__list p { color: var(--muted); }

/* ================= PROCESS (sticky stack) ================= */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.process__head { position: sticky; top: calc(var(--header-h) + 40px); }
.process__head .h2 { font-size: clamp(44px, 5.4vw, 92px); }
.process__head .lead { margin-top: 24px; }
.stack { display: grid; gap: 20px; }
.stack__card {
  position: sticky; top: calc(var(--header-h) + 40px + var(--i) * 20px);
  display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-content: start;
  min-height: 320px; padding: clamp(28px, 3.4vw, 44px);
  border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 -24px 48px -28px rgba(19, 32, 26, 0.35);
  transform-origin: center top;
}
.stack__num { grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); }
.stack__card h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.035em; line-height: 1; color: var(--ink); align-self: end; }
.stack__card p { max-width: 44ch; color: var(--muted); font-size: 17.5px; }
.stack__icon { position: absolute; right: 32px; top: 32px; width: 28px; height: 28px; color: var(--line-2); }

/* ================= STUDIO ================= */
.studio { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; align-items: stretch; }
.browser {
  --brand: #2d6a4f;
  border-radius: 14px; overflow: hidden; background: var(--night-2); color: var(--night-ink);
  box-shadow: inset 0 0 0 1px var(--night-line), 0 40px 80px -30px rgba(19, 32, 26, 0.5);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; box-shadow: inset 0 -1px 0 var(--night-line); }
.browser__bar > span:not(.tag-example) { width: 10px; height: 10px; border-radius: 999px; background: rgba(226, 216, 194, 0.16); }
.browser__url { margin: 0 auto; padding: 4px 14px; border-radius: 6px; font-size: 12.5px; color: var(--night-muted); background: rgba(226, 216, 194, 0.06); }
.browser__body {
  min-height: 380px; padding: 32px 40px 48px;
  background: radial-gradient(ellipse 70% 80% at 90% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%);
  transition: background 500ms ease;
}
.demo-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 64px; }
.demo-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.demo-logo__dot { width: 14px; height: 14px; border-radius: 4px; background: var(--brand); transition: background-color 400ms ease; }
.demo-links { display: flex; gap: 10px; }
.demo-links i { width: 40px; height: 6px; border-radius: 4px; background: rgba(226, 216, 194, 0.14); }
.demo-copy { transition: opacity 220ms ease, filter 220ms ease, transform 220ms var(--ease-out); }
.demo-copy.is-swapping { opacity: 0; filter: blur(4px); transform: translateY(4px); }
.demo-title { max-width: 18ch; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; color: #fff; font-weight: 500; }
.demo-text { max-width: 42ch; margin-top: 14px; color: #d4cdbd; }
.demo-btn { display: inline-block; margin-top: 28px; padding: 11px 20px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; transition: background-color 400ms ease; }
.browser[data-font="modern"] .demo-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }
.browser[data-font="classic"] .demo-title { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(32px, 3.6vw, 52px); }
.browser[data-font="tech"] .demo-title { font-family: var(--font-mono); font-weight: 400; letter-spacing: -0.03em; font-size: clamp(24px, 2.6vw, 34px); }

.controls { display: grid; gap: 16px; align-content: start; }
.control { padding: 20px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.control legend { float: left; width: 100%; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.swatch-picker { display: flex; gap: 10px; clear: both; }
.swatch-picker button {
  width: 44px; height: 44px; border-radius: 10px; border: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px var(--line);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.swatch-picker button:active { transform: scale(0.94); }
.swatch-picker button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; clear: both; box-shadow: inset 0 0 0 1px var(--line); }
.seg button {
  flex: 1; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }

/* ================= ABOUT ================= */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__card-wrap { perspective: 900px; }
.about__card {
  position: relative; overflow: hidden;
  display: grid; justify-items: start; align-content: end; gap: 6px;
  aspect-ratio: 4 / 5; padding: 32px; border-radius: 20px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(140, 197, 162, 0.22), transparent 60%),
    linear-gradient(180deg, #182920, #0e1712);
  color: var(--night-ink);
  box-shadow: inset 0 0 0 1px var(--night-line), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d; will-change: transform;
}
.about__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(236, 226, 204, 0.14), transparent 50%);
}
.about__card-wrap:hover .about__glare { opacity: 1; }
.avatar {
  position: absolute; top: 32px; left: 32px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(96px, 12vw, 168px); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(236, 226, 204, 0.5);
}
.about__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.035em; line-height: 1; }
.about__role { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: #a8d5b8; }
.about__mail {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--night-ink);
  box-shadow: inset 0 0 0 1px var(--night-line); max-width: 100%; overflow-wrap: anywhere;
  transition: box-shadow 200ms ease;
}
.about__mail:hover { box-shadow: inset 0 0 0 1px var(--night-ink); }
.about__copy .h2 { font-size: clamp(44px, 5.6vw, 96px); }
.about__copy .lead { margin-top: 24px; }
.principles { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.principles div { padding-top: 18px; box-shadow: inset 0 1px 0 var(--line-2); }
.principles dt { font-weight: 500; font-size: 17px; color: var(--ink); }
.principles dd { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* ================= FAQ ================= */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__head .h2 { font-size: clamp(44px, 5.4vw, 92px); }
.faq__head .lead { margin-top: 24px; }
.faq { box-shadow: inset 0 1px 0 var(--line-2); }
.faq details { box-shadow: inset 0 -1px 0 var(--line-2); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 28px 56px 28px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.6px; background: var(--ink);
  transition: transform 240ms var(--ease-out), background-color 200ms ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details[open] summary::before { background: var(--accent); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 48px 28px 0; color: var(--muted); max-width: 60ch; }

/* ================= FINAL ================= */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: var(--section-gap);
  min-height: 100dvh; padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  display: grid; place-content: center; justify-items: center; text-align: center;
}
.final .waves { z-index: -1; }
.final__chip { width: clamp(220px, 26vw, 380px); margin-bottom: -2vw; will-change: transform; }
.final__chip img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.7)); }
.final__title { font-size: clamp(52px, 9vw, 160px); max-width: 12ch; }
.final .lead { margin: 28px auto 0; }
.final .hero__ctas { justify-content: center; margin-top: 32px; }

/* ================= FOOTER ================= */
.footer { overflow: hidden; box-shadow: inset 0 1px 0 var(--line); }
.footer__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--muted);
}
.footer__inner a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.footer__inner a:hover { color: var(--ink); }
.footer__giant {
  pointer-events: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 25vw; line-height: 0.76; letter-spacing: -0.065em; text-align: center;
  margin-bottom: -2.4vw; user-select: none; white-space: nowrap;
  pointer-events: none; /* decorativa: no debe tapar los enlaces del pie */
  color: var(--accent);
}
.footer__giant span { display: inline-block; }

/* ================= PAUSED ================= */
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .connect__grid { grid-template-columns: 1fr; }
  .process, .faq-wrap { grid-template-columns: 1fr; }
  .process__head, .faq__head { position: static; }
  .studio { grid-template-columns: 1fr; }
  .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc__row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hide-sm { display: none; }
  .section__head { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__card-wrap { max-width: 420px; }
  .examples__list li { grid-template-columns: 1fr; }
  /* Poster stacks above the copy so the chip never covers the headline */
  .hero__poster { height: min(56vh, 480px); }
  .hero__chip { --w: min(76vw, 46vh); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__mark { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .hero__bottom { grid-template-columns: 1fr; }
  .callcard { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__foot .motion-toggle span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  .band__trace { height: 60vw; }
  .board__svg .nodes { display: none; }
  .board__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .board__list li { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

  .stack__card { min-height: 0; grid-template-columns: 1fr; }
  .stack__num { grid-row: auto; font-size: 44px; }
  .stack__icon { right: 24px; top: 28px; }
  .controls { grid-template-columns: 1fr; }
  .browser__body { padding: 24px 20px 32px; min-height: 0; }
  .browser__url { display: none; }
  .browser__bar .tag-example { margin-left: auto; }
  .demo-nav { margin-bottom: 36px; }
  .principles { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .btn, .header, .demo-copy, .svc__title, .svc__row::after, .menu__nav a { transition-property: opacity, background-color, color, box-shadow !important; }
  .pulses { display: none; }
}


/* =========================================================
   SITIO MULTIPÁGINA (añadido sobre la versión de una página)
   ========================================================= */

/* ---------- Transición entre páginas (progresiva: Chrome/Safari recientes) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }
.header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Contenido que entra con scroll (JS lo anima; sin JS o con reduced-motion se ve siempre) */
.motion [data-reveal] { opacity: 0; }

/* ---------- Cabecera con navegación visible ---------- */
.header__actions { grid-column: 3; }
.header__nav { display: none; justify-self: center; gap: 2px; }
.header__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 8px;
  transition: color 200ms ease;
}
.header__nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out);
}
.header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--ink); }
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1081px) {
  .header__nav { display: flex; }
  .menu-btn { display: none; }
  .menu { display: none !important; }
}
.menu__nav a[aria-current="page"] { color: #8cc5a2; }

/* ---------- Pie con mapa del sitio ---------- */
.footer__nav {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 0;
  display: flex; flex-wrap: wrap; gap: 0 28px;
}
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color 200ms ease;
}
.footer__nav a:hover, .footer__nav a[aria-current="page"] { color: var(--ink); }
.footer__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 12px 24px; max-width: var(--max);
  margin: 18px auto 0; padding: 0 var(--gutter); font-size: 13px;
}
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 1120px; margin: 0 auto; padding-top: clamp(130px, 16vw, 210px); }
.legal__head { max-width: 880px; margin-bottom: clamp(60px, 8vw, 100px); }
.legal__head .lead { max-width: 680px; }
.legal__body { max-width: 820px; }
.legal__body section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal__body h2 { margin: 0 0 12px; color: var(--ink); font: 600 clamp(20px, 2.3vw, 28px)/1.2 var(--font-display); }
.legal__body p, .legal__body li { max-width: 75ch; }
.legal__body ul { margin: 14px 0 0; padding-left: 1.25em; }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.legal__body code { padding: .12em .35em; border: 1px solid var(--line); border-radius: 4px; font-family: var(--font-mono); font-size: .88em; }
.legal__updated { margin-top: 36px; color: var(--muted); font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Enlace al spot (hero) ---------- */
.spot-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.spot-link .icon { width: 13px; height: 13px; color: var(--accent); }
.spot-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .spot-link:hover { box-shadow: inset 0 0 0 1px var(--ink); } }

/* ---------- Servicios en la home: filas que enlazan ---------- */
.svc__row--link { text-decoration: none; color: inherit; }
.svc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--ink); }
.svc__more .icon { width: 16px; height: 16px; color: var(--accent); transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .svc__row--link:hover .svc__more .icon { transform: translateX(5px); } }
.section__more { margin-top: 40px; }
/* ---------- ¿Te suena esto? (dolores del negocio, con sus palabras) ---------- */
.pains { box-shadow: inset 0 1px 0 var(--line-2); }
.pain { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px clamp(28px, 5vw, 72px); align-items: start; padding: clamp(32px, 4vw, 56px) 0; box-shadow: inset 0 -1px 0 var(--line-2); }
.pain__title { font-size: clamp(34px, 4.6vw, 76px); }
.pain__title em { font-size: 0.82em; }
.pain__quotes { display: grid; gap: 12px; }
.pain__quotes li { font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; color: var(--ink); text-wrap: pretty; }
.pain__fix { margin-top: 22px; max-width: 52ch; color: var(--text); text-wrap: pretty; }
.pain__fix strong { color: var(--ink); }
.pain .svc__more { margin-top: 16px; }
@media (max-width: 760px) { .pain { grid-template-columns: 1fr; } }


/* ---------- Índice de páginas (home) ---------- */
/* Portfolio: webs de muestra */
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(24px, 3vw, 48px); }
.demos--tres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo.demo--real { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.demo.demo--real .demo__body { padding-top: 0; }
.demo__list code { font-family: var(--font-mono); font-size: 0.92em; }
.demo { display: flex; flex-direction: column; }
.demo__shot { position: relative; display: block; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.demo__shot > img:first-child { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 500ms var(--ease-out); }
.demo__shot:hover > img:first-child { transform: scale(1.02); }
.demo__phone { position: absolute; right: 5%; bottom: -10%; width: 23%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--card); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line); }
.demo__body { display: flex; flex-direction: column; gap: 14px; padding-top: clamp(48px, 6vw, 80px); }
.demo__title { font-size: clamp(34px, 3.6vw, 56px); }
.demo__name { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.demo__list { display: grid; gap: 8px; color: var(--text); max-width: 46ch; text-wrap: pretty; }
.demo__list li { padding-left: 18px; position: relative; }
.demo__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--accent); }
.demo .btn { align-self: flex-start; margin-top: 8px; }
.portfolio__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .demo.demo--real { grid-template-columns: 1fr; } .demo.demo--real .demo__body { padding-top: clamp(32px, 6vw, 56px); } }
@media (max-width: 760px) { .demos { grid-template-columns: 1fr; gap: 72px; } .demo__phone { width: 28%; } }

.routes { box-shadow: inset 0 1px 0 var(--line-2); }
.route {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 7fr) minmax(0, 5fr) auto;
  gap: 8px 40px; align-items: center; padding: clamp(24px, 3vw, 40px) 0;
  box-shadow: inset 0 -1px 0 var(--line-2); text-decoration: none; color: inherit;
}
.route::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out);
}
.route__n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.route__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.22em; font-size: clamp(40px, 5.6vw, 92px); transition: transform 450ms var(--ease-out); }
.route__t em { font-size: 0.82em; }
.route__d { color: var(--muted); }
.route__go { width: 28px; height: 28px; color: var(--ink); transition: transform 300ms var(--ease-out), color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .route:hover::after { transform: scaleX(1); }
  .route:hover .route__t { transform: translateX(16px); }
  .route:hover .route__go { transform: translateX(8px); color: var(--accent); }
}

/* ---------- Chips de navegación dentro de una página ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 48px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms ease, color 200ms ease;
}
.chips a:hover { background: var(--ink); color: var(--bg); }
.chips--center { justify-content: center; margin: 32px 0 0; }

/* ---------- Siguiente página + llamada ---------- */
.nextup {
  max-width: var(--max); margin: var(--section-gap) auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 48px; align-items: end;
}
.nextup__link {
  position: relative; display: grid; gap: 12px; padding: 32px 72px 32px 0; text-decoration: none; color: inherit;
  box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2);
}
.nextup__kicker { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.nextup__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.22em; font-size: clamp(44px, 7.4vw, 120px); transition: transform 450ms var(--ease-out); }
.nextup__title em { font-size: 0.82em; }
.nextup__arrow { position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; color: var(--ink); transition: transform 300ms var(--ease-out), color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nextup__link:hover .nextup__title { transform: translateX(16px); }
  .nextup__link:hover .nextup__arrow { transform: translateX(8px); color: var(--accent); }
}
.nextup__cta { display: grid; gap: 14px; justify-items: start; padding-bottom: 32px; }
.nextup__cta p { color: var(--muted); max-width: 30ch; }

/* ---------- Páginas interiores ---------- */
.page-connect .connect { margin-top: 0; }
.final--page { margin-top: 0; }
.final__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px;
  width: 100%; max-width: 960px; margin: 56px auto 0; text-align: left;
}
.final__meta li { padding-top: 16px; box-shadow: inset 0 1px 0 var(--line-2); }
.final__meta strong { display: block; font-weight: 500; color: var(--ink); }
.final__meta span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }

/* ================= HERO 3D: el edificio se construye con el scroll =================
   300vh de recorrido con el lienzo fijo (sticky). El lienzo y el indicador los monta /edificio/embed.js (edificio-3d/).
   Menos altura = el edificio se construye con menos scroll. */
.hero3d { position: relative; }
.js .hero3d { height: 300vh; }
.hero3d__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #eee7da; }
.hero3d__stage { position: absolute; inset: 0; }
.hero3d__stage canvas { display: block; touch-action: pan-y; }
.hero3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .hero3d__poster { display: none; }
.hero3d__intro {
  position: absolute; z-index: 5; left: var(--gutter); top: calc(var(--header-h) + clamp(16px, 6vh, 80px));
  width: min(760px, calc(100vw - 2 * var(--gutter))); will-change: opacity, transform;
}
html:not(.js) .hero3d__intro { padding: 24px; border-radius: 18px; background: rgba(238, 231, 218, 0.94); }
.hero3d .eyebrow { margin: 0 0 18px; font: 500 12.5px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
/* Titular largo: el tamaño depende también del alto de la pantalla para que el texto y los botones quepan por encima del indicador */
.hero3d__title { max-width: 22ch; font-size: clamp(34px, min(3.5vw, 5.6vh), 60px); }
.hero3d .hero__lead { color: var(--text); max-width: 40ch; }
.hero3d__note { margin-top: 12px; max-width: 52ch; font-size: 14px; line-height: 1.45; color: var(--muted); }   /* qué es la web de muestra */
.hero3d__cue { margin-top: 30px; }
/* Pantallas bajas (p. ej. 1366×768, 1280×720): menos aire arriba y sin el aviso de scroll, que chocaría con el indicador */
@media (max-height: 820px) { .hero3d__cue { display: none; } }
@media (min-width: 761px) and (max-height: 820px) { .hero3d__intro { top: calc(var(--header-h) + 16px); } }

/* Panel de CRM de ejemplo (datos ficticios), en el hueco a la derecha del texto del hero.
   Va dentro de #b3dIntro, así que se desvanece con el texto al empezar la obra. Solo en pantallas anchas y con JS.
   Se alinea al margen derecho de la pantalla: right = ancho del intro − (100vw − 2 márgenes). */
.hdash { display: none; }
@media (min-width: 1200px) and (min-height: 680px) {
  .js .hdash {
    display: block; position: absolute; top: 0; margin: 0;
    right: calc(100% - 100vw + 2 * var(--gutter));
    width: min(600px, calc(100vw - 2 * var(--gutter) - 700px));
    font-size: clamp(11.5px, 0.9vw, 13px);
  }
}
.hdash__win {
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 30px 60px -30px rgba(19, 32, 26, 0.35);
}
.hdash__top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f8f4ec; }
.hdash__dots { display: flex; gap: 5px; }
.hdash__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(19, 32, 26, 0.16); }
.hdash__name { font: 500 0.92em/1.2 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.hdash__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 0.8em/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hdash__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: hdashPulse 2s 6; }
@keyframes hdashPulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(45, 106, 79, 0); }
}
.hdash__body { display: grid; gap: 12px; padding: 14px; }
.hdash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hdash__kpi { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 12px; background: #f8f4ec; }
.hdash__k { font: 500 0.78em/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hdash__kpi strong { font: 700 2em/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hdash__s { font-size: 0.85em; line-height: 1.3; color: var(--muted); }
.hdash__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }
.hdash__panel { min-width: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; }
.hdash__h { margin: 0 0 6px; font: 600 0.95em/1.2 var(--font-sans); color: var(--ink); }
.hdash__list { display: grid; margin: 0; padding: 0; list-style: none; }
.hdash__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.hdash__list li:first-child { border-top: 0; }
.hdash__list li.is-in { animation: hdashIn 0.6s var(--ease-out) both; }
@keyframes hdashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hdash__av { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; font: 600 0.8em/1 var(--font-mono); color: var(--accent); background: rgba(45, 106, 79, 0.12); }
.hdash__who { min-width: 0; font-size: 0.95em; font-weight: 600; line-height: 1.25; color: var(--ink); }
.hdash__who small { display: block; overflow: hidden; font-size: 0.88em; font-weight: 400; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.hdash__st { padding: 3px 8px; border-radius: 99px; font: 500 0.76em/1.3 var(--font-mono); white-space: nowrap; color: var(--text); background: rgba(19, 32, 26, 0.06); transition: background-color 0.4s, color 0.4s; }
.hdash__st.is-ok { color: var(--accent); background: rgba(45, 106, 79, 0.12); }
.hdash__st.is-visit { color: #6b5426; background: rgba(217, 200, 163, 0.45); }
.hdash__st.is-new { color: #fff; background: var(--accent); }
.hdash__chart { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 1fr; align-items: end; gap: 6px; height: 7.5em; padding-bottom: 1.4em; }
.hdash__chart span { position: relative; height: var(--h); border-radius: 5px 5px 2px 2px; background: rgba(45, 106, 79, 0.22); transition: height 0.6s var(--ease-out); }
.hdash__chart span.is-today { background: var(--accent); }
.hdash__chart b { position: absolute; top: 100%; left: 50%; margin-top: 4px; transform: translateX(-50%); font: 500 0.72em/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.hdash__owner { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.85em; line-height: 1.35; color: var(--muted); }
.hdash__owner span { display: block; font-weight: 600; color: var(--ink); }
.hdash__cap { margin-top: 8px; text-align: right; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .hdash__live::before, .hdash__list li.is-in { animation: none; }
  .hdash__chart span, .hdash__st { transition: none; }
}

/* Indicador de fases: abajo a la izquierda (a la derecha está Chipi) */
.hud {
  position: absolute; left: var(--gutter); bottom: clamp(16px, 4vh, 40px); z-index: 6; width: min(340px, calc(100vw - 2 * var(--gutter)));
  display: grid; gap: 4px; padding: 18px 20px 16px; border-radius: 18px;
  background: rgba(248, 244, 236, 0.84); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 40px -24px rgba(19, 32, 26, 0.35);
}
.hud__k { margin: 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #2d6a4f; }
.hud__t { margin: 0; font: 700 23px/1.1 var(--font-display); letter-spacing: -0.03em; color: #13201a; }
.hud__d { margin: 0; font-size: 14.5px; line-height: 1.4; color: #5a6358; }
.hud__bar { position: relative; height: 4px; margin-top: 12px; border-radius: 4px; background: rgba(19, 32, 26, 0.12); overflow: hidden; }
.hud__bar span { position: absolute; inset: 0; background: #2d6a4f; transform-origin: left; transform: scaleX(0); }
.hud__bar i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #f8f4ec; }
.hud__pct { position: absolute; right: 20px; top: 18px; font: 500 13px/1.4 var(--font-mono); color: #5a6358; font-variant-numeric: tabular-nums; }
.hud--done .hud__t { color: #2d6a4f; }

/* Sin WebGL: la imagen del proyecto se revela de abajo arriba con el mismo scroll */
.fallback { position: absolute; inset: 0; margin: 0; display: grid; place-items: center end; padding: calc(var(--header-h) + 16px) var(--gutter) 150px; }
.fallback img { width: min(820px, 62%); height: auto; max-height: 100%; object-fit: contain; border-radius: 18px; }
.fallback figcaption { position: absolute; right: var(--gutter); bottom: 32px; max-width: 26em; font-size: 13.5px; color: var(--muted); text-align: right; }

@media (max-width: 760px) {
  .hero3d__title { font-size: clamp(28px, min(9.6vw, 4.3vh), 44px); font-size: clamp(28px, min(9.6vw, 4.3svh), 44px); }
  .hero3d .hero__lead { font-size: 15.5px; }
  .hero3d__cue { margin-top: 18px; }
  .hero3d__note { margin-top: 8px; font-size: 13px; }
  .hero3d .hero__ctas { margin-top: 16px; gap: 8px; }
  .hud { right: 84px; width: auto; padding: 12px 14px 11px; }
  .hud__t { font-size: 18px; }
  .hud__d { display: none; }
  .hud__pct { right: 14px; top: 12px; }
  .fallback { place-items: end center; padding-bottom: 120px; }
  .fallback img { width: 100%; }
  .fallback figcaption { display: none; }
}
/* Móviles bajos (p. ej. 360×640, 375×667, 360×740): el texto y los botones del hero tienen que caber por encima del indicador */
@media (max-width: 760px) and (max-height: 760px) {
  .hero3d__intro { top: calc(var(--header-h) + 8px); }
  .hero3d .eyebrow { display: none; }
  .hero3d .hero__lead { margin-top: 10px; }
  .hero3d .hero__ctas { margin-top: 14px; gap: 8px; }
  .hero3d .hero__ctas .btn { min-height: 46px; }
  .hero3d__note { margin-top: 8px; font-size: 12.5px; }
}

/* ================= UN CONTACTO, MINUTO A MINUTO ================= */
.caso__lista { position: relative; max-width: 1040px; margin: 0 auto; }
.caso__lista::before { content: ""; position: absolute; left: 172px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.caso__paso { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 8px 48px; align-items: baseline; padding: 22px 0; box-shadow: inset 0 -1px 0 var(--line); }
.caso__paso::before { content: ""; position: absolute; left: 168px; top: 31px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.caso__h { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.caso__paso h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.caso__paso p { margin-top: 6px; max-width: 46em; color: var(--text); }
.caso__quien { padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.caso__paso--tu::before { background: var(--accent); }
.caso__paso--tu h3 { color: var(--accent); }
.caso__paso--tu .caso__quien { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.caso__nota { max-width: 1040px; margin: 28px auto 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .caso__lista::before { left: 4px; }
  .caso__paso { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 20px 0 20px 26px; }
  .caso__paso::before { left: 0; top: 26px; }
  .caso__h { grid-column: 1 / -1; text-align: left; }
  .caso__paso > div { grid-column: 1; }
  .caso__quien { grid-column: 2; grid-row: 1; justify-self: end; }
}

/* ================= SPOT (reproductor) ================= */
.spot { max-width: var(--max); margin: 0 auto; padding: var(--section-gap) var(--gutter) 0; }
.player { --ar: 16 / 9; margin: 0 auto; max-width: 1120px; }
.player__stage {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--night-2);
  aspect-ratio: var(--ar);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
}
.player__stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--night-line); pointer-events: none; z-index: 5; }
.player__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #080f0b; }
.player[data-ar="tall"] .player__stage {
  --ar: 9 / 16; width: auto; margin: 0 auto;
  height: min(78dvh, 820px, calc((100vw - var(--gutter) * 2) * 16 / 9));
}
.player__stage:fullscreen { width: 100%; height: 100%; max-height: none; border-radius: 0; aspect-ratio: auto; background: #000; }
.player__stage:fullscreen .player__video { object-fit: contain; }
.player figcaption { margin-top: 16px; text-align: center; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* Controles (solo con JS: sin JS se usan los nativos) */
.player__big {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: end center; justify-items: center; gap: 12px;
  border: 0; padding: 0 0 clamp(28px, 9%, 72px); cursor: pointer; color: var(--night-ink);
  background: linear-gradient(180deg, rgba(15, 35, 25, 0) 45%, rgba(15, 35, 25, 0.7));
  transition: opacity 220ms ease;
}
.player__big[hidden] { display: none; }
/* Cargando: entre pulsar play y el primer fotograma (en datos móviles puede tardar unos segundos) */
.player__spin { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: rgba(8, 15, 11, 0.45); color: var(--night-ink); font-family: var(--font-mono); font-size: 13px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.player__spin i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(240, 233, 218, 0.2); border-top-color: #8cc5a2;
  animation: player-spin 0.9s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.player.is-buffering .player__spin { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .player__spin i { animation-duration: 2.4s; } }
.player__debug { position: fixed; left: 8px; right: 8px; top: 8px; pointer-events: none; z-index: 9999; max-height: 45vh; overflow: auto; margin: 0; padding: 10px;
  border-radius: 8px; background: rgba(0, 0, 0, 0.88); color: #b9f6ca; font: 11px/1.4 ui-monospace, monospace; white-space: pre-wrap; }
.player__big-icon {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #2d6a4f; color: #fff;
  box-shadow: 0 0 0 10px rgba(45, 106, 79, 0.22), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transition: transform 200ms var(--ease-out);
}
.player__big-icon .icon { width: 34px; height: 34px; margin-left: 4px; }
.player__big-label { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.player__big:active .player__big-icon { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .player__big:hover .player__big-icon { transform: scale(1.03); } }

.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 4px; padding: 28px 12px 10px;
  background: linear-gradient(0deg, rgba(8, 15, 11, 0.82), rgba(8, 15, 11, 0));
  color: var(--night-ink);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 250ms ease, transform 250ms var(--ease-out);
}
.player.is-playing .player__bar, .player.is-ended .player__bar { opacity: 1; transform: none; pointer-events: auto; }
.player.is-playing.is-idle .player__bar { opacity: 0; transform: translateY(6px); pointer-events: none; }
/* Pausado a mitad: la barra se queda visible */
.player.is-started:not(.is-playing) .player__bar { opacity: 1; transform: none; pointer-events: auto; }
.pbtn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.pbtn:active { transform: scale(0.94); }
.pbtn:hover { background: rgba(240, 233, 218, 0.12); }
.pbtn[aria-pressed="true"][data-act="cc"] { color: #a8d5b8; background: rgba(140, 197, 162, 0.18); }
.ptime { flex: none; min-width: 3.2ch; font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--night-muted); }
.prange {
  --p: 0%; flex: 1; min-width: 0; height: 44px; margin: 0 8px; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.prange::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #8cc5a2 var(--p), rgba(240, 233, 218, 0.24) var(--p)); }
.prange::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(240, 233, 218, 0.24); }
.prange::-moz-range-progress { height: 4px; border-radius: 2px; background: #8cc5a2; }
.prange::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.prange::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.prange:focus-visible, .pbtn:focus-visible, .player__big:focus-visible { outline: 2px solid #a8d5b8; outline-offset: -2px; }

.player__end {
  position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 24px;
  padding: 24px; text-align: center; background: rgba(15, 35, 25, 0.86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.player.is-ended .player__end { opacity: 1; visibility: visible; transition-delay: 0s; }
.player__end-title { font-size: clamp(30px, 5vw, 72px); max-width: 14ch; color: var(--night-ink); }
.player__end-title em { color: #8cc5a2; }
.player__end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.player .btn--accent { background: #8cc5a2; color: var(--night); }
.player .btn--line { color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-line); }
@media (hover: hover) and (pointer: fine) { .player .btn--line:hover { box-shadow: inset 0 0 0 1px var(--night-ink); } }
.player.has-error figcaption::after { content: " · No se pudo cargar el vídeo. Prueba de nuevo."; color: #ff9c9c; }
.player__video::cue { background: rgba(15, 35, 25, 0.78); color: #f0e9da; font-family: var(--font-sans); font-size: 120%; }

.transcript { max-width: 1120px; margin: 12px auto 0; }
.transcript summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-family: var(--font-mono); box-shadow: inset 0 0 0 1px var(--line-2); }
.transcript[open] summary::before { content: "–"; }
.transcript summary:hover { color: var(--ink); }
.transcript__body { padding: 4px 0 8px; }
.transcript__body p { max-width: 70ch; color: var(--muted); }

/* ---------- Responsive de lo nuevo ---------- */
@media (max-width: 1080px) {
  .nextup { grid-template-columns: 1fr; }
  .route { grid-template-columns: auto minmax(0, 1fr) auto; }
  .route__d { grid-column: 2 / 3; grid-row: 2; }
  .route__go { grid-column: 3; grid-row: 1; }
}
@media (max-width: 640px) {
  .header__actions { grid-column: 2; }
  .scroll-cue { display: none; }
  .final__meta { grid-template-columns: 1fr; margin-top: 40px; }
  .nextup__link { padding-right: 56px; }
  .nextup__arrow { width: 32px; height: 32px; margin-top: -16px; }
  .player__stage { border-radius: 12px; }
  .player__big-icon { width: 64px; height: 64px; }
  .player__big-icon .icon { width: 26px; height: 26px; }
  .player__bar { padding-top: 22px; gap: 0; }
  .ptime[data-dur] { display: none; }
  .prange { margin: 0 4px; }
}

/* Cabecera: fondo translúcido al desplazarse, para que la navegación no se pise con el contenido */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--line);
  opacity: 0; transition: opacity 300ms ease;
}
.header.is-scrolled::before { opacity: 1; }
.menu-open .header::before { opacity: 0; }

/* Contacto y 404: la acción (botones) tiene que verse en la primera pantalla */
.final--page .final__title { font-size: clamp(44px, 6.2vw, 104px); }
.final--page .final__chip { width: clamp(150px, 17vw, 250px); }
.final--page { padding-bottom: 64px; }


/* ================= PRECIOS ================= */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(24px, 2.6vw, 36px);
  border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.plan--featured { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 60px -34px color-mix(in srgb, var(--accent) 55%, transparent); }
.plan__badge {
  position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
}
.plan__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.22em; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -0.04em; line-height: 0.95; color: var(--ink); }
.plan__name em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.015em; color: var(--accent); }
.plan__title { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.plan__who { color: var(--text); min-height: 3.2em; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 3.6vw, 56px); letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.plan__price small { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.42em; letter-spacing: 0; color: var(--accent); }
.plan__price span { flex-basis: 100%; font-family: var(--font-sans); font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.plan__list { display: grid; gap: 8px; margin: 6px 0 4px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }
.plan__list li { position: relative; padding-left: 24px; color: var(--text); font-size: 16px; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg); }
.plan__maint { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.plan .btn { align-self: end; width: 100%; }
.price-note { max-width: 62ch; margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.price-head { margin-top: var(--section-gap); }

.pricelist { box-shadow: inset 0 1px 0 var(--line-2); }
.pricelist li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center;
  padding: 26px 0; box-shadow: inset 0 -1px 0 var(--line-2);
}
.pricelist h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); }
.pricelist li p { color: var(--muted); max-width: 60ch; margin-top: 6px; }
.pricelist__p { margin: 0 !important; max-width: none !important; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.045em; color: var(--ink) !important; white-space: nowrap; }
.pricelist__p small { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.5em; letter-spacing: 0; color: var(--accent); margin-right: 6px; }

.maint { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.maint__card { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 32px); border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.maint__card--featured { box-shadow: inset 0 0 0 1.5px var(--accent); }
.maint__name { font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1; color: var(--accent); }
.maint__card .plan__price { font-size: clamp(34px, 3vw, 46px); }
.maint__card > p:last-child { color: var(--text); }
.maint__notes { display: grid; gap: 10px; margin-top: 28px; max-width: 74ch; }
.maint__notes li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15.5px; }
.maint__notes li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.maint__notes strong { color: var(--ink); font-weight: 500; }

@media (max-width: 1080px) {
  .plans, .maint { grid-template-columns: 1fr; }
  .plan { max-width: 560px; }
  .plan--featured { margin-top: 12px; }
  .plan__who { min-height: 0; }
}
@media (max-width: 640px) {
  .pricelist li { grid-template-columns: 1fr; }
  .pricelist__p { text-align: left; }
}

/* ================= CONSENT (only rendered when analytics is configured) ================= */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 96;
  display: grid; gap: 14px; width: min(420px, calc(100vw - 32px));
  padding: 18px; border-radius: 14px;
  background: var(--night-2); color: var(--night-ink);
  box-shadow: inset 0 0 0 1px var(--night-line), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
.consent[hidden] { display: none; }
.consent__text { font-size: 14px; line-height: 1.55; color: #d4cdbd; }
.consent__text a { color: var(--night-ink); text-underline-offset: 3px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .btn--line { color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-line); }
.consent .btn--line:hover { box-shadow: inset 0 0 0 1px var(--night-ink); }

/* ---------- Legal: índice y tabla ---------- */
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; max-width: 820px; margin: 0 0 clamp(36px, 5vw, 60px); }
.legal__toc a { padding: 6px 12px; border-radius: 6px; font-size: 14px; text-decoration: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 200ms ease, color 200ms ease; }
.legal__toc a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.legal__body section { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body li + li { margin-top: 8px; }
.legal__table { margin-top: 16px; overflow-x: auto; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.legal__table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.legal__table th, .legal__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Pie: zonas táctiles de 44 px y botón "Volver arriba" ---------- */
.footer__legal { gap: 0 8px; margin-top: 8px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.footer__inner a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.footer__inner a.btn { color: var(--ink); }
.footer__inner a.btn:hover { color: var(--ink); }
.footer__up { transform: rotate(-45deg); }
.footer__top:hover .footer__up { transform: rotate(-45deg) translate(2px, -2px); }
.footer__up { transition: transform 200ms var(--ease-out, ease); }

/* =========================================================
   CHIPI · mascota y asistente de respuestas automáticas
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mascot {
  position: fixed; z-index: 82;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; justify-items: end; gap: 10px;
  transition: opacity 300ms ease, transform 300ms var(--ease-out, ease);
  animation: m-in 800ms var(--ease-out, ease) 1.2s both;
}
.motion:not(.booted) .mascot { animation-delay: 4.4s; }
.spot-playing .mascot:not(.is-open) { visibility: hidden; }   /* no tapa los controles del vídeo */
.menu-open .mascot, .mascot.is-away:not(.is-open) { opacity: 0; pointer-events: none; transform: translateY(16px); }
@keyframes m-in { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: none; } }

.mascot__btn {
  position: relative; display: block; width: 76px; height: 86px; padding: 0; border: 0; border-radius: 18px;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out, ease);
}
.mascot__btn:active { transform: scale(.96); }
.mascot__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mascot__svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 14px rgba(6, 12, 9, .45)); animation: m-float 4.2s ease-in-out infinite; }
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.m-eye { transform-box: fill-box; transform-origin: center; transition: transform 90ms ease-out; }
.m-eye.is-blink { transform: scaleY(.08); }
.m-pupil { transition: transform 140ms ease-out; }
.m-arm-l { transform-box: fill-box; transform-origin: 100% 50%; }
.m-arm-r { transform-box: fill-box; transform-origin: 0% 50%; }
.m-s { transform-box: fill-box; transform-origin: center; }
@keyframes m-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-32deg); } 70% { transform: rotate(-12deg); } }
@keyframes m-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.mascot__btn:hover .m-arm-r, .mascot[data-mood="happy"] .m-arm-r { animation: m-wave 900ms ease-in-out 2; }
.mascot[data-mood="happy"] .m-eye { transform: scaleY(.62); }
.mascot.is-thinking .m-s { animation: m-pulse 700ms ease-in-out infinite; }

.mascot__hint {
  position: absolute; right: calc(100% - 4px); top: 10px; white-space: nowrap;
  padding: 8px 14px; border-radius: 12px 12px 4px 12px; font-size: 14px; font-weight: 500;
  background: #ece2cc; color: #0f2319; box-shadow: 0 10px 24px -10px rgba(6, 12, 9, .6);
  opacity: 0; transform: translateX(8px) scale(.96); transform-origin: right center; pointer-events: none;
  transition: opacity 240ms ease, transform 300ms var(--ease-out, ease);
}
.mascot.has-hint:not(.is-open) .mascot__hint { opacity: 1; transform: none; }

.mascot__panel {
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 32px)); max-height: min(580px, calc(100dvh - 150px));
  border-radius: 20px; overflow: hidden;
  background: #173126; color: #f0e9da;
  box-shadow: inset 0 0 0 1px rgba(232, 220, 192, .16), 0 30px 60px -16px rgba(6, 12, 9, .75);
  transform-origin: bottom right; animation: m-pop 200ms var(--ease-out, ease) both;
}
.mascot__panel[hidden] { display: none; }
@keyframes m-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.mascot__head { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; box-shadow: inset 0 -1px 0 rgba(232, 220, 192, .12); }
.mascot__mini { width: 36px; height: 40px; flex: none; }
.mascot__who { flex: 1; min-width: 0; }
.mascot__who h2 { margin: 0; font: 700 17px/1.1 var(--font-display); letter-spacing: -.02em; color: #f0e9da; }
.mascot__who p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: #a49d8b; }
.mascot__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #d4cdbd; cursor: pointer; transition: background-color 200ms ease; }
.mascot__close:hover { background: rgba(232, 220, 192, .08); }
.mascot__close .icon { width: 20px; height: 20px; }

.mascot__log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.mascot__log:focus-visible { outline-offset: -2px; }
.mascot__msg { max-width: 90%; font-size: 14.5px; line-height: 1.5; }
.mascot__msg p { margin: 0; }
.mascot__msg p + p { margin-top: 6px; }
.mascot__msg--bot { justify-self: start; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: rgba(232, 220, 192, .08); color: #ede8df; animation: m-pop 200ms var(--ease-out, ease) both; }
.mascot__msg--user { justify-self: end; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: #ece2cc; color: #0f2319; animation: m-pop 200ms var(--ease-out, ease) both; }
.mascot__li { padding-left: .9em; text-indent: -.9em; }
.mascot__typing { display: flex; gap: 5px; padding: 4px 2px; }
.mascot__typing i { width: 7px; height: 7px; border-radius: 50%; background: #d9c8a3; animation: m-dot 1s ease-in-out infinite; }
.mascot__typing i:nth-child(2) { animation-delay: .15s; }
.mascot__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes m-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.mascot__actions { display: grid; gap: 6px; margin-top: 10px; }
.mascot__action {
  display: flex; align-items: center; min-height: 42px; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; line-height: 1.25; text-decoration: none; color: #f0e9da;
  box-shadow: inset 0 0 0 1px rgba(232, 220, 192, .26); transition: box-shadow 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out, ease);
}
.mascot__action:hover { box-shadow: inset 0 0 0 1px #f0e9da; background: rgba(232, 220, 192, .06); }
.mascot__action:active { transform: scale(.98); }
.mascot__action--cta { background: #8cc5a2; color: #0f2319; box-shadow: none; }
.mascot__action--cta:hover { background: #a0d1b2; box-shadow: none; }

.mascot__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.mascot__chips:empty { display: none; }
.mascot__chip {
  min-height: 38px; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #ede8df; font-size: 13.5px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(232, 220, 192, .26); transition: box-shadow 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out, ease);
}
.mascot__chip:hover { box-shadow: inset 0 0 0 1px #f0e9da; background: rgba(232, 220, 192, .06); }
.mascot__chip:active { transform: scale(.97); }

.mascot__form { display: flex; gap: 8px; padding: 12px 16px; box-shadow: inset 0 1px 0 rgba(232, 220, 192, .12); }
.mascot__form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
  background: rgba(226, 216, 194, .07); color: #fff; font: 400 16px/1 var(--font-sans);
  box-shadow: inset 0 0 0 1px rgba(232, 220, 192, .16);
}
.mascot__form input::placeholder { color: #a49d8b; }
.mascot__form input:focus-visible { outline: 2px solid #8cc5a2; outline-offset: 1px; }
.mascot__send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; cursor: pointer; background: #8cc5a2; color: #0f2319; transition: filter 200ms ease, transform 160ms var(--ease-out, ease); }
.mascot__send:hover { filter: brightness(1.1); }
.mascot__send:active { transform: scale(.94); }
.mascot__send:focus-visible { outline: 2px solid #f0e9da; outline-offset: 2px; }
.mascot__note { margin: 0; padding: 0 16px 14px; font-size: 12px; line-height: 1.4; color: #a49d8b; }

@media (max-width: 640px) {
  .mascot { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .mascot__btn { width: 62px; height: 70px; }
  .mascot__panel { width: calc(100vw - 24px); max-height: min(72dvh, calc(100dvh - 110px)); }
  .mascot__hint { font-size: 13px; padding: 7px 12px; }
  body:has(.consent:not([hidden])) .mascot { bottom: 196px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot__svg, .mascot__panel, .mascot__msg--bot, .mascot__msg--user { animation: none !important; }
  .mascot__typing i { animation: none; opacity: .8; }
}
@media print { .mascot { display: none; } }

/* Contacto */
.price-vat { display: block; margin-top: 5px; font: 500 11px/1.4 var(--font-sans); letter-spacing: 0; color: var(--muted); white-space: normal; }
.contact-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-intro .h2 { margin: 18px 0 24px; }.contact-intro > a { overflow-wrap: anywhere; }
.contact-capacity { border-left: 3px solid var(--accent); padding-left: 20px; margin: 28px 0; line-height: 1.7; }
.contact-form { position: relative; min-width: 0; display: grid; gap: 22px; padding: clamp(20px, 3vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.contact-sent { display: grid; gap: 18px; justify-items: start; padding: clamp(20px, 3vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); outline: none; }.contact-sent[hidden], .contact-form[hidden] { display: none; }.contact-sent .h2 { margin: 0; }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.contact-form label > span { font-size: 12px; color: var(--muted); font-weight: 400; }
.contact-form input:not([type=checkbox]), .contact-form textarea, .contact-form select { width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); padding: 13px 14px; font: 400 16px/1.5 var(--font-sans); }
.contact-form textarea { resize: vertical; min-height: 140px; }.contact-form input::placeholder,.contact-form textarea::placeholder { color: var(--muted); }
.contact-form .contact-form__consent { display: flex; align-items: flex-start; gap: 12px; }.contact-form__consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }.contact-form__consent span { line-height: 1.6; }
.contact-form__notice { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.contact-form__notice a,.contact-form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form button[type=submit] { justify-content: center; width: 100%; }
@media(max-width: 700px) { .contact-section,.contact-form__row { grid-template-columns: 1fr; }.contact-form label > span { font-size: 12px; } }

/* Loader 3D · SAMPAUL AGENCY · chip real con volumen, sin librerías (CSS 3D) */
.loader3d { display: none; }
.motion:not(.booted) .loader3d {
  position: fixed; inset: 0; z-index: 150; display: grid; place-content: center; justify-items: center; gap: 34px;
  background: radial-gradient(60% 55% at 50% 42%, #182b22 0%, #0f2319 70%);
  overflow: hidden;
}
.l3-stage { width: min(86vw, 460px); aspect-ratio: 1; perspective: 1100px; display: grid; place-items: center; }
.l3-scene { position: relative; width: 190px; height: 190px; scale: 1.5; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 54deg)) rotateZ(var(--rz, -38deg)); }
.l3-scene > * { position: absolute; transform-style: preserve-3d; }

/* sombra de contacto + resplandor del suelo */
.l3-floor { inset: -30px; border-radius: 50%; transform: translateZ(-26px);
  background: radial-gradient(closest-side, rgba(217,200,163,.28), rgba(45,106,79,.10) 55%, transparent 75%); filter: blur(10px); }
.l3-shadow { inset: 14px; border-radius: 30px; transform: translateZ(-24px); background: #000; opacity: .55; filter: blur(16px); }

/* cuerpo: 14 capas apiladas dan el grosor */
.l3-body { inset: 17px; transform: translateZ(0); }
.l3-body i { position: absolute; inset: 0; border-radius: 26px; transform: translateZ(calc(var(--z) * 1px));
  background: #1f5139; box-shadow: inset 0 0 0 2px #3f7d5d; }
.l3-body i.top { background: linear-gradient(135deg, #5aa37d 0%, #2d6a4f 42%, #1b4a35 100%);
  box-shadow: inset 0 0 0 1.5px rgba(232,220,192,.5), inset 0 14px 28px rgba(217,200,163,.18), inset 0 -18px 30px rgba(0,0,0,.5); }
.l3-body i.top::after { content: ""; position: absolute; left: 14px; top: 14px; width: 9px; height: 9px; border-radius: 50%;
  background: #f5f0e5; box-shadow: 0 0 10px #d9c8a3; }

/* patillas: cada una con 3 capas metálicas */
.l3-pin { width: 30px; height: 7px; border-radius: 2px; }
.l3-pin i { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, #809c8e, #f5f0e5 45%, #b4a587);
  transform: translateZ(calc(var(--z) * 1px)); }
.l3-pin i:nth-child(1) { --z: 4; filter: brightness(.55); } .l3-pin i:nth-child(2) { --z: 8; filter: brightness(.8); } .l3-pin i:nth-child(3) { --z: 12; }

/* die (chip interior): 6 capas */
.l3-die { inset: 48px; transform: translateZ(22px); }
.l3-die i { position: absolute; inset: 0; border-radius: 12px; transform: translateZ(calc(var(--z) * 1px));
  background: #070d0a; box-shadow: inset 0 0 0 1px rgba(230,218,190,.4); }
.l3-die i.top { background: linear-gradient(145deg, #173a2a, #0a1d14); box-shadow: inset 0 0 0 2px #e6dabe, 0 0 24px rgba(217,200,163,.55), inset 0 0 22px rgba(45,106,79,.35); }

/* la S: capas extruidas */
.l3-s { inset: 48px; transform: translateZ(34px); rotate: calc(var(--rz, -38deg) * -1); }
.l3-s b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 86px/1 'Space Grotesk', system-ui, sans-serif;
  color: #d2c5aa; transform: translateZ(calc(var(--z) * 1px)); }
.l3-s b.top { color: #fbf9f6; text-shadow: 0 0 18px rgba(217,200,163,.95), 0 0 42px rgba(45,106,79,.8); }

/* brillo especular que barre el chip */
.l3-sheen { inset: 17px; border-radius: 26px; transform: translateZ(22.5px); pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 38%, rgba(238,229,208,.55) 50%, transparent 62%); background-size: 260% 100%; animation: l3-sheen 2.4s ease-in-out infinite; }
@keyframes l3-sheen { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* entrada: las piezas llegan desde fuera y encajan */
.l3-body { animation: l3-drop 1s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
.l3-pin { animation: l3-pin 1.1s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; animation-delay: calc(var(--d) * 70ms + 250ms); }
.l3-die { animation: l3-die .9s var(--ease-out, cubic-bezier(.23,1,.32,1)) .7s both; }
.l3-s { animation: l3-s 1s cubic-bezier(.34,1.56,.64,1) 1.05s both; }
@keyframes l3-drop { from { opacity: 0; transform: translateZ(120px); } to { opacity: 1; transform: translateZ(0); } }
@keyframes l3-pin { from { opacity: 0; translate: var(--fx) var(--fy) 0; } to { opacity: 1; translate: 0 0 0; } }
@keyframes l3-die { from { opacity: 0; transform: translateZ(90px); } to { opacity: 1; transform: translateZ(22px); } }
@keyframes l3-s { from { opacity: 0; transform: translateZ(110px) scale(.7); } to { opacity: 1; transform: translateZ(34px) scale(1); } }
.l3-spin { animation: l3-spin 5s linear infinite; }
@keyframes l3-spin { to { transform: rotateZ(360deg); } }

.l3-meta { display: flex; gap: 24px; min-width: 200px; justify-content: space-between; font: 13px 'Geist Mono', ui-monospace, monospace; color: #a49d8b; }
.l3-count { color: #f0e9da; font-variant-numeric: tabular-nums; }
.l3-bar { width: 200px; height: 2px; background: rgba(232,220,192,.14); border-radius: 2px; overflow: hidden; margin-top: -18px; }
.l3-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2d6a4f, #d9c8a3); }

@media (prefers-reduced-motion: reduce) {
  .l3-body, .l3-pin, .l3-die, .l3-s, .l3-sheen, .l3-spin { animation: none !important; }
}

/* ================= PRECIOS v2 · más vistosos ================= */
.plans { gap: 20px; align-items: stretch; }
.plan {
  gap: 14px; padding: clamp(28px, 3vw, 44px); border-radius: 26px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -36px color-mix(in srgb, var(--ink) 40%, transparent);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.plan::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #d9c8a3));
}
.motion .plan:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--accent), 0 34px 60px -32px color-mix(in srgb, var(--accent) 60%, transparent); }
.plan__price { font-size: clamp(56px, 6.4vw, 96px); letter-spacing: -0.06em; margin: 6px 0 2px; }
.plan__price small { font-size: 0.34em; }
.plan__price span { font: 500 13px/1.4 var(--font-sans); letter-spacing: 0; margin-top: 10px; }
.plan__title { display: inline-flex; width: fit-content; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-weight: 500; }
.plan__who { font-size: 17px; line-height: 1.45; }
.plan__list { gap: 11px; padding-top: 20px; }
.plan__list li { font-size: 16.5px; padding-left: 30px; }
.plan__list li::before { left: 0; top: 0.2em; width: 20px; height: 20px; border: 0; border-radius: 50%; transform: none; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.plan__list li::after { content: ""; position: absolute; left: 6px; top: 0.52em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan__maint { padding: 11px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--text); font-size: 14px; }
.plan .btn { min-height: 52px; font-size: 16px; }

.plan--featured {
  --ink: var(--night-ink); --text: #eae5da; --muted: var(--night-muted); --accent: #8cc5a2; --accent-ink: var(--night);
  background: radial-gradient(120% 90% at 85% 0%, #315543 0%, var(--night-2) 48%, var(--night) 100%);
  box-shadow: inset 0 0 0 2px #8cc5a2, 0 44px 80px -34px color-mix(in srgb, #2d6a4f 70%, transparent);
}
.plan--featured::before { background: linear-gradient(90deg, #8cc5a2, var(--ice), #8cc5a2); height: 6px; }
.plan--featured .plan__title { background: rgba(217, 200, 163, 0.16); color: var(--ice); }
.plan--featured .plan__maint { background: rgba(217, 200, 163, 0.12); color: var(--night-ink); }
.plan--featured .plan__list li::before { background: rgba(140, 197, 162, 0.25); }
.plan__badge { position: static; justify-self: start; margin-bottom: 4px; padding: 6px 14px; background: var(--ice); color: var(--night); font-weight: 600; box-shadow: 0 8px 20px -8px rgba(217, 200, 163, 0.8); }
@media (min-width: 1081px) { .plan--featured { transform: translateY(-14px); } .motion .plan--featured:hover { transform: translateY(-20px); } }

/* Proyectos sueltos como tarjetas */
.pricelist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; box-shadow: none; }
.pricelist li.tile {
  --c: var(--accent); position: relative; display: grid; grid-template-columns: 1fr; align-content: space-between; gap: 22px;
  padding: 26px 26px 24px; border-radius: 22px; background: var(--card); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -34px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pricelist li.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.motion .pricelist li.tile:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--c), 0 30px 50px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.tile--auto { --c: #2d6a4f; } .tile--web { --c: #6b5a3e; } .tile--brand { --c: #b4236c; } .tile--seo { --c: #b45309; }
.tile__tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 11%, transparent); color: var(--c); font: 600 12px/1.2 var(--font-sans); letter-spacing: .02em; }
.pricelist li.tile h3 { font-size: clamp(22px, 2vw, 28px); }
.pricelist li.tile .pricelist__p { text-align: left; font-size: clamp(40px, 3.8vw, 58px); letter-spacing: -0.055em; }
.pricelist li.tile .pricelist__p small { font-size: 0.34em; }
.pricelist li.tile .price-vat { font-size: 12px; margin-top: 8px; }
@media (max-width: 1080px) { .pricelist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pricelist { grid-template-columns: 1fr; } }

/* Cuotas */
.maint__card { border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -34px color-mix(in srgb, var(--ink) 45%, transparent); }
.maint__card--featured { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 50px -32px color-mix(in srgb, var(--accent) 55%, transparent); }

/* Forma de pago en tres pasos */
.paysteps { margin-top: 44px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.paysteps__title { font: 600 13px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.paysteps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: ps; }
.paysteps li { position: relative; display: grid; gap: 4px; padding: 0 20px 0 0; counter-increment: ps; }
.paysteps li::before { content: counter(ps); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--font-display); position: relative; z-index: 1; }
.paysteps li:not(:last-child)::after { content: ""; position: absolute; left: 44px; right: 8px; top: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.paysteps li strong { font: 700 clamp(30px, 3.4vw, 46px)/1 var(--font-display); letter-spacing: -0.045em; color: var(--ink); }
.paysteps li span { color: var(--muted); font-size: 15px; }
.paysteps__note { margin-top: 22px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--line); color: var(--muted); font-size: 15px; }
@media (max-width: 640px) {
  .paysteps ol { grid-template-columns: 1fr; gap: 22px; }
  .paysteps li:not(:last-child)::after { display: none; }
}

/* ================= Precio de lanzamiento: el precio desde el 1 de febrero de 2027 se anuncia con su fecha ================= */
.plan__next { display: inline-block; width: fit-content; margin: 0 0 8px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); font: 600 13px/1.3 var(--font-sans); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.pricelist li.tile .tile__next { margin-top: 10px; font-size: 13.5px; color: var(--text); }
.plan--featured .plan__next { color: var(--night-ink); }   /* en la tarjeta oscura, texto crema para asegurar contraste AA */
.plan__fee { font-size: 0.36em; font-weight: 600; letter-spacing: -0.02em; }   /* «+ 89 €/mes» junto al precio */
.pricelist { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 4 proyectos sueltos: 2 x 2 */
@media (max-width: 640px) { .pricelist { grid-template-columns: 1fr; } }

/* ================= Comparativa de planes (/precios/#comparar) =================
   Tabla real (<table>, <caption>, <th scope>). En pantallas estrechas se desplaza en horizontal dentro de su caja
   y la primera columna (lo que se compara) se queda fija; la página nunca se desplaza en horizontal. */
.compare { margin-top: clamp(56px, 7vw, 96px); }
.compare > .h2 { margin-bottom: 18px; }
.compare__hint { display: none; margin: 0 0 10px; font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.compare__scroll { overflow-x: auto; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -34px color-mix(in srgb, var(--ink) 45%, transparent); -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.compare__table caption { caption-side: top; padding: 18px 22px 6px; text-align: left; font-size: 13.5px; color: var(--muted); }
.compare__colhead { width: 31%; }
.compare__colfeat { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare__table th, .compare__table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table tbody tr:last-child > * { border-bottom: 0; }
.compare__table thead th { font: 700 17px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); border-bottom: 2px solid var(--line-2); }
.compare__tag { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 11.5px/1.3 var(--font-sans); letter-spacing: 0.02em; }
.compare__table tbody th { font-weight: 600; color: var(--ink); }
.compare__table tbody th small { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--muted); }
.compare__price td { font: 700 18px/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
/* Sí / No: el texto se ve y se lee; el símbolo es decoración (texto alternativo vacío) */
.compare__table td.yes, .compare__table td.no { white-space: nowrap; }
.compare__table td.yes { color: var(--ink); font-weight: 600; }
.compare__table td.no { color: var(--muted); }
.compare__table td.yes::before { content: "✓"; content: "✓" / ""; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 13px; }
.compare__table td.no::before { content: "–"; content: "–" / ""; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; color: var(--muted); }
/* Primera columna fija al desplazar (con fondo opaco para que no se transparente) */
.compare__table th[scope="row"], .compare__corner { position: sticky; left: 0; z-index: 1; background: var(--card); }
@media (max-width: 900px) {
  .compare__hint { display: block; }
  .compare__table { font-size: 14px; }
  .compare__table th, .compare__table td { padding: 12px 14px; }
  .compare__colhead { width: 168px; }
  .compare__table th[scope="row"] { box-shadow: 1px 0 0 var(--line-2); }
  /* El título de la tabla se desplazaría con ella: se oculta a la vista (lo siguen leyendo los lectores de pantalla); el h2 ya lo dice */
  .compare__table caption { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (max-width: 480px) {
  .compare__colhead { width: 132px; }
  .compare__table { min-width: 640px; font-size: 13.5px; }
  .compare__table th, .compare__table td { padding: 11px 12px; }
}