/* ==========================================================
   IA Players · iaplayers.com  ·  v2 (pasada de diseño)
   Brandbook v1.0 · Outfit 400 / 500 / 600
   Medianoche #0B122A · Azul Player #4F6BFF · Azul Hielo #D1DEFF
   Grafito #4A5068 · Niebla #F6F7FB · Blanco #FFFFFF
   ========================================================== */

:root {
  color-scheme: light;

  --medianoche: #0B122A;
  --azul-player: #4F6BFF;
  --azul-hielo: #D1DEFF;
  --grafito: #4A5068;
  --niebla: #F6F7FB;
  --blanco: #FFFFFF;

  --line: #E9EBF3;
  --line-strong: #D9DDEA;
  --muted: #8A90A8;
  --ok: #1F9D63;
  --error: #D64545;

  --shadow-sm: 0 1px 2px rgba(11,18,42,.04), 0 8px 24px -12px rgba(11,18,42,.12);
  --shadow: 0 1px 2px rgba(11,18,42,.04), 0 30px 60px -30px rgba(11,18,42,.28);
  --ring: 0 0 0 4px rgba(79,107,255,.14);

  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.34,1.4,.44,1);

  --r: 18px;
  --r-lg: 28px;
  --wrap: 1120px;
  --gutter: clamp(20px, 4.5vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--medianoche);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--azul-hielo); color: var(--medianoche); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(56px, 8.6vw, 108px); line-height: .96; letter-spacing: -0.05em; }
h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.025em; }
p { margin: 0; }
.d { color: var(--azul-player); }
/* El punto de marca: círculo perfecto, independiente de la fuente */
.dot { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: var(--azul-player); margin-left: .06em; vertical-align: 0; }
h2 .dot { width: .18em; height: .18em; }
.bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--azul-player); flex: none; display: inline-block; }
:focus-visible { outline: 2px solid var(--azul-player); outline-offset: 4px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--blanco); padding: 8px 12px; border-radius: 8px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grafito);
}
.kicker .bullet { width: 7px; height: 7px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; color: var(--medianoche); line-height: 0; }
.logo svg { height: 26px; width: auto; }
.logo--light { color: var(--blanco); }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font: 500 16px/1 var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease), color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn--dark { background: var(--medianoche); color: var(--blanco); }
.btn--dark:hover { box-shadow: 0 16px 32px -14px rgba(11,18,42,.55); }
.btn--blue { background: var(--azul-player); color: var(--blanco); }
.btn--blue:hover { box-shadow: 0 16px 32px -14px rgba(79,107,255,.7); }
.btn--light { background: var(--blanco); color: var(--medianoche); border-color: var(--line-strong); }
.btn--light:hover { border-color: var(--medianoche); }
.btn--text { background: transparent; color: var(--medianoche); padding-inline: 14px; }
.btn--text:hover { transform: none; }
.btn--text .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn--text:hover .arrow { transform: translateX(5px); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn .bullet { background: var(--azul-player); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(11,18,42,.18); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  position: relative; font-size: 15px; font-weight: 500; color: var(--grafito);
  text-decoration: none; transition: color .2s; padding-block: 6px;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--azul-player); transform: translate(-50%, 4px) scale(0); opacity: 0;
  transition: transform .3s var(--ease-spring), opacity .2s;
}
.nav__links a:not(.btn):hover { color: var(--medianoche); }
.nav__links a:not(.btn):hover::after { transform: translate(-50%, 0) scale(1); opacity: 1; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 12px; }
.nav__toggle span { display: block; height: 2px; background: var(--medianoche); border-radius: 2px; transition: transform .25s var(--ease); }
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Entradas (reveal) ----------
   Todo es visible en reposo. El JS marca .is-below a lo que está fuera de
   pantalla al cargar; solo eso entra con animación al hacer scroll.  */
.reveal.is-below { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Hero: entrada orquestada en carga */
.js .reveal-now { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
.js h1 .w { display: inline-block; opacity: 0; transform: translateY(.35em); animation: rise .9s var(--ease) forwards; animation-delay: calc(80ms + var(--i, 0) * 80ms); }
.js h1 .dot-land { display: inline-block; opacity: 0; transform: translateY(-.6em) scale(.4); animation: land .7s var(--ease-spring) forwards; animation-delay: 620ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes land { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(64px, 9vw, 128px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__orb {
  position: absolute; right: -8vw; top: 50%; transform: translateY(-50%);
  width: clamp(420px, 42vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: var(--azul-player); z-index: 0;
}
.hero h1 { max-width: 7.2em; }
.lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--grafito); max-width: 27em; }
.hero__note { font-size: 14px; color: var(--muted); margin-top: -8px; }

/* Portada: a la izquierda el titulo y, debajo, la oficina; a la derecha el
   panel de departamentos. El mapa baja hasta acabar a la altura del boton
   "Quiero mi oficina", asi las dos columnas terminan juntas. */
.hero .office--portada { position: relative; z-index: 1; align-items: stretch; }
.hero__main { display: grid; grid-template-rows: auto 1fr; gap: clamp(32px, 4vw, 48px); }
.hero__main .office__frame { align-self: end; }
.hero__title { display: grid; justify-items: start; gap: 30px; }
.office--portada .office__side { box-shadow: var(--shadow); }

/* Cierre de Servicios: la frase de la agencia y el boton para empezar. */
.servicios__cta { display: grid; justify-items: center; gap: 26px; margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.servicios__cta .lead { max-width: 34em; }

/* ---------- WhatsApp (venta en directo) ----------
   Colores propios de la plataforma: cabecera verde y burbujas verdes.
   El resto sigue la marca. */
.wa {
  position: relative; width: min(100%, 420px);
  background: var(--blanco); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
}
.wa__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #008069; color: var(--blanco); }
.wa__logo { width: 38px; height: 38px; border-radius: 50%; background: var(--blanco); display: grid; place-items: center; flex: none; }
.wa__logo svg { width: 22px; height: 22px; fill: #25D366; }
.wa__who { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.wa__who b { font-weight: 600; font-size: 15px; }
.wa__who small { font-size: 12px; opacity: .85; }
.wa__tag { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.16); color: var(--blanco); }
.wa__body { display: grid; gap: 6px; align-content: end; justify-items: start; padding: 14px 12px; min-height: 330px; background: #EFF2F6; }
/* En las tarjetas el chat tiene alto fijo: los mensajes nuevos empujan a
   los viejos hacia arriba por dentro, sin mover la tarjeta ni la rejilla. */
.wa--sm .wa__body {
  height: 280px; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px);
          mask-image: linear-gradient(to bottom, transparent, #000 28px);
}
.msg {
  position: relative; max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4;
  background: var(--blanco); color: var(--medianoche); box-shadow: 0 1px 1px rgba(11,18,42,.08);
  animation: pop .45s var(--ease-spring) both;
}
.msg--in { border-top-left-radius: 4px; }
.msg--out { justify-self: end; background: #D9FDD3; border-top-right-radius: 4px; }
.msg__time { display: block; text-align: right; font-size: 10px; color: rgba(11,18,42,.45); margin-top: 3px; }
.msg--out .msg__time::after { content: " ✓✓"; color: #53BDEB; }
.msg--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { transform: translateY(8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
/* enlace de pago */
.msg--link { padding: 8px; }
.paylink { display: grid; gap: 8px; padding: 10px 12px; background: var(--blanco); border-radius: 10px; border: 1px solid rgba(11,18,42,.08); min-width: 220px; }
.paylink__title { font-size: 12px; color: var(--muted); }
.paylink__amount { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.paylink__btn { display: inline-block; justify-self: start; padding: 7px 12px; border-radius: 999px; background: var(--azul-player); color: var(--blanco); font-size: 12px; font-weight: 500; }
/* mensaje de sistema: pago completado */
.msg--sys { justify-self: center; max-width: 100%; background: var(--medianoche); color: var(--blanco); font-weight: 500; padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.msg--sys .check { width: 18px; height: 18px; border-radius: 50%; background: #25D366; display: grid; place-items: center; }
.msg--sys .check svg { width: 11px; height: 11px; fill: none; stroke: var(--blanco); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wa__foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 13px; color: var(--grafito); border-top: 1px solid var(--line); transition: background-color .4s, color .4s; }
.wa__foot.is-won { background: var(--medianoche); color: var(--blanco); }
.wa__foot.is-won .bullet { background: #25D366; }

/* ---------- Gap ---------- */
.gap { background: var(--medianoche); color: var(--blanco); }
.gap__grid {
  display: grid; grid-template-columns: auto auto 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; padding-block: clamp(56px, 7vw, 88px);
}
.gap__stat { display: grid; gap: 8px; }
.gap__num { font-size: clamp(56px, 7vw, 88px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.gap__num--accent { color: var(--azul-player); }
.gap__label { font-size: 15px; color: #A9AFC6; }
.gap__bar { display: block; height: 6px; width: 150px; border-radius: 99px; background: rgba(209,222,255,.14); margin-top: 6px; overflow: hidden; }
.gap__bar i { display: block; height: 100%; width: 5%; min-width: 7px; border-radius: 99px; background: var(--azul-player); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.gap__stat.is-in .gap__bar i, .gap__stat:not(.is-below) .gap__bar i { transform: scaleX(1); }
.gap__text { font-size: 20px; line-height: 1.5; color: #D4D8E6; max-width: 28em; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(88px, 11vw, 152px); background: var(--blanco); }
.section--mist { background: var(--niebla); }
.section__head { display: grid; gap: 18px; text-align: center; justify-items: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); }
.section__head--left { text-align: left; justify-items: start; margin: 0; }
.section__sub { color: var(--grafito); font-size: 19px; line-height: 1.55; max-width: 32em; }

/* Las piezas grises sobre secciones grises pasan a blanco, y al reves,
   para que se sigan distinguiendo al alternar el fondo de las secciones. */
.section--mist .tools li { background: var(--blanco); }
.section:not(.section--mist) .level { background: var(--niebla); }

/* ---------- Servicios: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: grid; grid-template-rows: auto 1fr; gap: 26px;
  padding: 32px; background: var(--niebla); border-radius: var(--r-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
  min-height: 340px;
}
.card:hover { transform: translateY(-4px); background: var(--blanco); box-shadow: var(--shadow); }
.card--wide { grid-column: span 2; grid-template-columns: 1fr 1.1fr; grid-template-rows: none; align-items: center; }
.card .wa { width: 100%; box-shadow: var(--shadow-sm); }
.card__copy { display: grid; gap: 10px; align-content: start; }
.card__copy p { color: var(--grafito); font-size: 16px; line-height: 1.55; }

/* mini producto: pipeline de ventas (oportunidades que avanzan) */
.pipe { align-self: end; }
.pipe__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pipe__col { position: relative; display: grid; align-content: start; gap: 6px; height: 190px; overflow: hidden; padding: 6px; background: rgba(255,255,255,.6); border-radius: 14px; }
.pipe__name { font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 4px 6px; }
.opp {
  padding: 8px 9px; background: var(--blanco); border-radius: 10px; font-size: 12px; font-weight: 500; line-height: 1.25;
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--azul-hielo);
  transition: transform .6s var(--ease), opacity .4s;
}
.opp small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.opp.is-enter { animation: pop .5s var(--ease-spring) both; }
.opp.is-won { border-left-color: var(--azul-player); }
.opp.is-leave { opacity: 0; transform: translateY(-8px); }

/* mini producto: factura (OCR en bucle) */
.doc { position: relative; display: grid; gap: 4px; align-content: end; padding: 14px; background: var(--blanco); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.doc__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--azul-player); box-shadow: 0 0 16px 4px rgba(79,107,255,.35); opacity: 0; }
.doc.is-scanning .doc__scan { animation: scan 1.6s var(--ease) both; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.doc__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 2px; border-bottom: 1px dashed var(--line); }
.doc__row:last-child { border-bottom: 0; }
.doc__row span { color: var(--muted); }
.doc__row b { font-weight: 500; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; transition: opacity .3s, filter .3s; }
.doc__row b i { font-style: normal; }
.doc.is-blank .doc__row b[data-field] { opacity: .25; filter: blur(3px); }
.doc__row b[data-field].is-in { opacity: 1; filter: none; animation: pop .4s var(--ease-spring); }
.doc__row--ok b { color: var(--azul-player); }
.doc__row--ok b .bullet { transition: background-color .3s; }
.doc.is-blank .doc__row--ok b { color: var(--muted); }
.doc.is-blank .doc__row--ok b .bullet { background: var(--line-strong); }

/* mini producto: ahorro */
.saving { display: grid; gap: 2px; align-content: end; position: relative; }
.saving__num { font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--azul-player); font-variant-numeric: tabular-nums; }
.saving__label { font-size: 14px; color: var(--grafito); margin-bottom: 10px; }
.saving__spark { width: 100%; height: 64px; overflow: visible; }
.saving__area { fill: rgba(79,107,255,.12); }
.saving__line { fill: none; stroke: var(--azul-player); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.saving.is-draw .saving__line { animation: draw 2.2s var(--ease) both; }
.saving.is-draw .saving__area { animation: fadeIn 2.2s var(--ease) both; }
.saving.is-draw .saving__end { animation: fadeIn .4s 2s both; }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.saving__end { fill: var(--azul-player); }

/* ---------- Office Players ---------- */
.office { display: grid; grid-template-columns: 1.55fr .8fr; gap: 24px; align-items: start; }
.office__frame {
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--blanco); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.office__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.office__title { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.office__canvas { display: block; width: 100%; height: auto; background: #F3F4F8; }
.office__foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
.office__label { flex: none; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.office__ticker { color: var(--medianoche); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office__ticker.is-new { animation: tick .5s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.office__side { display: grid; align-content: start; gap: 18px; padding: 28px; background: var(--blanco); border-radius: var(--r-lg); }
.office__side h3 { font-size: 20px; }
.depts { list-style: none; margin: 0; padding: 0; display: grid; }
.depts li {
  display: grid; grid-template-columns: 8px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; transition: color .2s;
}
.depts li .bullet { grid-row: 1 / span 2; background: var(--line-strong); transition: background-color .3s, transform .3s var(--ease-spring); }
.depts li small { font-weight: 400; font-size: 13px; color: var(--muted); }
.depts li.is-live .bullet { background: var(--azul-player); animation: livePulse 1.6s var(--ease); }
.depts li.is-live { color: var(--azul-player); }
@keyframes livePulse { 0% { transform: scale(1); } 30% { transform: scale(1.8); } 100% { transform: scale(1); } }
.office__note { font-size: 14px; color: var(--grafito); line-height: 1.5; }
.office__side .btn { justify-self: start; }

/* ---------- Integraciones: logos ---------- */
.tools {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.tools li {
  display: grid; place-items: center; gap: 10px; text-align: center;
  min-height: 112px; padding: 18px 10px 14px; background: var(--niebla); border-radius: 18px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  transition: color .25s, transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.tools li svg { width: 30px; height: 30px; fill: var(--grafito); transition: fill .3s var(--ease), transform .3s var(--ease-spring); }
.tools li:hover { color: var(--medianoche); background: var(--blanco); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tools li:hover svg { fill: var(--brand); transform: scale(1.12); }
.tools__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ---------- Método ---------- */
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.level {
  position: relative; display: grid; align-content: start; gap: 10px;
  padding: 28px; background: var(--blanco); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.level:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.level__tag { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-player); margin-bottom: 4px; }
.level p { color: var(--grafito); font-size: 16px; line-height: 1.55; }
.level h3 { font-size: 22px; }

/* ---------- Casos ---------- */
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  width: fit-content; max-width: 100%; margin: 0 auto 40px; padding: 5px;
  background: var(--blanco); border: 1px solid var(--line); border-radius: 999px;
}
.tab {
  font: 500 15px/1 var(--font); color: var(--grafito);
  background: transparent; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  transition: background-color .25s var(--ease), color .2s;
}
.tab:hover { color: var(--medianoche); }
.tab.is-active { background: var(--medianoche); color: var(--blanco); }
.case { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.case__copy { display: grid; gap: 14px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.case.is-switching .case__copy { opacity: 0; transform: translateY(8px); }
.case__tag { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-player); }
.case__title { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.035em; }
.case__text { color: var(--grafito); max-width: 28em; }
.kpis { display: grid; width: 100%; margin-top: 12px; border-top: 1px solid var(--line-strong); }
.kpi { display: flex; align-items: baseline; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line-strong); }
.kpi__num { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; min-width: 4.2em; font-variant-numeric: tabular-nums; }
.kpi:first-child .kpi__num { color: var(--azul-player); }
.kpi__label { color: var(--grafito); font-size: 16px; }

.chart { margin: 0; padding: 32px; background: var(--blanco); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.chart__title { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.chart__legend { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grafito); }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sw--before { background: var(--azul-hielo); }
.sw--after { background: var(--azul-player); margin-left: 10px; }
.chart__plot svg { display: block; width: 100%; height: auto; }
.chart__plot text { font-family: var(--font); }
.chart__plot rect { transition: width .9s var(--ease); }
.chart__note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__copy { display: grid; gap: 22px; justify-items: start; }
.about__copy > p:not(.kicker) { color: var(--grafito); max-width: 30em; }
.chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; font-size: 15px; transition: border-color .2s, transform .3s var(--ease); }
.chips li:hover { border-color: var(--medianoche); transform: translateY(-2px); }
.team { display: grid; gap: 14px; }
.person {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  padding: 26px; background: var(--niebla); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.person:hover { background: var(--blanco); box-shadow: var(--shadow); transform: translateY(-2px); }
.person__body p:last-child { color: var(--grafito); font-size: 16px; line-height: 1.55; }
.person__role { font-size: 14px; color: var(--muted); font-weight: 500; margin: 4px 0 12px; }
.avatar {
  width: 60px; height: 60px; border-radius: 30%; display: grid; place-items: center;
  background: var(--medianoche); color: var(--blanco); font-weight: 600; font-size: 24px;
  position: relative;
}
.avatar::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--azul-player); right: 13px; bottom: 19px;
}
.avatar--blue { background: var(--azul-player); }
.avatar--blue::after { background: var(--medianoche); }
.avatar--ice { background: var(--azul-hielo); color: var(--medianoche); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy { display: grid; gap: 18px; justify-items: start; }
.contact__direct {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; width: 100%;
  padding: 18px 20px; border-radius: var(--r); background: var(--blanco);
}
.contact__label { font-size: 14px; color: var(--muted); width: 100%; }
.contact__mail { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; user-select: all; flex: 1; min-width: 0; overflow-wrap: anywhere; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: clamp(24px, 3vw, 40px); background: var(--blanco);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--grafito); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--font); color: var(--medianoche);
  background: var(--niebla); border: 1px solid transparent; border-radius: 14px;
  padding: 14px 16px; width: 100%; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 124px; }
.field input::placeholder, .field textarea::placeholder { color: #A2A7BB; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--blanco); border-color: var(--azul-player); box-shadow: var(--ring);
}
.field .is-invalid { border-color: var(--error); background: var(--blanco); }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form__status { font-size: 15px; color: var(--grafito); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--medianoche); color: var(--blanco);
  padding-block: clamp(96px, 12vw, 160px) 40px;
}
.footer__circle {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--azul-player); left: -170px; bottom: -210px;
}
.footer__inner { position: relative; display: grid; justify-items: end; gap: 18px; text-align: right; }
.footer__kicker { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #A9AFC6; }
.footer__claim { font-size: clamp(48px, 8vw, 104px); font-weight: 600; letter-spacing: -0.05em; line-height: .96; }
.footer__row { display: flex; align-items: center; gap: 24px; margin-top: 10px; }
.footer__row .logo svg { height: 24px; }
.footer__domain { color: #A9AFC6; font-size: 17px; }
.footer__legal { margin-top: clamp(56px, 8vw, 104px); color: #8A90A8; font-size: 14px; }
.footer__legal a { color: #8A90A8; text-decoration: none; transition: color .2s; }
.footer__legal a:hover { color: var(--blanco); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px; background: var(--blanco); border-bottom: 1px solid var(--line);
  }
  .nav__links:not(.is-open) { display: none; }
  .nav__links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 18px; }
  .case, .about, .contact, .office { grid-template-columns: 1fr; }
  .hero__orb { width: 420px; right: -24vw; top: auto; bottom: -6%; transform: none; }
  .gap__grid { grid-template-columns: 1fr 1fr; }
  .gap__text { grid-column: 1 / -1; }
  .card--wide { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .bento, .levels { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: auto; min-height: 0; padding: 26px; }
  .form { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tools li { min-height: 92px; font-size: 11px; }
  .tools li svg { width: 26px; height: 26px; }
  .depts { grid-template-columns: 1fr; }
  .office__side { padding: 22px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; }
  .tab { padding: 12px 10px; font-size: 14px; border-radius: 14px; }
  .hero__orb { width: 300px; right: -34vw; bottom: -4%; }
  .wa__body { min-height: 300px; }
  .kpi { flex-direction: column; gap: 2px; }
  .footer__circle { width: 260px; height: 260px; left: -120px; bottom: -130px; }
  .footer__row { flex-direction: column; align-items: flex-end; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal-now, .js h1 .w, .js h1 .dot-land, .reveal.is-below { opacity: 1; transform: none; }
  .gap__bar i { transform: none !important; }
}

/* Campo trampa para robots: fuera de la vista, pero no con display:none,
   que algunos lo detectan y lo saltan. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
