/* ============================================================
   sistematiz.ar — landing
   Identidad: raíz digital, ruta y expansión modular.
   Paleta y tipografía según la guía de identidad de marca.
   ============================================================ */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0a192f;          /* fondo institucional principal */
  --navy-2: #0c1f3a;        /* banda alterna */
  --navy-3: #07142a;        /* footer / fondo profundo */
  --text: #b7c8e1;          /* texto base sobre oscuro */
  --text-strong: #e9eef6;   /* títulos sobre oscuro */
  --muted: #7e93b4;         /* texto secundario */
  --accent: #00d1ff;        /* cian: signos . / y activación */
  --line: rgba(183, 200, 225, 0.14);
  --line-strong: rgba(183, 200, 225, 0.24);
  --card: rgba(183, 200, 225, 0.04);
  --card-hover: rgba(0, 209, 255, 0.06);
  --max: 1120px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- Logotipo (raíz + . / + extensión) ---------- */
.wm {
  display: inline-flex;
  align-items: baseline;
  font-weight: 600; /* Manrope SemiBold = raíz */
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
}

.wm .dot,
.wm .slash {
  background: var(--accent);
  flex: none;
}

.wm .dot {
  width: 0.16em;
  height: 0.16em;
  margin: 0 0.04em 0.04em 0.02em;
  align-self: flex-end;
}

.wm .slash {
  width: 0.1em;
  height: 0.78em;
  margin-left: 0.1em;
  border-radius: 1px;
  transform: skewX(-14deg);
  align-self: center;
}

.wm .ext {
  font-weight: 300; /* Manrope Light = extensión */
  color: var(--text);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 40px);
  background: color-mix(in srgb, var(--navy), transparent 14%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .wm {
  font-size: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.header-nav a:hover {
  color: var(--text-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent), white 12%);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--card-hover);
}

.header-nav .btn {
  padding: 9px 16px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 14vw, 150px) 0 clamp(64px, 12vw, 120px);
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(0, 209, 255, 0.14), transparent 55%),
    var(--navy);
}

.hero::after {
  /* retícula técnica sutil */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%);
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .wm {
  font-size: clamp(34px, 8vw, 78px);
  line-height: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  margin: 28px 0 0;
  color: var(--text-strong);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .lead {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* punto que pulsa como cursor/sistema activo */
.wm--live .dot {
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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

/* ---------- Secciones genéricas ---------- */
.section {
  padding: clamp(64px, 10vw, 110px) 0;
}

.section--alt {
  background: var(--navy-2);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 48px;
}

.section-head .kicker {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.section-head .kicker .dot,
.section-head .kicker .slash {
  background: var(--accent);
  flex: none;
}

.section-head .kicker .dot {
  width: 5px;
  height: 5px;
  align-self: flex-end;
  margin: 0 4px 2px 0;
}

.section-head .kicker .slash {
  width: 3px;
  height: 14px;
  margin-right: 8px;
  transform: skewX(-14deg);
}

.section-head h2 {
  color: var(--text-strong);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 16px;
  font-size: clamp(16px, 2vw, 19px);
}

/* ---------- Manifiesto ---------- */
.manifesto p {
  max-width: 24ch;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.manifesto p .accent {
  color: var(--accent);
}

.verbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.verbs span {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Pilares (qué hace) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
}

.pillar {
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.pillar .marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  background: var(--accent);
}

.pillar h3 {
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pillar p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Señales (cuándo sistematizar) ---------- */
.signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.signal .check {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--accent);
  border-radius: 5px;
}

.signal .check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.signal p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.closing-note {
  max-width: 62ch;
  margin-top: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: var(--text-strong);
}

@media (max-width: 640px) {
  .signals {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Rutas / módulos ---------- */
.routes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.route-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.route-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.route-card .route-label {
  display: inline-flex;
  align-items: baseline;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-strong);
}

.route-card .route-label .dot,
.route-card .route-label .slash {
  background: var(--accent);
  flex: none;
}

.route-card .route-label .dot {
  width: 6px;
  height: 6px;
  align-self: flex-end;
  margin: 0 5px 3px 0;
}

.route-card .route-label .slash {
  width: 3px;
  height: 17px;
  margin-right: 9px;
  transform: skewX(-14deg);
}

.route-card .route-label .ext {
  font-weight: 300;
}

.route-card p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.route-card .route-tag {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.route-card.is-soon {
  opacity: 0.72;
}

.route-card.is-soon:hover {
  transform: none;
  border-color: var(--line-strong);
  background: var(--card);
}

.route-card.is-soon .route-tag {
  color: var(--muted);
}

/* ---------- CTA de cierre ---------- */
.cta {
  text-align: center;
}

.cta .container {
  max-width: 760px;
}

.cta h2 {
  color: var(--text-strong);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta p {
  max-width: 52ch;
  margin: 18px auto 0;
  font-size: clamp(16px, 2vw, 19px);
}

.cta .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  background: var(--navy-3);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.site-footer .wm {
  font-size: 22px;
}

.footer-tagline {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 14px;
  color: var(--muted);
}

.footer-routes {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  align-content: start;
}

.footer-routes a {
  display: inline-flex;
  align-items: baseline;
  font-size: 14px;
  color: var(--text);
}

.footer-routes a:hover {
  color: var(--accent);
}

.footer-routes a .dot,
.footer-routes a .slash {
  background: var(--accent);
  flex: none;
}

.footer-routes a .dot {
  width: 4px;
  height: 4px;
  align-self: flex-end;
  margin: 0 4px 2px 0;
}

.footer-routes a .slash {
  width: 2px;
  height: 12px;
  margin-right: 7px;
  transform: skewX(-14deg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--text-strong);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header-nav {
    gap: 14px;
  }

  .header-nav .nav-link {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }
}
