/* =========================================================
   OSCAR LEAL · Estudio de branding & web
   Blanco dominante, negro como acento, serif editorial
   para títulos y numerales romanos como firma.
   ========================================================= */

:root {
  --white: #ffffff;
  --paper: #f7f6f3;
  --line: #e7e5e0;
  --gray-300: #c9c6bf;
  --gray-500: #807c75;
  --gray-700: #4f4c46;
  --ink: #141414;
  --black: #0b0b0b;
  --wa: #1fa855;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 1280px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 36px -14px rgba(0,0,0,.16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll, body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sin-proyectos #proyectos, .sin-proyectos a[href="#proyectos"] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .8rem 1rem; z-index: 300; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------- PANTALLA DE CARGA ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--white);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loader__mark { height: 48px; width: auto; animation: hop 1.2s var(--ease) infinite; }
.loader__name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .32em; padding-left: .32em; animation: fadeUp .8s var(--ease) both .1s; }
.loader__bar { width: 140px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--ink); animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* Entrada del hero después de la carga */
.hero__copy > *, .hero__visual { opacity: 0; transform: translateY(18px); }
.is-loaded .hero__copy > *, .is-loaded .hero__visual { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-loaded .hero__copy > :nth-child(2) { transition-delay: .1s; }
.is-loaded .hero__copy > :nth-child(3) { transition-delay: .2s; }
.is-loaded .hero__copy > :nth-child(4) { transition-delay: .3s; }
.is-loaded .hero__copy > :nth-child(5) { transition-delay: .4s; }
.is-loaded .hero__visual { transition-delay: .25s; }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* Brillo mientras carga una imagen */
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%) var(--paper);
  background-size: 200% 100%; animation: shine 1.3s linear infinite;
  transition: opacity .5s;
}
.shimmer.is-ready::after { opacity: 0; animation: none; }
.shimmer img { opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.shimmer.is-ready img { opacity: 1; }
@keyframes shine { to { background-position: -200% 0; } }

/* ---------------- TIPOGRAFÍA BASE ---------------- */
.kicker { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 1rem; line-height: 1.5; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.section-lead { color: var(--gray-700); font-size: 1.08rem; max-width: 42rem; margin: 1rem auto 0; }
.section { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }
.section--tint { background: var(--paper); }
.section-head { text-align: center; margin: 0 auto clamp(2.5rem, 5vw, 4rem); max-width: 48rem; }

/* ---------------- BOTONES ---------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .95rem 1.8rem; border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s;
}
.btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.4); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2b2b2b; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--wa svg { color: var(--wa); }
.btn--line.btn--wa:hover svg, .btn--light.btn--wa:hover svg { color: currentColor; }
.btn--sm { min-height: 42px; padding: .65rem 1.1rem; font-size: .7rem; }
.btn--block { width: 100%; }
.btn[hidden] { display: none; }
.link-arrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------------- MARCA ---------------- */
.brand { display: flex; align-items: center; gap: .75rem; }
.brand__mark { height: 30px; width: auto; }
.brand__mark--light { filter: invert(1); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: .28em; }
.brand__sub { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); margin-top: .2rem; }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.nav--solid { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.25); }
.nav__links > a.is-current { color: var(--ink); }
.nav__links > a.is-current::after { transform: scaleX(1); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links > a:not(.btn) { position: relative; font-size: .84rem; font-weight: 500; color: var(--gray-700); transition: color .2s; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__wa { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; margin-right: -10px; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { bottom: 17px; }
.nav__toggle.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------------- HERO (oscuro, enmarcado) ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: .75rem; border-radius: 28px; background: var(--black); color: var(--white);
  min-height: min(calc(100svh - var(--nav-h) - 1.5rem), 940px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5.5vw, 5.5rem);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .6; animation: drift 34s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.7) 42%, rgba(8,8,8,.15) 100%); }
@keyframes drift { to { transform: scale(1.12) translate(-2%, -1.5%); } }
.hero__copy { position: relative; z-index: 2; max-width: 600px; }
@media (min-width: 901px) { .hero__copy { text-shadow: 0 2px 24px rgba(0,0,0,.5); } }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-300); padding: .45rem 1rem .45rem .6rem; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(255,255,255,.04); }
.hero__eyebrow img { height: 18px; width: auto; filter: invert(1); }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 5.2vw, 5.2rem); line-height: .98; letter-spacing: -.015em; margin-top: 1.6rem; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--gray-300); }
.rotator { position: relative; display: inline-block; font-style: italic; transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s; }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 2px; background: currentColor; transform-origin: left; animation: line 2.6s var(--ease) infinite; }
.rotator.is-out { opacity: 0; transform: translateY(-.25em); filter: blur(6px); }
.rotator.is-in { animation: wordIn .6s var(--ease); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
@keyframes line { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.hero__lead { margin-top: 1.6rem; font-size: 1.1rem; color: rgba(255,255,255,.72); max-width: 34rem; }
.hero__checks { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.5rem; }
.hero__checks li { position: relative; padding-left: 1.5rem; font-size: .88rem; font-weight: 500; }
.hero__checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--white); }
.hero__checks li::after { content: ""; position: absolute; left: .3rem; top: calc(.2em + .28rem); width: .36rem; height: .2rem; border: solid var(--ink); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn--ghost svg { color: var(--wa); }
.hero .btn--ghost:hover svg { color: var(--wa); }
.hero__proof { list-style: none; display: flex; gap: clamp(1.8rem, 4vw, 3.5rem); margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero__proof li { display: flex; flex-direction: column; }
.hero__proof strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__proof span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); margin-top: .45rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.2rem; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .4rem .6rem; color: var(--white); cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Ícono de mouse para bajar */
.mouse { position: relative; display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.9); border-radius: 14px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.mouse i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: wheel 1.8s cubic-bezier(.45,0,.25,1) infinite; }
.hero__scroll:hover .mouse { transform: translateY(-3px); box-shadow: 0 0 0 6px rgba(255,255,255,.08); border-color: var(--white); }
.hero__scroll:hover .mouse i { animation-duration: 1s; }
.hero__scroll small { font-size: .58rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); padding-left: .3em; transition: color .3s; }
.hero__scroll:hover small { color: var(--white); }
.hero__scroll.is-flying .mouse { transform: translateY(6px) scale(.92); }
.hero__scroll.is-flying .mouse i { animation: wheelGo .5s ease-in forwards; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes wheelGo { to { transform: translateY(18px); opacity: 0; } }

/* Muro de trabajos en movimiento */
.wall {
  position: absolute; z-index: 1; top: -25%; bottom: -25%; right: -4%; width: 50%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  rotate: -9deg;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 22%, #000 78%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 22%, #000 78%, transparent 96%);
}
.wall__col { min-width: 0; }
.wall__track { display: flex; flex-direction: column; gap: 1rem; animation: wallUp 55s linear infinite; }
.wall__col--2 .wall__track { animation-direction: reverse; animation-duration: 65s; }
.wall__col--3 .wall__track { animation-duration: 48s; }
.hero:hover .wall__track { animation-play-state: paused; }
@keyframes wallUp { to { transform: translateY(calc(-50% - .5rem)); } }
@keyframes wallLeft { to { transform: translateX(calc(-50% - .4rem)); } }
.wall__card { flex: none; margin: 0; background: var(--white); border-radius: 14px; overflow: hidden; padding: .7rem; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); }
.wall__card img { width: 100%; height: auto; display: block; }
.wall__card.is-cover { padding: 0; aspect-ratio: 4 / 4.6; }
.wall__card.is-cover img { height: 100%; object-fit: cover; object-position: top; }
.wall__card.is-logo { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 1.2rem; }
.wall__card.is-logo img { width: auto; max-width: 85%; max-height: 70%; }

/* Portada · proyecto destacado (centrado) */
.stage[hidden], .wall[hidden] { display: none !important; }
.stage { position: relative; z-index: 1; justify-self: center; width: min(100%, 640px); aspect-ratio: 1 / .92; perspective: 1600px; }
.stage__glow { position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,0) 72%); filter: blur(10px); animation: glow 7s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.08); opacity: .7; } }
.stage__frame { position: absolute; left: 0; top: 9%; width: 88%; margin: 0; border: 0; border-radius: 14px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); transform: rotateY(-9deg) rotateX(4deg); transform-origin: left center; transition: transform .8s var(--ease); }
.stage__frame .browser__bar { background: #f4f3ef; }
.stage__frame .browser__screen { aspect-ratio: 16 / 10.4; }
.stage__phone { position: absolute; right: 0; bottom: 3%; width: 29%; aspect-ratio: 9 / 19; margin: 0; padding: 7px; border-radius: 30px; background: #0d0d0d; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 40px 70px -24px rgba(0,0,0,.9); transform: rotateY(-9deg) translateZ(40px); transition: transform .8s var(--ease); }
.stage__phone::before { content: ""; position: absolute; z-index: 2; top: 13px; left: 50%; width: 30%; height: 14px; border-radius: 99px; background: #0d0d0d; transform: translateX(-50%); }
.stage__screen { position: relative; height: 100%; overflow: hidden; border-radius: 23px; background: var(--white); container-type: size; }
.stage__screen img { width: 100%; height: auto; display: block; animation: pan 22s ease-in-out infinite; animation-delay: -6s; }
.stage:hover .stage__frame { transform: rotateY(-3deg) rotateX(1deg); }
.stage:hover .stage__phone { transform: rotateY(-3deg) translateZ(60px) translateY(-6px); }
.stage__chips { position: absolute; top: 0; right: 2%; list-style: none; display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; z-index: 3; }
.stage__chips li { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .5rem .85rem; border-radius: 99px; color: var(--white); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: flotar 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
@keyframes flotar { 50% { transform: translateY(-6px); } }
.stage__cap { position: absolute; left: 4%; bottom: 0; z-index: 3; display: grid; gap: .1rem; text-align: left; padding: .95rem 1.25rem 1rem; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 24px 50px -18px rgba(0,0,0,.75); cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; }
.stage__cap:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -18px rgba(0,0,0,.85); }
.stage__cap small { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); }
.stage__cap strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.stage__cap span { font-size: .78rem; font-weight: 600; margin-top: .25rem; }
.stage__cap span b { display: inline-block; transition: transform .3s var(--ease); }
.stage__cap:hover span b { transform: translateX(4px); }
.stage__cap[disabled] { cursor: default; }
/* Con el proyecto destacado el fondo se aclara un poco a la derecha para que el caso respire */
.hero--destacado::before { background: linear-gradient(90deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.78) 45%, rgba(8,8,8,.45) 100%); }

/* ---------------- MARCAS (cuadrícula fija) ---------------- */
.brands { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 1rem var(--pad) clamp(3.5rem, 7vw, 5rem); text-align: center; }
.brands__label { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 1.6rem; }
.brands__grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brands__grid li { display: grid; place-items: center; aspect-ratio: 2 / 1; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background .3s; }
.brands__grid li:hover { background: var(--paper); }
/* Todas las celdas miden lo mismo: el logo se ajusta dentro, nunca empuja la celda */
.brands__grid img { width: auto; height: auto; max-width: 62%; max-height: 52px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .6; transition: opacity .3s, filter .3s, transform .4s var(--ease); }
.brands__grid li:hover img { opacity: 1; filter: none; transform: scale(1.05); }
/* Celda de cierre: ocupa justo los huecos de la última fila (lo calcula main.js) */
.brands__grid .brands__fill { aspect-ratio: auto; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gray-500); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0,0,0,.018) 10px 11px), var(--white); }
.brands__grid .brands__fill[hidden] { display: none; }

/* ---------------- SERVICIOS ---------------- */
.service-tabs { display: flex; justify-content: center; gap: .4rem; max-width: var(--max); margin: -1rem auto 2.5rem; }
.service-tab {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .4rem 1.2rem .4rem .4rem;
  border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--gray-700); background: var(--white);
  transition: border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.service-tab span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); font-family: var(--serif); font-size: 1rem; color: var(--ink); transition: background .25s, color .25s; }
.service-tab:hover { border-color: var(--ink); color: var(--ink); }
.service-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.service-tab.is-active span { background: var(--white); color: var(--ink); }
.service-panel { max-width: var(--max); margin: 0 auto; min-height: 420px; }
.service-panel__head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.4rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); animation: fadeUp .5s var(--ease); }
.service-panel__head > div { flex: 1; min-width: 0; }
.service-panel__head h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.05; }
.service-panel__head p { color: var(--gray-500); font-size: .95rem; margin-top: .2rem; }
.numeral {
  display: grid; place-items: center; flex: none; width: 3.2rem; height: 3.2rem; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--serif); font-size: 1.5rem; line-height: 1;
}
.numeral--sm { width: 2.6rem; height: 2.6rem; font-size: 1.15rem; margin: 0; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.services[data-items="4"] { grid-template-columns: repeat(4, 1fr); }
.services[data-items="2"] { grid-template-columns: repeat(2, 1fr); }
.service {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem 1.5rem 1.6rem; animation: fadeUp .55s var(--ease) both; animation-delay: var(--d); transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.service:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.service__icon { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--ink); border-radius: 50%; transition: background .3s, color .3s; }
.service:hover .service__icon { background: var(--ink); color: var(--white); }
.service__icon svg { width: 1.3rem; height: 1.3rem; }
.service__num { font-family: var(--serif); font-size: 1rem; color: var(--gray-300); }
.service h4 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; margin-bottom: .5rem; }
.service > p { color: var(--gray-700); font-size: .93rem; }
.service__list { list-style: none; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.service__list li { position: relative; padding-left: 1.1rem; font-size: .86rem; color: var(--ink); }
.service__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 1px; background: var(--ink); }

/* ---------------- SOFTWARE A LA MEDIDA ---------------- */
.apps { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(3.5rem, 7vw, 6rem); }
.app { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.app--flip .app__media { order: 2; }
.app__media { position: relative; transition: transform .5s var(--ease); transform-style: preserve-3d; }
.app__media.is-tilting { transition: transform .12s linear; }
.app__media--stack { padding: 0 0 14% 0; }
.app__media--stack .browser--front { position: absolute; width: 46%; right: -3%; bottom: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.app__media--stack .browser--front .browser__screen { aspect-ratio: 9 / 13; }
.app__hint { position: absolute; left: 0; bottom: -1.8rem; font-size: .72rem; color: var(--gray-500); opacity: 0; transition: opacity .3s; }
.app__media:hover .app__hint { opacity: 1; }
.app__body h3 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 500; line-height: 1.05; margin: .5rem 0 .9rem; }
.app__text { color: var(--gray-700); font-size: 1.02rem; margin-bottom: 1.3rem; }
.app__stack { margin: 1.4rem 0 1.6rem; }
.app__stack li { background: var(--paper); }

/* Marco de navegador con captura que se desplaza */
.browser { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .8rem; background: #f1f0ec; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d6cf; }
.browser__bar span { flex: 1; margin-left: .6rem; padding: .18rem .7rem; background: var(--white); border-radius: 99px; font-size: .68rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: size; background: var(--paper); }
.browser__screen img { width: 100%; height: auto; }
.browser:not(.is-scroll) .browser__screen img { height: 100%; object-fit: cover; object-position: top; }
.browser.is-scroll.is-playing .browser__screen img { animation: pan var(--dur, 18s) ease-in-out infinite; }
.browser.is-scroll:hover .browser__screen img { animation-play-state: paused; }
@keyframes pan {
  0%, 8% { transform: translateY(0); }
  46%, 54% { transform: translateY(calc(-100% + 100cqh)); }
  92%, 100% { transform: translateY(0); }
}

/* Inclinación 3D en casos */
.case__media.is-tilting { transition: transform .12s linear, box-shadow .3s; }

/* ---------------- ESPECIAL CONSULTORIOS ---------------- */
.spotlight {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) clamp(4.5rem, 9vw, 8rem);
}
.spotlight__img { border-radius: 10px; overflow: hidden; background: var(--paper); }
.spotlight__copy > p:not(.kicker) { color: var(--gray-700); margin: 1.2rem 0 1.5rem; font-size: 1.05rem; }
.spotlight__copy .btn { margin-top: 2rem; }

/* Lista con palomita */
.checks { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.checks li { position: relative; padding-left: 1.85rem; font-size: .96rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ink); }
.checks li::after { content: ""; position: absolute; left: .34rem; top: calc(.28em + .3rem); width: .4rem; height: .22rem; border: solid var(--white); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }

/* ---------------- CASOS DESTACADOS (carrusel) ---------------- */
.slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: var(--max); margin: 0 auto 2.2rem; }
.slider-head .kicker { margin-bottom: .6rem; }
.slider-nav { display: flex; gap: .5rem; flex: none; }
.slider-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); font-size: 1.1rem; transition: background .25s, color .25s, transform .25s var(--ease); }
.slider-btn:hover { background: var(--ink); color: var(--white); transform: scale(1.05); }
.slider {
  overflow-x: auto; scroll-snap-type: none; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--pad)); padding: .5rem var(--pad) 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2));
}
.slider::-webkit-scrollbar { display: none; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 31vw); column-gap: 1.4rem; width: max-content; }
.slider-hint { text-align: center; font-size: .78rem; color: var(--gray-500); margin-top: .4rem; }
.case { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.case:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10.5; background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.case__media img.is-contain { padding: 10%; }
.case:hover .case__media img { transform: scale(1.04); }
.case__count { position: absolute; right: 1rem; top: 1rem; z-index: 2; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--white); color: var(--ink); padding: .35rem .7rem; border-radius: 99px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.case__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.case__index { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); }
.case__body h3 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.05; }
.case__text { color: var(--gray-700); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case__actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }
.link-arrow--muted { color: var(--gray-500); border-color: transparent; }
.slider-progress { max-width: var(--max); margin: .5rem auto 0; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.slider-progress i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.slider-progress i.is-running { animation: fill 4.5s linear forwards; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .72rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); }

/* ---------------- GALERÍA ---------------- */
.tabs { display: flex; justify-content: center; gap: .25rem; margin: 0 auto 2.5rem; padding: .3rem; background: var(--white); border: 1px solid var(--line); border-radius: 99px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 42px; padding: .55rem 1.3rem; border-radius: 99px; font-size: .86rem; font-weight: 500; color: var(--gray-700); transition: all .25s; }
.tab sup { font-size: .62rem; color: var(--gray-500); margin-left: .1rem; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--white); }
.tab.is-active sup { color: var(--gray-300); }
.gallery { display: grid; gap: 1.2rem; max-width: var(--max); margin: 0 auto; }
.gallery--print { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--slides .gallery__item:first-child { grid-column: 1 / -1; }
.gallery--social { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
/* Redes: cada pieza ajustada a su imagen, sin marco ni márgenes */
.gallery--social .gallery__img { aspect-ratio: auto; padding: 0; border: 0; background: none; display: block; }
.gallery--social .gallery__img img { width: 100%; height: auto; object-fit: initial; padding: 0; }
.gallery--social .gallery__img:hover { box-shadow: var(--shadow); }
.gallery--logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__item { animation: fadeUp .6s var(--ease) both; animation-delay: var(--d); }
.gallery__img {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in;
  transition: border-color .3s, box-shadow .35s var(--ease);
}
.gallery__img:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.gallery__img img { width: 100%; height: 100%; object-fit: contain; }
.gallery__item:hover .gallery__img img { transform: scale(1.04); }
.gallery__zoom { position: absolute; right: .8rem; bottom: .8rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: 1.2rem; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.gallery__img:hover .gallery__zoom, .gallery__img:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery--print .gallery__img { padding: 5%; }
.gallery--slides .gallery__img { aspect-ratio: 16 / 9; }
.gallery--slides .gallery__img img { object-fit: cover; }
.gallery--logos .gallery__img { aspect-ratio: 16 / 9; }
.gallery--logos .gallery__img img { width: auto; height: auto; max-width: 64%; max-height: 62%; }
.gallery figcaption { display: flex; flex-direction: column; margin-top: .7rem; line-height: 1.35; }
.gallery figcaption strong { font-size: .9rem; font-weight: 600; }
.gallery figcaption span { font-size: .8rem; color: var(--gray-500); }

/* Visor ampliado */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 3.5rem 1.5rem 2rem; background: rgba(12,12,12,.94); color: var(--white); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; height: 100%; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 9rem); object-fit: contain; border-radius: 8px; background: var(--white); padding: clamp(.6rem, 3vw, 2rem); animation: fadeUp .4s var(--ease); }
.lightbox figcaption { font-size: .9rem; color: var(--gray-300); text-align: center; }
.lightbox figcaption strong { color: var(--white); }
.lightbox figcaption span { margin-left: .6rem; color: var(--gray-500); }
.lightbox__nav, .lightbox__close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: var(--white); font-size: 1.2rem; transition: background .25s; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.15); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; font-size: 1.6rem; }

/* ---------------- PAQUETES ---------------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: var(--max); margin: 0 auto; align-items: stretch; }
.package {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 2.4rem 2rem 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.package:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.package__num { font-family: var(--serif); font-size: 1.1rem; color: var(--gray-500); letter-spacing: .1em; }
.package h3 { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.package__for { color: var(--gray-700); font-size: .95rem; min-height: 3em; }
.package .checks { flex: 1; padding: 1.2rem 0; border-top: 1px solid var(--line); margin-top: .3rem; }
.package--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.package--featured .package__for, .package--featured .package__num { color: var(--gray-300); }
.package--featured .checks { border-color: #333; }
.package--featured .checks li::before { background: var(--white); }
.package--featured .checks li::after { border-color: var(--ink); }
.package__flag {
  position: absolute; top: -.8rem; left: 2rem; background: var(--white); color: var(--ink); border: 1px solid var(--ink);
  font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 99px;
}
.packages__note { text-align: center; margin-top: 2.5rem; color: var(--gray-700); }
.packages__note a { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------------- PROCESO ---------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: var(--max); margin: 0 auto; position: relative; }
.steps::before { content: ""; position: absolute; top: 1.6rem; left: 12%; right: 12%; border-top: 1px dashed var(--gray-300); }
.steps li { text-align: center; position: relative; }
.steps h3 { font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .4rem; }
.steps p { color: var(--gray-700); font-size: .95rem; max-width: 15rem; margin: 0 auto; }

/* ---------------- TRAYECTORIA ---------------- */
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: var(--max); margin: 0 auto 1.5rem; }
.award { display: flex; gap: 1.2rem; align-items: center; background: var(--ink); color: var(--white); border-radius: 14px; padding: 1.6rem 1.8rem; position: relative; overflow: hidden; }
.award::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.award__icon { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--white); color: var(--ink); }
.award__icon svg { width: 1.6rem; height: 1.6rem; }
.award__tag { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-300); }
.award h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.1; margin: .2rem 0 .3rem; }
.award p:last-child { color: var(--gray-300); font-size: .9rem; }
.history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: var(--max); margin: 0 auto; }
.history__group { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.4rem 1.2rem; transition: border-color .3s; }
.history__group:hover { border-color: var(--ink); }
.history__group header { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.history__group header .service__icon { width: 2.4rem; height: 2.4rem; }
.history__group header h3 { flex: 1; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.1; }
.history__n { font-family: var(--serif); font-size: 1.1rem; color: var(--gray-500); }
.history__group ul { list-style: none; }
.history__group li { display: flex; flex-direction: column; gap: .35rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.history__group li:last-child { border-bottom: 0; }
.history__group strong { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.history__group li span { display: flex; flex-wrap: wrap; gap: .3rem; }
.history__group em { font-style: normal; font-size: .7rem; padding: .15rem .55rem; border-radius: 99px; background: var(--paper); color: var(--gray-700); }
.history__group em.is-win { background: var(--ink); color: var(--white); }

/* ---------------- EQUIPO ---------------- */
.team { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }
.team__intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.team__art { background: var(--paper); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; padding: 14%; overflow: hidden; }
.team__art img { filter: invert(1); mix-blend-mode: multiply; width: 100%; }
.team__intro > div > p:not(.kicker) { color: var(--gray-700); font-size: 1.05rem; margin: 1.1rem 0 1.4rem; }
.team__checks strong { font-weight: 600; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; display: flex; flex-direction: column; gap: .4rem; transition: border-color .3s, transform .35s var(--ease); }
.member:hover { border-color: var(--ink); transform: translateY(-4px); }
.member .service__icon { margin-bottom: .8rem; }
.member__n { font-family: var(--serif); font-size: 3.4rem; font-weight: 500; line-height: .9; }
.member h3 { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.member p { color: var(--gray-700); font-size: .9rem; }
.member--total { background: var(--ink); color: var(--white); border-color: var(--ink); justify-content: flex-end; }
.member--total p { color: var(--gray-300); }

/* ---------------- PREGUNTAS ---------------- */
.faq { max-width: 52rem; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { flex: none; width: 2rem; height: 2rem; border: 1px solid var(--ink); border-radius: 50%; position: relative; transition: background .3s, transform .4s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] summary i { background: var(--ink); color: var(--white); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item p { color: var(--gray-700); padding: 0 3.5rem 1.6rem 0; animation: fadeUp .4s var(--ease); }

/* ---------------- CTA ---------------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); text-align: center; padding: clamp(5rem, 10vw, 9rem) var(--pad); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .45; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0,0,0,.2), rgba(0,0,0,.75)); }
.cta__mark { height: 44px; filter: invert(1); }
.cta__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; max-width: 20ch; }
.cta p { color: var(--gray-300); max-width: 36rem; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }

/* ---------------- CONTACTO ---------------- */
.contact {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start;
  background: var(--paper); padding: clamp(4.5rem, 9vw, 8rem) max(var(--pad), calc((100% - var(--max)) / 2));
}
.contact > * { min-width: 0; }
.contact__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.contact__intro > p:not(.kicker) { color: var(--gray-700); margin: 1.2rem 0 1.6rem; font-size: 1.05rem; }
.contact__channels { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.8rem; }
.contact__channels a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem;
  transition: border-color .25s, transform .25s var(--ease);
}
.contact__channels a:hover { border-color: var(--ink); transform: translateX(4px); }
.contact__channels span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.contact__channels strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.4rem, 3.5vw, 2.6rem); display: flex; flex-direction: column; gap: 1.3rem; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form > label, .form__row > label { display: flex; flex-direction: column; gap: .45rem; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  font: inherit; font-size: 16px; /* 16px evita el zoom automático en iPhone */
  font-weight: 400; letter-spacing: 0; text-transform: none; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; background: var(--white); color: var(--ink); resize: vertical;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.form select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px; padding-right: 2.5rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.was-validated input:invalid, .was-validated select:invalid { border-color: #b3261e; }
.chips { border: 0; display: flex; flex-direction: column; gap: .7rem; }
.chips legend { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.chips legend span { color: var(--gray-500); font-weight: 400; text-transform: none; letter-spacing: 0; }
.chips__options { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips__options label { cursor: pointer; }
.chips__options input { position: absolute; opacity: 0; pointer-events: none; }
.chips__options span { display: inline-flex; align-items: center; min-height: 40px; padding: .5rem 1rem; font-size: .88rem; border: 1px solid var(--line); border-radius: 99px; transition: all .2s; }
.chips__options label:hover span { border-color: var(--ink); }
.chips__options input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips__options input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.was-validated .chips:has(input[required]:invalid) span { border-color: #b3261e; }
.form__status { font-size: .92rem; min-height: 1.4em; text-align: center; }
/* Consentimiento y nota de privacidad */
.form > label.consent { flex-direction: row; font-size: .86rem; font-weight: 400; letter-spacing: 0; text-transform: none; gap: .75rem; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: var(--gray-700); cursor: pointer; }
.consent input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--gray-300); border-radius: 5px; background: var(--white) center / 14px no-repeat; transition: background-color .2s, border-color .2s; cursor: pointer; }
.consent input:checked { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.was-validated .consent input:invalid { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.form__legal { display: flex; gap: .55rem; align-items: center; justify-content: center; font-size: .76rem; color: var(--gray-500); text-align: left; margin-top: -.4rem; }
.form__legal svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* Botón con indicador de envío */
.btn--send.is-loading { pointer-events: none; }
.btn--send.is-loading span { opacity: 0; }
.btn--send.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.form.is-sent { animation: enviado .9s var(--ease); }
@keyframes enviado { 0% { box-shadow: 0 0 0 0 rgba(29,107,58,.35), var(--shadow); } 100% { box-shadow: 0 0 0 18px rgba(29,107,58,0), var(--shadow); } }
.was-validated input:invalid, .was-validated select:invalid { animation: sacudir .35s; }
@keyframes sacudir { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form__status.is-ok { color: #1d6b3a; }
.form__status a { font-weight: 600; text-decoration: underline; }
.form__status.is-error { color: #b3261e; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--black); color: var(--gray-500); padding: clamp(3.5rem, 7vw, 5rem) var(--pad) 2rem; font-size: .88rem; }
.footer__top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: clamp(2.5rem, 6vw, 5rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--white); }
.footer__about p { margin: 1.1rem 0 1.4rem; max-width: 22rem; line-height: 1.7; color: #a29e96; }
.social { list-style: none; display: flex; gap: .55rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: var(--white); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.social a:hover { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sitemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.sitemap h2 { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.sitemap ul { list-style: none; display: grid; gap: .55rem; }
.sitemap a { color: #a29e96; transition: color .2s; }
.sitemap a:hover { color: var(--white); }
.sitemap li:empty { display: none; }
.footer__bottom { max-width: var(--max); margin: 0 auto; padding: 1.6rem 4.5rem 0 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .76rem; }
.footer a:hover { color: var(--white); }
.contact__social { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.8rem; font-size: .86rem; }
.contact__social span { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-500); }
.contact__social a { border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.contact__social a:hover { border-color: var(--ink); }

/* ---------------- AVISO DE COOKIES ---------------- */
.cookies {
  position: fixed; z-index: 60; left: 1rem; bottom: 1rem; width: min(26rem, calc(100% - 2rem));
  display: flex; flex-direction: column; gap: 1rem; padding: 1.2rem 1.3rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); font-size: .86rem; line-height: 1.55; color: var(--gray-700);
  opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .45s var(--ease);
}
.cookies.is-in { opacity: 1; transform: none; }
.cookies[hidden] { display: none !important; }
.cookies strong { color: var(--ink); }
.cookies a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cookies__no { background: transparent; color: var(--ink); border-color: var(--line); }
.cookies__no:hover { border-color: var(--ink); }

/* ---------------- WHATSAPP FLOTANTE / BARRA MÓVIL ---------------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 28px -8px rgba(31,168,85,.6); transition: transform .3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.mobile-bar { display: none; }

/* ---------------- MODAL ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 2rem; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; background: var(--white); border-radius: 12px; overflow: auto; overscroll-behavior: contain;
  width: min(1200px, 100%); max-height: calc(100svh - 4rem); display: grid; grid-template-columns: 1.4fr 1fr;
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .3s, transform .4s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: .7rem; right: .8rem; width: 44px; height: 44px; font-size: 1.9rem; line-height: 1; z-index: 2; border-radius: 50%; background: rgba(255,255,255,.9); }
.modal__gallery { background: var(--paper); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.modal__gallery > img { width: 100%; max-height: 68vh; object-fit: contain; background: var(--white); border-radius: 8px; opacity: 0; transition: opacity .4s; }
.modal__gallery > img.is-in { opacity: 1; }
.modal__thumbs { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.modal__thumbs button { flex: none; width: 76px; aspect-ratio: 1; opacity: .5; border: 1px solid transparent; border-radius: 6px; overflow: hidden; background: var(--white); transition: opacity .2s; }
.modal__thumbs button.is-active, .modal__thumbs button:hover { opacity: 1; border-color: var(--ink); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 3rem 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal__sector { font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.modal__body h3 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; line-height: 1.05; }
.modal__body h4 { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: .6rem; }
.modal__body > p:not(.modal__sector) { color: var(--gray-700); }
.modal__body .btn { align-self: flex-start; margin-top: .8rem; }

/* ---------------- APARICIÓN AL HACER SCROLL ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--stagger, 0ms), transform .8s var(--ease) var(--stagger, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.case.reveal .case__media { clip-path: inset(0 0 0 0 round 12px); }
.case.reveal:not(.is-visible) .case__media { clip-path: inset(8% 8% 8% 8% round 12px); }
.case.reveal .case__media { transition: clip-path 1.1s var(--ease), box-shadow .4s, transform .4s var(--ease); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
      .services[data-items="4"] { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider__track { grid-auto-columns: min(400px, 44vw); }
  .gallery--social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packages { grid-template-columns: 1fr; max-width: 34rem; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .steps::before { display: none; }
  .gallery--social { grid-template-columns: repeat(2, 1fr); }
  .modal__panel { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  /* backdrop-filter crea un contenedor para elementos fixed: lo quitamos para que el menú cubra toda la pantalla */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
  .nav--hidden { transform: translateY(-100%); box-shadow: none; }
  .hero, .spotlight, .contact, .app, .team__intro { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .team__art { max-width: 260px; }
  .brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app--flip .app__media { order: 0; }
  .app__hint { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin: .5rem; border-radius: 20px; padding: 2.4rem 1.4rem 0; }
  .hero__scroll { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(8,8,8,.88) 0%, rgba(8,8,8,.7) 60%, rgba(8,8,8,.35) 100%); }
  .wall {
    position: relative; top: auto; bottom: auto; right: auto; width: auto; height: 330px;
    margin: 2.6rem -3.5rem -1.5rem; rotate: -5deg;
    grid-template-columns: none; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .8rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  }
  .wall__col--3 { display: none; }
  .stage { width: 100%; max-width: 460px; margin: 2.6rem auto 2rem; }
  .stage__frame, .stage__phone, .stage:hover .stage__frame, .stage:hover .stage__phone { transform: none; }
  .stage__frame { width: 90%; top: 8%; }
  .stage__phone { width: 31%; border-radius: 22px; padding: 5px; }
  .stage__phone::before { top: 9px; height: 10px; }
  .stage__screen { border-radius: 17px; }
  .stage__chips { right: 0; gap: .35rem; }
  .stage__chips li { font-size: .58rem; padding: .38rem .65rem; }
  .stage__chips li:nth-child(n+4) { display: none; }
  .stage__cap { left: 0; padding: .7rem .95rem .8rem; }
  .stage__cap strong { font-size: 1.2rem; }
  .wall__col { overflow: visible; }
  .wall__track { flex-direction: row; height: 100%; width: max-content; gap: .8rem; animation-name: wallLeft; animation-duration: 40s; }
  .wall__col--2 .wall__track { animation-duration: 46s; }
  .wall__card { height: 100%; padding: .4rem; border-radius: 10px; }
  .wall__card img { height: 100%; width: auto; }
  .wall__card.is-cover { aspect-ratio: 1; }
  .wall__card.is-cover img { width: 100%; }
  .wall__card.is-logo { aspect-ratio: 16 / 10; padding: .6rem; }
  .wall__card.is-logo img { height: auto; max-height: 70%; }
  .contact__intro { position: static; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; background: var(--white);
    flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem; padding: 2rem;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links > a:not(.btn) { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links.is-open > * { animation: fadeUp .5s var(--ease) both; }
  .nav__links.is-open > :nth-child(2) { animation-delay: .04s; } .nav__links.is-open > :nth-child(3) { animation-delay: .08s; }
  .nav__links.is-open > :nth-child(4) { animation-delay: .12s; } .nav__links.is-open > :nth-child(5) { animation-delay: .16s; }
  .nav__links.is-open > :nth-child(6) { animation-delay: .2s; } .nav__links.is-open > :nth-child(7) { animation-delay: .24s; }
  .nav__wa { display: block; font-family: var(--sans) !important; font-size: .95rem !important; color: var(--wa) !important; font-weight: 600; }
}
@media (max-width: 600px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.15rem; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.3rem); margin-top: 1.3rem; }
  .hero__eyebrow { font-size: .62rem; letter-spacing: .14em; }
  .hero__lead { font-size: 1.02rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__proof { justify-content: space-between; gap: .8rem; margin-top: 2rem; }
  .hero__proof strong { font-size: 1.9rem; }
  .hero__proof span { font-size: .72rem; }
  /* Pestañas de servicios: fila deslizable */
  .service-tabs { justify-content: flex-start; overflow-x: auto; margin: -1rem calc(-1 * var(--pad)) 1.8rem; padding: 0 var(--pad) .4rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .service-tabs::-webkit-scrollbar { display: none; }
  .service-tab { flex: none; scroll-snap-align: center; font-size: .85rem; }
  .service-panel { min-height: 0; }
  .service-panel__head { flex-wrap: wrap; }
  .service-panel__head h3 { font-size: 1.6rem; }
  .service-panel__head .link-arrow { width: 100%; padding-left: 3.6rem; border: 0; }
  .services, .services[data-items="4"], .services[data-items="2"] { grid-template-columns: 1fr; gap: .8rem; }
  .service { padding: 1.3rem 1.3rem 1.4rem; }
  .service h4 { font-size: 1.35rem; }
  /* Marcas */
  .brands__grid li { aspect-ratio: 16 / 10; }
  .brands__grid img { max-width: 68%; max-height: 30px; opacity: .75; }
  .brands__grid .brands__fill { font-size: 1rem; }
  /* Carrusel de proyectos */
  .slider-head { align-items: center; }
  .slider-head .section-title { font-size: 1.9rem; }
  .slider-btn { width: 44px; height: 44px; }
  .slider__track { grid-auto-columns: 78vw; column-gap: .8rem; }
  .slider { -webkit-mask-image: none; mask-image: none; }
  .case__body { padding: 1.2rem 1.2rem 1.4rem; }
  /* Trayectoria */
  .awards { grid-template-columns: 1fr; gap: .7rem; }
  .award { padding: 1.2rem; gap: 1rem; }
  .award__icon { width: 2.8rem; height: 2.8rem; }
  .award h3 { font-size: 1.35rem; }
  .history { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: .3rem var(--pad) 1rem; scroll-padding-inline: var(--pad); scrollbar-width: none; gap: .8rem; }
  .history::-webkit-scrollbar { display: none; }
  .history__group { scroll-snap-align: start; }
  /* Equipo */
  .team__art { display: none; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .member h3 { font-size: .7rem; letter-spacing: .1em; }
  .member { padding: 1.2rem; }
  .member .service__icon { width: 2.4rem; height: 2.4rem; }
  .member__n { font-size: 2.6rem; }
  .member p { font-size: .82rem; }
  .hero__checks { gap: .5rem .9rem; }
  /* Software */
  .app__media--stack { padding-bottom: 22%; }
  .app__media--stack .browser--front { width: 50%; right: -2%; }
  .browser__bar { height: 28px; }
  .browser__screen { aspect-ratio: 4 / 3.4; }
  .app__body .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .gallery { gap: 1rem; }
  .gallery--print, .gallery--logos, .gallery--slides, .gallery--social { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .gallery--logos .gallery__img img { max-width: 78%; }
  .gallery figcaption strong { font-size: .82rem; }
  .gallery figcaption span { font-size: .74rem; }
  .gallery__zoom { opacity: 1; transform: none; width: 28px; height: 28px; font-size: 1rem; }
  .lightbox { grid-template-columns: 1fr; padding: 4rem .8rem 5rem; }
  .lightbox__nav { position: absolute; bottom: 1.2rem; }
  .lightbox__nav--prev { left: calc(50% - 60px); } .lightbox__nav--next { right: calc(50% - 60px); }

  .tabs { justify-content: flex-start; }
  .tab { padding: .5rem .95rem; font-size: .8rem; }
  .faq__item p { padding-right: 0; }
  .cta__actions .btn { width: 100%; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100svh; height: 100svh; border-radius: 0; }
  .modal__gallery { padding: 1rem; }
  .modal__body { padding: 1.6rem 1.3rem 6rem; }
  .modal__body h3 { font-size: 2rem; }

  /* WhatsApp: en celular usamos la barra inferior en vez del botón flotante */
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 45;
    padding: .4rem; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.35);
    transition: transform .4s var(--ease), opacity .3s;
  }
  .no-scroll .mobile-bar, .mobile-bar.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: 99px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-bar__wa { background: var(--wa); color: var(--white); }
  .mobile-bar__wa svg { width: 20px; height: 20px; }
  .mobile-bar__cta { background: var(--ink); color: var(--white); }
  .footer { padding-bottom: 6.5rem; }
  .footer__top { grid-template-columns: 1fr; padding-bottom: 2.2rem; }
  .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .footer__bottom { padding-right: 0; flex-direction: column; text-align: center; align-items: center; }
  .cookies { left: .75rem; right: .75rem; width: auto; bottom: calc(5.4rem + env(safe-area-inset-bottom)); padding: 1rem 1.1rem; }
}
@media (hover: none) {
  .service:hover, .package:hover, .case__media:hover, .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero__copy > *, .hero__visual { opacity: 1 !important; transform: none !important; }
  .browser.is-scroll .browser__screen img, .stage__screen img { animation: none !important; }
  .browser--hero .browser__screen img, .phone__screen img { transform: none !important; }
  .shimmer img { opacity: 1; }
  .wall__track, .hero__bg, .rotator::after, .mouse i { animation: none !important; }
  .btn--send.is-loading::after { animation: girar 1.4s linear infinite !important; }
  .loader { display: none; }
}
