/* Presence Studio · rediseño · hero
   Tokens del manual v1.1: Ink / Lime / Paper, Poppins (marca y títulos) + Inter (texto). */
:root {
  --ink: #111111;
  --lime: #AAEE21;
  --paper: #FFFFFF;
  --mute: rgba(255, 255, 255, 0.64);
  --dim: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.14);
  --gut: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --f-brand: "Poppins", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-text);
  -webkit-font-smoothing: antialiased;
}
html.js body.is-intro { overflow: hidden; }
a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gut);
}
.logo {
  font: 700 26px/1 var(--f-brand);
  letter-spacing: -0.04em;
}
.logo i { font-style: normal; color: var(--lime); }
.nav__links {
  display: flex;
  gap: 34px;
  font: 500 14px/1 var(--f-text);
  color: rgba(255, 255, 255, 0.7);
}
.nav__links a { transition: color 0.2s ease; }
.nav__cta { display: flex; align-items: center; gap: 22px; }
.nav__diag { font: 500 14px/1 var(--f-text); color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--f-brand);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.28); color: var(--paper); }
.btn .arr { display: inline-block; transition: transform 0.2s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover, .nav__diag:hover { color: var(--paper); }
  .btn--lime:hover { background: #BBF247; }
  .btn--ghost:hover { border-color: var(--paper); }
  .btn:hover .arr { transform: translateX(3px); }
}

/* ---------- hero ---------- */
.hero {
  --ox: 80%;   /* dónde vive el punto (origen de la onda) */
  --oy: 45%;
  --d: 44px;   /* diámetro del punto; JS lo sincroniza con la escala del shader */
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gut) 32px;
}
.hero__onda {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__dot {
  position: absolute;
  left: var(--ox);
  top: var(--oy);
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  z-index: 6;
  pointer-events: none;
}
.hero__dot i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--lime);
}

/* intro: el wordmark se arma en el centro; su punto es el mismo .hero__dot */
.intro {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro[hidden] { display: none; }
.intro__ruido { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro__wm { position: relative; }
.intro__wm {
  font: 700 clamp(52px, 8vw, 112px)/1 var(--f-brand);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.intro__l { display: inline-block; }
.intro__ph { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.03em; }
html.js .intro__l { opacity: 0; }

.hero__content { position: relative; z-index: 7; max-width: 1000px; }
/* velo suave bajo el texto para que el grano no le pelee a la lectura */
.hero__content::before {
  content: "";
  position: absolute;
  inset: -12% -18% -18% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0));
  pointer-events: none;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 28px;
  font: 500 12px/1 var(--f-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; margin-right: 12px; background: currentColor; }
.eb-x { white-space: pre; }
.hero__title {
  margin: 0;
  font: 600 clamp(42px, 5.6vw, 86px)/1.02 var(--f-brand);
  letter-spacing: -0.035em;
}
.hero__title .acc { font-style: normal; color: var(--lime); }
.hero__title .w { display: inline-block; }
.hero__sub {
  max-width: 42ch;
  margin: 28px 0 36px;
  font: 400 clamp(16px, 1.25vw, 19px)/1.55 var(--f-text);
  color: var(--mute);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__foot {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 9vh, 96px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 500 11px/1.4 var(--f-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll span {
  position: relative;
  width: 1px;
  height: 22px;
  overflow: hidden;
  background: var(--line);
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(-100%);
  animation: bajar 2.2s var(--ease-in-out) infinite;
}
@keyframes bajar { 60%, 100% { transform: translateY(100%); } }

/* lo que entra después de la intro */
html.js .nav, html.js [data-r] { opacity: 0; }
/* primera visita: hasta que arranca la intro no se ve nada del hero, solo el negro de la marca */
html.js:not(.no-intro) .hero__title .w, html.js:not(.no-intro) .hero__dot { opacity: 0; }
html.js:not(.no-intro) .intro { background: var(--ink); }
html.no-intro .nav, html.no-intro [data-r], html.no-intro .intro__l { opacity: 1; }
html.no-intro .intro { display: none; }
html.no-intro body.is-intro { overflow: visible; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { --ox: 74%; --oy: 19%; padding-top: 96px; }
  .eb-x { display: none; }
  .nav { padding-top: 16px; }
  .nav__links, .nav__diag { display: none; }
  .br-d { display: none; }
  .hero__foot .hero__servicios { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll span::after { animation: none; transform: none; }
}
