/* ============================================================
   MAQ CORE — landing de lanzamiento
   Una solución Corex · administración de maquinaria pesada
   Base negra #090909, secciones claras #F5F4F0, acento amarillo
   maquinaria #FFC400. Tipografía Geist Sans + Geist Mono.
   ============================================================ */

:root {
  /* Paleta oficial Maq Core (brand guide Corex): amarillo, negro, blanco, gris operativo */
  --ink-0: #090909;
  --ink-1: #141414;
  --ink-2: #262626;
  --gray: #535353;
  --paper: #FFFFFF;

  /* Texto secundario sobre fondo oscuro: blanco atenuado, no un gris nuevo */
  --graphite: rgba(255, 255, 255, 0.62);
  --graphite-dim: rgba(255, 255, 255, 0.4);
  --paper-dim: rgba(255, 255, 255, 0.78);

  --light-bg: #F5F4F0;
  --light-card: #FFFFFF;
  --light-line: #DEDBD0;
  --light-ink: #090909;
  --light-ink-dim: #535353;

  --accent: #FFC400;
  --accent-hover: #E0AC00;
  --accent-line: rgba(255, 196, 0, 0.4);
  --on-accent: #090909;

  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.dim { color: var(--graphite); }

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.2; }

.section-light h2, .section-light h3 { color: var(--light-ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 1.1rem;
}

.section-light .eyebrow { color: var(--light-ink-dim); }

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--paper-dim);
  max-width: 34em;
  margin-top: 1.4rem;
}

.section-light .lead { color: var(--light-ink-dim); }

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

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--paper); border-color: #3A3A3A; }
.btn-ghost:hover { border-color: var(--paper); }

.section-light .btn-ghost { color: var(--light-ink); border-color: #C9C5B6; }
.section-light .btn-ghost:hover { border-color: var(--light-ink); }

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

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 9, 9, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-2);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--graphite);
  transition: color 0.2s ease;
}
.nav-logo:hover span { color: var(--paper); }

.nav-links { display: flex; gap: 1.9rem; margin-left: auto; }

.nav-links a, .nav-mobile a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--graphite);
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-mobile a:hover { color: var(--paper); }

.nav-cta { padding: 0.6rem 1.2rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.nav-toggle span { display: block; height: 2px; background: var(--paper); transition: transform 0.25s ease; }
.nav-toggle.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.6rem 24px 2.2rem;
  background: rgba(9, 9, 9, 0.98);
  border-bottom: 1px solid var(--ink-2);
}

.nav-mobile.open { display: flex; }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(9, 9, 9, 0.96) 22%, rgba(9, 9, 9, 0.72) 42%, rgba(9, 9, 9, 0.18) 62%, rgba(9, 9, 9, 0.3) 100%);
}

/* Líneas técnicas sutiles: retícula de control, no decoración gratuita */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 90px;
}

.hero-logo { height: 40px; width: auto; margin-bottom: 2.2rem; }

.hero-content h1 { max-width: 13em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-scale {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--graphite-dim);
}

.hero-scale span { display: block; width: 34px; height: 1px; background: var(--accent-line); }

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

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

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

.section-light { background: var(--light-bg); color: var(--light-ink); }
.section-light.section-line { border-top-color: var(--light-line); }

.section-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head h2 { margin-top: 0.4rem; }
.section-head .lead { margin-top: 1rem; }

/* ---------- Capacidades (6 tarjetas) ---------- */

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light-line);
  border: 1px solid var(--light-line);
}

.mod-card {
  background: var(--light-card);
  padding: 2.3rem 1.9rem;
  transition: background 0.25s ease;
  position: relative;
}

.mod-card:hover { background: #FBFAF7; }

.mod-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--light-ink-dim);
  margin-bottom: 1.4rem;
}

.mod-card h3 { color: var(--light-ink); }

.mod-card p { color: var(--light-ink-dim); margin-top: 0.7rem; }

.mod-card::after {
  content: "";
  position: absolute;
  left: 1.9rem; right: 1.9rem; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mod-card:hover::after { transform: scaleX(1); }

/* ---------- Split imagen + copy (operación conectada) ---------- */

.split-media {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split-media.reverse .split-copy { order: 2; }
.split-media.reverse .split-figure { order: 1; }

.split-figure {
  position: relative;
  border: 1px solid var(--ink-2);
  background: var(--ink-0);
}

.section-light .split-figure { border-color: var(--light-line); }

.split-figure img { width: 100%; height: auto; display: block; }

.split-copy .lead { margin-top: 1.2rem; }

.split-copy strong { color: var(--paper); font-weight: 650; }
.section-light .split-copy strong { color: var(--light-ink); }

/* ---------- Mantenimiento: tres bloques ---------- */

.block-row {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--light-line);
}

.block {
  padding: 2rem 1.8rem 0;
  border-left: 1px solid var(--light-line);
}

.block:first-child { border-left: none; padding-left: 0; }

.block-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-ink-dim);
  display: block;
  margin-bottom: 0.9rem;
}

.block h3 { color: var(--light-ink); }
.block p { color: var(--light-ink-dim); margin-top: 0.6rem; }

/* ---------- Formulario ---------- */

.form-section { background: var(--ink-0); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; align-items: start; }

.form-intro p { color: var(--graphite); margin-top: 1rem; max-width: 30em; }

.form { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}

.field input, .field select {
  background: var(--ink-1);
  border: 1px solid var(--ink-2);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.field select { appearance: none; }

.field input:hover, .field select:hover { border-color: var(--graphite-dim); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }

.form .btn { justify-self: stretch; margin-top: 0.4rem; }

.form-note { font-size: 0.85rem; color: var(--graphite-dim); }

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

.footer { border-top: 1px solid var(--ink-2); padding: 2.6rem 0; }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }

.footer-logo { height: 26px; width: auto; }

.footer-links { display: flex; gap: 1.5rem; margin-left: auto; }

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
}

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

.footer-by { display: flex; align-items: center; gap: 0.8rem; color: var(--graphite-dim); }
.footer-by img { height: 16px; width: auto; opacity: 0.8; }
.footer-by a:hover img { opacity: 1; }

.footer-legal { color: var(--graphite-dim); width: 100%; }

/* ---------- Revelado ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mod-card, .btn, .mod-card::after { transition: none; }
}

/* ---------- Formulario: envío real ---------- */

.hp-field { display: none; }

.form-ok {
  font-size: 1.05rem;
  color: var(--paper);
  border: 1px solid var(--accent);
  padding: 1.4rem 1.6rem;
}

.form-ok::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--accent);
  margin-right: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-full, .form .btn, .form-note { grid-column: 1 / -1; }
  .form .btn { justify-self: start; }
}

@media (min-width: 980px) {
  .form-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
}

@media (max-width: 920px) {
  .split-media { grid-template-columns: 1fr; }
  .split-media.reverse .split-copy, .split-media.reverse .split-figure { order: initial; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .block-row { grid-template-columns: 1fr; border-top: none; }
  .block { border-left: none; border-top: 1px solid var(--light-line); padding: 1.8rem 0 0; }
  .block:first-child { border-top: none; padding-top: 0; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-bg { opacity: 0.5; }
  .hero::before { background: linear-gradient(180deg, rgba(9,9,9,0.55) 0%, rgba(9,9,9,0.94) 62%, rgba(9,9,9,1) 100%); }
  .mod-grid { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 480px) {
  .field label { letter-spacing: 0.06em; }
}
