/* ONLAB Campus · landing comercial (ONC-4).
   Identidad del PRODUCTO de ONC-2 (assets/js/branding/product.js · logo):
   marino #0B1E3F, turquesa #14B8C4, azul #1F5EDB. Tipografía del sistema (sin
   fuentes externas). Mobile first. */
:root {
  --navy: #0b1e3f;
  --navy-2: #13294f;
  --teal: #14b8c4;
  --teal-deep: #0e7c86;
  --blue: #1f5edb;
  --blue-deep: #1849ad;
  --ink: #16233d;
  --ink-2: #4a5468;
  --muted: #6b7486;
  --line: #e1e6ee;
  --surface: #ffffff;
  --tint: #f4f7fb;
  --on-dark: #e6edf8;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 30, 63, 0.06), 0 12px 32px rgba(11, 30, 63, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* Encabezados de sección alineados con el contenido; sólo se limita la longitud de línea. */
.narrow > * { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Botones (objetivo táctil ≥ 44 px) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn--xl { min-height: 60px; padding: 0 40px; font-size: 1.15rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: #c9d3e3; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--accent { background: var(--teal); color: #05272b; }
.btn--accent:hover { background: #3fcdd6; color: #05272b; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow::after { content: " →"; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--teal-deep); margin-bottom: 0.8em; }
.eyebrow--light { color: var(--teal); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; content: ""; }
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after { position: absolute; top: 6px; }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
.site-nav.is-open, .no-js .site-nav { display: block; }
.no-js .nav-toggle { display: none; }
.no-js .site-nav { position: static; padding: 0 0 12px; }
.site-nav__list { list-style: none; display: grid; }
.site-nav__list a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--tint); }
.site-nav__list a:hover { color: var(--blue); }
.site-nav__demo { color: var(--blue) !important; }
.site-nav .btn { margin-top: 14px; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, rgba(20, 184, 196, 0.12), transparent 60%), linear-gradient(180deg, #f6f9fd, #ffffff 70%); }
.hero__stack { display: grid; gap: 44px; }
.hero__copy { max-width: 860px; }
.shot--hero { max-width: 1100px; width: 100%; justify-self: center; }
.hero__descriptor { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--blue-deep); margin-bottom: 0.6em; }
.hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36em; }
.badge-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.badge-row li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* ---------- Capturas en marco de navegador ---------- */
.shot { margin: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.shot__chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef2f8; border-bottom: 1px solid var(--line); }
.shot__chrome span { width: 10px; height: 10px; border-radius: 50%; background: #cfd7e4; }
.shot__chrome .shot__url { width: auto; height: auto; border-radius: 6px; background: #fff; margin-left: 10px; padding: 1px 10px; font-size: 0.72rem; color: var(--muted); }
.shot img { width: 100%; height: auto; }
.shot--narrow { max-width: 600px; justify-self: center; width: 100%; }
.shot figcaption { padding: 8px 14px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section__lead { font-size: 1.15rem; color: var(--ink-2); }
.problem-grid { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.problem-grid li { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #d8a640; border-radius: 12px; color: var(--ink-2); }
.problem-grid strong { color: var(--navy); }

.flow { display: grid; gap: 28px; margin-top: 28px; }
.flow__steps { list-style: none; display: grid; gap: 10px; counter-reset: paso; }
.flow__steps li { counter-increment: paso; position: relative; padding: 14px 16px 14px 56px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 650; color: var(--navy); }
.flow__steps li::before { content: counter(paso); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.85rem; display: grid; place-items: center; }
.flow__actors { list-style: none; display: grid; gap: 12px; }
.flow__actors li { padding: 18px 20px; border-radius: 12px; background: var(--navy); color: var(--on-dark); }
.flow__actors strong { color: var(--teal); }

.feature { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
.feature__copy p { color: var(--ink-2); }
.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0 22px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2305272b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.chip-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-grid li { padding: 10px 16px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--navy); }
.feature--note .feature__copy { padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #f0f6ff, #effbfc); border: 1px solid var(--line); }
.note { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--navy) !important; }

.role-grid, .card-grid { list-style: none; display: grid; gap: 14px; margin: 28px 0; }
.role-grid li, .card-grid li { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.role-grid h3, .card-grid h3 { margin-bottom: 0.3em; font-size: 1.1rem; }
.role-grid p, .card-grid p { margin: 0; color: var(--ink-2); }
.callout { margin-top: 8px; padding: 24px; border-radius: var(--radius); background: var(--navy); color: var(--on-dark); }
.callout h3 { color: #fff; margin-bottom: 0.3em; }
.callout p { margin: 0; }

.split { display: grid; gap: 28px; align-items: center; }
.kpi-list { list-style: none; display: grid; gap: 10px; }
.kpi-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; color: var(--navy); }

.brand-pair { display: grid; gap: 24px; margin-top: 28px; }

.compare { display: grid; gap: 16px; margin-top: 28px; }
.compare__col { padding: 26px; border-radius: var(--radius-lg); }
.compare__col ul { list-style: none; display: grid; gap: 10px; }
.compare__col--before { background: #fff; border: 1px dashed #c4ccd9; color: var(--ink-2); }
.compare__col--before li::before { content: "– "; color: var(--muted); }
.compare__col--after { background: var(--navy); color: var(--on-dark); }
.compare__col--after h3 { color: #fff; }
.compare__col--after li::before { content: "✓ "; color: var(--teal); font-weight: 700; }

.section--demo { background: var(--navy); color: var(--on-dark); }
.section--demo h2 { color: #fff; }
.section--demo .section__lead { color: var(--on-dark); }
.demo-roles { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0 32px; }
.demo-roles li { padding: 14px; text-align: center; border-radius: 12px; background: var(--navy-2); border: 1px solid #27406d; font-weight: 650; color: #fff; }
.demo-disclaimer { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 0.92rem; color: #b8c6de; }

.steps { list-style: none; display: grid; gap: 12px; margin: 28px 0; counter-reset: paso; }
.steps li { counter-increment: paso; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--teal); color: #05272b; font-weight: 800; }
.steps h3 { margin: 0; font-size: 1.05rem; }

.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 650; color: var(--navy); position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.section--cta { background: linear-gradient(160deg, var(--navy), #10305f); color: var(--on-dark); }
.section--cta h2 { color: #fff; }
.contact { display: grid; gap: 32px; }
.contact__channels { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.contact__channels a { color: #fff; font-weight: 650; }
.contact__pending { padding: 14px 16px; border-radius: 12px; border: 1px dashed #5a76a8; color: #c9d6ec; font-size: 0.95rem; }
.form { padding: 26px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.form h3 { margin-bottom: 0.8em; }
.form__grid { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 0.95rem; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #c9d3e3; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31, 94, 219, 0.2); outline-offset: 0; }
.form__privacy { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.form__status { margin: 12px 0 0; font-size: 0.95rem; font-weight: 600; color: var(--teal-deep); }
.form .btn { width: 100%; margin-top: 16px; }

/* ---------- Pie ---------- */
.site-footer { background: #081631; color: #b8c6de; padding: 48px 0 24px; font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 28px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer a { color: #e6edf8; text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.site-footer a:hover { color: var(--teal); }
.site-footer__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid #1f3256; font-size: 0.85rem; }

/* ---------- Páginas legales ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal-banner { padding: 16px 18px; margin: 18px 0 28px; border-radius: 12px; background: #fff8e6; border: 1px solid #eeddb0; color: #5c4108; font-weight: 600; }

/* ---------- Tablet / escritorio ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-roles { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .brand-pair { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { position: static; display: flex; align-items: center; gap: 22px; padding: 0; border: 0; background: none; }
  .site-nav__list { display: flex; gap: 22px; }
  .site-nav__list a { min-height: 44px; border: 0; font-size: 0.97rem; }
  .site-nav .btn { margin: 0; width: auto; }
  .hero { padding: 72px 0 88px; }
  .hero__copy { margin-inline: auto; text-align: center; }
  .hero__copy .cta-row, .hero__copy .badge-row { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .hero__stack { gap: 56px; }
  .section { padding: 96px 0; }
  .problem-grid { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .flow__steps { grid-template-columns: repeat(4, 1fr); }
  .feature { grid-template-columns: 1fr 1.4fr; gap: 56px; margin-top: 88px; }
  .feature--reverse .feature__copy { order: 2; }
  .feature--text, .feature--note { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .demo-roles { grid-template-columns: repeat(6, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .contact { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.logo-center { margin-inline: auto; }
.cta-row--center { justify-content: center; }

/* ---------- Marca: isotipo + nombre en texto real (el SVG con <text> depende de las fuentes del sistema) ---------- */
.brand { text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; line-height: 1; color: var(--blue); white-space: nowrap; }
.wordmark img { width: 36px; height: 36px; }
.wordmark__text { font-weight: 400; }
.wordmark__text b { font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.wordmark--light { color: #7fe3ea; }
.wordmark--light .wordmark__text b { color: #fff; }
.wordmark--center { margin-bottom: 8px; }
.site-footer .wordmark { margin-bottom: 14px; }
@media (min-width: 1000px) {
  .feature--note { grid-template-columns: 1fr; }
  .feature--note .feature__copy { max-width: 820px; width: 100%; justify-self: center; }
}
.form .contact__pending { color: var(--ink-2); border-color: #c9d3e3; }
.narrow.center > * { margin-inline: auto; }
.legal-pending { padding: 1px 6px; border-radius: 6px; background: #fff8e6; border: 1px dashed #d8a640; color: #5c4108; font-weight: 600; }
