:root {
  --ink: #132238;
  --muted: #58677a;
  --line: #dce3eb;
  --blue: #2357d9;
  --lime: #c9ff4a;
  --violet: #7c5cfc;
  --accent: var(--blue);
  --soft: #eef4ff;
  --accent-ink: white;
  --hero-bg: #143ecc;
  --hero-fg: white;
  --hero-muted: rgba(255,255,255,.8);
  --hero-button: var(--lime);
  --hero-button-ink: #111b24;
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: white; font-family: "DM Sans", system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.theme-shop { --accent: #99cc22; --soft: #f3ffd5; --accent-ink: #132238; --hero-bg: #d7ff45; --hero-fg: #111b24; --hero-muted: #41502d; --hero-button: #143ecc; --hero-button-ink: white; }
body.theme-automation { --accent: var(--violet); --soft: #f1edff; --accent-ink: white; --hero-bg: #5b3ef2; --hero-fg: white; --hero-muted: rgba(255,255,255,.82); --hero-button: var(--lime); --hero-button-ink: #111b24; }
body.theme-fact { --accent: #0b0c0e; --soft: #f3f4f6; --accent-ink: white; --hero-bg: #0b0c0e; --hero-fg: white; --hero-muted: rgba(255,255,255,.78); --hero-button: var(--lime); --hero-button-ink: #111b24; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", system-ui, sans-serif; line-height: 1.08; letter-spacing: -.04em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.7rem); }
h2 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2.15rem, 4.2vw, 4rem); }
h3 { font-size: 1.35rem; }
.lead { max-width: 690px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.68; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Manrope", sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; flex: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; }
.brand-mark i { display: block; min-width: 0; border-radius: 5px; }
.brand-mark i:nth-child(1) { background: var(--blue); }
.brand-mark i:nth-child(2) { background: var(--lime); }
.brand-mark i:nth-child(3) { background: var(--violet); }
.brand-mark i:nth-child(4) { background: #0b0c0e; }
.brand-mark.sm { width: 24px; height: 24px; gap: 2px; }
.brand-mark.sm i { border-radius: 3px; }

.site-header { min-height: 76px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: #506074; font-size: .9rem; font-weight: 650; }
.nav-links a:hover { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }

.service-hero { min-height: calc(100vh - 76px); display: flex; align-items: center; padding: clamp(70px, 8vw, 112px) 0; color: var(--hero-fg); background: var(--hero-bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(48px, 7vw, 90px); align-items: center; }
.service-name { display: flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 32px; font-weight: 750; }
.service-dot { width: 13px; height: 13px; border-radius: 4px; background: var(--hero-button); }
.service-hero h1 { color: var(--hero-fg); }
.service-hero .lead { color: var(--hero-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 12px; font-weight: 750; }
.btn.primary { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.btn.secondary { background: white; }
.btn::after { content: "→"; }
.service-hero .btn.primary { color: var(--hero-button-ink); border-color: var(--hero-button); background: var(--hero-button); }
.service-hero .btn.secondary { color: var(--hero-fg); border-color: currentColor; background: transparent; }

.screen { min-width: 0; border: 1px solid #d7dee7; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 28px 70px rgba(29,48,78,.22); overflow: hidden; }
.image-screen { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.image-screen img { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); object-fit: contain; filter: drop-shadow(0 28px 48px rgba(8,17,31,.22)); }
.screen-bar { height: 43px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid #e6eaf0; background: #fbfcfd; }
.screen-bar > i { width: 7px; height: 7px; border-radius: 50%; background: #c8d1dc; }
.screen-bar span { margin-left: 8px; color: #8793a3; font-size: .62rem; }
.screen-credit { margin-left: auto !important; display: inline-flex; align-items: center; gap: 6px; color: #526174 !important; font-weight: 700; }
.screen-body { min-height: 440px; padding: 26px; background: #f8f9fb; }
.demo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.demo-heading h3 { margin-bottom: 5px; font-size: 1.2rem; }
.demo-heading p { margin: 0; color: #7b8797; font-size: .68rem; }
.demo-action { padding: 8px 11px; border-radius: 8px; color: var(--accent-ink); background: var(--accent); font-size: .58rem; font-weight: 750; }
.demo-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.demo-metric { padding: 14px; border: 1px solid #e0e5eb; border-radius: 11px; background: white; }
.demo-metric span { display: block; margin-bottom: 7px; color: #7b8797; font-size: .56rem; }
.demo-metric strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.05rem; }
.demo-metric small { color: #17a673; font-size: .5rem; font-weight: 750; }

.web-demo { padding: 0; background: #f5f0e8; }
.web-demo-nav { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid rgba(19,34,56,.1); }
.web-demo-nav b { font-family: "Manrope", sans-serif; }
.web-demo-nav span { color: #6c675f; font-size: .62rem; }
.web-demo-hero { display: grid; grid-template-columns: 1fr .85fr; min-height: 320px; }
.web-demo-copy { padding: 46px 24px 32px 34px; }
.web-demo-copy h3 { max-width: 330px; margin-bottom: 14px; font-size: clamp(2rem,4vw,3rem); }
.web-demo-copy p { max-width: 290px; color: #696862; font-size: .72rem; }
.web-demo-copy a { display: inline-flex; margin-top: 14px; padding: 9px 12px; border-radius: 7px; color: white; background: #273447; font-size: .6rem; font-weight: 750; }
.web-demo-photo { position: relative; margin: 22px; border-radius: 14px; background: linear-gradient(145deg,#aeb9a1 0 36%,#e1d1b7 36% 58%,#586555 58%); overflow: hidden; }
.web-demo-photo::after { content: "Proyecto residencial · Barranco"; position: absolute; left: 15px; right: 15px; bottom: 15px; padding: 10px; border-radius: 7px; background: rgba(255,255,255,.9); font-size: .58rem; font-weight: 750; }
.web-demo-stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(19,34,56,.1); }
.web-demo-stats div { padding: 15px 20px; }
.web-demo-stats div + div { border-left: 1px solid rgba(19,34,56,.1); }
.web-demo-stats strong { display: block; font-family: "Manrope",sans-serif; }
.web-demo-stats small { color: #77746d; font-size: .55rem; }

.data-table { border: 1px solid #e0e5eb; border-radius: 12px; background: white; overflow: hidden; }
.table-head { display: flex; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid #e6eaf0; font-size: .7rem; font-weight: 750; }
.table-head span:last-child { color: var(--accent); font-size: .55rem; }
.table-row { display: grid; grid-template-columns: .6fr 1.25fr .8fr .7fr; gap: 9px; padding: 12px 14px; border-bottom: 1px solid #eef1f4; color: #5b6879; font-size: .57rem; }
.table-row:last-child { border-bottom: 0; }
.table-row b { color: var(--ink); }
.pill { width: fit-content; padding: 4px 7px; border-radius: 99px; color: #087952; background: #e8f8f2; font-size: .49rem; font-weight: 750; }

.flow-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.flow-box, .activity-box { border: 1px solid #e0e5eb; border-radius: 12px; background: white; }
.flow-box { padding: 16px; }
.flow-title { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: .68rem; font-weight: 750; }
.flow-title span:last-child { color: #17a673; }
.flow-step { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 9px; margin-top: 8px; padding: 10px; border: 1px solid #e3e7ed; border-radius: 9px; }
.flow-step > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--accent); font-size: .57rem; font-weight: 800; }
.flow-step b { display: block; font-size: .6rem; }
.flow-step small { color: #7a8697; font-size: .49rem; }
.flow-step em { color: #17a673; font-size: .49rem; font-style: normal; }
.activity-box h4 { margin: 0; padding: 14px; border-bottom: 1px solid #e7ebf0; font-size: .68rem; }
.activity-line { padding: 12px 14px; border-bottom: 1px solid #eef1f4; font-size: .55rem; }
.activity-line b { display: block; }
.activity-line span { color: #7a8697; }

.fact-shell { display: grid; grid-template-columns: 115px 1fr; min-height: 440px; padding: 0; background: #fbfbfc; }
.fact-side { padding: 16px 10px; border-right: 1px solid #e3e7ec; background: white; }
.fact-brand { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid #edf0f3; }
.fact-brand b { font-size: .7rem; }
.fact-brand small { display: block; color: #8a929d; font-size: .43rem; }
.fact-side > span { display: block; margin: 14px 4px 5px; color: #9299a3; font-size: .42rem; font-weight: 800; text-transform: uppercase; }
.fact-side a { display: block; padding: 7px; border-radius: 7px; color: #5d6570; font-size: .51rem; }
.fact-side a.active { color: var(--ink); background: #f0f1f3; font-weight: 750; }
.fact-main { padding: 20px; }
.chart-panel { padding: 14px; border: 1px solid #e1e5ea; border-radius: 11px; background: white; }
.chart-panel h4 { margin-bottom: 3px; font-size: .72rem; }
.chart-panel > span { color: #828a96; font-size: .48rem; }
.chart { position: relative; height: 150px; margin-top: 14px; border-bottom: 1px solid #dfe4e9; background: repeating-linear-gradient(to bottom,transparent 0 36px,#edf0f3 37px); overflow: hidden; }
.chart::before { content: ""; position: absolute; inset: 32px 0 0; background: linear-gradient(180deg,rgba(35,87,217,.22),rgba(35,87,217,0)); clip-path: polygon(0 74%,24% 61%,48% 49%,70% 24%,100% 28%,100% 100%,0 100%); }
.chart::after { content: ""; position: absolute; left: 0; right: 0; top: 50px; height: 3px; border-radius: 4px; background: var(--blue); transform: skewY(-8deg); transform-origin: left; }

.outcomes { border-bottom: 1px solid var(--line); }
.outcome-row { display: grid; grid-template-columns: repeat(3,1fr); }
.outcome { padding: 30px 26px; }
.outcome + .outcome { border-left: 1px solid var(--line); }
.outcome strong { display: block; margin-bottom: 5px; font-family: "Manrope",sans-serif; font-size: 1.15rem; }
.outcome span { color: var(--muted); font-size: .88rem; }

section.content { padding: clamp(86px,10vw,130px) 0; }
.section-intro { max-width: 800px; margin-bottom: 58px; }
.section-intro p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.deliverables { display: grid; grid-template-columns: repeat(3,1fr); gap: 34px; }
.deliverable { padding-top: 24px; border-top: 3px solid var(--accent); }
.deliverable span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.deliverable h3 { margin-top: 20px; }
.deliverable p { color: var(--muted); }
.process { background: #f7f8fa; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px,9vw,110px); }
.process-list { border-top: 1px solid var(--line); }
.process-step { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process-step > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font-size: .7rem; font-weight: 800; }
.process-step h3 { margin-bottom: 6px; }
.process-step p { margin: 0; color: var(--muted); }
.cta-band { padding: clamp(65px,8vw,95px) 0; color: var(--accent-ink); background: var(--accent); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-row h2 { max-width: 720px; margin: 0; }
.cta-row .btn { flex: none; border-color: white; background: white; color: var(--ink); }

footer { padding: 38px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #68768a; font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid, .process-grid { grid-template-columns: 1fr; }
  .screen { max-width: 720px; }
  .image-screen img { max-height: none; }
  .nav-links a:not(.back-link) { display: none; }
  .deliverables { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px),var(--max)); }
  .site-header { min-height: 68px; }
  .brand { font-size: 1.05rem; }
  .nav-links { font-size: .82rem; }
  .service-hero { padding-top: 58px; }
  h1 { font-size: clamp(2.65rem,13vw,4rem); }
  .hero-actions .btn { width: 100%; }
  .screen-body { min-height: 0; padding: 14px; }
  .screen-credit { display: none; }
  .demo-action { display: none; }
  .demo-metrics { gap: 6px; }
  .demo-metric { padding: 10px 8px; }
  .demo-metric strong { font-size: .8rem; }
  .web-demo-hero { grid-template-columns: 1fr .65fr; min-height: 270px; }
  .web-demo-nav { padding-inline: 14px; }
  .web-demo-nav span { display: none; }
  .web-demo-copy { padding: 30px 10px 22px 18px; }
  .web-demo-copy h3 { font-size: 1.5rem; }
  .web-demo-photo { margin: 14px; }
  .table-row { grid-template-columns: .6fr 1.2fr .8fr; padding-inline: 10px; }
  .table-row .pill { display: none; }
  .flow-layout { grid-template-columns: 1fr; }
  .activity-box { display: none; }
  .fact-shell { grid-template-columns: 82px 1fr; }
  .fact-side { padding-inline: 6px; }
  .fact-brand { gap: 4px; }
  .fact-brand small { display: none; }
  .fact-side a { padding-inline: 3px; font-size: .45rem; }
  .fact-main { padding: 12px 8px; }
  .outcome-row { grid-template-columns: 1fr; }
  .outcome + .outcome { border-left: 0; border-top: 1px solid var(--line); }
  .cta-row, .footer-row { align-items: flex-start; flex-direction: column; }
  .cta-row .btn { width: 100%; }
}
