/* Nubit Labs corporate landing. Tokens, type, radii and spacing come from the Figma file
   "Nubit Labs — Design System" (Docs / Color 11:56, Tokens semánticos 11:341, Tipografía 11:541,
   Espaciado y radios 11:582). Names follow its --nb-* variables. */
@font-face { font-family: Lexend; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/lexend-latin-wght-normal.woff2) format("woff2-variations"), url(/fonts/lexend-latin-wght-normal.woff2) format("woff2"); }

:root {
  /* DS semantic colors (light) */
  --nb-text-primary: #0b1f4f;
  --nb-text-secondary: #525b6c;
  --nb-text-brand: #0046c7;
  --nb-text-inverse: #fff;
  --nb-bg-canvas: #f8f9fb;
  --nb-bg-surface: #fff;
  --nb-bg-subtle: #f1f2f6;
  --nb-bg-inverse: #0b1530;
  --nb-bg-brand: #0a6cff;
  --nb-bg-brand-hover: #0046c7;
  --nb-bg-brand-subtle: #eff6ff;
  --nb-bg-accent: #00d2ff;
  --nb-border: #e2e5eb;
  --nb-border-strong: #ced3dc;
  --nb-border-focus: #0a6cff;
  /* DS radii: xs 4 / sm 8 / md 12 / lg 16 / xl 24 / full */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --shadow-sm: 0 1px 2px #0b1f4f0f;
  --shadow-md: 0 8px 24px #0b1f4f14;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 16px/1.6 Lexend, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--nb-text-primary); background: var(--nb-bg-canvas); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--nb-text-brand); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--nb-text-primary); }
h1 { font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-weight: 600; line-height: 1.3; font-size: 19px; }
:focus-visible { outline: 3px solid var(--nb-border-focus); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--nb-bg-surface); padding: 8px 14px; border-radius: var(--r-md); }

/* Icons: 24 grid, 1.75 stroke (the DS icon set). .fill is for the filled WhatsApp glyph. */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }

/* Buttons (DS Button) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: var(--r-md); font: 500 15px/1 Lexend, system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s; text-align: center; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--nb-bg-brand); color: #fff; }
.btn-primary:hover { background: var(--nb-bg-brand-hover); }
.btn-outline { background: var(--nb-bg-surface); color: var(--nb-text-primary); border-color: var(--nb-border-strong); }
.btn-outline:hover { border-color: var(--nb-bg-brand); color: var(--nb-text-brand); }
.btn-light { background: #ffffff14; color: #fff; border-color: #ffffff2e; width: 100%; justify-content: space-between; }
.btn-light:hover { background: #ffffff24; border-color: #ffffff59; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: #f8f9fbeb; backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--nb-border); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; position: relative; }
.brand img { height: 30px; width: auto; }
.top-nav { display: none; gap: 28px; margin-left: 24px; }
.top-nav a { color: var(--nb-text-secondary); text-decoration: none; font-weight: 400; font-size: 14px; transition: color .15s; }
.top-nav a:hover { color: var(--nb-text-primary); }
.top-cta { display: none; margin-left: auto; }
.menu { margin-left: auto; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); cursor: pointer; border: 1px solid var(--nb-border); background: var(--nb-bg-surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu .close { display: none; }
.menu[open] .close { display: block; }
.menu[open] .open { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 4px; padding: 12px 16px 16px; background: var(--nb-bg-surface); border-bottom: 1px solid var(--nb-border); box-shadow: var(--shadow-md); }
.menu-panel a:not(.btn) { padding: 12px 8px; color: var(--nb-text-primary); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); }
.menu-panel a:not(.btn):hover { background: var(--nb-bg-subtle); }
.menu-panel .btn { margin-top: 8px; }
@media (min-width: 900px) { .top-nav { display: flex; } .top-cta { display: inline-flex; } .menu { display: none; } }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--nb-border) 1px, transparent 1px), linear-gradient(90deg, var(--nb-border) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 72%); opacity: .7; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 96px 0 112px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--nb-text-brand); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nb-bg-accent); box-shadow: 0 0 0 3px #00d2ff33; }
.hero h1 { font-size: clamp(36px, 4.8vw, 56px); max-width: 16em; }
.hero h1 em { font-style: normal; color: var(--nb-bg-brand); }
.lead { margin-top: 22px; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.65; color: var(--nb-text-secondary); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.eco { animation: rise .7s .15s cubic-bezier(.2, .7, .2, 1) both; }

/* Ecosystem panel */
.eco { background: var(--nb-bg-inverse); color: #fff; border-radius: var(--r-xl); border: 1px solid #ffffff1f; box-shadow: 0 24px 60px #0b153040, 0 0 0 6px #0a6cff0f; overflow: hidden; }
.eco-bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid #ffffff14; }
.eco-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff2e; }
.eco-bar span { margin-left: 10px; font-size: 12px; color: #9aa6c4; letter-spacing: .02em; }
.eco-body { padding: 8px 18px 20px; display: grid; gap: 10px; }
.eco-label { margin-top: 14px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #7e8bad; }
.eco-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); background: #ffffff0a; border: 1px solid #ffffff14; color: #fff; text-decoration: none; transition: background-color .15s, border-color .15s; }
.eco-row:hover { background: #ffffff14; border-color: #ffffff38; }
.eco-row img { width: 28px; height: auto; max-height: 28px; object-fit: contain; flex: none; }
.eco-row span { display: grid; flex: 1; min-width: 0; }
.eco-row b { font-weight: 600; font-size: 15px; }
.eco-row small { font-size: 12.5px; color: #9aa6c4; }
.eco-row .ico { color: #7e8bad; transition: transform .15s, color .15s; }
.eco-row:hover .ico { transform: translateX(3px); color: var(--nb-bg-accent); }
.eco-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #0a6cff26; border: 1px solid #0a6cff59; font-size: 13px; color: #d6e6ff; }
.eco-chips .ico { width: 16px; height: 16px; color: var(--nb-bg-accent); }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .sub, .contact .sub { margin-top: 16px; font-size: 17px; color: var(--nb-text-secondary); max-width: 38em; }
.section-tint { background: var(--nb-bg-subtle); }
.section-dark { background: var(--nb-bg-inverse); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--nb-bg-accent); }
.section-dark .sub { color: #aab6d3; }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Area cards (DS Card/Service) */
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--nb-bg-surface); border: 1px solid var(--nb-border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #0a6cff59; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card p { color: var(--nb-text-secondary); font-size: 15px; line-height: 1.6; }
.ico-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--nb-bg-brand-subtle); color: var(--nb-bg-brand); margin-bottom: 8px; flex: none; }
.more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--nb-text-brand); }
.more .ico { width: 16px; height: 16px; transition: transform .15s; }
.more:hover .ico { transform: translateX(3px); }

/* Products */
.product { --accent: var(--nb-bg-brand); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-xl); background: #ffffff0a; border: 1px solid #ffffff1a; overflow: hidden; transition: border-color .2s, background-color .2s, transform .2s; }
.product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.product::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(40px); pointer-events: none; }
.product:hover { border-color: #ffffff40; background: #ffffff10; transform: translateY(-2px); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.logo-tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--r-lg); background: #fff; }
.logo-tile img { max-width: 40px; max-height: 40px; width: auto; height: auto; }
.chip { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #ffffff14; border: 1px solid #ffffff24; color: #cdd7ee; white-space: nowrap; }
.product h3 { font-size: 24px; }
.product p { color: #aab6d3; font-size: 15px; }
.ticks { display: grid; gap: 10px; margin: 6px 0 14px; }
.ticks li { position: relative; padding-left: 28px; font-size: 14.5px; color: #d6dff2; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1530' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.product .btn { margin-top: auto; }

/* Services rows */
.rows { border-top: 1px solid var(--nb-border); }
.row { display: grid; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--nb-border); }
.row-head { display: flex; align-items: center; gap: 16px; }
.row-head .ico-box { margin: 0; }
.row-head h3 { font-size: 22px; }
.row-body p { color: var(--nb-text-secondary); max-width: 40em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills li { font-size: 13px; font-weight: 500; padding: 6px 13px; border-radius: 999px; background: var(--nb-bg-surface); border: 1px solid var(--nb-border); color: var(--nb-text-primary); }
@media (min-width: 900px) { .row { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; } .row-head { padding-top: 2px; } }

/* Why */
.why { display: grid; gap: 28px 40px; }
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why > div { padding-top: 20px; border-top: 2px solid var(--nb-text-primary); }
.num { display: block; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--nb-text-brand); margin-bottom: 14px; }
.why h3 { margin-bottom: 8px; }
.why p { color: var(--nb-text-secondary); font-size: 15px; }

/* Steps */
.steps { display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); position: relative; } .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--nb-border-strong); } }
.steps li { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nb-bg-brand); color: #fff; font-weight: 600; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--nb-bg-canvas); }
.steps h3 { margin-bottom: 8px; font-size: 18px; }
.steps p { color: var(--nb-text-secondary); font-size: 15px; }

/* Contact */
.contact { background: var(--nb-bg-brand); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, #00d2ff55, transparent); pointer-events: none; }
@media (min-width: 900px) { .contact { padding: 104px 0; } }
.contact-grid { position: relative; display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); }
.contact .eyebrow { color: #fff; opacity: .85; }
.contact .sub { color: #e3eeff; }
.channels { display: grid; gap: 12px; margin-top: 32px; }
.channels a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-md); background: #ffffff1f; border: 1px solid #ffffff38; color: #fff; text-decoration: none; transition: background-color .15s; }
.channels a:hover { background: #ffffff33; }
.channels span { display: grid; }
.channels b { font-weight: 600; font-size: 15px; }
.channels small { font-size: 14px; color: #e3eeff; }
.channels .ico { width: 24px; height: 24px; }

.form { display: grid; gap: 16px; padding: 28px; border-radius: var(--r-xl); background: var(--nb-bg-surface); color: var(--nb-text-primary); box-shadow: 0 24px 60px #0b153040; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--nb-text-secondary); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid #747c8b; background: #fff; font: 400 15px/1.4 Lexend, system-ui, sans-serif; color: var(--nb-text-primary); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8a92a3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--nb-border-focus); box-shadow: 0 0 0 3px #0a6cff33; }
.field .err { font-size: 13px; color: #a21a1e; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c92228; }
.form .btn { width: 100%; }
.fine { font-size: 13px; color: var(--nb-text-secondary); line-height: 1.5; }

/* Footer */
.foot { background: var(--nb-bg-inverse); color: #aab6d3; padding: 64px 0 28px; }
.foot-grid { display: grid; gap: 36px 24px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin-top: 18px; max-width: 24em; font-size: 14px; line-height: 1.65; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.foot a { color: #aab6d3; text-decoration: none; font-size: 14px; transition: color .15s; }
.foot a:hover { color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #ffffff1a; font-size: 13px; }

/* Legal / 404 pages */
.doc { max-width: 760px; padding: 64px 16px 96px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--nb-text-secondary); }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.doc .meta { font-size: 14px; color: var(--nb-text-secondary); margin-bottom: 24px; }
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 32px 16px; }
.lost h1 { font-size: clamp(34px, 6vw, 56px); }
.lost p { color: var(--nb-text-secondary); }
.lost .btn { justify-self: center; margin-top: 10px; }
