@font-face {
  font-family: "Suisse Intl";
  src: url("assets/fonts/SuisseIntl-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("assets/fonts/SuisseIntl-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #808080;
  --pill: #f5f5f5;
  --gutter: 25px;
  --tile-w: clamp(180px, 17.5vw, 265px);
  --tile-gap: clamp(10px, 1vw, 15px);
  --font: "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Header ------------------------------------------------------------ */

.header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px var(--gutter);
}

.logo { display: block; line-height: 0; }
.logo svg { width: 164px; height: auto; }

.nav { display: flex; gap: 6px; }

.nav__item {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pill);
  color: #555;
  font-size: 14px;
  font-weight: 500;
  filter: blur(1.6px);
  opacity: 0.85;
  cursor: default;
  user-select: none;
}

/* Intro ------------------------------------------------------------- */

.main {
  padding-top: clamp(24px, 4vh, 48px);
}

.intro {
  padding: 0 var(--gutter);
  text-align: center;
}

.intro__title {
  max-width: 21.6em;
  margin: 0 auto;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: pretty;
}

.intro__title sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: 0.55em;
}

.intro__note {
  max-width: 21.4em;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.33vw, 20px);
  font-weight: 500;
  line-height: 1.25;
}

.intro__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.97); }

.btn:focus-visible,
.footer a:focus-visible,
.field__input:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Reel (carrusel infinito) ----------------------------------------- */

.reel {
  margin-top: clamp(32px, 5vh, 48px);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.reel__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.reel__group {
  display: flex;
  gap: var(--tile-gap);
  margin: 0;
  padding: 0 var(--tile-gap) 0 0;
  list-style: none;
}

.reel__group li {
  width: var(--tile-w);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pill);
}

.reel__group img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Títulos de sección -------------------------------------------- */

.section-title {
  max-width: 20.5em;
  margin: 0 auto;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-wrap: pretty;
}

/* Proyectos (vista previa difuminada) ------------------------------ */

.projects {
  position: relative;
  margin-top: 43px;
  overflow: hidden;
}

.projects__preview {
  width: calc(100% + 56px);
  max-width: none;
  margin-left: -28px;
  aspect-ratio: 2000 / 865;
  object-fit: cover;
}

.projects__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 var(--gutter);
  text-align: center;
}

.projects__note {
  max-width: 23em;
  margin: 0;
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.projects .btn { height: 38px; padding: 0 34px; }

/* Clientes ---------------------------------------------------------- */

.clients {
  padding: 41px var(--gutter) 75px;
}

.clients__strip {
  margin: 70px calc(var(--gutter) * -1) 0;
  overflow: hidden;
}

.clients__track {
  display: flex;
  width: max-content;
  animation: clients 50s linear infinite;
}

.clients__track img {
  width: auto;
  height: 53px;
  margin-right: 150px;
}

@keyframes clients {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
}

/* Llamado a la acción ---------------------------------------------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 43px;
  padding: 60px var(--gutter) 52px;
  background: var(--pill);
}

.cta .btn { height: 38px; padding: 0 46px; }

/* Contacto + pie ---------------------------------------------------- */

.contact {
  padding: 63px var(--gutter) 31px;
  background: var(--ink);
  color: var(--paper);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 475px;
  margin: 62px auto 0;
}

.field { display: block; }

.field__label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
}

.field__input {
  width: 100%;
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 15px/1 var(--font);
  text-align: center;
}

.field__input::placeholder { color: var(--muted); opacity: 1; }

.contact__submit {
  align-self: center;
  height: 38px;
  margin-top: 6px;
  padding: 0 46px;
  border: 0;
  font-family: var(--font);
  cursor: pointer;
}

.contact__submit:disabled { opacity: 0.6; cursor: default; }

.contact__honey { position: absolute; left: -9999px; }

.contact__status {
  min-height: 1.4em;
  margin: -6px 0 0;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 247px 223px;
  align-items: end;
  margin-top: 150px;
  font-size: 13px;
  font-weight: 500;
}

.footer__logo { display: block; line-height: 0; justify-self: start; }
.footer__logo svg { width: 222px; height: auto; }

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 25px;
}

.footer__credit { color: var(--muted); }

.footer__credit sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: 0.7em;
}

.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact .btn:focus-visible,
.contact .field__input:focus-visible,
.footer a:focus-visible { outline-color: var(--paper); }

/* Mobile ------------------------------------------------------------ */

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .header { gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .logo svg { width: 128px; }
  .nav__item { padding: 6px 11px; font-size: 13px; }

  .intro__title { font-size: 28px; line-height: 1.12; }
  .intro__note { margin-top: 24px; font-size: 16px; }
  .intro__actions { margin-top: 28px; }

  .section-title { font-size: 28px; line-height: 1.12; }

  .projects__preview {
    width: 100%;
    margin-left: 0;
    height: 420px;
    aspect-ratio: auto;
    object-position: 50% 50%;
  }
  .projects__note { max-width: 270px; font-size: 15px; }

  .clients { padding-bottom: 56px; }
  .clients__strip { margin-top: 40px; }
  .clients__track img { height: 36px; margin-right: 100px; }

  .cta { gap: 32px; padding: 48px var(--gutter); }

  .contact { padding-top: 48px; }
  .contact__form { margin-top: 40px; }

  .footer {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
    margin-top: 96px;
  }
  .footer__logo { grid-column: 1 / -1; order: 3; }
  .footer__logo svg { width: 170px; }
}
