/* ==========================================================================
   Creatu — Landing
   Paleta: Tinta y menta. Dos colores de marca (--ink y --accent) y los tonos
   derivados del paisaje del hero. La paleta B (Petróleo y cobre) quedó
   archivada en docs/paletas/petroleo-y-cobre.md.
   ========================================================================== */

/* ---------- Paleta · Tinta y menta ---------- */
:root {
  --ink: #0B1E3F;
  --accent: #17B26A;
  --accent-ink: #052615;   /* texto sobre --accent */
  --accent-soft: #DDF5E8;
  --bg: #F7F6F2;
  --tint: #EEF1EC;
  --dark: #06111F;
  --sky-1: #050D1E;
  --sky-2: #12264A;
  --sky-3: #3E5F7E;
  --sky-4: #C9C2A5;
  --glow: rgba(214, 226, 190, .55);
  --m1: #4B6782;            /* montañas del hero, de lejos a cerca */
  --m2: #2C4766;
  --m3: #18304F;
  --m4: #0F2A35;
  --m5: #0A1D22;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: color-mix(in oklab, var(--ink) 92%, black);
  --muted: color-mix(in oklab, var(--ink) 66%, var(--bg));
  --line: color-mix(in oklab, var(--ink) 12%, transparent);
  --mk-muted: #646A78;      /* texto secundario dentro de los mockups (≥4.5:1 sobre blanco) */
  --on-dark: #F4F5F7;
  --on-dark-muted: rgba(244, 245, 247, .66);
  --on-dark-line: rgba(255, 255, 255, .12);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  background: var(--dark); /* el lienzo detrás del scroll y del rebote es oscuro como el hero y el footer */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--on-dark) 35%, transparent) transparent;
}
/* En pantallas angostas (ventanas chicas de escritorio) la barra fija no aporta: se oculta.
   En teléfonos reales el sistema ya la superpone y la esconde solo. */
@media (max-width: 860px) { html { scrollbar-width: none; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  transition: background-color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* Sobre fondos claros el menta no llega a 3:1: el anillo pasa a tinta */
.section--light :focus-visible, .section--tint :focus-visible { outline-color: var(--ink); }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ---------- Botones ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font-sans); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 24px -8px rgba(0,0,0,.35); }
.btn--light:hover { background: #F2F3F5; }
/* Botón principal sobre fondo claro (el texto de los artículos) */
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 8px 24px -10px rgba(11, 30, 63, .55); }
.btn--ink:hover { background: color-mix(in oklab, var(--ink) 86%, white); }
.btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--dark { background: var(--ink); color: #fff; }
/* Icono de enlace externo (cal.com, Tally): avisa que se sale del sitio */
.ext { display: inline-block; flex: none; width: .9em; height: .9em; vertical-align: -0.08em; opacity: .7; transition: transform .2s var(--ease), opacity .2s; }
a:not(.btn) > .ext, .nowrap > .ext { margin-left: .3em; }
a:hover > .ext { opacity: 1; transform: translate(1px, -1px); }
/* Enlace interno de texto (no compite con los botones de agendar) */
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link:hover svg { transform: translateX(3px); }
/* Camino alternativo junto al botón de agendar: para quien prefiere escribir */
.alt-path { font-size: 15px; color: rgba(255,255,255,.84); text-shadow: 0 1px 14px rgba(0,0,0,.35); padding-inline: 8px; }
.alt-path a { white-space: nowrap; color: var(--on-dark); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.alt-path a:hover { text-decoration-color: currentColor; }
/* En el cierre la línea cae sobre la parte clara del cielo: más contraste */
.cta .alt-path { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.4); }
.nowrap { white-space: nowrap; }
@media (pointer: coarse) {
  /* Enlace en línea con área táctil de ~44px sin mover el texto */
  .alt-path a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

.h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 20ch; }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }

.section-head { margin-bottom: 56px; }
.section-head .lead { margin-top: 22px; }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head__lead { font-size: 17px; color: var(--muted); max-width: 46ch; justify-self: end; }

section { position: relative; }
.section--light { background: var(--bg); padding: 120px 0; }
.section--tint { background: var(--tint); padding: 120px 0; }
.section--dark { background: var(--dark); color: var(--on-dark); padding: 120px 0 140px; }
.section--ink { background: var(--ink); color: var(--on-dark); padding: 120px 0; }
.section--dark .section-head__lead, .section--ink .section-head__lead { color: var(--on-dark-muted); }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__bg { fill: #fff; }
.brand__arc { stroke: var(--ink); }
.brand__dot { fill: var(--accent); }
.brand__word { font-size: 22px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.brand__word span { color: var(--accent); }
.nav .brand__word span,
.footer .brand__word span { color: color-mix(in oklab, var(--accent) 80%, white); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; color: var(--on-dark); transition: padding .3s var(--ease); }
.nav__inner {
  width: min(100% - 32px, 1240px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled .nav__inner {
  background: color-mix(in oklab, var(--dark) 72%, transparent);
  border-color: rgba(255,255,255,.08);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.4);
}
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__cta { display: flex; gap: 8px; }
.nav__toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: var(--dark);
  padding-top: clamp(130px, 17vh, 180px);
  isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 30%, var(--sky-3) 52%, var(--sky-4) 66%, var(--m3) 80%);
  transition: background .5s var(--ease);
}
.hero__glow {
  position: absolute; left: 50%; top: 58%; width: 120vw; height: 60vh; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero__stars {
  position: absolute; inset: 0 0 50% 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 38%, #fff 50%, transparent 51%);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.hero::after { /* grano */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 4; text-align: center; display: grid; justify-items: center; }
.hero__title {
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  max-width: 19ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__title em { font-style: normal; color: color-mix(in oklab, var(--accent) 55%, white); }
.hero__lead { margin-top: 24px; max-width: 58ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.78); text-wrap: balance; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.hero__note { margin-top: 18px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13.5px; color: rgba(255,255,255,.86); text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.hero__note li { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { flex: none; width: 16px; height: 16px; color: color-mix(in oklab, var(--accent) 70%, white); }
@media (max-width: 560px) {
  .hero__note { flex-direction: column; align-items: flex-start; text-align: left; max-width: 34ch; }
  .hero__note li { align-items: flex-start; }
  .hero__note svg { margin-top: 2px; }
}

.landscape { position: absolute; left: 0; width: 100%; pointer-events: none; }
.landscape path { transition: fill .5s; }
.landscape--back { bottom: 0; height: 78%; z-index: -1; }
/* Desde ~1250px el bosque escala con el ancho y sus árboles crecen hacia arriba.
   Pasado 1440px se baja lo justo para que mantengan la altura que tienen a 1440,
   y el pie del hero se funde a oscuro (.hero__foot::after) para que no se vea el corte. */
.landscape--front { bottom: min(0px, (1440px - 100vw) * .2); height: 32%; z-index: 3; }

.hero__stage { position: relative; z-index: 2; margin: 56px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__fig { width: min(100%, 1040px); padding-inline: 4px; font-size: 13.5px; color: rgba(255,255,255,.8); text-shadow: 0 1px 12px rgba(0,0,0,.4); text-align: left; }

/* Pie del hero: espacio bajo el bosque y fundido a oscuro hacia la sección siguiente */
.hero__foot { position: relative; z-index: 4; height: 190px; margin-top: -40px; }
@media (max-width: 860px) { .hero__foot { height: 130px; margin-top: -24px; } }
@media (min-width: 561px) and (max-width: 860px) { .hero__foot { height: 190px; } } /* el pie ya da el aire oscuro; el bosque necesita esa altura para no tapar el mockup */
.hero__foot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--dark)); }

/* ---------- Mockup (hero) ---------- */
.mk {
  --mk-line: #E7E8EC;
  width: min(100%, 1040px);
  display: grid; grid-template-columns: 200px 1fr;
  border-radius: 18px; overflow: hidden;
  background: #fff; color: #1B1D24;
  font-size: 12px; line-height: 1.35;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 40px 80px -20px rgba(0,0,0,.55), 0 0 0 10px rgba(255,255,255,.06);
  text-align: left;
}
.mk__side { background: #121419; color: #D9DBE1; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.mk__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #fff; letter-spacing: -0.03em; margin-bottom: 14px; }
.mk__logo { width: 18px; height: 18px; border-radius: 5px; background: #fff; position: relative; }
.mk__logo::after { content: ""; position: absolute; width: 5px; height: 5px; right: 3px; top: 6.5px; border-radius: 50%; background: var(--accent); }
.mk__label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8B90A0; margin-top: 6px; }
.mk__nav li { padding: 6px 8px; border-radius: 7px; color: #C3C6CE; display: flex; align-items: center; gap: 8px; }
.mk__nav li.is-active { background: rgba(255,255,255,.08); color: #fff; }
.mk__nav--proj i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.mk__main { display: flex; flex-direction: column; min-width: 0; }
.mk__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--mk-line); }
.mk__crumb { color: var(--mk-muted); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk__crumb b { color: #1B1D24; font-weight: 600; }
.mk__avatars { display: flex; }
.mk__avatars i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; background: linear-gradient(135deg, #F4B25B, #E0784A); }
.mk__avatars i:nth-child(2) { background: linear-gradient(135deg, #8B9CF7, #5A6FE0); }
.mk__avatars i:nth-child(3) { background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, black)); }
.mk__btn { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--mk-line); font-weight: 500; white-space: nowrap; }
.mk__btn--dark { background: #121419; color: #fff; border-color: #121419; }
/* Botones dibujados en mockups: tono suave para que no compitan con los botones reales */
.mk__btn--accent { background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 50%, var(--ink)); border-color: transparent; font-weight: 600; text-align: center; margin-top: 4px; }
.mk__body { display: grid; grid-template-columns: 1fr 230px; gap: 14px; padding: 14px; background: #F5F6F8; min-height: 380px; }
.mk__canvas {
  position: relative; border-radius: 12px; background: #fff; border: 1px solid var(--mk-line); padding: 16px; overflow: hidden;
  background-image: radial-gradient(#E3E5EA 1px, transparent 1px); background-size: 16px 16px;
}
.mk__head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mk__tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 50%, black); font-weight: 600; }
.mk__card { position: absolute; background: #fff; border: 1px solid var(--mk-line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 16px -8px rgba(20,25,40,.18); display: grid; gap: 4px; width: 190px; }
.mk__card b { font-weight: 600; font-size: 12.5px; }
.mk__card--a { left: 18px; top: 56px; }
.mk__card--b { left: 230px; top: 48px; width: 210px; border-color: #F3C9B5; }
.mk__card--c { left: 262px; top: 128px; width: 200px; border-color: color-mix(in oklab, var(--accent) 45%, white); }
.mk__k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--mk-muted); font-weight: 600; }
.mk__k--warn { color: #B5501F; }
.mk__k--ok { color: color-mix(in oklab, var(--accent) 55%, black); }
.mk__bar { height: 5px; border-radius: 3px; background: #EEF0F3; overflow: hidden; }
.mk__bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.mk__flow { position: absolute; left: 18px; right: 18px; top: 206px; display: flex; align-items: center; }
.mk__node { padding: 7px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--mk-line); font-weight: 500; white-space: nowrap; box-shadow: 0 4px 10px -6px rgba(20,25,40,.2); }
.mk__node--warn { border-color: #E9A07D; background: #FFF4EE; color: #B04A1E; }
.mk__line { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, #C7CBD3 0 5px, transparent 5px 9px); min-width: 14px; }
.mk__panel { align-self: start; background: #fff; border: 1px solid var(--mk-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mk__panel > b { font-size: 13px; }
.mk__check { display: grid; gap: 6px; }
.mk__check li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--mk-line); }
.mk__check li::before { content: ""; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid #C7CBD3; flex: none; }
.mk__check li.is-done::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--ink); }
.mk__meta { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--mk-line); color: var(--mk-muted); }
.mk__meta b { color: #1B1D24; font-weight: 600; }
.mk__ok { color: color-mix(in oklab, var(--accent) 55%, black) !important; }

/* ---------- Por qué ---------- */
.why { margin-top: -1px; padding-top: 72px; }
.why .h2 { max-width: 26ch; }
.why__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.why__visual { margin: 0; display: grid; gap: 14px; }
.cmp { background: #F4F5F7; border-radius: 18px; padding: 28px; color: #1B1D24; }
.cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.cmp__col { display: grid; gap: 10px; }
.cmp__k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--mk-muted); }
.cmp__item { background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; border: 1px solid #E7E8EC; box-shadow: 0 6px 16px -10px rgba(20,25,40,.25); }
.cmp__col:first-child .cmp__item { color: var(--mk-muted); }
.cmp__col--accent .cmp__k { color: color-mix(in oklab, var(--accent) 55%, black); }
.cmp__col--accent .cmp__item { border-color: color-mix(in oklab, var(--accent) 40%, white); font-weight: 500; }
.cmp__col--accent .cmp__item::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.cmp__arrow { color: #A6ABB5; width: 40px; }
.fig-note { font-size: 13.5px; color: var(--muted); }
.section--dark .fig-note { color: var(--on-dark-muted); }
.why__text { position: relative; display: grid; gap: 20px; justify-items: start; }
.why__text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.why__text p { font-size: 17px; color: var(--on-dark-muted); }
.why__text strong { color: var(--on-dark); font-weight: 500; }

.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--on-dark-line); }
.pain { padding: 32px 32px 0 0; display: grid; gap: 12px; align-content: start; }
.pain + .pain { padding-left: 32px; border-left: 1px solid var(--on-dark-line); }
.pain h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.pain p { color: var(--on-dark-muted); font-size: 15.5px; }

/* ---------- Dos caminos ---------- */
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.path__visual { height: 280px; display: grid; place-items: center; position: relative; overflow: hidden; }
.path__visual--new { background: linear-gradient(160deg, color-mix(in oklab, var(--ink) 92%, white), var(--ink)); }
.path__visual--existing { background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 22%, var(--bg)), color-mix(in oklab, var(--accent) 40%, var(--bg))); }
.path__body { padding: 32px; display: grid; gap: 14px; align-content: start; }
.path__tag { justify-self: start; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 45%, black); }
.path h3 { font-size: 24px; letter-spacing: -0.025em; }
.path p { color: var(--muted); }
.ticks { display: grid; gap: 10px; margin-top: 6px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.3 2.3L11.5 6' fill='none' stroke='black' stroke-opacity='.75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.wf { display: flex; align-items: center; gap: 18px; }
.wf__sketch { width: 170px; padding: 16px; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.35); display: grid; gap: 10px; transform: rotate(-3deg); }
.wf__sketch i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); }
.wf__sketch .w60 { width: 60%; } .wf__sketch .w40 { width: 40%; } .wf__sketch .w80 { width: 80%; }
.wf__boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wf__boxes span { height: 34px; border-radius: 6px; border: 1.5px dashed rgba(255,255,255,.3); }
.wf__arrow { width: 36px; color: color-mix(in oklab, var(--accent) 70%, white); }
.wf__ui { width: 190px; padding: 14px; border-radius: 14px; background: #fff; display: grid; gap: 10px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transform: rotate(2deg); font-size: 13px; color: #1B1D24; }
.wf__bar { height: 6px; width: 40%; border-radius: 3px; background: #E7E8EC; }
.wf__stat { display: flex; justify-content: space-between; align-items: baseline; padding: 10px; border-radius: 10px; background: #F4F5F7; font-size: 12px; color: var(--mk-muted); }
.wf__stat strong { font-size: 20px; color: #1B1D24; letter-spacing: -0.03em; }
.wf__btn { text-align: center; padding: 8px; border-radius: 999px; background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 50%, var(--ink)); font-weight: 600; font-size: 12px; }

.ba { display: flex; gap: 16px; align-items: flex-end; }
.ba__card { width: 170px; padding: 14px; border-radius: 14px; background: #fff; display: grid; gap: 10px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); font-size: 12px; }
.ba__card--before { opacity: .75; transform: rotate(-3deg); }
.ba__card--after { transform: translateY(-14px) rotate(2deg); }
.ba__k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--mk-muted); }
.ba__rows { display: grid; gap: 7px; }
.ba__rows i { height: 16px; border-radius: 5px; background: #EEF0F3; }
.ba__card--after .ba__rows i { background: color-mix(in oklab, var(--accent) 22%, white); }
.ba__metric { font-weight: 600; color: #1B1D24; }
.ba__card--before .ba__metric { color: #B04A1E; }
.ba__card--after .ba__metric { color: color-mix(in oklab, var(--accent) 50%, black); }

/* ---------- Proceso ---------- */
/* Lista de servicios escaneable en el encabezado del proceso (destino de "Servicios" en el menú) */
.svc-line { margin: -16px 0 64px; display: grid; gap: 12px; }
.svc-line__h { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--on-dark); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.svc-tags li { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--on-dark-line); color: var(--on-dark); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; counter-reset: s; }
.step { border-top: 1px solid var(--on-dark-line); padding-top: 28px; display: grid; gap: 14px; align-content: start; position: relative; }
/* Número, título, texto y entregables comparten filas entre etapas: los bloques alinean aunque el texto varíe */
@supports (grid-template-rows: subgrid) {
  .step { grid-row: span 3; grid-template-rows: subgrid; row-gap: 14px; }
}
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.step__n { font-size: 15px; font-weight: 600; line-height: 1; color: color-mix(in oklab, var(--accent) 70%, white); }
.step h3 { font-size: 22px; letter-spacing: -0.025em; }
.step p { font-size: 15px; color: var(--on-dark-muted); }

/* ---------- IA ---------- */
.ai__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ai__text .lead { margin-top: 22px; }
.ai__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.ai__cols h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.015em; }
.ai__visual { margin: 0; display: grid; gap: 14px; }
.ai__stage { padding: 36px; border-radius: 28px; background: var(--ink); }
.ai__stage :focus-visible { outline-color: var(--accent); }
/* Comparación: a mano (copiar y pegar desde un chat) vs. integrado. Sin JS solo se ve el flujo integrado. */
.ai__tabs { display: none; }
.is-enhanced .ai__tabs { display: flex; width: max-content; margin: 0 auto 20px; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.08); }
.ai__tabs button { font: 500 13.5px/1 var(--font-sans); padding: 9px 16px; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.75); cursor: pointer; transition: background-color .2s, color .2s; }
.ai__tabs button:hover { color: #fff; }
.ai__tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.ai__panels { display: grid; }
.ai__panel { grid-area: 1 / 1; display: grid; }
.is-enhanced .ai__panel { transition: opacity .35s var(--ease), visibility 0s .35s; }
.is-enhanced .ai__panel:not(.is-active) { opacity: 0; visibility: hidden; }
.is-enhanced .ai__panel.is-active { transition-delay: 0s; }
.ai__status { margin-top: 16px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.82); }

/* Flujo integrado: entra de una, en una cascada corta */
.ai__panel--flow.is-entering .flow > * { animation: flowIn .45s cubic-bezier(.16, 1, .3, 1) both; }
.ai__panel--flow.is-entering .flow > :nth-child(2) { animation-delay: .06s; }
.ai__panel--flow.is-entering .flow > :nth-child(3) { animation-delay: .1s; }
.ai__panel--flow.is-entering .flow > :nth-child(4) { animation-delay: .14s; }
.ai__panel--flow.is-entering .flow > :nth-child(5) { animation-delay: .18s; }
.ai__panel--flow.is-entering .flow > :nth-child(6) { animation-delay: .22s; }
.ai__panel--flow.is-entering .flow > :nth-child(n+7) { animation-delay: .26s; }
@keyframes flowIn { from { opacity: 0; transform: translateY(8px); } }

/* Flujo integrado en marcha: un dato recorre el circuito (data-run en .flow) */
.flow__meta { display: flex; align-items: center; gap: 10px; }
.flow__count { font-size: 12px; color: var(--mk-muted); font-variant-numeric: tabular-nums; }
.flow__count b { color: #1B1D24; font-weight: 600; }
.flow__node, .flow__label { transition: border-color .45s, background-color .45s, color .45s, outline-color .45s; outline: 2px solid transparent; outline-offset: 2px; }
.flow__wire { position: relative; }
.flow__wire::after { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--accent); opacity: 0; }
.flow[data-run="2"] .flow__wire[data-f="2"]::after, .flow[data-run="4"] .flow__wire[data-f="4"]::after { animation: wireDot .75s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes wireDot { 0% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 1; transform: translateY(15px); } }
.flow[data-run="1"] [data-f="1"], .flow[data-run="3"] [data-f="3"], .flow[data-run="5"] [data-f="5"],
.flow[data-run="6"][data-branch="yes"] .flow__branch--yes .flow__node,
.flow[data-run="6"][data-branch="no"] .flow__branch--no .flow__node { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, white); outline: 2px solid color-mix(in oklab, var(--accent) 40%, transparent); outline-offset: 2px; }
.flow[data-run="6"][data-branch="no"] .flow__branch--no .flow__label { background: #1B1D24; color: #fff; }
.flow[data-run="6"][data-branch="yes"] .flow__branch--yes .flow__label { background: var(--accent); color: var(--accent-ink); }

/* Panel "a mano": ventana con pestañas de chat y CRM; el paso actual lo marca data-step */
.manual { background: #fff; border-radius: 14px; overflow: hidden; color: #1B1D24; font-size: 13px; display: grid; grid-template-rows: auto auto 1fr auto auto; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
/* Ventana de navegador: botones, pestañas y barra de dirección */
.manual__bar { display: flex; align-items: flex-end; gap: 2px; padding: 8px 8px 0; background: #DFE2E7; overflow: hidden; white-space: nowrap; }
.manual__lights { display: flex; gap: 6px; align-self: center; padding: 0 10px 6px 4px; }
.manual__lights i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.manual__lights i:nth-child(2) { background: #FEBC2E; } .manual__lights i:nth-child(3) { background: #28C840; }
.manual__toolbar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: #fff; border-bottom: 1px solid #ECEDF0; }
.manual__nav { display: flex; gap: 4px; color: #9AA0AC; }
.manual__nav svg { width: 15px; height: 15px; }
.manual__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #F1F3F4; font-size: 12px; color: #4A4F5A; white-space: nowrap; overflow: hidden; }
.manual__url svg { width: 12px; height: 12px; flex: none; color: #6B7080; }
.manual__url-crm, .manual[data-step="4"] .manual__url-chat, .manual[data-step="5"] .manual__url-chat, .manual[data-step="6"] .manual__url-chat { display: none; }
.manual[data-step="4"] .manual__url-crm, .manual[data-step="5"] .manual__url-crm, .manual[data-step="6"] .manual__url-crm { display: inline; overflow: hidden; text-overflow: ellipsis; }
.manual__logo { width: 14px; height: 14px; flex: none; fill: currentColor; }
.manual__logo--claude { fill: #D97757; }
.manual__tab-more { white-space: pre; } .manual__tab--crm { gap: 0; }
.manual__tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px 9px 0 0; font-size: 12px; color: #4F5562; transition: background-color .25s, color .25s; }
.manual[data-step="1"] .manual__tab--chat, .manual[data-step="2"] .manual__tab--chat, .manual[data-step="3"] .manual__tab--chat, .manual[data-step="7"] .manual__tab--chat,
.manual[data-step="4"] .manual__tab--crm, .manual[data-step="5"] .manual__tab--crm, .manual[data-step="6"] .manual__tab--crm { background: #fff; color: #1B1D24; font-weight: 600; }
.manual__body { display: grid; padding: 18px; min-height: 0; }
.manual__view { grid-area: 1 / 1; display: grid; align-content: start; gap: 10px; position: relative; transition: opacity .3s; }
.manual__view--crm, .manual[data-step="4"] .manual__view--chat, .manual[data-step="5"] .manual__view--chat, .manual[data-step="6"] .manual__view--chat { opacity: 0; }
.manual[data-step="4"] .manual__view--crm, .manual[data-step="5"] .manual__view--crm, .manual[data-step="6"] .manual__view--crm { opacity: 1; }
.msg { padding: 10px 12px; border-radius: 14px; line-height: 1.45; max-width: 88%; }
.msg--user { justify-self: end; background: #EEF0F4; }
.msg__file { display: block; width: max-content; margin-bottom: 6px; padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid #E1E4EA; font-size: 11.5px; color: var(--mk-muted); }
.msg--ai { justify-self: start; border: 1px solid #E7E8EC; }
.msg__dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.msg__dots i { width: 6px; height: 6px; border-radius: 50%; background: #B6BBC6; animation: typing 1s infinite ease-in-out; }
.msg__dots i:nth-child(2) { animation-delay: .15s; } .msg__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: .5; } }
.msg__reply { display: none; }
.msg__reply mark { background: transparent; color: inherit; transition: background-color .3s; }
.manual[data-step="1"] .msg--ai, .manual[data-step="7"] .msg--ai { visibility: hidden; }
.manual[data-step="3"] .msg__dots, .manual[data-step="4"] .msg__dots, .manual[data-step="5"] .msg__dots, .manual[data-step="6"] .msg__dots { display: none; }
.manual[data-step="3"] .msg__reply, .manual[data-step="4"] .msg__reply, .manual[data-step="5"] .msg__reply, .manual[data-step="6"] .msg__reply { display: inline; }
.manual[data-step="3"] .msg__reply mark { background: #CFE0FF; }
.manual__toast { position: absolute; right: 0; bottom: 0; padding: 6px 10px; border-radius: 8px; background: #1B1D24; color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s; }
.manual[data-step="3"] .manual__toast { opacity: 1; }
.field { display: grid; gap: 4px; position: relative; }
.field small { font-size: 11px; color: var(--mk-muted); }
.field__val { display: block; min-height: 36px; padding: 9px 11px; border-radius: 9px; border: 1px solid #E1E4EA; color: transparent; transition: color .2s, border-color .2s; }
.field__val s { text-decoration: none; }
.manual[data-step="6"] .field__val,
.manual[data-step="5"][data-paste="1"] .field:nth-child(1) .field__val,
.manual[data-step="5"][data-paste="2"] .field:nth-child(-n+2) .field__val,
.manual[data-step="5"][data-paste="3"] .field__val { color: #1B1D24; }
/* El campo que se acaba de pegar se marca un instante */
.manual[data-step="5"][data-paste="1"] .field:nth-child(1) .field__val,
.manual[data-step="5"][data-paste="2"] .field:nth-child(2) .field__val { border-color: #8FB4FF; background: #F3F7FF; }
.manual[data-step="5"][data-paste="3"] .field--email .field__val { border-color: #D9845B; background: #FFF6F1; }
.manual[data-step="5"][data-paste="3"] .field__val s { color: #B5501F; }
.manual[data-step="6"] .field__val s { display: none; }
.field em { display: none; font-style: normal; font-size: 11.5px; color: #B5501F; }
.manual[data-step="5"][data-paste="3"] .field em { display: block; }
.manual__foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px 10px; border-top: 1px solid #ECEDF0; font-size: 12px; }
.manual__step { font-weight: 600; }
.manual__count { color: var(--mk-muted); white-space: nowrap; }
.manual__dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0 18px 16px; }
.manual__dots li { height: 3px; border-radius: 2px; background: #E4E6EB; transition: background-color .3s; }
.manual[data-step="1"] .manual__dots li:nth-child(-n+1) { background: var(--accent); }
.manual[data-step="2"] .manual__dots li:nth-child(-n+2) { background: var(--accent); }
.manual[data-step="3"] .manual__dots li:nth-child(-n+3) { background: var(--accent); }
.manual[data-step="4"] .manual__dots li:nth-child(-n+4) { background: var(--accent); }
.manual[data-step="5"] .manual__dots li:nth-child(-n+5) { background: var(--accent); }
.manual[data-step="6"] .manual__dots li:nth-child(-n+6) { background: var(--accent); }
.manual[data-step="7"] .manual__dots li:nth-child(-n+7) { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .msg__dots i { animation: none; }
  .ai__panel--flow.is-entering .flow > * { animation: none; }
}
.flow { position: relative; background: #fff; border-radius: 18px; padding: 18px; display: grid; justify-items: center; font-size: 13px; color: #1B1D24; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.flow__head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #ECEDF0; }
.flow__title { font-weight: 600; }
.flow__live { font-size: 11.5px; font-weight: 600; color: color-mix(in oklab, var(--accent) 50%, black); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.flow__node { display: flex; gap: 10px; align-items: center; width: min(100%, 290px); padding: 10px 12px; border-radius: 12px; border: 1px solid #E7E8EC; background: #fff; box-shadow: 0 6px 14px -10px rgba(20,25,40,.3); }
.flow__node small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mk-muted); font-weight: 600; }
.flow__node b { font-weight: 500; }
.flow__node .ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #F1F2F5; color: #3A3F4B; }
.flow__node .ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow__node--trigger .ico { background: #121419; color: #fff; }
.flow__node--ai { border-color: color-mix(in oklab, var(--accent) 50%, white); background: color-mix(in oklab, var(--accent) 7%, white); }
.flow__node--ai .ico { background: var(--accent); color: var(--accent-ink); }
.flow__wire { width: 1.5px; height: 18px; background: #C7CBD3; }
.flow__split { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; position: relative; align-items: start; }
.flow__split::before { content: ""; position: absolute; top: -18px; left: 25%; right: 25%; height: 12px; border: 1.5px solid #C7CBD3; border-bottom: 0; border-radius: 10px 10px 0 0; }
.flow__branch { display: grid; gap: 8px; justify-items: center; align-content: start; }
.flow__branch .flow__node { width: 100%; }
.flow__label { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #F1F2F5; color: var(--mk-muted); }
.flow__label--ok { background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 45%, black); }

/* ---------- Casos ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-grid--two { grid-template-columns: repeat(2, 1fr); }
/* Toda la tarjeta enlaza al caso: el enlace del título se estira sobre la tarjeta */
.case {
  position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  display: grid; grid-template-rows: auto 1fr;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.case:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--ink) 22%, transparent); box-shadow: 0 22px 44px -28px rgba(11, 30, 63, .45); }
.case:has(.case__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.case__link { color: inherit; text-decoration: none; }
.case__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.case__link:focus-visible { outline: none; }
.case:hover .case__link { text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }
/* La imagen ya trae su fondo; la proporción es la de la imagen (1528 × 880) */
.case__visual { aspect-ratio: 1528 / 880; overflow: hidden; background: var(--ink); }
.case__visual img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 24px; display: grid; gap: 12px; align-content: start; }
.case__meta { font-size: 13px; color: var(--muted); }
.case h2, .case h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
/* Dos destacados por caso: un resultado en palabras y una línea que lo explica */
.case__stats { display: grid; gap: 14px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.wf__stat strong, .ba__metric, .step__n, .mk__meta b { font-variant-numeric: tabular-nums; }
.case__stats b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.case__stats span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cases__more { margin-top: 32px; }
/* Enlace de texto sobre fondo claro */
.text-link--ink { color: var(--ink); }
.section-head__link { justify-self: end; }
@media (prefers-reduced-motion: reduce) { .case, .case:hover { transform: none; } }

/* ---------- Páginas de caso (casos/<slug>/) ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.case-hero { background: linear-gradient(180deg, var(--dark) 0%, var(--ink) 100%); color: var(--on-dark); padding: clamp(128px, 16vh, 168px) 0 80px; }
.case-hero--list { padding-bottom: 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-dark-muted); margin-bottom: 28px; }
.crumbs a { color: var(--on-dark-muted); text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.crumbs a:hover { color: var(--on-dark); }
.case-hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; }
.case-hero__text { display: grid; gap: 20px; justify-items: start; }
.case-hero__meta { font-size: 14px; color: var(--on-dark-muted); }
.case-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 22ch; }
.case-hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.78); max-width: 58ch; }
.case-hero--list .case-hero__lead { margin-top: 22px; }
.case-hero__stats { display: grid; gap: 0; border-top: 1px solid var(--on-dark-line); }
.case-hero__stats li { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--on-dark-line); }
.case-hero__stats b { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; color: #fff; }
.case-hero__stats span { font-size: 14.5px; color: var(--on-dark-muted); }
.case-cover { margin: 64px 0 0; display: grid; gap: 14px; }
.case-cover img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--on-dark-line), 0 40px 80px -30px rgba(0,0,0,.6); }
.case-cover .fig-note { color: var(--on-dark-muted); }

/* Cuerpo del caso: título de cada parte a la izquierda, texto a la derecha */
.case-story { padding-top: 40px; }
.case-sec { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 16px 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.case-sec:first-child { border-top: 0; }
.case-sec > h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.case-sec__body { display: grid; gap: 16px; align-content: start; max-width: 68ch; font-size: 17px; }
.cmp--case { grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.4fr); max-width: none; padding: 24px; }
.cmp--case .cmp__item { margin: 0; font-size: 15px; line-height: 1.45; }
.cmp__list { display: grid; gap: 10px; }
.cmp--case .cmp__col--accent .cmp__item { display: flex; gap: 10px; }
.cmp--case .cmp__col--accent .cmp__item::before { flex: none; margin: .45em 0 0; }
.case-did { gap: 0; }
.case-did li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.case-did li:first-child { padding-top: 0; border-top: 0; }
.case-did h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.case-did p { font-size: 16.5px; color: var(--muted); }
.case-ticks { gap: 14px; }
.case-ticks li { font-size: 17px; }
.case-principle {
  padding-left: 24px; border-left: 3px solid var(--accent);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink);
}
.case-facts { margin: 0; gap: 0; border-top: 1px solid var(--line); font-size: 16px; }
.case-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.case-facts dt { font-weight: 600; color: var(--ink); }
.case-facts dd { margin: 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.case-tags li { font-size: 14px; padding: 3px 11px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); }
/* Crédito al estudio con el que se hizo el trabajo: discreto por tamaño y lugar, no por contraste */
.case-credit { margin-left: calc(15rem + 48px); padding-top: 8px; font-size: 15px; color: var(--text); max-width: 68ch; }
.case-credit a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
.case-credit a:hover { text-decoration-color: currentColor; }
@media (max-width: 1100px) {
  .case-sec { grid-template-columns: 11rem minmax(0, 1fr); gap: 16px 32px; }
  .case-credit { margin-left: calc(11rem + 32px); }
}
@media (max-width: 860px) {
  .case-hero__grid { grid-template-columns: 1fr; }
  .case-hero__stats { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .case-cover { margin-top: 48px; }
  .case-cover img { border-radius: 12px; }
  .case-story { padding-top: 24px; }
  .case-sec { grid-template-columns: 1fr; padding: 40px 0; }
  .case-credit { margin-left: 0; }
  .case-grid--two { grid-template-columns: 1fr; }
  .section-head__link { justify-self: start; }
}
@media (max-width: 560px) {
  .case-hero { padding-bottom: 56px; }
  .case-hero__stats { grid-template-columns: 1fr; }
  .case-hero__stats b { font-size: 1.5rem; }
  .case-facts div { grid-template-columns: 1fr; }
  .case-principle { padding-left: 18px; }
}

/* ---------- Blog (blog/ y blog/<slug>/) ---------- */
/* Tarjeta de artículo: el componente .case con imagen 16:9, bajada y minutos al pie */
.post-card .case__visual { aspect-ratio: 16 / 9; }
.post-card .case__body { align-content: stretch; grid-template-rows: auto auto auto 1fr; }
.post-card__lead { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.post-card__foot { align-self: end; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.case-hero--list .case-hero__meta { margin-bottom: 14px; }

/* Encabezado del artículo: columna centrada, un poco más ancha que la de lectura */
.post-col { max-width: 46rem; margin-inline: auto; }
.post-hero .case-hero__title { max-width: none; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.post-byline { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 14.5px; color: var(--on-dark-muted); }
.post-byline > span { white-space: nowrap; }
.post-byline__sep { margin-inline: 10px; }
.post-cover { max-width: 64rem; margin-inline: auto; }

/* Columna de lectura: ~70 caracteres por línea */
.post-body { padding: 72px 0 88px; }
.prose { max-width: 38rem; margin-inline: auto; font-size: 18px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.45rem, 2.3vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.8em; font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul { display: grid; gap: .75em; }
.prose li { position: relative; padding-left: 1.35em; }
.prose li::before { content: ""; position: absolute; left: .15em; top: .68em; width: .42em; height: .42em; border-radius: 50%; background: var(--accent); }
.prose blockquote { margin-inline: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); font-size: 16px; line-height: 1.55; color: var(--ink); }

/* Enlace a otra pieza (caso o artículo): imagen chica, contexto, título; toda la caja enlaza */
.post-link {
  position: relative; display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s var(--ease);
}
.post-link:hover { border-color: color-mix(in oklab, var(--ink) 22%, transparent); box-shadow: 0 18px 36px -26px rgba(11, 30, 63, .45); }
.post-link:has(a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.post-link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--ink); }
.post-link__text { display: grid; gap: 4px; }
.post-link__k { font-size: 13px; color: var(--muted); }
.post-link__title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.post-link__title a { color: inherit; text-decoration: none; }
.post-link__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-link__title a:focus-visible { outline: none; }
.post-link:hover .post-link__title a { text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }
.post-link__lead { font-size: 15px; line-height: 1.5; color: var(--muted); }
/* Después de la última línea del texto («…conversemos»): los dos caminos de contacto del sitio */
.post-actions { max-width: 38rem; margin: 32px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.post-actions .text-link { font-weight: 500; }
.post-actions .text-link .ext { width: 12px; height: 12px; }

.post-case { max-width: 38rem; margin: 64px auto 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.post-case__k { font-size: 16px; font-weight: 500; color: var(--ink); }
.case-credit.post-credit { max-width: 38rem; margin: 28px auto 0; padding-top: 0; }
@media (max-width: 860px) {
  .post-body { padding: 48px 0 64px; }
  .post-cover { margin-top: 40px; }
}
@media (max-width: 560px) {
  .post-byline { display: grid; }
  .post-byline > .post-byline__sep { display: none; }
  .prose { font-size: 17px; line-height: 1.65; }
  .prose blockquote { font-size: 15px; }
  .post-link { grid-template-columns: 1fr; gap: 12px; }
  .post-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .post-actions .btn { width: 100%; }
  .post-actions .text-link { justify-content: center; padding-block: 6px; }
}

/* ---------- Modelo ---------- */
/* Un solo modelo destacado; las otras modalidades como franja de texto debajo */
.plan { padding: 32px; border-radius: var(--radius-lg); }
.plan h3 { font-size: 22px; letter-spacing: -0.025em; }
.plan--main { background: var(--ink); color: var(--on-dark); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 56px; padding: 40px; align-items: start; }
.plan__intro { display: grid; gap: 16px; justify-items: start; }
.plan--main h3 { font-size: 28px; }
.plan--main p { color: var(--on-dark-muted); }
.plan--main .plan__note { font-size: 14.5px; }
.plan__note a { color: var(--on-dark); }
.plan--main .btn { margin-top: 8px; }
.plan__terms { display: grid; margin: 0; border-top: 1px solid var(--on-dark-line); }
.plan__terms div { padding: 14px 0; border-bottom: 1px solid var(--on-dark-line); display: grid; grid-template-columns: 9rem 1fr; gap: 4px 16px; align-items: baseline; }
.plan__terms dt { font-weight: 600; }
.plan__terms dd { margin: 0; font-size: 14.5px; color: var(--on-dark-muted); }
.model__also { margin-top: 40px; display: grid; grid-template-columns: 14rem 1fr; gap: 12px 32px; }
.model__also h3 { font-size: 17px; letter-spacing: -0.01em; padding-top: 2px; }
.model__alt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.model__alt p { color: var(--muted); font-size: 15.5px; }
.model__alt b { color: var(--ink); font-weight: 600; }
.model__fit { grid-column: 2; font-size: 15px; color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.faq .lead { margin-top: 20px; }
/* En escritorio, título e intro acompañan la lista mientras se lee */
@media (min-width: 861px) { .faq__grid > div:first-child { position: sticky; top: 112px; align-self: start; } }
.faq .lead a { color: var(--ink); font-weight: 500; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; color: var(--on-dark); padding: 150px 0 220px; isolation: isolate; text-align: center; background: var(--dark); }
.cta__sky { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--dark) 0%, var(--sky-2) 35%, var(--sky-3) 60%, var(--sky-4) 78%, var(--m3) 95%); }
.cta__sky .hero__glow { top: 80%; }
/* overflow visible: sin esto, en pantallas anchas la cresta lejana se corta en línea recta.
   Pasado 1440px el paisaje escala con el ancho: se baja para que la cresta no suba detrás del título. */
.landscape--cta { bottom: min(0px, (1440px - 100vw) * .26); height: 55%; z-index: -1; overflow: visible; }
.cta__content { display: grid; justify-items: center; gap: 22px; }
.cta .h2 { max-width: 34ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.cta .lead { color: rgba(255,255,255,.78); text-wrap: balance; }
.cta .hero__actions { margin-top: 8px; }
.cta__mail { font-size: 14.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.4); }
.cta__mail a { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: 14.5px; }
.footer .brand { color: var(--on-dark); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--on-dark-line); }
.footer__tag { margin-top: 16px; }
.footer__h { color: var(--on-dark); font-weight: 500; margin-bottom: 12px; }
.footer nav, .footer__grid > div:last-child { display: grid; gap: 8px; align-content: start; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 13px; }
@media (pointer: coarse) {
  /* Área táctil cómoda sin cambiar el ritmo visual */
  .footer nav, .footer__grid > div:last-child { gap: 0; }
  .footer nav a, .footer__grid > div:last-child a, .footer__bottom a { padding-block: 10px; }
  .footer__h { margin-bottom: 2px; }
}

/* ---------- Agendar: barra fija en móvil ----------
   Aparece cuando los botones del hero salen de pantalla y se esconde
   al llegar al cierre (que ya tiene los suyos) o con el menú abierto. */
.dock { display: none; }
@media (max-width: 860px) {
  .dock {
    display: block; position: fixed; z-index: 55;
    left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
    width: min(100% - 24px, 480px); padding: 6px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--dark) 86%, transparent);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 14px 34px -12px rgba(0,0,0,.55);
    transform: translate(-50%, calc(100% + 24px)); opacity: 0; visibility: hidden;
    transition: transform .42s var(--ease), opacity .3s, visibility 0s .42s;
  }
  .dock .btn { width: 100%; --h: 48px; }
  .dock.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav.is-open ~ .dock { transform: translate(-50%, calc(100% + 24px)); opacity: 0; visibility: hidden; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .dock, .dock.is-shown { transform: translate(-50%, 0); }
}

/* ---------- Movimiento ----------
   Un solo momento: viento en el bosque y parallax leve de las montañas. Todo con transform;
   se pausa fuera de pantalla ([data-motion].is-paused) y se apaga con reduced motion. */
[data-depth] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero__glow[data-depth] { transform: translate(-50%, calc(-50% + var(--py, 0px))); }

/* Bosque: copas en grupos que se mecen con un desfase que viaja como una ráfaga */
.canopy--front path { fill: url(#gFront); }
.canopy--back path { fill: url(#gFront2); }
.sway {
  --amp: 3.2deg; --d: 5.6s;
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: sway var(--d) cubic-bezier(.45, 0, .55, 1) calc(var(--i) * -.7s) infinite alternate;
}
.sway:nth-child(3n) { --amp: 2.4deg; }
.sway:nth-child(3n + 1) { --amp: 3.8deg; }
.canopy--back .sway { --amp: 2.2deg; --d: 6.2s; animation-delay: calc(var(--i) * -.9s - 2s); }
@keyframes sway {
  from { transform: skewX(calc(var(--amp) * -1)); }
  to   { transform: skewX(var(--amp)); }
}

[data-motion].is-paused .sway { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .sway { animation: none; }
  [data-depth] { will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Desde 1100px los enlaces no caben: aparece el menú (con los botones aún visibles hasta 860px) */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 0; flex: none; }
  .nav.is-open .nav__inner { background: color-mix(in oklab, var(--dark) 86%, transparent); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }
  .nav__mobile {
    display: grid; gap: 4px; width: min(100% - 32px, 1240px); margin: 8px auto 0; padding: 12px;
    border-radius: 22px; background: color-mix(in oklab, var(--dark) 94%, transparent); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.08);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; /* cerrado: fuera del orden de tabulación */
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__mobile a:not(.btn) { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-size: 17px; }
  .nav__mobile a:not(.btn):hover { background: rgba(255,255,255,.06); }
  .nav__mobile .btn { margin-top: 8px; }
  .nav.is-open .nav__mobile { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .mk { grid-template-columns: 1fr; }
  .mk__side { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .ai__grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 860px) {
  .section--light, .section--tint, .section--ink { padding: 88px 0; }
  .section--dark { padding: 88px 0 100px; }
  .why { padding-top: 24px; } /* el pie del hero ya da el aire oscuro de arriba */
  .faq { padding-top: 0; }
  .section-head { margin-bottom: 40px; }
  .section-head--split { grid-template-columns: 1fr; gap: 16px; }
  .section-head__lead { justify-self: start; }

  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .nav__inner { padding: 8px 8px 8px 16px; }
  .nav.is-scrolled .nav__inner { background: color-mix(in oklab, var(--dark) 86%, transparent); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }

  /* Mockup apilado: se lee como una historia de arriba abajo —
     investigación → hallazgo → oportunidad → alcance con precio cerrado */
  .mk__top .mk__btn:not(.mk__btn--dark), .mk__avatars { display: none; }
  .mk__body { grid-template-columns: 1fr; min-height: 0; gap: 10px; padding: 10px; }
  .mk__canvas { display: grid; gap: 12px; padding: 14px; }
  .mk__card, .mk__card--b, .mk__card--c { position: relative; left: auto; top: auto; width: auto; box-shadow: none; }
  .mk__card + .mk__card::before { content: ""; position: absolute; left: 22px; top: -13px; height: 12px; border-left: 1.5px dashed #C7CBD3; }
  .mk__flow { display: none; }
  .mk__panel { padding: 14px; gap: 8px; }
  .mk__check { display: none; }
  .mk__panel .mk__btn--accent { margin-top: 4px; padding: 9px 10px; }


  .why__body { grid-template-columns: 1fr; gap: 40px; }
  .pains { grid-template-columns: 1fr; }
  .pain, .pain + .pain { padding: 24px 0; border-left: 0; }
  .pain + .pain { border-top: 1px solid var(--on-dark-line); }

  .paths__grid, .case-grid, .faq__grid { grid-template-columns: 1fr; }
  .plan--main { grid-template-columns: 1fr; padding: 32px 24px; }
  .model__also, .model__alt { grid-template-columns: 1fr; }
  .model__fit { grid-column: auto; }
  .faq__grid { gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--container)); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn--lg { width: 100%; }
  .steps, .ai__cols { grid-template-columns: 1fr; }
  .plan__terms div { grid-template-columns: 1fr; }
  .mk { font-size: 11px; }
  .cmp { grid-template-columns: 1fr; }
  .cmp__arrow { transform: rotate(90deg); justify-self: center; }
  .wf { gap: 10px; zoom: .7; }
  .ba { zoom: .8; }
  .ai__stage { padding: 16px; border-radius: 20px; }
  .manual__foot { flex-direction: column; gap: 2px; }
  .manual__tab-more, .manual__nav { display: none; }
  .manual__lights { padding-right: 6px; }
  .ai__tabs button { padding: 9px 12px; font-size: 13px; }
  .flow__split { grid-template-columns: 1fr; }
  .flow__split::before { display: none; }
  .landscape--front { height: 30%; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .wf { zoom: .58; } .ba { zoom: .7; }
  .is-enhanced .ai__tabs { width: 100%; }
  .ai__tabs button { flex: 1; padding: 8px 6px; font-size: 12.5px; line-height: 1.2; }
  .manual__tab { padding: 8px 8px; font-size: 11.5px; gap: 5px; }
  .manual__tab-name { display: none; } /* Claude queda solo con su ícono */
  .manual__lights { gap: 4px; } .manual__lights i { width: 8px; height: 8px; }
}

/* Menú en tablet (861–1100px): panel angosto bajo el botón; los botones ya están en la barra */
@media (min-width: 861px) and (max-width: 1100px) { .nav__mobile .btn { display: none; } .nav__mobile { width: 280px; margin: 8px 16px 0 auto; } }
