/* ============================================================
   JTDIGITAL — sitio institucional multipágina
   Marca: rojo #cd2826 / #992121, negro cálido, blanco hueso.
   Tipografía: Archivo (ancho variable) + Instrument Serif.
   ============================================================ */

:root{
  --red: #cd2826;
  --red-deep: #992121;
  --red-glow: #e5413e;
  --bg: #17110f;
  --bg-2: #1e1714;
  --bg-3: #261d1a;
  --ink: #f2ede8;
  --ink-dim: #a99f98;
  --paper: #efe9e2;
  --paper-ink: #1d1513;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(29,21,19,.14);
  --wa: #25d366;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.76,0,.24,1);
  --gutter: clamp(20px, 4.5vw, 72px);
  --header-h: 78px;
  --radius: 14px;

  --fs-hero: clamp(2.3rem, 8.4vw, 8.8rem);
  --fs-page-hero: clamp(2.2rem, 7vw, 7.2rem);
  --fs-h2: clamp(2.1rem, 5.4vw, 5.2rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.3rem);
}

*,*::before,*::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lang-pending body{ visibility: hidden; }
body{
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img{ max-width: 100%; display: block; height: auto; }
a{ color: inherit; text-decoration: none; }
ul,ol{ list-style: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible{ outline: 2px solid var(--red-glow); outline-offset: 3px; border-radius: 3px; }
::selection{ background: var(--red); color: #fff; }
em{ font-style: normal; }

.skip-link{
  position: fixed; top: 10px; left: 10px; z-index: 400; padding: 10px 16px;
  background: var(--red); color: #fff; border-radius: 8px; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus{ transform: none; }

/* ---------- grain ---------- */
.grain{
  position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain{ 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,3%)} 100%{transform:translate(0,0)} }

/* ---------- page transition ---------- */
.page-curtain{
  position: fixed; inset: 0; z-index: 350; pointer-events: none;
  background: var(--red); transform: scaleY(1); transform-origin: top;
  transition: transform .75s var(--ease-in-out);
}
.page-curtain::after{
  content: ""; position: absolute; inset: 0; background: var(--bg);
  transform: scaleY(1); transform-origin: top; transition: transform .6s var(--ease-in-out) .08s;
}
html.is-ready .page-curtain{ transform: scaleY(0); }
html.is-ready .page-curtain::after{ transform: scaleY(0); }
html.is-leaving .page-curtain{ transform: scaleY(1); transform-origin: bottom; transition-duration: .5s; }
html.is-leaving .page-curtain::after{ transform: scaleY(0); }

/* ---------- typography helpers ---------- */
.eyebrow{
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow::before{ content: ""; width: 34px; height: 1px; background: var(--red); }
.eyebrow--dark{ color: rgba(29,21,19,.6); }
  .display{ overflow-wrap: break-word; }
.display{
  font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase;
  line-height: .92; letter-spacing: -.01em;
}
.display em, .section-title em, .serif{
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: none; color: var(--red-glow); letter-spacing: 0;
  font-variation-settings: normal;
}
.section-title{ font-size: var(--fs-h2); margin-top: 18px; max-width: 16ch; }
.section-title--wide{ max-width: 22ch; }
.lead{ font-size: var(--fs-lead); color: var(--ink-dim); max-width: 46ch; line-height: 1.55; }
.lead strong{ color: var(--ink); font-weight: 600; }

/* ---------- buttons ---------- */
.btn{
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: 17px 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn::before{
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before{ transform: translateY(0); }
.btn .arrow{ transition: transform .4s var(--ease); }
.btn:hover .arrow{ transform: translateX(4px); }
.btn--red{ background: var(--red); color: #fff; }
.btn--red::before{ background: var(--ink); }
.btn--red:hover{ color: var(--paper-ink); }
.btn--ghost{ border: 1px solid rgba(255,255,255,.35); color: var(--ink); }
.btn--ghost::before{ background: var(--ink); }
.btn--ghost:hover{ color: var(--paper-ink); border-color: var(--ink); }
.btn--dark{ background: var(--paper-ink); color: var(--paper); }
.btn--dark::before{ background: var(--red); }
.btn--sm{ padding: 12px 20px; font-size: 11px; }
.btn--wa{ background: var(--wa); color: #0b2a17; }
.btn--wa::before{ background: var(--ink); }

/* ---------- header ---------- */
.site-header{
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .4s var(--ease), transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid{
  background: rgba(23,17,15,.82); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-hidden{ transform: translateY(-100%); }
.brand img{ width: 104px; height: auto; }
.main-nav{ justify-self: center; display: flex; gap: clamp(18px, 2.6vw, 40px); }
.main-nav a{
  position: relative; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 0; color: rgba(242,237,232,.82); transition: color .3s;
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.main-nav a:hover{ color: #fff; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"]{ color: #fff; }
.header-actions{ display: flex; align-items: center; gap: 18px; }
.lang-switch{ display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.lang-switch button{ padding: 8px 6px; color: rgba(242,237,232,.5); transition: color .3s; }
.lang-switch button[aria-pressed="true"]{ color: #fff; }
.lang-switch button[aria-pressed="true"]::after{ content: ""; display: block; height: 2px; background: var(--red); margin-top: 3px; }
.lang-switch span{ color: rgba(242,237,232,.3); }
.menu-toggle{ display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; z-index: 120; }
.menu-toggle span{ position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle span:nth-child(1){ top: 18px; }
.menu-toggle span:nth-child(2){ top: 26px; }
.menu-open .menu-toggle span:nth-child(1){ top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2){ top: 22px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.mobile-menu{
  position: fixed; inset: 0; z-index: 110; display: flex;
  visibility: hidden; pointer-events: none;
}
.mobile-menu-inner{
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 5vh) var(--gutter) 40px;
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out);
  overflow-y: auto;
}
.menu-open .mobile-menu{ visibility: visible; pointer-events: auto; }
.menu-open .mobile-menu-inner{ clip-path: inset(0 0 0 0); }
.mobile-menu nav a{
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.9rem, 8.2vw, 4rem); font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase; line-height: 1.05;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease);
}
.mobile-menu nav a small{ font-size: 12px; font-weight: 600; color: var(--red-glow); letter-spacing: .12em; font-variation-settings: "wdth" 100; }
.mobile-menu nav a[aria-current="page"]{ color: var(--red-glow); }
.menu-open .mobile-menu nav a{ opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1){ transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(2){ transition-delay: .3s; }
.menu-open .mobile-menu nav a:nth-child(3){ transition-delay: .35s; }
.menu-open .mobile-menu nav a:nth-child(4){ transition-delay: .4s; }
.mobile-menu-meta{ display: grid; gap: 6px; margin-top: 32px; color: var(--ink-dim); font-size: 15px; }
.mobile-menu-meta a{ color: var(--ink); }
body.menu-open{ overflow: hidden; }

/* ---------- hero ---------- */
.hero{
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(64px, 11vh, 120px);
  overflow: hidden; isolation: isolate;
}
.hero--page{ min-height: 82vh; min-height: 82svh; }
.hero-media{ position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.hero-slide{ position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active{ opacity: 1; }
.hero-slide img{ width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero-slide.is-active img{ animation: kenburns 11s linear forwards; }
.hero-slide:nth-child(2n).is-active img{ animation-name: kenburns-b; }
@keyframes kenburns{ from{ transform: scale(1.16) translate(1.5%, 1%); } to{ transform: scale(1.02) translate(0,0); } }
@keyframes kenburns-b{ from{ transform: scale(1.02) translate(-1%, 0); } to{ transform: scale(1.16) translate(1.5%, -1.5%); } }
.hero-shade{
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23,17,15,.92) 0%, rgba(23,17,15,.62) 45%, rgba(23,17,15,.18) 100%),
    linear-gradient(0deg, rgba(23,17,15,.95) 0%, rgba(23,17,15,0) 45%),
    radial-gradient(120% 80% at 85% 10%, rgba(205,40,38,.28), transparent 60%);
}
.hero-inner{ position: relative; width: 100%; max-width: 1500px; }
.hero-title{ font-size: var(--fs-hero); margin: 22px 0 32px; }
.hero--page .hero-title{ font-size: var(--fs-page-hero); max-width: 14ch; }
.hero-title .line{ display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero-title .line > span{ display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * .11s + .35s); }
.hero-title .line.serif-line > span{ font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--red-glow); font-variation-settings: normal; padding-right: .06em; }
.hero-title .dot{ color: var(--red); }
html.is-ready .hero-title .line > span{ transform: none; }
.hero-foot{ display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.hero-foot .lead{ max-width: 54ch; }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fade{ opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: .95s; }
html.is-ready .hero-fade{ opacity: 1; transform: none; }
.hero-aside{
  position: absolute; right: var(--gutter); bottom: clamp(64px, 11vh, 120px);
  display: grid; justify-items: end; gap: 14px; text-align: right;
}
.hero-caption{ font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,237,232,.7); max-width: 26ch; line-height: 1.6; }
.hero-dots{ display: flex; gap: 8px; }
.hero-dots button{ width: 34px; height: 14px; position: relative; }
.hero-dots button::before{ content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255,255,255,.28); }
.hero-dots button::after{ content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--red-glow); transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active::after{ animation: dotfill 6.5s linear forwards; }
@keyframes dotfill{ to{ transform: scaleX(1); } }
.hero-meta{ display: flex; gap: 22px; font-size: 11px; font-weight: 600; letter-spacing: .2em; color: rgba(242,237,232,.6); }
.scroll-hint{
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255,255,255,.18); overflow: hidden;
}
.scroll-hint::after{ content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--red-glow); animation: scrollhint 2s var(--ease-in-out) infinite; }
@keyframes scrollhint{ to{ top: 100%; } }

/* ---------- marquee ---------- */
.marquee{
  background: var(--red); color: #fff; overflow: hidden; padding: 20px 0;
  transform: rotate(-1.6deg) scale(1.03); margin: -12px 0 0; position: relative; z-index: 2;
}
.marquee-track{ display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span{
  font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-variation-settings: "wdth" 125; font-weight: 800;
  text-transform: uppercase; white-space: nowrap; padding-right: .6em;
}
@keyframes marquee{ to{ transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section{ position: relative; padding: clamp(84px, 12vw, 180px) var(--gutter); }
.section--alt{ background: var(--bg-2); }
.section--paper{ background: var(--paper); color: var(--paper-ink); }
.section--paper .section-title em{ color: var(--red); }
.section-head{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lead{ margin-bottom: 8px; }
.container{ max-width: 1500px; margin: 0 auto; }

/* ---------- reveal ---------- */
[data-reveal]{ opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in{ opacity: 1; transform: none; }
[data-reveal="fade"]{ transform: none; }
[data-reveal="clip"]{ opacity: 1; transform: none; }
[data-reveal="clip"] > .clip-target{ clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-in-out); transition-delay: var(--d, 0s); }
[data-reveal="clip"].in > .clip-target{ clip-path: inset(0 0 0 0); }

/* ---------- manifesto + stats ---------- */
.manifesto{
  font-size: clamp(1.7rem, 4vw, 3.9rem); line-height: 1.12; font-weight: 500; letter-spacing: -.015em;
  max-width: 24ch; margin-top: 28px;
}
.manifesto em{ font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--red-glow); }
.stats{ display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.stat{ padding: 34px 24px 0 0; display: grid; gap: 10px; }
.stat + .stat{ padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num{ font-size: clamp(3rem, 7vw, 6.6rem); font-variation-settings: "wdth" 125; font-weight: 800; line-height: .9; color: var(--red-glow); font-variant-numeric: tabular-nums; }
.stat-label{ font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- browser frame (shared) ---------- */
.browser{
  position: relative; border-radius: 12px; overflow: hidden; background: #0d0a09;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
}
.browser-bar{ display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #241c19; }
.browser-bar i{ width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.browser-bar i:first-child{ background: #ff5f57; } .browser-bar i:nth-child(2){ background: #febc2e; } .browser-bar i:nth-child(3){ background: #28c840; }
.browser-url{ margin-left: 12px; flex: 1; max-width: 340px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: 11px; line-height: 20px; padding: 0 10px; color: rgba(255,255,255,.55); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-view{ position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.browser-view img{ position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
.browser-view .shot-cover{ height: 100%; object-fit: cover; object-position: top; transition: opacity .5s; }
.browser-view .shot-scroll{ opacity: 0; transition: transform 7s cubic-bezier(.45,0,.55,1), opacity .5s; }
.work-card:hover .shot-scroll, .work-card:focus-within .shot-scroll{ opacity: 1; transform: translateY(var(--shift, 0)); }
.work-card:hover .shot-cover, .work-card:focus-within .shot-cover{ opacity: 0; }

/* ---------- últimos desarrollos (home) ---------- */
.work-grid{ display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 44px); }
.work-card{ grid-column: span 6; display: grid; gap: 22px; align-content: start; }
.work-card:nth-child(1){ grid-column: 1 / -1; grid-template-columns: 1.75fr 1fr; align-items: end; gap: clamp(24px, 4vw, 64px); }
.work-card:nth-child(4){ margin-top: clamp(0px, 6vw, 110px); }
.work-card:nth-child(2){ margin-top: 0; }
.work-card:nth-child(3){ margin-top: clamp(0px, 8vw, 140px); }
.work-card:nth-child(5){ margin-top: clamp(0px, 8vw, 140px); }
.work-info{ display: grid; gap: 12px; }
.work-meta{ display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.work-meta .num{ color: var(--proj, var(--red-glow)); }
.work-meta .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--proj, var(--red)); }
.work-name{ font-size: clamp(1.9rem, 3.6vw, 3.4rem); }
.work-desc{ color: var(--ink-dim); max-width: 48ch; }
.work-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.work-tags li{ font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: rgba(242,237,232,.8); }
.work-link{ display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; width: fit-content; }
.work-link span:first-child{ background: linear-gradient(currentColor,currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.work-link:hover span:first-child{ background-size: 100% 1px; }
.work-link .arrow{ display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--proj, var(--red)); color: #fff; transition: transform .4s var(--ease); }
.work-link:hover .arrow{ transform: rotate(45deg); }
.work-more{ display: flex; justify-content: center; margin-top: clamp(64px, 8vw, 110px); }

/* ---------- services list ---------- */
.services-list{ border-top: 1px solid var(--line); }
.service-row{ border-bottom: 1px solid var(--line); }
.service-row a{
  display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 24px;
  padding: clamp(24px, 3vw, 40px) 0; position: relative;
}
.service-row a::before{
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--red); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.service-row a:hover::before{ transform: scaleY(1); }
.service-num{ font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--red-glow); transition: color .3s; }
.service-name{ font-size: clamp(1.6rem, 4vw, 3.6rem); }
.service-tags{ font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); text-align: right; transition: color .3s; }
.service-arrow{ font-size: 1.6rem; transition: transform .5s var(--ease); justify-self: end; }
.service-row a:hover .service-num, .service-row a:hover .service-tags{ color: #fff; }
.service-row a:hover .service-arrow{ transform: translateX(6px) rotate(-45deg); }
.service-row-media{ display: none; }
.service-preview{
  position: fixed; top: 0; left: 0; z-index: 90; width: 320px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .35s, transform .5s var(--ease); box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.service-preview.is-visible{ opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.service-preview img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- IA band ---------- */
.ia-band{ overflow: hidden; isolation: isolate; }
.parallax{ position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.parallax img{ position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.parallax-shade{ position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,17,15,.92), rgba(23,17,15,.78) 50%, rgba(23,17,15,.94)); }
.ia-grid{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(14px, 3vw, 40px); }
.ia-card{ padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); min-height: 100%; }
.ia-card--red{ background: var(--red); }
.ia-card--dark{ background: rgba(30,23,20,.85); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ia-kicker{ font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.ia-card h3{ font-size: clamp(2rem, 3.6vw, 3.4rem); margin: 16px 0 26px; }
.ia-card li{ padding: 12px 0; border-top: 1px solid rgba(255,255,255,.2); font-size: 15px; }
.ia-times{ font-family: var(--font-serif); font-style: italic; font-size: clamp(3rem, 6vw, 5.6rem); color: var(--red-glow); }
.ia-foot{ margin-top: clamp(40px, 5vw, 64px); font-size: var(--fs-lead); max-width: 52ch; color: var(--ink-dim); }
.ia-foot em{ font-family: var(--font-serif); font-style: italic; color: var(--red-glow); font-size: 1.15em; }

/* ---------- clients ---------- */
.logo-marquee{ overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track{ display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); width: max-content; animation: marquee 48s linear infinite; }
.logo-track.reverse{ animation-direction: reverse; }
.logo-track img{ height: clamp(38px, 4.5vw, 58px); width: auto; filter: grayscale(1); opacity: .72; transition: filter .4s, opacity .4s; }
.logo-track img:hover{ filter: none; opacity: 1; }
.logo-grid{ display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.logo-grid li{ min-width: 0; display: grid; place-items: center; aspect-ratio: 3/2; padding: 18%; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .4s; }
.logo-grid li:hover{ background: #fff; }
.logo-grid img{ max-height: 100%; max-width: 100%; width: auto; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s, transform .5s var(--ease); }
.logo-grid li:hover img{ filter: none; opacity: 1; transform: scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band{ min-height: 86vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.cta-band .parallax-shade{ background: linear-gradient(90deg, rgba(23,17,15,.9) 0%, rgba(23,17,15,.55) 60%, rgba(153,33,33,.35) 100%); }
.cta-title{ font-size: clamp(2.8rem, 8vw, 8rem); margin: 22px 0 40px; max-width: 13ch; }

/* ---------- next page ---------- */
.next-page{ display: block; border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 110px) var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.next-page::before{ content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); transition: transform .7s var(--ease); }
.next-page:hover::before{ transform: none; }
.next-page .eyebrow{ transition: color .4s; }
.next-page:hover .eyebrow{ color: #fff; }
.next-page:hover .eyebrow::before{ background: #fff; }
.next-label{ display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; font-size: clamp(2.4rem, 7vw, 7.6rem); }
.next-label .arrow{ font-family: var(--font-sans); transition: transform .6s var(--ease); }
.next-page:hover .next-label .arrow{ transform: translateX(14px); }

/* ---------- services page ---------- */
.svc{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.svc + .svc{ margin-top: clamp(90px, 12vw, 180px); }
.svc:nth-child(even) .svc-media{ order: 2; }
.svc-media{ position: relative; }
.svc-media .clip-target{ border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.svc-media img{ width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.svc-media.in img{ transform: scale(1); }
.svc-num{ position: absolute; top: -.45em; right: -.1em; font-family: var(--font-serif); font-style: italic; font-size: clamp(5rem, 11vw, 10rem); line-height: 1; color: var(--red-glow); z-index: 2; pointer-events: none; }
.svc:nth-child(even) .svc-num{ right: auto; left: -.1em; }
.svc-body h2{ font-size: clamp(2rem, 4.4vw, 4.2rem); margin: 16px 0 24px; }
.svc-body p{ font-size: var(--fs-lead); color: var(--ink-dim); max-width: 40ch; }
.svc-tags{ display: grid; margin-top: 34px; border-top: 1px solid var(--line); }
.svc-tags li{ display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.svc-tags li::after{ content: "✦"; color: var(--red-glow); font-size: 12px; }
.process-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: none; }
.process-step{ padding: 36px 28px 12px 0; }
.process-step + .process-step{ padding-left: 28px; border-left: 1px solid var(--line); }
.process-num{ display: block; font-size: clamp(3rem, 6vw, 5.4rem); font-variation-settings: "wdth" 125; font-weight: 200; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--red-glow); }
.process-step h3{ font-size: var(--fs-h3); margin: 22px 0 10px; }
.process-step p{ color: var(--ink-dim); }

/* ---------- projects page ---------- */
.proj-index{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.proj-index a{ font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 9px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.proj-index a:hover{ background: var(--ink); color: var(--paper-ink); border-color: var(--ink); }
.hero-wall{ position: absolute; inset: -20% -10%; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; transform: rotate(-12deg) skewX(6deg); opacity: .55; }
.hero-wall-col{ display: grid; gap: 22px; align-content: start; animation: wall 48s linear infinite; }
.hero-wall-col:nth-child(2){ animation-direction: reverse; animation-duration: 56s; }
.hero-wall-col img{ border-radius: 10px; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
@keyframes wall{ from{ transform: translateY(0); } to{ transform: translateY(-50%); } }
.project{ display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.project--flip .project-info{ order: 2; }
.project-info{ position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 16px; }
.project-num{ font-family: var(--font-serif); font-style: italic; font-size: clamp(4rem, 9vw, 8rem); line-height: .8; color: var(--proj); }
.project-info h2{ font-size: clamp(2.4rem, 5vw, 4.8rem); }
.project-sector{ font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); display: flex; align-items: center; gap: 10px; }
.project-sector::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--proj); }
.project-desc{ font-size: var(--fs-lead); color: var(--ink-dim); }
.project-feats{ border-top: 1px solid var(--line); margin-top: 8px; }
.project-feats li{ display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.project-feats li::before{ content: "→"; color: var(--proj); }
.project-show{ position: relative; padding-bottom: clamp(40px, 7vw, 90px); }
.project-show .browser-view{ aspect-ratio: 16 / 11; }
.project-show .browser-view img{ transition: none; }
.phone{
  position: absolute; bottom: 0; left: clamp(-40px, -3vw, -10px); width: clamp(120px, 15vw, 210px);
  border-radius: 28px; padding: 8px; background: #0d0a09; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1);
}
.project--flip .phone{ left: auto; right: clamp(-40px, -3vw, -10px); }
.phone img{ border-radius: 21px; width: 100%; aspect-ratio: 9/19; object-fit: cover; object-position: top; }
.project-sep{ height: 1px; background: var(--line); margin: clamp(80px, 11vw, 160px) 0; }

/* ---------- contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-info{ display: grid; gap: 40px; }
.contact-block h2{ font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red-glow); margin-bottom: 10px; font-variation-settings: normal; }
.contact-block a.big{ display: block; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.35; word-break: break-word; transition: color .3s; }
.contact-block a.big:hover{ color: var(--red-glow); }
.contact-block p{ color: var(--ink-dim); font-size: 17px; }
.contact-form{ display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.field{ display: grid; gap: 8px; }
.field--full{ grid-column: 1 / -1; }
.field label{ font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field textarea{
  font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25);
  padding: 10px 0; border-radius: 0; transition: border-color .3s; resize: vertical;
}
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--red-glow); }
.field.has-error input, .field.has-error textarea{ border-color: #ff6b68; }
.field-error{ font-size: 13px; color: #ff8a87; min-height: 1em; }
.hp{ position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot{ grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status{ font-size: 15px; }
.form-status.ok{ color: #7ee2a0; } .form-status.error{ color: #ff8a87; }
.alert{ grid-column: 1 / -1; padding: 16px 20px; border-radius: 10px; font-size: 15px; display: none; }
.alert.is-shown{ display: block; }
.alert--ok{ background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); color: #b8f5cc; }
.alert--error{ background: rgba(205,40,38,.14); border: 1px solid rgba(229,65,62,.5); color: #ffc1bf; }
.sedes{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.3); margin-top: 40px; }
.sede{ padding: 30px 24px 0 0; }
.sede + .sede{ padding-left: 24px; border-left: 1px solid rgba(255,255,255,.3); }
.sede h3{ font-size: clamp(1.6rem, 3.2vw, 3rem); }
.sede p{ font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(242,237,232,.7); margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer{ background: #0f0b0a; padding: clamp(64px, 8vw, 110px) var(--gutter) 34px; position: relative; overflow: hidden; }
.footer-top{ display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img{ width: clamp(140px, 16vw, 220px); }
.footer-brand p{ margin-top: 20px; color: var(--ink-dim); max-width: 32ch; }
.site-footer h2{ font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red-glow); margin-bottom: 16px; }
.site-footer li{ padding: 4px 0; }
.site-footer li a, .site-footer address{ color: rgba(242,237,232,.82); font-style: normal; transition: color .3s; }
.site-footer li a:hover{ color: var(--red-glow); }
.footer-giant{ margin-top: clamp(60px, 8vw, 110px); font-size: clamp(2.6rem, 14.6vw, 17rem); line-height: .78; color: var(--bg-2); white-space: nowrap; letter-spacing: -.02em; user-select: none; }
.footer-bottom{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-dim); }
.footer-bottom a:hover{ color: var(--ink); }

/* ---------- WhatsApp float ---------- */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .4s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float::before{ content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping{ 0%{ transform: scale(1); opacity: .8; } 100%{ transform: scale(1.7); opacity: 0; } }
.wa-float svg{ width: 28px; height: 28px; }

/* ---------- 404 ---------- */
.notfound{ min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.notfound h1{ font-size: clamp(5rem, 22vw, 18rem); color: var(--red); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px){
  .main-nav, .header-actions .btn{ display: none; }
  .menu-toggle{ display: block; }
  .work-card:nth-child(1){ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .logo-grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px){
  :root{ --header-h: 68px; }
  .hero{ flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .brand img{ width: 88px; }
  .hero-aside{ position: static; justify-items: start; text-align: left; margin-top: 34px; }
  .hero-inner{ display: flex; flex-direction: column; }
  .hero-caption{ display: none; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3){ padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3){ border-top: 1px solid var(--line); margin-top: 30px; }
  .work-grid{ grid-template-columns: 1fr; }
  .work-card, .work-card:nth-child(n){ grid-column: 1 / -1; margin-top: 0; }
  .service-row a{ grid-template-columns: 40px minmax(0,1fr) 24px; gap: 12px; }
  .svc{ grid-template-columns: minmax(0,1fr); }
  .service-tags{ display: none; }
  .service-row-media{ display: block; margin: 0 0 26px 58px; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
  .service-row-media img{ width: 100%; height: 100%; object-fit: cover; }
  .service-preview{ display: none; }
  .ia-grid{ grid-template-columns: 1fr; }
  .ia-times{ text-align: center; line-height: .6; }
  .svc{ grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc-media{ order: 0; }
  .svc-media .clip-target{ aspect-ratio: 4/3; }
  .process-grid{ grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(3){ padding-left: 0; border-left: 0; }
  .process-step:nth-child(n+3){ border-top: 1px solid var(--line); margin-top: 20px; }
  .project, .project--flip{ grid-template-columns: 1fr; }
  .project--flip .project-info{ order: 0; }
  .project-info{ position: static; }
  .phone, .project--flip .phone{ left: auto; right: 10px; width: 30%; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-form{ grid-template-columns: 1fr; }
  .sedes{ grid-template-columns: 1fr; }
  .sede + .sede{ padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); margin-top: 26px; }
  .logo-grid{ grid-template-columns: repeat(3, 1fr); }
  .hero-wall{ grid-template-columns: repeat(2, 1fr); inset: -10% -30%; }
  .hero-wall-col:nth-child(3){ display: none; }
}
@media (max-width: 520px){
  :root{ --fs-hero: 10.4vw; --fs-page-hero: 10vw; --fs-h2: 9vw; }
  .hero-title{ margin-bottom: 26px; }
  .service-name{ font-size: 5.4vw; }
  .svc-body h2, .project-info h2{ font-size: 7vw; }
  .work-name{ font-size: 7.6vw; }
  .cta-title{ font-size: 10.4vw; }
  .next-label{ font-size: 7.4vw; }
  .ia-card h3{ font-size: 8.4vw; }
  .hero-ctas .btn{ flex: 1 1 auto; justify-content: center; }
  .process-grid{ grid-template-columns: 1fr; }
  .process-step, .process-step + .process-step{ padding-left: 0; border-left: 0; }
  .process-step + .process-step{ border-top: 1px solid var(--line); margin-top: 16px; }
  .footer-top{ grid-template-columns: 1fr; }
  .logo-grid{ grid-template-columns: repeat(2, 1fr); }
  .lang-switch button{ padding: 8px 4px; }
  .wa-float{ width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .btn{ padding: 16px 22px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-slide img, .hero-slide.is-active img{ animation: none !important; transform: none; }
  [data-reveal]{ opacity: 1; transform: none; }
  [data-reveal="clip"] > .clip-target{ clip-path: none; }
  .hero-title .line > span{ transform: none; }
  .hero-fade{ opacity: 1; transform: none; }
  .marquee-track, .logo-track, .hero-wall-col, .grain{ animation: none !important; }
  .page-curtain{ display: none; }
}
