/* Fuentes servidas desde nuestro servidor (variables: un archivo por familia) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/inter-tight.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 500 700; font-stretch: 50% 125%; font-display: swap; src: url("/assets/fonts/saira.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #E8E8E3;
  --ink: #111110;
  --black: #080807;
  --muted: #66665F; /* 4,7:1 sobre el hueso (AA) */
  --orange: #FF5500;
  /* Medidas de Monolog a 1440 px, pasadas a vw para que escalen igual */
  --gutter: max(16px, 1.806vw);    /* 26px */
  --fs-micro: max(10px, .715vw);   /* 10.3px */
  --fs-small: max(14px, 1.094vw);  /* 15.75px */
  --fs-body: max(15px, 1.233vw);   /* 17.75px */
  --fs-eyebrow: max(16px, 1.372vw);/* 19.75px */
  --fs-h4: max(19px, 1.649vw);     /* 23.75px */
  --fs-h3: max(32px, 3.681vw);     /* 53px */
  --fs-h2: max(36px, 5.035vw);     /* 72.5px */
  --fs-list: max(38px, 6.528vw);   /* 94px */
  --fs-display: max(56px, 9.688vw);/* 139.5px */
  --display: "Saira", "Inter Tight", sans-serif;
  --out: cubic-bezier(.16, 1, .35, 1);   /* la salida suave que usa Monolog en todo */
  --nav-h: 62px;
  /* Muelle críticamente amortiguado (damping 1.0, sin rebote), de apple-design */
  --spring: linear(0, .196, .484, .701, .836, .914, .956, .978, .989, .995, .997, .999, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 var(--fs-body)/1.25 "Inter Tight", system-ui, sans-serif;
  letter-spacing: -.01em;
  overflow-x: clip;
}
/* Grano de papel */
/* Grano solo en el hero: imagen ya renderizada, sin modo de fusión */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .28;
  background: url("/assets/grain.webp") repeat; background-size: 160px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.label { color: var(--muted); font-size: var(--fs-small); letter-spacing: -.01em; }
.label--dot { font-size: var(--fs-eyebrow); color: inherit; }
/* Titular gigante tipo Animo (Monolog): Saira ensanchada */
.display { font: 600 var(--fs-display)/.9 var(--display); font-stretch: 83%; letter-spacing: -.03em; text-transform: uppercase; }
.label--dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.dark { background: var(--black); color: var(--bg); }
.dark .label { color: #8d8d86; }

/* Accesibilidad: saltar al contenido y foco visible con teclado */
.skip { position: fixed; left: var(--gutter); top: 10px; z-index: 100; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: var(--bg); font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--out); }
.skip:focus { transform: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

/* Botones (patrón Monolog): el texto rueda hacia arriba, la flecha sale y entra otra, la caja encoge, rebote al pulsar */
.btn {
  --aside: #2c2c29;
  display: inline-flex; align-items: center; gap: .7em;
  padding: .3em .3em .3em .9em; border-radius: 6px;
  background: var(--ink); color: var(--bg); font-size: var(--fs-small); font-weight: 600; letter-spacing: -.01em;
  transition: transform .35s cubic-bezier(.48, 1.68, .64, 1), opacity .35s var(--out), background-color .25s, color .25s;
}
.btn--light { --aside: var(--ink); background: var(--bg); color: var(--ink); }
.btn--sm { font-size: max(13px, 1.0vw); }
.btn--lg { gap: 1em; padding: .45em .45em .45em 1.2em; font-size: var(--fs-h4); font-weight: 700; }
.btn__txt { display: block; overflow: clip; line-height: 1.2; }
.btn__txt > span { display: block; text-shadow: 0 1.2em 0 currentColor; transition: transform .65s var(--out); }
.btn__aside { position: relative; display: grid; place-items: center; width: 1.75em; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.btn--lg .btn__aside { width: 2.2em; }
.btn__bg { position: absolute; inset: 0; border-radius: 4px; background: var(--aside); transition: transform .65s var(--out), background-color .25s; }
.btn__arrow { position: relative; z-index: 1; color: var(--bg); line-height: 1; transition: transform .65s var(--out); }
.btn__arrow.is-entering { position: absolute; transform: translate(-1.4em, 1.4em); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { opacity: .9; }
  .btn:hover .btn__txt > span { transform: translateY(-1.2em); }
  .btn:hover .btn__arrow { transform: translate(1.4em, -1.4em); }
  .btn:hover .btn__arrow.is-entering { transform: none; }
  .btn:hover .btn__bg { transform: scale(.8); }
}
.btn:active { transform: scale(.95); }

/* Navegación: fija durante todo el scroll; cambia de color según el fondo que pasa por debajo */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); color: var(--ink); transition: color .25s;
}
.nav.is-dark { color: var(--bg); }
.nav.is-dark .nav__cta { --aside: var(--ink); background: var(--bg); color: var(--ink); }
.brand img { display: block; border-radius: 7px; }
.nav__links { display: flex; gap: 6px; font-size: max(13px, 1.0vw); }
.nav__cta { justify-self: end; }
/* Enlaces: un bloque de color se rellena de izquierda a derecha detrás del texto */
.nav__links a, .foot__col a { position: relative; isolation: isolate; padding: .35em .45em; }
.nav__links a::before, .foot__col a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  transform: scaleX(0); transform-origin: right; transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::before, .foot__col a:hover::before { transform: scaleX(1); transform-origin: left; }
}

/* 1 · Hero: "hooks." gigante */
.hero {
  height: 100svh; min-height: 580px;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + clamp(16px, 2.5vh, 36px)) var(--gutter) 14px;
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hero__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__intro p { font-size: var(--fs-h4); line-height: 1.1; letter-spacing: -.015em; }
.hero__aside { text-align: right; line-height: 1.45; }
.hero__aside .label { display: block; margin-bottom: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wordmark { margin-top: auto; font-size: inherit; }
.wordmark__text {
  display: block; width: max-content;
  font-weight: 800; font-size: 26vw; line-height: .8; letter-spacing: -.065em;
  padding: .06em .02em .02em 0; margin-top: -.06em;
  overflow: hidden;
}
.wordmark__text > span { display: inline-block; }
.wordmark__dot { color: var(--orange); }
.hero__foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--muted); font-size: 13px; }
.hero__foot a { color: var(--ink); }

/* 2 · Problema */
.problem {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter);
  padding: max(32px, 2.19vw) var(--gutter) max(96px, 14.58vw);
}
.problem__text { display: flex; flex-direction: column; gap: 1em; max-width: max(320px, 55.5vw); font-size: var(--fs-h3); font-weight: 700; line-height: 1; letter-spacing: -.03em; } /* 53px, 799px de ancho a 1440 */

/* 3 · Ahí entramos: 200vh de alto, el contenido fijo durante 100vh de scroll */
.gap { --open: 1; --fade: 0; height: 200vh; padding: 0 var(--gutter); overflow-x: clip; } /* clip no rompe el sticky */
.gap__stick { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: max(36px, 4.5vw); }
.gap__title { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; white-space: nowrap; transform: translateX(var(--shift, 0px)); font: 600 var(--fs-display)/.9 var(--display); font-stretch: 83%; letter-spacing: -.03em; text-transform: uppercase; }
.gap__word { display: inline-flex; overflow: hidden; padding: .04em 0; }
.gap__word:first-child { justify-self: end; }
.gap__word:last-child { justify-self: start; }
.gap__word span { display: inline-block; }
/* El hueco mide lo que la imagen + aire, y se cierra hasta un espacio normal */
.gap__hole { display: inline-block; width: calc(var(--open) * 28vw + .22em); }
.gap__text { max-width: 30ch; text-align: center; font-size: max(22px, 2.6vw); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; color: var(--bg); }
.gw { opacity: .16; transition: opacity .35s var(--out); }
.gw.is-lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gw { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .gap__word span { transform: translateY(105%); opacity: 0; transition: transform .9s var(--spring), opacity .5s ease-out; transition-delay: calc(var(--k) * 45ms); }
  .gap.is-in .gap__word span { transform: none; opacity: 1; }
}

.crm { list-style: none; }
.crm li { display: flex; justify-content: space-between; gap: .6em; padding: .55em 0; border-bottom: 1px solid rgba(17,17,16,.08); }
.crm li:last-child { border-bottom: 0; }
.crm span { color: #8B8B87; }
.crm b { font-weight: 700; }
.crm__hot { margin: 0 -.5em; padding: .55em .5em !important; border-radius: .4em; background: #FFE6D9; animation: hot 3s ease-in-out infinite; }
.crm__hot span, .crm__hot b { color: var(--orange); }
@keyframes hot { 50% { background: #FFF3EC; } }

/* 4 · Casos de éxito (patrón Monolog: etiqueta fija a la izquierda, imagen + ficha) */
.work {
  display: grid; grid-template-columns: 1fr 5fr; gap: var(--gutter);
  padding: max(96px, 10.49vw) var(--gutter) 0;
}
.work__label { position: sticky; top: calc(var(--nav-h) + 12px); align-self: start; color: var(--ink); }
.work__list { display: flex; flex-direction: column; }
.work__list::after { content: ""; height: 30vh; } /* recorrido para que el montón se vea entero antes de salir (el padding no cuenta para sticky) */
/* Fichas que se apilan al hacer scroll (como pxpush): cada una se pega un poco más abajo
   que la anterior y la siguiente la tapa, dejando a la vista solo su línea de título */
.story {
  --strip: 66px;
  position: sticky; top: calc(var(--nav-h) + 12px + var(--i) * var(--strip));
  display: grid; grid-template-columns: 3fr 2fr; gap: clamp(20px, 2.4vw, 40px);
  padding: 14px 0 clamp(36px, 4vw, 56px); border-top: 1px solid rgba(17,17,16,.14);
  background: var(--bg);
}
.story__media { position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 10; background: #d6d6d0; }
/* Caso de contenido: el vídeo real de TikTok dentro de un móvil, con sus cifras al lado */
.phone-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4cqw; }
.phone { position: relative; height: 86%; aspect-ratio: 9 / 19; overflow: hidden; border-radius: 3.2cqw; background: #000; box-shadow: 0 0 0 .5cqw #111, 0 2.4cqw 5cqw -2cqw rgba(0,0,0,.45); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Fotograma fijo del TikTok con botón de play: el enlace lleva al vídeo real */
.phone__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 7cqw; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); font-size: 2.6cqw; padding-left: .3cqw; transition: transform .45s var(--spring); }
.story:hover .phone__play { transform: translate(-50%, -50%) scale(1.12); }
.phone-stats { display: flex; flex-direction: column; gap: 1.6cqw; }
.stat {
  display: flex; flex-direction: column; gap: .2em; padding: 1.6cqw 2cqw; border-radius: 1.4cqw;
  background: #FAFAF7; font-size: 1.9cqw; color: #8B8B87;
  box-shadow: 0 .15cqw .35cqw rgba(0,0,0,.06), 0 2.4cqw 5cqw -2cqw rgba(0,0,0,.28);
}
.stat i { font-style: normal; color: var(--orange); }
.stat b { font-size: 3.4cqw; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.cta__alt { font-size: var(--fs-small); color: #b9b9b2; }
.cta__alt a { color: var(--bg); border-bottom: 1px solid rgba(232,232,227,.4); }
.cta__alt a:hover { color: var(--orange); border-color: var(--orange); }
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; }
.cursor__b {
  display: flex; align-items: center; height: 2em; padding: 0 .8em; margin: 14px 0 0 14px; border-radius: 6px;
  background: #d9d9d2; color: #000; font-size: var(--fs-small); font-weight: 500; letter-spacing: -.02em; white-space: nowrap;
  clip-path: inset(0 100% 0 0 round 6px); opacity: 0; transition: clip-path .45s cubic-bezier(.16, 1, .3, 1), opacity .2s;
}
.cursor__t { transform: translateY(4px); opacity: 0; transition: transform .2s var(--out), opacity .2s; }
.cursor.is-on .cursor__b { clip-path: inset(0 round 6px); opacity: 1; }
.cursor.is-on .cursor__t { transform: none; opacity: 1; }
.story__media img, .story__video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--spring); }
.story:hover .story__media img, .story:hover .story__video { transform: scale(1.03); }
.story__info { display: flex; flex-direction: column; gap: 12px; max-width: 36ch; }
.story__tag { display: flex; gap: 10px; align-items: center; font-size: var(--fs-micro); color: var(--muted); }
.story__tag span { padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; font-size: var(--fs-micro); }
.story h3 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.story h3 span { display: inline-block; font-size: .7em; transition: transform .45s var(--spring); }
.story h3 a:hover span { transform: translate(2px, -2px); }
.story__info > p:not([class]) { color: #3a3a37; font-size: var(--fs-body); line-height: 1.25; }
.story__metric { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.story__metric b { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; }

/* 5 · Servicios (patrón Scharpf, con medidas y tipografía de Monolog) */
.areas { padding: max(96px, 10.49vw) var(--gutter) max(80px, 8vw); }
.areas__head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); margin-bottom: max(48px, 5vw); }
.areas__head .label--dot { color: var(--ink); padding-top: .5em; }
.areas__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1; letter-spacing: -.03em; max-width: 18ch; }
.area {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); align-items: start;
  padding: max(28px, 2.6vw) 0 max(44px, 4vw); border-top: 1px solid rgba(17,17,16,.14);
}
.area__side { display: flex; flex-direction: column; gap: 18px; }
.area__tag { display: flex; gap: .7em; font-size: var(--fs-eyebrow); font-weight: 500; }
.area__tag span { color: var(--muted); }
.area__media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 5 / 4; width: min(100%, 360px); }
.area__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.area__media.ui { aspect-ratio: 5 / 4; padding: 5cqw; }
.area__media .ui__grid { font-size: 4.4cqw; }
.w--area { width: 92%; }
.area__body { display: flex; flex-direction: column; gap: 14px; }
.area__body h3 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; max-width: 26ch; }
.area__desc { font-size: var(--fs-body); line-height: 1.3; color: #3a3a37; max-width: 46ch; }
.area__line { font-size: var(--fs-small); color: var(--muted); }
.area__acc { margin-top: 18px; border-bottom: 1px solid rgba(17,17,16,.14); }
.area__cta { justify-self: end; }
/* Desplegable: "+" que gira, fila que se ilumina al pasar el ratón */
.acc { border-top: 1px solid rgba(17,17,16,.14); }
.acc summary {
  position: relative; isolation: isolate; list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; font-size: var(--fs-body); font-weight: 600;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: ""; position: absolute; inset: 0 -10px; z-index: -1; border-radius: 3px; background: transparent; transition: background-color .3s var(--out); }
.acc summary span { transition: transform .65s var(--out); }
.acc summary i { position: relative; flex: none; width: 12px; height: 12px; transition: transform .45s var(--out); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i { transform: rotate(45deg); color: var(--orange); }
.acc p { padding: 0 32px 16px 0; color: #3a3a37; line-height: 1.3; max-width: 52ch; }
.acc summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .acc summary:hover::before { background: rgba(17,17,16,.06); }
  .acc summary:hover span { transform: translateX(8px); }
}
@supports (interpolate-size: allow-keywords) {
  .areas { interpolate-size: allow-keywords; }
  .acc::details-content { height: 0; overflow: clip; transition: height .45s var(--spring), content-visibility .45s allow-discrete; }
  .acc[open]::details-content { height: auto; }
}

/* 6 · Cómo trabajamos (patrón "Project Journey" de Monolog) */
.process { padding: max(80px, 10.49vw) var(--gutter) max(96px, 14.58vw); }
.process__title { font: 600 var(--fs-display)/.9 var(--display); font-stretch: 83%; text-transform: uppercase; letter-spacing: -.03em; text-align: center; white-space: nowrap; }
.process__list { list-style: none; margin-top: clamp(32px, 5vw, 72px); }
.step {
  display: grid; grid-template-columns: 9.6vw 24vw 1fr; gap: var(--gutter);
  padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid rgba(232,232,227,.16);
}
.step__n { font-size: var(--fs-micro); letter-spacing: .02em; text-transform: uppercase; color: #8d8d86; }
.step__text { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.step h3 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.step__text p { color: #b9b9b2; font-size: var(--fs-body); line-height: 1.25; }

/* 7 · Preguntas frecuentes */
.faq {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter);
  padding: max(80px, 7.36vw) var(--gutter) max(32px, 2.19vw);
  background: #181715; color: var(--bg);
}
.faq__side { position: sticky; top: calc(var(--nav-h) + 12px); align-self: start; height: calc(100svh - var(--nav-h) - 36px); display: flex; flex-direction: column; justify-content: space-between; }
.faq__side .label { color: var(--bg); }
.faq__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.faq__cta p { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; max-width: 14ch; }
.faq__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1; letter-spacing: -.03em; max-width: 16ch; margin-bottom: max(32px, 3.5vw); }
.faq__item { border-top: 1px solid rgba(232,232,227,.16); }
.faq__item:last-child { border-bottom: 1px solid rgba(232,232,227,.16); }
.faq__item summary {
  position: relative; isolation: isolate; list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 3px; background: transparent; transition: background-color .3s var(--out); }
.faq__q, .faq__item summary i { transition: transform .65s var(--out), color .25s, background-color .25s, border-color .25s; }
.faq__item summary i { flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid #8d8d86; }
.faq__item[open] summary i { background: var(--orange); border-color: var(--orange); }
.faq__item summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover::before { background: var(--bg); }
  .faq__item summary:hover .faq__q { color: var(--ink); transform: translateX(10px); }
  .faq__item summary:hover i { border-color: var(--ink); background: var(--ink); transform: translateX(-10px); }
}
.faq__item p { max-width: 612px; padding: 0 40px 24px 0; color: #b9b9b2; font-size: var(--fs-body); line-height: 1.25; }
/* Apertura suave donde el navegador lo permite */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .45s var(--spring), content-visibility .45s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}

/* 8 · Llamada final */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(96px, 16vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 56px);
  background: radial-gradient(90% 70% at 50% 100%, rgba(255,85,0,.16) 0%, transparent 60%), var(--black);
}
.cta__title { width: 100%; font: 600 var(--fs-display)/.9 var(--display); font-stretch: 83%; text-transform: uppercase; letter-spacing: -.03em; }
.cta__title > span { display: block; }
.cta__l1 { padding-left: 4%; }
.cta__l2 { padding-left: 24%; }
.cta__l3 { padding-left: 2%; }
.cta__l4 { padding-left: 30%; }
.cta__arrow { display: inline-block; margin-right: .12em; color: var(--orange); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cta__title > span { animation: slideIn linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .cta__l2, .cta__l4 { animation-name: slideInR !important; }
    @keyframes slideIn { from { transform: translateX(-8%); opacity: 0; } }
    @keyframes slideInR { from { transform: translateX(8%); opacity: 0; } }
  }
}

/* 9 · Pie (patrón Monolog) */
.foot { background: var(--black); color: var(--bg); border-top: 1px solid rgba(232,232,227,.1); }
.foot__main {
  display: grid; grid-template-columns: 2fr 1fr .8fr; gap: 32px var(--gutter);
  padding: clamp(28px, 4vh, 48px) var(--gutter) 24px;
}
.foot .label { color: #8d8d86; margin-bottom: 18px; }
.foot .label--dot { color: var(--bg); }
.foot__nav { display: flex; flex-direction: column; max-width: 680px; }
.foot__nav a {
  display: flex; align-items: center; overflow: hidden;
  padding: 6px 0 8px; border-bottom: 1px solid rgba(232,232,227,.1);
  font-size: var(--fs-h3); font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
.foot__nav a { position: relative; isolation: isolate; justify-content: space-between; }
.foot__nav a::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 3px; background: transparent; transition: background-color .3s var(--out); }
.foot__nav a > span:last-child { transition: transform .65s var(--out), color .25s; }
.foot__arrow { order: 2; opacity: 0; filter: blur(6px); transition: transform .65s var(--out), opacity .3s var(--out), filter .3s var(--out); }
@media (hover: hover) and (pointer: fine) {
  .foot__nav a:hover::before { background: var(--bg); }
  .foot__nav a:hover > span:last-child { color: var(--ink); transform: translateX(10px); }
  .foot__nav a:hover .foot__arrow { opacity: 1; filter: none; color: var(--ink); transform: translateX(-10px); }
}
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1.4; }
.foot__col a { font-size: var(--fs-h4); transition: color .2s; }
.foot__col a:hover { color: var(--orange); }
.foot__muted { color: #8d8d86; }
.foot__bar {
  grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr .8fr; gap: var(--gutter); align-items: end;
  margin-top: clamp(48px, 10vh, 120px); font-size: 13px; line-height: 1.35;
}
.foot__bar > :last-child { justify-self: end; }
.date { display: inline-block; color: #8d8d86; }
.date::first-letter { text-transform: uppercase; }
.clock { font-variant-numeric: tabular-nums; }
.foot__top:hover { color: var(--orange); }
.foot__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__legal a:hover { color: var(--bg); }

/* Páginas legales y 404 */
.legal { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); padding: calc(var(--nav-h) + max(48px, 6vw)) var(--gutter) max(80px, 8vw); }
.legal .label--dot { color: var(--ink); padding-top: .6em; }
.legal__body { max-width: 68ch; }
.legal h1 { font-size: var(--fs-h2); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.legal__date { margin: 14px 0 40px; color: var(--muted); font-size: var(--fs-small); }
.legal h2 { margin: 2.2em 0 .6em; font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.015em; }
.legal p, .legal li { color: #3a3a37; line-height: 1.5; }
.legal p + p { margin-top: .8em; }
.legal ul { margin: .6em 0 0 1.2em; }
.legal li + li { margin-top: .4em; }
.legal a { border-bottom: 1px solid currentColor; }
.legal a:hover { color: var(--orange); }
.pending { padding: 0 .3em; border-radius: 3px; background: #FFE6D9; color: var(--orange); font-weight: 600; }
.legal-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px var(--gutter); border-top: 1px solid rgba(17,17,16,.14); font-size: var(--fs-small); color: var(--muted); }
.legal-foot nav { display: flex; gap: 18px; }
.legal-foot a:hover { color: var(--ink); }
.notfound { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: var(--nav-h) var(--gutter) 0; }
.notfound__code { font: 600 max(140px, 22vw)/.8 var(--display); font-stretch: 83%; letter-spacing: -.03em; }
.notfound__code span { color: var(--orange); }
.notfound h1 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.notfound p { max-width: 40ch; color: #3a3a37; }
.foot__band { position: relative; height: clamp(220px, 25vw, 360px); border-top: 1px solid rgba(232,232,227,.1); }
.foot__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot__logo, .foot__quote { position: absolute; top: 50%; transform: translateY(-50%); }
.foot__logo { left: var(--gutter); width: 40px; height: 40px; border-radius: 9px; }
.foot__quote { right: var(--gutter); font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 4px; background: rgba(8,8,7,.75); }

/* ── Componentes de interfaz animados (skill bento-ui-motion-grid) ──
   Bandeja + tarjetas blancas con doble sombra suave, un solo acento, cifras tabulares.
   Todo se escala con el ancho de la bandeja (container queries), así se ve igual en cualquier pantalla.
   El estado base es el final: con "movimiento reducido" se ve quieto y completo. */
.ui {
  --io: cubic-bezier(.65, 0, .35, 1);
  container-type: inline-size; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 4px; padding: 3.2cqw;
}
.ui--light { background: radial-gradient(130% 110% at 0% 0%, #e3e3dd 0%, #d4d4cd 100%); }
.ui--dark { background: radial-gradient(130% 110% at 100% 0%, #222220 0%, #121211 100%); box-shadow: inset 0 0 0 1px rgba(232,232,227,.06); }
.ui__grid { height: 100%; display: grid; gap: 2cqw; font-size: 2.55cqw; line-height: 1.25; letter-spacing: -.01em; }
.ui__grid--cem { grid-template-columns: 1.15fr 1fr; grid-template-rows: 1.3fr 1fr; grid-template-areas: "parte scan" "parte ring"; }
.ui__grid--one { place-items: center; font-size: 3.1cqw; }
.ui__grid--two { grid-template-columns: 1.25fr 1fr; align-items: center; font-size: 2.8cqw; }

.w {
  min-width: 0; display: flex; flex-direction: column; gap: 1.5cqw;
  padding: 2.6cqw; border-radius: 1.8cqw; background: #FAFAF7; color: var(--ink);
  box-shadow: 0 .15cqw .35cqw rgba(0,0,0,.06), 0 2.4cqw 5cqw -2cqw rgba(0,0,0,.28);
}
.w--dark { background: #0F0F12; color: var(--bg); }
.w__head { display: flex; justify-content: space-between; align-items: center; gap: .6em; }
.w__label { font-size: .8em; font-weight: 500; color: #8B8B87; }
.chip { font-size: .72em; font-weight: 600; padding: .25em .7em; border-radius: 99px; background: #FFE6D9; color: var(--orange); white-space: nowrap; }
.tnum, .odo, .w__stat b { font-variant-numeric: tabular-nums; }
.ui svg { width: 1.15em; height: 1.15em; flex: none; }
.ui svg path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }

/* CEM · parte de jornada: se rellena y se envía */
.w--parte { grid-area: parte; }
.w__rows { list-style: none; }
.w__rows li { display: flex; justify-content: space-between; gap: .6em; padding: .62em 0; border-bottom: 1px solid rgba(17,17,16,.08); }
.w__rows span { color: #8B8B87; }
.w__rows b { font-weight: 600; }
.send { position: relative; margin-top: auto; height: 2.7em; border-radius: .75em; overflow: hidden; font-weight: 600; animation: press 6s infinite; }
.send__a, .send__b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .45em; }
.send__a { background: var(--ink); color: var(--bg); opacity: 0; animation: sendA 6s infinite; }
.send__b { background: var(--orange); color: #fff; animation: sendB 6s infinite; }
.send__b path { animation: draw 6s infinite; }
@keyframes press { 0%, 36% { transform: none; } 39% { transform: scale(.96); } 44%, 100% { transform: none; } }
@keyframes sendA { 0%, 38% { opacity: 1; } 46%, 90% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes sendB { 0%, 38% { opacity: 0; } 46%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes draw { 0%, 44% { stroke-dashoffset: 1; } 58%, 100% { stroke-dashoffset: 0; } }

.sign { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: .6em .7em; border: 1px dashed rgba(17,17,16,.18); border-radius: .6em; }
.sign span { font-size: .72em; color: #8B8B87; }
.sign svg { width: 70% !important; height: auto !important; align-self: center; }
.sign path { stroke-width: 1.6; animation: sign 6s infinite; }
@keyframes sign { 0%, 6% { stroke-dashoffset: 1; } 32%, 90% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 1; } }

/* CEM · almacén: el láser lee y el contador sube */
.w--scan { grid-area: scan; }
.barcode {
  position: relative; flex: 1; border-radius: .5em; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 .9em, rgba(232,232,227,.0) .9em 1em),
    repeating-linear-gradient(90deg, #E8E8E3 0 .14em, transparent .14em .3em, #E8E8E3 .3em .38em, transparent .38em .62em, #E8E8E3 .62em .86em, transparent .86em 1.02em, #E8E8E3 1.02em 1.1em, transparent 1.1em 1.36em);
  opacity: .92;
}
.scanline { position: absolute; left: -4%; right: -4%; top: 10%; bottom: 12%; animation: scan 2.25s var(--io) infinite alternate; }
.scanline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--orange); box-shadow: 0 0 1em .25em rgba(255,85,0,.55); }
@keyframes scan { from { transform: none; } to { transform: translateY(100%); } }
.w__stat { display: flex; justify-content: space-between; align-items: baseline; }
.w__stat > span { font-size: .8em; color: #8B8B87; }
.odo { display: inline-block; height: 1.1em; overflow: hidden; font-size: 1.9em; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.odo span { display: block; transform: translateY(-2.2em); animation: odo 9s infinite; }
@keyframes odo {
  0%, 28% { transform: translateY(0); animation-timing-function: var(--spring); }
  33%, 61% { transform: translateY(-1.1em); animation-timing-function: var(--spring); }
  66%, 94% { transform: translateY(-2.2em); animation-timing-function: var(--spring); }
  99%, 100% { transform: translateY(-3.3em); }
}

/* CEM · combustible: el anillo se completa y aparece el check */
.w--ring { grid-area: ring; flex-direction: row; align-items: center; gap: 1.1em; }
.ring { width: 3.9em !important; height: 3.9em !important; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #E6E6E0; stroke-width: 4.5; }
.ring .ring__v { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 22; animation: ring 6s infinite 1s backwards; }
@keyframes ring {
  0% { stroke-dashoffset: 100; opacity: 1; animation-timing-function: var(--spring); }
  42%, 86% { stroke-dashoffset: 22; opacity: 1; }
  95% { stroke-dashoffset: 22; opacity: 0; }
  96%, 100% { stroke-dashoffset: 100; opacity: 0; }
}
.w__ok { display: flex; align-items: center; gap: .4em; margin-top: .25em; font-weight: 600; }
.w__ok svg { color: var(--orange); }
.w__ok path { animation: draw2 6s infinite 1s backwards; }
@keyframes draw2 { 0%, 40% { stroke-dashoffset: 1; } 52%, 88% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 1; } }

/* Paso 1 · diagnóstico: barras que crecen y etiquetas que aparecen */
.w--diag { width: 92%; }
.w--crm { width: 72%; }
.bars { list-style: none; }
.bars li { display: grid; grid-template-columns: 8.5em 1fr 7em; align-items: center; gap: .8em; padding: .75em 0; border-bottom: 1px solid rgba(17,17,16,.08); }
.bars li:last-child { border-bottom: 0; }
.bars i { position: relative; height: .55em; border-radius: 99px; background: #ECECE7; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--ink); transform-origin: left; animation: grow 7s infinite backwards; animation-delay: var(--d); }
.bars em { justify-self: start; font-style: normal; font-size: .72em; font-weight: 600; padding: .25em .7em; border-radius: 99px; background: #FFE6D9; color: var(--orange); animation: pop 7s infinite backwards; animation-delay: var(--d); }
@keyframes grow { 0% { transform: scaleX(0); opacity: 1; animation-timing-function: var(--spring); } 22%, 86% { transform: scaleX(1); opacity: 1; } 95% { transform: scaleX(1); opacity: 0; } 96%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes pop { 0%, 24% { opacity: 0; transform: scale(.85); } 30%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }

/* Paso 2 · desarrollo: la barra avanza y cada fase se marca */
.w--build { width: 80%; }
.progress { height: .5em; border-radius: 99px; background: #ECECE7; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--orange); transform-origin: left; animation: prog 8s infinite; }
@keyframes prog { 0% { transform: scaleX(0); opacity: 1; } 78% { transform: scaleX(1); opacity: 1; } 90% { transform: scaleX(1); opacity: 1; } 98%, 100% { transform: scaleX(1); opacity: 0; } }
.checks { list-style: none; }
.checks li { display: flex; align-items: center; gap: .65em; padding: .58em 0; border-bottom: 1px solid rgba(17,17,16,.08); }
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 1.35em !important; height: 1.35em !important; padding: .2em; border-radius: 50%; background: var(--orange); color: #fff; }
.checks path { stroke-dashoffset: 0; }
.checks li:nth-child(1) svg, .checks li:nth-child(1) path { animation-name: c1; }
.checks li:nth-child(2) svg, .checks li:nth-child(2) path { animation-name: c2; }
.checks li:nth-child(3) svg, .checks li:nth-child(3) path { animation-name: c3; }
.checks li:nth-child(4) svg, .checks li:nth-child(4) path { animation-name: c4; }
.checks svg, .checks path { animation-duration: 8s; animation-iteration-count: infinite; }
@keyframes c1 { 0%, 14% { background: #E4E4DE; stroke-dashoffset: 1; } 20%, 92% { background: var(--orange); stroke-dashoffset: 0; } 98%, 100% { background: #E4E4DE; stroke-dashoffset: 1; } }
@keyframes c2 { 0%, 32% { background: #E4E4DE; stroke-dashoffset: 1; } 38%, 92% { background: var(--orange); stroke-dashoffset: 0; } 98%, 100% { background: #E4E4DE; stroke-dashoffset: 1; } }
@keyframes c3 { 0%, 52% { background: #E4E4DE; stroke-dashoffset: 1; } 58%, 92% { background: var(--orange); stroke-dashoffset: 0; } 98%, 100% { background: #E4E4DE; stroke-dashoffset: 1; } }
@keyframes c4 { 0%, 74% { background: #E4E4DE; stroke-dashoffset: 1; } 80%, 92% { background: var(--orange); stroke-dashoffset: 0; } 98%, 100% { background: #E4E4DE; stroke-dashoffset: 1; } }

/* Paso 3 · mantenimiento: estado en línea + soporte que responde */
.live { display: flex; align-items: center; gap: .45em; font-size: .8em; color: #8B8B87; }
.live i { position: relative; width: .55em; height: .55em; border-radius: 50%; background: var(--orange); }
.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,85,0,.5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: none; opacity: 1; } to { transform: scale(3.5); opacity: 0; } }
.w__big { font-size: 1.85em; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.uptime { margin-top: 1.2em; display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: .22em; height: 2.6em; }
.uptime i { height: 100%; border-radius: .15em; background: #2a2a28; }
.uptime i:nth-child(3n) { height: 88%; } .uptime i:nth-child(4n) { height: 76%; } .uptime i:nth-child(7n) { height: 94%; }
.uptime i:last-child { background: var(--orange); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
.w--chat { justify-content: flex-end; gap: .55em; background: #F1F1ED; }
.bubble { max-width: 92%; padding: .6em .85em; border-radius: 1em; font-size: .9em; line-height: 1.3; }
.bubble--in { align-self: flex-start; background: #fff; border-bottom-left-radius: .3em; box-shadow: 0 .1em .4em rgba(0,0,0,.06); animation: inB 8s infinite; }
.bubble--out { position: relative; align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: .3em; animation: outB 8s infinite; }
.bubble__txt { display: inline-flex; align-items: center; gap: .35em; animation: txt 8s infinite; }
.bubble__txt svg { color: var(--orange); }
.typing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .25em; opacity: 0; animation: typ 8s infinite; }
.typing i { width: .38em; height: .38em; border-radius: 50%; background: var(--bg); animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes inB { 0%, 4% { opacity: 0; transform: translateY(.6em); } 10%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes outB { 0%, 18% { opacity: 0; transform: translateY(.6em); } 24%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes typ { 0%, 22% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes txt { 0%, 40% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-.25em); opacity: 1; } }

.ui.is-paused *, .ui.is-paused *::after, .story.is-covered .ui *, .story.is-covered .ui *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .ui *, .ui *::after { animation: none !important; }
  .send__a, .typing { opacity: 0; }
}

/* Entrada al cargar: titular línea a línea con el muelle */
@media (prefers-reduced-motion: no-preference) {
  .wordmark__text > span { transform: translateY(102%); animation: rise 1.2s var(--spring) forwards; animation-delay: var(--d); }
  .in { opacity: 0; transform: translateY(10px); animation: rise .9s var(--spring) forwards, show .6s ease-out forwards; animation-delay: var(--d); }
}
@media (prefers-reduced-motion: reduce) {
  .in { animation: show .4s ease-out both; opacity: 0; }
}
@keyframes rise { to { transform: none; } }
.sw { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .sw > span { transform: translateY(110%); transition: transform .9s var(--out); transition-delay: calc(var(--i) * 22ms); }
  .is-in .sw > span { transform: none; }
}
@keyframes show { to { opacity: 1; } }

/* Ligado al scroll: las tarjetas suben al entrar */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
      }
}

/* Móvil */
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .problem { grid-template-columns: 1fr; }
  .gap__title { font-size: 11vw; }
  .gap__hole { width: calc(var(--open) * 10vw + .2em); }
  .process__title { font-size: 11vw; white-space: normal; }
  .hero__top { flex-direction: column; }
  .hero__aside { text-align: left; }
  .hero__foot span:last-child { display: none; }
  .work, .story { grid-template-columns: 1fr; }
  .work__label, .story { position: static; }
  .work__list::after { display: none; }
  .step, .faq, .foot__main, .foot__bar, .areas__head, .area, .legal { grid-template-columns: 1fr; }
  .area__cta { justify-self: start; }
  .w--area { width: 100%; }
  .foot__bar > :last-child { justify-self: start; }
  .cta__l1, .cta__l2, .cta__l3, .cta__l4 { padding-left: 0; }
  .faq__side { position: static; height: auto; gap: 28px; }
  .faq__cta { order: 2; }
  .ui { aspect-ratio: auto; }
  .ui:has(.phone-stage) { aspect-ratio: 1 / 1; }
  .ui:has(.phone-stage) .stat { font-size: 3.4cqw; }
  .ui:has(.phone-stage) .stat b { font-size: 6cqw; }
  .ui__grid { font-size: 3.9cqw; }
  .ui__grid--cem, .ui__grid--two { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: none; }
  .w--parte, .w--scan, .w--ring { grid-area: auto; }
  .w--scan .barcode { min-height: 5em; }
  .w--diag, .w--build, .w--crm { width: 100%; }
}
