:root {
  --void: #000;
  --bone: #fff;
  --ash: #9a9a9a;
  --mist: #bdbdbd;
  --iris: #8052ff;
  --saffron: #ffb829;
  --verdant: #15846e;
  --r: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--void);
  color: var(--bone);
  font: 200 18px/1.5 Inter, system-ui, sans-serif;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h1,
h2 {
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h1 {
  max-width: 100%;
  font-size: clamp(46px, 7.4vw, 104px);
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(42px, 6vw, 78px);
}

.lab {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Navegación */

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.85);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

nav img {
  display: block;
  width: auto;
  height: 38px;
  flex-shrink: 0;
}

nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

nav a.l {
  color: var(--ash);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav a.l:hover,
nav a.l.on {
  color: var(--bone);
}

/* Botones */

.pill {
  display: inline-block;
  background: var(--iris);
  color: #fff;
  border-radius: var(--r);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  background: #6a3fe6;
  transform: translateY(-2px);
}

.ghost {
  color: var(--saffron);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ghost:hover {
  color: var(--bone);
}

/* Secciones */

section {
  padding: 90px 0;
  scroll-margin-top: 80px;
}

/* Portada */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 20px;
  min-height: calc(100vh - 72px);
  padding: 30px 0;
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(46px, 7.4vw, 104px);
}

.hero p {
  max-width: 480px;
  margin: 32px 0 40px;
  color: var(--bone);
}

/* Servicios y contenido de dos columnas */

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: start;
}

.two > * {
  min-width: 0;
}

.two > :first-child {
  position: sticky;
  top: 110px;
}

.srv {
  display: grid;
  gap: 56px;
}

.srv h3 {
  margin-bottom: 10px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.srv p {
  max-width: 460px;
  margin-bottom: 16px;
  color: var(--mist);
}

/* Nosotros */

.about {
  max-width: 760px;
}

.about p {
  margin-top: 36px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Equipo */

.team {
  display: grid;
  gap: 56px;
}

.team svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  stroke: var(--iris);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team .role {
  margin-bottom: 8px;
  color: var(--iris);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.team h3 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.team p {
  max-width: 480px;
  color: var(--mist);
}

/* Contacto */

.sub {
  display: block;
  margin-bottom: 16px;
  color: var(--saffron);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.contact h2 {
  margin-bottom: 48px;
}

.contact .rows {
  display: grid;
  gap: 22px;
  margin: 44px 0 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.contact .rows span {
  display: block;
  margin-bottom: 2px;
  color: var(--ash);
  font-size: 14px;
}

.contact .rows a {
  overflow-wrap: anywhere;
}

.contact .rows a:hover {
  color: var(--saffron);
}

/* Pie de página */

footer {
  position: relative;
  z-index: 1;
  padding: 50px 0 60px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ash);
  font-size: 14px;
}

footer img {
  width: auto;
  height: 70px;
}

/* Fondo animado de partículas triangulares */

#c {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

/* Animaciones de entrada */

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pill {
    transition: none;
  }
}

/* Tabletas y móviles */

@media (max-width: 860px) {
  .wrap {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero,
  .two {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: calc(100svh - 64px);
    align-content: center;
    gap: 24px;
    padding: 40px 0;
  }

  .hero h1 {
    font-size: clamp(46px, 9vw, 76px);
  }

  .two {
    gap: 36px;
  }

  .two > :first-child {
    position: static;
  }

  .gap {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  nav {
    gap: 14px;
    min-height: 64px;
  }

  nav img {
    height: 32px;
  }

  nav .links {
    gap: 14px;
  }

  nav a.l {
    font-size: 12px;
  }

  nav a.l.hide {
    display: none;
  }

  .about p {
    font-size: 21px;
  }
}

/* Teléfonos pequeños */

@media (max-width: 430px) {
  .wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  nav {
    gap: 10px;
  }

  nav .links {
    gap: 10px;
  }

  nav a.l {
    font-size: 10px;
  }

  nav a.l.hide2 {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 11vw, 56px);
  }

  .hero p {
    margin: 24px 0 30px;
    font-size: 16px;
  }

  .contact .rows {
    font-size: 20px;
  }
}
