/* =========================================================================
   Systeck — landing de producto
   Estética: ficha técnica industrial. Papel cálido y negro de tinta,
   reglas de un pelo, etiquetas monoespaciadas, numeración de sección.
   Nada de tarjetas redondeadas flotando: esto tiene que leerse como la
   hoja de datos de un producto serio, no como un SaaS genérico.
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("archivo-latin.woff2") format("woff2");
}

:root {
  --ink: #0b0e0d;
  --ink-soft: #171b1a;
  --paper: #f1eee6;
  --paper-dim: #e4e0d5;
  --emerald: #0e7a55;
  --emerald-bright: #2cd08a;
  --amber: #e9a83c;
  --rule: rgba(11, 14, 13, 0.14);
  --rule-dark: rgba(241, 238, 230, 0.16);
  --muted: rgba(11, 14, 13, 0.58);
  --muted-dark: rgba(241, 238, 230, 0.6);

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* El padding va DENTRO del max-width, así que el ancho útil real es
     `measure - 2×gutter`. Con 1380/4rem quedan ~1250px de contenido, que
     es lo que hace que se lean los ítems del menú en las capturas. */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 1380px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- Micro-tipografía técnica ------------------------------------------ */

.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* --- Barra de navegación ------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-dark);
  color: var(--paper);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 62px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand__tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--muted-dark);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* :not(.btn) porque `.nav__links a` gana en especificidad sobre `.btn` y le
   estaba imponiendo la monoespaciada al CTA de la barra. Los enlaces sueltos
   sí van en mono: son etiquetas. */
.nav__links a:not(.btn) {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-dark);
  transition: color 0.18s ease;
}

.nav__links a:hover { color: var(--paper); }

@media (max-width: 820px) {
  .nav__links a:not(.btn) { display: none; }
  /* La bajada de marca parte en dos líneas y desborda la barra. */
  .brand__tag { display: none; }
  .btn { padding-inline: 1rem; }
}

/* --- Botones ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  /* Archivo y no la monoespaciada: a 11px, con 0.14em de tracking y sobre el
     verde brillante, el mono se renderiza finito y el botón se lee lavado.
     Archivo es variable, así que el 700 es peso de verdad. Las etiquetas y la
     ficha técnica siguen en mono, que es donde esa voz corresponde. */
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--emerald-bright);
  color: var(--ink);
}

.btn--primary:hover { background: #48e0a1; }

.btn--ghost {
  border-color: var(--rule-dark);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--emerald-bright);
  color: var(--emerald-bright);
}

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

.btn--ink:hover { background: var(--emerald); }

.btn--outline-ink {
  border-color: var(--rule);
  color: var(--ink);
}

.btn--outline-ink:hover { border-color: var(--ink); }

.btn__arrow { transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3.5rem, 8vw, 6rem);
}

/* Papel cuadriculado: la referencia es una hoja de cálculo de obra. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 15% 0%, #000 25%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -25%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(44, 208, 138, 0.13), transparent 62%);
  pointer-events: none;
}

.hero__grid { position: relative; }

.hero__eyebrow {
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-dark);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 1.9rem;
  max-width: 18ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--emerald-bright);
}

.hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted-dark);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero__note {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(241, 238, 230, 0.42);
}

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

.section { padding-block: clamp(4rem, 9vw, 7rem); }

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

.section--dim {
  background: var(--paper-dim);
  border-block: 1px solid var(--rule);
}

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

.section__head {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 700px) {
  .section__head { grid-template-columns: 1fr; gap: 0.75rem; }
}

.section__num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  padding-top: 0.55rem;
  border-top: 2px solid var(--emerald);
  white-space: nowrap;
}

.section--ink .section__num {
  color: var(--emerald-bright);
  border-top-color: var(--emerald-bright);
}

.section__title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.section__sub {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.section--ink .section__sub { color: var(--muted-dark); }

/* --- Problemas ---------------------------------------------------------- */

.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.pain {
  padding: 2rem 1.75rem 2.25rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.2s ease;
}

.pain:last-child { border-right: 0; }
.pain:hover { background: rgba(11, 14, 13, 0.035); }

.pain__mark {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  display: block;
  margin-bottom: 1rem;
}

.pain h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.pain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 700px) {
  .pain { border-right: 0; }
}

/* --- Bloques de feature con captura ------------------------------------- */

/* La captura va a TODO el ancho, no en una columna al costado.
   Son pantallas de 1568px: en media página se veían como miniaturas y no
   se leía nada — ni los números ni los ítems del menú, que es justamente
   lo que muestra de qué tamaño es el sistema. El texto va arriba, en dos
   columnas, y la lámina abajo ocupando todo. */
.feature {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.section--ink .feature { border-top-color: var(--rule-dark); }

/* Primer bloque de una sección: ya lo separa el encabezado. */
.feature--lead { border-top: 0; padding-top: 0; }

.feature__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 900px) {
  .feature__body { grid-template-columns: 1fr; gap: 1.25rem; }
}

.feature__kicker {
  color: var(--emerald);
  margin-bottom: 0.9rem;
  display: block;
}

.section--ink .feature__kicker { color: var(--emerald-bright); }

.feature h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.feature p {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.section--ink .feature p { color: var(--muted-dark); }

.feature ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.feature li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.section--ink .feature li { color: var(--muted-dark); }

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--emerald);
}

.section--ink .feature li::before { background: var(--emerald-bright); }

/* La captura va montada como una lámina de manual técnico. */
.shot {
  position: relative;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 24px 50px -30px rgba(11, 14, 13, 0.55);
}

.section--ink .shot {
  border-color: var(--rule-dark);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* `height: auto` es obligatorio: con `width: 100%` a secas, el atributo
   height del <img> se aplica como alto fijo y la captura sale estirada. */
.shot img { width: 100%; height: auto; }

.shot__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

.section--ink .shot__caption {
  border-top-color: var(--rule-dark);
  background: var(--ink-soft);
  color: var(--muted-dark);
}

/* --- Grilla de módulos -------------------------------------------------- */

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  border-top: 1px solid var(--rule-dark);
  border-left: 1px solid var(--rule-dark);
}

.module {
  padding: 1.5rem 1.4rem 1.7rem;
  border-bottom: 1px solid var(--rule-dark);
  border-right: 1px solid var(--rule-dark);
  transition: background 0.2s ease;
}

.module:hover { background: rgba(241, 238, 230, 0.045); }

.module__idx {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: rgba(241, 238, 230, 0.32);
  display: block;
  margin-bottom: 0.85rem;
}

.module h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.module p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-dark);
  line-height: 1.55;
}

/* --- Puesta en marcha --------------------------------------------------- */

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

.step {
  padding: 1.75rem 1.5rem 2rem;
  border-top: 2px solid var(--ink);
  margin-right: -1px;
  position: relative;
}

.step + .step { border-left: 1px solid var(--rule); }

@media (max-width: 700px) {
  .step + .step { border-left: 0; }
}

.step__num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--emerald);
  display: block;
  margin-bottom: 0.9rem;
}

.step h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --- Cierre ------------------------------------------------------------- */

.close {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.close::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 100% at 50% 120%, rgba(44, 208, 138, 0.16), transparent 65%);
  pointer-events: none;
}

.close__inner { position: relative; text-align: center; }

.close h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 1.5rem auto 1.2rem;
  max-width: 18ch;
  text-wrap: balance;
}

.close p {
  color: var(--muted-dark);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.close__contact {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}

.close__contact a { color: var(--emerald-bright); text-decoration: none; }
.close__contact a:hover { text-decoration: underline; }

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: rgba(241, 238, 230, 0.4);
  border-top: 1px solid var(--rule-dark);
  padding-block: 1.75rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Aparición al hacer scroll ------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Entrada del hero, escalonada. */
.hero .stagger > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero .stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero .stagger > *:nth-child(2) { animation-delay: 0.14s; }
.hero .stagger > *:nth-child(3) { animation-delay: 0.23s; }
.hero .stagger > *:nth-child(4) { animation-delay: 0.32s; }
.hero .stagger > *:nth-child(5) { animation-delay: 0.41s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

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

  .reveal,
  .hero .stagger > * {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn:hover { transform: none; }
}
