/* Zerufy Studio. Sistema visual: negro, un rojo, Bebas Neue + Montserrat.
   Botones en píldora, medios con 16px, campos con 12px. */

/* font:start */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas-neue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* font:end */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --line: #262626;
  --line-2: #3a3a3a;
  --ink: #f4f4f4;
  --ink-2: #c8c8c8;
  --muted: #9b9b9b;
  --red: #e8352a;
  --red-hi: #ff4a3d;
  --red-fill: #d62f24;
  --on-red: #ffffff;

  --display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --text: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

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

  --wrap: 1320px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --head-h: 76px;
  --head-h-s: 60px;
  --r-card: 16px;
  --r-input: 12px;
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--red);
  accent-color: var(--red);
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; color: inherit; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
::selection { background: var(--red); color: var(--on-red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #333 var(--bg); scrollbar-width: thin; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red-fill); color: var(--on-red); padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.display, .h1, .h2, .h3, .display-2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}
.display em, .h1 em, .h2 em, .h3 em, .display-2 em { font-style: normal; color: var(--red); }
.display-2 { font-size: clamp(3.4rem, 11vw, 8.5rem); }
.h2 { font-size: clamp(2.7rem, 7.4vw, 5.6rem); }
.h3 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 0.95; }
.h4 { font-family: var(--text); font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.fine { font-size: 0.85rem; color: var(--muted); }

.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: color 160ms ease;
}
.link:hover { color: var(--red-hi); }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-sm { width: 1em; height: 1em; }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle;
}

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font-family: var(--text); font-size: 0.95rem; font-weight: 650; letter-spacing: 0.005em; line-height: 1;
  white-space: nowrap; border: 1px solid transparent;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--ms, 1));
  transition: transform 260ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  user-select: none;
}
.btn:active { --ms: 0.97; }
.btn .ic-go, .link-go .ic-go, .head-cta .ic-go, .fx-go .ic-go { transition: transform 300ms var(--ease-out); }
.btn:hover .ic-go, .link-go:hover .ic-go, .head-cta:hover .ic-go { transform: translateX(4px); }
.ic-flip { transform: scaleX(-1); }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 1rem; }
.btn-primary { background: var(--red-fill); color: var(--on-red); }
.btn-primary:hover { background: #bd281e; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-icon { --h: 52px; width: var(--h); padding: 0; }
.btn .ic { width: 1.2em; height: 1.2em; }
.btn[aria-busy='true'] { pointer-events: none; opacity: 0.75; }

/* ---------- Secciones ---------- */
main { display: block; }
.section { padding-block: var(--section); }
.section.tight-top { padding-top: clamp(24px, 4vw, 48px); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 1000px; }

/* Encabezado de páginas internas */
.page-hero { padding-top: calc(var(--head-h) + clamp(40px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero .display-2 { margin-top: 18px; max-width: 15ch; }
.page-hero .hero-lead { margin-top: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.crumbs a:hover { color: var(--ink); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Teléfono con captura real ---------- */
.phone {
  --pw: 280px;
  width: var(--pw); flex: none; aspect-ratio: 540 / 1169;
  border-radius: calc(var(--pw) * 0.14);
  padding: calc(var(--pw) * 0.03);
  background: #050505;
  box-shadow: 0 0 0 1px #2c2c2c inset, 0 0 0 1px #000, 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 18px 36px -18px rgba(0, 0, 0, 0.7);
  position: relative;
}
.phone::after { content: ''; position: absolute; top: calc(var(--pw) * 0.055); left: 50%; width: 27%; height: calc(var(--pw) * 0.07); background: #050505; border-radius: 99px; transform: translateX(-50%); }
.phone-screen { width: 100%; height: 100%; border-radius: calc(var(--pw) * 0.11); overflow: hidden; background: #111; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.is-scroll .phone-screen img { height: auto; object-fit: initial; }
@media (prefers-reduced-motion: no-preference) {
  .phone.is-scroll .phone-screen img { animation: screen-scroll 30s var(--ease-io) 1.4s infinite alternate; }
}
@keyframes screen-scroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + var(--pw) * 2.03)); } }

.browser { border-radius: 12px; overflow: hidden; background: #0f0f0f; box-shadow: 0 0 0 1px #2a2a2a, 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #161616; color: var(--muted); font-size: 0.75rem; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.browser-bar span { margin-left: 10px; }
.browser img { width: 100%; }

/* ---------- Escenario de proyecto (fondo con el color del cliente) ---------- */
.stage {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: radial-gradient(120% 90% at 50% 0%, var(--tint, #1b1b1b) 0%, color-mix(in srgb, var(--tint, #1b1b1b) 40%, #0a0a0a) 55%, #0b0b0b 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  aspect-ratio: 16 / 11;
  display: flex; justify-content: center; align-items: flex-start; gap: 4%;
  padding-top: 7%;
}
.stage .phone { --pw: 25%; width: 25%; border-radius: 13% / 6%; padding: 0.8%; }
.stage .phone::after { top: 2.5%; height: 3.2%; }
.stage .phone-screen { border-radius: 11% / 5%; }
.stage .phone:nth-child(2) { width: 28%; margin-top: -2%; }
.stage .phone:nth-child(odd) { margin-top: 6%; }
.stage.is-duo .phone { width: 29%; }
.stage.is-duo .phone:nth-child(2) { margin-top: 0; }
.stage .browser { width: 78%; align-self: flex-start; }
.stage.is-web { align-items: flex-start; padding-top: 8%; }
.stage.is-web .phone { position: absolute; right: 7%; top: 22%; width: 22%; margin: 0; }
.stage img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) {
  a:hover .stage .phone { transform: translateY(-2%); }
}
.stage .phone { transition: transform 700ms var(--ease-out); }

/* ---------- Trabajos ---------- */
.work-grid { display: grid; gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 32px); }
@media (min-width: 880px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid .work-card.is-big { grid-column: 1 / -1; }
  .work-grid .work-card.is-big .stage { aspect-ratio: 16 / 8; }
  .work-grid .work-card.is-big .stage .phone { width: 18%; }
  .work-grid .work-card.is-big .stage .phone:nth-child(2) { width: 20%; }
}
.work-card[hidden] { display: none; }
.work-link { display: grid; gap: 22px; }
.work-meta { display: grid; gap: 10px; }
.work-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; transition: color 200ms ease; }
.work-type { font-weight: 650; color: var(--ink); font-size: 0.95rem; }
.work-sum { color: var(--muted); max-width: 56ch; }
.work-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 0.92rem; margin-top: 4px; }
.work-go .ic { transition: transform 200ms var(--ease-out); color: var(--red); }
@media (hover: hover) {
  .work-link:hover .work-title { color: var(--red); }
  .work-link:hover .work-go .ic { transform: translate(3px, -3px); }
}
.more { margin-top: clamp(40px, 6vw, 64px); }

.filters { margin-bottom: clamp(32px, 5vw, 56px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters .chip-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-n { font-size: 0.78rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.empty { padding: 48px 0; display: grid; gap: 14px; justify-items: start; }
.empty[hidden] { display: none; }
.empty-t { font-family: var(--display); font-size: 2.2rem; line-height: 1; }

/* Propuestas */

/* ---------- Servicios (índice) ---------- */
.svc-index { border-top: 1px solid var(--line); }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a { display: grid; gap: 8px; padding: clamp(22px, 3vw, 34px) 0; position: relative; }
.svc-index .svc-name { font-family: var(--display); font-size: clamp(2.5rem, 7vw, 5rem); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; transition: color 220ms ease, transform 500ms var(--ease-out); }
.svc-index .svc-outcome { color: var(--muted); max-width: 46ch; }
.svc-index .svc-arrow { position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; color: var(--red); display: none; transition: transform 300ms var(--ease-out); }
@media (min-width: 880px) {
  .svc-index a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 48px; align-items: center; gap: 40px; }
  .svc-index .svc-arrow { position: static; margin: 0; display: block; justify-self: end; }
}
@media (hover: hover) {
  .svc-index a:hover .svc-name { color: var(--red); transform: translateX(8px); }
  .svc-index a:hover .svc-arrow { transform: translate(4px, -4px); }
}

/* ---------- Preguntas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 24px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 650; line-height: 1.35; }
.faq-sign { position: relative; width: 20px; height: 20px; flex: none; }
.faq-sign::before, .faq-sign::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--red); transition: transform 300ms var(--ease-out); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-a { padding-bottom: 26px; color: var(--ink-2); max-width: 70ch; }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .split-aside { position: sticky; top: calc(var(--head-h) + 32px); }
}
.split-aside .sec-head { margin-bottom: 28px; }

/* ---------- Pie ---------- */
.site-foot { padding-top: clamp(72px, 10vw, 120px); padding-bottom: calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 40px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink-2); transition: color 160ms ease; }
.foot-grid a:hover { color: var(--ink); }
.foot-h { font-family: var(--text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-brand p { color: var(--muted); max-width: 36ch; margin-top: 14px; }
.foot-word { margin-top: clamp(64px, 9vw, 110px); font-family: var(--display); font-size: calc((min(100vw, calc(var(--wrap) + var(--gutter) * 2)) - var(--gutter) * 2) / 5.3); line-height: 0.8; letter-spacing: 0.005em; white-space: nowrap; color: var(--panel-2); user-select: none; }
.foot-word .dot { color: var(--red); }
.foot-base { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Barra fija en el celular ---------- */
.dock {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(20, 20, 20, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(140%); transition: transform 420ms var(--ease-out);
}
.dock.is-on { transform: none; }
.dock .btn-primary { flex: 1; }
@media (min-width: 960px) { .dock { display: none; } }

/* ---------- Servicios: páginas ---------- */
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.88rem; font-weight: 600; color: var(--ink-2); transition: border-color 200ms ease, color 200ms ease; }
.jump a:hover { border-color: var(--ink); color: var(--ink); }
.svc-blocks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-block { display: grid; gap: 28px; padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 8px); }
.svc-block-head { display: grid; gap: 16px; align-content: start; }
.svc-block h2 { font-size: clamp(2.8rem, 6.4vw, 5rem); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.svc-outcome-lg { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; color: var(--ink); line-height: 1.35; max-width: 34ch; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.svc-hero .svc-outcome-lg { margin-top: 24px; }
.svc-hero .hero-lead { margin-top: 14px; }
.svc-shot { margin-top: 12px; }
.svc-shot .phone { --pw: clamp(170px, 42vw, 240px); }
.svc-foot { align-items: center; gap: 24px !important; }
.svc-block-head p { color: var(--ink-2); max-width: 52ch; }
.feat-inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feat-inline li, .chips-static li { font-size: 0.86rem; font-weight: 550; padding: 7px 13px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); }
.chips-static { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-ex { color: var(--muted); }
.svc-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 960px) { .svc-block { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } .svc-block-body { display: grid; gap: 18px; align-content: start; } }
.svc-block-body { display: grid; gap: 18px; align-content: start; }

.note { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-input); background: var(--panel); color: var(--ink-2); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 600; }
.facts a { display: inline-flex; align-items: center; gap: 6px; }
.feat-grid { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feat-grid li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.feat-grid h3 { font-size: 1.05rem; font-weight: 700; }
.feat-grid p { color: var(--muted); }
@media (min-width: 720px) { .feat-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; } .feat-grid li:nth-child(-n+2) { border-top: 1px solid var(--line); } }
.aside-label { margin-top: 28px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ---------- Caso de estudio ---------- */
.case-hero .display-2 { max-width: 12ch; }
.case-cover { margin-top: clamp(40px, 6vw, 72px); }
.case-cover .stage { aspect-ratio: 16 / 9; }
.case-cover .stage .phone { width: 20%; }
.case-cover .stage .phone:nth-child(2) { width: 22%; }
.case-cover .stage.is-web .phone { width: 17%; }
@media (max-width: 719px) { .case-cover .stage { aspect-ratio: 4 / 3.6; } .case-cover .stage .phone { width: 27%; } .case-cover .stage .phone:nth-child(2) { width: 30%; } .case-cover .stage.is-web .phone { width: 26%; } }
.story { padding-block: var(--section) 0; display: grid; gap: 0; }
.story-row { display: grid; gap: 16px; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.story-h { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.story-b { display: grid; gap: 16px; color: var(--ink-2); max-width: 68ch; }
@media (min-width: 880px) { .story-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; } }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.check-list .ic { color: var(--red); width: 20px; height: 20px; margin-top: 3px; }
@media (min-width: 720px) { .check-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.story-cats { margin-top: 8px; color: var(--muted); }

.gallery-sec .h3 { margin-bottom: 32px; }
.rail, .rail[role='list'] { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1416px) { .rail[role='list'] { padding-inline: calc((100vw - var(--wrap)) / 2); } }
.rail > li { scroll-snap-align: start; flex: none; display: grid; gap: 14px; }
.rail .phone { --pw: clamp(200px, 56vw, 270px); }
.rail figcaption, .rail .cap { font-size: 0.9rem; color: var(--muted); max-width: 28ch; }
.live-row { margin-top: 32px; }
.next-case { margin-top: var(--section); }
.next-case a { display: grid; gap: 8px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.next-arrow .ic { display: inline-block; width: 0.6em; height: 0.6em; color: var(--red); vertical-align: 0.1em; transition: transform 300ms var(--ease-out); }
.next-case a:hover .next-arrow .ic { transform: translate(6px, -6px); }
.next-name { font-family: var(--display); font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: 0.9; letter-spacing: 0.005em; text-transform: uppercase; transition: color 220ms ease; }
.next-type { color: var(--ink-2); }
.next-case a:hover .next-name { color: var(--red); }

/* ---------- Nosotros ---------- */
.prose { display: grid; gap: 20px; color: var(--ink-2); font-size: 1.08rem; max-width: 64ch; }
.principles { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.principles h3 { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; font-weight: 400; letter-spacing: 0.01em; }
.principles p { color: var(--muted); max-width: 60ch; }
@media (min-width: 880px) { .principles li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: baseline; } }
.g-t { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: 0.01em; }
.grow { display: grid; gap: 48px; }
.grow-h { font-family: var(--text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.grow-col:first-child .grow-h { color: var(--red); }
.grow-row { display: grid; gap: 6px; padding: 22px 0; }
.grow .svc-name { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
@media (min-width: 960px) { .grow { grid-template-columns: 1fr 1fr; gap: 64px; } }
.live-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.live-list a { display: grid; gap: 14px; }
.live-list .stage { aspect-ratio: 16 / 10; }
.live-list strong { font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1; letter-spacing: 0.01em; display: block; }
.live-list .live-url { color: var(--muted); font-size: 0.92rem; }
.live-list a:hover strong { color: var(--red); }
@media (min-width: 720px) { .live-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; } .contact-aside { position: sticky; top: calc(var(--head-h) + 32px); } }
.lead-form { display: grid; gap: 40px; }
.field-group { border: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.fg-legend { font-family: var(--display); font-size: 2rem; line-height: 1; letter-spacing: 0.01em; padding: 0; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.req-note, .opt { font-family: var(--text); font-size: 0.82rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.92rem; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; border-radius: var(--r-input);
  background: var(--panel); border: 1px solid var(--line-2); color: var(--ink);
  padding: 14px 16px; font-size: 16px; line-height: 1.4;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c8c8c8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a8a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #555; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #181818; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red-hi); }
.field-error { color: #ff7a70; font-size: 0.88rem; font-weight: 550; }
.field-error[hidden] { display: none; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.93rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); user-select: none; }
.chip-check span:hover { border-color: var(--ink-2); color: var(--ink); }
.chip-check span:active { transform: scale(0.97); }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-check input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
[data-needs].is-invalid .chip-check span { border-color: var(--red-hi); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; justify-items: start; }
.form-alert { padding: 14px 18px; border-radius: var(--r-input); background: #2a0f0d; color: #ffb4ad; font-weight: 550; }
.form-alert[hidden] { display: none; }
.done { display: grid; gap: 20px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-card); background: var(--panel); }
.done[hidden] { display: none; }
.done-mark { width: 56px; height: 56px; border-radius: 999px; background: var(--red-fill); color: var(--on-red); display: grid; place-items: center; }
.done-mark .ic { width: 28px; height: 28px; }
.done .h2 { font-size: clamp(2.6rem, 6vw, 4rem); }
.done-sum { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.done-sum > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.done-sum dt { color: var(--muted); font-size: 0.9rem; }
.done-sum dd { margin: 0; font-weight: 600; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-aside { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-card); overflow: hidden; }
.aside-block { background: var(--panel); padding: 28px; display: grid; gap: 14px; justify-items: start; }
.aside-block p { color: var(--muted); }
.copy-line { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink) !important; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.copy-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.next-steps { padding-left: 1.2em; display: grid; gap: 12px; color: var(--muted); }
.next-steps strong { color: var(--ink); }

/* ---------- Varias ---------- */
.nf { min-height: 70vh; display: grid; align-content: center; }
.nf .display-2 { font-size: clamp(5rem, 24vw, 16rem); line-height: 0.85; color: var(--red); }
.dash-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dash-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.dash-list p { color: var(--muted); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* =====================================================================
   Zerufy Studio 2.0
   ===================================================================== */

/* ---------- Encabezado mínimo ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 24px; transition: height 400ms var(--ease-out); }
.site-head.is-scrolled .head-row { height: var(--head-h-s); }
.brand { display: inline-flex; align-items: baseline; font-family: var(--display); font-size: 1.75rem; letter-spacing: 0.03em; line-height: 1; padding-top: 3px; transition: font-size 400ms var(--ease-out); position: relative; z-index: 2; }
.site-head.is-scrolled .brand { font-size: 1.5rem; }
.brand .d, .brand .dot { color: var(--red); }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 36px; list-style: none; padding: 0; }
.nav a { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0; position: relative; transition: color 160ms ease; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page'] { color: var(--ink); }
.head-cta { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 250ms ease, border-color 250ms ease; }
.head-cta .ic { color: var(--red); transition: transform 300ms var(--ease-out), color 250ms ease; }
.head-cta:hover { background: var(--red-fill); border-color: var(--red-fill); }
.head-cta:hover .ic { color: #fff; }

.menu-btn { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); position: relative; z-index: 2; }
.menu-lines { width: 20px; height: 10px; position: relative; }
.menu-lines i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 400ms var(--ease-out), top 400ms var(--ease-out); }
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { top: 8px; }
.site-head.is-open .menu-lines i:first-child { top: 4px; transform: rotate(45deg); }
.site-head.is-open .menu-lines i:last-child { top: 4px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 1; background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 700ms var(--ease-io), visibility 0s linear 700ms;
}
.site-head.is-open .sheet { clip-path: inset(0); visibility: visible; transition: clip-path 700ms var(--ease-io); }
.sheet-inner { padding-top: calc(var(--head-h) + 24px); padding-bottom: calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; min-height: 100%; }
.sheet-main { list-style: none; padding: 0; }
.sheet-main li { overflow: hidden; border-bottom: 1px solid var(--line); }
.sheet-main a { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-size: clamp(3.2rem, 16vw, 5rem); line-height: 1.02; letter-spacing: 0.01em; padding: 8px 0 4px; transform: translateY(105%); transition: transform 700ms var(--ease-out); }
.site-head.is-open .sheet-main a { transform: none; transition-delay: calc(200ms + var(--i) * 60ms); }
.sheet-n { font-family: var(--text); font-size: 0.8rem; font-weight: 700; color: var(--red); letter-spacing: 0.08em; }
.sheet-main a[aria-current='page'] { color: var(--red); }
.sheet-label { margin-top: 32px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sheet-services { list-style: none; padding: 0; margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sheet-services a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--ink-2); font-weight: 550; font-size: 0.95rem; }
.sheet-actions { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
.sheet-label, .sheet-services, .sheet-actions { opacity: 0; transition: opacity 400ms ease; }
.site-head.is-open .sheet-label, .site-head.is-open .sheet-services, .site-head.is-open .sheet-actions { opacity: 1; transition-delay: 500ms; }
@media (min-width: 960px) {
  .nav { display: block; }
  .head-cta { display: inline-flex; }
  .menu-btn, .sheet { display: none; }
}

/* ---------- Titulares por líneas ---------- */
.line { display: block; overflow: hidden; padding: 0.14em 0 0.06em; margin: -0.14em 0 -0.06em; }
.line > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .line > span { transform: translateY(108%); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .in .line > span, .js .line.in > span { transform: none; }
}

/* ---------- Hero ---------- */
.hx { position: relative; min-height: 100svh; display: flex; align-items: stretch; overflow: clip; isolation: isolate; }
.hx-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: calc(var(--head-h) + clamp(20px, 5vh, 56px)); padding-bottom: clamp(28px, 5vh, 56px); pointer-events: none; }
.hx-inner a { pointer-events: auto; }
.hx-t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.2rem, 20.4vw, 13.5rem); line-height: 0.84; letter-spacing: 0.004em; }
.hx-t em { font-style: normal; color: var(--red); }
.hx-dot { display: inline-block; color: var(--red); transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0); transition: transform 600ms var(--ease-out); }
.hx-foot { display: grid; gap: 22px; align-items: end; }
.hx-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 880px) { .hx-foot { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

.hx-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hx-field::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 42%, rgba(10,10,10,0.1) 75%), linear-gradient(0deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.85) 14%, rgba(10,10,10,0) 34%); }
.hc { position: absolute; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); will-change: transform; }
.hc-in { border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.hc-in img { width: 100%; height: auto; display: block; }
.hc:not(.is-web) .hc-in { aspect-ratio: 540 / 900; }
.hc:not(.is-web) .hc-in img { height: 100%; object-fit: cover; object-position: top; }
.hc-bar { display: flex; gap: 5px; align-items: center; height: 20px; padding: 0 10px; background: #161616; }
.hc-bar i { width: 6px; height: 6px; border-radius: 50%; background: #333; }
.hc-1 { left: 60%; top: 47%; width: 30%; }
.hc-2 { left: 87%; top: 14%; width: 10.5%; }
.hc-3 { display: none; }
.hc-4 { left: 57%; top: 9%; width: 27%; }
.hc-5 { left: 92%; top: 50%; width: 9%; }
.hc-6 { display: none; }
.hc-7 { display: none; }
@media (max-width: 879px) {
  .hx-field::after { background: linear-gradient(180deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.35) 32%, rgba(10,10,10,0.35) 52%, rgba(10,10,10,1) 72%); }
  .hc-1 { left: 16%; top: 36%; width: 80%; }
  .hc-2 { left: -8%; top: 31%; width: 30%; }
  .hc-3 { display: block; left: 78%; top: 27%; width: 28%; }
  .hc-4 { display: none; }
  .hc-5, .hc-6, .hc-7 { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hc-in { opacity: 0; transform: translateY(40px) scale(0.96); transition: opacity 1200ms var(--ease-out), transform 1400ms var(--ease-out); transition-delay: calc(300ms + var(--i) * 90ms); }
  .js .hx.in .hc-in { opacity: 1; transform: none; }
  .js .hx-foot { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease-out) 500ms, transform 900ms var(--ease-out) 500ms; }
  .js .hx.in .hx-foot { opacity: 1; transform: none; }
}

/* ---------- Secciones fijadas con scroll ---------- */
[data-scrolly] { position: relative; }
.inst { height: calc(100svh + var(--n, 5) * 110svh); border-top: 1px solid var(--line); }
.inst-pin, .sys-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.inst-grid { display: grid; gap: 20px; align-items: center; height: 100%; padding-top: calc(var(--head-h-s) + 12px); padding-bottom: 28px; grid-template-rows: auto 1fr; }
.inst-t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 0.86; }
.inst-t em { font-style: normal; color: var(--red); }
.inst-sub { margin-top: 14px; color: var(--muted); font-weight: 600; }
.inst-list { margin-top: 36px; border-top: 1px solid var(--line); display: none; }
.inst-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color 400ms ease; }
.inst-n { font-family: var(--display); font-size: 1.3rem; transition: color 400ms ease; }
.inst-k { font-family: var(--display); font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1; text-transform: uppercase; transition: transform 600ms var(--ease-out); }
.inst-who { font-size: 0.82rem; font-weight: 600; text-align: right; display: grid; }
.inst-who small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b6b; }
.inst-list li.is-on { color: var(--ink); }
.inst-list li.is-on .inst-n { color: var(--red); }
.inst-list li.is-on .inst-k { transform: translateX(8px); }
.inst-stage { position: relative; display: grid; place-items: center; gap: 18px; min-height: 0; height: 100%; align-content: center; }
.inst-count { font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.04em; color: var(--muted); }
.inst-count span { color: var(--ink); display: inline-block; }
.inst-count span.tick { animation: tick 500ms var(--ease-out); }
@keyframes tick { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.inst-mob { font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; }

.dev {
  --dw: min(84vw, 360px); --dh: calc(var(--dw) * 0.625 + 26px);
  position: relative; width: var(--dw); height: var(--dh);
  border-radius: 14px; background: #050505;
  box-shadow: 0 0 0 1px #2a2a2a, 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px #000;
  transition: width 900ms var(--ease-io), height 900ms var(--ease-io), border-radius 900ms var(--ease-io), padding 900ms var(--ease-io);
  padding: 0;
}
.dev[data-shape='phone'] { --dw: clamp(180px, 48vw, 230px); --dh: calc(var(--dw) * 2.165); border-radius: calc(var(--dw) * 0.14); padding: calc(var(--dw) * 0.03); }
.dev-bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 12px; background: #151515; border-radius: 14px 14px 0 0; overflow: hidden; transition: height 600ms var(--ease-io), opacity 300ms ease; }
.dev-bar i { width: 7px; height: 7px; border-radius: 50%; background: #333; flex: none; }
.dev[data-shape='phone'] .dev-bar { height: 0; opacity: 0; }
.dev-screen { position: relative; overflow: hidden; background: #0e0e0e; height: calc(100% - 26px); border-radius: 0 0 14px 14px; transition: border-radius 900ms var(--ease-io), height 600ms var(--ease-io); }
.dev[data-shape='phone'] .dev-screen { height: 100%; border-radius: calc(var(--dw) * 0.11); }
.dev-scene { position: absolute; inset: 0; margin: 0; z-index: 1; opacity: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease-io), opacity 350ms ease 700ms; }
.dev-scene.is-on { z-index: 2; opacity: 1; clip-path: inset(0); transition: clip-path 1000ms var(--ease-io), opacity 0s; }
.dev-scene.is-out { opacity: 1; clip-path: inset(0); transition: opacity 400ms ease 650ms; opacity: 0; }
.dev-scene img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06); transition: transform 1400ms var(--ease-out); }
.dev-scene.is-on img { transform: none; }
.dev-scene.is-scroll img { height: auto; object-fit: initial; }
@media (prefers-reduced-motion: no-preference) {
  .dev-scene.is-scroll.is-on img { animation: dev-scroll 10s var(--ease-io) 700ms infinite alternate; }
}
@keyframes dev-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% + var(--dh) * 0.94)); } }
.inst-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; height: 2px; background: var(--line); }
.inst-bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (min-width: 960px) {
  .inst-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: none; gap: 56px; padding-top: calc(var(--head-h-s) + 24px); }
  .inst-list { display: block; }
  .inst-mob { display: none; }
  .dev { --dw: min(46vw, 760px); --dh: calc(var(--dw) * 0.625 + 26px); }
  .dev[data-shape='phone'] { --dw: clamp(220px, 17vw, 290px); }
}
@media (max-width: 959px) {
  .inst-copy { text-align: left; }
  .inst-sub { display: none; }
}

/* ---------- Servicios editoriales ---------- */
.svx-h { margin-bottom: clamp(40px, 6vw, 80px); }
.svx { border-top: 1px solid var(--line); }
.svx-row { border-bottom: 1px solid var(--line); }
.svx-row a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; column-gap: 12px; row-gap: 6px; align-items: baseline; padding: clamp(20px, 2.6vw, 34px) 0; position: relative; }
.svx-n { font-family: var(--display); font-size: 1.3rem; color: var(--muted); transition: color 300ms ease, transform 500ms var(--ease-out); display: inline-block; }
.svx-name { font-family: var(--display); font-size: clamp(2.5rem, 9vw, 5.8rem); line-height: 0.92; text-transform: uppercase; letter-spacing: 0.005em; transition: transform 600ms var(--ease-out), color 300ms ease; }
.svx-d { grid-column: 2; color: var(--muted); max-width: 40ch; }
.svx-go { grid-column: 3; grid-row: 1; justify-self: end; color: var(--muted); transition: transform 400ms var(--ease-out), color 300ms ease; }
.svx-go .ic { width: 26px; height: 26px; }
.svx-thumb { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--ease-out), margin 600ms var(--ease-out); overflow: hidden; }
.svx-thumb img { min-height: 0; width: 44vw; max-width: 220px; border-radius: 12px; box-shadow: 0 0 0 1px #2a2a2a; aspect-ratio: 540 / 700; object-fit: cover; object-position: top; }
.svx-thumb.is-wide img { width: 78vw; max-width: 420px; aspect-ratio: 16 / 10; }
.svx-row.is-active .svx-thumb { grid-template-rows: 1fr; margin-top: 14px; }
.svx-row.is-active .svx-n, .svx-row a:hover .svx-n { color: var(--red); }
.svx-row.is-active .svx-go { color: var(--red); }
.svx-soon { margin-top: 28px; color: var(--muted); }
@media (min-width: 880px) {
  .svx-row a { grid-template-columns: 72px minmax(0, 2fr) minmax(0, 1fr) 40px; align-items: center; column-gap: 24px; }
  .svx-name { white-space: nowrap; }
  .svx-d { grid-column: 3; }
  .svx-go { grid-column: 4; }
  .svx-thumb { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .svx-row a:hover .svx-n { transform: translateY(-6px); }
  .svx-row a:hover .svx-name { transform: translateX(18px); color: var(--ink); }
  .svx-row a:hover .svx-go { transform: translateX(6px); color: var(--red); }
  .svx:hover .svx-row a:not(:hover) .svx-name { color: #4a4a4a; }
}
.svx-float { position: fixed; left: 0; top: 0; z-index: 30; width: 230px; pointer-events: none; transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) rotate(var(--fr, 0deg)); opacity: 0; transition: opacity 300ms ease, width 400ms var(--ease-out); }
.svx-float.is-wide { width: 380px; }
.svx-float.is-on { opacity: 1; }
.svx-float img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px #2a2a2a, 0 40px 80px -20px rgba(0, 0, 0, 0.9); aspect-ratio: 540 / 760; object-fit: cover; object-position: top; clip-path: inset(100% 0 0 0 round 14px); transition: clip-path 500ms var(--ease-out); }
.svx-float.is-wide img { aspect-ratio: 16 / 10; }
.svx-float.is-on img { clip-path: inset(0 round 14px); }
@media (hover: none), (pointer: coarse) { .svx-float { display: none; } }

/* ---------- Trabajo seleccionado ---------- */
.sel { border-top: 1px solid var(--line); }
.sel-head { display: grid; gap: 20px; }
.fx { margin-top: clamp(72px, 10vw, 150px); }
.fx-link { display: grid; gap: 22px; }
.fx-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fx-meta span:nth-child(2) { color: var(--ink); }
.fx-idx { color: var(--red); }
.fx-media { position: relative; }
.fx-media img { transition: transform 1200ms var(--ease-out); }
.fx-body { display: grid; gap: 14px; }
.fx-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 11vw, 9.5rem); line-height: 0.86; letter-spacing: 0.004em; transition: transform 600ms var(--ease-out), color 300ms ease; }
.fx-sum { color: var(--ink-2); max-width: 46ch; }
.fx-go { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.fx-go .ic { color: var(--red); width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .fx-link:hover .fx-title { transform: translateX(14px); color: var(--red); }
  .fx-link:hover .fx-go .ic-go { transform: translateX(6px); }
  .fx-link:hover .fx-media img { transform: scale(1.025); }
}
.fx-full .stage { aspect-ratio: 4 / 3.6; }
.fx-full .stage .phone { width: 28%; }
.fx-full .stage .phone:nth-child(2) { width: 31%; }
@media (min-width: 880px) {
  .fx-full .stage { aspect-ratio: 16 / 8; }
  .fx-full .stage .phone { width: 17%; }
  .fx-full .stage .phone:nth-child(2) { width: 19%; }
  .fx-full .fx-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .fx-full .fx-title { grid-row: span 2; }
}
.fx-asym-media { padding-bottom: 12%; }
.fx-asym-media .browser { border-radius: 14px; }
.fx-asym-media .fx-float { position: absolute; right: 4%; bottom: 0; --pw: 27%; width: 27%; border-radius: 13% / 6%; padding: 1%; }
.fx-asym-media .fx-float::after { top: 2.6%; height: 3.2%; }
.fx-asym-media .fx-float .phone-screen { border-radius: 11% / 5%; }
@media (min-width: 880px) {
  .fx-asym .fx-link { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 64px); }
  .fx-asym .fx-meta { grid-column: 1 / -1; }
  .fx-asym .fx-media { grid-column: 2; grid-row: 2; }
  .fx-asym .fx-body { grid-column: 1; grid-row: 2; align-self: end; padding-bottom: 12%; }
  .fx-asym .fx-title { font-size: clamp(3.4rem, 7vw, 7rem); }
  .fx-asym-media .fx-float { right: -3%; width: 22%; --pw: 22%; }
}
.fx-strip { display: flex; gap: clamp(14px, 3vw, 40px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-card); background: radial-gradient(120% 90% at 50% 0%, var(--tint) 0%, color-mix(in srgb, var(--tint) 40%, #0a0a0a) 55%, #0b0b0b 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.fx-strip::-webkit-scrollbar { display: none; }
.fx-strip .phone { --pw: clamp(190px, 56vw, 260px); scroll-snap-align: center; }
.fx-strip .phone:nth-child(2) { margin-top: 36px; }
@media (min-width: 880px) {
  .fx-strip { justify-content: center; overflow: visible; }
  .fx-strip .phone { --pw: clamp(200px, 19vw, 280px); }
  .fx-strip .phone:nth-child(2) { margin-top: 64px; }
}
[data-clip] { clip-path: inset(0 0 0 0 round var(--r-card)); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-clip] { clip-path: inset(18% 6% 0 6% round var(--r-card)); transition: clip-path 1400ms var(--ease-out); }
  .js [data-clip].in { clip-path: inset(0 0 0 0 round var(--r-card)); }
  .js .fx-asym-media[data-clip] { clip-path: inset(18% 6% 0 6%); }
  .js .fx-asym-media[data-clip].in { clip-path: inset(-20% -20% -20% -20%); }
}

/* Más trabajos */
.mw-sec { margin-top: clamp(96px, 12vw, 180px); }
.mw-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.mw-ctrl { display: none; gap: 8px; }
.mw-btn { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color 200ms ease, background-color 200ms ease; }
.mw-btn:hover { border-color: var(--ink); }
.mw-btn:disabled { opacity: 0.3; }
.mw-rail, .mw-rail[role='list'] { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
.mw-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1416px) { .mw-rail[role='list'] { padding-inline: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); } }
.mw { flex: none; width: clamp(270px, 76vw, 440px); scroll-snap-align: start; }
.mw a { display: grid; gap: 10px; }
.mw .stage { aspect-ratio: 5 / 4; padding-top: 8%; }
.mw .stage .phone { width: 33%; }
.mw .stage .phone:nth-child(2) { width: 33%; margin-top: 9%; }
.mw .stage.is-web .browser { width: 84%; }
.mw .stage.is-web .phone { width: 24%; right: 5%; top: 30%; }
.mw-name { margin-top: 8px; font-family: var(--display); font-size: 2.2rem; line-height: 1; text-transform: uppercase; transition: color 300ms ease; }
.mw-meta { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mw a:hover .mw-name { color: var(--red); }
.link-go { margin-top: 40px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.link-go .ic { color: var(--red); }
@media (min-width: 960px) { .mw-ctrl { display: flex; } .mw { width: clamp(340px, 30vw, 460px); } }

/* ---------- Cursor de proyecto ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 80; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--red-fill); color: #fff; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(var(--cs, 0)); transition: transform 380ms var(--ease-out); }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* ---------- El sistema ---------- */
.sys { height: calc(100svh + var(--n, 5) * 65svh); border-top: 1px solid var(--line); background: var(--bg-2); }
.sys-grid { display: grid; gap: 18px; height: 100%; align-content: center; padding-top: calc(var(--head-h-s) + 8px); padding-bottom: 20px; }
.sys-copy .h2 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); }
.sys-copy .lead { margin-top: 14px; }
.sys-steps { margin-top: 28px; border-top: 1px solid var(--line); display: none; }
.sys-steps li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 650; color: var(--muted); transition: color 300ms ease; }
.sys-steps li span { font-family: var(--display); font-size: 1.2rem; transition: color 300ms ease; }
.sys-steps li.is-on { color: var(--ink); }
.sys-steps li.is-on span { color: var(--red); }
.sys-note { margin-top: 16px; font-size: 0.82rem; color: #7d7d7d; }
.sys-app { display: grid; justify-items: center; min-height: 0; }
@media (min-width: 960px) {
  .sys-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
  .sys-steps { display: block; }
}
@media (max-width: 959px) {
  .sys-copy .lead { display: none; }
  .sys-steps { display: block; margin-top: 12px; border: 0; }
  .sys-steps li { display: none; border: 0; padding: 0; font-size: 1.05rem; }
  .sys-steps li.is-on { display: flex; }
  .sys-note { margin-top: 6px; }
}

.app {
  --cream: #f7f1e3; --paper: #fffdf8; --maroon: #7c1d12; --ink-a: #231a14; --mut-a: #6f6152;
  width: min(480px, 100%); position: relative; overflow: hidden;
  background: var(--cream); color: var(--ink-a); border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 60px 120px -40px rgba(0, 0, 0, 0.95);
  font-size: 13px; line-height: 1.3; padding-bottom: 10px;
}
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.app-brand { font-weight: 600; }
.app-brand b { color: var(--maroon); font-weight: 800; }
.app-user { font-size: 11px; font-weight: 700; color: var(--mut-a); letter-spacing: 0.06em; text-transform: uppercase; }
.app-tabs { display: flex; gap: 6px; padding: 0 14px 12px; }
.app-tabs span { padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 12px; color: var(--mut-a); background: rgba(124, 29, 18, 0.06); position: relative; }
.app-tabs .on { background: var(--maroon); color: #fff; }
.app-orders i { position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%; background: #d62f24; color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; transform: scale(0); transition: transform 400ms var(--ease-out); }
.app-list { padding: 0 14px; }
.app-cat { display: flex; justify-content: space-between; font-weight: 800; color: var(--maroon); padding: 10px 4px 6px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.app-cat span { color: var(--mut-a); }
.app-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 34px; gap: 10px; align-items: center; padding: 8px; margin-bottom: 6px; border-radius: 12px; background: var(--paper); box-shadow: 0 1px 0 rgba(35, 26, 20, 0.06); transition: opacity 400ms ease, background-color 600ms ease, max-height 700ms var(--ease-out), padding 700ms var(--ease-out), margin 700ms var(--ease-out); max-height: 70px; }
.app-row.no-ph { grid-template-columns: minmax(0, 1fr) auto 34px; }
.app-row img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.app-info { display: grid; gap: 2px; min-width: 0; }
.app-info b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-info small { color: var(--mut-a); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-fav, .app-out { justify-self: start; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--maroon); color: #fff; display: none; }
.app-out { background: #3a302a; }
.app-price { font-weight: 800; color: var(--maroon); font-variant-numeric: tabular-nums; position: relative; display: inline-grid; }
.app-price > span { grid-area: 1 / 1; transition: transform 500ms var(--ease-out), opacity 400ms ease; }
.pr-new { opacity: 0; transform: translateY(80%); }
.sw { width: 34px; height: 20px; border-radius: 99px; background: #cfc5b6; position: relative; transition: background-color 300ms ease; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 300ms var(--ease-out); }
.sw.on { background: #2f8f4e; }
.sw.on::after { transform: translateX(14px); }
.r-new { max-height: 0; padding-block: 0; margin-bottom: 0; opacity: 0; overflow: hidden; }
.app-toast { position: absolute; left: 50%; top: 12px; z-index: 3; transform: translate(-50%, -160%); padding: 9px 14px; border-radius: 99px; background: var(--ink-a); color: #fff; font-weight: 700; font-size: 12px; white-space: nowrap; transition: transform 500ms var(--ease-out); }
.app-toast.show { transform: translate(-50%, 0); }
.app-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--paper); border-radius: 20px 20px 0 0; padding: 16px 18px 58px; display: grid; gap: 9px; box-shadow: 0 -20px 40px -10px rgba(35, 26, 20, 0.25); transform: translateY(105%); transition: transform 700ms var(--ease-out); }
.app-sheet-t { font-weight: 800; color: var(--maroon); font-size: 14px; }
.app-sheet label { display: grid; gap: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut-a); }
.app-sheet label span { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink-a); padding: 8px 10px; border-radius: 8px; background: var(--cream); }
.app-sheet-sw { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.app-save { justify-self: end; padding: 8px 16px; border-radius: 99px; background: var(--maroon); color: #fff; font-weight: 800; }
.app-order { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 4; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -12px rgba(35, 26, 20, 0.4); transform: translateY(-140%); transition: transform 700ms var(--ease-out); }
.app-order-ic { width: 34px; height: 34px; border-radius: 10px; background: #25d366; color: #fff; display: grid; place-items: center; }
.app-order-ic .ic { width: 20px; height: 20px; }
.app-order b { display: block; font-weight: 800; }
.app-order small { color: var(--mut-a); font-size: 11px; }
/* estados (acumulativos) */
.app.st-0 .r-new { max-height: 70px; padding-block: 8px; margin-bottom: 6px; opacity: 1; }
.app.st-0:not(.st-1) .r-new { background: #fff3cf; }
.app.st-1 .pr-old { opacity: 0; transform: translateY(-80%); }
.app.st-1 .pr-new { opacity: 1; transform: none; }
.app.st-1:not(.st-2) .r-fresa { background: #fff3cf; }
.app.st-2 .r-mora { opacity: 0.5; }
.app.st-2 .sw-mora { background: #cfc5b6; }
.app.st-2 .sw-mora::after { transform: none; }
.app.st-2 .app-out { display: inline-block; }
.app[data-step='3'] .app-sheet { transform: none; }
.app[data-step='3'] .sw-fav { background: #2f8f4e; }
.app[data-step='3'] .sw-fav::after { transform: translateX(14px); transition-delay: 500ms; }
.app.st-3:not([data-step='3']) .app-fav { display: inline-block; }
.app.st-4 .app-order { transform: none; }
.app.st-4 .app-orders i { transform: scale(1); }
@media (max-width: 959px) {
  .app { width: min(360px, 88vw); font-size: 12px; }
  .app-row { padding: 6px; margin-bottom: 5px; }
}
@media (max-height: 760px) and (max-width: 959px) { .app .app-row:last-child { display: none; } }

/* ---------- Cómo trabajamos ---------- */
.proc { border-top: 1px solid var(--line); }
.tl { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.tl-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tl-line i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--tp, 0)); }
.tl-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 5vw, 64px) 24px; border-bottom: 1px solid var(--line); }
.tl-n { font-family: var(--display); font-size: 1.6rem; color: var(--muted); transition: color 400ms ease; }
.tl-t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: 0.88; color: #505050; transition: color 600ms ease; }
.tl-step p { margin-top: 12px; color: var(--muted); max-width: 40ch; font-size: 1.05rem; }
.tl-step.is-on .tl-n { color: var(--red); }
.tl-step.is-on .tl-t { color: var(--ink); }
@media (min-width: 880px) {
  .tl-step { grid-template-columns: 120px minmax(0, 1fr); padding-left: 40px; }
  .tl-step > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
  .tl-step p { margin: 0 0 0.6em; }
}

/* ---------- Manifiesto ---------- */
.mani { border-top: 1px solid var(--line); padding-block: clamp(120px, 16vw, 240px); }
.mani-t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 13vw, 11.5rem); line-height: 0.86; }
.mani-t em { font-style: normal; color: var(--red); }
.mani-p { margin-top: clamp(40px, 6vw, 80px); margin-left: auto; max-width: 24ch; font-size: clamp(1.45rem, 3.1vw, 2.7rem); font-weight: 650; line-height: 1.22; letter-spacing: -0.015em; }
.mani-p .w { color: #4a4a4a; transition: color 400ms ease; }
.mani-p .w.on { color: var(--ink); }
@media (max-width: 879px) { .mani-p { margin-left: 0; } }

/* ---------- Identidad ---------- */
.idn { border-top: 1px solid var(--line); }
.idn-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.idn-grid > * { background: var(--bg); }
.idn-word { font-family: var(--display); font-size: clamp(4.4rem, 22vw, 12rem); line-height: 0.84; text-transform: uppercase; padding: clamp(24px, 3vw, 40px); }
.idn-word .idn-dot { color: var(--red); }
.idn-cell { padding: clamp(24px, 3vw, 40px); display: grid; gap: 8px; align-content: start; }
.idn-aa { font-size: clamp(5rem, 12vw, 9rem); line-height: 0.9; }
.idn-bebas .idn-aa { font-family: var(--display); }
.idn-mont .idn-aa { font-family: var(--text); font-weight: 700; letter-spacing: -0.04em; }
.idn-name { margin-top: 10px; font-weight: 700; }
.idn-use { color: var(--muted); }
.idn-abc { margin-top: 14px; color: #808080; word-break: break-word; }
.idn-bebas .idn-abc { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.04em; line-height: 1.1; }
.idn-mont .idn-abc { font-size: 1.05rem; }
.idn-sw { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 20px; min-height: 160px; font-weight: 700; }
.idn-sw code { font-family: var(--text); font-size: 0.82rem; font-weight: 600; opacity: 0.75; }
.idn-sw.sw-k { background: #0a0a0a; color: var(--ink); box-shadow: inset 0 0 0 1px #1f1f1f; }
.idn-sw.sw-w { background: #f4f4f4; color: #0a0a0a; }
.idn-sw.sw-r { background: var(--red); color: #fff; }
.idn-note { margin-top: 20px; color: var(--muted); }
@media (min-width: 880px) {
  .idn-grid { grid-template-columns: repeat(12, 1fr); }
  .idn-word { grid-column: 1 / 7; grid-row: span 2; align-self: stretch; display: flex; align-items: end; }
  .idn-bebas { grid-column: 7 / 10; }
  .idn-mont { grid-column: 10 / 13; }
  .idn-sw { min-height: 200px; }
  .idn-sw.sw-k { grid-column: 7 / 9; }
  .idn-sw.sw-w { grid-column: 9 / 11; }
  .idn-sw.sw-r { grid-column: 11 / 13; }
}

/* ---------- Cierre ---------- */
.fin { padding-block: clamp(120px, 16vw, 230px); border-top: 1px solid var(--line); }
.fin-t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 12.5vw, 11.5rem); line-height: 0.86; }
.fin-t em { font-style: normal; color: var(--red); }
.fin-q { color: #6a6a6a; }
.fin-actions { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 10px; }
.fin-wa { margin-top: 28px; color: var(--muted); }

/* ---------- Movimiento general ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dev, .dev-scene, .dev-scene img, .app *, .inst-list li *, .svx-row *, .tl-t { transition: none !important; }
}
.inst-foot { display: flex; align-items: baseline; gap: 16px; justify-content: center; }
.inst-mob { display: grid; font-size: 1.6rem; }
.inst-mob small { font-family: var(--text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
@media (min-width: 960px) { .inst-mob { display: none; } }

/* ---------- Casos 2.0 ---------- */
.case-meta { margin-top: 26px; max-width: 720px; }
.case-meta .is-live { color: var(--red); }
.case-t { margin-top: 14px; }
.chaps { border-top: 1px solid var(--line); }
.chaps > .wrap > .h2 { margin-bottom: clamp(24px, 4vw, 48px); }
.chap { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 88px); border-top: 1px solid var(--line); align-items: center; }
.chap-copy { display: grid; gap: 12px; align-content: start; }
.chap-n { font-family: var(--display); font-size: 1.4rem; color: var(--red); }
.chap-t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.9; }
.chap-copy p { color: var(--ink-2); max-width: 44ch; font-size: 1.05rem; }
.chap-note { font-size: 0.85rem !important; color: var(--muted) !important; }
.chap-media { display: flex; gap: clamp(12px, 2.4vw, 28px); justify-content: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-card); background: var(--panel); }
.chap-media .phone { --pw: clamp(150px, 38vw, 250px); }
.chap-media.is-duo .phone:nth-child(2) { margin-top: 48px; }
.chap-media.is-web { display: block; padding: clamp(16px, 3vw, 40px); }
.chap.is-text .chap-copy { max-width: 820px; }
@media (min-width: 960px) {
  .chap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .chap:nth-child(odd of .chap):not(.is-text) .chap-copy { order: 2; }
  .chap.is-text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .chap.is-text .chap-copy { grid-column: 1 / -1; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; column-gap: 24px; }
  .chap.is-text .chap-copy p { grid-column: 3; }
  .chap.is-text .chap-t { grid-column: 2; grid-row: 1 / span 2; }
}
.con-lead { margin-bottom: clamp(32px, 5vw, 56px); }
.con-web { margin: 0 0 clamp(40px, 6vw, 72px); }
.con-grid { display: grid; gap: 40px; align-items: center; }
.con-phones { display: flex; gap: clamp(12px, 2.4vw, 28px); justify-content: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-card); background: var(--panel); }
.con-phones .phone { --pw: clamp(150px, 38vw, 250px); }
.con-phones .phone:nth-child(2) { margin-top: 48px; }
.con-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.4rem; line-height: 1; margin-bottom: 20px; }
.con-grid .check-list { grid-template-columns: 1fr; }
@media (min-width: 960px) { .con-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.work-type .tag { margin-left: 8px; }

/* ---------- Contacto 2.0 ---------- */
.fg-legend { font-size: clamp(2rem, 4vw, 2.8rem); }
.fg-n { font-family: var(--text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--red); align-self: center; }
.lead-form .field-group { padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .field-wide { grid-column: 1 / -1; } }
.lead-form[hidden] { display: none; }

/* ---------- Ajustes de revisión ---------- */
.fx-note { font-size: 0.82rem; color: var(--muted); }
@media (min-width: 960px) { .app { font-size: 14px; } .app-row { grid-template-columns: 46px minmax(0, 1fr) auto 36px; } .app-row img { width: 46px; height: 46px; } }
/* Manifiesto sobre rojo: cambia el ritmo de la página */
.mani { background: var(--red); color: #0a0a0a; border-top: 0; }
.mani ::selection { background: #0a0a0a; color: #fff; }
.mani-t em { color: #fff; }
.mani-p .w { color: rgba(10, 10, 10, 0.3); }
.mani-p .w.on { color: #0a0a0a; }
/* Instalación en el celular: el dispositivo ocupa el espacio disponible */
@media (max-width: 959px) {
  .inst-grid { grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding-top: calc(var(--head-h-s) + 8px); padding-bottom: 22px; }
  .inst-t { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .dev { --dw: min(92vw, 420px); }
  .dev[data-shape='phone'] { --dw: min(62vw, calc((100svh - var(--head-h-s) - 250px) / 2.165)); }
  .inst-stage { align-content: center; gap: 14px; }
}
/* Tira de Zerufy en el celular: empieza alineada, sin cortar el primer teléfono */
@media (max-width: 879px) {
  .fx-strip { scroll-padding-inline: clamp(28px, 5vw, 64px); }
  .fx-strip .phone { scroll-snap-align: start; }
}

/* Páginas de servicio: formato del pitch (te damos / tú controlas / nosotros / cómo funciona) */
.gives { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 18px; }
.gives li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink-2); }
.gives .ic { color: var(--red); width: 18px; height: 18px; margin-top: 3px; }
.gives-lg { gap: 0; border-top: 1px solid var(--line); margin: 0; }
.gives-lg li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink); }
.gives-lg .ic { width: 20px; height: 20px; margin-top: 2px; }
.ctl { background: var(--bg-2); border-block: 1px solid var(--line); }
.ctl-grid { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 599px) { .ctl-grid li { padding: 16px; } .ctl-ic { width: 36px; height: 36px; margin-bottom: 2px; } }
.ctl-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 8px; align-content: start; }
.ctl-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 53, 42, 0.12); color: var(--red); margin-bottom: 6px; }
.ctl-ic .ic { width: 20px; height: 20px; }
.ctl-grid p, .how p { color: var(--muted); font-size: 0.94rem; }
.how { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: none; }
.how li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.how-n { grid-row: span 2; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--red); }
@media (min-width: 900px) {
  .how { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; gap: 20px; }
  .how li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--line); padding: 20px 0 0; }
  .how-n { grid-row: auto; margin-bottom: 8px; }
}
.how-note { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--red); background: var(--panel); border-radius: 0 12px 12px 0; color: var(--ink-2); max-width: 70ch; }
.how-note strong { color: var(--ink); }
.tagline { padding-block: clamp(56px, 9vw, 110px); }
.tagline-t { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 0.92; max-width: 16ch; }
.tagline-t em { font-style: normal; color: var(--red); }

/* ================= Páginas por tipo de negocio (/negocios/) ================= */
.js [data-in] { opacity: 0; transform: translateY(26px); }
.js [data-in].in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }

/* Hero */
.vh { position: relative; padding-top: calc(var(--head-h) + clamp(24px, 6vw, 72px)); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.vh::before { content: ''; position: absolute; inset: -20% -30% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(232, 53, 42, 0.16), transparent 70%); pointer-events: none; }
.vh-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.vh-for { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.vh-for::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(232, 53, 42, 0.18); }
.vh-t { margin-top: 14px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.6rem, 12vw, 8.4rem); line-height: 0.86; }
.vh-t em { font-style: normal; color: var(--red); }
.vh .hero-lead { margin-top: 24px; }
.vh .hero-actions { margin-top: 30px; }
.vh-inc { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.vh-inc .ic { color: var(--red); }
.vh-media { position: relative; display: grid; place-items: center; min-height: 420px; }
.vh-phone { --pw: clamp(220px, 62vw, 290px); position: relative; z-index: 2; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95); }
.vh-media.has-web { padding: 0 0 18% 0; }
.vh-media.has-web .vh-web { width: 100%; }
.vh-media.has-web .vh-phone { --pw: clamp(130px, 30vw, 210px); position: absolute; right: 2%; bottom: 0; }
.vh-label { position: absolute; left: 0; bottom: -34px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .vh-phone { animation: vh-float 7s ease-in-out infinite; }
  .vh-media.has-web .vh-phone { animation: vh-float 7s ease-in-out 1s infinite; }
}
@keyframes vh-float { 50% { transform: translateY(-12px); } }
@media (min-width: 960px) {
  .vh-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
  .vh-media { min-height: 620px; }
}

/* ¿Todavía vendes así? — lo de antes se tacha y aparece lo de ahora */
.pn { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.pn-i { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pn-old { font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 600; color: var(--ink); }
.pn-old span { background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / 100% 3px; transition: background-size 900ms var(--ease-out), color 900ms ease; }
.pn-new { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: 1rem; }
.pn-new .ic { color: var(--red); flex: none; transform: translateY(2px); }
.js .pn-i[data-in] { opacity: 1; transform: none; }
.js .pn-i .pn-old span { background-size: 0% 3px; }
.js .pn-i.in .pn-old span { background-size: 100% 3px; color: var(--muted); transition-delay: calc(var(--i, 0) * 160ms + 250ms); }
.js .pn-i .pn-new { opacity: 0; transform: translateX(-14px); }
.js .pn-i.in .pn-new { opacity: 1; transform: none; transition: opacity 700ms ease, transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 160ms + 900ms); }
@media (min-width: 900px) {
  .pn-i { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
}

/* Lo cambias aquí, se ve allá */
.lv-sec { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.lv-head { max-width: 900px; }
.live { margin-top: 12px; }
.live-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 34px; }
.live-steps li { position: relative; padding-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--muted); transition: color 400ms ease; }
.live-steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-2); }
.live-steps li::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--red); }
.live-steps li span { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; margin-bottom: 6px; }
.live-steps li.is-on { color: var(--ink); }
.live-steps li.is-on span { color: var(--red); }
.live-steps li.is-on::after { width: 100%; transition: width var(--dur, 3200ms) linear; }
.live-steps li.is-done::after { width: 100%; }
.live-devs { display: grid; gap: 18px; justify-items: center; }
.lv-dev { margin: 0; width: min(100%, 330px); }
.lv-dev figcaption { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; text-align: center; }
.lv-screen { position: relative; border-radius: 30px; padding: 14px; height: 500px; box-shadow: 0 0 0 1px #2a2a2a, 0 0 0 7px #0b0b0b, 0 0 0 8px #262626, 0 40px 80px -30px rgba(0, 0, 0, 0.9); overflow: hidden; }
.lv-admin .lv-screen { background: #f3f1ec; color: #161616; }
.lv-shop .lv-screen { background: #121212; color: var(--ink); }
.lv-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 6px 14px; font-size: 0.72rem; }
.lv-bar span { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a867e; }
.lv-bar b { font-size: 0.86rem; }
.lv-bar.is-shop b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lv-bar.is-shop .ic { color: #25d366; }
.lv-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.lv-row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 30px; gap: 10px; align-items: center; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); transition: opacity 400ms ease, background 400ms ease; }
.lv-th, .lv-img { display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, hsl(var(--h, 0) 45% 34%), hsl(var(--h, 0) 40% 16%)); color: #f4f4f4; }
.lv-th { width: 34px; height: 34px; }
.lv-th .ic { width: 16px; height: 16px; }
.lv-tx { min-width: 0; display: grid; line-height: 1.25; }
.lv-tx b { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tx small { font-size: 0.68rem; color: #8a867e; }
.lv-row .lv-p { font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-sw { width: 30px; height: 18px; border-radius: 99px; background: #2fbf71; position: relative; transition: background 300ms ease; }
.lv-sw i { position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 300ms var(--ease-out); }
.lv-row.is-off { opacity: 0.55; }
.lv-row.is-off .lv-sw { background: #c9c5bd; }
.lv-row.is-off .lv-sw i { left: 2px; }
.lv-addbtn { position: relative; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; background: #161616; color: #fff; font-size: 0.74rem; font-weight: 700; }
.lv-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 140%); padding: 8px 14px; border-radius: 99px; background: #161616; color: #fff; font-size: 0.72rem; font-weight: 700; opacity: 0; transition: transform 400ms var(--ease-out), opacity 300ms ease; }
.lv-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.is-tap::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--red); opacity: 0; animation: lv-tap 800ms var(--ease-out); pointer-events: none; }
@keyframes lv-tap { 0% { transform: scale(0.94); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.03); opacity: 0; } }
.lv-p.is-chg { animation: lv-chg 1200ms ease; }
@keyframes lv-chg { 0% { background: transparent; } 25% { background: rgba(232, 53, 42, 0.28); } 100% { background: transparent; } }
.lv-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lv-card { position: relative; display: grid; gap: 2px; padding: 8px 8px 10px; border-radius: 14px; background: #1b1b1b; border: 1px solid #262626; transition: opacity 500ms ease, filter 500ms ease; }
.lv-img { position: relative; aspect-ratio: 4 / 3; margin-bottom: 6px; }
.lv-img .ic { width: 28px; height: 28px; opacity: 0.8; }
.lv-card b { font-size: 0.74rem; line-height: 1.2; }
.lv-card small { font-size: 0.64rem; color: var(--muted); }
.lv-card .lv-p { justify-self: start; margin-top: 4px; font-size: 0.8rem; font-weight: 700; padding: 1px 4px; margin-left: -4px; border-radius: 6px; }
.lv-badge, .lv-new { position: absolute; top: 6px; left: 6px; padding: 3px 7px; border-radius: 99px; font-style: normal; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; transform: scale(0.8); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.lv-badge { background: #f4f4f4; color: #111; }
.lv-new { background: var(--red); color: #fff; }
.lv-card.is-off { opacity: 0.45; filter: grayscale(1); }
.lv-card.is-off .lv-badge, .lv-card.is-new .lv-new { opacity: 1; transform: none; }
.lv-card.is-flash { animation: lv-flash 1200ms ease; }
@keyframes lv-flash { 20% { box-shadow: 0 0 0 2px var(--red), 0 0 30px rgba(232, 53, 42, 0.45); } 100% { box-shadow: none; } }
.lv-row.is-hidden, .lv-card.is-hidden { display: none; }
.lv-row.is-in, .lv-card.is-in { animation: lv-in 700ms var(--ease-out); }
@keyframes lv-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.lv-sync { display: flex; gap: 6px; transform: rotate(90deg); }
.lv-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.live.is-sync .lv-sync i { animation: lv-dot 900ms ease; }
.live.is-sync .lv-sync i:nth-child(2) { animation-delay: 150ms; }
.live.is-sync .lv-sync i:nth-child(3) { animation-delay: 300ms; }
@keyframes lv-dot { 40% { background: var(--red); transform: scale(1.5); } }
.live-note { margin-top: 26px; font-size: 0.8rem; color: var(--muted); text-align: center; }
@media (min-width: 880px) {
  .live-devs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 28px; }
  .lv-sync { align-self: center; }
  .lv-dev { width: min(100%, 360px); }
  .lv-admin { justify-self: end; }
  .lv-shop { justify-self: start; }
  .lv-sync { transform: none; }
}

/* Tú controlas / nosotros nos encargamos */
.tv-grid { display: grid; gap: 14px; }
.tv-col { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--panel); }
.tv-col.is-you { background: linear-gradient(160deg, rgba(232, 53, 42, 0.16), rgba(232, 53, 42, 0.03) 60%), var(--panel); border-color: rgba(232, 53, 42, 0.4); }
.tv-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.tv-col.is-us .tv-k { color: var(--muted); }
.tv-t { margin-top: 10px; font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.95; }
.tv-col ul { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.tv-col li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.tv-col li .ic { color: var(--red); flex: none; }
.tv-line { margin-top: clamp(48px, 7vw, 90px); }
@media (min-width: 800px) { .tv-grid { grid-template-columns: 1fr 1fr; } }

/* ¿Qué negocio tienes? */
.ng-head { max-width: 780px; }
.ng { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.ng li { border-bottom: 1px solid var(--line); }
.ng-a { position: relative; isolation: isolate; display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; column-gap: 14px; row-gap: 4px; align-items: center; padding: clamp(20px, 3vw, 34px) 4px; text-decoration: none; color: inherit; overflow: hidden; }
.ng-a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform 600ms var(--ease-out); }
.ng-n { grid-row: span 2; font-family: var(--display); font-size: 1.3rem; color: var(--muted); transition: color 400ms ease; }
.ng-t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 0.9; transition: transform 600ms var(--ease-out); }
.ng-d { grid-column: 2; font-size: 0.9rem; color: var(--muted); transition: color 400ms ease; }
.ng-go { grid-row: 1 / span 2; grid-column: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 400ms ease, border-color 400ms ease, transform 600ms var(--ease-out); }
.ng-a:hover::before, .ng-a:focus-visible::before { transform: scaleY(1); }
.ng-a:hover .ng-t, .ng-a:focus-visible .ng-t { transform: translateX(10px); }
.ng-a:hover .ng-n, .ng-a:hover .ng-d, .ng-a:focus-visible .ng-n, .ng-a:focus-visible .ng-d { color: #fff; }
.ng-a:hover .ng-go, .ng-a:focus-visible .ng-go { background: #fff; color: #111; border-color: #fff; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .ng-a { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 0.8fr) 56px; }
  .ng-n { grid-row: auto; }
  .ng-d { grid-column: 3; }
  .ng-go { grid-row: auto; grid-column: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-a::before, .ng-t, .ng-go { transition: none; }
}

.ng-img { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .ng-img { display: block; position: absolute; z-index: 2; left: 45%; top: 50%; width: 130px; aspect-ratio: 540 / 1169; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 5px #0b0b0b, 0 30px 60px -20px rgba(0, 0, 0, 0.9); transform: translateY(-50%) rotate(6deg) scale(0.6); opacity: 0; transition: transform 700ms var(--ease-out), opacity 300ms ease; pointer-events: none; }
  .ng-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .ng-a:hover .ng-img, .ng-a:focus-visible .ng-img { opacity: 1; transform: translateY(-50%) rotate(-4deg) scale(1); }
  .ng-a { overflow: visible; }
  .ng li { position: relative; }
  .ng-a:hover { z-index: 3; }
}
@media (max-width: 879px) { .lv-screen { height: 440px; } }

/* "Tu negocio. En línea." ya no se fija al scroll: sección normal que pasa sola */
.inst[data-carousel] { height: auto; }
.inst[data-carousel] .inst-pin { position: relative; height: auto; overflow: visible; padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 120px); }
.inst[data-carousel] .inst-grid { height: auto; padding-top: 0; padding-bottom: 0; }
.inst[data-carousel] .inst-stage { height: auto; }
.inst[data-carousel] .inst-list li { cursor: pointer; }
.inst[data-carousel] .inst-list li:hover { color: var(--ink-2); }
.inst[data-carousel] .inst-list li.is-on { color: var(--ink); }
.inst[data-carousel] .inst-bar { bottom: clamp(24px, 4vw, 48px); }
.inst[data-carousel] .inst-bar i { transform: scaleX(0); }
.inst.is-play .inst-bar i { animation: inst-prog var(--dur, 4200ms) linear forwards; }
@keyframes inst-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dev-scene:not(.is-on):not(.is-out) { transition: none; }
.inst-dots { display: flex; gap: 4px; }
.inst-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.inst-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background 300ms ease, transform 300ms var(--ease-out); }
.inst-dots button.is-on::before { background: var(--red); transform: scale(1.3); }
.inst-foot { flex-wrap: wrap; align-items: center; }
@media (min-width: 960px) { .inst-dots { display: none; } }


/* Cambio de negocio fluido: solo opacidad y movimiento (lo que el celular mueve sin esfuerzo) */
.inst[data-carousel] .dev-scene { clip-path: none; opacity: 0; transform: translateY(2.5%) scale(0.985); transition: opacity 550ms ease, transform 750ms var(--ease-out); will-change: opacity, transform; backface-visibility: hidden; }
.inst[data-carousel] .dev-scene.is-on { opacity: 1; transform: none; transition: opacity 550ms ease 120ms, transform 750ms var(--ease-out) 120ms; }
.inst[data-carousel] .dev-scene.is-out { opacity: 0; transform: none; transition: opacity 450ms ease; }
.inst[data-carousel] .dev-scene:not(.is-on):not(.is-out) { transition: none; }

/* Recorrido de cada negocio: captura nítida que el navegador desliza (a la velocidad de la pantalla, sin saltos) */
.dev { --sh: calc(var(--dh) - 26px); }
.dev[data-shape='phone'] { --sh: calc(var(--dh) - var(--dw) * 0.06); }
.dev-scene.is-tour { background: #0b0b0b; }
.dev-scene.is-tour img { transform: none; transition: none; }
.tour-page { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.dev-scene .tour-img { display: block; width: 100%; height: auto; transform: translate3d(0, 0, 0); }
.dev-scene .tour-fixed { position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: auto; pointer-events: none; transform: translate3d(0,0,0); }
.dev-scene .tour-splash { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 1; background: #000; }
@media (prefers-reduced-motion: no-preference) {
  .dev-scene.is-tour.is-on .tour-img, .dev-scene.is-tour.is-out .tour-img { animation: tour-scroll var(--t-run) cubic-bezier(0.45, 0.05, 0.3, 1) var(--t-start) both; }
  .dev-scene.is-tour.is-on .tour-splash, .dev-scene.is-tour.is-out .tour-splash { animation: tour-splash 650ms ease 1500ms both; }
}
@media (prefers-reduced-motion: reduce) { .dev-scene .tour-splash { display: none; } }
@keyframes tour-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-100% + var(--sh)), 0); } }
@keyframes tour-splash { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.04); } }
@keyframes tour-fixed { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Entrada de la portada (una vez por sesión) ----------
   Tiempos sincronizados con INTRO_RUN en src/layout.mjs:
   punto 0–2380ms (aparece, se desliza, cubre), cortina 2380–3150ms. */
.intro { display: none; }
html.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 1000; animation: intro-fail 1ms linear 7s forwards; }
.intro-panel { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); overflow: hidden; contain: strict; }
.intro-c { display: grid; gap: clamp(14px, 2vw, 22px); width: max-content; max-width: calc(100vw - 32px); }
.intro-word { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 17.5vw, 13rem); line-height: 0.84; letter-spacing: 0.01em; white-space: nowrap; color: var(--ink); }
.intro-mask { display: inline-block; clip-path: inset(-0.3em -0.2em 0 -0.2em); }
.iw-r { color: var(--red); }
.il { display: inline-block; }
.intro-dot { display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.035em; vertical-align: baseline; background: var(--red); }
.intro-rule { height: 2px; overflow: hidden; }
.intro-rule i { display: block; height: 100%; background: var(--red); transform-origin: left center; }
.intro-meta { display: flex; justify-content: space-between; gap: 24px; font-size: clamp(0.66rem, 0.9vw, 0.78rem); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 599px) { .intro-meta span + span { display: none; } }

/* Antes de arrancar (esperando la fuente) todo está quieto y oculto */
.intro:not(.is-go) .intro-c { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .intro.is-go .intro-dot { animation: intro-dot 2380ms both; }
  .intro.is-go .il { animation: intro-letter 700ms var(--ease-out) both; animation-delay: calc(480ms + var(--i) * 42ms); }
  .intro.is-go .intro-rule i { animation: intro-rule 1000ms var(--ease-io) 700ms both; }
  .intro.is-go .intro-meta span { animation: intro-meta 600ms var(--ease-out) 1000ms both; }
  .intro.is-go .intro-meta span + span { animation-delay: 1080ms; }
  .intro.is-go .intro-mask, .intro.is-go .intro-rule, .intro.is-go .intro-meta { animation: intro-out 260ms var(--ease-out) 1820ms forwards; }
  .intro.is-go .intro-panel { animation: intro-lift 770ms var(--ease-io) 2380ms forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .intro.is-go .intro-c { animation: intro-fade-in 300ms ease-out both; }
  .intro.is-go .intro-panel { animation: intro-fade-out 400ms ease-out 950ms forwards; }
}
.intro.is-skip { animation: intro-fade-out 320ms var(--ease-out) forwards; }

@keyframes intro-dot {
  0% { opacity: 0; transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0) scale(0.4); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  12.6% { opacity: 1; transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0) scale(1); }
  17.6% { opacity: 1; transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0) scale(1); animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
  48.3% { transform: translate3d(0, 0, 0) scale(1); }
  75.6% { transform: translate3d(0, 0, 0) scale(1); animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(var(--fs, 200)); }
}
@keyframes intro-letter { from { transform: translateY(110%); } to { transform: none; } }
@keyframes intro-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-meta { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; } }
@keyframes intro-lift { from { background: var(--red); transform: translateY(0); } to { background: var(--red); transform: translateY(-100%); } }
@keyframes intro-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-fade-out { to { opacity: 0; } }
@keyframes intro-fail { to { visibility: hidden; pointer-events: none; } }
