@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk Variable";
  src: url("fonts/hanken-grotesk-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #faf8ff;
  --ink: #170f23;
  --purple: #6d18f5;
  --header-height: max(63.3686px, 3.667165vw);
  --page-gutter: max(16px, 1.446759vw);
  font-family: "Hanken Grotesk", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p, ul { margin: 0; }
body { min-width: 280px; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { color: white; background: var(--purple); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 20px;
  padding: 12px 16px;
  color: white;
  background: var(--purple);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Effect 024 follows the page scroll while the hero stays in normal flow. */
.hero-section { height: auto; }
.hero-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  padding-top: var(--header-height);
  background: var(--surface);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
  width: 100%;
  padding: max(12px, .694444vw) var(--page-gutter);
  background: transparent;
  opacity: 1;
  visibility: visible;
  transition: opacity .4s cubic-bezier(.25, .46, .45, .94), visibility 0s;
}
.site-header.is-at-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s cubic-bezier(.25, .46, .45, .94), visibility 0s .4s;
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header.is-at-footer { transition: none; }
}
#contenido, #sobre-nosotros, #servicios, #proyectos, #proceso, #testimonios {
  scroll-margin-top: var(--header-height);
}
.brand { flex-shrink: 0; }
.brand img { width: max(105px, 6.076389vw); height: auto; }
.site-nav { display: flex; align-items: flex-start; gap: max(10px, .578704vw); }
.nav-links { display: flex; align-items: center; gap: max(12px, .694444vw); }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: max(123px, 7.118056vw);
  padding: max(10px, .578704vw);
  font-size: max(16px, .925926vw);
  font-weight: 800;
  line-height: 1;
  color: #000;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: max(10px, .578704vw);
  padding: max(10px, .578704vw);
  background: #fff;
  font-size: max(16px, .925926vw);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease;
}
.button-nav, .button-hero { color: var(--purple); }
.button img { flex-shrink: 0; width: max(21px, 1.215278vw); height: auto; }
.button-icon {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: max(20.6715px, 1.196268vw);
  aspect-ratio: 20.6715 / 19.0107;
}
.button .button-icon img { width: 100%; height: auto; transition: opacity .25s ease; }
.button-icon-hover { position: absolute; inset: 0; opacity: 0; }
.button:focus-visible, .button:active { color: #fff; background: var(--purple); }
.button:focus-visible .button-icon-rest, .button:active .button-icon-rest { opacity: 0; }
.button:focus-visible .button-icon-hover, .button:active .button-icon-hover { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { color: #fff; background: var(--purple); }
  .button:hover .button-icon-rest { opacity: 0; }
  .button:hover .button-icon-hover { opacity: 1; }
}
.menu-toggle { display: none; }

.hero {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  gap: 6.481481vw;
}
.hero-copy {
  display: flex;
  flex: 1 0 auto;
  width: 71.469907vw;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.793981vw;
  padding-top: 3.703704vw;
  text-align: center;
}
.hero-eyebrow {
  font-size: max(20px, 2.083333vw);
  font-weight: 400;
  line-height: 1.055556;
  letter-spacing: -.111383vw;
}
.eyebrow-line, .title-line { display: block; }
.hero-title {
  width: 100%;
  font-family: "Hanken Grotesk Variable", "Hanken Grotesk", sans-serif;
  font-size: max(48px, 8.333333vw);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.111383vw;
}
.title-line { white-space: nowrap; }
.hero-weight-char {
  display: inline-block;
  font-variation-settings: "wght" var(--wght, 800);
  letter-spacing: 0;
  text-align: center;
}
.hero-cta { flex-shrink: 0; }
.hero-bottom {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  padding-block: .636574vw;
}
.marquee-viewport { position: relative; }
.sentences {
  position: relative;
  overflow: clip;
  font-size: max(38px, 3.767245vw);
  font-weight: 600;
  line-height: 1.2;
  color: #170e23;
}
.sentence { overflow: hidden; }
.sentence2 { position: absolute; inset: 0; pointer-events: none; }
.sentence2 .marquee-track { transform: translateY(100%); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.157407vw;
  padding-right: 1.157407vw;
  white-space: nowrap;
}
.marquee-group img { width: max(30px, 2.773848vw); height: auto; flex-shrink: 0; }
.services {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 1vw;
  padding: 2vw 2vw 0;
  border-top: .5px dashed #484848;
  list-style: none;
  font-size: max(10px, .9vw);
  font-weight: 500;
  line-height: 1.286;
  color: #170e23;
}

/* The portfolio's word reveal: move the inner span, preserving layout. */
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: .14em;
  margin-block: -.14em;
}
.word-inner { display: inline-block; }
/* Original rolling hover timing from r4ni3l.com. Two real glyph rows. */
.roll-mask { display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
.roll-char {
  display: inline-block;
  position: relative;
  white-space: pre;
  translate: 0 0;
  transition: translate .735s cubic-bezier(.65, .05, 0, 1);
  transition-delay: calc(var(--roll-index) * .00666667s);
}
.roll-glyph, .roll-copy { display: block; line-height: inherit; }
.roll-copy { position: absolute; top: 100%; left: 0; width: 100%; }
.is-rolling .roll-char { translate: 0 -100%; }

@media (max-width: 900px) {
  .nav-link { min-width: auto; }
  .nav-links { gap: 6px; }
  .hero-copy { width: 86%; }
  .hero-title { font-size: 9.5vw; }
  .hero { gap: 52px; }
  .hero-eyebrow { font-size: 24px; }
  .hero-copy { gap: 24px; }
  .marquee-group { gap: 16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  :root { --header-height: 70px; }
  .hero-stage { min-height: 570px; }
  .site-header { padding: 15px 20px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 12px;
    border: 0;
    background: transparent;
    font-weight: 800;
    font-size: 16px;
    line-height: 20px;
  }
  .menu-icon { display: flex; width: 22px; height: 18px; flex-direction: column; justify-content: center; gap: 6px; }
  .menu-icon span { height: 2px; width: 22px; background: var(--ink); transition: transform .3s ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline: 20px;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid #170f2314;
    box-shadow: 0 12px 24px #170f2308;
  }
  .site-nav[hidden] { display: none; }
  .nav-links { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .nav-link { justify-content: flex-start; padding: 14px 0; font-size: 21px; }
  .button-nav { width: 100%; }
  .hero { gap: 44px; }
  .hero-copy { width: calc(100% - 32px); padding-top: 8px; gap: 26px; }
  .hero-eyebrow { font-size: clamp(16px, 4.615385vw, 24px); line-height: 1.12; letter-spacing: -.65px; }
  .hero-title { font-size: 10vw; line-height: 1.03; letter-spacing: -.7px; }
  .hero-bottom { padding-block: 12px 16px; }
  .sentences { font-size: 40px; }
  .marquee-group img { width: 31px; }
  .services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; margin-top: 18px; padding: 22px 20px 0; font-size: 10px; line-height: 1.2; }
  .services li:nth-child(even) { text-align: right; }
}
@media (max-height: 650px) and (min-width: 641px) {
  .hero-stage { min-height: 480px; }
  .hero { gap: 28px; }
  .hero-copy { padding-top: 12px; gap: 16px; }
  .hero-eyebrow { font-size: 22px; }
  .hero-title { font-size: min(7.2vw, 12vh); }
  .sentences { font-size: 38px; }
  .services { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .button .button-icon img { transition: none; }
  .roll-char { transition: none; translate: 0 0 !important; }
  .menu-icon span { transition: none; }
  .word-inner { transform: none !important; }
}
