/* Portada de Origena (ORIGENA-2026-WEB-REDISENO-001).
   Mismos tokens oscuros que la app real y que assets/pages.css. Sin dependencias: una sola hoja. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #0E1116;
  --raised: #151A21;
  --ink: #E6EAF0;
  --ink-soft: #B4BCC9;
  --slate: #8B95A5;
  --line: #2B313C;
  --line-strong: #3B4455;
  --signal: #4338CA;
  --signal-strong: #8B83F0;
  --signal-soft: rgba(67, 56, 202, 0.16);
  --ok: #4ADE80;
  --warn: #FBBF24;
  --danger: #F87171;
  --whatsapp: #25D366;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gap: clamp(72px, 10vw, 128px);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal-strong); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--slate); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--signal-strong); text-decoration: underline; text-underline-offset: 3px; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 17, 22, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
details.access { position: relative; }
details.access summary { list-style: none; cursor: pointer; font-size: 15px; color: var(--ink-soft); padding: 8px 4px; }
details.access summary::-webkit-details-marker { display: none; }
details.access summary:hover { color: var(--ink); }
.access-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.access-panel strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* Secciones */
section { padding: var(--gap) 0; border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-strong); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 14px; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.note { font-size: 14px; color: var(--slate); }

/* Hero */
.hero { border-top: 0; padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); max-width: 17ch; margin: 22px auto 0; letter-spacing: -0.035em; }
.hero .lede { margin: 26px auto 0; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.demo-link { margin-top: 18px; font-size: 15px; }
.hero-shot { margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1040px; padding: 0 24px; }
.frame { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--raised); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hero-shot .frame { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); border-bottom: 0; border-radius: 14px 14px 0 0; }
.hero-shot figcaption, .shot figcaption { margin-top: 14px; font-size: 14px; color: var(--slate); text-align: center; }

/* Producto: pestañas con capturas */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.tab:hover { border-color: var(--line-strong); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.shot figcaption { text-align: left; max-width: 70ch; font-size: 16px; color: var(--ink-soft); }
.shot figcaption strong { color: var(--ink); }

/* Flujo conectado + recorrido */
.flow { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.steps { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; list-style: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.step-btn { width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px; padding: 13px 16px; cursor: pointer; display: flex; gap: 14px; align-items: baseline; color: var(--slate); font-size: 17px; }
.step-btn .n { font-family: var(--mono); font-size: 13px; }
.step-btn:hover { color: var(--ink); }
.step-btn[aria-selected="true"] { color: var(--ink); border-left-color: var(--signal-strong); font-weight: 600; }
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 36px); min-height: 380px; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(22px, 2.4vw, 28px); }
.panel > p { margin-top: 12px; color: var(--ink-soft); max-width: 56ch; }
.who { display: inline-block; margin-top: 18px; font-size: 13px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.who.manual { color: var(--warn); border-color: rgba(251,191,36,.45); }
.who.link { color: var(--signal-strong); border-color: rgba(139,131,240,.5); text-decoration: none; }
dl.data { margin-top: 24px; border-top: 1px solid var(--line); }
dl.data div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
dl.data dt { color: var(--slate); }
dl.data dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
dd .st { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--signal-soft); color: var(--signal-strong); margin-left: 8px; }
dd .st.warn { background: rgba(251,191,36,.14); color: var(--warn); }
dd .st.ok { background: rgba(74,222,128,.12); color: var(--ok); }
.demo-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--slate); }
.demo-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.pager { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }
html:not(.js) .pager, html:not(.js) .steps { display: none; }
html:not(.js) .panel { margin-bottom: 16px; min-height: 0; }

/* Filas: problema → capacidad (sin tarjetas) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px clamp(24px, 5vw, 72px); padding: 28px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.015em; }
.row p { color: var(--ink-soft); }
.row .cap { margin-top: 8px; font-size: 14px; color: var(--slate); }
.row a.link { font-size: 15px; display: inline-block; margin-top: 10px; }

/* Crecimiento */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.three .n { font-family: var(--mono); font-size: 13px; color: var(--signal-strong); }
.three h3 { font-size: 24px; margin: 10px 0; letter-spacing: -0.015em; }
.three p { color: var(--ink-soft); }
details.tech { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; }
details.tech summary { cursor: pointer; font-weight: 600; font-size: 16px; }
details.tech p { margin-top: 14px; color: var(--ink-soft); max-width: 70ch; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }

/* Precio */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
ol.process { list-style: none; counter-reset: p; border-top: 1px solid var(--line); }
ol.process li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
ol.process li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--signal-strong); padding-top: 5px; }
ol.process strong { display: block; font-size: 18px; }
ol.process span { color: var(--ink-soft); font-size: 16px; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 36px 24px 0; color: var(--ink-soft); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-side .btn { margin-top: 28px; }
.contact-side ul { list-style: none; margin-top: 28px; color: var(--ink-soft); font-size: 16px; }
.contact-side li { padding: 10px 0; border-top: 1px solid var(--line); }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--signal-strong); outline-offset: 1px; border-color: transparent; }
.field[data-invalid] input { border-color: var(--danger); }
.err { font-size: 14px; color: var(--danger); min-height: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
form details summary { cursor: pointer; font-weight: 600; font-size: 15px; }
form details[open] summary { margin-bottom: 16px; }
form details .inner { display: grid; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 16px 18px; border-radius: 12px; font-size: 16px; border: 1px solid var(--line-strong); }
.status[hidden] { display: none; }
.status.ok { border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.08); }
.status.warn { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.08); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--whatsapp); color: #06210f; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.wa-float svg { width: 28px; height: 28px; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--ink-soft); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 13px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; font-weight: 500; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .b { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }

/* Revelado discreto */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-tools .btn { display: none; }
  .flow, .price-grid, .contact { grid-template-columns: 1fr; }
  .steps { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .step-btn { width: auto; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 12px 14px; scroll-snap-align: start; }
  .step-btn[aria-selected="true"] { border-bottom-color: var(--signal-strong); }
  .row { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .access-panel { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .two { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  dl.data div { flex-direction: column; gap: 2px; }
  dl.data dd { text-align: left; }
}
