/* TurnoOne — sitio comercial V2. Sin dependencias externas: fuente local (WOFF2 subset latino), sin CDN. */

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

:root {
  /* Petróleo oscuro: base de marca. */
  --p-950: #071820;
  --p-900: #0a1f2a;
  --p-850: #0e2834;
  --p-800: #12313f;
  --p-700: #18455a;
  --p-600: #1f5d78;
  --p-100: #e6eff3;
  --p-50: #f2f7f9;
  /* Verde: solo acento funcional (estado OK, CTA). */
  --g-400: #45d39a;
  --g-500: #2fbf86;
  --g-700: #13744d;
  --g-100: #e3f6ed;
  --amber: #e0a429;
  --amber-700: #8a5a06;
  --amber-100: #fbf1db;
  --red: #e0625a;
  --red-700: #a3302a;
  --red-100: #fbe6e4;
  /* Neutros. */
  --ink: #0d1d27;
  --ink-2: #2f4250;
  --muted: #576b79;
  --line: #e2e8ec;
  --line-2: #d0d9df;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --on-dark: #e8eff3;
  --on-dark-2: #a9bbc7;
  --line-dark: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 42, 0.06);
  --shadow: 0 1px 2px rgba(10, 31, 42, 0.05), 0 12px 32px -8px rgba(10, 31, 42, 0.14);
  --shadow-lg: 0 2px 6px rgba(4, 14, 20, 0.2), 0 32px 64px -16px rgba(4, 14, 20, 0.55);
  --container: 1200px;
  --gutter: 32px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

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;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--g-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.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(--g-400);
  color: var(--p-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 var(--gutter);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.18s var(--ease);
}
.btn:hover .icon {
  transform: translateX(2px);
}
.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--p-900);
  color: #fff;
}
.btn-primary:hover {
  background: var(--p-700);
}
.btn-accent {
  background: var(--g-400);
  color: var(--p-950);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.btn-accent:hover {
  background: #62dcab;
}
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.btn-quiet {
  color: var(--ink-2);
}
.btn-quiet:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.btn-quiet:hover .icon {
  transform: none;
}
.btn-outline {
  color: var(--ink);
  border-color: var(--line-2);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--p-600);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--p-700);
  text-decoration: none;
}
.link-arrow .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.18s var(--ease);
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 48px;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.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.02em;
  color: var(--p-600);
  margin-bottom: 14px;
}
.eyebrow .icon {
  width: 16px;
  height: 16px;
}
.eyebrow-dark {
  color: var(--g-400);
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-dark-2);
  max-width: 32em;
}
.section {
  padding: 120px 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-dark {
  background: var(--p-900);
  color: #fff;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section h2 {
  font-size: clamp(30px, 3.5vw, 46px);
}
.section-lead {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.section-dark .section-lead {
  color: var(--on-dark-2);
}
.fine {
  font-size: 13.5px;
  color: var(--muted);
}
.fine-center {
  text-align: center;
  margin-top: 32px;
}

/* ---------- Animación de entrada (main.js añade las clases) ---------- */

.reveal-ready [data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

/* Barras de progreso de los mockups: se llenan al entrar en pantalla. */
.meter {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  background: var(--g-400);
  transition: width 1.1s var(--ease) 0.25s;
}
.w-60 { width: 60%; }
.w-78 { width: 78%; }
.w-86 { width: 86%; }
.w-88 { width: 88%; }
.w-92 { width: 92%; }
.w-100 { width: 100%; }
.reveal-ready .hero-stage:not(.is-visible) .meter-fill,
.reveal-ready [data-reveal]:not(.is-visible) .meter-fill {
  width: 0;
}

/* ---------- Ventanas de mockup ---------- */

.win {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.win-dark {
  background: var(--p-850);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.win-dark .win-bar {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  color: var(--on-dark-2);
}
.win-bar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.win-dark .win-bar > i {
  background: rgba(255, 255, 255, 0.14);
}
.win-bar span {
  margin-left: 10px;
  font-weight: 500;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-ok { background: var(--g-400); }
.dot-warn { background: var(--amber); }
.dot-bad { background: var(--red); }

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

.hero {
  position: relative;
  background: var(--p-900);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 112px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 4.5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 650;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-stage {
  position: relative;
  padding: 24px 0 64px;
}
.hero-stage .win {
  position: relative;
  z-index: 1;
  margin-right: 64px;
}
.dash {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 330px;
}
.dash-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-rail b {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
}
.dash-rail b.on {
  background: rgba(69, 211, 154, 0.22);
  box-shadow: inset 0 0 0 1px rgba(69, 211, 154, 0.5);
}
.dash-main {
  padding: 20px 22px 22px;
  min-width: 0;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.dash-head small {
  display: block;
  font-size: 11.5px;
  color: var(--on-dark-2);
}
.dash-head strong {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.chip-dark {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark-2);
  white-space: nowrap;
}
.dash-kpis {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.kpi {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.kpi small {
  display: block;
  font-size: 11.5px;
  color: var(--on-dark-2);
}
.kpi strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 6px;
}
.kpi strong em {
  font-style: normal;
  font-size: 14px;
  color: var(--on-dark-2);
  font-weight: 500;
}
.kpi-note {
  font-size: 11.5px;
  color: var(--on-dark-2);
}
.warn-t {
  color: #f0c060;
}
.dash-sites {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-site {
  display: grid;
  grid-template-columns: 104px 40px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--on-dark);
}
.dash-site em {
  font-style: normal;
  order: -1;
  grid-column: 2;
  grid-row: 1;
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}

.phone {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 176px;
  padding: 7px;
  border-radius: 28px;
  background: #050f15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px 14px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
}
.phone-screen small {
  font-size: 11px;
  color: var(--muted);
}
.phone-screen strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.phone-site {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.phone-site svg,
.phone-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--p-900);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(4, 14, 20, 0.5);
}
.float-a {
  left: 24px;
  bottom: 20px;
}
.float-b {
  right: 40px;
  top: 0;
}

/* ---------- Franja de valor ---------- */

.strip {
  border-bottom: 1px solid var(--line);
}
.strip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.strip-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
}
.strip-list li + li {
  border-left: 1px solid var(--line);
}
.strip-list .icon {
  width: 22px;
  height: 22px;
  color: var(--p-600);
}
.strip-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}
.strip-list span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Problema: antes / TurnoOne ---------- */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}
.compare-col {
  border-radius: var(--radius);
  padding: 32px;
}
.compare-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.compare-col ul {
  display: grid;
  gap: 12px;
}
.compare-col li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
}
.compare-before {
  border: 1px dashed var(--line-2);
  color: var(--muted);
}
.compare-before .compare-label {
  color: var(--muted);
}
.compare-before .icon {
  color: #8496a3;
}
.compare-after {
  background: var(--p-900);
  color: #fff;
  box-shadow: var(--shadow);
}
.compare-after .compare-label {
  color: var(--g-400);
}
.compare-after .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(69, 211, 154, 0.16);
  color: var(--g-400);
  stroke-width: 2.4;
}
.compare-arrow {
  display: grid;
  place-items: center;
  color: var(--p-600);
}
.compare-arrow .icon {
  width: 28px;
  height: 28px;
}

/* ---------- Flujo continuo ---------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.flow::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--p-600), var(--g-500));
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.2s;
}
.reveal-ready .flow:not(.is-visible)::before {
  transform: scaleX(0);
}
.flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 12px;
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--p-700);
}
.flow-icon .icon {
  width: 28px;
  height: 28px;
}
.flow-module {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-600);
}
.flow-node strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.flow-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 22em;
}
.tag-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.tag-dev::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
h2 .tag-dev {
  font-size: 13px;
  margin-left: 6px;
  position: relative;
  top: -0.3em;
}

.example {
  margin-top: 64px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.example-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.example-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  counter-reset: step;
}
.example-steps li {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  counter-increment: step;
}
.example-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--p-100);
  color: var(--p-700);
  font-size: 12px;
  font-weight: 650;
}
.example-steps li + li::after {
  content: none;
}
.example-steps li:not(:last-child)::after {
  content: "";
  width: 28px;
  height: 1px;
  margin: 0 14px;
  background: var(--line-2);
}

/* ---------- Attendance ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.benefits li {
  display: flex;
  gap: 14px;
}
.benefits .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 11px;
  background: var(--p-100);
  color: var(--p-700);
}
.benefits strong {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
}
.benefits span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.ledger-body {
  padding: 20px 24px 8px;
}
.ledger-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ledger-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-f {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.pill-f.on {
  background: var(--p-900);
  border-color: var(--p-900);
  color: #fff;
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-mini svg,
.cc-alert svg,
.cc-soon svg,
.thumb svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.lrow {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 0.7fr 0.7fr 0.7fr 0.9fr;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
}
.lrow > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.lhead {
  border-top: 0;
  padding-top: 4px;
  padding-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.who b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--p-100);
  color: var(--p-700);
  font-size: 11.5px;
  font-weight: 650;
  flex: none;
}
.t {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.mute {
  color: var(--muted);
}
.m {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--p-900);
  color: #fff;
}
.st {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.st-ok { background: var(--g-100); color: var(--g-700); }
.st-warn { background: var(--amber-100); color: var(--amber-700); }
.st-fix { background: var(--p-100); color: var(--p-700); }
.st-muted { background: #eef2f4; color: var(--muted); }

.module-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------- Sense ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.points {
  display: grid;
  gap: 14px;
  margin: 32px 0 28px;
}
.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-2);
}
.points .icon {
  color: var(--p-600);
}
.card-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.round-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.round-head strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}
.round-head small {
  font-size: 13px;
  color: var(--muted);
}
.round-count {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--g-700);
}
.round .meter,
.cc-check .meter {
  background: #e9eef1;
}
.round .meter-fill {
  background: var(--g-500);
}
.meter-lg {
  height: 8px;
}
.cps {
  margin: 20px 0;
}
.cps li {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 15px;
}
.cps li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 28px;
  height: calc(100% - 18px);
  width: 2px;
  background: var(--line);
}
.cps li:last-child::before {
  display: none;
}
.cps li.done::before {
  background: var(--g-500);
}
.cps i {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: #fff;
}
.cps .done i {
  border-color: var(--g-500);
  background: var(--g-500);
  box-shadow: inset 0 0 0 3px #fff;
}
.cps .next i {
  border-color: var(--p-600);
  box-shadow: 0 0 0 4px var(--p-100);
}
.cps li:not(.done) span {
  color: var(--muted);
}
.cps time {
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.cps .done time {
  color: var(--ink-2);
  font-weight: 500;
}
.evidence {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex: none;
  background: repeating-linear-gradient(135deg, #dbe4ea 0 6px, #e7edf1 6px 12px);
  color: var(--p-700);
}
.thumb svg {
  width: 20px;
  height: 20px;
}
.evidence b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.evidence p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Pulse: command center ---------- */

.cc {
  max-width: 1040px;
  margin: 0 auto;
}
.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--g-400);
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g-400);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
}
.cc-panel {
  padding: 24px;
}
.cc-panel + .cc-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.cc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 16px;
}
.cc-site {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}
.cc-site:last-child {
  border-bottom: 0;
}
.cc-site em {
  font-style: normal;
  font-size: 13px;
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}
.cc-alert {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--amber);
}
.cc-alert + .cc-alert {
  margin-top: 10px;
}
.cc-alert-bad {
  border-left-color: var(--red);
}
.cc-alert b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.cc-alert small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--on-dark-2);
}
.cc-alert svg {
  width: 14px;
  height: 14px;
}
.cc-check {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cc-check strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cc-check strong em {
  font-style: normal;
  font-size: 16px;
  color: var(--on-dark-2);
  font-weight: 500;
}
.cc .cc-check .meter {
  background: rgba(255, 255, 255, 0.1);
}
.cc-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--on-dark-2);
}
.cc-soon b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--on-dark);
}
.cc-soon small {
  font-size: 12px;
}
.cc-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 36px;
  font-size: 14.5px;
  color: var(--on-dark-2);
}
.cc-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cc-legend .icon {
  width: 18px;
  height: 18px;
  color: var(--g-400);
}

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

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillars li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px;
  transition: background-color 0.2s var(--ease);
}
.pillars li:hover {
  background: var(--p-50);
}
.pillars li + li {
  border-left: 1px solid var(--line);
}
.pillars .icon {
  width: 26px;
  height: 26px;
  color: var(--p-600);
  margin-bottom: 14px;
}
.pillars strong {
  font-size: 16.5px;
  font-weight: 600;
}
.pillars span {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

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

.cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.case {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.case:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.case .icon {
  width: 26px;
  height: 26px;
  color: var(--p-600);
}
.case h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.case p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: center;
}
.contact h2 {
  margin-bottom: 18px;
}
.demo-list {
  display: grid;
  gap: 12px;
  margin: 32px 0;
}
.demo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--on-dark);
}
.demo-list .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(69, 211, 154, 0.16);
  color: var(--g-400);
  stroke-width: 2.4;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.contact-mail .icon {
  color: var(--g-400);
}
.contact-mail:hover {
  color: var(--g-400);
}
.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3,
.form-done h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
}
.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: 550;
  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: 10px;
  background: #fff;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field input:hover,
.field textarea:hover {
  border-color: #b5c2cb;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--p-600);
  box-shadow: 0 0 0 3px rgba(31, 93, 120, 0.16);
}
.field input[aria-invalid="true"] {
  border-color: var(--red-700);
}
.field-error {
  color: var(--red-700);
  font-size: 13px;
}
.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.form-done {
  text-align: center;
  padding: 24px 8px;
}
.form-done:focus {
  outline: none;
}
.done-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--g-100);
  color: var(--g-700);
}
.done-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}
.form-done h3 {
  margin-bottom: 10px;
}
.form-done p {
  color: var(--muted);
  margin-bottom: 24px;
}
.form-done a {
  color: var(--p-700);
  font-weight: 600;
}

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

.site-footer {
  background: var(--p-950);
  color: var(--on-dark-2);
  padding: 72px 0 32px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.logo-light {
  color: #fff;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 28em;
}
.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.site-footer ul {
  display: grid;
  gap: 10px;
}
.site-footer a {
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.site-footer ul a:hover,
.footer-bottom a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  background: linear-gradient(var(--line-dark), var(--line-dark)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 13.5px;
}

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

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

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

@media (max-width: 1120px) {
  .site-nav {
    margin-left: 24px;
  }
  .nav-links a {
    padding: 8px 9px;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: 96px 0;
  }
  .hero {
    padding: 72px 0 88px;
  }
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero-stage {
    max-width: 640px;
  }
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillars li:nth-child(3) {
    border-left: 0;
  }
  .pillars li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Navegación compacta */
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -10px rgba(10, 31, 42, 0.15);
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    gap: 0;
  }
  .nav-links a {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-links a:hover {
    background: none;
  }
  .nav-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .nav-actions .btn {
    min-height: 48px;
    font-size: 15.5px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .lead,
  .section-lead {
    font-size: 17px;
  }
  .strip-list li {
    padding: 22px 14px;
    gap: 10px;
  }
  .compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .compare-arrow {
    transform: rotate(90deg);
  }
  .compare-col {
    padding: 24px;
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .flow::before {
    content: none;
  }
  .flow-node:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 35px;
    top: 72px;
    bottom: -36px;
    width: 2px;
    background: linear-gradient(180deg, var(--p-600), var(--g-500));
  }
  .flow-node {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 18px;
    row-gap: 2px;
    text-align: left;
    align-items: start;
    padding: 0;
  }
  .flow-icon {
    grid-row: span 3;
    margin: 0;
  }
  .flow-module {
    padding-top: 6px;
  }
  .example {
    padding: 20px;
  }
  .example-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .example-steps li:not(:last-child)::after {
    content: none;
  }
  .benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 36px;
  }
  .ledger-body {
    padding: 16px 14px 4px;
  }
  .lrow {
    grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.7fr minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
  }
  .lrow > :nth-child(2),
  .lrow > :nth-child(5) {
    display: none;
  }
  .who b {
    display: none;
  }
  .btn-mini {
    display: none;
  }
  .card-mock {
    padding: 20px;
  }
  .cc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-panel + .cc-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .cc-panel {
    padding: 20px;
  }
  .pillars,
  .cases {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillars li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .pillars li {
    padding: 24px;
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .form-card {
    padding: 24px 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .strip-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .strip-list li {
    padding: 18px 4px;
  }
  .strip-list li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .lrow {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, auto);
  }
  .lrow > :nth-child(4) {
    display: none;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stage {
    padding: 20px 0 132px;
  }
  .dash {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .dash-rail {
    display: none;
  }
  .dash-main {
    padding: 16px;
  }
  .dash-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dash-kpis .kpi:first-child {
    grid-column: 1 / -1;
  }
  .dash-site {
    grid-template-columns: 92px 40px 1fr;
  }
  .chip-dark {
    display: none;
  }
  .hero-stage .win {
    margin-right: 0;
  }
  .phone {
    right: 4px;
    width: 158px;
  }
  .phone-screen strong {
    font-size: 15px;
    white-space: nowrap;
  }
  .phone-btn {
    font-size: 12px;
    white-space: nowrap;
  }
  .float-a {
    left: 0;
    bottom: 64px;
  }
  .float-b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  /* main.js tampoco activa .reveal-ready con movimiento reducido: todo queda visible y quieto. */
}
