/* WE2 — colores medidos de la hoja de marca "Cruce" */
:root {
  --ink: #102025;
  --dark: #0C141B;
  --teal: #62A2B2;
  --teal-dark: #1F4B5A;
  --teal-deep: #133C4A;
  --grey: #A8B0B3;
  --text-soft: #45565E;
  --on-dark-soft: #CBD4D8;
  --line: #DFE6EA;
  --line-dark: rgba(255, 255, 255, 0.16);
  --tint: #F3F7F9;
  --tile: #E7F0F3;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --header-h: 80px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal-dark);
}

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

.sprite {
  position: absolute;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--teal-dark);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1264px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Piezas compartidas ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.lead {
  max-width: 520px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-soft);
  text-wrap: pretty;
}

.lead--small {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--teal-dark);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--teal-deep);
}

.btn--small {
  min-height: 44px;
  padding: 0 22px;
  font-size: 16px;
}

.btn--on-dark {
  background: var(--teal);
  color: var(--dark);
}

.btn--on-dark:hover {
  background: #7DB6C4;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow svg {
  transition: transform 0.15s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.logo__iso {
  width: 32px;
  height: 36px;
  flex: none;
}

.logo__word {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo__two {
  color: var(--teal);
}

.logo--small {
  gap: 6px;
  min-height: 0;
  color: #FFFFFF;
}

.logo--small .logo__iso {
  width: 25px;
  height: 28px;
}

.logo--small .logo__word {
  font-size: 31px;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 32px;
  padding-top: calc((var(--header-h) - 48px) / 2);
  padding-bottom: calc((var(--header-h) - 48px) / 2);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* ---------- Secciones ---------- */

section[id],
footer[id] {
  scroll-margin-top: var(--header-h);
}

.section {
  padding: var(--section) 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.section--tint {
  background: var(--tint);
}

.section--dark {
  background: var(--dark);
  color: #FFFFFF;
}

.section--dark .eyebrow {
  color: var(--grey);
}

.section--dark .lead,
.section--dark p {
  color: var(--on-dark-soft);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section__title {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}

.split > * {
  flex: 1 1 420px;
  min-width: 0;
}

.split--end {
  align-items: flex-end;
}

.split--center {
  align-items: center;
  gap: 48px 64px;
}

/* ---------- Portada ---------- */

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 56px);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: var(--section);
}

.hero__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  max-width: 1100px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 80px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__brand {
  color: var(--teal-dark);
}

.hero__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 64px;
}

.hero__intro {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.now {
  flex: 1.25 1 440px;
  min-width: 0;
  padding: 32px clamp(22px, 3vw, 36px) 28px;
  border-radius: 20px;
  background: var(--dark);
  color: #FFFFFF;
}

.now__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.now__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 0 40px;
}

.now__list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.now__n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--teal);
}

/* ---------- Qué hacemos ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 56px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card p {
  color: var(--text-soft);
  text-wrap: pretty;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--tile);
  color: var(--teal-dark);
}

.card__title,
.step__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* ---------- Cómo trabajamos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px 24px;
  margin-top: clamp(48px, 6vw, 72px);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.step p {
  max-width: 340px;
  text-wrap: pretty;
}

.step__n {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--teal);
}

/* ---------- Proyectos ---------- */

.projects {
  margin-top: 56px;
  border-bottom: 1px solid var(--line);
}

.project {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.project__n {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-dark);
}

.project__name {
  flex: 1.2 1 240px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.project__name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--teal-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.project__name a:hover {
  color: var(--teal-dark);
}

.project__desc {
  flex: 2 1 360px;
  min-width: 0;
  color: var(--text-soft);
  text-wrap: pretty;
}

.project__tag {
  flex: 0 1 200px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- Nosotros ---------- */

.about__text {
  flex: 1.3 1 420px;
}

.about__text .lead {
  margin-top: 8px;
}

.about__mark {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #FFFFFF;
}

.about__mark svg {
  width: 172px;
  height: 191px;
  max-width: 100%;
}

/* ---------- Contacto y pie ---------- */

.site-footer {
  padding-top: var(--section);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact .actions {
  margin-top: 16px;
}

.contact__title {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--on-dark-soft);
  text-decoration: none;
}

.contact__mail:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(64px, 8vw, 96px);
  padding: 28px 0 36px;
  border-top: 1px solid var(--line-dark);
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.site-footer__legal {
  font-size: 15px;
  color: var(--grey);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}

.site-footer__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #FFFFFF;
  font-size: 15px;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--teal);
}

/* ---------- Móvil: menú plegable (solo si hay JS) ---------- */

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .logo__iso {
    width: 27px;
    height: 30px;
  }

  .logo__word {
    font-size: 33px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 20px;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav__link {
    min-height: 48px;
    border-top: 1px solid var(--line);
    font-size: 17px;
  }

  .js .site-nav .btn {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .project {
    gap: 8px 32px;
  }

  .project__n,
  .project__name {
    flex-basis: 100%;
  }
}

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

  .btn,
  .link-arrow svg {
    transition: none;
  }
}
