/* ============ DEVBOT — style.css ============
   Sistema de diseño heredado de CGBot (tema oscuro, naranja #F7941D,
   Square 721 Bold Extended + Space Grotesk + Inter) en tono business:
   más datos, más producto, menos arte a pantalla completa. */

/* ============ Self-hosted fonts (variable, latin subset) ============ */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/Inter-var-latin.woff2') format('woff2');
}
/* Titulares: Square 721 Bold Extended (una sola cara; el rango evita bold sintético) */
@font-face {
  font-family: 'Square721 BdEx';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/Square721-BdEx.woff2') format('woff2');
}

:root {
  --orange: #F7941D;
  --orange-soft: rgba(247, 148, 29, 0.12);
  --bg: #0A0A0B;
  --bg-2: #101013;
  --bg-3: #17171B;
  --line: rgba(255, 255, 255, 0.08);
  --text: #F4F4F2;
  --text-dim: rgba(244, 244, 242, 0.55);
  --font-display: 'Space Grotesk', sans-serif;
  --font-headline: 'Square721 BdEx', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grain over everything */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--orange); color: #000; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }
strong { font-weight: 600; }

.container { width: min(1320px, 92vw); margin: 0 auto; }

/* ============ Accessibility ============ */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
section[id], main[id], [id].anchor { scroll-margin-top: 90px; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10001;
  background: var(--orange); color: #0a0a0b;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1.2rem; border-radius: 0 0 8px 8px;
  transition: top 0.25s ease;
}
.skip-link:focus-visible { top: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease-out), opacity 0.6s ease;
}
.preloader.is-done { transform: translateY(-100%); opacity: 0.4; pointer-events: none; }
.preloader__logo img { display: block; width: auto; height: clamp(1.6rem, 4vw, 3rem); }
.preloader__bar { width: min(320px, 60vw); height: 2px; background: var(--line); margin-top: 1.5rem; overflow: hidden; }
.preloader__bar-fill { height: 100%; width: 0%; background: var(--orange); transition: width 0.25s ease; }

/* ============ Cursor ============ */
.cursor, .cursor-follower { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; z-index: 9999; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange);
    transform: translate(-50%, -50%);
  }
  .cursor-follower {
    display: block; position: fixed; z-index: 9998; pointer-events: none;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(247, 148, 29, 0.45);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  }
  .cursor-follower.is-hover { width: 64px; height: 64px; background: rgba(247, 148, 29, 0.08); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; padding: 0.9rem 1.9rem; border-radius: 999px;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.btn--primary { background: var(--orange); color: #0a0a0b; }
.btn--primary:hover { background: #ffab42; box-shadow: 0 8px 40px rgba(247, 148, 29, 0.35); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.25); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }
.btn--xl { padding: 1.3rem 3rem; font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--orange); transition: gap 0.3s var(--ease-out);
}
.link-arrow:hover { gap: 0.8rem; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  width: min(1440px, 94vw); margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1.1rem 0;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__link {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 500;
  color: var(--text-dim); position: relative; transition: color 0.3s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { white-space: nowrap; }
.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 1200;
}
.nav__burger span {
  display: block; width: 26px; height: 2px; background: var(--text);
  margin: 7px auto; transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(10, 10, 11, 0.97);
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding: 0 8vw;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0s;
}
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.6rem; }
.mobile-menu__links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.4rem); color: var(--text);
}
.mobile-menu__links a:hover { color: var(--orange); }
.mobile-menu__meta { color: var(--text-dim); }
.mobile-menu__meta a { color: var(--orange); font-size: 1.1rem; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background: var(--bg); }
/* Póster estático (LCP): siempre presente debajo del video. */
.hero__poster {
  position: absolute; inset: 0;
  background: url('../assets/media/hero-reel-poster.webp') center / cover no-repeat;
  transform: scale(1.02);
}
/* Montaje mudo de las demos (assets/media/hero-reel.mp4): main.js lo arranca
   solo en desktop sin reduce-motion ni Data Saver; en táctiles queda el póster
   y un botón de play. */
.hero__video {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero.video-on .hero__video { opacity: 1; }
/* Las demos son interfaces claras: se atenúan para que el texto mande. */
.hero__poster, .hero__video video { filter: brightness(0.5) saturate(0.85); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,0.96) 0%, rgba(10,10,11,0.78) 45%, rgba(10,10,11,0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,0) 36%);
}
.hero__content { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 6rem; }
.hero__kicker {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 1.8rem;
}
.hero__title {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 4.2rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 1.8rem; max-width: 18ch;
}
.hero__title em { font-style: normal; color: var(--orange); }
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line > span { display: block; transform: translateY(110%); }
.reveal-line { overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); }
.hero__sub { max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-dim); margin-bottom: 2.4rem; }
.hero__sub strong { color: var(--text); font-weight: 500; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; transform: translateY(24px); }
.hero__pillars {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  margin-top: 2.6rem; opacity: 0; transform: translateY(16px);
}
.hero__pillars li {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.hero__pillars li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--orange); animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint { to { top: 110%; } }
.hero__controls { position: absolute; right: 3vw; bottom: 2.2rem; z-index: 3; display: flex; align-items: center; gap: 0.6rem; }
.hero__reel {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(10, 10, 11, 0.55); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.06em; padding: 0.65rem 1.2rem; cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, opacity 0.35s ease;
}
.hero__reel:hover { border-color: var(--orange); color: var(--orange); }
.hero__reel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero.video-on .hero__reel-dot { animation: reelpulse 1.4s ease-in-out infinite; }
@keyframes reelpulse { 50% { opacity: 0.25; } }
/* En táctiles el botón es la única entrada al video: se viste de play. */
.hero--manual:not(.video-on) .hero__reel {
  background: var(--orange); border-color: var(--orange); color: #0a0a0b;
  font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.5rem;
  box-shadow: 0 8px 30px rgba(247, 148, 29, 0.35);
}
.hero--manual:not(.video-on) .hero__reel:hover { color: #0a0a0b; }
.hero--manual:not(.video-on) .hero__reel-dot {
  width: 0; height: 0; border-radius: 0; background: transparent;
  border-left: 11px solid #0a0a0b; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.hero__caption {
  position: absolute; left: 3vw; bottom: 2.2rem; z-index: 3;
  padding-left: 0.9rem; border-left: 3px solid var(--orange);
  font-family: var(--font-display); font-size: 0.82rem; color: var(--text-dim);
  max-width: min(40ch, 52vw); line-height: 1.35;
}
.hero__caption strong { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }

/* ============ Clients ============ */
.clients { padding: clamp(4rem, 8vw, 6.5rem) 0 0; border-bottom: 1px solid var(--line); }
.section-head--center { text-align: center; }
.clients .section-head { margin-bottom: clamp(1.6rem, 3vw, 2.8rem); }
.marquee { overflow: hidden; position: relative; padding: 1.4rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee + .marquee { border-top: 1px solid var(--line); }
.marquee__track {
  display: flex; align-items: center; gap: 4.5rem; width: max-content;
  animation: marquee 48s linear infinite;
  padding-right: 4.5rem;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 54px; width: auto; opacity: 0.7;
  filter: grayscale(1) brightness(1.75);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.marquee__track img:hover { opacity: 1; filter: grayscale(0) brightness(1.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Statement ============ */
.statement { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem); }
.statement__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2.7rem); line-height: 1.3; letter-spacing: -0.01em;
  max-width: 62rem;
}
.statement__text .w { color: rgba(244,244,242,0.22); transition: color 0.5s ease; }
.statement__text .w.is-lit { color: var(--text); }

/* ============ Section heads ============ */
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head__kicker {
  font-family: var(--font-display); color: var(--orange);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-head__title {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(2rem, 5vw, 4.2rem); letter-spacing: -0.02em; line-height: 1.05;
}
.section-head__sub { color: var(--text-dim); font-size: 1.05rem; max-width: 40rem; margin-top: 1.2rem; }
.section-head--row .section-head__sub { margin-top: 0; }

/* ============ Problem cards ============ */
.problem { padding-bottom: clamp(4rem, 8vw, 7rem); }
.problem__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.problem-card {
  position: relative; padding: 1.7rem 1.6rem 1.8rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(165deg, rgba(247, 148, 29, 0.10) 0%, rgba(247, 148, 29, 0) 55%), var(--bg-2);
  transition: border-color 0.35s ease, transform 0.5s var(--ease-out);
}
.problem-card:hover { border-color: rgba(247, 148, 29, 0.45); transform: translateY(-4px); }
.problem-card__num { font-family: var(--font-display); color: var(--orange); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; }
.problem-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 1.6rem 0 0.6rem; }
.problem-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ============ Approach (pillars + flow) ============ */
.approach { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.approach__wave {
  position: absolute; right: -8%; top: -10%; width: min(46vw, 620px); opacity: 0.5; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.approach .container { position: relative; z-index: 1; }
.approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.pillar { border-left: 2px solid var(--orange); padding-left: 1.4rem; }
.pillar__num { font-family: var(--font-display); color: var(--orange); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; }
.pillar h3 { font-family: var(--font-headline); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -0.01em; margin: 0.9rem 0 0.7rem; }
.pillar p { color: var(--text-dim); font-size: 0.98rem; }
.flow {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.flow__node {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.6rem; min-width: 12rem; text-align: center;
  background: var(--bg); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.flow__node small { display: block; color: var(--text-dim); font-weight: 400; font-size: 0.78rem; margin-top: 0.2rem; }
.flow__node--accent { border-color: rgba(247, 148, 29, 0.55); background: var(--orange-soft); }
.flow__arrow { color: var(--orange); font-size: 1.4rem; line-height: 1; }

/* ============ Tools (AI capabilities) ============ */
.tools { padding: clamp(4rem, 9vw, 8rem) 0; }
.tools__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.tool-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.35s ease, box-shadow 0.4s ease, transform 0.5s var(--ease-out);
}
.tool-card:hover { border-color: rgba(247, 148, 29, 0.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); transform: translateY(-4px); }
.tool-card--wide { grid-column: span 2; }
.tool-card--wide .tool-card__body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.tool-card--wide .tool-card__head { grid-column: 1 / -1; }
.tool-card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.tool-card__cat { font-family: var(--font-display); color: var(--orange); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.tool-card h3 { font-family: var(--font-headline); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; margin: 0.6rem 0 0.4rem; }
.tool-card__tag { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.tool-card__sub { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin: 0.6rem 0 0.4rem; }
.list-tick { display: grid; gap: 0.35rem; }
.list-tick li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--text); }
.list-tick li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.28rem 0.7rem; font-family: var(--font-display); font-size: 0.75rem; font-weight: 500;
  color: var(--text-dim); letter-spacing: 0.02em;
}
.chip--on { border-color: rgba(247, 148, 29, 0.5); color: var(--orange); background: var(--orange-soft); }
.tool-card__foot { margin-top: auto; padding-top: 1.2rem; }
.tool-card--wide .tool-card__foot { grid-column: 1 / -1; }

/* ---- reproductor click-to-play (assets/media/*.mp4) ---- */
.vid {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
}
.vid--card { border-radius: 14px; border: 1px solid var(--line); }
.vid > img, .vid > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid > img { filter: brightness(0.55) saturate(0.85); transition: filter 0.35s ease, transform 0.6s var(--ease-out); }
.vid:hover > img { filter: brightness(0.7) saturate(1); transform: scale(1.03); }
.vid > video { opacity: 0; transition: opacity 0.4s ease; background: #000; }
.vid.is-playing > video { opacity: 1; }
.vid.is-playing > img { opacity: 0; }
.vid__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); box-shadow: 0 8px 30px rgba(247, 148, 29, 0.45);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.vid__play::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-left: 17px solid #0a0a0b; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.vid:hover .vid__play { transform: translate(-50%, -50%) scale(1.1); }
.vid.is-playing .vid__play { opacity: 0; pointer-events: none; }
.vid__label {
  position: absolute; left: 0.9rem; bottom: 0.8rem; z-index: 2; max-width: calc(100% - 1.8rem);
  font-family: var(--font-display); font-weight: 500; font-size: 0.8rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(10, 10, 11, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 0.35rem 0.8rem;
  transition: opacity 0.3s ease;
}
.vid__label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.vid.is-playing .vid__label { opacity: 0; }
.vid__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vid--image { cursor: default; }
.vid--image > img { filter: none; }
.vid--image:hover > img { transform: none; }

/* ============ Case studies (deep dives) ============ */
.cases { padding: clamp(4rem, 9vw, 8rem) 0 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.case-study { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.case-study__kicker { font-family: var(--font-display); color: var(--orange); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.8rem; }
.case-study h3 { font-family: var(--font-headline); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
.case-study__lead { color: var(--text-dim); font-size: 1.02rem; max-width: 34rem; margin-bottom: 1.6rem; }
.case-study__media { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.case-study__media img { width: 100%; height: auto; }
.case-study__media + .figures { margin-top: 1.4rem; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fig { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: var(--bg); }
.fig__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--orange); line-height: 1.1; }
.fig__label { display: block; color: var(--text-dim); font-size: 0.8rem; margin-top: 0.3rem; line-height: 1.35; }
.compare { width: 100%; border-collapse: collapse; margin: 1.4rem 0 1.2rem; font-size: 0.92rem; }
.compare th, .compare td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.compare td:first-child { color: var(--text-dim); }
.compare tr.is-ai td { color: var(--orange); font-weight: 500; }
.compare tr.is-ai td:first-child { color: var(--text); }
.compare-wrap { overflow-x: auto; }
.case-study__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 1.4rem; }
.case-study__cols h4, .showcase__cols h4 { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.6rem; }
.bars { display: grid; gap: 0.7rem; margin: 1.4rem 0; }
.bar { display: grid; grid-template-columns: 10rem 1fr 6rem; align-items: center; gap: 0.9rem; font-size: 0.85rem; color: var(--text-dim); }
.bar__val { text-align: right; }
.bar__track { height: 14px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.bar__fill { height: 100%; width: var(--w, 100%); background: rgba(244, 244, 242, 0.22); border-radius: 4px; transform-origin: left; }
.bar--ai .bar__fill { background: var(--orange); }
.bar--ai { color: var(--text); }
.bar__val { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.bar--ai .bar__val { color: var(--orange); }

/* ============ Work (product cases) ============ */
.work { padding: clamp(4rem, 9vw, 8rem) 0; }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.work-card { position: relative; display: block; }
.work-card__media { overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--bg-3); border: 1px solid var(--line); }
/* tarjeta de logotipo (casos sin captura, p. ej. herramientas internas) */
.work-card--logo .work-card__media { background: radial-gradient(80% 80% at 50% 30%, #232327 0%, var(--bg-3) 100%); }
.work-card--logo .work-card__media img { object-fit: contain; padding: 16%; }
.work-card--invert .work-card__media img { filter: invert(1) brightness(1.05); }
.work-card--invert:hover .work-card__media img { filter: invert(1) brightness(1.15); }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 1s var(--ease-out), filter 1s var(--ease-out);
  will-change: transform;
}
.work-card:hover .work-card__media img { transform: scale(1.06); filter: brightness(1.08); }
.work-card__info { padding: 1rem 0.2rem 0; }
.work-card__info h3 { font-family: var(--font-headline); font-weight: 600; font-size: 1.05rem; transition: color 0.3s ease; }
.work-card:hover .work-card__info h3 { color: var(--orange); }
.work-card__sector { color: var(--orange); font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.45rem; }
.work-card__client { color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.3rem; }
.work-card__sum { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.5rem; }
.work-card__stack { margin-top: 0.8rem; }
.work-card__stack .chip { font-size: 0.68rem; padding: 0.2rem 0.55rem; }
.work__more { text-align: center; padding: clamp(2rem, 4vw, 3rem) 0 0; }
.work-grid--all { grid-template-columns: repeat(3, 1fr); }
/* Tarjeta CTA al final del portafolio ("Your product next"), como en CGBot */
.work-card--cta {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 240px; border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 12px;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.work-card--cta:hover { border-color: var(--orange); background: var(--orange-soft); }
.work-card__cta-inner { padding: 1.5rem; }
.work-card__plus { display: block; font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--orange); margin-bottom: 0.8rem; }
.work-card--cta h3 { font-family: var(--font-headline); font-weight: 600; font-size: 1.15rem; }
.work-card--cta p { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.4rem; }
/* cierre limpio del grid completo: la última tarjeta absorbe las columnas sobrantes */
@media (min-width: 961px) {
  .work-grid--all > .work-card:last-child:nth-child(3n-1) { grid-column: span 2; }
  .work-grid--all > .work-card:last-child:nth-child(3n+1):not(:first-child) { grid-column: span 3; }
}
@media (min-width: 561px) and (max-width: 960px) {
  .work-grid--all > .work-card:last-child:nth-child(odd) { grid-column: span 2; }
}

/* ---- lista compacta del resto de los casos (work.html) ---- */
.wlist { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.wlist__group { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.wlist__group[hidden] { display: none; }
.wlist__sector {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); display: flex; align-items: baseline; gap: 0.8rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
}
.wlist__sector span { color: var(--orange); font-size: 0.72rem; letter-spacing: 0.12em; }
.wlist__row {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.6rem 2rem; align-items: baseline;
  padding: 1.1rem 0.4rem; border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.35s var(--ease-out);
}
.wlist__row:hover { background: rgba(247, 148, 29, 0.04); padding-left: 1rem; }
.wlist__row h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.wlist__row h4 a { color: var(--orange); }
.wlist__client { color: var(--text-dim); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.2rem; }
.wlist__sum { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.35rem; max-width: 46rem; }
.wlist__stack { color: var(--text-dim); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.02em; }

/* ============ Services ============ */
.services { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-list { border-top: 1px solid var(--line); margin-top: clamp(1rem, 2vw, 2rem); }
.service-row {
  display: grid; grid-template-columns: 3.5rem 1fr 1.4fr;
  align-items: baseline; gap: 2rem;
  padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  cursor: default; position: relative;
  transition: background 0.35s ease, padding-left 0.35s var(--ease-out);
}
.service-row:hover { background: rgba(247, 148, 29, 0.04); padding-left: 1.2rem; }
.service-row--lead { background: linear-gradient(90deg, rgba(247, 148, 29, 0.08), rgba(247, 148, 29, 0) 70%); }
.service-row__num { font-family: var(--font-display); color: var(--orange); font-size: 0.85rem; font-weight: 500; }
.service-row__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.service-row:hover .service-row__name, .service-row--lead .service-row__name { color: var(--orange); }
.service-row__desc { color: var(--text-dim); font-size: 0.98rem; }
.service-row__desc a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Stats ============ */
.stats { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -0.03em;
  color: var(--text); line-height: 1;
}
.stat__num::before { content: attr(data-prefix); color: var(--orange); }
.stat__num::after { content: attr(data-suffix); color: var(--orange); }
.stat__label {
  display: block; margin-top: 0.8rem; color: var(--text-dim);
  font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.stat__note { display: block; margin-top: 0.3rem; color: var(--text-dim); font-size: 0.78rem; opacity: 0.8; }
.stats__foot { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin-top: clamp(2rem, 4vw, 3rem); }

/* ============ Testimonials ============ */
.testimonials { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.tcard { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 2.2rem 1.8rem 1.8rem; background: var(--bg); display: flex; flex-direction: column; }
.tcard::before { content: '\201C'; position: absolute; top: 0.6rem; left: 1.3rem; font-family: var(--font-headline); font-size: 4rem; line-height: 1; color: var(--orange); opacity: 0.55; }
.tcard p { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; line-height: 1.5; margin-top: 1.2rem; flex: 1; }
.tcard cite { display: block; margin-top: 1.6rem; font-style: normal; font-family: var(--font-display); color: var(--orange); font-weight: 600; font-size: 0.92rem; }
.tcard cite span { display: block; color: var(--text-dim); font-weight: 400; font-size: 0.82rem; margin-top: 0.15rem; }

/* ============ Studio ============ */
.studio { padding: clamp(4rem, 9vw, 8rem) 0; }
.studio__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.studio__para { color: var(--text-dim); font-size: 1.05rem; margin: 1.8rem 0 1.4rem; max-width: 34rem; }
.studio__quote { border-left: 3px solid var(--orange); padding-left: 1.6rem; margin: 2rem 0 2.5rem; }
.studio__quote p { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.45; }
.studio__locations { display: flex; gap: 3.5rem; }
.studio__locations h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.studio__locations p { color: var(--text-dim); font-size: 0.9rem; }
.studio__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3.2; border: 1px solid var(--line); }
.studio__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }

/* ============ CTA ============ */
.cta { position: relative; padding: clamp(5rem, 11vw, 10rem) 0; overflow: hidden; border-top: 1px solid var(--line); }
.cta__marquee { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); opacity: 0.05; overflow: hidden; }
.cta__marquee-track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(6rem, 18vw, 16rem); letter-spacing: -0.02em;
  animation: marquee 30s linear infinite;
}
.cta__inner { position: relative; z-index: 2; text-align: center; }
.cta__title {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem); letter-spacing: -0.02em; line-height: 1.05;
  max-width: 56rem; margin: 0 auto 1.4rem;
}
.cta__sub { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2.8rem; max-width: 40rem; margin-left: auto; margin-right: auto; }
.cta__mail { color: var(--text-dim); font-size: 0.92rem; margin-top: 1.6rem; }
.cta__mail a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer__logo { height: 34px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { color: var(--text-dim); font-size: 0.95rem; }
.footer__col h3 {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.footer__col a, .footer__col p { display: block; color: var(--text); font-size: 0.98rem; margin-bottom: 0.55rem; transition: color 0.3s ease; }
.footer__col a:hover { color: var(--orange); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); padding: 1.4rem 0 1.6rem;
  color: var(--text-dim); font-size: 0.85rem;
}
.footer__legal-link { text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s ease; }
.footer__legal-link:hover { color: var(--orange); }
button.footer__legal-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.footer__stamp { color: rgba(244, 244, 242, 0.35); font-size: 0.75rem; margin-left: 0.6rem; }

/* ============ Inner page heroes ============ */
.pf-hero { padding: clamp(9rem, 16vw, 12rem) 0 clamp(2rem, 4vw, 3rem); }
.pf-hero .section-head__title { max-width: 22ch; }
.pf-hero__sub { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 44rem; margin-top: 1.4rem; }
.pf-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; margin-top: 1.8rem; color: var(--text-dim); font-size: 0.9rem; }
.pf-hero__meta strong { display: block; font-family: var(--font-display); color: var(--text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.2rem; }
.case-summary { max-width: 46rem; color: var(--text-dim); font-size: 1.05rem; line-height: 1.75; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.subnav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.pf-filter {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-dim); font-family: var(--font-display); font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.03em; padding: 0.5rem 1.1rem; cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pf-filter:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.pf-filter.is-active { background: var(--orange); border-color: var(--orange); color: #0a0a0b; }

/* ============ AI showcase page ============ */
.showcase { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0; }
.showcase--alt { background: var(--bg-2); }
.showcase__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.showcase__grid--flip .showcase__media { order: 2; }
.showcase__media { position: sticky; top: 100px; }
.showcase__num { font-family: var(--font-display); color: var(--orange); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; }
.showcase__cat { font-family: var(--font-display); color: var(--text-dim); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.4rem; }
.showcase h2 { font-family: var(--font-headline); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0.8rem 0 0.8rem; }
.showcase__tag { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 1.6rem; max-width: 34rem; }
.showcase__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.showcase__cols .list-tick li { font-size: 0.92rem; }
.showcase__note { margin-top: 1.4rem; padding: 0.9rem 1.1rem; border: 1px solid rgba(247, 148, 29, 0.35); border-radius: 10px; background: var(--orange-soft); font-size: 0.88rem; color: var(--text); }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.figure { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.figure img { width: 100%; height: auto; }
.figure figcaption { padding: 0.9rem 1.1rem; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid var(--line); }
.figure figcaption strong { color: var(--text); font-weight: 500; }
.art-grid--3 { grid-template-columns: 2fr 1fr; }
.impact-band { padding: clamp(4rem, 8vw, 7rem) 0; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.impact-band__wave { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90vw, 1100px); opacity: 0.28; pointer-events: none; }
.impact-band .container { position: relative; z-index: 1; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.why__item { border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; background: var(--bg-2); }
.why__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; }
.why__item p { color: var(--text-dim); font-size: 0.95rem; }

/* ============ Legal pages (privacy.html) ============ */
.legal-hero {
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.legal-hero__title {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 1rem;
}
.legal-hero__meta { color: var(--text-dim); font-size: 0.95rem; }
.legal { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.legal__body { max-width: 46rem; }
.legal__body h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 2rem 0 0.7rem; }
.legal__body p, .legal__body li { color: var(--text-dim); font-size: 1rem; line-height: 1.75; margin-bottom: 1rem; }
.legal__body li { margin-bottom: 0.5rem; }
.legal__body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2rem; }
.legal__body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: #ffab42; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body code { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); }

/* ============ 404 ============ */
.notfound { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; }
.notfound__code {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(10rem, 34vw, 30rem); line-height: 1;
  color: rgba(244, 244, 242, 0.04); pointer-events: none; user-select: none;
}
.notfound__inner { position: relative; z-index: 1; }
.notfound__title {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(2rem, 5.6vw, 4.2rem); letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 1.2rem;
}
.notfound__sub { color: var(--text-dim); max-width: 34rem; margin-bottom: 2.4rem; }
.notfound__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ Contact modal ============ */
.cmodal { position: fixed; inset: 0; z-index: 5000; }
.cmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.35s ease;
}
.cmodal__panel {
  position: relative; z-index: 1;
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem); max-height: calc(100svh - 2rem);
  margin: max(1rem, calc((100vh - 720px) / 2)) auto 1rem;
  overflow-y: auto; overflow-x: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  opacity: 0; transform: translateY(18px) scale(0.985);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.cmodal.is-open .cmodal__backdrop { opacity: 1; }
.cmodal.is-open .cmodal__panel { opacity: 1; transform: none; }
.cmodal__close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 1px solid var(--line);
  color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cmodal__close:hover { border-color: var(--orange); color: var(--orange); transform: rotate(90deg); }
.cmodal__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em;
  margin-bottom: 0.5rem; padding-right: 2.5rem;
}
.cmodal__sub { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 1.6rem; }
.cmodal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.cmodal__field { display: flex; flex-direction: column; gap: 0.4rem; }
.cmodal__field--full { grid-column: 1 / -1; }
.cmodal__field label { font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text); }
.cmodal__req { color: var(--orange); }
.cmodal__opt { color: var(--text-dim); font-weight: 400; }
.cmodal__field input, .cmodal__field select, .cmodal__field textarea {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.75rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s ease; width: 100%;
}
.cmodal__field textarea { resize: vertical; min-height: 110px; }
.cmodal__field input:focus, .cmodal__field select:focus, .cmodal__field textarea:focus { outline: none; border-color: var(--orange); }
.cmodal__field [aria-invalid="true"] { border-color: #e5484d; }
.cmodal__error { color: #ff8589; font-size: 0.82rem; }
.cmodal__hp { position: absolute !important; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }
.cmodal__turnstile { margin-top: 1.2rem; min-height: 0; }
.cmodal__turnstile iframe { max-width: 100%; }
.cmodal__notice {
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  border: 1px solid rgba(247, 148, 29, 0.4); border-radius: 8px;
  background: var(--orange-soft); color: var(--text); font-size: 0.9rem;
}
.cmodal__notice a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.cmodal__actions { margin-top: 1.4rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.cmodal__alt { color: var(--text-dim); font-size: 0.88rem; }
.cmodal__alt a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.cmodal__copy {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text-dim); font-size: 0.78rem; padding: 0.2rem 0.6rem; cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.cmodal__copy:hover { color: var(--orange); border-color: var(--orange); }
.cmodal__result .cmodal__title { padding-right: 0; }

/* ============ Consent banner (analytics) ============ */
.consent {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 4800;
  width: min(400px, calc(100vw - 2rem));
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.consent.is-in { opacity: 1; transform: none; }
.consent__text { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 0.8rem; }
.consent__text strong { color: var(--text); font-weight: 500; }
.consent__text a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 0.6rem; }
.consent__btn {
  flex: 1; min-height: 44px; padding: 0.55rem 0.9rem;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.consent__btn:hover { border-color: var(--orange); color: var(--orange); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .tools__grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card--wide { grid-column: span 2; }
  .problem__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .hero__content { padding-bottom: 8rem; }
  .hero__caption { display: none; }
  .service-row { grid-template-columns: 2.4rem 1fr; }
  .service-row__desc { grid-column: 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1.5rem; }
  .studio__grid, .case-study, .showcase__grid { grid-template-columns: 1fr; }
  .showcase__grid--flip .showcase__media { order: 0; }
  .showcase__media { position: static; }
  .approach__grid, .testimonials__grid { grid-template-columns: 1fr; gap: 2rem; }
  .approach__wave { opacity: 0.18; width: 80vw; right: -30%; top: -4%; }
  .testimonials__grid { gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .work-grid--all { grid-template-columns: repeat(2, 1fr); }
  .wlist__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .marquee__track img { height: 40px; }
  .art-grid--3 { grid-template-columns: 1fr; }
}
/* cierre limpio a 2 columnas: una tarjeta suelta al final ocupa la fila.
   OJO: solo entre 641 y 1100 px — a una columna un span 2 crearía una
   columna implícita fuera de pantalla y escondería tarjetas. */
@media (min-width: 641px) and (max-width: 1100px) {
  .tools__grid > .tool-card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .tools__grid { grid-template-columns: 1fr; }
  .tool-card--wide, .tools__grid > .tool-card:last-child { grid-column: auto; }
  .tool-card--wide .tool-card__body { grid-template-columns: 1fr; }
  .problem__grid { grid-template-columns: 1fr; }
  .work__grid, .work-grid--all { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures .fig:last-child:nth-child(odd) { grid-column: span 2; }
  .case-study__cols, .showcase__cols, .art-grid, .why { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr 5rem; gap: 0.3rem 0.8rem; }
  .bar > span:first-child { grid-column: 1 / -1; }
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); }
  .hero__controls { right: 4vw; bottom: 1.6rem; }
}
@media (max-width: 560px) {
  .work__grid, .work-grid--all { grid-template-columns: 1fr; }
  .marquee__track { gap: 3rem; }
  .marquee__track img { height: 34px; }
  .footer__bottom { flex-direction: column; }
  .hero__scroll { display: none; }
  .cmodal__grid { grid-template-columns: 1fr; }
  .cmodal__panel { margin: 0.75rem auto; }
  .cmodal__field input, .cmodal__field select, .cmodal__field textarea { font-size: 1rem; }
  .cmodal__close { width: 44px; height: 44px; }
  .service-row__desc { font-size: 1rem; }
  .cmodal__sub, .cta__mail { font-size: 1rem; }
  .studio__locations { gap: 2rem; }
}
@media (pointer: coarse) {
  .pf-filter { padding: 0.7rem 1.2rem; }
  .footer__col a { padding: 0.3rem 0; margin-bottom: 0.35rem; }
  .hero__reel { min-height: 44px; }
  .cmodal__copy { padding: 0.5rem 0.8rem; }
}

/* Variante de tres contadores (ai.html): 3 columnas hasta tablet, 1 en móvil */
.stats__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .stats__grid--3 { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__title-line > span, .reveal-line > span { transform: none; }
  .hero__ctas, .hero__pillars { opacity: 1; transform: none; }
  .statement__text .w { color: var(--text); }
  .hero__reel, .consent, .cmodal__backdrop, .cmodal__panel { transition: none; }
}
