/* RK Systems — rksystems.mx · v2 (inglés / EE. UU.) · ver DESIGN.md */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  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;
}

:root {
  --black: #000;
  --ink: #0a0a0a;
  --ink-2: #3f3f3f;       /* texto secundario sobre claro, 10:1 */
  --ink-3: #5c5c5c;       /* texto terciario sobre claro, 6.6:1 */
  --white: #fff;
  --paper: #f5f5f2;       /* marfil técnico */
  --line: #e2e2dd;
  --line-strong: #cfcfc9;
  --graphite: #111;
  --on-dark: #fff;
  --on-dark-2: #b9b9b9;   /* sobre negro, 10:1 */
  --line-dark: rgba(255,255,255,.16);
  --ok: #4ade80;
  --warn: #fbbf24;

  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f); font-weight: 400; font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul, dl { padding: 0; list-style: none; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--black); color: #fff; padding: 10px 14px; z-index: 100; font-weight: 500; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { background: var(--black); border-radius: 6px; padding: 6px 9px; display: inline-flex; }
.brand-mark img { height: 24px; width: auto; }
.brand-name { font-size: 11px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 10px 14px; border-radius: 6px; transition: color .15s var(--ease), background .15s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  font: 500 16px/1 var(--f); text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: #e9e9e9; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px 7px 12px; background: #fff; margin-bottom: 28px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--black); }
h1 { font-weight: 600; font-size: clamp(2.375rem, 5.2vw, 4.25rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.hero .actions { margin-top: 36px; }
.assure { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.assure svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Demo panel */
.demo figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }
.panel { background: #0a0a0a; color: #fff; border-radius: 14px; padding: 22px; border: 1px solid #1f1f1f; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5), 0 2px 0 rgba(255,255,255,.04) inset; }
.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.panel-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.panel-title { font-size: 1.1875rem; font-weight: 500; margin-top: 4px; }
.pill { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-2); }
.pill.live { color: var(--ok); border-color: rgba(74,222,128,.4); }
.run { padding-block: 10px; }
.run li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-block: 12px; position: relative; }
.run li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 40px; bottom: -4px; width: 1px; background: var(--line-dark); }
.run .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); }
.run .ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.run p { font-size: 15px; font-weight: 500; line-height: 1.3; }
.run small { display: block; margin-top: 3px; font-size: 13px; color: var(--on-dark-2); }
.run .ok .ico { color: var(--ok); border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.08); }
.run .warn .ico { color: var(--warn); border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.1); }
.run .warn p { color: #fff; }
.run .todo .ico { color: var(--on-dark-2); }
.run .todo p { color: var(--on-dark-2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 6px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; }
.kpis div { background: #0a0a0a; padding: 14px 16px; }
.kpis dt { font-size: 12px; color: var(--on-dark-2); }
.kpis dd { margin-top: 4px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .run li { opacity: 0; transform: translateY(8px); animation: in .45s var(--ease) forwards; }
  .run li:nth-child(1) { animation-delay: .2s; } .run li:nth-child(2) { animation-delay: .5s; }
  .run li:nth-child(3) { animation-delay: .8s; } .run li:nth-child(4) { animation-delay: 1.1s; }
  .run li:nth-child(5) { animation-delay: 1.4s; }
  .kpis { opacity: 0; animation: in .45s var(--ease) 1.6s forwards; }
}
@keyframes in { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec.tint { background: var(--paper); border-block: 1px solid var(--line); }
.sec.dark { background: var(--black); color: #fff; }
.sec-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-label { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.dark .sec-label { color: var(--on-dark-2); }
h2 { font-weight: 600; font-size: clamp(1.875rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.sec-sub { margin-top: 20px; max-width: 38em; font-size: 1.125rem; color: var(--ink-2); }
.dark .sec-sub { color: var(--on-dark-2); }
h3 { font-weight: 600; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; }

/* Grid de 6 */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid3 li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.grid3 li:hover { border-color: var(--ink); transform: translateY(-2px); }
.grid3 svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.grid3 p { margin-top: 8px; color: var(--ink-2); font-size: .9688rem; }

/* Comparación */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side { border-radius: var(--r); padding: clamp(28px, 4vw, 44px); }
.side h3 { font-size: 1.375rem; margin-bottom: 24px; }
.side ul { display: grid; gap: 0; }
.side li { padding-block: 16px; border-top: 1px solid; font-size: 1.0625rem; }
.side.before { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.side.before li { border-color: var(--line-strong); }
.side.after { background: var(--black); color: #fff; }
.side.after li { border-color: var(--line-dark); }

/* Servicios */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.svc article { padding: 36px 32px 44px 0; }
.svc article + article { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.svc .idx { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--on-dark-2); margin-bottom: 44px; }
.svc h3 { font-size: 1.625rem; font-weight: 500; letter-spacing: -.02em; }
.svc .lead-in { margin-top: 14px; color: var(--on-dark-2); }
.svc ul { margin-top: 26px; display: grid; gap: 10px; }
.svc li { position: relative; padding-left: 22px; font-size: .9688rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .68em; width: 10px; height: 1px; background: #fff; }
.tagline { margin-top: 56px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 400; letter-spacing: -.01em; color: var(--on-dark-2); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: .9688rem; }

/* Principios */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.principles div { padding-block: 26px; border-top: 1px solid var(--line-strong); }
.principles dt { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.01em; margin-bottom: 6px; }
.principles dd { color: var(--ink-2); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 88px); }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 40em; }

/* Contacto */
.cta { padding-block: clamp(72px, 10vw, 128px); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 80px); align-items: end; }
.cta h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.cta-side > p { color: var(--on-dark-2); font-size: 1.125rem; margin-bottom: 28px; }
.cta-side .note { margin-top: 20px; margin-bottom: 0; font-size: 14px; color: var(--on-dark-2); }

/* Footer */
.site-footer { background: var(--black); color: #fff; border-top: 1px solid var(--line-dark); padding-block: 56px 48px; }
.foot { display: grid; gap: 18px; justify-items: start; }
.foot img { width: 180px; height: auto; }
.foot-line { color: var(--on-dark-2); }
.foot-small { color: var(--on-dark-2); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo { max-width: 560px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; border-top: 0; }
  .svc article, .svc article + article { padding: 32px 0 36px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .svc .idx { margin-bottom: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .faq-wrap, .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .bar { min-height: 62px; justify-content: space-between; }
  .btn-sm { padding: 0 14px; font-size: 14px; }
  .grid3, .principles, .steps { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v2.1 : SEO / conversión ---------- */
.why { padding-block: clamp(56px, 7vw, 88px); }
.why .sec-head { margin-bottom: 36px; }
.why h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.why-grid li { padding: 28px 32px 8px 0; }
.why-grid li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.why-grid p { margin-top: 8px; color: var(--ink-2); font-size: .9688rem; }

.band { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.025em; }
.band p { margin-top: 10px; color: var(--ink-2); max-width: 36em; }
.band .btn { background: var(--black); color: #fff; }
.band .btn:hover { background: #262626; }

.copy { background: none; border: 0; padding: 10px 0; margin: -10px 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.copy:hover { text-decoration-thickness: 2px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-nav a { color: var(--on-dark-2); text-decoration: none; font-size: 14.5px; padding: 8px 0; }
.foot-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; border-top: 0; }
  .why-grid li, .why-grid li + li { padding: 24px 0 16px; border-left: 0; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 720px) { .band .btn { width: 100%; } }

/* ---------- Páginas de servicio ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18em; font-size: clamp(2.125rem, 4.6vw, 3.75rem); }
.page-hero .lede { max-width: 38em; }
.page-hero .actions { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--ink); }
.grid3.plain li:hover { transform: none; border-color: var(--line); }
.grid3.plain h3 { margin-top: 0; }
.more { display: inline-flex; align-items: center; margin-top: 28px; min-height: 44px; font-weight: 500; color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.more:hover { text-decoration-thickness: 2px; }
.cta-side .note a { color: #fff; text-underline-offset: 4px; }
