@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c0e;
  --bg-2: #141417;
  --line: #2b2b30;
  --text: #f2efea;
  --muted: #bdb8b0;
  --red: #c8161d;
  --red-dark: #a8121a;
  --header-h: 108px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Las anclas no quedan tapadas por la cabecera fija */
section[id] { scroll-margin-top: var(--header-h); }

/* Cabecera fija: aviso de demo + menú */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.demo-bar {
  background: #1d1d21;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--pad);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.demo-bar p { margin: 0; }
.demo-bar a { color: var(--text); text-underline-offset: 3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--pad);
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand img { width: 45px; height: 40px; }
.brand small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.6rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { white-space: nowrap; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .burger span:nth-child(2) { opacity: 0; }
.site-header.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--text); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--text); color: var(--bg); }
.btn-big { min-height: 64px; padding: 1rem 2.2rem; font-size: 1.05rem; }

/* Títulos */
.section-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.section-title,
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title { font-size: clamp(2.6rem, 7vw, 6.5rem); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2rem;
  padding: calc(var(--header-h) + 2.5rem) var(--pad) 3rem;
  overflow: hidden;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.hero-title {
  font-size: clamp(2.6rem, min(6.6vw, 10.5vh), 7.4rem);
}
.hero-lead {
  max-width: 34rem;
  margin: 1.4rem 0 1.8rem;
  font-size: 1.12rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-tags li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  background: var(--red);
}
.hero-figure {
  margin: 0;
  align-self: end;
  justify-self: center;
  width: min(100%, 380px);
}
.hero-figure img {
  width: 100%;
  height: auto;
  /* Foto más discreta: el hero se lee corporativo, no militar */
  filter: brightness(0.55) saturate(0.85);
}
.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 1.5rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* Marquesina */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
  padding: 1.1rem 0;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  padding-right: 2.2rem;
  color: var(--text);
}
.marquee-track span::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 2.2rem;
  background: var(--red);
  vertical-align: middle;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Nosotros */
.about {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}
.about-grid p {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
}
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.values li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-transform: uppercase;
}
.values span {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

/* Servicios (sección horizontal fijada) */
.services {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.services-intro {
  padding: clamp(5rem, 9vw, 8rem) var(--pad) 2.5rem;
}
.services-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 1.5rem 0 0;
}
.services-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 0 var(--pad) 5rem;
}
.service-panel {
  flex: 0 0 min(440px, 82vw);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2.4rem 2.2rem;
  min-height: 420px;
}
.service-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 2rem 0 1.6rem;
  color: var(--text);
}
.service-panel h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  margin: 0 0 1rem;
}
.service-panel > p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.service-caps {
  font-size: 0.92rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.service-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  padding-top: 1.5rem;
  border-bottom: 1px solid transparent;
}
.service-link:hover { border-bottom-color: var(--text); }

/* Tecnología */
.tech {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.tech-lead,
.jobs-lead {
  max-width: 40rem;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 2rem 0 2.5rem;
}
.monitor {
  max-width: 720px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}
.live i {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.25; }
}
.monitor-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.monitor-rows li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.monitor-rows li:last-child { border-bottom: 0; }
.monitor-rows span {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}

/* Empleo y contacto */
.jobs,
.contact {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.jobs .btn { margin-top: 0.5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-grid address {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-grid address p { margin: 0 0 0.9rem; }
.contact-name {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text) !important;
  font-size: 1.4rem;
}
.contact-grid address a {
  color: var(--text);
  text-underline-offset: 4px;
}

/* Pie */
.site-footer {
  padding: 2.5rem var(--pad) 2rem;
  background: #08080a;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-demo {
  max-width: 36rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-demo a { color: var(--text); text-underline-offset: 3px; }
.footer-legal {
  margin: 2rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.wa-float svg { width: 26px; height: 26px; }

/* Cursor personalizado: solo con puntero fino */
.cursor { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--text);
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: difference;
    transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease;
  }
  .cursor.is-hover {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  :root { --header-h: 100px; }
  .nav-links,
  .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.25rem;
  }
  .site-header.open .nav-links li { border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text);
  }
  .site-header.open .nav-links a::after { display: none; }
  .nav-links { margin: 0; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-bottom: 4rem;
  }
  .hero-figure {
    order: 2;
    justify-self: start;
    width: min(100%, 360px);
  }
  .hero-scroll { display: none; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  /* Sin fijado en pantallas pequeñas: los servicios pasan a columna */
  .services-track {
    flex-direction: column;
    overflow: visible;
    transform: none !important;
  }
  .service-panel {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  :root { --header-h: 112px; }
  .demo-bar { font-size: 0.72rem; padding: 0.45rem var(--pad); }
  .brand { font-size: 1rem; gap: 0.55rem; }
  .brand img { width: 36px; height: 32px; }
  .hero-actions .btn { width: 100%; }
  .monitor-rows li { grid-template-columns: 1fr; gap: 0.3rem; }
  .btn-big { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .live i { animation: none; }
}
