/* Serge · capa de marca y sistema visual de la web pública.
   Se carga después de styles.css y landing.css. Fija la tipografía de marca
   (Archivo + IBM Plex Mono, marca/MARCA.md), los tokens de color, la escala
   tipográfica, el ritmo vertical y los componentes comunes (cabecera, botones,
   pie). Un solo tema, claro. El granate es acento, no decoración. */

@font-face {
  font-family: Archivo;
  src: url('assets/Archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Archivo;
  src: url('assets/Archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/IBMPlexMono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ── Tokens ── */
:root,
:root[data-theme='light'] {
  --font: Archivo, 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --nav-h: 76px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 12px;
  --radius-sm: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Marca */
  --grafito: #23242a;
  --grafito-900: #17181c;
  --gris-600: #5a5c65;
  --gris-500: #7a7c85;
  --gris-300: #c8cacf;
  --linea: #e3e4e7;
  --hueso: #f7f6f4;
  --granate: #7a2438;
  --granate-700: #631d2e;
  --granate-100: #f6e7ea;
  --granate-200: #e9c8cf;
  --granate-300: #d6a1ac;
  --luz: #d8455c;

  /* Superficies y texto */
  --bg: #fff;
  --bg-alt: #f7f6f4;
  --ink: #23242a;
  --muted: #5a5c65;
  --muted-2: #7a7c85;
  --line: #e3e4e7;
  --line-strong: #23242a;
  --card: #fff;
  --card-2: #f1f2f4;
  --accent: #7a2438;
  --accent-strong: #631d2e;
  --accent-soft: #f6e7ea;
  --accent-tint: rgba(122, 36, 56, 0.07);
  --btn-bg: #7a2438;
  --btn-bg-hover: #631d2e;
  --dark-bg: #17181c;
  --hub-bg: #23242a;
  --grid-line: rgba(35, 36, 42, 0.055);
  --shadow-card: 0 1px 2px rgba(35, 36, 42, 0.04), 0 12px 32px -20px rgba(35, 36, 42, 0.25);

  /* Dibujo técnico */
  --t-ink: #23242a;
  --t-soft: #c8cacf;
  --t-fill: #fff;
  --t-fill-2: #f1f2f4;

  /* Tokens de las subpáginas (styles.css) */
  --surface: #fff;
  --surface-2: #f4f4f5;
  --accent-2: #92253c;
  --btn: #7a2438;
  --btn-hover: #5b1b2b;
  --btn-ink: #fff;
  --signal: #7a2438;
  --signal-text: #7a2438;
  --signal-soft: #f4e9ec;
  --stage: #24252b;
  --stage-2: #303137;
  --stage-3: #383940;
  --stage-muted: #b8b9c0;
  --stage-accent: #edb8c4;
}
@media (max-width: 800px) {
  :root,
  :root[data-theme='light'] {
    --nav-h: 68px;
  }
}

html {
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: rgba(122, 36, 56, 0.18);
}
.wrap {
  max-width: var(--wrap);
  padding-inline: var(--gutter);
}
:focus-visible {
  outline: 2px solid var(--granate);
  outline-offset: 4px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  height: auto;
}

/* ── Cabecera ── */
.nav {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.nav-inner {
  --nav-gutter: clamp(16px, 4vw, 80px);
  width: 100%;
  max-width: none;
  padding-inline: max(var(--nav-gutter), env(safe-area-inset-left))
    max(var(--nav-gutter), env(safe-area-inset-right));
  gap: clamp(16px, 2vw, 36px);
}
/* El logotipo lleva dentro su área de respeto (26/389 del ancho): se
   desplaza para que el símbolo quede ópticamente en la columna de contenido. */
.nav .brand {
  margin-left: -11px;
}
.nav .brand img {
  width: 162px;
  height: 56px;
}
.brand-foot {
  margin-left: -9px;
}
.nav .links {
  display: flex;
  flex-shrink: 0;
  gap: clamp(18px, 2vw, 32px);
  margin-left: auto;
  margin-right: 0;
}
.nav .links a {
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav .links a:hover,
.nav .links a[aria-current] {
  opacity: 1;
}
.nav-login {
  font-size: 14px;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav-actions {
  min-width: 0;
  gap: clamp(12px, 1.6vw, 28px);
}
.nav-login:hover {
  opacity: 1;
}
.nav-demo {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--btn-bg);
  justify-content: center;
}
.nav-demo:hover {
  background: var(--btn-bg-hover);
}
.nav.on-scene {
  background: rgba(23, 24, 28, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.1);
}
.nav.on-scene .nav-demo {
  background: #fff;
  color: var(--granate);
}
.nav.on-scene .nav-demo:hover {
  background: var(--granate-100);
}
.sheet {
  background: var(--bg);
  border-bottom-color: var(--line);
  padding-inline: max(20px, env(safe-area-inset-left))
    max(20px, env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.sheet a {
  color: var(--ink);
  min-height: 44px;
  overflow-wrap: anywhere;
}
.nav .menu-btn {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav .menu-btn i {
  width: 20px;
  height: 1px;
}
.nav .menu-btn[aria-expanded='true'] i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav .menu-btn[aria-expanded='true'] i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* El menú se recoge cuando los enlaces y las acciones dejan de tener espacio,
   también en tablet horizontal y en los idiomas con etiquetas más largas. */
@media (max-width: 1100px) {
  .nav .links {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav .menu-btn {
    display: flex !important;
  }
  .nav .brand img {
    width: 144px;
    height: 50px;
  }
}
@media (max-width: 600px) {
  .nav-inner {
    gap: 8px;
  }
  .nav .brand {
    margin-left: -6px;
  }
  .nav .brand img {
    width: clamp(88px, 24vw, 120px);
    height: 44px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav .nav-demo {
    max-width: clamp(112px, 38vw, 180px);
    padding: 10px 12px;
    font-size: clamp(12px, 2.4vw, 14px);
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
}

/* ── Pie ── */
.footer {
  border-top-color: var(--line);
  color: var(--muted);
  padding-block: 56px 48px;
}
.footer-inner {
  gap: 24px 40px;
}
.footer .brand img {
  width: 132px;
  height: 46px;
}
.footer-links {
  gap: 24px;
  font-size: 14px;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-legal {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer-inner > p {
  width: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--muted-2);
}

/* ── Hero: el lema sobre la fotografía ── */
.hero-eyebrow,
.overview-eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.hero-message h1 {
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.hero-message h1 .hero-lema {
  color: var(--granate-300);
}
/* La línea de categoría va DENTRO del h1 (lo que buscamos en Google: «software de gestión
   para el transporte de vehículos»), pero se ve como el antetítulo de siempre. */
.hero-message h1 .hero-eyebrow {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-family: var(--mono);
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 28px;
}
@media (max-width: 600px) {
  .hero-message h1 .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 0.11em;
    margin-bottom: 20px;
  }
}
.hero-trio {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-message .hero-subtitle {
  margin-top: 10px;
}
.overview h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
}
@media (max-width: 800px) {
  .hero-message h1 {
    font-size: clamp(30px, 8.4vw, 40px);
    letter-spacing: -0.035em;
  }
  .hero-trio {
    margin-top: 16px;
    font-size: 14px;
  }
  .hero-message .hero-subtitle {
    display: none;
  }
}

/* ── Botones ── */
.btn-main,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font: 500 15px/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.btn-main:active,
.btn-line:active {
  transform: translateY(1px);
}
.btn-main {
  background: var(--btn-bg);
  color: #fff;
}
.btn-main:hover {
  background: var(--btn-bg-hover);
}
.btn-line {
  border: 1px solid var(--gris-300);
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--ink);
}
.on-dark .btn-main {
  background: #fff;
  color: var(--granate);
}
.on-dark .btn-main:hover {
  background: var(--granate-100);
}
.on-dark .btn-line {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.on-dark .btn-line:hover {
  border-color: #fff;
}
.kicker {
  margin: 0;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Subpáginas ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.h1,
.h2 {
  font-weight: 500;
  letter-spacing: -0.04em;
}
.seg-scroll a[aria-current] {
  color: #fff;
}
.seg-ind {
  background: var(--btn-bg);
}
.module-art {
  border-radius: var(--radius);
  border-color: var(--line);
}
.module-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.module-hud {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module-hud li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(23, 24, 28, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.module-hud i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--luz);
  box-shadow: 0 0 0 3px rgba(216, 69, 92, 0.25);
}
.module-art figcaption {
  left: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(23, 24, 28, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
}
.module-art figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.card-form {
  border-radius: var(--radius);
}
.card-form input,
.card-form select,
.card-form textarea {
  border-radius: var(--radius-sm);
}
.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
