/* SEC — «El enganche». Mobile-first. Brand colours and type from the manual. */

@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(/fonts/poppins-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  --orange: #FF6B00;
  --orange-ink: #C24E00;   /* orange text on white: 4.8:1 */
  --black: #000;
  --ink: #161616;
  --white: #fff;
  --g300: #D6D6D6;
  --g400: #BDBDBD;
  --g500: #A3A3A3;
  --g600: #8F8F8F;
  --muted-light: #4A4A4A;
  --strike: #8A8A8A;
  --line-dark: #2B2B2B;
  --line-dark-2: #3A3A3A;
  --line-light: #E4E4E4;

  --font-display: Poppins, 'Segoe UI', system-ui, sans-serif;
  --font-body: Inter, 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(16px, 5.5vw, 80px);
  --maxw: 1440px;
  --sec-pad: clamp(80px, 9vw, 150px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --d-fast: 160ms;
  --d-med: 240ms;
  --d-slow: 480ms;
  --d-reveal: 720ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
s { text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible, .orange :focus-visible { outline-color: var(--ink); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--orange); color: #000;
  font: 600 15px var(--font-display); text-decoration: none;
  transform: translateY(-160%); transition: transform var(--d-med) var(--ease);
}
.skip:focus { transform: none; }

/* ---------- shared atoms ---------- */
.iso { display: inline-block; height: .74em; width: auto; aspect-ratio: 526 / 393; vertical-align: -.02em; color: var(--orange); }
.eyebrow { font: 600 12px/1.4 var(--font-display); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow-orange { color: var(--orange); }
.eyebrow-ink { color: var(--orange-ink); }
.eyebrow-black { color: #000; }
.h2 {
  font: 700 clamp(2.4rem, 4.8vw + 1.4rem, 6rem)/.96 var(--font-display);
  letter-spacing: -.04em;
}
.hl { background: var(--orange); color: inherit; padding: 0 .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.censor { display: inline-block; background: var(--orange); color: #000; padding: 0 .06em; margin: 0 .02em; }
.dark .censor { background: var(--orange); color: #000; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font-display); text-decoration: none; cursor: pointer;
  transition: color var(--d-med) var(--ease), border-color var(--d-med) var(--ease), transform var(--d-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  /* diagonal sweep on hover, same angle as the S */
  content: ''; position: absolute; inset: -2px -30%; z-index: -1;
  transform: translateX(-101%) skewX(-18deg); transition: transform var(--d-slow) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; transition: transform var(--d-med) var(--ease); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-lg { min-height: 56px; }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary::before { background: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::before { background: var(--orange); }
.btn-black { background: #000; color: #fff; }
.btn-black::before { background: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--line-dark-2); }
.btn-ghost::before { background: #fff; }
.btn-outline-black { background: transparent; color: #000; border: 2px solid #000; }
.btn-outline-black::before { background: #000; }
@media (hover: hover) {
  .btn:hover::before { transform: translateX(0) skewX(-18deg); }
  .btn:hover .ic { transform: translateX(4px); }
  .btn-black:hover, .btn-ghost:hover { color: #000; }
  .btn-outline-black:hover, .btn-dark:hover { color: #fff; }
  .btn-dark:hover { color: #000; }
}
.ic-burger { width: 20px; height: 12px; fill: currentColor; }

.ulink {
  display: inline-flex; align-items: center; min-height: 48px;
  font: 600 16px var(--font-display); text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 calc(100% - 10px) / 100% 2px;
  transition: background-size var(--d-med) var(--ease);
}
@media (hover: hover) { .ulink:hover { background-size: 0 2px; background-position: 100% calc(100% - 10px); } }

.still { position: relative; flex: none; border-radius: 14px; overflow: hidden; background: #222; aspect-ratio: 2 / 3; }
.still img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 999px; background: rgba(10, 10, 10, .74); color: #fff;
  font: 600 11px/1.2 var(--font-body); white-space: nowrap;
}
.ic-eye { width: 13px; height: 13px; }
.tag { padding: 3px 9px; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange); font-weight: 600; font-size: 11px; letter-spacing: .08em; }

/* ---------- light sections ---------- */
.sec { position: relative; }
.light { background: var(--white); color: var(--ink); }
.dark { background: var(--ink); color: var(--white); }
.orange { background: var(--orange); color: #000; }

/* clients */
.clients { padding-top: 64px; }
.clients-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.h-clients { font: 700 clamp(1.85rem, 1.6vw + 1.4rem, 2.75rem)/1.05 var(--font-display); letter-spacing: -.03em; }
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.logos li { display: flex; align-items: center; justify-content: center; height: 84px; padding: 0 12%; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.logo-img { max-height: 28px; width: auto; max-width: 100%; object-fit: contain; opacity: .72; filter: grayscale(1); transition: opacity var(--d-med) var(--ease); }
.logo-img.is-mid { max-height: 38px; }
.logo-img.is-square { max-height: 54px; }
.logo-name { font: 600 15px var(--font-display); color: var(--muted-light); text-align: center; }
@media (hover: hover) { .logos li:hover .logo-img { opacity: 1; } }

/* difference */
.diff { padding-top: 88px; }
.diff-title { max-width: 12ch; margin-bottom: 36px; }
.rows { border-bottom: 1px solid var(--line-light); }
.row { padding: 26px 0; border-top: 1px solid var(--line-light); }
.problem { font: 500 18px/1.25 var(--font-display); color: var(--strike); }
.problem s {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 55% / 100% 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.row-iso { display: block; width: 36px; height: auto; margin: 14px 0; }
.solution h3 { font: 600 22px/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.solution p { font-size: 15px; color: var(--muted-light); max-width: 46ch; }
.strip { background: #000; color: #fff; margin-top: 56px; }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 56px; padding-block: 48px 56px; }
.strip-num { font: 800 clamp(7rem, 14vw + 3rem, 15rem)/.8 var(--font-display); letter-spacing: -.06em; color: var(--orange); }
.strip-copy { max-width: 460px; }
.strip-title { font: 600 clamp(1.35rem, .7vw + 1.1rem, 1.75rem)/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 10px; }
.strip-text { font-size: clamp(16px, .3vw + 15px, 18px); color: var(--g400); }

/* ---------- cases ---------- */
.cases { padding: 80px 0 24px; }
.cases-head { margin-bottom: 8px; }
.case-nav { position: sticky; top: 0; z-index: 5; background: var(--ink); }
.case-nav-in {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-block: 12px;
}
.case-nav-in::-webkit-scrollbar { display: none; }
.case-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-dark-2); border-radius: 999px; font-size: 13px; text-decoration: none;
  transition: background var(--d-med) var(--ease), color var(--d-med) var(--ease), border-color var(--d-med) var(--ease);
}
.case-nav a span { color: var(--orange); font: 700 12px var(--font-display); transition: color var(--d-med) var(--ease); }
.case-nav a[aria-current='true'] { background: var(--orange); color: #000; border-color: var(--orange); font-weight: 600; }
.case-nav a[aria-current='true'] span { color: #000; }
@media (hover: hover) { .case-nav a:hover { border-color: var(--orange); } }

.case { padding: 40px 0 44px; border-top: 1px solid var(--line-dark); }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--g500); }
.case-n { color: var(--orange); font: 700 13px var(--font-display); }
.case-brand { font: 700 clamp(2.3rem, 2.4vw + 1.7rem, 3.75rem)/1 var(--font-display); letter-spacing: -.03em; margin-top: 14px; }
.case-hero { font: 800 clamp(5.5rem, 6vw + 4.5rem, 10.5rem)/.86 var(--font-display); letter-spacing: -.055em; color: var(--orange); margin-top: 24px; overflow-wrap: anywhere; }
.case-hero.is-l { font-size: clamp(3.75rem, 5vw + 2.5rem, 8rem); }
.case-hero.is-m { font-size: clamp(1.9rem, 3.4vw + 1.2rem, 6.5rem); letter-spacing: -.04em; line-height: .95; overflow-wrap: break-word; hyphens: auto; }
.case-hero-label { font-size: 16px; color: var(--g300); margin-top: 10px; max-width: 40ch; }
.case-desc { font-size: 15px; color: var(--g400); margin-top: 14px; max-width: 46ch; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 1px solid #333; padding-top: 16px; margin-top: 24px; }
.metrics.m3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metrics.m3 dd { font-size: 24px; }
.metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.metrics dd { font: 600 28px/1.1 var(--font-display); letter-spacing: -.02em; margin: 0; }
.metrics dt { font-size: 13px; color: var(--g500); margin-top: 2px; }
.case-media { margin-top: 24px; }
.case-stills {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
}
.case-stills::-webkit-scrollbar { display: none; }
.case-stills .still { width: 176px; scroll-snap-align: start; }

/* ---------- method ---------- */
.method { padding: 80px 0; }
.method-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin-bottom: 36px; }
.method-tag { font: 600 18px var(--font-display); color: var(--orange-ink); }
.method-body { position: relative; padding-left: 52px; }
.wave path { fill: none; stroke: var(--orange); stroke-width: 8; vector-effect: non-scaling-stroke; }
.wave-dots circle { fill: var(--ink); }
.wave-h { display: none; }
.wave-v { position: absolute; left: 0; top: 6px; width: 40px; height: calc(100% - 12px); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.step-n { font: 700 13px var(--font-display); color: var(--orange-ink); }
.step h3 { font: 600 24px/1.2 var(--font-display); letter-spacing: -.02em; margin: 6px 0 8px; }
.step p:not(.step-n):not(.badge) { font-size: 15px; line-height: 1.6; color: var(--muted-light); }
.badge { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- about ---------- */
.about { padding: 80px 0; }
.about-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.about-photos { display: flex; gap: 12px; align-items: flex-start; }
.ph { width: 50%; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: #222; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph2 { margin-top: 48px; }
.names { font: 700 clamp(2.1rem, 1.6vw + 1.6rem, 3.25rem)/1 var(--font-display); letter-spacing: -.035em; margin-bottom: 20px; }
.about-p { font-size: 16px; line-height: 1.6; color: var(--g300); margin-bottom: 14px; max-width: 52ch; }
.about-p.is-last { color: #fff; margin-bottom: 26px; }
.stat { display: flex; align-items: baseline; gap: 14px; padding-top: 18px; border-top: 1px solid #333; }
.stat-n { font: 800 clamp(3rem, 1.5vw + 2.5rem, 4rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--orange); }
.stat-t { font-size: 14px; line-height: 1.5; color: var(--g500); max-width: 30ch; }

/* ---------- contact ---------- */
.contact { overflow: hidden; padding: 80px 0 120px; }
.contact-iso { position: absolute; right: -90px; bottom: -40px; width: 320px; height: auto; color: #000; opacity: .1; pointer-events: none; }
.contact-in { position: relative; z-index: 1; }
.contact-title { font: 700 clamp(2.5rem, 5.4vw + 1.2rem, 6.9rem)/.97 var(--font-display); letter-spacing: -.045em; max-width: 14ch; margin-bottom: 40px; }
.contact-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.contact-col { border-top: 2px solid #000; padding-top: 20px; }
.contact-col h3 { font: 700 clamp(1.35rem, .4vw + 1.25rem, 1.65rem) var(--font-display); margin-bottom: 6px; }
.contact-col p { font-size: clamp(16px, .2vw + 15.5px, 18px); line-height: 1.55; max-width: 40ch; margin-bottom: 18px; }
.contact-col .btn { width: 100%; }
.contact-mail { word-break: break-all; }
.wa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.wa a {
  display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 6px 14px;
  border: 2px solid #000; border-radius: 16px; text-decoration: none; font-size: 13px; font-weight: 500;
  transition: background var(--d-med) var(--ease), color var(--d-med) var(--ease);
}
.wa a span { font-weight: 700; }
@media (hover: hover) { .wa a:hover { background: #000; color: #fff; } }

/* ---------- footer & dock ---------- */
.footer { background: #000; padding: 32px 0 120px; font-size: 13px; color: var(--g500); }
.footer-in { display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer .logo { font-size: 24px; }

.dock {
  position: fixed; left: max(12px, calc(50% - 280px)); right: max(12px, calc(50% - 280px)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(22, 22, 22, .92); border: 1px solid #333; box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform var(--d-slow) var(--ease), opacity var(--d-med) var(--ease);
}
.dock.is-hidden { transform: translateY(calc(100% + 24px)); }
.dock-home { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 999px; background: #000; }
.dock-iso { width: 26px; height: auto; color: var(--orange); }
.dock-cta { flex: 1; min-height: 52px; font-size: 15px; }
.dock-menu { min-height: 52px; padding: 0 18px; font-size: 15px; }

/* ---------- menu (native <dialog>) ---------- */
.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
.menu::backdrop { background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity var(--d-med) var(--ease); }
.menu.is-open::backdrop { opacity: 1; }
.menu-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 26px 26px 0 0; background: var(--ink); border-top: 1px solid #333;
  padding: 14px 18px calc(92px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform var(--d-med) var(--ease);
}
.menu.is-open .menu-panel { transform: none; }
.menu.is-open .menu-close { opacity: 1; }
.menu.is-closing .menu-panel { transition-duration: 180ms; transition-timing-function: var(--ease-in); }
.menu-grab { width: 40px; height: 4px; border-radius: 4px; background: #444; margin: 0 auto 14px; }
.menu-list a {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}
.menu-list small { width: 22px; flex: none; font: 600 11px var(--font-display); color: var(--g600); transition: color var(--d-fast); }
.menu-list span { font: 700 30px/1 var(--font-display); letter-spacing: -.03em; }
.menu-iso { width: 22px; height: auto; margin-left: auto; align-self: center; color: var(--orange); opacity: 0; transform: translateX(-10px); transition: opacity var(--d-med) var(--ease), transform var(--d-med) var(--ease); }
.menu-list a[aria-current='true'] span { color: var(--orange); }
.menu-list a[aria-current='true'] .menu-iso, .menu-list a:hover .menu-iso, .menu-list a:focus-visible .menu-iso { opacity: 1; transform: none; }
.menu-list a:hover small { color: var(--orange); }
.menu-list li { opacity: 0; transform: translateY(12px); transition: opacity var(--d-med) var(--ease), transform var(--d-med) var(--ease); }
.menu.is-open .menu-list li { opacity: 1; transform: none; }
.menu.is-open .menu-list li:nth-child(2) { transition-delay: 30ms; }
.menu.is-open .menu-list li:nth-child(3) { transition-delay: 60ms; }
.menu.is-open .menu-list li:nth-child(4) { transition-delay: 90ms; }
.menu-foot { display: grid; gap: 16px; margin-top: 20px; }
.menu-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--g400); }
.menu-contact a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.menu-cta { background: var(--orange); color: #000; }
.menu-cta::before { background: #fff; }
.menu-close {
  position: fixed; z-index: 2; opacity: 0; transition: opacity var(--d-med) var(--ease); right: 12px; bottom: max(20px, calc(env(safe-area-inset-bottom) + 8px));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 52px; height: 52px;
  border-radius: 999px; border: 1px solid var(--line-dark-2); background: #000; color: #fff; cursor: pointer;
}
.menu-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.menu-close svg { width: 16px; height: 16px; }

/* ---------- reveals (only with JS and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {

  .js [data-reveal='fade'] { opacity: 0; transition: opacity var(--d-slow) var(--ease); }
  .js [data-reveal='up'] { opacity: 0; transform: translateY(24px); transition: opacity var(--d-slow) var(--ease), transform var(--d-reveal) var(--ease); }
  /* sin margen negativo: así se respeta el espacio propio de cada título */
  .js [data-reveal='mask'] { overflow: hidden; padding-bottom: .08em; }
  .js [data-reveal='mask'] > .mask-in { display: block; transform: translateY(104%); transition: transform var(--d-reveal) var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal='mask'].is-in > .mask-in { transform: none; }

  /* problem -> solution rows: strike draws, S turns half a revolution, answer appears */
  .js [data-reveal='row'] .problem s { background-size: 0 3px; transition: background-size 560ms var(--ease) 120ms; }
  .js [data-reveal='row'] .row-iso { opacity: 0; transform: rotate(-180deg) scale(.6); transition: opacity 300ms var(--ease) 380ms, transform var(--d-slow) var(--ease) 380ms; }
  .js [data-reveal='row'] .solution { opacity: 0; transform: translateY(14px); transition: opacity var(--d-slow) var(--ease) 560ms, transform var(--d-reveal) var(--ease) 560ms; }
  .js [data-reveal='row'].is-in .problem s { background-size: 100% 3px; }
  .js [data-reveal='row'].is-in .row-iso, .js [data-reveal='row'].is-in .solution { opacity: 1; transform: none; }

  /* method wave draws itself */
  .js [data-reveal='draw'] .wave path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease) 100ms; }
  .js [data-reveal='draw'] .wave-dots circle { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 360ms var(--ease); }
  .js [data-reveal='draw'] .step { opacity: 0; transform: translateY(16px); transition: opacity var(--d-slow) var(--ease), transform var(--d-reveal) var(--ease); }
  .js [data-reveal='draw'].is-in .wave path { stroke-dashoffset: 0; }
  .js [data-reveal='draw'].is-in .wave-dots circle, .js [data-reveal='draw'].is-in .step { transform: none; opacity: 1; }
  .js [data-reveal='draw'].is-in .wave-dots circle:nth-child(2), .js [data-reveal='draw'].is-in .step:nth-child(2) { transition-delay: 220ms; }
  .js [data-reveal='draw'].is-in .wave-dots circle:nth-child(3), .js [data-reveal='draw'].is-in .step:nth-child(3) { transition-delay: 440ms; }
  .js [data-reveal='draw'].is-in .wave-dots circle:nth-child(4), .js [data-reveal='draw'].is-in .step:nth-child(4) { transition-delay: 660ms; }

  /* S connectors turn on their diagonal as they arrive */
  .js .names .names-iso { transform: rotate(-180deg); transition: transform var(--d-slow) var(--ease) 200ms; }
  .js .names.is-in .names-iso { transform: none; }

  /* section cuts: the diagonal of the S, straightening while scrolling */
  @supports (animation-timeline: view()) {
    .cut {
      animation: cut-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes cut-in {
      from { clip-path: polygon(0 clamp(28px, 6vw, 96px), 100% 0, 100% 100%, 0 100%); }
      to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    }
  }
}

/* ======================================================================
   >= 768px
   ====================================================================== */
@media (min-width: 768px) {
  .hero { padding: 56px 0 80px; }
  .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
  .ctas .btn { width: auto; }
  .lead { font-size: 19px; }
  .fan .still { width: 156px; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logos li { height: 104px; }
  .logo-img { max-height: 34px; }
  .row { display: grid; grid-template-columns: minmax(0, 5fr) 64px minmax(0, 6fr); gap: 28px; align-items: center; padding: 36px 0; }
  .problem { font-size: clamp(20px, 1.1vw + 12px, 28px); }
  .row-iso { width: 64px; margin: 0; }
  .solution h3 { font-size: clamp(22px, .8vw + 16px, 30px); }
  .solution p { font-size: 16px; }
  .metrics.m3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics dd, .metrics.m3 dd { font-size: 34px; }
  .metrics dt { font-size: 14px; }
  .case-stills .still { width: 220px; }
  .about-photos { gap: 20px; }
  .contact-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
  .contact-col .btn { width: auto; }
  .contact-iso { width: 520px; right: -140px; bottom: -110px; }
  .footer { padding-bottom: 120px; }
  .footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
}

/* ======================================================================
   >= 1024px — desktop composition
   ====================================================================== */
@media (min-width: 1024px) {
  .dock { display: none; }
  .footer { padding-bottom: 48px; }

  .clients { padding-top: 112px; }
  .clients-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .h-clients { grid-column: 1 / span 4; }
  .logos { grid-column: 6 / span 7; }
  .logos li { height: 112px; }
  .logo-img { max-height: 38px; }
  .logo-img.is-mid { max-height: 50px; }
  .logo-img.is-square { max-height: 72px; }

  .diff { padding-top: 160px; }
  .diff-title { margin-bottom: 72px; }
  .row { grid-template-columns: minmax(0, 5fr) 72px minmax(0, 6fr); gap: 32px; padding: 40px 0; }
  .row-iso { width: 64px; }
  .strip { margin-top: 120px; }
  .strip-in { padding-block: 96px 104px; }

  .cases { padding: 140px 0 40px; }
  .case-nav { position: sticky; top: 80px; background: rgba(22, 22, 22, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .case-nav-in { padding-block: 16px; }
  .case-nav a { font-size: 14px; padding: 0 16px; }
  .case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 112px 0; }
  .case-copy { grid-column: 1 / span 6; grid-row: 1; }
  .case-media { grid-column: 8 / span 5; grid-row: 1; margin: 0; }
  .case.flip .case-copy { grid-column: 7 / span 6; }
  .case.flip .case-media { grid-column: 1 / span 5; }
  .case-meta { font-size: 14px; gap: 14px; margin-bottom: 8px; }
  .case-meta .tag { font-size: 12px; padding: 4px 10px; }
  .case-hero { margin-top: 36px; }
  .case-hero-label { font-size: 18px; }
  .metrics { gap: 24px; padding-top: 20px; margin-top: 40px; }

  /* overlapping stills composition */
  .case-stills { position: relative; display: block; overflow: visible; margin: 0; padding: 0; height: 560px; }
  .case-stills .still { position: absolute; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
  .n1 .case-stills .still { width: 300px; left: 50%; top: 20px; translate: -50% 0; }
  .n2 .case-stills .still:nth-child(1) { width: 270px; left: 0; top: 0; }
  .n2 .case-stills .still:nth-child(2) { width: 250px; right: 0; bottom: 0; }
  .flip .n2 .case-stills .still:nth-child(1) { left: 0; top: auto; bottom: 0; width: 250px; }
  .flip .n2 .case-stills .still:nth-child(2) { right: 0; bottom: auto; top: 0; width: 270px; }
  .n3 .case-stills .still:nth-child(1) { width: 250px; left: 0; top: 0; }
  .n3 .case-stills .still:nth-child(2) { width: 150px; right: 20px; top: 20px; z-index: 1; }
  .n3 .case-stills .still:nth-child(3) { width: 240px; right: 0; bottom: 0; z-index: 2; }

  .method { padding: 150px 0; }
  .method-head { margin-bottom: 40px; }
  .method-tag { font-size: 22px; }
  .method-body { padding-left: 0; }
  .wave-v { display: none; }
  .wave-h { display: block; width: 100%; height: 120px; overflow: visible; }
  .wave path { stroke-width: 14; }
  .steps { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
  .steps.s2 { --cols: 2; } .steps.s3 { --cols: 3; } .steps.s4 { --cols: 4; }
  .step-n { font-size: 15px; }
  .step h3 { font-size: 28px; margin: 10px 0 12px; }
  .step p:not(.step-n):not(.badge) { font-size: 16px; }
  .badge { margin-top: 16px; }

  .about { padding: 150px 0 160px; }
  .about-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start; }
  .about-title { grid-column: 1 / -1; }
  .about-photos { grid-column: 1 / span 6; }
  .ph { border-radius: 18px; }
  .ph2 { margin-top: 96px; }
  .about-copy { grid-column: 8 / span 5; }
  .names { margin-bottom: 32px; }
  .about-p { font-size: 18px; margin-bottom: 18px; }
  .about-p.is-last { margin-bottom: 40px; }
  .stat { gap: 18px; padding-top: 24px; }
  .stat-t { font-size: 16px; }

  .contact { padding: 150px 0 140px; }
  .contact-title { margin-bottom: 0; }
  .contact-cols { margin-top: 88px; }
  .contact-col { padding-top: 28px; }
  .contact-col p { margin-bottom: 28px; }
  .contact-iso { width: 640px; right: -140px; bottom: -120px; }
  .wa { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; }
  .wa a { min-height: 44px; padding: 0; border: 0; border-radius: 0; flex-direction: row; gap: 6px; align-items: center; font-size: 17px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .wa a span { font-weight: 600; }
  .wa a:hover { background: none; color: #000; text-decoration-color: #fff; }

  /* desktop menu: white panel unfolding from the button */
  .menu-panel {
    left: auto; right: 12px; top: 92px; bottom: 12px; width: min(620px, calc(100vw - 24px)); max-height: none;
    border-radius: 22px; border: 0; background: #fff; color: var(--ink);
    padding: 26px 34px; display: flex; flex-direction: column;
    transform: none; clip-path: inset(0 0 100% 60% round 22px);
    transition: clip-path var(--d-med) var(--ease);
  }
  .menu.is-open .menu-panel { clip-path: inset(0 0 0 0 round 22px); }
  .menu-grab { display: none; }
  .menu-list a { gap: 18px; border-bottom-color: var(--line-light); }
  .menu-list small { width: 26px; font-size: 13px; }
  .menu-list span { font-size: clamp(40px, 3.4vw, 52px); letter-spacing: -.04em; white-space: nowrap; }
  .menu-iso { width: 40px; }
  .menu-list a:hover small, .menu-list a[aria-current='true'] small { color: var(--orange-ink); }
  .menu-list a[aria-current='true'] span { color: var(--ink); }
  .menu-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
  .menu-contact { display: grid; gap: 0; color: var(--muted-light); }
  .menu-cta { background: var(--ink); color: #fff; }
  .menu-cta::before { background: var(--orange); }
  .menu-close {
    position: fixed; right: calc(var(--gutter) + 0px); top: 17px; bottom: auto; width: auto; height: 46px; padding: 0 18px;
    background: #fff; color: #000; border: 0; font: 600 15px var(--font-display);
  }
  .menu-close span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .menu-close svg { width: 12px; height: 12px; order: 2; }

  /* subtle parallax of case stills, desktop only */
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .case-stills .still:nth-child(odd) { animation: drift-a linear both; animation-timeline: view(); }
      .case-stills .still:nth-child(even) { animation: drift-b linear both; animation-timeline: view(); }
      .n1 .case-stills .still { animation: none; }
      @keyframes drift-a { from { translate: 0 40px; } to { translate: 0 -40px; } }
      @keyframes drift-b { from { translate: 0 -30px; } to { translate: 0 30px; } }
    }
  }
}

@media (min-width: 1440px) {
  .wave path { stroke-width: 14; }
}

/* Print: plain document */
@media print {
  .dock, .topbar-actions, .intro, .menu, .case-nav { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Reduced motion: everything visible, no transforms, no smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* message pages (404 / errors) */
.page-msg { padding: 20vh var(--gutter); }
.page-msg .btn { margin-top: 32px; }
.case-hero, .metrics dd, .strip-num, .stat-n { font-variant-numeric: tabular-nums; }

/* ======================================================================
   v2 — «El enganche» con profundidad
   Sistema: luz cálida desde el objeto 3D, capas con parallax por cursor
   (--mx/--my, -1..1, solo puntero fino), arcos derivados de los lóbulos de
   la S, vidrio oscuro para la UI flotante. Curvas: --ease (salida expo) para
   entradas, --ease-soft para hovers, --ease-in para salidas.
   ====================================================================== */
:root { --ease-soft: cubic-bezier(.22, 1, .36, 1); --mx: 0; --my: 0; }

/* ---------- header: cápsula de vidrio flotante ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 30; padding: 10px 12px; }
.topbar-shell {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1320px; height: 56px; margin: 0 auto; padding: 0 16px;
  border-radius: 999px; background: rgba(22, 22, 22, .55); border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 40px -12px rgba(0, 0, 0, .5);
  transition: height var(--d-slow) var(--ease), background-color var(--d-slow) var(--ease), box-shadow var(--d-slow) var(--ease);
}
.topbar-shell::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 60, .7), transparent);
  opacity: .7; pointer-events: none;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 22px/1 var(--font-display); letter-spacing: .01em; color: var(--orange); text-decoration: none; }
.logo-mark { width: 26px; height: auto; color: var(--orange); transition: transform 600ms var(--ease); }
.logo:hover .logo-mark, .logo:focus-visible .logo-mark { transform: rotate(180deg); }
.topbar-tag { display: none; }
.topnav, .topbar-actions { display: none; }
.btn-label { position: relative; z-index: 1; }
.btn-glow { box-shadow: 0 10px 30px -12px rgba(255, 107, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-glow, .btn[data-magnetic] { transition: color var(--d-med) var(--ease), box-shadow var(--d-slow) var(--ease-soft), transform var(--d-fast) var(--ease), translate 500ms var(--ease-soft); }
@media (hover: hover) { .btn-glow:hover { box-shadow: 0 18px 50px -12px rgba(255, 107, 0, .9), 0 0 0 6px rgba(255, 107, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .45); } }

/* ---------- hero: escenario ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; padding: 84px 0 64px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 50%; }
.hero-glow-a {
  width: 120vw; aspect-ratio: 1; right: -45vw; top: -30vw;
  background: radial-gradient(closest-side, rgba(255, 107, 0, .34), rgba(255, 107, 0, .10) 50%, transparent 72%);
}
.hero-glow-b {
  width: 90vw; aspect-ratio: 1; left: -40vw; bottom: -40vw;
  background: radial-gradient(closest-side, rgba(255, 150, 70, .10), transparent 70%);
}
.hero-floor {
  position: absolute; left: -30%; right: -30%; bottom: -6%; height: 48%; overflow: hidden;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%); mask-image: linear-gradient(to top, #000 0%, transparent 80%);
}
.hero-floor::before {
  content: ""; position: absolute; inset: -64px 0 0 0;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-spot {
  position: absolute; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 140, .09), transparent); opacity: 0; transition: opacity 600ms var(--ease);
  transform: translate3d(var(--spot-x, 70vw), var(--spot-y, 30vh), 0);
}
.hero.has-pointer .hero-spot { opacity: 1; }
.grain { position: absolute; inset: 0; background: url(/img/grain.png) repeat; opacity: .5; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) {
  .hero-glow-a { animation: glow-breathe 9s ease-in-out infinite alternate; }
  .hero-floor::before { animation: floor-move 6s linear infinite; }
}
@keyframes glow-breathe { from { opacity: .75; scale: 1; } to { opacity: 1; scale: 1.08; } }
@keyframes floor-move { to { transform: translateY(64px); } }

.hero-stage { position: relative; order: 1; height: min(58vw, 300px); margin: 0 var(--gutter) 8px; pointer-events: none; }
.stage-layer { position: absolute; inset: 0; --depth: 1; transform: translate3d(calc(var(--mx) * var(--depth) * 18px), calc(var(--my) * var(--depth) * 14px), 0); }
.depth-far { --depth: .35; }
.depth-mid { --depth: 1; }
.depth-near { --depth: 1.7; }
.s3d { position: absolute; inset: 0 8% 6%; }
.s3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; color: #8A3600; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5)); transition: opacity 700ms var(--ease); }
.s3d-face { fill: url(#s3d-face); }
.s3d-canvas { position: absolute; inset: -12%; width: 124%; height: 124%; opacity: 0; transition: opacity 700ms var(--ease); }
.s3d.is-live .s3d-canvas { opacity: 1; }
.s3d.is-live .s3d-fallback { opacity: 0; }
.stage-shadow { position: absolute; left: 22%; right: 22%; bottom: -2%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); filter: blur(6px); }
.arc { position: absolute; overflow: visible; }
.arc path { stroke-linecap: butt; }
.arc-a { width: 34%; left: -2%; top: 2%; rotate: -28deg; }
.arc-a path { stroke: rgba(255, 107, 0, .55); stroke-width: 26; }
.arc-b { width: 30%; right: -4%; bottom: 4%; rotate: 150deg; }
.arc-b path { stroke: rgba(255, 255, 255, .22); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .s3d-fallback { animation: s-float 7s ease-in-out infinite; }
  .stage-shadow { animation: shadow-breathe 7s ease-in-out infinite; }
  .arc-a { animation: arc-drift-a 12s ease-in-out infinite alternate; }
  .arc-b { animation: arc-drift-b 16s ease-in-out infinite alternate; }
}
@keyframes s-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes shadow-breathe { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: .9; opacity: .65; } }
@keyframes arc-drift-a { to { rotate: -14deg; translate: 6px -10px; } }
@keyframes arc-drift-b { to { rotate: 170deg; translate: -8px 6px; } }

.hero-content { order: 2; position: relative; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  font: 600 11px/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #FFB27A;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); }
@media (prefers-reduced-motion: no-preference) { .pulse::after { animation: pulse 2.4s var(--ease) infinite; } }
@keyframes pulse { from { scale: 1; opacity: .7; } to { scale: 3.2; opacity: 0; } }
.hero-title { font: 700 clamp(3.1rem, 12.2vw + .3rem, 11rem)/.9 var(--font-display); letter-spacing: -.045em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln-in { display: inline-block; }
.hero-iso { display: inline-block; }
.hero-iso .iso { height: .74em; }
.dot { color: var(--orange); }
.hero-copy { margin-top: 24px; }
.lead { font-size: 17px; line-height: 1.55; color: var(--g300); max-width: 36ch; }
.ctas { display: grid; gap: 6px; margin-top: 26px; }
.ctas .btn { width: 100%; }
.ctas .ulink { justify-self: center; }

.hero-cards-wrap { order: 3; margin-top: 30px; }
.fan-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); margin: 0 var(--gutter) 12px; }
.hero-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px var(--gutter) 14px; scrollbar-width: none; }
.hero-cards::-webkit-scrollbar { display: none; }
.hc { flex: none; width: 136px; scroll-snap-align: center; }
.hc-in {
  position: relative; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: #222;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--ease-soft), opacity 800ms var(--ease);
}
.hc-in img { width: 100%; height: 100%; object-fit: cover; }
.glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 400ms var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .32), transparent 55%); mix-blend-mode: soft-light;
}
[data-tilt].is-tilting .glare { opacity: 1; }
.scroll-cue { display: none; }

/* coverflow suave del carrusel en móvil */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-cards .hc-in { animation: coverflow linear both; animation-timeline: view(inline); }
    @keyframes coverflow {
      0% { transform: perspective(700px) rotateY(26deg) scale(.9); }
      45%, 55% { transform: none; }
      100% { transform: perspective(700px) rotateY(-26deg) scale(.9); }
    }
  }
}

/* ---------- transición hero -> clientes: hoja que sube ---------- */
.sheet {
  position: relative; z-index: 2; border-radius: 28px 28px 0 0; margin-top: -28px; box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .55);
  background-color: #fff; background-image: radial-gradient(#ECECEC 1px, transparent 1.2px); background-size: 22px 22px;
}
.logos li { position: relative; background: #fff; transition: transform 500ms var(--ease-soft), box-shadow 500ms var(--ease-soft); }
@media (hover: hover) { .logos li:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .35); z-index: 1; } }

/* ---------- diferencia: S de contorno con profundidad ---------- */
.diff { overflow: clip; }
.diff-deco { position: absolute; right: -30vw; top: 120px; width: 90vw; max-width: 900px; height: auto; color: transparent; stroke: rgba(255, 107, 0, .22); stroke-width: 1.4; pointer-events: none; z-index: 0; }
.diff-deco use { vector-effect: non-scaling-stroke; }
.diff .wrap { position: relative; z-index: 1; }
.strip { position: relative; overflow: clip; }
.strip::before {
  content: ""; position: absolute; width: 70vw; aspect-ratio: 1; left: -20vw; top: 50%; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 0, .22), transparent 70%); pointer-events: none;
}
.strip-in { position: relative; }
.strip-num-wrap { perspective: 900px; position: relative; }
.strip-num {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 700ms var(--ease-soft);
  text-shadow: .006em .008em 0 #E05E00, .012em .016em 0 #CC5500, .018em .024em 0 #B84C00, .024em .032em 0 #A34300, .03em .04em 0 #8F3A00, .036em .048em 0 #7A3100, .042em .056em 0 #662900, .06em .1em .12em rgba(0, 0, 0, .7);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .diff-deco { animation: deco-turn linear both; animation-timeline: view(); }
    @keyframes deco-turn { from { rotate: -14deg; translate: 0 80px; } to { rotate: 12deg; translate: 0 -80px; } }
  }
}

/* ---------- casos: luz ambiente y tarjetas con relieve ---------- */
.case-media { position: relative; }
.case-glow { position: absolute; inset: 8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 0, .22), transparent 70%); pointer-events: none; z-index: 0; }
.case-stills { position: relative; z-index: 1; }
.case-stills .still {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--ease-soft), box-shadow 600ms var(--ease-soft);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (prefers-reduced-motion: no-preference) {
  .js .case-media[data-reveal] .still img { clip-path: inset(100% 0 0 0); scale: 1.12; transition: clip-path 900ms var(--ease), scale 1200ms var(--ease); }
  .js .case-media[data-reveal].is-in .still img { clip-path: inset(0 0 0 0); scale: 1; }
  .js .case-media[data-reveal].is-in .still:nth-child(2) img { transition-delay: 140ms; }
  .js .case-media[data-reveal].is-in .still:nth-child(3) img { transition-delay: 280ms; }
}

/* ---------- método: tubo de luz y nodos esféricos ---------- */
.wave-h { filter: drop-shadow(0 0 12px rgba(255, 107, 0, .45)); }
.wave-h .wave-line { stroke: url(#wave-grad); }
.wave-glow { display: none; }
.wave-dots circle { fill: url(#sphere); stroke: rgba(255, 255, 255, .25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.step {
  position: relative; padding: 20px 20px 22px; border-radius: 20px; background: linear-gradient(180deg, #fff, #FAFAFA); border: 1px solid #EDEDED;
  transition: transform 500ms var(--ease-soft), box-shadow 500ms var(--ease-soft), border-color 500ms var(--ease-soft);
}
.step::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), transparent); opacity: 0; transition: opacity 400ms var(--ease); }
@media (hover: hover) {
  .step:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .3); border-color: #E2E2E2; }
  .step:hover::before { opacity: 1; }
}

/* ---------- nosotros: retratos en marcos con profundidad ---------- */
.about { overflow: clip; }
.about::before { content: ""; position: absolute; width: 80vw; aspect-ratio: 1; left: -30vw; top: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 0, .14), transparent 70%); pointer-events: none; }
.about-in { position: relative; }
.ph { overflow: visible; background: none; position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 700ms var(--ease-soft); }
.ph img { border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.ph::before { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(255, 107, 0, .7); border-radius: 14px; transform: translate3d(12px, 12px, -30px); pointer-events: none; }

/* ---------- contacto: S negra extruida ---------- */
.contact-s3d {
  position: absolute; right: -120px; bottom: -110px; width: 280px; aspect-ratio: 526 / 393; pointer-events: none; transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(calc(-26deg + var(--mx) * 12deg)) rotateX(calc(14deg - var(--my) * 8deg)); transition: transform 900ms var(--ease-soft);
}
.cs-layer { position: absolute; inset: 0; width: 100%; height: 100%; color: #000; }
.cs-layer:nth-child(1) { transform: translateZ(-33px); color: #000; }
.cs-layer:nth-child(2) { transform: translateZ(-30px); color: #050505; }
.cs-layer:nth-child(3) { transform: translateZ(-27px); color: #080808; }
.cs-layer:nth-child(4) { transform: translateZ(-24px); color: #0B0B0B; }
.cs-layer:nth-child(5) { transform: translateZ(-21px); color: #0E0E0E; }
.cs-layer:nth-child(6) { transform: translateZ(-18px); color: #111; }
.cs-layer:nth-child(7) { transform: translateZ(-15px); color: #141414; }
.cs-layer:nth-child(8) { transform: translateZ(-12px); color: #171717; }
.cs-layer:nth-child(9) { transform: translateZ(-9px); color: #1A1A1A; }
.cs-layer:nth-child(10) { transform: translateZ(-6px); color: #1D1D1D; }
.cs-layer:nth-child(11) { transform: translateZ(-3px); color: #202020; }
.cs-layer:nth-child(12) { transform: translateZ(0); color: #2B2B2B; }
@media (prefers-reduced-motion: no-preference) { .contact-s3d { animation: cs-sway 10s ease-in-out infinite alternate; } }
@keyframes cs-sway { from { translate: 0 0; } to { translate: -10px -14px; } }

/* ---------- pie: marca gigante en contorno ---------- */
.footer { position: relative; overflow: clip; }
.footer-mark {
  margin: 0 0 8px; text-align: center; font: 800 clamp(7rem, 30vw, 26rem)/.78 var(--font-display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 107, 0, .4); user-select: none; pointer-events: none;
}

/* el hero espera debajo de la precarga */
.intro-hold .hero .ln-in { transform: translateY(105%); }
.intro-hold .hero-content [data-reveal] { opacity: 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .ln-in { transition: transform 1000ms var(--ease); }
  .js .hero .ln2 .ln-in { transition-delay: 90ms; }
  .js .hero-cards-wrap, .js .hero-bg { transition: opacity 900ms var(--ease) 150ms; }
  .js .hero-stage .arc { transition: opacity 900ms var(--ease) 300ms; }
}

/* ======================================================================
   v2 >= 768px
   ====================================================================== */
@media (min-width: 768px) {
  .hero-stage { height: 340px; }
  .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
  .ctas .btn { width: auto; }
  .lead { font-size: 19px; }
  .hc { width: 160px; }
  .contact-s3d { width: 460px; right: -150px; bottom: -150px; }
}

/* ======================================================================
   v2 >= 1024px — escenario completo
   ====================================================================== */
@media (min-width: 1024px) {
  html { scroll-padding-top: 100px; }
  .topbar { position: fixed; padding: 14px var(--gutter); }
  .topbar-shell { height: 66px; padding: 0 10px 0 24px; }
  .topbar.is-scrolled .topbar-shell { height: 58px; background-color: rgba(14, 14, 14, .78); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 50px -16px rgba(0, 0, 0, .7); }
  .logo { font-size: 26px; }
  .logo-mark { width: 30px; }
  .topbar-tag { display: none; }
  .topnav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .05); }
  .topnav a { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font: 500 14px/1 var(--font-body); color: #CFCFCF; text-decoration: none; transition: color var(--d-med) var(--ease); }
  .topnav a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform var(--d-slow) var(--ease); }
  .topnav a:hover, .topnav a[aria-current="true"] { color: #fff; }
  .topnav a[aria-current="true"]::after { transform: scale(1); }
  .topnav-pill {
    position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: rgba(255, 255, 255, .09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); opacity: 0;
    transition: transform 450ms var(--ease-soft), width 450ms var(--ease-soft), opacity var(--d-med) var(--ease);
  }
  .topnav-pill.is-on { opacity: 1; }
  .topbar-actions { display: flex; align-items: center; gap: 10px; }
  .dock { display: none; }

  .hero { min-height: max(100svh, 700px); justify-content: center; padding: 150px 0 110px; }
  .hero-glow-a { width: 70vw; right: -12vw; top: -14vw; }
  .hero-stage { position: absolute; z-index: -1; order: 0; margin: 0; top: 50%; right: max(1vw, calc(50% - 720px)); width: min(43vw, 640px); height: auto; aspect-ratio: 1; translate: 0 -48%; }
  .s3d { inset: 12%; }
  .arc-a { width: 30%; left: 2%; top: 4%; }
  .arc-b { width: 26%; right: 0; bottom: 8%; }
  .hero-content { order: 0; }
  .eyebrow-chip { font-size: 12px; margin-bottom: 30px; }
  .hero-title { font-size: clamp(5rem, 8.4vw + .2rem, 9.6rem); }
  .hero-title .ln2 { padding-left: .9em; }
  .hero-copy { max-width: 470px; margin-top: 44px; }
  .lead { font-size: 20px; line-height: 1.5; }
  .ctas { margin-top: 34px; }

  .hero-cards-wrap { position: absolute; inset: 0; order: 0; margin: 0; pointer-events: none; z-index: 0; }
  .fan-label { position: absolute; right: var(--gutter); bottom: 74px; margin: 0; font-size: 11px; }
  .hero-cards { position: absolute; inset: 0; display: block; overflow: visible; padding: 0; }
  .hc { position: absolute; pointer-events: auto; --depth: 1; transform: translate3d(calc(var(--mx) * var(--depth) * 26px), calc(var(--my) * var(--depth) * 20px), 0) rotate(var(--rot, 0deg)); }
  .hc-1 { width: 124px; left: 63%; top: 12%; --depth: .5; --rot: -7deg; }
  .hc-2 { width: 164px; left: 58%; top: 60%; --depth: 1.4; --rot: 4deg; }
  .hc-3 { width: 146px; right: 5%; top: 15%; --depth: .9; --rot: 6deg; }
  .hc-4 { width: 176px; right: 2.5%; top: 52%; --depth: 1.6; --rot: -4deg; }
  .hc-5 { width: 112px; left: 75%; top: 70%; --depth: .4; --rot: 8deg; }
  .hc-1 .hc-in, .hc-5 .hc-in { filter: saturate(.85) brightness(.85); }
  .scroll-cue {
    position: absolute; left: var(--gutter); bottom: 70px; display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
    font: 600 11px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--g500); text-decoration: none;
  }
  .scroll-line { position: relative; width: 1px; height: 38px; background: rgba(255, 255, 255, .15); overflow: hidden; }
  .scroll-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--orange); }
  .scroll-cue:hover { color: #fff; }
  .sheet { border-radius: 44px 44px 0 0; margin-top: -44px; }
  .contact-s3d { width: 560px; right: -150px; bottom: -190px; }
  .about::before { width: 50vw; left: -10vw; }
  @media (prefers-reduced-motion: no-preference) {
    .hc-in { animation: bob 7s ease-in-out infinite; }
    .hc-2 .hc-in { animation-duration: 8s; animation-delay: -2s; }
    .hc-3 .hc-in { animation-duration: 9s; animation-delay: -4s; }
    .hc-4 .hc-in { animation-duration: 7.5s; animation-delay: -1s; }
    .hc-5 .hc-in { animation-duration: 10s; animation-delay: -6s; }
    .scroll-line::after { animation: scroll-line 2.2s var(--ease) infinite; }
  }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes scroll-line { from { translate: 0 -100%; } to { translate: 0 260%; } }

/* hero fijo que la hoja de clientes cubre (solo si entra completo en pantalla) */
@media (min-width: 1024px) and (min-height: 700px) {
  .hero { position: sticky; top: 0; z-index: 0; }
}
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-content, .hero-cards-wrap, .hero-stage .stage-layer { animation: hero-exit linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hero-exit { to { opacity: .2; scale: .94; } }
  }
}

/* laptops chicas: menos tarjetas y más aire alrededor del objeto */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hc-1, .hc-5 { display: none; }
  .hc-2 { width: 136px; left: 57%; top: 62%; }
  .hc-3 { width: 120px; right: 4%; top: 16%; }
  .hc-4 { width: 140px; right: 2%; top: 56%; }
  .hero-stage { width: 46vw; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .scroll-cue, .fan-label { display: none; }
  .hero { padding-top: 130px; padding-bottom: 90px; }
}
@media (min-width: 1024px) {
  /* las tarjetas acompañan al objeto también en pantallas muy anchas */
  .hero-cards-wrap { left: 50%; right: auto; width: min(100%, 1440px); translate: -50% 0; }
}

/* ======================================================================
   v3 — limpieza editorial y recorrido móvil
   Recorrido táctil: cada sección es una "hoja" que sube sobre la anterior
   (bordes redondeados + sombra), la que queda atrás se atenúa, y el scroll
   se asienta suavemente al inicio de cada bloque (snap por proximidad, nunca
   obligatorio: los bloques largos se recorren libremente). Solo CSS.
   ====================================================================== */

/* la hoja: forma común; el fondo lo pone cada sección */
.sheet { background-image: none; }
.clients.sheet { background-color: #fff; background-image: radial-gradient(#ECECEC 1px, transparent 1.2px); background-size: 22px 22px; }
.case-period { color: var(--g500); }
.method-head { margin-bottom: 28px; }

/* ---------- snap: solo pantallas táctiles hasta tablet ---------- */
@media (max-width: 1023px) and (pointer: coarse) {
  html { scroll-snap-type: y proximity; }
  /* solo bloques que entran en pantalla; los largos (problema, método,
     nosotros) se recorren libres para no generar saltos a mitad de lectura */
  .hero, .clients, .cases, .case, .contact { scroll-snap-align: start; scroll-snap-stop: normal; }
  .strip { scroll-snap-align: center; }
  .case { scroll-margin-top: 64px; }  /* deja ver la barra de casos fija */
  .footer { scroll-snap-align: end; }
}

/* ---------- composición móvil y tablet ---------- */
@media (max-width: 1023px) {
  /* el header no es fijo en móvil: los anclajes llegan al borde; los casos
     dejan lugar para su barra fija */
  html { scroll-padding-top: 0; }
  .case { scroll-margin-top: 64px; }
  /* hojas que se apilan */
  .m-sheet { position: relative; z-index: 2; border-radius: 28px 28px 0 0; margin-top: -28px; box-shadow: 0 -24px 50px -20px rgba(0, 0, 0, .55); }
  .cut { animation: none !important; clip-path: none !important; }

  /* momentos a pantalla completa cuando el contenido entra */
  .hero { min-height: 100svh; }
  .clients { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 72px; }
  .contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .contact-in { width: 100%; }
  .strip-in { min-height: 72svh; flex-direction: column; align-items: flex-start; justify-content: center; }
  .strip-num { font-size: clamp(8.5rem, 44vw, 13rem); }
  .case { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; }

  /* casos: las piezas toman protagonismo */
  .case-stills .still { width: min(64vw, 280px); }
  .case-media { margin-top: 28px; }

  /* nosotros: retratos más grandes y texto en una columna limpia */
  .about-photos { gap: 14px; }
  .ph2 { margin-top: 56px; }

  /* método: más aire entre pasos */
  .steps { gap: 18px; }
}

/* ---------- movimiento ligado al scroll (táctil y escritorio angosto) ---------- */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* El contenido de cada hoja llega con un leve retraso y lo que queda atrás
       se aleja. Se anima el contenido, nunca la sección: así el área de snap
       de cada bloque queda fija. */
    .clients-in, .contact-in { animation: sheet-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .hero-content, .hero-stage, .hero-cards-wrap, .cases > .wrap:not(:first-of-type) { animation: fall-back linear both; animation-timeline: view(); animation-range: exit 30% exit 100%; }
    .diff > .wrap, .cases > .wrap:first-of-type, .method > .wrap, .about-in {
      animation: sheet-rise linear both, fall-back linear both;
      animation-timeline: view(), view();
      animation-range: entry 0% entry 55%, exit 30% exit 100%;
    }
    @keyframes sheet-rise { from { translate: 0 6svh; opacity: .4; } to { translate: 0 0; opacity: 1; } }
    @keyframes fall-back { to { opacity: .25; scale: .96; } }
  }
}

/* ---------- escritorio: el corte diagonal sigue siendo la transición ---------- */
@media (min-width: 1024px) {
  .method-head { margin-bottom: 40px; }
}

/* ======================================================================
   v5 — ajustes para la presentación
   Menú que entra limpio, móvil sin barra superior (solo el dock), título
   más grande, scroll más libre y más movimiento ligado al recorrido.
   ====================================================================== */

/* ---------- menú: entrada de una sola pieza ----------
   overflow: clip (no hidden) impide que el diálogo se desplace al enfocar
   el primer enlace mientras el panel todavía está fuera de pantalla. */
.menu { overflow: clip; }
@media (max-width: 1023px) {
  .menu-panel { transition: transform 560ms cubic-bezier(.32, .72, 0, 1); will-change: transform; }
  .menu.is-closing .menu-panel { transition-duration: 220ms; }
}
@media (min-width: 1024px) {
  .menu-panel { transition: clip-path 620ms cubic-bezier(.32, .72, 0, 1); }
  .menu.is-closing .menu-panel { transition-duration: 220ms; }
}
.menu-list li { transform: translateY(22px); transition: opacity 420ms var(--ease), transform 620ms var(--ease); }
.menu.is-open .menu-list li:nth-child(1) { transition-delay: 90ms; }
.menu.is-open .menu-list li:nth-child(2) { transition-delay: 140ms; }
.menu.is-open .menu-list li:nth-child(3) { transition-delay: 190ms; }
.menu.is-open .menu-list li:nth-child(4) { transition-delay: 240ms; }
.menu-foot { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease), transform 620ms var(--ease); }
.menu.is-open .menu-foot { opacity: 1; transform: none; transition-delay: 290ms; }
.menu.is-closing .menu-list li, .menu.is-closing .menu-foot { transition-delay: 0ms; transition-duration: 160ms; }

/* ---------- dock: la S vuelve al inicio y marca el avance ---------- */
.dock-home { position: relative; }
.dock-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; pointer-events: none; }
.dock-ring circle { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.dock-home.is-spinning { animation: home-pop 520ms var(--ease); }
@keyframes home-pop { 40% { scale: .84; } 100% { scale: 1; } }
.intro-hold .dock { transform: translateY(calc(100% + 40px)); }
.dock { transition: transform 640ms var(--ease), opacity var(--d-med) var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .dock-ring circle { animation: ring-fill linear both; animation-timeline: scroll(root); }
    .dock-iso { animation: iso-turn linear both; animation-timeline: scroll(root); }
    @keyframes ring-fill { to { stroke-dashoffset: 0; } }
    @keyframes iso-turn { to { rotate: 540deg; } }
  }
}

/* ---------- botón principal: destello periódico ---------- */
.btn-glow::after, .dock-cta::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-160%) skewX(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-glow::after, .dock-cta::after { animation: shine 5.5s var(--ease) 2.2s infinite; }
  .dock-cta::after { animation-delay: 3.4s; }
}
@keyframes shine { 0% { transform: translateX(-160%) skewX(-18deg); } 22%, 100% { transform: translateX(420%) skewX(-18deg); } }

/* ---------- logos: entran de a uno ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .logos[data-reveal] li { opacity: 0; translate: 0 18px; transition: opacity 600ms var(--ease), translate 800ms var(--ease), transform 500ms var(--ease-soft), box-shadow 500ms var(--ease-soft); }
  .js .logos[data-reveal].is-in li { opacity: 1; translate: 0 0; }
  .js .logos.is-in li:nth-child(2) { transition-delay: 60ms; }
  .js .logos.is-in li:nth-child(3) { transition-delay: 120ms; }
  .js .logos.is-in li:nth-child(4) { transition-delay: 180ms; }
  .js .logos.is-in li:nth-child(5) { transition-delay: 240ms; }
  .js .logos.is-in li:nth-child(6) { transition-delay: 300ms; }
  .js .logos.is-in li:nth-child(7) { transition-delay: 360ms; }
  .js .logos.is-in li:nth-child(n+8) { transition-delay: 420ms; }
}

/* ---------- reveals un poco más largos y suaves ---------- */
:root { --d-reveal: 900ms; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal='up'] { transform: translateY(34px); transition: opacity 800ms var(--ease), transform var(--d-reveal) var(--ease); }
  .js [data-reveal].is-in { transform: none; }
}

/* ---------- título del hero: las líneas se separan al salir ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-title .ln1 { animation: ln-left linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero-title .ln2 { animation: ln-right linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes ln-left { to { translate: calc(var(--ln-shift, 14vw) * -1) 0; } }
    @keyframes ln-right { to { translate: var(--ln-shift, 14vw) 0; } }
  }
}

/* ---------- móvil y tablet: solo el dock, título protagonista ---------- */
@media (max-width: 1023px) {
  .topbar { display: none; }
  .hero { padding-top: max(24px, calc(env(safe-area-inset-top) + 16px)); }
  .hero-title { font-size: clamp(3.2rem, 17.4vw, 9rem); letter-spacing: -.05em; }
  .hero-iso .iso { height: .7em; }
  .hero-title { --ln-shift: 9vw; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: clamp(6rem, 15vw, 9.4rem); }
}
/* scroll libre en táctil: sin imanes entre secciones (se siente más fluido) */
@media (max-width: 1023px) and (pointer: coarse) {
  html { scroll-snap-type: none; }
}

/* ---------- escritorio: título más grande ---------- */
@media (min-width: 1024px) {
  .hero-title { font-size: clamp(5.8rem, 10.2vw, 12.4rem); }
  .hero-copy { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel, .menu-list li, .menu-foot { transition-duration: 1ms !important; transition-delay: 0ms !important; }
}

/* ======================================================================
   Idioma: selector ES / EN y sugerencia para navegadores en inglés
   El selector es chico y vive donde ya está la navegación: en la barra
   (escritorio), en el menú y arriba del hero (celular, se va con el scroll).
   ====================================================================== */
.lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.lang a {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px;
  font: 600 12px/1 var(--font-display); letter-spacing: .08em; color: #B5B5B5; text-decoration: none;
  transition: color var(--d-med) var(--ease), background-color var(--d-med) var(--ease);
}
.lang a:hover { color: #fff; }
.lang a[aria-current='true'] { background: #fff; color: #000; }
.lang a:active { transform: scale(.96); }
.lang-hero {
  position: absolute; z-index: 3; top: max(14px, calc(env(safe-area-inset-top) + 10px)); right: var(--gutter);
  background: rgba(22, 22, 22, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lang-top { display: none; }
.lang-top a { height: 34px; min-width: 34px; }
.lang-menu { justify-self: start; }
.intro-hold .lang-hero { opacity: 0; }
.lang-hero { transition: opacity 700ms var(--ease) 200ms; }

@media (min-width: 1024px) {
  .lang-hero, .lang-menu { display: none; }
  .lang-top { display: inline-flex; margin-right: 4px; }
}

/* sugerencia de idioma */
.lang-tip {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 82px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 12px; padding: 14px 14px 14px 16px;
  border-radius: 22px; background: rgba(22, 22, 22, .95); border: 1px solid #333; color: #fff;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(18px); transition: opacity 420ms var(--ease), transform 620ms var(--ease);
}
.lang-tip[hidden] { display: none; }
.lang-tip.is-on { opacity: 1; transform: none; }
.lang-tip-iso { width: 24px; height: auto; color: var(--orange); }
.lang-tip p { margin: 0; font-size: 14.5px; line-height: 1.4; color: #EDEDED; }
.lang-tip-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.lang-tip-go, .lang-tip-stay {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font: 600 14px/1 var(--font-display); text-decoration: none; cursor: pointer; transition: background-color var(--d-med) var(--ease), color var(--d-med) var(--ease), border-color var(--d-med) var(--ease);
}
.lang-tip-go { flex: 1; background: var(--orange); color: #000; }
.lang-tip-stay { background: transparent; color: #CFCFCF; border: 1px solid #3A3A3A; }
@media (hover: hover) {
  .lang-tip-go:hover { background: #FF8126; }
  .lang-tip-stay:hover { color: #fff; border-color: #777; }
}
@media (min-width: 1024px) {
  .lang-tip { left: 24px; right: auto; bottom: 24px; width: 390px; }
}
@media (prefers-reduced-motion: reduce) { .lang-tip { transition: none; } }
@media print { .lang, .lang-tip { display: none !important; } }

/* mientras se cambia al idioma elegido antes, no se muestra la página equivocada */
.lang-redirect body { opacity: 0; }

/* ======================================================================
   Ronda 1 — correcciones del cliente
   Escala general algo menor, anclas que llegan al inicio de cada sección,
   portada con la S como protagonista y piezas reales detrás, entrada que
   funde la S en la página, menú por opacidad y desenfoque, marcas e
   integraciones en movimiento continuo. Solo se pisan reglas anteriores;
   nada de lo de arriba se borró para no romper otras partes.
   ====================================================================== */
:root {
  --sec-pad: clamp(64px, 7vw, 120px);
  --ease-cine: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- escala ---------- */
.h2 { font-size: clamp(2.1rem, 3.6vw + 1.25rem, 4.75rem); line-height: .98; }
.h-clients { font-size: clamp(1.75rem, 1.6vw + 1.25rem, 2.6rem); }
.lead { font-size: 16.5px; }
.contact-title { font-size: clamp(2.2rem, 4.2vw + 1rem, 5.4rem); }
.names { font-size: clamp(1.8rem, 1.2vw + 1.4rem, 2.6rem); }
.strip-num { font-size: clamp(6rem, 11vw + 2rem, 12rem); }
.problem { font-size: 17px; }
.solution h3 { font-size: 20px; }
.step h3 { font-size: 21px; }
@media (min-width: 768px) {
  .lead { font-size: 18px; }
  .problem { font-size: clamp(18px, .9vw + 11px, 24px); }
  .solution h3 { font-size: clamp(20px, .6vw + 15px, 26px); }
}

/* ---------- anclas ----------
   Cada sección arranca en el borde superior. En escritorio la barra flota
   sobre el relleno superior de la sección, que siempre es mayor que ella,
   así ningún título queda tapado. */
html { scroll-padding-top: 0; }
@media (min-width: 1024px) {
  html { scroll-padding-top: 0; }
  #clientes, #metodo, #nosotros, #contacto { padding-top: max(var(--sec-pad), 124px); }
}

/* ---------- header: solo la S ---------- */
.logo .logo-mark { width: 34px; }
@media (min-width: 1024px) { .logo .logo-mark { width: 38px; } }

/* ---------- portada ---------- */
.hero-title { font-size: clamp(2.8rem, 13.4vw, 6.6rem); line-height: .94; letter-spacing: -.045em; --ln-shift: 7vw; }
@media (min-width: 768px) and (max-width: 1023px) { .hero-title { font-size: clamp(5rem, 11vw, 7.4rem); } }
@media (min-width: 1024px) {
  .hero-title { font-size: clamp(4.4rem, 7.2vw, 8.6rem); --ln-shift: 10vw; }
  .hero-title .ln2 { padding-left: .55em; }
  .hero-copy { margin-top: 36px; }
}
/* piezas reales detrás de la S */
.reel { position: absolute; inset: auto; z-index: 0; margin: 0; border-radius: 16px; overflow: hidden; background: #1E1E1E;
  aspect-ratio: 2 / 3; box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); }
.reel-v { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 22, 22, 0) 55%, rgba(22, 22, 22, .55)); pointer-events: none; }
.hero-stage .depth-mid { z-index: 1; }
.reel-1 { --depth: .5; width: 26%; left: 0; top: 4%; rotate: -6deg; }
.reel-2 { --depth: .9; width: 24%; right: 2%; bottom: 0; rotate: 5deg; }
.reel-3 { --depth: .3; width: 20%; right: 8%; top: 0; rotate: 4deg; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .js .reel { transition: opacity 900ms var(--ease) 350ms; }
  .reel-1 .reel-v, .reel-2 .reel-v, .reel-3 .reel-v { transition: transform 1200ms var(--ease-soft); }
}
@media (max-width: 1023px) {
  .hero-stage { height: min(74vw, 360px); margin-bottom: 4px; }
  .reel-1 { width: 27%; left: -1%; top: 10%; }
  .reel-2 { width: 25%; right: -1%; bottom: 2%; }
  .reel-3 { display: none; }
  .s3d { inset: 4% 14% 8%; }
}
@media (min-width: 1024px) {
  .hero-stage { width: min(46vw, 680px); }
  .s3d { inset: 16%; }
}

/* ---------- S 3D: sin arcos ni contornos ajenos al logo ---------- */
.arc { display: none; }

/* ---------- entrada (referencia: ocioproductora.com) ----------
   1) la S blanca sube sobre el naranja de la marca;
   2) el naranja se desvanece y deja la S sobre la portada desenfocada;
   3) el foco se aclara y la S se va.
   Cada toque, rueda o tecla adelanta un paso (site.js). */
.intro { display: none; }
.intro-run .intro { display: block; position: fixed; inset: 0; z-index: 90; cursor: pointer; }
.intro-reveal .intro { pointer-events: none; cursor: auto; }
.intro-blur {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  transition: opacity 1200ms cubic-bezier(.4, 0, .2, 1);
}
.intro-bg { position: absolute; inset: 0; background: var(--orange); transition: opacity 500ms cubic-bezier(.4, 0, .2, 1); }
.intro-s {
  position: absolute; left: 50%; top: 50%; width: min(52vw, 420px); height: auto; color: #fff;
  translate: -50% calc(-50% + 12px); opacity: 0; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .25));
  transition: opacity 700ms cubic-bezier(.4, 0, .2, 1), translate 700ms cubic-bezier(.4, 0, .2, 1);
}
.intro-logo .intro-s { opacity: 1; translate: -50% -50%; }
.intro-out .intro-bg { opacity: 0; }
.intro-reveal .intro-blur { opacity: 0; }
.intro-reveal .intro-s { opacity: 0; transition-duration: 500ms; }
/* mientras dura la entrada la página no se desplaza */
html.intro-run:not(.intro-reveal) { overflow: hidden; }

/* ---------- menú: opacidad y desenfoque ---------- */
.menu::backdrop { background: transparent; }
.menu-panel {
  position: fixed; inset: 0; left: 0; right: 0; top: 0; bottom: 0; width: auto; max-height: none;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: max(84px, calc(env(safe-area-inset-top) + 72px)) var(--gutter) max(32px, calc(env(safe-area-inset-bottom) + 24px));
  border: 0; border-radius: 0; color: #fff; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  transform: none; clip-path: none; opacity: 0;
  transition: opacity 500ms cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.menu.is-open .menu-panel { opacity: 1; transform: none; clip-path: none; }
.menu.is-closing .menu-panel { transition-duration: 500ms; }
.menu-grab { display: none; }
.menu-panel:focus { outline: none; }
.menu-list { display: grid; gap: 2px; }
.menu-list li { opacity: 0; filter: none; transform: translateX(-24px); transition: opacity 700ms cubic-bezier(.4, 0, .2, 1), transform 700ms cubic-bezier(.4, 0, .2, 1); }
.menu.is-open .menu-list li { opacity: 1; transform: none; }
.menu.is-open .menu-list li:nth-child(1) { transition-delay: 120ms; }
.menu.is-open .menu-list li:nth-child(2) { transition-delay: 200ms; }
.menu.is-open .menu-list li:nth-child(3) { transition-delay: 280ms; }
.menu.is-open .menu-list li:nth-child(4) { transition-delay: 360ms; }
.menu.is-open .menu-foot { transition-delay: 440ms; }
.menu.is-closing .menu-list li { transition-delay: 0ms; transition-duration: 300ms; }
.menu-list a { display: flex; align-items: center; gap: 16px; padding: 8px 0; border: 0; text-decoration: none; color: #fff; }
.menu-list span { font: 700 clamp(2.3rem, 4.6vw + 1rem, 4.6rem)/1.05 var(--font-display); letter-spacing: -.04em; color: #fff; transition: color var(--d-med) var(--ease), transform 500ms var(--ease-soft); }
.menu-list a:hover span, .menu-list a:focus-visible span { color: var(--orange); }
.menu-list a[aria-current='true'] span { color: var(--orange); }
.menu-iso { width: clamp(22px, 2.4vw, 36px); margin-left: 0; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 0; }
.menu-foot .menu-cta { background: var(--orange); color: #000; }
.menu-foot .menu-cta::before { background: #fff; }
.menu-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--g400); }
.menu-close {
  position: fixed; top: max(16px, calc(env(safe-area-inset-top) + 10px)); right: var(--gutter); bottom: auto;
  width: auto; height: 46px; padding: 0 18px; gap: 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: #fff; font: 600 15px var(--font-display);
}
.menu-close span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.menu-close svg { width: 12px; height: 12px; order: 2; }
@media (min-width: 1024px) {
  .menu-panel { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .menu-list span { color: #fff; }
  .menu-list a[aria-current='true'] span { color: var(--orange); }
  .menu-contact { display: flex; color: var(--g400); }
  .lang-menu { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel, .menu-list li { transition-duration: 1ms !important; transition-delay: 0ms !important; filter: none !important; }
}

/* ---------- marcas: banda infinita de izquierda a derecha ---------- */
.clients { padding-bottom: clamp(56px, 6vw, 96px); }
.clients-in { display: block; }
.h-clients { max-width: 22ch; }
.marquee {
  position: relative; overflow: hidden; margin-top: clamp(28px, 3vw, 48px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-inner { display: flex; width: max-content; }
.marquee-list { display: flex; align-items: center; }
.mq-item { flex: none; display: flex; align-items: center; justify-content: center; width: 168px; height: 88px; padding: 0 22px; }
.mq-item .logo-img { max-height: 30px; max-width: 100%; opacity: .8; filter: grayscale(1) contrast(1.1); transition: opacity var(--d-med) var(--ease), filter var(--d-med) var(--ease); }
.mq-item .logo-img.is-mid { max-height: 40px; }
.mq-item .logo-img.is-square { max-height: 54px; }
.logo-name { font: 700 20px var(--font-display); color: #6A6A6A; letter-spacing: -.02em; white-space: nowrap; }
@media (hover: hover) { .mq-item:hover .logo-img { opacity: 1; filter: none; } }
@media (min-width: 768px) {
  .mq-item { width: 220px; height: 120px; padding: 0 34px; }
  .mq-item .logo-img { max-height: 38px; }
  .mq-item .logo-img.is-mid { max-height: 52px; }
  .mq-item .logo-img.is-square { max-height: 70px; }
}
/* carruseles arrastrables (referencia: ocioproductora.com): se mueven solos,
   se pueden llevar a la derecha o a la izquierda con el mouse o el dedo
   (con inercia) y con la rueda horizontal del trackpad */
[data-strip] { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
[data-strip].is-dragging { cursor: grabbing; }
[data-strip] img { -webkit-user-drag: none; pointer-events: none; }
.marquee-inner, .ribbon-inner { will-change: transform; }
.no-js [data-strip] { overflow-x: auto; cursor: auto; }
@media (max-width: 1023px) {
  .clients { min-height: 0; display: block; padding-top: 72px; }
}

/* ---------- cinta de integraciones, de derecha a izquierda ---------- */
.ribbon-sec { background: #000; color: #fff; padding: 8px 0 clamp(64px, 7vw, 104px); overflow: hidden; }
.ribbon { margin-top: 20px; overflow: hidden; }
.ribbon-inner { display: flex; width: max-content; }
.ribbon-list { display: flex; align-items: flex-start; gap: 14px; padding-right: 14px; }
.rb-item { flex: none; width: 150px; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: #1A1A1A; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.rb-item:nth-child(even) { margin-top: 30px; }
.rb-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: filter 500ms var(--ease), transform 900ms var(--ease-soft); }
@media (hover: hover) { .rb-item:hover img { filter: saturate(1.1); } }
@media (min-width: 768px) {
  .rb-item { width: 196px; border-radius: 18px; }
  .rb-item:nth-child(even) { margin-top: 44px; }
  .ribbon-list { gap: 20px; padding-right: 20px; }
}
.rb-item img { transform: translateZ(0) scale(var(--scale, 1)); transition: transform 600ms cubic-bezier(.4, 0, .2, 1), filter 500ms var(--ease); }
@media (hover: hover) { .rb-item:hover img { --scale: 1.05; } }
.diff .strip { margin-bottom: 0; }

/* ---------- «Que el contenido vuelva a tener sentido.» ----------
   El marcador ocupaba toda la caja de la línea (Poppins tiene ascendentes
   muy altos) y tapaba la línea de arriba. Ahora cubre solo desde la altura
   de las mayúsculas hasta un poco debajo de la base. */
.hl {
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 .3em / 100% .9em;
  padding: 0 .08em; margin: 0 -.02em;
}
.diff-title { line-height: 1.02; }

/* 72h: degradado más oscuro, con el volumen detrás */
.strip-num { position: relative; isolation: isolate; color: transparent; text-shadow: none; }
.strip-num span {
  background: linear-gradient(175deg, #FF7A1A 0%, #F06200 38%, #C24E00 72%, #8F3A00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.strip-num::before {
  content: attr(data-text); position: absolute; left: 0; top: 0; z-index: -1; color: #5A2400; -webkit-text-fill-color: #5A2400;
  text-shadow: .006em .008em 0 #4F2000, .012em .016em 0 #461C00, .018em .024em 0 #3D1900, .024em .032em 0 #341500, .03em .04em 0 #2B1100, .06em .1em .12em rgba(0, 0, 0, .7);
  transform: translate(.006em, .008em);
}

/* ---------- Cómo trabajamos: la línea llega a los bordes ---------- */
@media (min-width: 1024px) {
  .method { overflow-x: clip; }
  .method-body::before, .method-body::after {
    content: ''; position: absolute; height: 14px; width: calc((100vw - 100%) / 2 + 4px); background: var(--orange);
    filter: drop-shadow(0 0 12px rgba(255, 107, 0, .45)); pointer-events: none;
  }
  .method-body::before { right: calc(100% - 2px); top: 23px; transform-origin: right; }
  .method-body.end-lo::after { left: calc(100% - 2px); top: 83px; transform-origin: left; }
  .method-body.end-hi::after { left: calc(100% - 2px); top: 23px; transform-origin: left; }
  @media (prefers-reduced-motion: no-preference) {
    .js .method-body[data-reveal='draw']::before, .js .method-body[data-reveal='draw']::after { transform: scaleX(0); transition: transform 700ms var(--ease); }
    .js .method-body[data-reveal='draw']::after { transition-delay: 1200ms; }
    .js .method-body[data-reveal='draw'].is-in::before, .js .method-body[data-reveal='draw'].is-in::after { transform: none; }
  }
}
@media (max-width: 1023px) {
  .method { overflow-x: clip; }
  /* la línea baja hasta el borde inferior de la sección, sin cruzar el título */
  .wave-v { top: 6px; height: calc(100% - 6px + var(--sec-pad)); }
  .strip-in { min-height: 0; padding-block: 56px 40px; }
}

/* ---------- Quiénes somos ---------- */
.about-p { color: var(--g300); }
.about-p.about-lead { font: 600 clamp(1.4rem, .9vw + 1.15rem, 1.9rem)/1.25 var(--font-display); letter-spacing: -.02em; color: #fff; max-width: 26ch; margin-bottom: 22px; }
@media (min-width: 1024px) {
  .about { padding-bottom: 130px; }
  .about-p { font-size: 17px; }
  .about-p.about-lead { margin-bottom: 28px; }
}

/* ---------- Contacto ---------- */
.mail-row { display: flex; gap: 10px; align-items: stretch; }
.mail-row .contact-mail { flex: 1 1 auto; min-width: 0; }
.copy-mail {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 56px; min-height: 56px; padding: 0 16px;
  border-radius: 999px; border: 2px solid #000; background: transparent; color: #000; font: 600 14px var(--font-display); cursor: pointer;
  transition: background-color var(--d-med) var(--ease), color var(--d-med) var(--ease);
}
.copy-mail .ic-copy { width: 18px; height: 18px; }
.copy-mail span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (hover: hover) { .copy-mail:hover { background: #000; color: #fff; } }
.copy-mail.is-done { background: #000; color: var(--orange); }
.copy-note { min-height: 1.3em; margin: 8px 0 0; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity var(--d-med) var(--ease); }
.copy-note.is-on { opacity: 1; }
.wa { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 12px; }
.wa li { display: flex; align-items: center; gap: 8px; }
.ic-wa { width: 22px; height: 22px; flex: none; }
.wa a, .wa a:hover {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: #000;
  font: 600 17px var(--font-display); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
@media (hover: hover) { .wa a:hover { text-decoration-color: #fff; } }
@media (min-width: 768px) {
  .mail-row { display: inline-flex; max-width: 100%; }
  .copy-mail span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------- footer: redes ---------- */
.social { display: flex; gap: 10px; margin: 6px 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #333; color: #D6D6D6;
  transition: color var(--d-med) var(--ease), background-color var(--d-med) var(--ease), border-color var(--d-med) var(--ease);
}
.ic-social { width: 20px; height: 20px; }
@media (hover: hover) { .social a:hover { color: #000; background: var(--orange); border-color: var(--orange); } }
.social a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ======================================================================
   Clientes con protagonismo: marcas e integraciones en un solo bloque
   Título grande, banda de logos más alta y, debajo, la cinta de piezas
   reales (las dos se arrastran; van en direcciones opuestas).
   ====================================================================== */
.clients { padding-top: clamp(84px, 9vw, 150px); padding-bottom: clamp(36px, 4vw, 72px); }
.clients .h-clients { font-size: clamp(2.4rem, 4.4vw + 1rem, 5.4rem); line-height: .98; letter-spacing: -.045em; max-width: 13ch; }
.clients .marquee { margin-top: clamp(36px, 4vw, 64px); }
.clients .mq-item { width: 190px; height: 100px; padding: 0 26px; }
.clients .mq-item .logo-img { max-height: 34px; opacity: .85; }
.clients .mq-item .logo-img.is-mid { max-height: 46px; }
.clients .mq-item .logo-img.is-square { max-height: 64px; }
.ribbon-block { margin-top: clamp(40px, 5vw, 80px); }
.ribbon-head .eyebrow { margin-bottom: 0; }
.clients .ribbon { margin-top: 18px; padding-bottom: 44px; }
.clients .rb-item { width: 168px; background: #EDEDED; box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .04); }
.clients .rb-item:nth-child(even) { margin-top: 36px; }
@media (min-width: 768px) {
  .clients .mq-item { width: 250px; height: 140px; padding: 0 40px; }
  .clients .mq-item .logo-img { max-height: 42px; }
  .clients .mq-item .logo-img.is-mid { max-height: 58px; }
  .clients .mq-item .logo-img.is-square { max-height: 80px; }
  .clients .rb-item { width: 230px; border-radius: 20px; }
  .clients .rb-item:nth-child(even) { margin-top: 56px; }
  .clients .ribbon-list { gap: 24px; padding-right: 24px; }
  .clients .ribbon { padding-bottom: 56px; }
}
@media (min-width: 1440px) {
  .clients .rb-item { width: 260px; }
}

/* ======================================================================
   Aparición al desplazar (referencia: ocioproductora.com)
   Cada bloque entra suave al llegar a la pantalla: sube 28px y aparece en
   1,1 s; los conjuntos (logos, piezas, redes) entran en cascada; las fotos
   se descubren de abajo hacia arriba; la marca del pie emerge.
   ====================================================================== */
:root { --ease-reveal: cubic-bezier(.22, .61, .36, 1); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal='up'] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease-reveal), transform 1.1s var(--ease-reveal); }
  .js [data-reveal='fade'] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1.1s var(--ease-reveal), transform 1.1s var(--ease-reveal); }
  .js [data-reveal='up'].is-in, .js [data-reveal='fade'].is-in { opacity: 1; transform: none; }
  .js .contact-col + .contact-col[data-reveal] { transition-delay: 140ms; }
  .js .about-p[data-reveal] + .about-p[data-reveal] { transition-delay: 80ms; }

  /* cascada */
  .js [data-reveal='stagger'] li { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease-reveal), transform 1.1s var(--ease-reveal); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal='stagger'].is-in li { opacity: 1; transform: none; }
  [data-reveal='stagger'] li:nth-child(2) { --i: 1; } [data-reveal='stagger'] li:nth-child(3) { --i: 2; }
  [data-reveal='stagger'] li:nth-child(4) { --i: 3; } [data-reveal='stagger'] li:nth-child(5) { --i: 4; }
  [data-reveal='stagger'] li:nth-child(6) { --i: 5; } [data-reveal='stagger'] li:nth-child(7) { --i: 6; }
  [data-reveal='stagger'] li:nth-child(n+8) { --i: 7; }

  /* fotos que se descubren */
  .js [data-reveal='photos'] .ph img { clip-path: inset(100% 0 0 0 round 14px); scale: 1.14; transition: clip-path 1.3s var(--ease-reveal), scale 1.8s var(--ease-reveal); }
  .js [data-reveal='photos'] .ph::before { opacity: 0; transition: opacity 1s var(--ease-reveal) .5s; }
  .js [data-reveal='photos'].is-in .ph img { clip-path: inset(0 0 0 0 round 14px); scale: 1; }
  .js [data-reveal='photos'].is-in .ph::before { opacity: 1; }
  .js [data-reveal='photos'] .ph2 img { transition-delay: .18s; }

  /* la marca gigante del pie emerge */
  .js [data-reveal='rise'] { overflow: hidden; }
  .js [data-reveal='rise'] > span { display: inline-block; transform: translate3d(0, 60%, 0); opacity: 0; transition: transform 1.6s var(--ease-reveal), opacity 1.2s var(--ease-reveal); }
  .js [data-reveal='rise'].is-in > span { transform: none; opacity: 1; }

  /* fotos del equipo: leve paralaje al desplazar */
  @supports (animation-timeline: view()) {
    .about-photos .ph1 { animation: ph-drift-a linear both; animation-timeline: view(); }
    .about-photos .ph2 { animation: ph-drift-b linear both; animation-timeline: view(); }
    @keyframes ph-drift-a { from { translate: 0 30px; } to { translate: 0 -30px; } }
    @keyframes ph-drift-b { from { translate: 0 -10px; } to { translate: 0 50px; } }
  }
}

/* ======================================================================
   Opción B — portada con slider de videos (referencia: ocioproductora.com)
   Videos a pantalla completa armados con integraciones reales, créditos
   sobre la imagen, indicadores de avance y la S 3D fija arriba al centro.
   Solo aplica con HERO_VARIANT=slider (body.is-slider).
   ====================================================================== */
.is-slider .topbar.topbar-b {
  display: flex; position: fixed; inset: 0 0 auto 0; z-index: 50; height: 88px; padding: 0 var(--gutter);
  align-items: center; justify-content: space-between; pointer-events: none; background: transparent;
  transition: height 500ms cubic-bezier(.4, 0, .2, 1), background-color 500ms cubic-bezier(.4, 0, .2, 1);
}
.is-slider .topbar-b > * { pointer-events: auto; }
.is-slider .topbar-b.is-scrolled { height: 68px; background: rgba(12, 12, 12, .55); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.burger-b { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.burger-b span { position: absolute; left: 7px; right: 7px; height: 2px; border-radius: 2px; background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .35); transition: transform 500ms cubic-bezier(.4, 0, .2, 1); }
.burger-b span:nth-child(1) { top: 14px; } .burger-b span:nth-child(2) { top: 21px; right: 15px; } .burger-b span:nth-child(3) { top: 28px; }
@media (hover: hover) { .burger-b:hover span:nth-child(2) { transform: scaleX(1.35); transform-origin: left; } }
.logo-3d { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: block; width: 92px; height: 70px; transition: width 500ms cubic-bezier(.4, 0, .2, 1), height 500ms cubic-bezier(.4, 0, .2, 1); }
.is-scrolled .logo-3d { width: 72px; height: 54px; }
.s3d.s3d-head { position: absolute; inset: 0; }
.head-right { display: flex; align-items: center; gap: 20px; }
.is-slider .lang-top { display: inline-flex; }
.head-links { display: none; }
.head-links a { font: 600 11.5px/1.35 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: none; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); transition: opacity 300ms cubic-bezier(.4, 0, .2, 1); }
.head-links a:hover { opacity: .6; }
@media (min-width: 1024px) {
  .is-slider .topbar.topbar-b { height: 104px; }
  .is-slider .topbar-b.is-scrolled { height: 74px; }
  .logo-3d { width: 128px; height: 96px; }
  .is-scrolled .logo-3d { width: 84px; height: 63px; }
  .head-links { display: flex; flex-direction: column; align-items: flex-end; }
}

/* portada */
.is-slider .hero.hero-b { display: block; padding: 0; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.slider { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.is-on { visibility: visible; z-index: 1; }
.slide-v { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .72) 100%); }
.slide-credit {
  position: absolute; left: var(--gutter); top: 42%; display: grid; grid-template-columns: auto auto; gap: 0 26px; margin: 0;
  font: 500 clamp(.95rem, 1.1vw, 1.2rem)/1.25 var(--font-display); color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
.slide-credit span:first-child { color: rgba(255, 255, 255, .7); }
.slide-name { position: absolute; right: var(--gutter); top: 112px; display: grid; justify-items: end; gap: 4px; margin: 0; color: #fff; text-align: right; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.slide-name strong { font: 700 clamp(1.3rem, 2.4vw, 2.5rem)/1 var(--font-display); letter-spacing: -.02em; }
.slide-name span { font: 500 clamp(.95rem, 1.4vw, 1.5rem)/1.1 var(--font-display); color: rgba(255, 255, 255, .85); }
.slide.is-on .slide-credit, .slide.is-on .slide-name { animation: slide-text 900ms cubic-bezier(.22, .61, .36, 1) both 150ms; }
@keyframes slide-text { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.slider-veil { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; transition: opacity 350ms cubic-bezier(.4, 0, .2, 1); }
.slider.is-fading .slider-veil { opacity: 1; }
.slider-dots { position: absolute; right: calc(var(--gutter) - 4px); top: 168px; z-index: 6; display: flex; }
.slider-dot { display: flex; align-items: center; height: 40px; padding: 0 4px; border: 0; background: none; cursor: pointer; }
.slider-dot span { position: relative; display: block; width: 22px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .38); transition: width 500ms cubic-bezier(.4, 0, .2, 1); }
.slider-dot[aria-current='true'] span { width: 64px; }
.slider-dot i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.slider-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-b-content { position: absolute; left: 0; right: 0; bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px)); z-index: 7; color: #fff; pointer-events: none; }
.hero-b-content > * { pointer-events: auto; }
.hero-title-b { font-size: clamp(2.7rem, 12.4vw, 6.4rem); text-shadow: 0 4px 40px rgba(0, 0, 0, .45); }
.hero-b .hero-copy { margin-top: 16px; }
.hero-b .lead { display: none; color: rgba(255, 255, 255, .86); max-width: 38ch; }
.ulink-light { color: #fff; }
.intro-hold .hero-b-content [data-reveal] { opacity: 0 !important; }
.is-slider .footer { padding-bottom: 40px; }
@media (min-width: 768px) {
  .hero-b .lead { display: block; }
  .slide-credit { top: 50%; translate: 0 -50%; }
  .slide-name { top: auto; bottom: 92px; }
  .slider-dots { top: auto; bottom: 40px; }
}
@media (min-width: 1024px) {
  .hero-b-content { bottom: 56px; }
  .hero-title-b { font-size: clamp(4rem, 6.4vw, 7.6rem); }
  .hero-b .hero-copy { max-width: 520px; }
}
@media (max-width: 767px) {
  .slide-credit { top: auto; bottom: 46%; }
}
/* opción B: lectura del título sobre el video y créditos a la derecha */
.slide-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .18) 46%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .8) 100%);
}
.slide-credit { left: auto; right: var(--gutter); top: 166px; bottom: auto; translate: none; gap: 0 14px; font-size: .9rem; }
.slider-dots { top: 192px; }
@media (min-width: 768px) {
  .slide-credit { top: auto; bottom: 160px; translate: none; font-size: 1rem; }
  .slider-dots { top: auto; }
}
@media (max-width: 767px) {
  .slide-credit { top: 166px; bottom: auto; }
}
/* opción B: todo por encima del borde de la hoja de clientes que sube */
.hero-b-content { bottom: max(56px, calc(env(safe-area-inset-bottom) + 44px)); }
@media (min-width: 768px) {
  .slide-name { bottom: 116px; }
  .slide-credit { bottom: 196px; }
  .slider-dots { bottom: 60px; }
  .hero-b-content { bottom: 84px; }
}
/* opción B: sobre el video, solo título y botón (como en la referencia, poco texto) */
.hero-b .lead { display: none !important; }
.slide-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 44%, rgba(0, 0, 0, 0) 64%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .82) 100%);
}
@media (max-width: 767px) {
  /* celular: marca, créditos e indicadores juntos, justo arriba del título */
  .slide-name { top: auto; bottom: 300px; }
  .slide-name strong { font-size: 1.35rem; }
  .slide-credit { top: auto; bottom: 356px; font-size: .85rem; }
  .slider-dots { top: auto; bottom: 262px; }
}
@media (max-width: 767px) {
  .slider-dots { bottom: 280px; }
  .slide-name { bottom: 326px; }
  .slide-credit { bottom: 378px; }
}

/* ======================================================================
   Ronda 2 — correcciones del cliente
   ====================================================================== */
/* entrada: fondo negro y S naranja (misma transición) */
.intro-bg { background: #000; }
.intro-s { color: var(--orange); filter: none; }
/* «Curaduría» en el naranja de los botones */
.hero-title .ln1 .ln-in { color: var(--orange); }
/* S más sobria: sin halo fuerte detrás y respaldo SVG plano */
.is-classic .hero-glow-a { background: radial-gradient(closest-side, rgba(255, 107, 0, .12), rgba(255, 107, 0, .03) 50%, transparent 72%); }
.s3d-face { fill: var(--orange); }
/* cuatro videos, más juntos y pegados a la S (siempre detrás de ella) */
.reel-1 { width: 23%; left: 8%; top: 10%; rotate: -6deg; }
.reel-2 { width: 23%; right: 8%; bottom: 8%; left: auto; top: auto; rotate: 5deg; }
.reel-3 { width: 19%; right: 12%; top: 6%; rotate: 4deg; opacity: 1; }
.reel-4 { --depth: .7; width: 19%; left: 13%; bottom: 6%; rotate: -3deg; }
@media (max-width: 1023px) {
  .reel-1 { width: 23%; left: 6%; top: 8%; }
  .reel-2 { width: 23%; right: 6%; bottom: 6%; }
  .reel-3 { display: block; width: 18%; right: 10%; top: 4%; }
  .reel-4 { width: 18%; left: 10%; bottom: 4%; }
}
/* Quiénes somos: una sola imagen ilustrativa, sin nombres */
.about-visual .ph { width: 100%; aspect-ratio: 4 / 5; margin: 0; }
.about-visual .ph2 { display: none; }
@media (max-width: 1023px) { .about-visual .ph { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) { .about-visual { grid-column: 1 / span 5; } .about-visual .ph { max-width: 460px; } }
/* integraciones como videos silenciados */
.rb-item video { width: 100%; height: 100%; object-fit: cover; display: block; transform: translateZ(0) scale(var(--scale, 1)); transition: transform 600ms cubic-bezier(.4, 0, .2, 1); }
[data-strip] video { pointer-events: none; }
/* logos de proporción ~3:1 (p. ej. Backstage): un poco más altos para igualar el peso visual */
.clients .mq-item .logo-img.is-wide { max-height: 44px; }
@media (min-width: 768px) { .clients .mq-item .logo-img.is-wide { max-height: 54px; } }

/* ======================================================================
   Ronda 3 — correcciones del cliente
   ====================================================================== */
/* menú: solo el ícono de tres rayas (el nombre queda para lectores de pantalla) */
.menu-btn, .dock-menu { padding: 0; aspect-ratio: 1; justify-content: center; gap: 0; }
.menu-btn { width: 46px; min-height: 46px; }
.dock-menu { width: 52px; min-height: 52px; flex: none; }
.menu-btn .ic-burger, .dock-menu .ic-burger { width: 20px; height: 12px; }
/* acentos con el naranja de la marca */
.accent { color: var(--orange); }
.ul { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .12em; text-underline-offset: .18em; text-decoration-skip-ink: none; }
/* marcas siempre en blanco y negro (también al pasar el mouse) */
.clients .mq-item .logo-img, .mq-item .logo-img { filter: grayscale(1) contrast(1.1); opacity: .85; }
@media (hover: hover) { .mq-item:hover .logo-img { filter: grayscale(1) contrast(1.1); opacity: 1; } }
/* Quiénes somos: imagen y texto más cerca */
@media (min-width: 1024px) {
  .about-in { row-gap: 40px; }
  .about-visual { grid-column: 1 / span 5; }
  .about-visual .ph { max-width: none; }
  .about-copy { grid-column: 6 / span 6; align-self: center; padding-left: clamp(8px, 1.5vw, 28px); }
}
@media (max-width: 1023px) { .about-in { gap: 22px; } }
/* contacto */
.eyebrow-white { color: #fff; }
.contact-col h3.tag-black { display: inline-block; padding: .22em .55em; border-radius: 6px; background: #000; color: var(--orange); }
.wa-final { margin-top: clamp(36px, 5vw, 64px); display: flex; justify-content: center; }
.wa-cta { gap: 10px; }
.wa-cta .ic-wa { width: 22px; height: 22px; }
@media (max-width: 767px) { .wa-final .wa-cta { width: 100%; } }
@media (min-width: 1024px) {
  /* casi cuadrada: acompaña la altura del texto en lugar de superarla */
  .about-visual .ph { aspect-ratio: 1 / 1.05; }
  .about-visual .ph img { object-position: 50% 42%; }
}

/* emails del equipo (dominio secinfluence.com) */
.team-mail { margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 2px solid #000; }
.mail-list { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 14px; }
.mail-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mail-list .ic-social { width: 20px; height: 20px; flex: none; }
.mail-list a { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px var(--font-display); color: #000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
@media (hover: hover) { .mail-list a:hover { text-decoration-color: #fff; } }
.footer-mails { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.footer-mails a { color: var(--g400); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; transition: color var(--d-med) var(--ease); }
.footer-mails a:hover { color: var(--orange); }
@media (min-width: 768px) { .footer-mails { order: 3; width: 100%; justify-content: center; } }
.team-mail h3.tag-black { display: inline-block; margin: 0; padding: .22em .55em; border-radius: 6px; background: #000; color: var(--orange); font: 700 clamp(1.35rem, .4vw + 1.25rem, 1.65rem) var(--font-display); }
