:root {
  color-scheme: dark;
  --navy: #080f27;
  --ink: #edf4ff;
  --muted: #bdcce5;
  --accent: #55e8fb;
  --white: #fff;
  --surface: #121e36;
  --surface-raised: #172640;
  --border: #2a3c5d;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 12px; background: var(--surface-raised); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - 96px, 1232px); margin-inline: auto; }
.masthead { background: var(--navy); color: #d9e5f8; border-bottom: 1px solid #23314c; }
.nav, .footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { min-height: 84px; }
.brand { display: inline-flex; width: 190px; max-width: 100%; }
nav { display: flex; gap: clamp(18px, 3.1vw, 44px); font-size: .94rem; font-weight: 600; }
nav a:hover { color: var(--accent); }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--accent);
  color: #06172a;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}
.button:hover { background: #adf6ff; }
.button-small { min-height: 43px; padding: 9px 14px; font-size: .875rem; }
.button-quiet { color: #e3efff; background: transparent; border-color: #526786; }
.button-quiet:hover { background: #142649; }

.hero {
  color: white;
  background: radial-gradient(ellipse at 83% 29%, #183d76 0%, #0e2147 32%, transparent 66%), var(--navy);
  border-bottom: 1px solid #243960;
}
.hero-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(32px, 4vw, 65px); align-items: center; padding-block: 91px 97px; }
.label { color: var(--accent); font-size: .875rem; letter-spacing: .095em; text-transform: uppercase; font-weight: 750; }
h1 { margin-top: 22px; font-size: clamp(2.6rem, 5.1vw, 4.5rem); line-height: 1.04; letter-spacing: -.064em; text-wrap: balance; }
h1 span { color: var(--accent); }
.lead { margin-top: 24px; color: #c3d1e9; font-size: clamp(1.04rem, 1.4vw, 1.16rem); line-height: 1.65; max-width: 49ch; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 29px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 8px 21px; list-style: none; padding: 0; margin: 24px 0 0; color: #c3d1e9; font-size: .9rem; }
.hero-benefits li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.preview-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 0 2px 10px;
  color: #c7d9f0;
  font-size: .8125rem;
  line-height: 1.45;
}
.preview-caption > span:first-child { font-weight: 650; }
.preview-caption > span:last-child { color: #a3b8d4; }
.erp-image {
  display: block;
  overflow: hidden;
  border: 1px solid #5473a0;
  border-radius: 15px;
  background: #101d33;
  box-shadow: 0 0 0 6px #497bbc19, 0 25px 56px #030917b3;
}
.erp-image img { width: 100%; }
.preview-caption a { text-decoration: underline; text-underline-offset: 3px; }

.section { padding-block: 84px; }
.modules { background: #0d172d; }
.section-heading h2, .contact h2 { font-size: clamp(2.1rem, 4.1vw, 3.4rem); letter-spacing: -.05em; line-height: 1.08; margin-top: 12px; text-wrap: balance; }
.section-heading > p:last-child, .contact h2 + p { max-width: 58ch; color: var(--muted); margin-top: 15px; font-size: 1.08rem; line-height: 1.62; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.module-grid article { padding: 26px 27px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.module-grid article::before { content: ""; display: block; width: 34px; height: 4px; margin-bottom: 17px; border-radius: 999px; background: linear-gradient(90deg, #11cce1, #1464ea); }
h3 { font-size: 1.16rem; line-height: 1.35; letter-spacing: -.018em; }
.module-grid p, .steps p { color: var(--muted); margin-top: 6px; line-height: 1.55; }
.sales-app {
  background: radial-gradient(ellipse at 78% 45%, #123d6f 0%, #0c1b37 48%, var(--navy) 79%);
  color: var(--white);
}
.sales-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); align-items: center; gap: clamp(36px, 7vw, 108px); }
.sales-copy > p:nth-of-type(2) { color: #c9d8ef; margin-top: 17px; font-size: 1.08rem; line-height: 1.62; max-width: 54ch; }
.sales-features { display: grid; gap: 13px; max-width: 50ch; margin: 24px 0; padding: 0; list-style: none; }
.sales-features li { display: grid; grid-template-columns: auto 1fr; gap: 10px; color: #dbe9fa; line-height: 1.5; }
.sales-features li::before { content: "✓"; color: var(--accent); font-weight: 750; }
.app-preview { min-width: 0; width: min(100%, 580px); justify-self: center; }
.app-preview > a { display: block; border-radius: 15px; border: 1px solid #42628c; box-shadow: 0 24px 56px #03091765; overflow: hidden; background: #09213b; }
.app-preview img { width: 100%; }
.app-preview .preview-caption { padding-block: 10px 0; }
.onboarding { background: #0d172d; border-top: 1px solid var(--border); }
.onboarding-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 9vw, 135px); align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: etapa; }
.steps li { counter-increment: etapa; position: relative; padding: 13px 0 14px 47px; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(etapa); position: absolute; top: 13px; left: 0; width: 31px; height: 31px; display: grid; place-items: center; color: var(--accent); background: #1a3151; border-radius: 50%; font-weight: 750; }
.contact { background: #10234b; color: white; padding-block: 68px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 42px; }
.contact h2 { max-width: 20ch; }
.contact h2 + p { color: #c3d1e9; }
.contact .button { margin-top: 23px; }
address { display: grid; gap: 5px; padding: 20px 0 20px 33px; border-left: 1px solid #4e648b; font-style: normal; }
address span { color: #bfcee8; font-size: .875rem; }
address span:not(:first-child) { margin-top: 13px; }
address a { font-weight: 700; overflow-wrap: anywhere; }
address a:hover { text-decoration: underline; }
.footer { color: #b8c7e1; background: var(--navy); border-top: 1px solid #293a5a; padding-block: 22px; }
.footer .brand { width: 152px; }
.footer p { font-size: .875rem; }

dialog { width: min(100% - 28px, 480px); max-height: calc(100% - 28px); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: clamp(17px, 4vw, 30px); color: var(--ink); box-shadow: 0 26px 69px #0005; }
dialog::backdrop { background: #080f27be; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.dialog-heading h2 { font-size: clamp(1.35rem, 5vw, 1.8rem); letter-spacing: -.04em; }
.close { display: grid; place-items: center; line-height: 1; cursor: pointer; background: var(--surface-raised); color: var(--ink); border: 0; border-radius: 7px; font-size: 1.5rem; width: 34px; height: 34px; flex: none; }
dialog p { margin: 10px 0 20px; color: var(--muted); line-height: 1.55; }
dialog label { display: block; margin-bottom: 13px; font-weight: 650; }
dialog label span { color: var(--muted); font-size: .875rem; font-weight: 400; }
dialog input { width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid #4e648b; border-radius: 7px; background: var(--navy); color: var(--ink); }
dialog .button { width: 100%; margin-top: 6px; }

@media (max-width: 920px) {
  .wrap { width: min(100% - 48px, 1232px); }
  .hero-layout { padding-block: 66px 74px; }
  .hero-actions .button { padding-inline: 12px; }
}
@media (max-width: 860px) {
  .wrap { width: min(100% - 36px, 600px); }
  .nav { flex-wrap: wrap; min-height: auto; padding-block: 15px 11px; gap: 12px 10px; }
  .nav .brand { width: min(40%, 166px); }
  nav { order: 3; justify-content: space-between; width: 100%; gap: 10px; border-top: 1px solid #293a5a; padding-top: 11px; }
  .hero-layout, .sales-layout, .onboarding-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { padding-block: 45px 47px; gap: 30px; }
  .section { padding-block: 53px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid article { padding: 19px; }
  .contact { padding-block: 50px; }
  .contact-layout { gap: 24px; }
  address { padding: 17px 0 0; border-left: 0; border-top: 1px solid #4e648b; }
}
@media (max-width: 420px) {
  nav { flex-wrap: wrap; }
  .module-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-actions { flex-direction: column; }
  .footer-layout { flex-wrap: wrap; gap: 12px; }
}
