/* Hallmark · macrostructure: Cinematic Marquee · tone: audiovisual agency · anchor hue: brand teal */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V4 */
/* ==========================================================================
   Audiovisual Agency · styles
   Sin frameworks. CSS moderno con mejoras progresivas.
   ========================================================================== */

/* ---------- Tokens (Dark-first · Minimal Tech) ---------- */
:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-gray: #0a0a0b;
  --bg-dark: #08090b;
  --tile-dark: #111113;
  --surface-raised: #1c1c1f;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-dark-2: var(--text-2);
  --line: rgb(255 255 255 / .1);
  --line-dark: var(--line);
  --brand: #69cec5;
  --brand-ink: var(--brand);
  --brand-ink-hover: #8bddd6;
  --button-ink: #09231f;
  --danger: #ff949c;
  --glass: rgb(255 255 255 / .04);
  --glow: rgb(105 206 197 / .3);
  --grad: linear-gradient(100deg, #69cec5 0%, #a9f0e7 45%, #f5f5f7 100%);
  --ease-apple: cubic-bezier(.22, 1, .36, 1);
  --nav-glass: rgb(8 9 11 / .92);
  --film-shade: linear-gradient(90deg, rgb(8 9 11 / .64), rgb(8 9 11 / .18)), linear-gradient(0deg, rgb(8 9 11 / .96), rgb(8 9 11 / .2) 70%);
  --control-bg: rgb(8 9 11 / .88);
  --preview-bg: linear-gradient(135deg, #203a38, #121a1c 65%);
  --focus-glow: rgb(105 206 197 / .2);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --nav-h: 72px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --font: "Inter", Arial, sans-serif;
  /* Display = misma familia, rol tipográfico distinto (peso/tracking en titulares). */
  --font-display: "Inter", Arial, sans-serif;
  --font-body: var(--font);
  --font-meta: var(--font);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.05;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); }
h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Saltos de línea sólo para pantallas anchas; en mobile manda text-wrap: balance */
@media (max-width: 700px) { .br-lg { display: none; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: #fff;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  margin-bottom: 14px;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--brand-ink);
}
.eyebrow--light { color: var(--brand); }

.section__lead {
  max-width: 640px; margin-top: 20px;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.4; letter-spacing: -0.015em;
  color: var(--text-2);
}

.gradient-text {
  background: linear-gradient(90deg, #39b2aa 0%, #7fe0d6 45%, #d7fff9 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.gradient-text--ink { background-image: linear-gradient(90deg, #1f7f78, #2a9d95); }

/* ---------- Botones y links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px;
  border: 0; border-radius: 980px;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--primary { background: var(--brand-ink); color: #fff; }
.btn--primary:hover { background: var(--brand-ink-hover); }
.btn--secondary { background: #e8e8ed; color: var(--text); }
.btn--secondary:hover { background: #dcdce1; }
.btn--sm { min-height: 32px; padding: 6px 14px; font-size: .875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 1.0625rem; font-weight: 500;
  color: var(--brand-ink);
}
.link-arrow .icon { width: .9em; height: .9em; stroke-width: 2.2; transition: translate .2s var(--ease); }
.link-arrow:hover .icon { translate: 3px 0; }
.link-arrow--light { color: var(--brand); }

/* ---------- Nav (vidrio esmerilado) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, .96); }
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  width: min(100% - 2 * var(--gutter), var(--container));
  height: 100%; margin-inline: auto;
}
.nav__logo img { width: auto; height: 28px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .875rem; letter-spacing: 0; }
.nav__links a { color: var(--text); opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
  font-size: 22px;
}

@media (max-width: 1000px) {
  .nav__logo img { height: 24px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: #fff; /* sólido: un backdrop-filter anidado en el del nav no funciona */
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .18);
    font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  }
  .nav__links a { padding: 12px 0; opacity: 1; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .nav[data-open] .nav__links { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title {
  max-width: 15ch;
  font-size: clamp(2.75rem, 1.2rem + 6vw, 5.75rem);
  letter-spacing: -0.04em; line-height: 1.02;
}
.hero__lead {
  max-width: 36ch; margin-top: 24px;
  font-size: clamp(1.1875rem, 1rem + .8vw, 1.5rem);
  line-height: 1.38; letter-spacing: -0.02em;
  color: var(--text-2);
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 28px; margin-top: 32px;
}

.try { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; }
.try label { font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.try input {
  width: min(300px, 100%); height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 980px;
  background: #fff; color: var(--text);
  font: inherit; font-size: 1.0625rem; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.try input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px rgba(57, 178, 170, .2); }

.hero__stage {
  position: relative;
  display: grid; place-items: center;
  margin-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
.hero__glow {
  position: absolute; inset: 5% 0 0;
  background: radial-gradient(45% 45% at 50% 45%, rgba(57, 178, 170, .28), transparent 70%);
  pointer-events: none;
}

/* Teléfono */
.phone {
  position: relative;
  width: min(300px, 76vw); aspect-ratio: 9 / 19.2;
  padding: 10px; border-radius: 54px;
  background: #1d1d1f;
  box-shadow:
    inset 0 0 0 2px #48484a,
    0 50px 100px -30px rgba(0, 0, 0, .35),
    0 30px 60px -30px rgba(31, 127, 120, .4);
}
.phone__island {
  position: absolute; top: 20px; left: 50%; translate: -50% 0; z-index: 2;
  width: 88px; height: 26px; border-radius: 20px; background: #000;
}
.phone__screen {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  border-radius: 44px; background: #efeae2;
}
.chat__header {
  display: flex; align-items: center; gap: 10px;
  padding: 50px 14px 10px;
  background: #f7f7f7; border-bottom: 1px solid rgba(0, 0, 0, .06);
  text-align: left;
}
.chat__avatar {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: 0;
}
.chat__who { display: flex; flex-direction: column; font-size: .875rem; line-height: 1.2; letter-spacing: -0.01em; }
.chat__who small { font-size: .6875rem; color: #667781; }
.chat__body {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 10px; overflow: hidden;
  font-size: .8125rem; line-height: 1.35; letter-spacing: -0.005em;
  text-align: left;
}
.msg {
  align-self: flex-start; max-width: 86%;
  padding: 7px 9px 6px 10px;
  border-radius: 4px 12px 12px 12px;
  background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.msg time { float: right; margin: 5px 0 -3px 10px; font-size: .625rem; color: #667781; }
.msg--out { align-self: flex-end; border-radius: 12px 4px 12px 12px; background: #d9fdd3; }
.ticks { color: #53bdeb; letter-spacing: -2px; }
.msg--video { width: 78%; padding: 4px; }
.msg__frame {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5; padding: 14px 14px 26px;
  border-radius: 9px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, #5fd1c8, transparent 60%),
    linear-gradient(160deg, #1f7f78, #0b2f2c);
  color: #fff;
}
.msg__label {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 7px; border-radius: 99px;
  background: rgba(255, 255, 255, .18);
  font-size: .5625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.msg__title { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.msg__play {
  position: absolute; top: 45%; left: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--brand-ink);
}
.msg__play .icon { width: 18px; height: 18px; margin-left: 3px; }
.msg__dur { position: absolute; right: 10px; bottom: 9px; font-size: .625rem; opacity: .85; }

[data-name] { border-radius: 4px; }
[data-name].is-flash { animation: flash .7s var(--ease-out); }
@keyframes flash { from { background: rgba(57, 178, 170, .45); } }

@media (prefers-reduced-motion: no-preference) {
  .chat__body.is-playing .msg {
    animation: msg-in .55s var(--ease-out) both;
    animation-delay: calc(var(--i) * .75s + .4s);
  }
}
@keyframes msg-in { from { opacity: 0; translate: 0 10px; scale: .96; } }

/* Chips flotantes */
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .04);
  font-size: .8125rem; line-height: 1.3; letter-spacing: 0; text-align: left;
  color: var(--text-2);
}
.chip strong { font-weight: 600; color: var(--text); }
.chip__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-ink); color: #fff;
}
.chip__icon .icon { width: 18px; height: 18px; }
.chip--a { top: 12%; left: calc(50% - 370px); }
.chip--b { top: 40%; left: calc(50% + 180px); }
.chip--c { top: 66%; left: calc(50% - 350px); }

@media (prefers-reduced-motion: no-preference) {
  .chip { animation: float 7s ease-in-out infinite; }
  .chip--b { animation-delay: -2.3s; }
  .chip--c { animation-delay: -4.6s; }
}
@keyframes float { 50% { translate: 0 -10px; } }
@media (max-width: 1199px) { .chip { display: none; } }

/* Escritorio: copy a la izquierda, producto a la derecha, ambos en el primer pantallazo */
@media (min-width: 1024px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center; column-gap: 40px;
    width: min(100% - 2 * var(--gutter), var(--container));
    min-height: calc(100svh - var(--nav-h));
    margin-inline: auto; padding-block: 48px;
    overflow: visible;
  }
  .hero__copy { width: auto; margin: 0; align-items: flex-start; text-align: left; }
  .hero__title { max-width: 12ch; font-size: clamp(3.5rem, 1rem + 4.2vw, 5rem); }
  .hero__actions { justify-content: flex-start; }
  .try { align-items: flex-start; }
  .try input { text-align: left; }
  .hero__stage { margin-top: 0; padding-bottom: 0; }
  .phone { width: min(300px, calc((100svh - var(--nav-h) - 120px) * 9 / 19.2)); min-width: 250px; }
  .chip--a { top: 12%; left: calc(50% - 305px); }
  .chip--b { top: 44%; left: calc(50% + 110px); }
  .chip--c { top: 72%; left: calc(50% - 280px); }
}

/* ---------- Logos (marquesina) ---------- */
.logos { padding: 8px 0 clamp(56px, 7vw, 96px); }
.logos__title {
  margin-bottom: 28px;
  font-size: .9375rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4;
  text-align: center; color: var(--text-2);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
/* Logos blancos con alpha → negros monocromos. Tamaño óptico: misma área
   para todos (alto = k / √ratio), así un logo cuadrado no queda diminuto
   al lado de uno apaisado. --r viene inline en cada <img>. */
.marquee__list { --logo-k: 60px; }
.marquee__list img {
  width: auto; height: 34px;
  height: calc(var(--logo-k) / sqrt(var(--r, 4)));
  filter: brightness(0); opacity: .5;
  transition: opacity .3s;
}
.marquee__list img:hover { opacity: .85; }
@media (max-width: 734px) { .marquee__list { --logo-k: 50px; } }

/* Sin animación (sin JS o movimiento reducido): grilla centrada */
.marquee:has(.marquee__track:not(.is-animated)) { -webkit-mask-image: none; mask-image: none; }
.marquee__track:not(.is-animated) { width: auto; }
.marquee__track:not(.is-animated) .marquee__list {
  flex-wrap: wrap; justify-content: center;
  gap: 28px 48px; padding: 0 var(--gutter);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track.is-animated { animation: marquee 50s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
h1, h2, .hero--cinema h1 { font-family: var(--font-display); }
.eyebrow, .case__kicker, .logos__title { font-family: var(--font-meta); }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark .section__lead { color: var(--text-dark-2); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 36px 32px 40px; border-radius: var(--radius-lg); background: var(--bg-gray); }
.step__num { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }
.step__icon { display: block; width: 40px; height: 40px; margin: 40px 0 20px; stroke-width: 1.5; color: var(--brand-ink); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); }

/* ---------- Plataforma (dark) ---------- */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9; margin-bottom: 20px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #111;
}
.media-frame video { width: 100%; height: 100%; object-fit: cover; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; flex-direction: column;
  min-height: 240px; padding: 32px;
  border-radius: var(--radius-lg); background: var(--tile-dark);
}
.tile--wide { grid-column: span 2; }
.tile__icon { width: 36px; height: 36px; stroke-width: 1.5; color: var(--brand); }
.tile h3 { margin-top: auto; padding-top: 32px; margin-bottom: 8px; }
.tile--wide h3 { font-size: 1.75rem; }
.tile p { color: var(--text-dark-2); }
.tile .link-arrow { margin-top: 16px; }

/* ---------- Casos ---------- */
.filters {
  display: inline-flex; gap: 4px;
  max-width: 100%; margin-bottom: 40px; padding: 4px;
  border-radius: 980px; background: #e8e8ed;
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex-shrink: 0;
  padding: 8px 18px; border: 0; border-radius: 980px;
  background: transparent; cursor: pointer;
  font-size: .9375rem; font-weight: 500; color: var(--text);
  transition: background-color .2s, box-shadow .2s;
}
.filters button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.case {
  position: relative; grid-column: span 3;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .22); }
.case:has(.case__open:focus-visible) { outline: 2px solid var(--brand-ink); outline-offset: 4px; }
.case--featured { grid-column: span 6; }
.case__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case--featured .case__img { aspect-ratio: 16 / 9; }
.case__body {
  flex: 1;
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 6px;
  align-content: start;
  padding: 22px 22px 22px 24px;
}
.case__body > :not(.case__open) { grid-column: 1; }
.case__kicker { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.case__title { font-size: 1.25rem; }
.case--featured .case__title { font-size: 1.75rem; }
.case__metric { font-size: .9375rem; line-height: 1.4; color: var(--text-2); }
.case__metric strong { font-weight: 700; color: var(--text); }
.case--featured .case__metric { font-size: 1.0625rem; }
.case--featured .case__metric strong { color: var(--brand-ink); }
.case__open {
  grid-column: 2; grid-row: 1 / span 3; align-self: end;
  display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--text); color: #fff; cursor: pointer;
  transition: background-color .3s;
}
.case__open:focus-visible { outline: none; }
.case__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case__open .icon { width: 18px; height: 18px; stroke-width: 2.2; transition: rotate .3s var(--ease-out); }
.case:hover .case__open { background: var(--brand-ink); }
.case:hover .case__open .icon { rotate: 90deg; }

::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }

/* ---------- Modal ---------- */
.modal {
  width: min(100% - 32px, 880px);
  max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff; color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .45);

  opacity: 0; translate: 0 24px; scale: .98;
  transition:
    opacity .35s var(--ease-out),
    translate .35s var(--ease-out),
    scale .35s var(--ease-out),
    display .35s allow-discrete,
    overlay .35s allow-discrete;
}
.modal[open] { opacity: 1; translate: 0 0; scale: 1; }
@starting-style {
  .modal[open] { opacity: 0; translate: 0 24px; scale: .98; }
}
.modal::backdrop {
  background-color: rgba(0, 0, 0, 0);
  transition:
    background-color .35s var(--ease-out),
    display .35s allow-discrete,
    overlay .35s allow-discrete;
}
.modal[open]::backdrop {
  background-color: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@starting-style {
  .modal[open]::backdrop { background-color: rgba(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .modal { translate: none; scale: none; transition-duration: .1s; }
  @starting-style { .modal[open] { translate: none; scale: none; } }
}

.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(232, 232, 237, .92); color: var(--text); cursor: pointer;
}
.modal__close .icon { width: 18px; height: 18px; stroke-width: 2; }
.modal__close:hover { background: #dcdce1; }
.modal__content {
  max-height: calc(100dvh - 48px);
  padding: clamp(28px, 5vw, 56px);
  overflow-y: auto; overscroll-behavior: contain;
}
.modal__content .eyebrow { margin-bottom: 8px; font-size: 1rem; }
.modal__content h2 { margin-bottom: 28px; padding-right: 40px; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.modal__content > .btn { margin-top: 8px; }

.detail__media {
  aspect-ratio: 16 / 9; margin-bottom: 32px;
  border-radius: var(--radius-md); overflow: hidden; background: #000;
}
.detail__media iframe { display: block; width: 100%; height: 100%; border: 0; }
.detail__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  margin-bottom: 32px;
}
.detail__facts dt {
  margin-bottom: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-ink);
}
.detail__facts dd { font-size: 1.0625rem; line-height: 1.45; }
.detail__quote { margin: 0 0 8px; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); }
.detail__quote p { font-size: 1.25rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.detail__quote footer { margin-top: 12px; font-size: .9375rem; color: var(--text-2); }
.detail__quote footer strong { color: var(--text); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg); background: var(--bg-gray);
}
.quote blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600;
  line-height: 1.3; letter-spacing: -0.025em;
}
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .9375rem; }
.quote figcaption span { color: var(--text-2); }

/* ---------- Por qué personalizar ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 40px 32px; border-radius: var(--radius-lg); background: #fff; text-align: center; }
.stat__num {
  margin-bottom: 16px;
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #1f7f78, #2a9d95);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat figcaption { font-size: 1rem; line-height: 1.45; color: var(--text-2); }
.stat cite { display: block; margin-top: 12px; font-size: .8125rem; font-style: normal; font-weight: 600; color: var(--text); }

/* ---------- Nosotros ---------- */
.media-frame--reel { margin-bottom: clamp(48px, 6vw, 80px); }
.reel-play {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border: 0; border-radius: 980px;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: #fff; font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s;
}
.reel-play:hover { background: rgba(255, 255, 255, .3); }
.reel-play__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: #000;
}
.reel-play__icon .icon { width: 16px; height: 16px; margin-left: 2px; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.numbers div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.numbers dd { font-size: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.numbers dt { margin-top: 10px; font-size: .9375rem; line-height: 1.35; color: var(--text-dark-2); }

.countries {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.countries li {
  padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 980px;
  font-size: .875rem; color: var(--text-dark-2);
}

.manifesto { max-width: 900px; margin-inline: auto; text-align: center; }
.manifesto blockquote {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance;
}
.manifesto figcaption { margin-top: 20px; color: var(--text-dark-2); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-gray); }
.service__icon { width: 32px; height: 32px; margin-bottom: 24px; stroke-width: 1.5; color: var(--brand-ink); }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--text-2); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__head h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.rotator { display: inline-block; color: var(--brand-ink); }
@media (prefers-reduced-motion: no-preference) {
  .rotator.is-changing { animation: rotate-in .5s var(--ease-out); }
}
@keyframes rotate-in { from { opacity: 0; translate: 0 .3em; filter: blur(4px); } }

.contact__alt { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.contact__alt a { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 500; }
.contact__alt .icon { width: 20px; height: 20px; }

.form {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; }
.field__opt { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--bg-gray); color: var(--text);
  font: inherit; font-size: 1.0625rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--brand-ink); box-shadow: 0 0 0 4px rgba(57, 178, 170, .18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.4em; font-size: .9375rem; text-align: center; }
.form__status.is-ok { color: var(--brand-ink); }
.form__status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { padding: 0 0 48px; background: var(--bg-gray); font-size: .75rem; color: var(--text-2); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.footer__inner img { width: auto; height: 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { font-size: .8125rem; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }

/* ---------- WhatsApp flotante ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab .icon { width: 26px; height: 26px; stroke-width: 2; }

/* ---------- Aparición al hacer scroll (mejora progresiva) ---------- */
@supports (animation-timeline: view()) and (animation-range: 0% 100%) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear forwards;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 48px; scale: .98; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .case { grid-column: span 6; }
  .case--featured { grid-column: span 12; }
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .steps, .bento, .quotes, .stats, .contact { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 200px; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 640px) {
  .case, .case--featured { grid-column: span 12; }
  .services, .form__row { grid-template-columns: 1fr; }
  .reel-play { left: 12px; bottom: 12px; padding-right: 16px; font-size: .9375rem; }
  .reel-play__icon { width: 34px; height: 34px; }
  .modal__content h2 { padding-right: 32px; }
}

/* ---------- Dark-first evolution: preserve the agency, elevate its work ---------- */
html, body { overflow-x: clip; }
h1, h2, h3 { min-width: 0; overflow-wrap: anywhere; font-style: normal; }
.btn, .link-arrow, .nav__links a, .footer__links a { white-space: nowrap; }
.btn--primary { color: var(--button-ink); }
.btn--secondary, .filters, .modal__close { background: var(--surface-raised); }
.btn--secondary:hover, .modal__close:hover { background: var(--line); }
.skip-link { color: var(--bg); }
.nav { background: var(--nav-glass); border-color: var(--line); }
.nav__inner { gap: var(--space-md); }
.nav__logo img { height: 30px; }
.nav__links { gap: var(--space-md); }
.nav__cta { background: var(--text); color: var(--bg); }
.nav__cta:hover { background: var(--brand); }
.gradient-text, .gradient-text--ink, .stat__num { background: none; color: var(--brand); }
.hero--cinema {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  width: 100%; margin: 0; min-height: min(880px, calc(100svh - var(--nav-h)));
  padding: clamp(120px, 20vh, 220px) 0 84px; overflow: clip; background: var(--bg);
}
.hero__film, .hero__film::after { position: absolute; inset: 0; }
.hero__film { z-index: -1; }
.hero__film::after { content: ""; background: var(--film-shade); pointer-events: none; }
.hero__film video { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__content { position: relative; }
.hero__signature { margin-bottom: var(--space-lg); font-size: 1rem; letter-spacing: .08em; font-weight: 500; }
.hero--cinema h1 { font-family: var(--font-display); font-size: clamp(2.65rem, 9.5vw, 8.8rem); line-height: .98; letter-spacing: -.065em; font-weight: 600; max-width: 100%; text-wrap: initial; }
.hero--cinema h1 span { color: var(--text); }
.hero__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); }
.hero__footer > p { font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--text); }
.hero--cinema .hero__actions { margin: 0; gap: var(--space-md); justify-content: flex-start; }
.hero--cinema .link-arrow { color: var(--text); }
.hero--cinema .btn--primary { background: var(--text); color: var(--bg); }
.hero--cinema .btn--primary:hover { background: var(--brand); }
.video-toggle { position: absolute; right: 20px; top: 20px; z-index: 3; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--control-bg); color: var(--text); cursor: pointer; font: inherit; font-size: .8125rem; white-space: nowrap; }
.video-toggle:hover { border-color: var(--brand); }
.hero__pause { top: 24px; right: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.logos { padding: 48px 0 64px; border-bottom: 1px solid var(--line); }
.marquee__list img { filter: none; opacity: .72; }
.marquee__track.is-animated { animation: none; width: auto; }
.marquee__track.is-animated .marquee__list { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); gap: 32px 56px; }
.marquee__list[aria-hidden="true"] { display: none; }
.marquee { mask-image: none; -webkit-mask-image: none; }
.case, .modal, .stat, .form { background: var(--tile-dark); }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--button-ink); }
.case__open { background: var(--surface-raised); color: var(--text); }
.case:hover .case__open { color: var(--button-ink); }
.case:hover { transform: none; box-shadow: none; }
.case:hover .case__open .icon { rotate: none; }
.cases { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.case { border-radius: 8px; }
.case__body { padding: 28px 24px; }
.case--featured .case__title { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.case--featured .case__img { aspect-ratio: 16 / 10; }
.section__head { max-width: 900px; }
.section__head .eyebrow { font-size: .9375rem; }
#nosotros { border-block: 1px solid var(--line); }
#nosotros .section__head--center { margin-inline: 0; text-align: left; }
#nosotros .section__lead { margin-inline: 0; }
.services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.service { border-radius: 0; background: none; border-top: 1px solid var(--line); padding: 32px 0; }
.service__icon { width: 24px; height: 24px; margin-bottom: 20px; }
.service h3 { font-size: 1.5rem; }
.service p { max-width: 48ch; }
.experience { background: var(--bg-gray); border-block: 1px solid var(--line); }
.experience__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.experience .try { align-items: flex-start; margin: 32px 0; }
.try input { background: var(--bg); border-color: var(--line); text-align: left; max-width: 100%; }
.try input:focus { box-shadow: 0 0 0 4px var(--focus-glow); }
.experience__note { color: var(--text-2); font-size: .8125rem; }
.experience__preview { min-width: 0; padding: clamp(24px, 5vw, 64px); background: var(--preview-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.experience__caption { color: var(--text-2); font-size: .9375rem; }
.experience__greeting { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; margin: 56px 0 24px; overflow-wrap: anywhere; }
.experience__greeting span { color: var(--brand); }
.experience__message { font-size: 1.125rem; color: var(--text-2); }
.experience__delivery { display: flex; align-items: center; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .8125rem; }
.field input, .field textarea { border-color: var(--line); }
.field input:focus, .field textarea:focus { background: var(--bg); box-shadow: 0 0 0 4px var(--focus-glow); }
.contact__alt a { overflow-wrap: anywhere; min-width: 0; }
.footer { padding-top: 24px; }
.reveal { animation: none; }
.rotator.is-changing { animation: none; }
@media (max-width: 1000px) { .hero__footer { align-items: flex-start; flex-direction: column; } }
@media (max-width: 1000px) {
  .nav__links { background: var(--bg); border-color: var(--line); }
  .nav__links a { border-color: var(--line); }
  .nav__logo img { height: 24px; }
}
@media (max-width: 820px) {
  .hero--cinema { min-height: 740px; padding-top: 160px; padding-bottom: 56px; }
  .experience__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero--cinema { min-height: min(780px, calc(100svh - var(--nav-h))); padding-top: 116px; padding-bottom: 40px; }
  .hero__signature { margin-bottom: 24px; font-size: .875rem; }
  .hero__footer { margin-top: 32px; padding-top: 24px; gap: 24px; }
  .hero--cinema .hero__actions { gap: 20px; flex-wrap: wrap; }
  .hero--cinema .btn, .hero--cinema .link-arrow { font-size: .9375rem; }
  .nav__inner { gap: 12px; }
  .nav__logo img { height: 22px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .case__body { padding: 24px 20px; }
  .contact__alt a { font-size: .875rem; }
  .form { padding: 24px 16px; }
  .form .btn { font-size: .875rem; padding-inline: 12px; }
}

/* Project cards: full-width, single-line names and aligned content bands.
   A shared scale per card size keeps typography consistent; never truncate names. */
.case { container-type: inline-size; }
.case__body {
  min-width: 0;
  min-height: 224px;
  grid-template-columns: minmax(0, 1fr) 36px;
  grid-template-rows: 2.8em auto minmax(84px, 1fr);
  align-content: stretch;
}
.case__body > .case__kicker,
.case__body > .case__title { grid-column: 1 / -1; }
.case__kicker { grid-row: 1; line-height: 1.4; }
.case__title {
  grid-row: 2;
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: clamp(1rem, 6.5cqw, 1.25rem);
  line-height: 1.2;
}
.case--featured .case__title { font-size: clamp(1rem, 4.9cqw, 2rem); }
.case__metric { grid-row: 3; align-self: start; }
.case__open { grid-row: 3; align-self: end; }
@media (max-width: 1200px) and (min-width: 641px) {
  .case { grid-column: span 6; }
  .case--featured { grid-column: span 12; }
}

/* Preserve the original audience rotation without shifting the contact layout. */
.contact__head .rotator { display: block; white-space: nowrap; font-size: .9em; line-height: 1.2; min-height: 1.2em; }
.rotator-toggle { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 4px 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: .8125rem; cursor: pointer; }
.rotator-toggle:hover, .rotator-toggle:active { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .rotator.is-changing { animation: audience-fade .35s var(--ease-out); }
}
@keyframes audience-fade { from { opacity: .3; } to { opacity: 1; } }

/* ---------- Sistemas: plataforma a medida (Instituto Cultura) + suite Re!MediaTools con cubos ---------- */
.software-section { border-top: 1px solid var(--line); }
.system-case {
  margin-bottom: clamp(64px, 9vw, 120px); padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--tile-dark);
}
.system-case__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: var(--space-lg) clamp(32px, 6vw, 96px); }
.system-case__head img { width: min(100%, 280px); height: auto; }
.system-case h3 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.system-case__intro { margin: 16px 0 var(--space-md); color: var(--text-2); font-size: clamp(1.0625rem, 1.8vw, 1.375rem); line-height: 1.4; max-width: 44ch; }
.system-case__features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px);
  margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none;
}
.system-case__features li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.system-case__features strong { font-size: 1.0625rem; font-weight: 600; }
.system-case__features span { color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.software-feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end; gap: var(--space-lg) clamp(32px, 6vw, 96px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.software-label { margin-bottom: 12px; color: var(--brand); font-size: .9375rem; font-weight: 600; }
.software-brand { font-size: clamp(2.5rem, 6.5vw, 5.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.software-feature__intro { margin-top: 16px; color: var(--text-2); font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.35; }
.software-feature__description { color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; max-width: 52ch; }
.software-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px var(--space-md); margin-top: var(--space-md); }

.software-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.software-tools a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 16px; height: 100%; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--tile-dark);
  color: var(--text); text-decoration: none; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.software-tools a:hover { border-color: var(--brand); background: var(--surface-raised); }
.software-tools img { grid-row: 1 / 3; width: 64px; height: 64px; object-fit: contain; }
.software-tools strong { align-self: end; font-size: 1.125rem; font-weight: 600; }
.software-tools span { grid-column: 2; align-self: start; color: var(--text-2); font-size: .9375rem; line-height: 1.4; }
.software-tools .icon { grid-column: 3; grid-row: 1 / 3; color: var(--text-2); transition: translate .2s var(--ease-out); }
.software-tools a:hover .icon { color: var(--brand); translate: 3px 0; }

.software-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(56px, 8vw, 104px); }
.software-capabilities article { padding-top: 24px; border-top: 1px solid var(--line); }
.software-capabilities h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.software-capabilities p { color: var(--text-2); max-width: 36ch; }

@media (max-width: 1000px) {
  .software-feature { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .software-tools { grid-template-columns: minmax(0, 1fr); }
  .system-case__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 734px) {
  .system-case__head { grid-template-columns: minmax(0, 1fr); }
  .system-case__head img { width: 180px; }
  .system-case__features { grid-template-columns: minmax(0, 1fr); }
  .software-capabilities { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- Página Re!MediaTools (remediatools.html) ---------- */
.tools-hero { padding-top: clamp(48px, 7vw, 96px); }
.tools-back { display: inline-block; margin-bottom: var(--space-xl); color: var(--text-2); font-size: .9375rem; text-decoration: none; }
.tools-back:hover { color: var(--brand); }
.tools-hero h1 { font-size: clamp(3rem, 11vw, 9rem); line-height: .95; letter-spacing: -.065em; font-weight: 600; }
.tools-hero__intro {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end;
  gap: var(--space-lg) clamp(32px, 6vw, 96px); margin: var(--space-xl) 0 clamp(48px, 7vw, 88px);
}
.tools-hero__intro h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.tools-hero__intro p { color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; max-width: 52ch; margin-bottom: var(--space-md); }

.tools-catalog { border-top: 1px solid var(--line); }
.tool-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-lg) clamp(32px, 6vw, 96px);
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line);
}
.tool-detail__meta img { width: 96px; height: 96px; margin-bottom: var(--space-md); object-fit: contain; }
.tool-detail h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.04em; font-weight: 600; }
.tool-platform { margin-top: 8px; color: var(--text-2); font-size: .875rem; }
.tool-detail__lead { margin-bottom: var(--space-md); font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
.tool-detail p { color: var(--text-2); line-height: 1.6; max-width: 60ch; }
.tool-detail .tool-detail__lead { color: var(--text); }
.tool-detail ul { display: grid; gap: 10px; margin: var(--space-md) 0; padding: 0; list-style: none; }
.tool-detail li { position: relative; padding-left: 28px; color: var(--text); }
.tool-detail li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); rotate: -45deg; }
.tool-note { padding: 14px 16px; border-left: 2px solid var(--line); background: var(--tile-dark); border-radius: 0 8px 8px 0; font-size: .9375rem; }
.tools-availability { padding-top: var(--space-xl); border-top: 1px solid var(--line); color: var(--text-2); font-size: .875rem; max-width: 72ch; }
.tools-contact { background: var(--bg-gray); border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .tools-hero__intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 734px) {
  .tool-detail { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .tool-detail__meta { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .tool-detail__meta img { grid-row: 1 / 4; width: 64px; height: 64px; margin: 0; }
}


/* =====================================================================
   Minimal Tech Layer (Unificado de minimal.css)
   ===================================================================== */
/* ---------- Tipografía: Inter grande y ajustada ---------- */
h1, h2 { font-weight: 700; letter-spacing: -.045em; }
h2 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem); line-height: 1.02; }
.section__head h2 { text-wrap: balance; }
h2 span:not(.visually-hidden):not(.rotator), .hero--cinema h1 span:not(.word-mask) .word, .gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; color: var(--brand); }
.section__lead { color: var(--text-2); font-size: clamp(1.0625rem, 1.2vw, 1.25rem); }
.btn--primary { background: var(--text); color: #000; }
.btn--primary:hover { background: var(--brand); color: var(--button-ink); }
.btn--glass { border: 1px solid rgb(255 255 255 / .22); background: rgb(0 0 0 / .25); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { border-color: rgb(255 255 255 / .5); }
.link-arrow { color: var(--brand); }

/* ---------- Nav de vidrio ---------- */
.nav { background: rgb(0 0 0 / .66); border-color: var(--line); }
@media (min-width: 1001px) {
  .nav__links { padding: 5px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
  .nav__links a { padding: 7px 14px; border-radius: 999px; opacity: 1; color: var(--text-2); }
  .nav__links a:hover { color: var(--text); background: var(--glass); }
}
.nav__cta { background: var(--text); color: #000; }
.nav__cta:hover { background: var(--brand); color: var(--button-ink); }

/* ---------- Hero ---------- */
.hero--cinema { align-items: center; min-height: calc(100svh - var(--nav-h)); padding: 120px 0 72px; text-align: center; }
.hero__film { overflow: hidden; }
/* Puente cromático: teal ambiental + oscurecido, sin paleta púrpura aparte. */
.hero__film::after {
  background:
    radial-gradient(70% 60% at 50% 40%, rgb(105 206 197 / .18), transparent 55%),
    radial-gradient(80% 70% at 50% 45%, rgb(0 0 0 / .2), rgb(0 0 0 / .78)),
    linear-gradient(0deg, var(--bg), transparent 40%);
}
.hero--cinema {
  background: linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero__signature { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; color: var(--text-2); }
.hero--cinema h1 { font-size: clamp(3.25rem, 11vw, 10.5rem); line-height: .94; letter-spacing: -.055em; font-weight: 700; }
.hero--cinema h1 span:not(.word-mask):not(.word) { color: inherit; }
.hero__footer { flex-direction: column; align-items: center; gap: 28px; border-top: 0; padding-top: 0; margin-top: 32px; }
.hero__footer > p { max-width: 50ch; margin-inline: auto; color: var(--text-2); font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.45; }
.hero__footer > p strong { color: var(--text); font-weight: 600; }
.hero--cinema .hero__actions { justify-content: center; }
.hero--cinema .btn--primary { background: var(--text); color: #000; }
.hero--cinema .btn--primary:hover { background: var(--brand); color: var(--button-ink); }
.is-split .word { display: inline-block; }
/* Título de vidrio: desenfoque nativo (backdrop-filter) recortado con la forma de las letras
   (mask-image generada por JS) + canvas fijo con tinte y canto de luz. Sin redibujar el video. */
.hero--cinema h1 { position: relative; }
/* Un canvas absoluto no se estira con inset (usa su tamaño intrínseco 300×150): ancho y alto explícitos. */
/* Cada palabra lleva su vidrio adentro: al escalar la palabra con el scroll, el vidrio la acompaña. */
.hero--cinema h1 .word { position: relative; }
/* Ranura de cada palabra: recorta la entrada (la palabra sube desde abajo). overflow: clip (no hidden)
   conserva la línea base del texto y no corta el desenfoque del vidrio. El padding deja lugar a descendentes y al vidrio. */
.hero--cinema h1 .word-mask { display: inline-block; overflow: clip; padding: .2em .1em .26em; margin: -.2em -.1em -.26em; transform-origin: 50% 55%; }
.glass-title, .glass-title__blur { position: absolute; top: -.14em; left: -.06em; width: calc(100% + .12em); height: calc(100% + .28em);
  pointer-events: none; opacity: 0; }
.glass-title { z-index: 1; }
.glass-title { filter: drop-shadow(0 0 1px rgb(0 0 0 / .35)); }
.glass-title__blur {
  -webkit-backdrop-filter: blur(14px) saturate(170%) brightness(1.6); backdrop-filter: blur(14px) saturate(170%) brightness(1.6);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.glass-title.is-on, .glass-title__blur.is-on { opacity: 1; }
.hero--cinema h1.is-glass .word { color: transparent; -webkit-text-fill-color: transparent; background: none; }

/* ---------- Logos ---------- */
.logos { border-color: var(--line); }
.logos__title { color: var(--text-2); font-size: .875rem; }
.marquee__list img { opacity: .55; transition: opacity .3s; }
.marquee__list img:hover { opacity: 1; }

/* ---------- Manifiesto ---------- */
.statement {
  padding: clamp(56px, 9vw, 120px) 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(105, 206, 197, .08), transparent 80%);
  overflow-x: clip;
}
.statement p {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.045em;
}
.statement .word,
[data-scroll="words-dock"] .word {
  display: inline-block;
  transform-origin: center left;
  will-change: transform, opacity, filter;
}

#casos {
  background: radial-gradient(70% 50% at 85% 20%, rgba(105, 206, 197, .05), transparent 75%), var(--bg-gray);
}
#sistemas {
  background: radial-gradient(60% 40% at 50% 0%, rgba(105, 206, 197, .05), transparent 70%), var(--bg);
}
#contacto {
  background: radial-gradient(60% 45% at 20% 40%, rgba(105, 206, 197, .05), transparent 70%), var(--bg-gray);
}

/* ---------- Proyectos: carrusel limpio ---------- */
.filters { background: var(--glass); border: 1px solid var(--line); }
.filters button[aria-pressed="true"] { background: var(--text); color: #000; }
.cases[data-cases] {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 28px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.cases[data-cases]::-webkit-scrollbar { display: none; }
/* Cards compactas: más angostas, imagen más baja, descripción en 2 líneas como máximo. */
.cases[data-cases] { gap: 14px; }
.cases[data-cases] .case, .cases[data-cases] .case--featured {
  flex: 0 0 min(82vw, 300px); grid-column: auto; scroll-snap-align: start;
  border-radius: 20px; background: var(--tile-dark); border: 1px solid var(--line);
  transition: border-color .4s var(--ease-apple), translate .5s var(--ease-apple);
}
.case:hover, .case:focus-within { border-color: rgb(255 255 255 / .22); translate: 0 -4px; }
.case__img, .case--featured .case__img { aspect-ratio: 3 / 2; transition: scale .8s var(--ease-apple); }
.case:hover .case__img { scale: 1.04; }
.case__body, .case--featured .case__body { min-height: 0; padding: 14px 14px 16px; grid-template-rows: auto auto 1fr; row-gap: 4px; }
.case__kicker { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .6875rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-2); }
.case__title, .case--featured .case__title { font-size: clamp(1rem, 5.4cqw, 1.125rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.case__metric, .case--featured .case__metric { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.8em; font-size: .875rem; line-height: 1.4; color: var(--text-2); }
.case__open { width: 32px; height: 32px; }
.case__metric strong { color: var(--text); }
.case__open { background: var(--surface-raised); }

/* Desktop: se ven todos los casos. Destacados (RE/MAX, Lenovo) a dos columnas en la primera fila. */
@media (min-width: 1000px) {
  .cases[data-cases] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
  .cases[data-cases] .case, .cases[data-cases] .case--featured { flex: none; }
  .cases[data-cases] .case--featured { grid-column: span 2; }
  .cases[data-cases] .case--featured .case__img { aspect-ratio: 21 / 9; }
  .cases[data-cases] .case:nth-child(4n + 2) { --k: 1; }
  .cases[data-cases] .case:nth-child(4n + 3) { --k: 2; }
  .cases[data-cases] .case:nth-child(4n + 4) { --k: 3; }
}

/* ---------- Experiencias: demo + pasos + plataforma ---------- */
.chapter-xp { border-block: 1px solid var(--line); }
.chapter-xp .experience__layout { align-items: stretch; margin-bottom: clamp(56px, 7vw, 96px); }
.chapter-xp .try { margin-top: 0; }
.chapter-xp .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 32px 0; padding: 0; list-style: none; }
.chapter-xp .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-radius: 0; background: none; border-top: 1px solid var(--line); }
.chapter-xp .step__num { color: var(--brand); padding-top: 2px; }
.chapter-xp .step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 2px; }
.chapter-xp .step p { color: var(--text-2); font-size: .9375rem; }
/* ---------- Experiencia Preview (Placa de Video Dinámica) ---------- */
.experience__preview {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .12);
  background: radial-gradient(120% 90% at 0% 0%, rgb(105 206 197 / .2), transparent 55%),
              linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .5) 70%),
              var(--tile-dark);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, .7), 0 0 30px rgba(105, 206, 197, .12);
}
.experience__preview::before {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(105, 206, 197, .85) 65%, rgba(255, 255, 255, .2) 65%);
  box-shadow: 0 0 8px rgba(105, 206, 197, .5);
}
.experience__caption {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.experience__caption::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px var(--brand);
}
.experience__greeting { font-size: clamp(3rem, 6.5vw, 5.75rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.experience__greeting [data-name] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.platform { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.platform .media-frame { margin: 0; border-radius: 24px; border: 1px solid var(--line); }
.platform__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.platform__features li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.platform__features .icon { grid-row: 1 / 3; width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.platform__features strong { font-size: .9375rem; font-weight: 600; }
.platform__features span { color: var(--text-2); font-size: .875rem; }
.platform__features a { color: var(--brand); }
@media (max-width: 900px) { .platform { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .platform__features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sistemas ---------- */
.system-case {
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px;
  background: radial-gradient(120% 90% at 100% 0%, rgb(105 206 197 / .12), transparent 50%),
              linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .4)),
              var(--tile-dark);
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, .6);
  transition: border-color .35s var(--ease-apple), box-shadow .35s var(--ease-apple);
}
.system-case:hover {
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 20px 56px -10px rgba(0, 0, 0, .7), 0 0 30px rgba(105, 206, 197, .08);
}
.system-case h3 { letter-spacing: -.045em; }
.system-case__features li { transition: border-color .3s var(--ease-apple); }
.system-case__features li:hover { border-top-color: var(--brand); }
.system-case__features li:hover strong { color: var(--brand); }
.software-brand { white-space: nowrap; overflow-wrap: normal; font-size: clamp(2.6rem, 6.4vw, 5.5rem); letter-spacing: -.05em; }
.software-tools a {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), var(--tile-dark);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .4);
  transition: border-color .3s var(--ease-apple), translate .3s var(--ease-apple), box-shadow .3s var(--ease-apple);
}
.software-tools a:hover {
  border-color: var(--brand); translate: 0 -3px;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, .55), 0 0 20px rgba(105, 206, 197, .12);
}

/* ---------- Nosotros, servicios, testimonios, por qué ---------- */
#nosotros .section__head--center { text-align: left; margin-inline: 0; }
.media-frame--reel { border-radius: 28px; border: 1px solid var(--line); }
.numbers dd { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.service { transition: border-color .3s var(--ease-apple); }
.service:hover { border-top-color: var(--brand); }
.service__icon { color: var(--brand); transition: transform .3s var(--ease-apple), filter .3s var(--ease-apple); }
.service:hover .service__icon { filter: drop-shadow(0 0 8px var(--glow)); transform: scale(1.06); }
.quote, .stat {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01) 80%), var(--tile-dark);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, .5);
  transition: border-color .35s var(--ease-apple), translate .35s var(--ease-apple), box-shadow .35s var(--ease-apple);
}
.quote:hover, .stat:hover {
  border-color: rgba(105, 206, 197, .35); translate: 0 -3px;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, .6), 0 0 20px rgba(105, 206, 197, .08);
}
.stat__num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }

/* ---------- Contacto ---------- */
.contact__head h2 { font-size: clamp(2.4rem, 1.4rem + 3vw, 4.25rem); line-height: 1.02; }
.contact__head .rotator { color: var(--brand); }
.form {
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .5) 75%), var(--tile-dark);
  box-shadow: 0 16px 48px -10px rgba(0, 0, 0, .6);
}
.footer { border-top: 1px solid var(--line); background: var(--bg); }

/* =====================================================================
   Movimiento
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero: cada palabra sube desde abajo y pasa de borrosa a nítida. */
  /* Entrada: cada palabra sube desde su ranura. Sólo translate: opacidad o filtro romperían el vidrio.
     Arranca con is-ready (cuando el vidrio ya está listo): se ve directamente la forma final. */
  .hero--cinema h1.is-split:not(.is-ready) .word { translate: 0 115%; }
  .hero--cinema h1.is-ready .word { animation: word-up 1.15s var(--ease-apple) both; animation-delay: calc(var(--i) * 150ms); }
  @keyframes word-up { from { translate: 0 115%; } }
  .hero__signature, .hero__footer { animation: fade-up 1.1s var(--ease-apple) both; }
  .hero__signature { animation-delay: 60ms; }
  .hero__footer { animation-delay: 520ms; }
  @keyframes fade-up { from { opacity: 0; translate: 0 18px; } }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* El video del hero se encoge hasta una tarjeta redondeada al salir. */
    .hero__film { animation: film-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes film-out { to { scale: .84; border-radius: 40px; opacity: .35; } }
    /* Profundidad con el scroll: "Creamos" se aleja hacia el fondo y "Experiencias." viene hacia el espectador.
       Va en la ranura (.word-mask) y la entrada en la palabra: no se pisan.
       Sin animar opacidad: un ancestro con opacidad < 1 cortaría el desenfoque del vidrio. */
    .hero--cinema { view-timeline: --hero block; }
    .hero--cinema h1.is-split .word-mask { animation: depth-back linear both; animation-timeline: --hero; animation-range: exit 0% exit 80%; }
    .hero--cinema h1.is-split span:not(.word-mask) .word-mask { animation-name: depth-forward; }
    @keyframes depth-back { to { scale: .5; transform: translateY(-.35em); } }
    @keyframes depth-forward { to { scale: 2.4; transform: translateY(.12em); } }

    /* Títulos que se llenan de luz de izquierda a derecha al entrar. */
    .section__head h2, .contact__head h2 {
      background: linear-gradient(90deg, var(--text) 46%, #3a3a3c 54%) 100% 0 / 220% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      animation: title-fill linear both; animation-timeline: view(); animation-range: entry 20% cover 42%;
    }
    @keyframes title-fill { to { background-position: 0 0; } }

    /* Manifiesto: cinemática 3D docking palabra por palabra con el scroll.
       Las palabras viajan desde la izquierda con inercia física y masa (arrancan chicas,
       lejanas y con desenfoque óptico), aceleran y frenan suavemente con micro-overshoot. */
    .statement,
    [data-scroll="words-dock"] {
      view-timeline: --statement block;
    }
    .statement .word,
    [data-scroll="words-dock"] .word {
      opacity: .10;
      display: inline-block;
      transform-origin: center left;
      animation: word-dock linear both;
      animation-timeline: --statement;
      animation-range: cover calc(10% + var(--p, 0) * 48%) cover calc(30% + var(--p, 0) * 48%);
    }
    @keyframes word-dock {
      0% {
        opacity: .10;
        transform: translate3d(calc(-1 * clamp(24px, 3.5vw, 48px)), 8px, 0) scale(.72);
        filter: blur(5px);
      }
      70% {
        opacity: .96;
        /* Inercia física: micro-overshoot elástico al aproximarse */
        transform: translate3d(clamp(2px, 0.3vw, 4px), -1px, 0) scale(1.02);
        filter: blur(0px);
      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0px);
      }
    }

    /* ScrollPresets: motor de presets declarativos nativos (GPU compositor) */
    [data-scroll="dock-right"] {
      animation: sp-dock-right linear forwards;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes sp-dock-right {
      from { opacity: .15; transform: translate3d(clamp(24px, 4vw, 56px), 0, 0) scale(.78); filter: blur(4px); }
      to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0px); }
    }
    [data-scroll="dock-left"] {
      animation: sp-dock-left linear forwards;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes sp-dock-left {
      from { opacity: .15; transform: translate3d(calc(-1 * clamp(24px, 4vw, 56px)), 0, 0) scale(.78); filter: blur(4px); }
      to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0px); }
    }
    [data-scroll="fade-up"] {
      animation: sp-fade-up linear forwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes sp-fade-up {
      from { opacity: 0; transform: translate3d(0, 40px, 0); }
      to { opacity: 1; transform: translate3d(0, 0, 0); }
    }
    [data-scroll="zoom-in"] {
      animation: sp-zoom-in linear forwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes sp-zoom-in {
      from { opacity: .2; transform: scale(.88); }
      to { opacity: 1; transform: scale(1); }
    }
    [data-scroll="blur-in"] {
      animation: sp-blur-in linear forwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes sp-blur-in {
      from { opacity: .2; filter: blur(8px); }
      to { opacity: 1; filter: blur(0px); }
    }

    /* Bloques que aparecen al entrar en pantalla. .form se excluye para garantizar disponibilidad inmediata. */
    .system-case, .software-tools li, .software-capabilities article, .service, .quote, .stat, .step,
    .platform__features li, .numbers div, .media-frame, .experience__preview {
      animation: rise linear forwards; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
    @keyframes rise { from { opacity: 0; translate: 0 48px; } }

    /* Tarjetas del carrusel: crecen al entrar desde el costado. */
    @keyframes card-in { from { opacity: .35; scale: .9; } }
    @media (max-width: 999px) {
      .cases[data-cases] .case { animation: card-in linear forwards; animation-timeline: view(inline); animation-range: entry 0% entry 90%; }
    }
    /* Desktop: las cards "desfilan" al entrar, escalonadas por columna. */
    @media (min-width: 1000px) {
      .cases[data-cases] .case { animation: rise linear forwards; animation-timeline: view();
        animation-range: entry calc(var(--k, 0) * 8%) entry calc(40% + var(--k, 0) * 8%); }
    }
  }
}

/* =====================================================================
   Modal de contacto ("Hablemos"): compacto en desktop, hoja inferior en celular
   ===================================================================== */
/* Campos de al menos 16 px: con menos, Safari en iPhone hace zoom al tocarlos. */
.field input, .field textarea { font-size: max(16px, 1rem); }
.modal--contact { width: min(100% - 32px, 560px); border: 1px solid var(--line); border-radius: 28px; }
.modal--contact .modal__content { padding: clamp(28px, 4vw, 40px); }
.modal--contact h2 { margin-bottom: 10px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.modal--contact__lead { margin-bottom: 24px; color: var(--text-2); font-size: .9375rem; }
.modal--contact__lead a { color: var(--brand); }
.form--modal { padding: 0; border: 0; border-radius: 0; background: none; }
.form--modal textarea { min-height: 110px; }
@media (max-width: 640px) {
  .modal--contact {
    width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0;
    translate: 0 100%; scale: 1;
  }
  .modal--contact[open] { translate: 0 0; }
  @starting-style { .modal--contact[open] { translate: 0 100%; } }
  /* "Manijita" de hoja, como en las apps nativas. */
  .modal--contact::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; translate: -50% 0; border-radius: 4px; background: rgb(255 255 255 / .22); }
  .modal--contact .modal__content { max-height: 92dvh; padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); }
  .modal--contact .form__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .modal--contact, .modal--contact[open] { translate: none; }
  @starting-style { .modal--contact[open] { translate: none; } }
}

/* =====================================================================
   Privacidad: texto informativo en modal (desde el pie y los formularios)
   ===================================================================== */
.form__privacy { margin-top: 4px; color: var(--text-2); font-size: .8125rem; text-align: center; }
.form__privacy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form__privacy a:hover { color: var(--brand); }
.modal--privacy { width: min(100% - 32px, 680px); border: 1px solid var(--line); border-radius: 28px; }
.modal--privacy .modal__content { padding: clamp(28px, 4vw, 44px); }
.modal--privacy h2 { margin-bottom: 6px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.modal--privacy h3 { margin: 28px 0 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.modal--privacy p, .modal--privacy li { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.modal--privacy p + p { margin-top: 10px; }
.modal--privacy ul { display: grid; gap: 8px; padding-left: 1.25em; list-style: disc; }
.modal--privacy li::marker { color: var(--brand); }
.modal--privacy ul + p { margin-top: 12px; }
.modal--privacy:focus-visible { outline: none; }
.modal--privacy strong { color: var(--text); font-weight: 600; }
.modal--privacy a { color: var(--brand); }
.privacy__updated { font-size: .8125rem !important; }
.privacy__legal { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem !important; }
@media (max-width: 640px) {
  .modal--privacy {
    width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0;
    translate: 0 100%; scale: 1;
  }
  .modal--privacy[open] { translate: 0 0; }
  @starting-style { .modal--privacy[open] { translate: 0 100%; } }
  .modal--privacy::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; translate: -50% 0; border-radius: 4px; background: rgb(255 255 255 / .22); }
  .modal--privacy .modal__content { max-height: 92dvh; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .modal--privacy, .modal--privacy[open] { translate: none; }
  @starting-style { .modal--privacy[open] { translate: none; } }
}
