/* =========================================================
   Firefly Agency — estilos base
   Tokens, tipografía y componentes tomados del proyecto Framer
   ========================================================= */

@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
  /* Colores (tokens de Framer) */
  --white: rgb(249, 249, 249);
  --white-80: rgba(249, 249, 249, .8);
  --white-60: rgba(249, 249, 249, .6);
  --white-10: rgba(249, 249, 249, .1);
  --black: rgb(9, 9, 9);
  --black-80: rgba(9, 9, 9, .8);
  --black-60: rgba(9, 9, 9, .66);
  --black-50: rgba(9, 9, 9, .5);
  --black-40: rgba(9, 9, 9, .4);
  --purple: rgb(105, 31, 255);
  --purple-10: rgba(105, 31, 255, .1);
  --purple-20: rgba(107, 33, 255, .2);
  --purple-soft: rgb(177, 138, 255);
  --grey: rgb(41, 41, 43);
  --dark-grey: rgb(30, 30, 30);
  --ui-1: rgb(245, 244, 243);
  --ui-2: rgb(217, 217, 217);
  --ui-3: rgb(227, 227, 227);
  --card-body: rgb(99, 97, 94);
  --body: rgb(104, 104, 106);
  --light-grey: rgb(234, 234, 234);
  --light-grey-30: rgba(234, 234, 234, .3);
  --mild-grey: rgb(250, 250, 249);
  --bg: #fff;

  --pad-x: 40px;
  --max: 1800px;
  --ease-page: cubic-bezier(.73, 0, .33, 1);
  --ease-loader: cubic-bezier(.96, -.02, .38, 1.01);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --ff: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --feat: "ss01", "ss02", "ss03", "ss04", "ss07", "salt";
}

@media (max-width: 1199.98px) { :root { --pad-x: 30px; } }
@media (max-width: 809.98px)  { :root { --pad-x: 20px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--ff);
  font-variation-settings: "opsz" 32;   /* = Inter Display */
  font-feature-settings: var(--feat);
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  background: var(--purple);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--purple); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 50px; background: var(--black); color: #fff; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }

main { position: relative; background: var(--bg); }

/* ---------- Tipografía (presets de Framer) ---------- */
.t-h1 { font-weight: 700; font-size: 260px; line-height: 200px; letter-spacing: -9px; font-feature-settings: "ss01", "ss07", "cv11", "salt", "cv06"; }
.t-h3 { font-weight: 600; font-size: 63px; line-height: 90px; letter-spacing: -3px; font-feature-settings: "blwf", "cv09", "salt"; color: var(--dark-grey); }
.t-h4 { font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -1.2px; font-feature-settings: "ss01", "ss07", "salt"; color: var(--dark-grey); }
.t-h5 { font-weight: 600; font-size: 76px; line-height: 74px; letter-spacing: -3px; font-feature-settings: "salt"; color: var(--dark-grey); }
.t-h6 { font-weight: 700; font-size: 40px; line-height: 34px; letter-spacing: -1px; color: var(--white); }
.t-h7 { font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: -.1px; color: var(--grey); }
.t-h9 { font-weight: 700; font-size: 30px; line-height: 35px; letter-spacing: -1px; color: var(--grey); }
.t-p30 { font-weight: 600; font-size: 30px; line-height: 35px; letter-spacing: -1px; color: var(--grey); font-feature-settings: "blwf", "cv09", "cv03", "cv04", "cv11"; }
.t-p18s { font-weight: 600; font-size: 18px; line-height: 22px; letter-spacing: -.1px; }
.t-p18m { font-weight: 500; font-size: 18px; line-height: 26px; letter-spacing: -.1px; color: var(--grey); }
.t-p18l { font-weight: 500; font-size: 18px; line-height: 24px; letter-spacing: -.1px; color: var(--body); }
.t-p17m { font-weight: 500; font-size: 17px; line-height: 20px; letter-spacing: -.1px; }
.t-p16m { font-weight: 500; font-size: 16px; line-height: 22px; letter-spacing: -.1px; color: var(--black-60); }
.t-p15s { font-weight: 600; font-size: 15px; line-height: 25px; letter-spacing: -.1px; color: var(--black-80); }
.t-p14s { font-weight: 600; font-size: 14px; line-height: 24px; letter-spacing: -.1px; color: var(--purple); font-feature-settings: "salt"; }
.t-p13m { font-weight: 500; font-size: 13px; line-height: 15px; color: var(--black-60); font-feature-settings: "salt"; }
.t-p12b { font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: -.1px; color: var(--black); }
.t-p10b { font-weight: 700; font-size: 10px; line-height: 12px; letter-spacing: -.1px; font-feature-settings: "cv01"; }
.t-center { text-align: center; }
.indent { text-indent: 4.6em; }

@media (max-width: 1439.98px) {
  .t-h1 { font-size: 200px; line-height: 170px; }
  .t-h5 { font-size: 90px; }
}
@media (max-width: 1260px) { .t-h3 { font-size: 88px; } }
@media (max-width: 1210px) { .t-h5 { font-size: 80px; line-height: 70px; } }
@media (max-width: 1199.98px) {
  .t-h1 { font-size: 148px; line-height: 130px; letter-spacing: -5px; }
  .t-h3 { font-size: 80px; line-height: 70px; }
  .t-h6 { font-size: 30px; line-height: 24px; letter-spacing: -.6px; }
}
@media (max-width: 809.98px) {
  .t-h1 { font-size: 82px; line-height: 70px; letter-spacing: -3px; }
  .t-h3 { font-size: 56px; line-height: 50px; letter-spacing: -2px; }
  .t-h4 { font-size: 30px; line-height: 32px; letter-spacing: -1px; }
  .t-h5 { font-size: 56px; line-height: 50px; letter-spacing: -2px; }
  .t-h6 { font-size: 20px; line-height: 20px; letter-spacing: -.4px; }
  .indent { text-indent: 0; }
}

/* ---------- Layout ---------- */
.section { position: relative; width: 100%; background: var(--bg); padding-left: var(--pad-x); padding-right: var(--pad-x); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; position: relative; }
.line { height: 1px; width: 100%; background: var(--light-grey); opacity: .65; }
.line--ui2 { background: var(--ui-2); opacity: 1; }

.sep { position: relative; display: flex; align-items: center; width: 100%; max-width: var(--max); margin: 0 auto; }
.sep .line { flex: 1; }
.plus { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%); z-index: 1; }
.plus::before, .plus::after { content: ""; position: absolute; left: 4px; top: 0; width: 1px; height: 9px; border-radius: 16px; background: var(--dark-grey); }
.plus::after { transform: rotate(90deg); }

.pattern { position: absolute; inset: 0; background: url("../img/pattern.svg") 0 0 / 126px 126px repeat; opacity: .05; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }

/* ---------- Highlighter tag (■ Texto) ---------- */
.hl { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.hl::before { content: ""; width: 13px; height: 13px; border-radius: 3px; background: var(--purple); flex: none; }

/* ---------- Header de sección: tag · (CQ®) · año ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.sec-head > * { flex: 1; }
.sec-head .mid { text-align: center; }
.sec-head .yr { text-align: right; }
@media (max-width: 809.98px) { .sec-head .mid { display: none; } }

/* ---------- Header tag (pill con icono) ---------- */
.htag { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 10px; background: var(--purple-10); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.htag svg { width: 20px; height: 20px; flex: none; }

/* ---------- Botón principal (pill + círculo morado) ---------- */
.btn {
  --btn-bg: var(--ui-1);
  --btn-fg: var(--black);
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  padding: 7px 24px 7px 7px; border-radius: 50px; overflow: hidden;
  background: var(--btn-bg); color: var(--btn-fg);
  isolation: isolate; white-space: nowrap;
}
.btn--sec { box-shadow: inset 0 0 4px rgba(0, 0, 0, .05); }
.btn--lg { --btn-bg: var(--light-grey); }
.btn__fill {
  position: absolute; left: 5px; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  border-radius: 35px; background: var(--purple); z-index: -1;
  transition: width .7s cubic-bezier(.34, 1.36, .64, 1), left .7s cubic-bezier(.34, 1.36, .64, 1), height .7s cubic-bezier(.34, 1.36, .64, 1), margin .7s cubic-bezier(.34, 1.36, .64, 1), border-radius .7s;
}
.btn__icon { position: relative; width: 40px; height: 40px; padding: 11px; flex: none; overflow: hidden; color: #fff; }
.btn__icon svg { position: absolute; top: 11px; left: 11px; width: 18px; height: 18px; transition: transform .6s var(--ease-out); }
.btn__icon svg + svg { transform: translateX(-28px); }
.btn__txt { position: relative; height: 20px; overflow: hidden; display: block; }
.btn__txt span { display: block; height: 20px; font-weight: 500; font-size: 17px; line-height: 20px; letter-spacing: -.1px; transition: transform .6s var(--ease-out); }
.btn__txt span + span { color: #fff; }
@media (hover: hover) {
  .btn:hover .btn__fill { left: 0; width: 100%; height: 100%; margin-top: 0; top: 0; border-radius: 50px; }
  .btn:hover .btn__icon svg:first-child { transform: translateX(28px); }
  .btn:hover .btn__icon svg + svg { transform: none; }
  .btn:hover .btn__txt span { transform: translateY(-25px); }
}
.btn:active { transform: scale(.98); }

/* ---------- Dots ---------- */
.dots { display: inline-flex; gap: 6px; align-items: center; }
.dots i { width: 10px; height: 11px; border-radius: 13px; background: var(--ui-2); }
.dots i.on { background: var(--purple); }

/* ---------- Pill tag ---------- */
.ptag { display: inline-flex; align-items: center; padding: 9px 20px; border-radius: 44px; background: var(--light-grey); box-shadow: inset 0 0 4px rgba(0, 0, 0, .05); white-space: nowrap; }

/* ---------- Bullets ---------- */
.bullets { display: flex; flex-direction: column; gap: 20px; list-style: none; padding-bottom: 10px; max-width: 420px; }
.bullets li { display: flex; align-items: center; gap: 10px; }
.bullets .ico { display: grid; place-items: center; padding: 5px; border-radius: 50px; background: var(--purple-20); flex: none; }
.bullets .ico svg { width: 13px; height: 13px; }
.bullets .t-p16m { color: var(--grey); }

/* =========================================================
   Pre-loader
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; pointer-events: none; }
.loader__row { flex: 1; display: flex; }
.loader__row i { flex: 1; background: var(--purple); margin: 0 -.5px; }
.loader.is-done { display: none; }
html.no-loader .loader { display: none; }

/* =========================================================
   Navegación
   ========================================================= */
.nav { position: absolute; top: 34px; left: 34px; right: 34px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav__logo { display: block; width: 156px; height: 31px; }
.nav__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.nav__right { display: flex; align-items: center; gap: 60px; }
.nav__menu { display: flex; gap: 50px; list-style: none; }
.mlink { display: flex; align-items: flex-start; gap: 2px; color: var(--white); opacity: .72; transition: opacity .4s; }
.mlink[aria-current="page"] { opacity: 1; }
.mlink__roll { height: 22px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.mlink__roll span { display: block; font-weight: 600; font-size: 18px; line-height: 22px; letter-spacing: -.1px; transition: transform .6s cubic-bezier(.34, 1.2, .64, 1); }
.mlink sup { font-weight: 700; font-size: 10px; line-height: 12px; letter-spacing: -.1px; vertical-align: top; }
@media (hover: hover) {
  .mlink:hover { opacity: 1; }
  .mlink:hover .mlink__roll span { transform: translateY(-28px); }
}
.nav--dark .mlink { color: var(--black); }

/* Selector de idioma */
.lang { display: inline-flex; align-items: center; padding: 4px; gap: 2px; border-radius: 50px; background: var(--white-10); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(249, 249, 249, .15); }
.lang a { display: block; padding: 6px 11px; border-radius: 50px; font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .2px; color: var(--white-60); transition: background .3s, color .3s; }
.lang a[aria-current="true"] { background: var(--white); color: var(--black); }
.lang a:not([aria-current="true"]):hover { color: var(--white); }
.nav--dark .lang { background: var(--ui-1); border-color: var(--light-grey); }
.nav--dark .lang a { color: var(--black-50); }
.nav--dark .lang a[aria-current="true"] { background: var(--black); color: var(--white); }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50px; background: var(--ui-1); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--black); transition: transform .4s var(--ease-out), top .4s var(--ease-out), opacity .2s; }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mnav { display: none; }

@media (max-width: 1199.98px) {
  .nav { top: 0; left: 0; right: 0; padding: 20px var(--pad-x); }
  .nav__right .nav__menu, .nav__right > .btn { display: none; }
  .nav__right { gap: 12px; }
  .nav__burger { display: block; }
  .mnav {
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    position: fixed; inset: 0; z-index: 29; padding: 110px var(--pad-x) 40px;
    background: var(--black); color: var(--white);
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-page); visibility: hidden;
  }
  .nav.is-open + .mnav, .mnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .mnav { padding-top: 20px; z-index: 60; }
  .mnav__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
  .mnav__close span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .mnav__close span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .mnav ul { flex: 1; }
  .mnav ul { list-style: none; display: flex; flex-direction: column; }
  .mnav li { border-bottom: 1px solid rgba(249, 249, 249, .12); }
  .mnav li a { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0; font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -1.5px; }
  .mnav li a sup { font-size: 12px; letter-spacing: 0; color: var(--purple-soft); }
  .mnav__foot { display: flex; flex-direction: column; gap: 20px; }
  .mnav__foot a.mail { color: var(--white-60); font-weight: 500; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 1; background: var(--bg); display: flex; }
.hero__box { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; overflow: hidden; background: var(--black); }
.hero__bar { position: absolute; top: 0; left: 0; width: 100%; height: 7px; background: var(--purple); z-index: 3; }
.hero__img { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: var(--black-80); -webkit-mask-image: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .38) 68%, #000 100%); mask-image: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .38) 68%, #000 100%); }
.hero__chroma { position: absolute; inset: -20%; z-index: 1; opacity: .3; mix-blend-mode: screen; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(105, 31, 255, .9), transparent 70%),
    radial-gradient(35% 45% at 80% 70%, rgba(255, 70, 180, .7), transparent 70%),
    radial-gradient(30% 40% at 60% 20%, rgba(60, 120, 255, .7), transparent 70%);
  filter: blur(40px); animation: chroma 18s ease-in-out infinite alternate; }
@keyframes chroma { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6%, -4%) rotate(8deg); } 100% { transform: translate(-5%, 5%) rotate(-6deg); } }
.hero__blur { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; pointer-events: none; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.hero__spacer { height: 54px; }
.hero__content { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 10px; }
.hero__left { flex: 1; display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.hero__title { color: var(--white); mix-blend-mode: difference; white-space: nowrap; }
.hero__title .ast { color: var(--purple); mix-blend-mode: normal; }
.hero__right { width: 28.43%; display: flex; flex-direction: column; align-items: flex-end; gap: 60px; }
.hero__body { display: flex; flex-direction: column; align-items: flex-end; gap: 30px; max-width: 340px; }
.hero__desc { color: var(--white-80); text-align: right; text-wrap: balance; }
.hero__globe { padding-right: 30px; perspective: 600px; }
.hero__globe svg { width: 60px; height: 38px; display: block; }
.hero__arrow { display: block; width: 31px; height: 30px; color: var(--white); }
@media (max-width: 1199.98px) {
  .hero__box { padding: 30px; }
  .hero__right { gap: 80px; width: 34%; }
}
@media (max-width: 809.98px) {
  .hero__box { padding: 20px; }
  .hero__content { flex-direction: column; align-items: stretch; gap: 30px; }
  .hero__right { width: 100%; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; gap: 20px; }
  .hero__body { align-items: flex-end; }
  .hero__title { white-space: normal; }
}

/* =========================================================
   Sección "About" (intro)
   ========================================================= */
.about { z-index: 4; padding-top: 100px; display: flex; flex-direction: column; align-items: center; }
.overlap { position: absolute; left: 0; top: 0; width: 100%; height: 834px; display: flex; pointer-events: none; z-index: 0; }
.overlap i { flex: 1; height: 100%; background: var(--bg); will-change: transform; }
.detailing { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; display: flex; justify-content: center; }
.detailing svg { flex: none; width: 3000px; height: auto; }
.about > *:not(.overlap):not(.detailing) { position: relative; z-index: 1; }
.intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; width: 100%; max-width: var(--max); padding-top: 40px; }
.intro__content { width: 71.5%; display: flex; flex-direction: column; gap: 50px; }
.intro__top { display: flex; flex-direction: column; align-items: flex-start; gap: 64px; }
.intro__cols { display: flex; gap: 85px; }
.intro__col { width: 40%; display: flex; flex-direction: column; gap: 40px; }
.tcard { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.about__imgs { display: flex; gap: 20px; width: 100%; max-width: var(--max); padding: 110px 0 80px; }
.about__imgs a { flex: 1; height: 264px; border-radius: 6px; overflow: hidden; position: relative; display: block; }
.about__imgs img { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; will-change: transform; }
@media (max-width: 1199.98px) {
  .about { padding-top: 80px; }
  .intro { flex-direction: column; gap: 40px; }
  .intro__content { width: 100%; }
  .intro__cols { gap: 40px; }
  .intro__col { width: 50%; }
  .about__imgs { padding: 80px 0 60px; }
}
@media (max-width: 809.98px) {
  .about { padding-top: 50px; }
  .intro__cols { flex-direction: column; gap: 30px; }
  .intro__col { width: 100%; }
  .about__imgs { flex-direction: column; padding: 50px 0; }
  .about__imgs a { flex: none; }
}

/* =========================================================
   Clientes (ticker)
   ========================================================= */
.clients { z-index: 3; padding: 120px 0; overflow: hidden; }
.ticker { overflow: hidden; position: relative; }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker--xl .ticker__track > * { width: 280px; height: 180px; display: grid; place-items: center; flex: none; }
.ticker--xl img { max-width: 150px; max-height: 46px; object-fit: contain; opacity: .85; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.ticker--xl img:hover { opacity: 1; filter: none; }
.ticker--s { width: 100%; max-width: 600px; height: 80px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); }
.ticker--s .ticker__track { gap: 40px; padding: 10px; height: 100%; align-items: center; }
.ticker--s .ticker__track > * { width: 80px; height: 60px; display: grid; place-items: center; flex: none; }
.ticker--s img { max-width: 80px; max-height: 26px; object-fit: contain; filter: grayscale(1); opacity: .8; }
@media (max-width: 1199.98px) { .clients { padding: 100px 0; } }
@media (max-width: 809.98px) { .clients { padding: 50px 0; } .ticker--xl .ticker__track > * { width: 200px; height: 130px; } }

/* =========================================================
   Cómo trabajamos (process)
   ========================================================= */
.process { z-index: 3; padding-bottom: 100px; display: flex; flex-direction: column; gap: 80px; overflow: hidden; }
.process__head { display: flex; flex-direction: column; gap: 34px; width: 100%; max-width: var(--max); margin: 0 auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: var(--max); margin: 0 auto; }
.pcard { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 120px; padding: 24px 24px 34px; border-radius: 20px; background: var(--ui-1); border: 1px solid var(--light-grey-30); overflow: hidden; }
.pcard > *:not(.pattern) { position: relative; z-index: 2; }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pcard__bottom { display: flex; flex-direction: column; gap: 20px; }
.pcard__body { color: var(--card-body); }
@media (max-width: 1199.98px) {
  .process { padding-bottom: 80px; }
  .grid3 { grid-template-columns: 1fr; }
  .pcard { gap: 60px; }
}
@media (max-width: 809.98px) { .process { gap: 50px; padding-bottom: 50px; } }

/* =========================================================
   Imagen sticky a pantalla completa
   ========================================================= */
.fullimg { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 3; overflow: hidden; background: var(--black); padding: 0; }
.fullimg__in { position: absolute; inset: 0; overflow: hidden; }
.fullimg img { width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }

/* =========================================================
   Portafolio
   ========================================================= */
.portfolio { z-index: 4; padding-top: 120px; padding-bottom: 160px; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.portfolio > *:not(.overlap):not(.detailing) { position: relative; z-index: 1; }
.portfolio__head { display: flex; flex-direction: column; gap: 34px; width: 100%; max-width: var(--max); }
.intro-block { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; max-width: var(--max); padding: 40px 0 10px; }
.intro-block__txt { display: flex; flex-direction: column; align-items: center; gap: 36px; width: 100%; }
.intro-block__copy { display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 1000px; }
.intro-block__copy p { max-width: 800px; }
.clients-s { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 600px; }

.works { display: flex; flex-direction: column; gap: 30px; width: 100%; max-width: var(--max); }
.works__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; position: sticky; transform-origin: 50% 0; }
.works__row--a { top: 70px; z-index: 1; }
.works__row--b { top: 110px; z-index: 2; }
.wcard { position: relative; display: flex; flex-direction: column; gap: 20px; height: 526px; padding: 10px 10px 20px; border-radius: 20px; background: var(--ui-1); border: 1px solid var(--light-grey-30); overflow: hidden; }
.wcard > *:not(.pattern) { position: relative; z-index: 1; }
.wcard__img { flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.wcard:hover .wcard__img img { transform: scale(1.04); }
.wcard__bottom { display: flex; align-items: flex-start; gap: 20px; padding: 0 16px; }
.wcard__bottom .dots { padding: 5px 10px 0 0; }
.wcard__txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wcard__txt h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard__tags { display: flex; gap: 10px; }
@media (max-width: 1199.98px) {
  .portfolio { padding-top: 80px; padding-bottom: 80px; }
  .works__row { grid-template-columns: 1fr; position: relative; top: auto; }
  .works { gap: 20px; }
  .wcard { height: auto; }
  .wcard__img { aspect-ratio: 16 / 11; flex: none; }
}
@media (max-width: 809.98px) {
  .portfolio { padding-top: 50px; padding-bottom: 50px; gap: 40px; }
  .wcard__bottom { flex-wrap: wrap; padding: 0 6px; }
  .wcard__tags { width: 100%; flex-wrap: wrap; gap: 8px; }
}

/* =========================================================
   Cifras
   ========================================================= */
.stats { z-index: 4; padding-bottom: 160px; }
.intro--stats { gap: 258px; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 150px; width: 100%; max-width: var(--max); margin: 0 auto; padding-top: 100px; }
.stat { display: flex; flex-direction: column; gap: 32px; }
.stat__num { display: flex; flex-direction: column; gap: 10px; }
.stat__num strong { display: block; font-weight: 600; font-size: 128px; line-height: 148px; letter-spacing: -10px; color: var(--dark-grey); font-feature-settings: "zero", "tnum", "cv06", "cv13", "cv07", "cv05", "cv10", "cv12", "cv08", "cv11", "cv04", "cv03", "cv02", "cv09"; font-variant-numeric: tabular-nums; }
.stat__txt { display: flex; flex-direction: column; gap: 5px; }
.stat__txt .t-p18m { color: var(--body); }
.stat__txt .t-p30 { color: var(--dark-grey); }
@media (max-width: 1439.98px) { .stats__grid { gap: 80px; } }
@media (max-width: 1199.98px) {
  .stats { padding-bottom: 80px; }
  .intro--stats { gap: 40px; }
  .stats__grid { grid-template-columns: 1fr; gap: 60px; padding-top: 60px; }
}
@media (max-width: 809.98px) { .stats { padding-bottom: 60px; } .stat__num strong { font-size: 96px; line-height: 110px; letter-spacing: -6px; } }

/* =========================================================
   Servicios
   ========================================================= */
.services { z-index: 4; background: var(--ui-1); padding-top: 40px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 80px; }
.services > .plus { top: -4px; transform: translateX(-50%); z-index: 2; }
.services > *:not(.pattern) { position: relative; z-index: 2; }
.services > .plus { position: absolute; }
.services__content { display: flex; align-items: flex-start; gap: 180px; width: 100%; max-width: var(--max); }
.services__left { flex: 1; max-width: 430px; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.services__left .t-p18l { color: var(--card-body); max-width: 420px; }
.services__left .line { opacity: 1; background: var(--ui-2); }
.services__right { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.scard { display: flex; align-items: center; gap: 10px; height: 102px; padding: 8px 24px 8px 8px; border-radius: 10px; background: var(--light-grey); box-shadow: inset 0 0 4px rgba(0, 0, 0, .05); }
.scard__in { flex: 1; display: flex; align-items: center; gap: 20px; min-width: 0; }
.scard__img { width: 124px; height: 82px; border-radius: 5px; overflow: hidden; flex: none; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; }
.scard__txt { display: flex; flex-direction: column; gap: 4px; }
.scard__txt .t-p17m { color: var(--black-60); }
@media (max-width: 1439.98px) { .services__content { gap: 100px; } }
@media (max-width: 1199.98px) {
  .services { padding-bottom: 80px; }
  .services__content { flex-direction: column; gap: 50px; }
  .services__left { max-width: none; }
  .services__right { width: 100%; }
}
@media (max-width: 809.98px) {
  .services { gap: 50px; padding-bottom: 50px; }
  .scard { height: auto; padding: 8px; align-items: flex-start; }
  .scard__img { width: 90px; height: 70px; }
  .scard .dots { display: none; }
  .scard__in { gap: 14px; }
}

/* =========================================================
   Galería 3D
   ========================================================= */
.gallery { z-index: 4; padding: 0 0 240px; display: flex; flex-direction: column; align-items: center; gap: 48px; overflow: hidden; }
.gallery__container { width: 100%; padding: 10px var(--pad-x); display: flex; flex-direction: column; align-items: center; gap: 90px; }
.gallery__head { display: flex; flex-direction: column; gap: 34px; width: 100%; max-width: var(--max); }
.ring { --r: 640px; position: relative; width: 100%; height: 460px; perspective: 1400px; perspective-origin: 50% 40%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden; }
.ring:active { cursor: grabbing; }
.ring__in { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ring__item { max-width: none; position: absolute; left: -130px; top: -185px; width: 260px; height: 370px; border-radius: 20px; object-fit: cover; backface-visibility: hidden; pointer-events: none; box-shadow: 0 20px 40px rgba(0, 0, 0, .14); }
@media (max-width: 1199.98px) { .gallery { padding-bottom: 140px; } .ring { --r: 520px; height: 420px; } }
@media (max-width: 809.98px) {
  .gallery { padding-bottom: 100px; gap: 30px; }
  .gallery__container { gap: 50px; }
  .ring { --r: 380px; height: 340px; perspective: 1000px; }
  .ring__item { width: 180px; height: 256px; left: -90px; top: -128px; border-radius: 14px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { z-index: 4; padding-bottom: 120px; overflow: hidden; }
.faq__in { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; width: 100%; max-width: var(--max); margin: 0 auto; }
.faq__in > .hl { padding-top: 40px; }
.faq__list { width: 66.3%; display: flex; flex-direction: column; }
.qa { border-bottom: 1px solid rgba(234, 234, 234, .65); }
.qa button { width: 100%; display: flex; align-items: center; gap: 20px; padding: 22px 0; text-align: left; }
.qa__n { width: 10%; flex: none; }
.qa__q { flex: 1; padding-left: 0; }
.qa__plus { position: relative; width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease-out); }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; left: 8px; top: 0; width: 2px; height: 18px; border-radius: 40px; background: var(--grey); transition: transform .5s var(--ease-out); }
.qa__plus::after { transform: rotate(90deg); }
.qa[data-open] .qa__plus { transform: rotate(45deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 38px 26px 10%; color: var(--body); max-width: 760px; }
.qa[data-open] .qa__a { grid-template-rows: 1fr; }
@media (max-width: 1199.98px) {
  .faq { padding-bottom: 80px; }
  .faq__in { flex-direction: column; gap: 10px; }
  .faq__list { width: 100%; }
}
@media (max-width: 809.98px) {
  .faq { padding-bottom: 50px; }
  .qa__n { width: 28px; }
  .qa__a p { padding-left: 48px; padding-right: 0; }
}

/* Espaciador decorativo (barras que suben sobre la imagen) */
.spacer { z-index: 4; height: 260px; padding: 0; overflow: visible; }
@media (max-width: 1199.98px) { .spacer { height: 180px; } }
@media (max-width: 809.98px) { .spacer { height: 130px; } }

/* =========================================================
   Contacto
   ========================================================= */
.contact { z-index: 4; padding-bottom: 140px; display: flex; flex-direction: column; align-items: center; gap: 60px; overflow: hidden; }
.contact__head { display: flex; flex-direction: column; gap: 34px; width: 100%; max-width: var(--max); }
.contact__in { display: flex; justify-content: center; gap: 170px; width: 100%; max-width: var(--max); padding-top: 40px; }
.contact__left { flex: 1; max-width: 490px; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.contact__left .t-p18l { max-width: 420px; }
.contact__left .t-p18l a { color: var(--black); text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 3px; }
.contact__right { flex: 1; position: relative; padding-top: 44px; }
.corner { position: absolute; left: -20px; top: 24px; width: 20px; height: 20px; border-left: 1px solid var(--purple); border-top: 1px solid var(--purple); }
.form { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 700px; }
.form label { display: block; }
.form input, .form textarea {
  width: 100%; padding: 24px; border: 0; border-radius: 8px; resize: vertical;
  background: var(--ui-1); box-shadow: inset 0 0 2px rgba(0, 0, 0, .05);
  font-weight: 500; font-size: 16px; line-height: 16px; letter-spacing: -.2px; color: var(--black);
  font-feature-settings: "salt"; transition: box-shadow .3s, background .3s;
}
.form textarea { min-height: 150px; line-height: 22px; }
.form input::placeholder, .form textarea::placeholder { color: var(--black-50); }
.form input:focus, .form textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1px var(--purple); }
.form .hp { position: absolute; left: -9999px; }
.form__btn { display: grid; place-items: center; height: 71.5px; padding: 24px; border-radius: 10px; background: var(--dark-grey); color: var(--white); font-weight: 500; font-size: 18px; line-height: 26px; transition: background .3s, transform .2s; }
.form__btn:hover { background: var(--purple); }
.form__btn:active { transform: scale(.99); }
.form__btn[disabled] { opacity: .6; pointer-events: none; }
.form__msg { min-height: 24px; font-weight: 500; }
.form__msg.ok { color: var(--purple); }
.form__msg.err { color: #c0392b; }
@media (max-width: 1439.98px) { .contact__in { gap: 100px; } }
@media (max-width: 1199.98px) {
  .contact { padding-bottom: 100px; }
  .contact__in { flex-direction: column; gap: 50px; }
  .contact__left { max-width: none; }
  .contact__right { padding-top: 0; }
  .corner { display: none; }
}
@media (max-width: 809.98px) { .contact { padding-bottom: 60px; } }

/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; z-index: 4; background: var(--bg); padding: 0 16px 16px; }
.footer__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 80px; padding: 16px; border-radius: 10px; background: var(--ui-1); border: 1px solid var(--light-grey-30); overflow: hidden; }
.footer__box > *:not(.pattern) { position: relative; z-index: 1; width: 100%; max-width: var(--max); }
.footer__top { height: 410px; border-radius: 5px; overflow: hidden; display: grid; place-items: center; background: var(--black); }
.footer__top .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .31; }
.footer__top .logo { position: relative; width: 411px; max-width: 70%; height: auto; }
.footer__mid { display: flex; gap: 58px; padding: 0 44px; }
.footer__cta { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.footer__cta .t-h3 { color: var(--black-40); text-align: left; }
.footer__cta .t-h4 { color: var(--dark-grey); }
.footer__cta .t-p16m { max-width: 420px; }
.fmenu { width: 35.25%; display: flex; flex-direction: column; list-style: none; border-top: 1px solid var(--ui-2); }
.fmenu a { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ui-2); }
.fmenu .n { font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: -.1px; padding-bottom: 3px; width: 34px; flex: none; color: var(--black-50); }
.fmenu .l { flex: 1; color: var(--black-60); transition: color .3s, transform .5s var(--ease-out); }
.fmenu a[aria-current="page"] .l, .fmenu a:hover .l { color: var(--black); }
.fmenu a:hover .l { transform: translateX(6px); }
.fmenu svg { width: 18px; height: 18px; color: var(--black-60); transition: transform .5s var(--ease-out), color .3s; }
.fmenu a:hover svg { transform: translateX(4px); color: var(--purple); }
.footer__brand { display: flex; flex-direction: column; gap: 34px; padding: 0 18px; background: url("../img/footer-glow.png") center / cover no-repeat; }
.footer__brand .line { background: var(--ui-2); opacity: 1; }
.footer__brand img { width: auto; height: 224px; max-width: 100%; object-fit: contain; object-position: left center; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 44px 10px; }
.flip { display: inline-block; height: 26px; overflow: hidden; }
.flip span { display: block; transition: transform .6s var(--ease-out); }
.flip:hover span { transform: translateY(-26px); }
@media (max-width: 1199.98px) {
  .footer__box { gap: 60px; }
  .footer__mid { flex-direction: column; padding: 0 14px; gap: 50px; }
  .fmenu { width: 100%; }
  .footer__top { height: 320px; }
  .footer__brand img { height: 150px; }
  .footer__bottom { padding: 0 14px 10px; }
}
@media (max-width: 809.98px) {
  .footer { padding: 0 10px 10px; }
  .footer__top { height: 220px; }
  .footer__brand img { height: 90px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Cursor personalizado
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
.cursor__dot { display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 30px; background: var(--purple); color: #fff; transform: translate(12px, 12px); transition: min-width .4s cubic-bezier(.34, 1.36, .64, 1), height .4s cubic-bezier(.34, 1.36, .64, 1), padding .4s, transform .3s, opacity .3s; overflow: hidden; white-space: nowrap; }
.cursor__dot span { font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .2s; }
.cursor.is-view .cursor__dot { min-width: 96px; height: 44px; padding: 0 20px; border-radius: 40px; transform: translate(-50%, -50%); }
.cursor.is-view .cursor__dot span { opacity: 1; transition-delay: .1s; }
.cursor.is-down .cursor__dot { transform: translate(12px, 12px) scale(.75); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* =========================================================
   Estados de animación (JS los activa; sin JS todo es visible)
   ========================================================= */
html.js [data-appear] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-appear] { opacity: 1 !important; transform: none !important; }
  .hero__chroma { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Páginas internas
   ========================================================= */
.t-h2 { font-weight: 600; font-size: 128px; line-height: 104px; letter-spacing: -4px; font-feature-settings: "salt"; color: var(--white); }
@media (max-width: 1199.98px) { .t-h2 { font-size: 112px; line-height: 94px; } }
@media (max-width: 809.98px) { .t-h2 { font-size: 60px; line-height: 54px; letter-spacing: -2px; } }
.ast { color: var(--purple); }

/* Hero interno (550px, sticky) */
.phero { position: sticky; top: 0; height: 550px; z-index: 1; display: flex; background: var(--bg); }
.phero--tall { height: 620px; }
.phero--full { height: 100vh; height: 100svh; }
.phero__overlay { position: absolute; inset: 0; z-index: 1; background: var(--black); opacity: .45; }
.phero__content { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 40px; }
.phero__left { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.phero__year { color: var(--white); }
.phero__title { color: var(--white); }
.phero__right { width: 36%; display: flex; align-items: flex-end; gap: 60px; }
.phero__body { flex: 1; max-width: 650px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.phero__body .t-p18l { color: var(--white-80); }
.phero__body .htag { background: var(--purple-20); }
.phero__body .htag .t-p14s { color: var(--white); }
.phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.phero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ptag--glass { background: var(--white-10); color: var(--white); box-shadow: none; border: 1px solid rgba(249, 249, 249, .15); backdrop-filter: blur(6px); }
.phero--tall .phero__right { width: 46%; }
@media (max-width: 1199.98px) { .phero__right { width: 46%; gap: 30px; } }
@media (max-width: 809.98px) {
  .phero { height: auto; min-height: 560px; }
  .phero--full { min-height: 100svh; }
  .phero__content { flex-direction: column; align-items: stretch; gap: 24px; }
  .phero__right, .phero--tall .phero__right { width: 100%; }
  .phero .hero__box { justify-content: flex-end; gap: 40px; padding-top: 90px; }
  .phero .hero__spacer { display: none; }
  .phero .hero__spacer { flex: 1; }
}

/* Nosotros: lista */
.about--page { padding-bottom: 120px; }
.alist { display: flex; flex-direction: column; border-bottom: 1px solid rgba(234, 234, 234, .65); }
.alist__row { display: flex; gap: 20px; padding: 40px 0; border-top: 1px solid rgba(234, 234, 234, .65); }
.alist__row h3 { flex: 1; }
.alist__row p { flex: 1; }
@media (max-width: 809.98px) { .alist__row { flex-direction: column; gap: 12px; padding: 28px 0; } .about--page { padding-bottom: 60px; } }

/* Principios */
.vcard { display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: 10px; background: var(--light-grey); }
.vcard__ico { display: grid; place-items: center; padding: 22px; border-radius: 10px; background: var(--ui-1); flex: none; }
.vcard__ico img { width: 24px; height: 24px; }

/* En terreno */
.field { z-index: 4; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.field > *:not(.overlap) { position: relative; z-index: 1; }
.field__head { display: flex; flex-direction: column; gap: 34px; width: 100%; max-width: var(--max); }
.field__in { display: flex; justify-content: space-between; gap: 80px; width: 100%; max-width: var(--max); }
.field__left { position: sticky; top: 40px; align-self: flex-start; max-width: 500px; padding-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.field__left .t-p18l { color: var(--card-body); max-width: 420px; }
.field__right { width: 60%; display: flex; flex-direction: column; gap: 40px; background: var(--bg); }
.step { display: flex; flex-direction: column; gap: 20px; }
.step__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.step__top .ptag { background: var(--ui-1); }
.step .t-p17m { color: var(--black-60); max-width: 480px; }
.step .line { margin-top: 20px; }
@media (max-width: 1199.98px) { .field { padding-top: 80px; padding-bottom: 80px; } .field__in { flex-direction: column; gap: 40px; } .field__left { position: relative; top: auto; } .field__right { width: 100%; } }

/* Contacto */
.contact--page { padding-top: 120px; padding-bottom: 130px; }
.cinfo { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 460px; }
.cinfo__mail { display: flex; align-items: center; gap: 10px; color: var(--black); }
.cinfo__mail svg { width: 28px; height: 28px; flex: none; }
.cinfo__mail .t-p30 { color: var(--black); font-size: clamp(20px, 2.2vw, 30px); word-break: break-all; }
.cinfo__region { padding-left: 38px; color: var(--black-60); }
.t-p15m { font-weight: 500; font-size: 15px; line-height: 16px; letter-spacing: -.1px; }
.social { display: flex; gap: 15px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50px; background: var(--ui-1); box-shadow: inset 0 0 4px rgba(0, 0, 0, .05); color: var(--black); transition: background .3s, color .3s, transform .3s; }
.social a:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
@media (max-width: 809.98px) { .contact--page { padding-top: 60px; } }

/* Proyectos */
.portfolio--page { padding-bottom: 120px; }
.portfolio--more { padding-top: 120px; padding-bottom: 120px; }
.works__row--static { position: relative; top: auto; }
@media (max-width: 809.98px) { .portfolio--more { padding-top: 60px; padding-bottom: 60px; } }

/* Caso de estudio */
.cs { z-index: 4; padding-top: 100px; display: flex; flex-direction: column; align-items: center; }
.cs > *:not(.detailing) { position: relative; z-index: 1; }
.cs-glance { display: flex; flex-direction: column; gap: 20px; }
.cs-glance .line:last-child { margin-top: 20px; }
.cs-glance .line:first-child { margin-bottom: 20px; }
.cs-img { width: 100%; max-width: var(--max); height: 720px; border-radius: 10px; overflow: hidden; margin: 70px 0 0; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-pair { display: flex; gap: 20px; width: 100%; max-width: var(--max); height: 600px; }
.cs-pair .cs-img { margin: 0; height: 100%; flex: 1; }
.cs-img--last { margin: 10px 0 0; }
.cs-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; width: 100%; max-width: var(--max); padding: 100px 0; }
.cs-row__content { width: 71.5%; display: flex; flex-direction: column; gap: 20px; }
.cs-row__title { color: var(--dark-grey); font-weight: 600; }
.cs-row__title b { font-weight: 700; }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 14px; }
.rich ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rich li::marker { color: var(--purple); }
.rich b { color: var(--grey); font-weight: 600; }
.cs .intro { padding-bottom: 0; }
@media (max-width: 1199.98px) {
  .cs-img { height: 520px; }
  .cs-pair { height: 420px; }
  .cs-row { flex-direction: column; gap: 24px; padding: 70px 0; }
  .cs-row__content { width: 100%; }
}
@media (max-width: 809.98px) {
  .cs { padding-top: 50px; }
  .cs-img { height: 300px; margin-top: 40px; }
  .cs-pair { flex-direction: column; height: auto; }
  .cs-pair .cs-img { height: 260px; }
  .cs-row { padding: 50px 0; }
}

/* 404 */
.nf .hero__box { justify-content: center; align-items: center; text-align: center; }
.nf__in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 900px; }
.nf__in .t-p18l { color: var(--white-80); max-width: 520px; }
.nf__sub { color: var(--purple-soft); }

/* Hero: frase + botón */
.hero__body .btn { margin-top: 4px; }
@media (max-width: 809.98px) {
  .hero__right { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero__body { align-items: flex-start; max-width: none; gap: 20px; }
  .hero__desc { text-align: left; }
  .hero__globe { display: none; }
  .hero__arrow { align-self: flex-end; margin-top: -64px; }
}

/* =========================================================
   Menú fijo: aparece al subir
   ========================================================= */
.snav { position: fixed; top: 14px; left: 50%; z-index: 40; display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 22px; border-radius: 60px; width: min(calc(100% - 28px), 1100px);
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(9, 9, 9, .06); box-shadow: 0 10px 30px rgba(9, 9, 9, .08);
  transform: translate(-50%, -140%); transition: transform .6s var(--ease-out); }
.snav.is-on { transform: translate(-50%, 0); }
.snav__logo { width: 104px; height: 22px; flex: none; }
.snav__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.snav ul { display: flex; gap: 30px; list-style: none; margin-left: auto; }
.snav .mlink { color: var(--black); opacity: .6; }
.snav .mlink[aria-current="page"], .snav .mlink:hover { opacity: 1; }
.snav .lang { background: var(--ui-1); border-color: var(--light-grey); }
.snav .lang a { color: var(--black-60); }
.snav .lang a[aria-current="true"] { background: var(--black); color: var(--white); }
.snav .btn { --btn-bg: var(--black); --btn-fg: var(--white); }
.snav .nav__burger { display: none; }
@media (max-width: 1199.98px) {
  .snav { padding: 6px 6px 6px 18px; gap: 12px; }
  .snav ul, .snav > .btn { display: none; }
  .snav .lang { margin-left: auto; }
  .snav .nav__burger { display: block; background: var(--black); }
  .snav .nav__burger span { background: var(--white); }
}

/* =========================================================
   Formulario ampliado
   ========================================================= */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form select { width: 100%; padding: 24px; border: 0; border-radius: 8px; background: var(--ui-1); box-shadow: inset 0 0 2px rgba(0,0,0,.05);
  font-weight: 500; font-size: 16px; line-height: 16px; letter-spacing: -.2px; color: var(--black); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%23090909' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 24px center; }
.form select:invalid, .form select.is-empty { color: var(--black-50); }
.form select:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1px var(--purple); }
.form__opt { font-size: 13px; color: var(--black-50); margin: 4px 0 -4px; font-weight: 500; }
.form__legal { font-size: 13px; line-height: 18px; color: var(--black-60); }
.form__alt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--black-60); font-weight: 500; }
.form__alt a { color: var(--black); text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 3px; }
@media (max-width: 809.98px) { .form__row { grid-template-columns: 1fr; } }

/* =========================================================
   Servicios
   ========================================================= */
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; padding: 30px 0 10px; border-top: 1px solid rgba(234, 234, 234, .65); }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks .ico { display: grid; place-items: center; padding: 5px; border-radius: 50px; background: var(--purple-20); flex: none; margin-top: 2px; }
.checks .ico svg { width: 13px; height: 13px; }
@media (max-width: 809.98px) { .checks { grid-template-columns: 1fr; } }
.svc-list { z-index: 4; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: var(--max); }
.svc-card { display: flex; flex-direction: column; gap: 20px; padding: 10px 10px 24px; border-radius: 20px; background: var(--ui-1); border: 1px solid var(--light-grey-30); }
.svc-card__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.svc-card:hover .svc-card__img img { transform: scale(1.04); }
.svc-card__txt { display: flex; flex-direction: column; gap: 14px; padding: 0 14px; }
.svc-card__txt .t-h4 { font-size: 34px; line-height: 38px; }
.svc-card__more { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 600; }
.svc-card__more svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.svc-card:hover .svc-card__more svg { transform: translateX(4px); }
@media (max-width: 1199.98px) { .svc-grid { grid-template-columns: 1fr; } .svc-list { padding-top: 70px; padding-bottom: 70px; } }
.works__row--one { grid-template-columns: 1fr 1fr; }
.svc-others { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; width: 100%; max-width: var(--max); margin: 40px auto 0; }
.svc-others .ptag { transition: background .3s, color .3s; }
.svc-others .ptag:hover { background: var(--purple); color: #fff; }
