/* TurnoOne — sitio comercial. Sin dependencias externas: fuente local, sin CDN. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #061220;
  --navy-900: #0b1d2e;
  --navy-800: #11283c;
  --petrol-800: #0f3a47;
  --petrol-700: #155060;
  --petrol-600: #1b6474;
  --petrol-100: #e3eff1;
  --green-600: #1f9a66;
  --green-500: #2bb57a;
  --green-400: #3fcf8e;
  --green-100: #e2f6ec;
  --amber-500: #d99a1f;
  --amber-100: #fbf0d9;
  --red-500: #cf4b43;
  --red-100: #fbe4e2;
  --ink: #0d1b26;
  --ink-2: #33475a;
  --muted: #5d6f7f;
  --line: #e1e7ec;
  --line-2: #cfd8df;
  --bg: #ffffff;
  --bg-soft: #f3f6f8;
  --on-dark: #e9f0f4;
  --on-dark-muted: #9fb3c2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 29, 46, 0.06), 0 8px 24px rgba(11, 29, 46, 0.08);
  --shadow-lg: 0 2px 4px rgba(6, 18, 32, 0.12), 0 24px 60px rgba(6, 18, 32, 0.35);
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  display: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--green-400);
  color: var(--navy-950);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

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

.nowrap {
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover {
  background: var(--petrol-700);
}
.btn-accent {
  background: var(--green-400);
  color: var(--navy-950);
}
.btn-accent:hover {
  background: #5adca0;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
}
.btn-block {
  width: 100%;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.logo-bg {
  fill: var(--navy-900);
}
.logo-t {
  fill: #fff;
}
.logo-dot {
  fill: var(--green-400);
}
.logo-bg-light {
  fill: #fff;
}
.logo-t-dark {
  fill: var(--navy-900);
}
.logo-word {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.logo-word strong {
  font-weight: 800;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(11, 29, 46, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav ul {
  display: flex;
  gap: 26px;
}
.site-nav ul a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
}
.site-nav ul a:hover {
  color: var(--petrol-600);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

/* ---------- Tipografía de secciones ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol-600);
  margin-bottom: 16px;
}
.eyebrow .icon {
  width: 17px;
  height: 17px;
}
.eyebrow-dark {
  color: var(--green-400);
}
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 34em;
}
.section {
  padding: 104px 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}
.section-lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  max-width: 38em;
}

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

.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: 88px 0 104px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(27, 100, 116, 0.45), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 4.4vw, 54px);
  text-wrap: balance;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--on-dark);
  font-size: 14.5px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points .icon {
  color: var(--green-400);
  width: 18px;
  height: 18px;
}
.hero-points-col {
  flex-direction: column;
}

/* Mockup Admin */
.hero-visual {
  position: relative;
  padding-bottom: 48px;
}
.mock-browser {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
}
.mock-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdd6dd;
}
.mock-url {
  margin-left: 14px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}
.mock-admin {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 320px;
}
.mock-side {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  margin: 2px 4px 14px;
}
.mock-brand i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #fff;
  position: relative;
}
.mock-brand i::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
}
.mock-side b {
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
}
.mock-side b.on {
  background: rgba(63, 207, 142, 0.14);
  color: #fff;
}
.mock-main {
  padding: 16px 18px;
  min-width: 0;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.mock-head strong {
  font-size: 14px;
}
.mock-head em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
}
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mock-kpis div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.mock-kpis small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.mock-kpis strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.ok {
  color: var(--green-600);
}
.warn {
  color: var(--amber-500);
}
.bad {
  color: var(--red-500);
}
.mock-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.mock-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.7fr 0.9fr;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.mock-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-th {
  border-top: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  justify-self: start;
}
.pill-ok {
  background: var(--green-100);
  color: var(--green-600);
}
.pill-warn {
  background: var(--amber-100);
  color: #9a6a0c;
}
.pill-muted {
  background: #edf1f4;
  color: var(--muted);
}

/* Mockup Worker */
.mock-phone {
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: 178px;
  border-radius: 28px;
  background: var(--navy-950);
  padding: 9px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.phone-notch {
  width: 60px;
  height: 6px;
  margin: 3px auto 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}
.phone-screen {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  line-height: 1.35;
}
.phone-label {
  color: var(--muted);
  font-size: 10.5px;
}
.phone-title {
  font-size: 14px;
  margin-top: -6px;
}
.phone-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.phone-card span {
  color: var(--muted);
}
.phone-qr {
  display: grid;
  place-items: center;
  height: 74px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-2);
}
.phone-qr svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--navy-900);
  stroke-width: 1.5;
}
.phone-btn {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-align: center;
  border-radius: 9px;
  padding: 9px;
}
.phone-ok {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-600);
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10.5px;
}
.phone-ok svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Problema ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}
.problem-list {
  display: grid;
  gap: 10px;
}
.problem-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
}
.problem-list .icon {
  color: var(--muted);
}
.problem-list strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}
.problem-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--petrol-100);
  color: var(--petrol-700);
}
.problem-solution {
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--on-dark);
  padding: 40px;
  box-shadow: var(--shadow);
}
.solution-mark svg {
  width: 48px;
  height: 48px;
}
.problem-solution .logo-bg {
  fill: var(--petrol-700);
}
.problem-solution h3 {
  font-size: 26px;
  color: #fff;
  margin: 20px 0 12px;
}
.problem-solution p {
  color: var(--on-dark-muted);
}
.module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.module-chips a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.module-chips a:hover {
  border-color: var(--green-400);
  color: var(--green-400);
}

/* ---------- Módulos ---------- */

.module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.module-reverse .module-copy {
  order: 2;
}
.module-copy h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 34px 0 36px;
}
.feature-grid li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-grid .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 9px;
  background: var(--petrol-100);
  color: var(--petrol-700);
  stroke-width: 1.8;
}
.feature-grid strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}
.feature-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 2px;
}
.feature-grid .soon .icon {
  background: var(--bg-soft);
  border: 1px dashed var(--line-2);
  color: var(--muted);
}
.soon-tag {
  display: inline-block !important;
  margin: 0 0 0 6px !important;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8edf1;
  color: var(--ink-2) !important;
  font-size: 11.5px !important;
  font-weight: 600;
  vertical-align: 1px;
}

.badge-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-100);
  color: #85590a;
  border: 1px solid #f0d9a7;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-dev::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
}
.badge-sm {
  font-size: 11px;
  padding: 3px 9px;
}
.dev-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14.5px;
}
.dev-note .icon {
  margin-top: 2px;
  color: var(--amber-500);
}

/* Paneles ilustrativos */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  font-size: 14px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.panel-head strong {
  display: block;
  font-size: 16px;
}
.panel-head small {
  color: var(--muted);
  font-size: 13px;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}
.mini-btn svg,
.receipt svg,
.fix-note svg,
.case-meta svg,
.org svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.att-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--petrol-100);
  color: var(--petrol-700);
  font-weight: 700;
  font-size: 13px;
}
.att-name b {
  display: block;
}
.att-name small {
  color: var(--muted);
  font-size: 12.5px;
}
.att-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.att-mark em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.att-mark .in {
  color: var(--green-600);
}
.att-mark .out {
  color: var(--muted);
}
.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}
.tag-qr {
  background: var(--navy-900);
  color: #fff;
}
.tag-fix {
  background: var(--petrol-100);
  color: var(--petrol-700);
}
.panel-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.receipt,
.fix-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.receipt svg {
  color: var(--green-600);
}
.fix-note svg {
  color: var(--petrol-600);
}
.receipt b,
.fix-note b {
  display: block;
  font-size: 13px;
}
.receipt small,
.fix-note small {
  color: var(--muted);
  font-size: 12px;
}

/* Sense: ruta */
.route {
  position: relative;
  padding: 10px 0 0;
}
.route li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 10px 0 10px 2px;
}
.route li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 30px;
  bottom: -10px;
  width: 2px;
  background: var(--line-2);
}
.route li:last-child::before {
  display: none;
}
.route li.done::before {
  background: var(--green-500);
}
.route i {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: #fff;
  flex: none;
}
.route .done i {
  border-color: var(--green-500);
  background: var(--green-500);
  box-shadow: inset 0 0 0 3px #fff;
}
.route .next i {
  border-color: var(--petrol-600);
  box-shadow: 0 0 0 4px var(--petrol-100);
}
.route b {
  display: block;
}
.route small {
  color: var(--muted);
  font-size: 12.5px;
}
.route .ev {
  color: var(--petrol-600);
  font-weight: 600;
}
.obs-text {
  margin-top: 6px;
  padding: 8px 12px;
  border-left: 3px solid var(--amber-500);
  background: var(--amber-100);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.route-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.route-progress span,
.bar {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 8px;
  background: #e9eef2;
  overflow: hidden;
}
.route-progress span::after,
.bar span {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
  background: var(--green-500);
}
.route-progress span.fill-60::after {
  width: 60%;
}
.bar span.fill-78 {
  width: 78%;
}
.route-progress small {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

/* Pulse */
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
}
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-100);
}
.sites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.site {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.site i {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.site b {
  font-size: 13.5px;
}
.site small {
  color: var(--muted);
  font-size: 12px;
}
.s-ok {
  background: var(--green-500);
}
.s-warn {
  background: var(--amber-500);
}
.s-bad {
  background: var(--red-500);
}
.case {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-500);
  border-radius: 10px;
  padding: 12px 14px;
}
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.case-top small {
  color: var(--muted);
  font-size: 12px;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.case-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-meta svg {
  width: 15px;
  height: 15px;
}
.checklist {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.checklist-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.checklist-top small {
  color: var(--muted);
  font-weight: 600;
}
.bar {
  display: block;
  background: #dfe6eb;
}
.bar span {
  display: block;
  height: 100%;
}

/* ---------- Flujo (oscuro) ---------- */

.section-dark {
  background: var(--navy-900);
  color: #fff;
}
.section-dark .section-lead {
  color: var(--on-dark-muted);
}
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.flow-step {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-800);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(63, 207, 142, 0.12);
  color: var(--green-400);
  margin-bottom: 8px;
}
.flow-icon .icon {
  width: 24px;
  height: 24px;
}
.flow-module {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.flow-module .badge-dev {
  text-transform: none;
  letter-spacing: 0;
}
.flow-step strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.flow-sep {
  display: grid;
  place-items: center;
  color: var(--green-400);
}
.example {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 40px;
}
.example h3 {
  font-size: 20px;
  margin-bottom: 26px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 17px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.t-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  border: 2px solid var(--green-400);
  color: var(--green-400);
  font-weight: 700;
  font-size: 14px;
  position: relative;
}
.timeline strong {
  display: block;
  font-size: 15.5px;
  line-height: 1.35;
}
.timeline small {
  display: block;
  color: var(--on-dark-muted);
  font-size: 14px;
  margin-top: 4px;
}
.example-note {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--on-dark-muted);
}

/* ---------- Multiempresa ---------- */

.org {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  font-size: 14px;
}
.org-node {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.org-node svg {
  color: var(--petrol-600);
}
.org-node b {
  display: block;
  font-size: 14px;
}
.org-node small,
.org-leaf small,
.org-admin small {
  color: var(--muted);
  font-size: 12px;
}
.org-root {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  max-width: 320px;
  margin: 0 auto;
}
.org-root svg {
  color: var(--green-400);
}
.org-root small {
  color: var(--on-dark-muted);
}
.org-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.org-branches::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: var(--line-2);
}
.org-branches::after {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--line-2);
}
.org-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.org-col::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background: var(--line-2);
}
.org-col .org-node {
  flex-direction: column;
  text-align: center;
  gap: 6px;
}
.org-leaf,
.org-admin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  text-align: center;
}
.role {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--petrol-100);
  color: var(--petrol-700);
}
.role-strong {
  background: var(--navy-900);
  color: #fff;
}
.org-admin {
  margin-top: 16px;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line-2);
  background: #fff;
}

/* ---------- Seguridad ---------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.security-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.security-grid .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--green-400);
  margin-bottom: 8px;
}
.security-grid strong {
  font-size: 16px;
}
.security-grid span {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Casos ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.case-card:hover {
  border-color: var(--petrol-600);
  box-shadow: var(--shadow);
}
.case-card .icon {
  width: 30px;
  height: 30px;
  color: var(--petrol-600);
  stroke-width: 1.5;
}
.case-card h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.case-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- CTA / formulario ---------- */

.cta {
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -40%;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(27, 100, 116, 0.4), transparent);
  pointer-events: none;
}
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.cta h2 {
  margin-bottom: 18px;
}
.cta .hero-points {
  margin-top: 28px;
}
.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-size: 20px;
  margin-bottom: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 104px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--petrol-600);
  box-shadow: 0 0 0 3px rgba(27, 100, 116, 0.18);
}
.field input[aria-invalid="true"] {
  border-color: var(--red-500);
}
.field-error {
  color: #b23a33;
  font-size: 13px;
}
.form-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.form-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.form-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-600);
}
.form-status:empty {
  display: none;
}

/* ---------- Pie ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  padding: 64px 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.logo-light {
  color: #fff;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 30em;
}
.footer-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul {
  display: grid;
  gap: 8px;
}
.site-footer ul a {
  text-decoration: none;
}
.site-footer ul a:hover {
  color: var(--green-400);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
}

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

@media (max-width: 1100px) {
  .cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .section {
    padding: 80px 0;
  }
  .hero {
    padding: 64px 0 80px;
  }
  .hero-grid,
  .module,
  .cta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .module-reverse .module-copy {
    order: 0;
  }
  .hero-visual {
    max-width: 640px;
  }
  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .problem-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow-sep {
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .timeline::before {
    left: 17px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 2px;
    height: auto;
  }
  .timeline li {
    flex-direction: row;
    align-items: flex-start;
  }
  .t-num {
    flex: none;
  }

  /* Navegación móvil */
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(11, 29, 46, 0.1);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .site-nav .btn {
    min-height: 48px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .lead {
    font-size: 17px;
  }
  .section-lead {
    font-size: 16.5px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-visual {
    padding-bottom: 0;
  }
  .mock-admin {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .mock-side {
    display: none;
  }
  .mock-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .mock-row {
    grid-template-columns: 1fr 0.7fr 0.9fr;
  }
  .mock-row span:nth-child(2) {
    display: none;
  }
  .mock-phone {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -48px 0 0 auto;
    width: 172px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel,
  .org {
    padding: 18px;
  }
  .panel-foot,
  .sites {
    grid-template-columns: minmax(0, 1fr);
  }
  .att-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .att-row .tag {
    display: none;
  }
  .problem-solution {
    padding: 28px;
  }
  .security-grid,
  .cases {
    grid-template-columns: minmax(0, 1fr);
  }
  .org-branches {
    gap: 8px;
  }
  .org-col .org-node {
    padding: 10px 6px;
  }
  .org {
    padding: 14px;
  }
  .org-branches {
    gap: 6px;
  }
  .org-node b {
    font-size: 12px;
    white-space: nowrap;
  }
  .org-admin {
    flex-direction: column;
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .contact-form {
    padding: 24px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.notfound h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}
