/* =========================================================
   Prismora — Home
   Marca: #4e08ff + derivados, blanco para todo lo demás
   ========================================================= */
:root {
  --brand: #4e08ff;
  --brand-700: #3a00c7;
  --brand-400: #7a4bff;
  --brand-300: #a07fff;
  --brand-200: #c9b6ff;
  --brand-100: #e7deff;
  --brand-50:  #f4f0ff;

  --ink: #0e0626;        /* bloques oscuros (morado casi negro) */
  --ink-2: #180c3b;      /* tarjetas dentro de bloques oscuros */
  --ink-3: #251651;

  --bg: #ffffff;
  --surface: #f7f7fa;    /* paneles claros: casi neutro, apenas un toque lila */
  --surface-2: #efeef4;
  --line: #e6e1f3;
  --text: #0e0626;
  --muted: #625c78;
  --on-dark: #ffffff;
  --on-dark-muted: #a59cc4;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: 16px;
}

[data-theme="dark"] {
  --bg: #08031a;
  --surface: #130a30;
  --surface-2: #1c1240;
  --line: #2a1f55;
  --text: #ffffff;
  --muted: #a59cc4;
  --ink: #160b3d;
  --ink-2: #21134f;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.035em; font-weight: 500; line-height: 1.04; }
h2 { font-size: clamp(36px, 5vw, 64px); }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 140px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.14); font-size: 13px;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn__arrow--plain { background: transparent; }
.btn__arrow--brand { background: var(--brand); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); box-shadow: 0 10px 30px -10px rgba(78,8,255,.6); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-700); box-shadow: 0 12px 34px -10px rgba(78,8,255,.7); }
.btn--ghost { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light .btn__arrow { background: var(--ink); color: #fff; }
.btn--block { width: 100%; justify-content: space-between; }

.tag { display: inline-block; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.tag--dark { background: var(--ink); color: #fff; }
.tag--ink { background: var(--ink-3); color: #fff; }
.tag--light { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.link-arrow { white-space: nowrap; flex: none; font-size: 14px; color: var(--on-dark); display: inline-flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand-200); }

/* ---------- Placeholders de imagen (reemplazar por fotos reales) ---------- */
.ph { position: relative; overflow: hidden; background: var(--brand-100); }
.ph::before {
  content: ""; position: absolute; inset: -20%;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.35) 46%, transparent 54%),
    linear-gradient(115deg, transparent 52%, rgba(255,255,255,.18) 58%, transparent 64%);
  pointer-events: none;
}
.ph--1 { background: radial-gradient(120% 90% at 30% 20%, #8a5cff, #4e08ff 55%, #24006e); }
.ph--2 { background: radial-gradient(120% 90% at 70% 30%, #f4f0ff, #c9b6ff 55%, #7a4bff); }
.ph--3 { background: radial-gradient(120% 100% at 20% 80%, #3a00c7, #180c3b 70%); }
.ph--4 { background: linear-gradient(160deg, #e7deff, #a07fff 60%, #4e08ff); }
.ph--5 { background: radial-gradient(100% 100% at 80% 20%, #a07fff, #4e08ff 50%, #0e0626); }
.ph--6 { background: linear-gradient(200deg, #ffffff, #e7deff 50%, #c9b6ff); }
.ph--team, .ph--meeting { background: radial-gradient(90% 120% at 25% 30%, #7a4bff, #3a00c7 45%, #180c3b 90%); }
.ph--chart { background: conic-gradient(from 200deg at 35% 60%, #4e08ff, #a07fff, #e7deff, #4e08ff); }
.ph--desk { background: linear-gradient(135deg, #f4f0ff, #c9b6ff 70%, #7a4bff); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee__track, .strip__track { animation: none !important; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px clamp(16px, 3vw, 40px);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.nav__brand img { border-radius: 7px; }
.nav__links { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.nav__links a { font-size: 13px; padding: 8px 14px; border-radius: 8px; transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--bg); color: var(--brand); }
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav__links a.is-current { background: var(--bg); color: var(--brand); box-shadow: 0 1px 2px rgba(14,6,38,.08); }
.nav__lang { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px; color: var(--muted); }
.nav__lang a { font-weight: 500; transition: color .2s; }
.nav__lang a:hover { color: var(--text); }
.nav__lang a.is-on { color: var(--brand); font-weight: 600; }
.nav__lang span { opacity: .4; }
.mobile-menu__lang { display: flex; gap: 8px; padding: 8px 12px; font-size: 15px; }
.mobile-menu__lang span { opacity: .4; }
.mobile-menu .mobile-menu__lang a { padding: 0; font-size: 15px; color: var(--muted); }
.mobile-menu .mobile-menu__lang a.is-on { color: var(--brand); font-weight: 600; }
.mobile-menu a.is-current { color: var(--brand); }
.nav__theme { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.nav__theme:hover { background: var(--surface); }
.nav__menu { display: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__menu span { width: 16px; height: 1.5px; background: #fff; transition: transform .3s; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 64px 12px auto; z-index: 49; display: grid; gap: 4px;
  padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(14,6,38,.3);
  opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a:not(.btn) { padding: 12px; font-size: 17px; border-radius: 10px; }
.mobile-menu .btn { justify-content: space-between; margin-top: 6px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 64px; }
.hero__panel {
  margin: 0 12px; border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(78, 8, 255, .035), transparent 70%),
    var(--surface);
  text-align: center; padding: clamp(36px, 5vw, 64px) 20px clamp(160px, 16vw, 220px);
  position: relative; isolation: isolate;
}
.hero__title {
  position: relative; font-size: clamp(42px, 7.2vw, 104px); letter-spacing: -0.045em; line-height: 1.04; padding-bottom: .06em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--brand-700) 55%, var(--brand-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
/* Resplandor morado suave detrás del título */
.hero__title::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 12% -4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(78, 8, 255, .22), rgba(122, 75, 255, .10) 55%, transparent);
  filter: blur(40px); pointer-events: none;
}
[data-theme="dark"] .hero__title { background-image: linear-gradient(180deg, #fff 0%, #fff 35%, var(--brand-200) 100%); }
[data-theme="dark"] .hero__title::before { background: radial-gradient(closest-side, rgba(78, 8, 255, .45), rgba(122, 75, 255, .18) 55%, transparent); }
.hero__lead { max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.hero__ctas { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero__ctas .reveal, .hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero__ctas.reveal { transition-delay: .2s; }

.marquee { overflow: hidden; }
.marquee--lg { margin-top: clamp(-170px, -12vw, -120px); }
.marquee--sm { margin-top: 12px; }
.marquee__track { display: flex; gap: 12px; width: max-content; padding-inline: 6px; animation: scroll var(--speed, 60s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tile { position: relative; margin: 0; flex: none; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 12px; overflow: hidden; background: var(--surface-2); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.marquee--lg .tile { width: clamp(180px, 17vw, 250px); aspect-ratio: 4 / 5; }
.marquee--sm .tile { width: clamp(140px, 13vw, 200px); aspect-ratio: 4 / 5; }
.tile figcaption {
  position: relative; font-size: 12px; line-height: 1.3; color: #fff; padding: 7px 10px; border-radius: 6px;
  background: rgba(14,6,38,.72); backdrop-filter: blur(8px);
}

.trust { display: flex; align-items: center; gap: 16px; padding-block: 40px 56px; flex-wrap: wrap; }
.trust p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.trust__avatars { display: flex; }
.av { width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--bg); margin-left: -8px; object-fit: cover; display: block; background: var(--surface-2); }
.av:first-child { margin-left: 0; }
/* Logos de clientes: cinta infinita */
.trust__logos {
  flex: 1 1 320px; min-width: 0; margin-left: auto; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust__track { list-style: none; margin: 0; padding: 0 18px; display: flex; align-items: center; gap: 36px; flex: none; animation: trust-scroll 45s linear infinite; }
.trust__logos:hover .trust__track { animation-play-state: paused; }
@keyframes trust-scroll { to { transform: translateX(-100%); } }
/* Logos en negro y sin fondo; en modo oscuro se invierten a blanco */
.logo { flex: none; display: grid; place-items: center; height: 40px; opacity: .78; transition: opacity .3s; }
.logo:hover { opacity: 1; }
.logo img { width: auto; max-width: none; display: block; height: 18px; }
.logo--c img { height: 34px; }   /* escudos */
.logo--m img { height: 26px; }   /* logos compactos */
[data-theme="dark"] .logo img { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { .trust__track { animation: none; } }

/* =========================================================
   DARK BLOCKS
   ========================================================= */
.dark-block {
  margin: 0 12px; border-radius: var(--radius-xl); background: var(--ink); color: var(--on-dark);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.dark-block::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -400px;
  background: radial-gradient(circle, rgba(78,8,255,.35), transparent 60%); pointer-events: none;
}

.manifesto { max-width: 1100px; margin: 0 auto; position: relative; }
.manifesto__text { font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -0.035em; line-height: 1.12; font-weight: 500; }
.manifesto__text .w { color: rgba(255,255,255,.18); transition: color .4s; }
.manifesto__text .w.on { color: #fff; }
.manifesto__small { margin: 48px 0 0 clamp(0px, 18vw, 200px); max-width: 440px; color: var(--on-dark-muted); font-size: 15px; line-height: 1.55; }

.services { position: relative; max-width: 1240px; margin: clamp(100px, 12vw, 180px) auto 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 420px; }
.dark-block .section-head p { color: var(--on-dark-muted); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.section-head--end { align-items: flex-end; }
.section-head--center { text-align: center; }
.section-head--center p { margin: 18px auto 0; }

.services__body { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px; }
.services__tabs { display: flex; flex-direction: column; gap: 6px; }
.services__tabs button {
  text-align: left; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.03em; padding: 14px 16px;
  border-radius: 12px; color: rgba(255,255,255,.4); transition: color .3s, background .3s;
}
.services__tabs button:hover { color: #fff; }
.services__tabs button.is-active { color: #fff; background: var(--ink-2); box-shadow: inset 3px 0 0 var(--brand); }
.services__media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); transition: opacity .35s; }
.services__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.services__media.is-fading { opacity: .3; }
.services__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 18px; }
.services__foot p { color: var(--on-dark-muted); max-width: 520px; line-height: 1.5; font-size: 15px; }

/* ---------- Strip ---------- */
.strip { margin: 12px; border-radius: 14px; background: var(--brand); color: #fff; overflow: hidden; padding: 16px 0; }
.strip__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: scroll 50s linear infinite; font-size: 18px; font-weight: 500; }
.strip__track i { font-style: normal; color: var(--brand-200); font-size: 13px; }

/* =========================================================
   BENTO
   ========================================================= */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
.bento__card { border-radius: var(--radius-lg); padding: 24px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.bento__card p { font-size: 14px; line-height: 1.45; max-width: 320px; }
.bento__card > .tag, .bento__wide-body > .tag { align-self: flex-start; justify-self: start; }
.bars i.on { animation: none; }
.bars.is-in i.on { animation: fill .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes fill { from { background: var(--surface-2); transform: scale(.7); } }
.bento__card--lilac { background: var(--brand-100); color: var(--ink); }
.bento__card--soft { background: var(--surface); }
.bento__card--soft p { color: var(--muted); }
.bento__card--dark { background: var(--ink); color: #fff; }
.bento__card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; padding: 14px; }
.bento__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.label { font-size: 14px; font-weight: 500; }
.big-num { font-size: clamp(56px, 7vw, 92px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; display: block; }
.big-num--brand { color: var(--brand-200); }
.bento__card--lilac .big-num { margin-bottom: 10px; }
.bars { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.bars i { aspect-ratio: 1; border-radius: 4px; background: var(--surface-2); }
.bars i.on { background: var(--brand); animation: pulse 2.4s var(--ease) infinite; }
.bars i.on + i.on { animation-delay: .3s; }
@keyframes pulse { 50% { opacity: .55; } }
.bento__img { width: 38%; height: auto; aspect-ratio: 16/10; border-radius: var(--radius); flex: none; object-fit: cover; display: block; }
.bento__wide-body { flex: 1; padding: 10px 20px; display: grid; gap: 14px; }
.bento__wide-body p { color: var(--on-dark-muted); }

/* =========================================================
   CASES (sticky stack)
   ========================================================= */
.cases { display: grid; gap: 24px; }
.case {
  position: sticky; top: 90px; border-radius: var(--radius-xl); min-height: min(560px, 80vh);
  padding: 14px; display: flex; justify-content: flex-end;
  box-shadow: 0 -20px 60px -30px rgba(14,6,38,.35);
}
.case:nth-child(2) { top: 110px; }
.case:nth-child(3) { top: 130px; }
/* Tarjeta con retrato: la foto se muestra completa (sin zoom) a la izquierda, sobre su mismo gris de fondo */
.case--photo { background: linear-gradient(90deg, #dcdcdc, #d0cec9); overflow: hidden; }
.case__bg { position: absolute; top: 0; left: calc((100% - min(400px, 100%) - 28px) / 2); transform: translateX(-50%); height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
/* Tarjeta con póster: fondo desenfocado de la misma pieza y el póster completo encima */
.case--poster { background: var(--ink); overflow: hidden; }
.case__blur { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(40px) saturate(1.2); opacity: .7; }
.case__poster { position: absolute; top: 8%; bottom: 8%; left: calc((100% - min(400px, 100%) - 28px) / 2); transform: translateX(-50%); height: 84%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
/* Tarjeta con cover horizontal: foto a la izquierda, mismo cover desenfocado detrás */
.case--cover { background: #120b05; overflow: hidden; }
.case__cover { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - min(400px, 100%) - 28px); height: 100%; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.case__brands--logos { align-items: center; gap: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.case__brands--logos img { height: 18px; width: auto; max-width: 70px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.case__info {
  position: relative; width: min(400px, 100%); background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.case__info .tag { align-self: flex-start; }
.case__info h3 { font-size: clamp(28px, 3vw, 38px); }
.case__info p { color: var(--on-dark-muted); font-size: 14px; line-height: 1.55; }
.case__stat { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.case__stat strong { font-size: clamp(48px, 5vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.case__stat--text strong { font-size: clamp(38px, 4vw, 52px); }
.case__brands { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.case__brands span { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.case__brands + .case__stat { margin-top: 0; }
.case__stat span { font-size: 12px; color: var(--on-dark-muted); text-align: right; }

/* =========================================================
   STATS
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 40px 20px; }
.stat { text-align: center; padding: 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(56px, 7vw, 96px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; display: block; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* =========================================================
   HOW WE WORK
   ========================================================= */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.how__left, .how__right { border-radius: var(--radius-xl); padding: 28px; min-height: 520px; }
.how__left { background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.how__top { display: flex; justify-content: space-between; gap: 16px; }
.how__top p { color: var(--muted); font-size: 14px; text-align: right; line-height: 1.45; }
.how__bottom { display: flex; align-items: flex-end; gap: 20px; }
.how__img { width: 42%; aspect-ratio: 1; border-radius: var(--radius); flex: none; }
.how__count { flex: 1; text-align: right; }
.how__count strong { font-size: clamp(72px, 8vw, 120px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; display: block; color: var(--brand); }
.how__count p { color: var(--muted); font-size: 14px; max-width: 220px; margin-left: auto; margin-top: 8px; }
.how__right {
  background: radial-gradient(80% 60% at 50% 40%, var(--brand-400), var(--brand) 55%, var(--brand-700));
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center;
}
.how__kicker { font-size: 13px; color: var(--brand-100); }
.steps { display: grid; width: min(380px, 100%); }
.step {
  grid-area: 1 / 1; padding: 28px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px);
  opacity: 0; transform: translateX(30px) scale(.96); transition: .6s var(--ease); pointer-events: none;
}
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--brand); font-weight: 600; font-size: 14px; }
.step h3 { font-size: 34px; margin: 16px 0 12px; }
.step p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.8); }
.steps__dots { display: flex; gap: 8px; }
.steps__dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.35); transition: width .4s var(--ease), background .3s; }
.steps__dots button.is-active { width: 28px; background: #fff; }

/* =========================================================
   COMPARISON
   ========================================================= */
.compare { margin-top: 0; text-align: center; }
.compare h2 { margin-bottom: clamp(40px, 5vw, 64px); position: relative; }
.compare__table { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 0 auto; text-align: left; }
.compare__head { padding: 16px; border-radius: 12px; text-align: center; font-size: 14px; background: var(--ink-2); color: var(--on-dark-muted); display: flex; justify-content: center; align-items: center; gap: 8px; }
.compare__col--us .compare__head { background: var(--brand); color: #fff; }
.compare__head img { border-radius: 4px; }
.compare ul { list-style: none; margin: 0; padding: 8px 16px; }
.compare li { padding: 16px 0 16px 28px; position: relative; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--on-dark-muted); }
.compare li::before { content: "✕"; position: absolute; left: 2px; font-size: 11px; color: rgba(255,255,255,.3); top: 18px; }
.compare__col--us li { color: #fff; }
.compare__col--us li::before { content: "✓"; color: var(--brand-300); font-size: 13px; top: 16px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi__body { display: grid; grid-template-columns: auto 1fr; gap: 16px; max-width: 1000px; margin: 0 auto; }
.testi__avatars { display: flex; flex-direction: column; gap: 10px; }
.testi__avatars button { width: 52px; height: 52px; border-radius: 10px; opacity: .4; filter: grayscale(1); transition: .3s; outline: 2px solid transparent; outline-offset: 2px; }
.testi__avatars button.is-active { opacity: 1; filter: none; outline-color: var(--brand); }
.testi__avatars button { overflow: hidden; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.testi__avatars button:nth-child(even) span { color: var(--brand-200); }
.testi__avatars img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.testi__card { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.stars { color: var(--brand); letter-spacing: 4px; font-size: 15px; }
.testi__card blockquote { margin: 0; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.25; flex: 1; transition: opacity .3s; }
.testi__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.testi__foot strong { display: block; font-weight: 500; }
.testi__foot span { font-size: 13px; color: var(--muted); }
.testi__arrows { display: flex; gap: 8px; }
.testi__arrows button { width: 42px; height: 42px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); transition: .25s; }
.testi__arrows button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* =========================================================
   BLOG
   ========================================================= */
.blog { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.post { border-radius: var(--radius-xl); overflow: hidden; }
.post--big { grid-row: 1 / 3; min-height: 520px; display: flex; align-items: flex-end; padding: 20px; }
.post__overlay { position: relative; display: grid; gap: 14px; justify-items: start; }
.post--big h3 { font-size: clamp(28px, 3vw, 40px); color: #fff; max-width: 440px; text-shadow: 0 2px 30px rgba(14,6,38,.4); }
.post--row { display: flex; gap: 20px; padding: 12px; background: var(--surface); transition: background .3s; }
.post--row:hover { background: var(--brand-50); }
.post__img { width: 42%; border-radius: var(--radius); flex: none; transition: transform .5s var(--ease); }
.post:hover .post__img { transform: scale(.98); }
.post__body { display: flex; flex-direction: column; justify-content: space-between; padding: 8px 8px 8px 0; }
.post__meta { font-size: 12px; color: var(--muted); }
.post__meta b { color: var(--brand); font-weight: 500; margin-right: 6px; }
.post--row h3 { font-size: clamp(19px, 1.8vw, 24px); }

/* =========================================================
   WORK (página de proyectos)
   ========================================================= */
.hero__panel--page { padding: clamp(70px, 9vw, 120px) 20px clamp(60px, 7vw, 90px); }
.hero__title--page { font-size: clamp(38px, 5.4vw, 76px); }
.projects-section { padding-block: clamp(40px, 5vw, 64px) clamp(60px, 8vw, 100px); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
.project { display: flex; flex-direction: column; gap: 10px; }
.project__img {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 10px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.project__img { position: relative; overflow: hidden; }
.project__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project:hover .project__img { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(78,8,255,.55); }
.project__stat {
  position: relative; display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px;
  background: rgba(14,6,38,.78); backdrop-filter: blur(8px); color: #fff;
}
.project__stat strong { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.project__stat span { font-size: 11px; color: var(--on-dark-muted); }
.project__meta { display: flex; gap: 8px; font-size: 12px; margin-top: 4px; }
.project__meta b { font-weight: 500; }
.project__meta span { color: var(--muted); }
.project h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; transition: color .2s; }
.project:hover h3 { color: var(--brand); }
@media (max-width: 1080px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px)  { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .projects { grid-template-columns: 1fr; } }

/* =========================================================
   CTA + FOOTER
   ========================================================= */
.cta-block { margin-bottom: 12px; }
.cta { position: relative; text-align: center; max-width: 720px; margin: 0 auto; display: grid; justify-items: center; gap: 24px; }
.cta h2 { font-size: clamp(40px, 5.6vw, 72px); }
.cta p { color: var(--on-dark-muted); font-size: 16px; line-height: 1.55; max-width: 520px; }

.footer {
  margin: 0 12px 12px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-dark);
  padding: 28px clamp(20px, 4vw, 48px) 20px; text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer__brand img { height: 26px; width: auto; }
.footer__links, .footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-size: 14px; }
.footer__social { font-size: 13px; color: var(--on-dark-muted); }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--brand-200); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: var(--on-dark-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__lang, .nav__right > .btn { display: none; }
  .nav__menu { display: flex; }
  .trust__logos { margin-left: 0; width: 100%; }
  .services__body { grid-template-columns: 1fr; }
  .services__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .services__tabs button { font-size: 17px; white-space: nowrap; padding: 10px 14px; }
  .how { grid-template-columns: 1fr; }
  .how__left, .how__right { min-height: 440px; }
  .blog { grid-template-columns: 1fr; grid-template-rows: none; }
  .post--big { grid-row: auto; min-height: 380px; }
}
@media (max-width: 700px) {
  .hero__panel, .dark-block { margin-inline: 8px; }
  .hero__panel { padding-inline: var(--gutter); }
  .dark-block { padding-inline: var(--gutter); }
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { flex-direction: column; align-items: stretch; }
  .bento__img { width: 100%; }
  .bento__wide-body { padding: 8px 6px; }
  .case { min-height: 0; padding-top: 220px; }
  .case__info { width: 100%; }
  .case--photo .case__bg { left: 50%; height: 240px; }
  .case--poster .case__poster { left: 50%; top: 16px; bottom: auto; height: 190px; }
  .case--cover .case__cover { width: 100%; height: 240px; bottom: auto; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .compare__table { grid-template-columns: 1fr; }
  .testi__body { grid-template-columns: 1fr; }
  .testi__avatars { flex-direction: row; overflow-x: auto; padding: 4px; }
  .testi__avatars button { flex: none; width: 44px; height: 44px; }
  .post--row { flex-direction: column; }
  .post__img { width: 100%; aspect-ratio: 16/9; }
  .post__body { padding: 4px; gap: 10px; }
  .services__foot { flex-direction: column; align-items: flex-start; }
}
.case__brands--logos img[alt="adidas"], .case__brands--logos img[alt="Rexona"] { height: 28px; }

/* =========================================================
   CELULAR: "Trusted by", manifiesto y servicios centrados
   ========================================================= */
@media (max-width: 700px) {
  .trust { flex-direction: column; text-align: center; gap: 14px; }
  .trust__avatars { justify-content: center; }
  .trust__logos { flex: none; width: 100%; margin: 6px 0 0; }

  .manifesto { text-align: center; }
  .manifesto__small { margin: 32px auto 0; }

  .services .section-head--split { flex-direction: column; align-items: center; text-align: center; }
  .services .section-head--split p { margin-inline: auto; }
  .services__tabs { justify-content: flex-start; }
  .services__foot { align-items: center; text-align: center; }
  .services__foot p { margin-inline: auto; }
}

/* =========================================================
   NOSOTROS — estilo iOS 2026: vidrio líquido, esquinas muy suaves
   ========================================================= */
.about { position: relative; overflow: hidden; }
.about__hero { position: relative; padding: clamp(140px, 16vw, 200px) 0 clamp(60px, 8vw, 100px); text-align: center; }
.about__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.about__glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.about__glow i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: 40px; background: var(--brand-200); }
.about__glow i:nth-child(2) { width: 460px; height: 460px; right: -100px; top: 160px; background: var(--brand-100); animation-delay: -6s; }
.about__glow i:nth-child(3) { width: 380px; height: 380px; left: 40%; top: 420px; background: rgba(78,8,255,.18); animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.08); } }
.about__intro { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; }
.about__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--brand-700);
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 20px -10px rgba(78,8,255,.35);
}
.about__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.about__title { max-width: 900px; font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.045em; line-height: 1.02; font-weight: 600; }
.about__copy { max-width: 620px; display: grid; gap: 14px; }
.about__copy p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }

.team { position: relative; z-index: 1; padding-block: clamp(30px, 4vw, 50px) clamp(80px, 10vw, 140px); }
.team__head { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.team__head h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.04em; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }

.member { position: relative; aspect-ratio: 1; border-radius: 34px; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 50px -28px rgba(14,6,38,.45);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.member:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 34px 60px -26px rgba(78,8,255,.45); }
.member__photo { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 30% 10%, #ffffff, var(--brand-100) 45%, var(--brand-200) 100%); }
.member:nth-child(3n+2) .member__photo { background: radial-gradient(120% 90% at 70% 10%, #ffffff, #ece6ff 45%, var(--brand-300) 100%); }
.member:nth-child(3n) .member__photo { background: radial-gradient(120% 90% at 50% 0%, #f7f4ff, var(--brand-200) 55%, var(--brand-400) 100%); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
/* Silueta mientras no hay foto */
.member__photo:empty::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 62%; aspect-ratio: 1; transform: translateX(-50%);
  background: rgba(255,255,255,.55);
  -webkit-mask: radial-gradient(circle at 50% 30%, #000 22%, transparent 22.5%), radial-gradient(ellipse 50% 42% at 50% 100%, #000 99%, transparent 100%);
  mask: radial-gradient(circle at 50% 30%, #000 22%, transparent 22.5%), radial-gradient(ellipse 50% 42% at 50% 100%, #000 99%, transparent 100%); }
/* Brillo especular que cruza la tarjeta al pasar el mouse */
.member::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.member:hover::after { transform: translateX(120%); }
.member__glass { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; padding: 12px 16px; border-radius: 24px; display: grid; gap: 2px;
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(22px) saturate(190%); -webkit-backdrop-filter: blur(22px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.25), 0 10px 30px -14px rgba(14,6,38,.35); }
.member__glass b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.member__glass span { font-size: 12.5px; color: rgba(14,6,38,.62); }

[data-theme="dark"] .about__eyebrow, [data-theme="dark"] .member__glass { background: rgba(20,10,50,.45); border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .member__glass b { color: #fff; }
[data-theme="dark"] .member__glass span { color: var(--on-dark-muted); }

@media (max-width: 1000px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member { border-radius: 26px; }
  .member__glass { left: 7px; right: 7px; bottom: 7px; padding: 9px 11px; border-radius: 18px; }
  .member__glass b { font-size: 14px; }
  .member__glass span { font-size: 11px; }
  .about__glow i { width: 300px !important; height: 300px !important; }
}
@media (prefers-reduced-motion: reduce) { .about__glow i { animation: none; } }

/* =========================================================
   BLOG (grid en /blog e inicio, artículo en /blog/<slug>)
   ========================================================= */
.byline { display: flex; align-items: center; gap: 12px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.byline div { display: grid; gap: 2px; text-align: left; }
.byline b { font-size: 15px; font-weight: 600; }
.byline div span { font-size: 13px; color: var(--muted); }
.byline--sm { gap: 8px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.byline--sm img { width: 26px; height: 26px; }
.byline--sm b { font-size: 13px; font-weight: 500; color: var(--text); }
.post-card .project__img { aspect-ratio: 16 / 10; }
.blog-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.article { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(110px, 12vw, 150px); }
.article__crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.article__crumbs a { color: var(--brand); }
.article__crumbs a:hover { text-decoration: underline; }
.article__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.035em; }
.article__lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.article__head .byline { margin-top: 28px; }
.article__cover { margin: 36px 0 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prose { padding-top: 40px; font-size: 18px; line-height: 1.75; color: color-mix(in srgb, var(--text) 86%, transparent); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.025em; color: var(--text); margin-top: 1.9em; }
.prose h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); margin-top: 1.6em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-size: 21px; line-height: 1.5; color: var(--text); letter-spacing: -0.01em; }
.prose img { width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.article__author { display: flex; align-items: center; gap: 14px; margin-top: 56px; padding: 20px; border-radius: var(--radius-xl); background: var(--surface); }
.article__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.article__author div { display: grid; gap: 2px; }
.article__author span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.article__author b { font-size: 17px; }
.article__author small { font-size: 13px; color: var(--muted); }
.article__more { padding-top: clamp(60px, 8vw, 100px); }
.article__more h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; margin-bottom: 28px; }

@media (max-width: 700px) {
  .article { text-align: center; }
  .article__crumbs, .article__head .byline { justify-content: center; }
  .prose { text-align: left; font-size: 17px; }
  .article__author { text-align: left; }
  .article__more h2 { text-align: center; }
  .post-card .byline--sm { justify-content: center; }
}
