@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --paper: #F5F5F5;
  --white: #FFFFFF;
  --ink: #111111;
  --ink-2: #444444;
  --rule: rgba(17, 17, 17, .12);
  --muted: #686868;
  --line: #D5D5D0;
  --soft: #EAEAE6;
  --accent: #2563EB;
  --dark: #111111;
  --max: 1240px;
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.nav {
  line-height: normal;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  background: rgba(245,245,245,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, color .25s;
}
.nav[data-dark="true"] {
  background: rgba(17,17,17,0.85);
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav[data-dark="true"] .nav-links a { color: rgba(255,255,255,0.8); }
.nav[data-dark="true"] .nav-cta { color: #fff; border-color: rgba(255,255,255,0.25); }
.nav[data-dark="true"] .nav-cta:hover { background: rgba(255,255,255,0.08); }

.nav-mark {
  font-family: var(--sans); font-weight: 800;
  font-size: 20px; letter-spacing: -0.035em;
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0;
  position: relative;
}
.nav-mark i { color: var(--accent); font-style: normal; padding: 0 1px; }
.nav-mark-mini { position: absolute; left: 0; opacity: 0; transition: opacity .25s; }
.nav[data-mini="true"] .nav-mark-text { opacity: 0; }
.nav[data-mini="true"] .nav-mark-mini { opacity: 1; }

.nav-links {
  display: flex; gap: 32px;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav[data-dark="true"] .nav-links a:hover { color: #fff; }

.services-menu {
  position: relative;
}
.services-summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -12px 0;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  transition: color .15s;
}
.services-summary::-webkit-details-marker { display: none; }
.services-summary:hover { color: var(--ink); }
.services-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.services-summary svg { width: 15px; transition: transform .2s ease; }
.services-menu[open] .services-summary svg { transform: rotate(180deg); }
.services-panel {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  z-index: 110;
  width: 310px;
  padding: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
/* Animacion in/out del menu Servicios. Se activa solo con JS (clase services-anim) para que
   sin JS el <details> nativo siga mostrando el panel. */
.services-menu.services-anim .services-panel {
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  transition: opacity .18s ease, transform .18s cubic-bezier(.22, 1, .36, 1);
}
.services-menu.services-anim .services-panel.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .services-menu.services-anim .services-panel { transition: none; }
}
.nav-links .services-panel a {
  display: block;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.nav-links .services-panel a:last-child { border-bottom: 0; }
.nav-links .services-panel a[aria-current="page"] {
  color: var(--accent);
}
.nav-links .services-panel a:hover,
.nav-links .services-panel a:focus-visible { background: var(--ink); color: #fff; }
.nav[data-dark="true"] .services-summary { color: rgba(255,255,255,.8); }
.nav[data-dark="true"] .services-summary:hover { color: #fff; }
.nav[data-dark="true"] .services-panel a { color: var(--ink-2); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(17,17,17,0.18);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .15s, border-color .15s, transform .15s ease-out;
}
.nav-cta:hover { background: rgba(17,17,17,0.06); }
.nav-cta:active { transform: scale(0.96); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-actions .nav-links { margin-right: 4px; }

.nav-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.nav-menu-btn:hover { background: rgba(17,17,17,0.06); }
.nav-menu-icon {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: background .2s;
}
.nav-menu-icon::before,
.nav-menu-icon::after {
  content: '';
  position: absolute; left: 0;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s, top .2s, opacity .2s;
}
.nav-menu-icon::before { top: -5px; }
.nav-menu-icon::after  { top: 5px; }
.nav.is-open .nav-menu-icon { background: transparent; }
.nav.is-open .nav-menu-icon::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-menu-icon::after  { top: 0; transform: rotate(-45deg); }
.nav[data-dark="true"] .nav-menu-btn {
  border-color: rgba(255,255,255,0.25);
}
.nav[data-dark="true"] .nav-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ─── Mono ticker ─────────────────────────────────────────────────── */
.ticker {
  line-height: normal;
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-track {
  display: inline-flex; gap: 64px;
  animation: ticker 60s linear infinite;
  padding-left: 64px;
}
.ticker span:not(:last-child)::after { content: '·'; margin-left: 64px; color: rgba(255,255,255,0.3); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Body offset for ticker + nav */
body { padding-top: 0; }
.nav { top: 24px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--accent);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: var(--white);
}

.button svg {
  width: 17px;
  height: 17px;
}

main {
  overflow: clip;
  padding-top: 24px;
}

.section {
  padding: clamp(72px, 9vw, 124px) max(16px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0 0 24px;
  font-size: clamp(2.55rem, 6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #424242;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.hero-proof li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.visual-stage {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--ink);
  background-color: var(--white);
  background-image: linear-gradient(var(--soft) 1px, transparent 1px), linear-gradient(90deg, var(--soft) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 12px 12px 0 var(--ink);
  isolation: isolate;
}

.visual-stage::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 16px 0 0 var(--line), 32px 0 0 var(--line);
}

.visual-label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visual-window {
  position: relative;
  width: min(100%, 430px);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.visual-window-bar {
  height: 32px;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}

.visual-window-body {
  padding: 24px;
}

.web-build .build-nav,
.web-build .build-title,
.web-build .build-copy,
.web-build .build-button,
.web-build .build-card {
  opacity: 0;
  transform: translateY(12px);
  animation: build-in 4.8s ease-in-out infinite;
}

.web-build .build-nav {
  width: 54%;
  height: 8px;
  margin-bottom: 42px;
  background: var(--ink);
  animation-delay: .2s;
}

.web-build .build-title {
  width: 88%;
  height: 46px;
  margin-bottom: 16px;
  background: var(--ink);
  animation-delay: .65s;
}

.web-build .build-copy {
  width: 70%;
  height: 9px;
  margin-bottom: 25px;
  background: var(--line);
  animation-delay: 1.1s;
}

.web-build .build-button {
  width: 126px;
  height: 34px;
  margin-bottom: 34px;
  background: var(--accent);
  animation-delay: 1.55s;
}

.web-build .build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.web-build .build-card {
  height: 66px;
  border: 1px solid var(--ink);
  background: var(--white);
  animation-delay: 2s;
}

.web-build .build-card:nth-child(2) {
  animation-delay: 2.25s;
}

.web-build .build-card:nth-child(3) {
  animation-delay: 2.5s;
}

@keyframes build-in {
  0%, 10% {
    opacity: 0;
    transform: translateY(12px);
  }
  22%, 82% {
    opacity: 1;
    transform: translateY(0);
  }
  94%, 100% {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.brand-system {
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.brand-tile {
  min-height: 150px;
  padding: 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--paper);
  animation: brand-arrange 5.2s cubic-bezier(.2,.8,.2,1) infinite;
}

.brand-tile:nth-child(2) {
  background: var(--ink);
  color: var(--white);
  animation-delay: .25s;
}

.brand-tile:nth-child(3) {
  background: var(--accent);
  color: var(--white);
  animation-delay: .5s;
}

.brand-tile:nth-child(4) {
  animation-delay: .75s;
}

.brand-mark-demo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.07em;
}

.brand-type-demo {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand-palette {
  display: flex;
  gap: 6px;
}

.brand-palette i {
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  background: var(--white);
}

.brand-palette i:nth-child(2) {
  background: var(--ink);
}

.brand-palette i:nth-child(3) {
  background: var(--accent);
}

.brand-grid-demo {
  width: 78px;
  height: 78px;
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 16px 16px;
}

@keyframes brand-arrange {
  0%, 8% {
    opacity: .25;
    transform: scale(.88) rotate(-2deg);
  }
  22%, 82% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  94%, 100% {
    opacity: .25;
    transform: scale(.94) rotate(1deg);
  }
}

.flow-board,
.system-board,
.invoice-board {
  width: min(100%, 470px);
  position: relative;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
}

.flow-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
}

.flow-node {
  position: relative;
  z-index: 2;
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 10px 6px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.flow-node::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: node-pulse 4s ease-in-out infinite;
}

.flow-node:nth-child(2)::after {
  animation-delay: .8s;
}

.flow-node:nth-child(3)::after {
  animation-delay: 1.6s;
}

.flow-node:nth-child(4)::after {
  animation-delay: 2.4s;
}

.flow-packet {
  position: absolute;
  z-index: 4;
  top: calc(50% - 7px);
  left: 9%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .16);
  animation: packet-move 4s ease-in-out infinite;
}

@keyframes packet-move {
  0%, 8% { left: 9%; }
  28% { left: 34%; }
  53% { left: 60%; }
  78%, 100% { left: 86%; }
}

@keyframes node-pulse {
  0%, 14%, 100% { opacity: 0; transform: scale(.6); }
  20%, 34% { opacity: 1; transform: scale(1); }
}

.system-board {
  min-height: 350px;
}

.system-hub {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
  transform: translate(-50%, -50%);
}

.system-module {
  position: absolute;
  z-index: 2;
  width: 122px;
  min-height: 60px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  animation: module-signal 4.8s ease-in-out infinite;
}

.system-module:nth-of-type(1) { top: 8px; left: 0; }
.system-module:nth-of-type(2) { top: 8px; right: 0; animation-delay: .6s; }
.system-module:nth-of-type(3) { bottom: 8px; left: 0; animation-delay: 1.2s; }
.system-module:nth-of-type(4) { right: 0; bottom: 8px; animation-delay: 1.8s; }

.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.system-lines line {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  animation: line-flow 2.4s linear infinite;
}

@keyframes line-flow {
  to { stroke-dashoffset: -32; }
}

@keyframes module-signal {
  0%, 10%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  20%, 36% { box-shadow: 6px 6px 0 var(--accent); }
}

.invoice-board {
  min-height: 390px;
}

.invoice-sheet {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 220px;
  min-height: 300px;
  padding: 30px 24px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--line);
  animation: invoice-issue 5s ease-in-out infinite;
}

.invoice-logo {
  width: 88px;
  margin-bottom: 12px;
  padding: 9px 0;
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.invoice-sheet::before {
  content: "RUC · COMPROBANTE";
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
}

.invoice-row {
  height: 7px;
  margin-bottom: 13px;
  background: var(--line);
}

.invoice-row:nth-child(2) { width: 86%; }
.invoice-row:nth-child(3) { width: 62%; }
.invoice-row:nth-child(4) { width: 76%; }
.invoice-row.total { width: 48%; margin-top: 38px; margin-left: auto; background: var(--ink); }

.sunat-stamp {
  position: absolute;
  right: 0;
  top: 52%;
  z-index: 3;
  width: 154px;
  padding: 19px 12px;
  border: 3px solid var(--accent);
  background: var(--paper);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-50%) scale(.7) rotate(-5deg);
  animation: stamp-in 5s ease-in-out infinite;
}

.invoice-signal {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 90px;
  height: 2px;
  background: var(--line);
}

.invoice-signal::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  animation: signal-send 5s ease-in-out infinite;
}

@keyframes invoice-issue {
  0%, 10% { transform: translateY(16px); opacity: .3; }
  24%, 90% { transform: translateY(0); opacity: 1; }
  100% { opacity: .3; }
}

@keyframes signal-send {
  0%, 34% { left: 0; opacity: 0; }
  42% { opacity: 1; }
  64% { left: 78px; opacity: 1; }
  70%, 100% { left: 78px; opacity: 0; }
}

@keyframes stamp-in {
  0%, 62% { opacity: 0; transform: translateY(-50%) scale(.7) rotate(-5deg); }
  70%, 90% { opacity: 1; transform: translateY(-50%) scale(1) rotate(-2deg); }
  100% { opacity: 0; }
}

.section-heading {
  max-width: 800px;
  margin-bottom: 46px;
}

.section-heading h2,
.split-copy h2,
.case-copy h2,
.faq-intro h2,
.cta-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.2vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.04;
}

.section-heading p,
.split-copy > p,
.case-copy > p,
.faq-intro > p,
.cta-copy > p {
  max-width: 680px;
  margin: 0;
  color: #4D4D4D;
  font-size: 1.03rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.feature-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  min-height: 270px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.line-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-icon .accent {
  stroke: var(--accent);
}

.feature-card h3,
.process-step h3,
.case-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.feature-card p,
.process-step p {
  margin: 0;
  color: #555;
  font-size: .94rem;
}

.case-layout,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(42px, 7vw, 96px);
}

.case-layout {
  align-items: start;
}

.split-layout {
  align-items: center;
}

.case-copy {
  position: sticky;
  top: max(96px, calc(50vh - 200px));
}

.case-evidence {
  display: grid;
  gap: 22px;
}

.browser-frame {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 9px 9px 0 var(--ink);
}

.browser-bar {
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.browser-bar i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
}

.browser-bar span {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--soft);
}

.frame-link { display: block; }
.frame-link:hover img { opacity: .93; }
.frame-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.case-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}
.case-link:hover { text-decoration: underline; }
.case-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.phone-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 0;
  background: #c9d1d9;
}

.phone-frame > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
  background: transparent;
}

.phone-frame .case-caption {
  background: var(--white);
}

.case-caption {
  padding: 20px;
  border-top: 1px solid var(--ink);
}

.case-caption small {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-caption h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
}

.case-caption p {
  margin: 0;
  color: #4D4D4D;
  font-size: .86rem;
  line-height: 1.55;
}

.capture-placeholder {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed #777;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 12px, rgba(17,17,17,.035) 12px, rgba(17,17,17,.035) 24px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.process-step {
  min-height: 230px;
  padding: 30px 30px 30px 0;
  border-right: 1px solid var(--line);
}

.process-step + .process-step {
  padding-left: 30px;
}

.process-step:last-child {
  border-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 36px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--ink);
}

.faq-item summary {
  position: relative;
  padding: 24px 52px 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 19px;
  right: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "×";
}

.faq-answer {
  padding: 0 52px 25px 0;
  color: #4D4D4D;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  background: var(--accent);
  color: var(--white);
}

.cta-section .eyebrow,
.cta-section .cta-copy > p {
  color: var(--white);
}

.cta-section .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.cta-section .button-outline {
  background: transparent;
  color: var(--white);
}

/* Footer viejo (.site-footer / .footer-*) eliminado: ahora todas las paginas usan el footer unificado .foot (ver mas abajo). */

@media (min-width: 1041px) {
  .page-crm-erp .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(3.4rem, 4.25vw, 4.35rem);
    letter-spacing: -.055em;
    line-height: 1;
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .hero-copy h1 {
    max-width: 900px;
    font-size: clamp(2.6rem, 8.4vw, 5.5rem);
  }

  .visual-stage {
    min-height: 470px;
  }

  .case-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .case-copy {
    position: static;
    top: auto;
    max-width: 720px;
  }

}

@media (max-width: 900px) {
  .nav {
    padding: 14px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .nav-actions {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .nav-actions .nav-links { margin-right: 0; }
  .nav-menu-btn { display: inline-flex; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 9px 14px; }
  .nav-cta svg { margin: 0; }

  .nav.is-open .nav-actions {
    flex: 1 1 100%;
    align-items: stretch;
  }

  .nav-links {
    display: none;
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--rule);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-radius: 8px;
  }
  .nav-links a:active { background: rgba(17,17,17,0.06); }
  .nav[data-dark="true"] .nav-links { border-top-color: rgba(255,255,255,0.12); }
  .nav[data-dark="true"] .nav-links a:active { background: rgba(255,255,255,0.08); }
  .services-menu { width: 100%; }
  .services-summary {
    min-height: 50px;
    justify-content: space-between;
    margin: 0;
    padding: 0 4px;
    font-size: 16px;
  }
  .services-panel {
    position: static;
    width: 100%;
    padding: 0 0 6px 14px;
    border: 0;
    border-left: 2px solid var(--accent);
    background: transparent;
    box-shadow: none;
  }
  .nav-links .services-panel a { padding: 12px 8px; font-size: 15px; }
  .nav[data-dark="true"] .services-panel a { color: rgba(255,255,255,.8); }
  .nav[data-dark="true"] .services-panel a:hover,
  .nav[data-dark="true"] .services-panel a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }

  body.nav-open { overflow: hidden; }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step + .process-step {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .step-number {
    margin-bottom: 18px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .cta-section {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 11.4vw, 4.15rem);
    letter-spacing: -.055em;
    line-height: 1.02;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .visual-stage {
    min-height: 410px;
    padding: 48px 18px 28px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .brand-tile {
    min-height: 118px;
    padding: 14px;
  }

  .brand-mark-demo {
    font-size: 1.65rem;
  }

  .flow-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-track::before {
    top: 8%;
    bottom: 8%;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .flow-node {
    min-height: 58px;
  }

  .flow-packet {
    top: 8%;
    left: calc(50% - 7px);
    animation-name: packet-move-mobile;
  }

  @keyframes packet-move-mobile {
    0%, 8% { top: 8%; left: calc(50% - 7px); }
    28% { top: 34%; left: calc(50% - 7px); }
    53% { top: 60%; left: calc(50% - 7px); }
    78%, 100% { top: 86%; left: calc(50% - 7px); }
  }

  .system-board {
    transform: scale(.86);
  }

  .invoice-board {
    transform: scale(.86);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .line-icon {
    margin-bottom: 28px;
  }

}


@media (max-width: 480px) {
  .nav-cta {
    width: 40px;
    padding: 9px;
    justify-content: center;
    font-size: 0;
  }
  .nav-cta span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .web-build .build-nav,
  .web-build .build-title,
  .web-build .build-copy,
  .web-build .build-button,
  .web-build .build-card,
  .brand-tile,
  .sunat-stamp {
    opacity: 1;
    transform: none;
  }

  .flow-packet {
    left: 86%;
  }

  .sunat-stamp {
    transform: rotate(-2deg);
  }
}

/* ─── FOOTER unificado con el home (mismo footer en toda la web) ─── */
.foot { background: var(--ink); color: #fff; padding: 80px 36px 36px; }
.foot .mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-row { max-width: 1400px; margin: 0 auto; }
.foot-row--top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-mark { font-family: var(--sans); font-weight: 800; font-size: clamp(64px, 12vw, 200px); letter-spacing: -0.05em; line-height: 1; }
.foot-mark i { color: var(--accent); font-style: normal; padding: 0 2px; }
.foot-stamp { color: rgba(255,255,255,0.5); }
.foot-row--mid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 60px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col > .mono { color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.foot-col a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-col b { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: #fff; }
.foot-legal-link { color: inherit; text-decoration: none; transition: color .15s; }
.foot-legal-link:hover { color: var(--accent); }
.foot-libro-icon { display: inline-block; width: 100px; height: 100px; margin: 0 8px; vertical-align: middle; object-fit: contain; opacity: 0.75; }
.foot-row--bot { display: flex; justify-content: space-between; padding-top: 24px; color: rgba(255,255,255,0.5); }
@media (max-width: 900px) {
  .foot { padding: 60px 20px 28px; }
  .foot-row--mid { grid-template-columns: 1fr 1fr; }
  .foot-row--bot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .foot-row--bot > span:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; line-height: 1.5; }
  .foot-libro-icon { width: 28px; height: 28px; margin: 0; }
}
@media (max-width: 640px) {
  .foot-row--top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-mark { font-size: clamp(40px, 13vw, 60px); }
}
@media (max-width: 480px) {
  .foot-row--mid { grid-template-columns: 1fr; }
}
