/* Olomni · Olo Studio — sistema visual del sitio (portada, novedades, guías y documentos).

   DIRECCIÓN: «keynote con cara». Capítulos que alternan blanco y negro, como una página de producto de Apple: el cambio
   de fondo marca el cambio de idea. Titulares Geist muy grandes con tracking negativo y un único acento ultramar.

   LO QUE LO HACE DE OLOMNI (no de Apple): la identidad sale de la cara de Olo.
     · Los ojos: la marca y un pequeño compañero (solo con ratón) miran hacia tu cursor.
     · La sonrisa: la palabra clave de cada titular se subraya con la sonrisa de Olo, trazada al aparecer.
     · El marco 9:16: las esquinas de visor que rodean todo lo que Studio produce.
     · La perla: el cuerpo de Olo (#ece7dc) es el único color cálido en un mundo negro y azul.

   Movimiento, un solo lenguaje: sube 28 px + opacidad, 0.9 s, cubic-bezier(.16,1,.3,1). Solo transform y opacity. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #fbfbfd; --paper-2: #f5f5f7; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --night: #05060b; --night-2: #0d0f1a; --night-3: #171a2a; --moon: #f5f5f7; --moon-2: #a1a1aa;
  --pearl: #ece7dc;
  --line: rgb(0 0 0 / 0.08); --line-d: rgb(255 255 255 / 0.12);
  --blue: #1b45e8; --blue-d: #4d86ff; --blue-fill: #1433d8; --blue-fill-d: #2b59ff;
  --rec: #ff4d5e; --amber: #e0a84a; --green: #34c759;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --nav-h: 52px;
  --safe-b: env(safe-area-inset-bottom);
}
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.5; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: 'ss01'; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--blue-fill); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .nav :focus-visible { outline-color: var(--blue-d); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Capítulos ── */
.dark { background: var(--night); color: var(--moon); }
.light { background: var(--paper); color: var(--ink); }
.light.alt { background: var(--paper-2); }

/* ── Tipografía ── */
.eyebrow { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.dark .eyebrow { color: var(--moon-2); }
.h1 { font-size: clamp(46px, 8.4vw, 112px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.h2 { font-size: clamp(38px, 5.6vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.h1 em, .h2 em { font-style: normal; color: var(--ink-3); }
.lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.dark .lead { color: var(--moon-2); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgb(255 77 94 / 0.18); animation: rec 1.6s steps(2, start) infinite; vertical-align: middle; }
@keyframes rec { 50% { opacity: 0.25; } }

/* La sonrisa de Olo: el subrayado de la palabra clave. Se traza de izquierda a derecha al aparecer. */
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 1%; right: 1%; bottom: -0.2em; height: 0.26em; background: var(--blue);
  -webkit-mask: var(--smile) center / 100% 100% no-repeat; mask: var(--smile) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) 0.5s; }
.dark .hl::after { background: var(--blue-d); }
.in .hl::after, .hl.in::after, .in.hl::after { clip-path: inset(0 0 0 0); }
:root { --smile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M6 5 Q100 30 194 5' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ── Botones ── */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--blue-fill); color: #fff; transform: translate(var(--mx), var(--my)); transition: transform 0.3s var(--ease), background-color 0.3s var(--ease); }
.dark .btn, .nav .btn { background: var(--blue-fill-d); }
.btn:hover { background: #0f2bc0; }
.dark .btn:hover, .nav .btn:hover { background: #4a77ff; }
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.97); }
.btn.light-btn { background: var(--moon); color: var(--night); }
.btn.light-btn:hover { background: #fff; }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 17px; font-weight: 500; color: var(--blue); }
.dark .link, .nav .link { color: var(--blue-d); }
.link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ctas { display: flex; align-items: center; justify-content: center; gap: 8px 28px; flex-wrap: wrap; }

/* ── Navegación: barra fina y translúcida que cambia de tono según el capítulo que tiene debajo ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); color: var(--moon); background: rgb(5 6 11 / 0.55);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line-d);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.nav.on-light { color: var(--ink); background: rgb(251 251 253 / 0.72); border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand span { color: var(--ink-3); font-weight: 500; }
.nav:not(.on-light) .brand span { color: var(--moon-2); }
/* La cara de Olo: perla con dos ojos que miran al cursor (--ex/--ey los pone site.js). */
.brand i { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--pearl); box-shadow: inset 0 -2px 3px rgb(0 0 0 / 0.14), inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.brand i::before, .brand i::after { content: ''; position: absolute; top: 7.5px; width: 2.8px; height: 4px; border-radius: 2px; background: #15131f; transform: translate(var(--ex, 0px), var(--ey, 0px)); }
.brand i::before { left: 5.4px; }
.brand i::after { right: 5.4px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 13px; }
.nav-links a { opacity: 0.72; transition: opacity 0.25s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links .lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.nav .btn { height: 30px; padding: 0 14px; font-size: 13px; }
@media (max-width: 760px) { .nav-links a:not(.lang) { display: none; } .nav-links { margin-left: auto; gap: 14px; } .nav .wrap { gap: 14px; } }

/* ── Entrada: un solo gesto para todo el sitio ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ── El marco 9:16: esquinas de visor alrededor de lo que produce Studio ── */
.vf { position: relative; }
.vf::before, .vf::after, .vf > .vf-b::before, .vf > .vf-b::after { content: ''; position: absolute; width: 22px; height: 22px; border: 0 solid currentColor; opacity: 0; transition: opacity 0.6s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s; pointer-events: none; }
.vf::before { left: -14px; top: -14px; border-width: 2px 0 0 2px; transform: translate(10px, 10px); }
.vf::after { right: -14px; top: -14px; border-width: 2px 2px 0 0; transform: translate(-10px, 10px); }
.vf > .vf-b::before { left: -14px; bottom: -14px; border-width: 0 0 2px 2px; transform: translate(10px, -10px); }
.vf > .vf-b::after { right: -14px; bottom: -14px; border-width: 0 2px 2px 0; transform: translate(-10px, -10px); }
.vf.in::before, .vf.in::after, .vf.in > .vf-b::before, .vf.in > .vf-b::after { opacity: 0.55; transform: none; }

/* ── El compañero: una perla con ojos que sigue al cursor (solo con ratón) ── */
.pal { position: fixed; left: 0; top: 0; z-index: 90; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--pearl); pointer-events: none; opacity: 0;
  box-shadow: inset 0 -4px 7px rgb(0 0 0 / 0.14), 0 8px 22px rgb(0 0 0 / 0.3); transform: translate3d(var(--x, -99px), var(--y, -99px), 0) scale(var(--s, 1));
  transition: opacity 0.4s var(--ease), scale 0.3s var(--ease); will-change: transform; }
.pal.on { opacity: 1; }
.pal i { position: absolute; top: 13px; width: 4.6px; height: 6.4px; border-radius: 50%; background: #15131f; transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: height 0.15s; }
.pal i:first-child { left: 9px; }
.pal i:nth-child(2) { right: 9px; }
.pal.blink i { height: 1.6px; }
@media (hover: none), (pointer: coarse) { .pal { display: none; } }

/* ── Pie ── */
.foot { background: var(--night); color: var(--moon-2); border-top: 1px solid var(--line-d); padding: 72px 0 calc(40px + var(--safe-b)); font-size: 14px; }
.foot .wrap { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot .about p { margin-top: 14px; max-width: 36ch; }
.foot .brand { color: var(--moon); }
.foot h2 { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--moon); }
.foot ul { display: grid; gap: 9px; }
.foot a:hover { color: #fff; }
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-d); font-size: 12px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hl::after { clip-path: inset(0 0 0 0); }
  .vf::before, .vf::after, .vf > .vf-b::before, .vf > .vf-b::after { opacity: 0.55; transform: none; }
}
