/* Land Networking · Wabby — hoja de estilos única */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jbmono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jbmono-500.woff2") format("woff2"); }

:root {
  --navy: #0E2A4F;
  --orange: #F26522;
  --orange-dark: #D9531A;
  --mid: #2E4A6B;
  --green: #7DB343;
  --slate: #6B8BA4;
  --light: #F2F4F8;
  --white: #FFFFFF;
  --line: #DDE3EB;
  --text2: #4A5568;
  --shadow: 0 1px 4px rgba(14, 42, 79, .12);
  --shadow-lg: 0 12px 40px rgba(14, 42, 79, .14);
  --radius: 8px;
  --wrap: 1180px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, svg { max-width: 100%; display: block; }
a { color: var(--mid); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.muted { color: var(--text2); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

section { padding: 88px 0; }
@media (max-width: 719px) { section { padding: 60px 0; } }
.alt { background: var(--light); }
.dark { background: var(--navy); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .muted { color: #C9D5E3; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--text2); font-size: 1.08em; }
.dark .section-head p { color: #C9D5E3; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; display: block; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans); padding: 15px 22px; border-radius: 8px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--mid); color: var(--navy); }
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.link-arrow { font-weight: 600; text-decoration: none; color: inherit; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; }
.logo small { display: block; font: 500 .68rem/1 var(--mono); color: var(--slate); letter-spacing: .04em; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--navy); font-size: .93rem; font-weight: 500; padding: 8px 10px; border-radius: 6px; }
.main-nav a:hover { background: var(--light); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.lang { display: flex; align-items: center; font: 500 .85rem/1 var(--mono); margin: 0 6px; }
.lang a, .lang span { padding: 6px 6px; text-decoration: none; color: var(--slate); }
.lang [aria-current="true"] { color: var(--navy); font-weight: 700; }
.lang .sep { padding: 0; color: var(--line); }
.header-cta { padding: 11px 16px; font-size: .92rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { margin: auto; }

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 16px 24px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 8px; font-size: 1.02rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--navy); padding-left: 14px; }
  .lang { margin: 10px 0; }
  .header-cta { margin-top: 8px; }
}

/* ---------- Chip de fuente ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  background: var(--light); border: 1px solid var(--line); border-radius: 6px;
  font: 400 12px/1 var(--mono); color: var(--mid); white-space: nowrap; position: relative; vertical-align: middle;
  text-decoration: none;
}
.chip svg { width: 12px; height: 12px; flex: none; }
.chip[data-tip]:hover::after, .chip[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20;
  background: var(--navy); color: #fff; font: 400 12px/1.4 var(--sans); padding: 7px 10px; border-radius: 6px;
  white-space: normal; width: max-content; max-width: 240px; box-shadow: var(--shadow-lg);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dark .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #DCE6F1; }
.chip-line { font: 400 .82rem/1.5 var(--mono); color: var(--mid); background: var(--light); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; display: inline-block; }

/* ---------- Bocadillo de Wabby ---------- */
.bubble {
  position: relative; background: var(--green); color: var(--navy); font-weight: 600;
  border-radius: 14px; padding: 14px 18px; line-height: 1.4; max-width: 420px;
}
.bubble::before { content: ""; position: absolute; left: -9px; top: 18px; border: 9px solid transparent; border-left: 0; border-right-color: var(--green); }
.bubble.tail-right::before { left: auto; right: -9px; border-right: 0; border-left: 9px solid var(--green); }
.bubble.tail-bottom::before { left: 26px; top: auto; bottom: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--green); }

/* ---------- Tarjeta de propuesta ---------- */
.proposal { border: 2px solid var(--green); border-radius: 10px; background: #fff; padding: 14px 16px; }
.proposal strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green); margin-bottom: 4px; }
.proposal p { margin: 0 0 12px; font-size: .95rem; font-weight: 500; }
.proposal .actions { display: flex; gap: 8px; position: relative; }
.proposal button { font: 600 .85rem/1 var(--sans); padding: 9px 14px; border-radius: 6px; cursor: pointer; }
.proposal .ok { background: var(--orange); border: 2px solid var(--orange); color: #fff; }
.proposal .no { background: #fff; border: 2px solid var(--line); color: var(--text2); }
.proposal .tip { position: absolute; left: 0; bottom: calc(100% + 8px); background: var(--navy); color: #fff; font-size: .8rem; line-height: 1.4; padding: 8px 10px; border-radius: 6px; max-width: 260px; display: none; z-index: 5; }
.proposal .tip.show { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; min-height: min(85vh, 860px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center; }
.hero-text p.lead { font-size: 1.2em; color: var(--text2); max-width: 560px; }
.hero-chips { font: 400 .8rem/1.6 var(--mono); color: var(--mid); }
.hero-chips span + span::before { content: "·"; margin: 0 8px; color: var(--slate); }
@media (max-width: 959px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Visual del hero: HMI + chat */
.plant-talk { position: relative; width: 100%; max-width: 560px; margin-left: auto; display: flex; flex-direction: column; }
.plant-talk .hmi { position: relative; width: 88%; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.plant-talk .hmi svg { width: 100%; height: 100%; }
.plant-talk .chat {
  position: relative; z-index: 2; align-self: flex-end; margin-top: -90px; width: min(360px, 68%); background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: .84rem; line-height: 1.45;
}
.chat-top { display: flex; align-items: center; gap: 8px; font: 500 .72rem/1 var(--mono); color: var(--slate); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.chat-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.msg { opacity: 0; transform: translateY(6px); }
.msg-user { align-self: flex-end; background: var(--light); border-radius: 12px 12px 2px 12px; padding: 8px 11px; max-width: 88%; }
.msg-bot { display: flex; gap: 8px; align-items: flex-start; }
.msg-bot .avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--light); border: 2px solid var(--orange); overflow: hidden; }
.msg-bot .txt { background: #EEF6E6; border-radius: 2px 12px 12px 12px; padding: 8px 11px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 40px; }
.msg-chips .chip { height: 22px; font-size: 11px; }
.msg-prop { margin-left: 40px; }
.msg-prop .proposal { padding: 10px 12px; }
.msg-prop .proposal p { font-size: .84rem; margin-bottom: 9px; }
.msg-prop .proposal button { padding: 7px 11px; font-size: .78rem; }
.plant-talk .wabby-peek { position: absolute; left: 4%; bottom: 40px; height: 180px; width: auto; z-index: 1; }
.replay { align-self: flex-end; margin-top: 4px; background: none; border: 0; color: var(--slate); font: 500 .78rem/1 var(--mono); cursor: pointer; padding: 6px; opacity: 0; transition: opacity .3s; }
.plant-talk.done .replay { opacity: 1; }
.plant-talk.play .m1 { animation: msgIn .45s ease-out 0s forwards; }
.plant-talk.play .m2 { animation: msgIn .45s ease-out 1.2s forwards; }
.plant-talk.play .m3 { animation: msgIn .45s ease-out 2.8s forwards; }
.plant-talk.play .m4 { animation: msgIn .45s ease-out 3.6s forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
@media (max-width: 559px) {
  .plant-talk { gap: 14px; }
  .plant-talk .hmi { width: 100%; }
  .plant-talk .chat { width: 100%; margin-top: 0; }
  .plant-talk .wabby-peek { display: none; }
}

.avatar img { width: 100%; height: 100%; display: block; }

/* ---------- Franja de confianza ---------- */
.trust { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.trust p { margin: 0; color: var(--text2); font-size: .95rem; max-width: 460px; }
.trust-marks { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.trust-marks span { font: 600 .95rem/32px var(--sans); color: #8A9BB0; letter-spacing: .01em; height: 32px; }
.trust-marks span.m { font-family: var(--mono); font-weight: 500; }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1023px) { .g4, .g6 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) { .g2, .g3, .g4, .g6 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text2); margin-bottom: .8em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--mid); transform: translateY(-2px); }
a.card .chip { margin-top: auto; align-self: flex-start; }

.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--mid); color: #fff; display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.icon-circle svg { width: 24px; height: 24px; }
.icon-circle.accent { background: var(--orange); }
.icon-circle.green { background: var(--green); }

.problem-num { font: 700 3.2rem/1 var(--sans); color: var(--orange); letter-spacing: -0.03em; margin-bottom: 14px; display: block; }
.problem h3 { font-size: 1.3rem; }
.problem p { color: var(--text2); }

.pillar h3 { font-size: 1.08rem; }
.pillar p { color: var(--text2); font-size: .97rem; }

/* ---------- Banda de origen ---------- */
.origin { position: relative; overflow: hidden; }
.origin .bg { position: absolute; inset: 0; opacity: .2; }
.origin .bg svg { width: 100%; height: 100%; }
.origin .wrap { position: relative; }
.origin h2 { max-width: 760px; }
.origin p { max-width: 760px; font-size: 1.15em; color: #DCE6F1; }
.origin a { color: #fff; }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 820px; margin: 0 auto .4em; }
.final-cta p { color: var(--text2); max-width: 640px; margin: 0 auto 28px; font-size: 1.1em; }

/* ---------- Esquemas ---------- */
.diagram { background: var(--light); border-radius: 16px; padding: 28px; }
.alt .diagram { background: #fff; }
.diagram svg { width: 100%; height: auto; }
.diagram-foot { text-align: center; color: var(--text2); margin: 18px 0 0; font-size: .97rem; }
.diagram .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram .scroll-x svg { min-width: 760px; }
.scroll-hint { display: none; font: 400 .75rem/1 var(--mono); color: var(--slate); margin-top: 10px; text-align: right; }
@media (max-width: 799px) { .scroll-hint { display: block; } .diagram { padding: 16px; } }

svg .bx { fill: #fff; stroke: var(--line); stroke-width: 1; filter: drop-shadow(0 1px 2px rgba(14,42,79,.12)); }
svg .bx-navy { fill: var(--navy); }
svg .bx-orange { fill: var(--orange); }
svg .bx-light { fill: var(--light); stroke: var(--line); }
svg .bx-chip { fill: var(--light); stroke: var(--line); }
svg .t-title { font: 600 15px var(--sans); fill: var(--navy); }
svg .t-big { font: 700 20px var(--sans); fill: var(--navy); }
svg .t-desc { font: 400 13px var(--sans); fill: var(--text2); }
svg .t-mono { font: 400 12px var(--mono); fill: var(--mid); }
svg .t-white { fill: #fff; }
svg .t-mid { fill: var(--mid); }
svg .t-orange { fill: var(--orange); }
svg .ln { stroke: var(--slate); stroke-width: 1.25; fill: none; }
svg .ln-o { stroke: var(--orange); stroke-width: 2; fill: none; }
svg .ln-d { stroke: var(--slate); stroke-width: 1.25; fill: none; stroke-dasharray: 4 4; }
svg .ah { fill: var(--slate); }
svg .ah-o { fill: var(--orange); }
svg .flow-dot { fill: var(--orange); }
svg.lg .t-title { font-size: 19px; }
svg.lg .t-big { font-size: 26px; }
svg.lg .t-mono { font-size: 14.5px; }
svg.lg .t-desc { font-size: 16px; }

/* Animación por capas al entrar en pantalla */
.reveal [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .3s ease-out, transform .3s ease-out; }
.reveal.in [data-step] { opacity: 1; transform: none; }
.reveal.in [data-step="1"] { transition-delay: 0s; }
.reveal.in [data-step="2"] { transition-delay: .3s; }
.reveal.in [data-step="3"] { transition-delay: .6s; }
.reveal.in [data-step="4"] { transition-delay: .9s; }
.reveal.in [data-step="5"] { transition-delay: 1.2s; }
.reveal.in [data-step="6"] { transition-delay: 1.5s; }
.reveal.in [data-step="7"] { transition-delay: 1.8s; }
.reveal.in [data-step="8"] { transition-delay: 2.1s; }
.flow-dot { opacity: 0; }
.reveal.in.live .flow-dot { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal [data-step] { opacity: 1; transform: none; transition: none; }
  .flow-dot { display: none; }
  .msg { opacity: 1; transform: none; }
  .plant-talk.play .msg { animation: none; }
  html { scroll-behavior: auto; }
}

/* Capas de Wabby */
.layers { display: flex; flex-direction: column; gap: 12px; }
.layer { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; transition: border-color .3s, box-shadow .3s; }
.layer h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.layer h3 .n { font: 500 .78rem/1 var(--mono); color: var(--slate); }
.layer.lit { border-color: var(--mid); box-shadow: inset 4px 0 0 var(--navy), var(--shadow); }
@media (max-width: 719px) { .layer { grid-template-columns: 1fr; gap: 10px; } }

/* Diagrama radial interactivo */
.radial-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
.radial-info { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; display: grid; grid-template-columns: 140px 1fr auto; gap: 6px 20px; align-items: center; min-height: 92px; }
.radial-info .eyebrow, .radial-info h3, .radial-info p { margin: 0; }
.radial-info .eyebrow { grid-column: 1 / -1; }
.radial-info .chip { white-space: normal; height: auto; padding: 4px 8px; line-height: 1.4; }
.radial-info h3 { font-size: 1.05rem; }
.radial-info p { color: var(--text2); font-size: .94rem; margin-bottom: 10px; }
svg .hot { cursor: pointer; }
svg .hot:hover .bx, svg .hot.on .bx, svg .hot:focus .bx { stroke: var(--mid); stroke-width: 2; }
svg .hot:focus { outline: none; }
@media (max-width: 719px) { .radial-info { grid-template-columns: 1fr; } }

/* Comparativa chatbot / asistente */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.vs > div { padding: 28px; }
.vs .col-a { background: var(--light); }
.vs .col-b { background: #fff; box-shadow: inset 0 0 0 2px var(--orange); border-radius: 0 14px 14px 0; }
.vs h3 { font-size: 1.15rem; margin-bottom: 18px; }
.vs ul { list-style: none; margin: 0; padding: 0; }
.vs li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.vs li:first-child { border-top: 0; }
.vs .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.vs .x { background: #E2E7EE; color: var(--text2); }
.vs .ok { background: var(--green); color: #fff; }
@media (max-width: 719px) { .vs { grid-template-columns: 1fr; } .vs .col-b { border-radius: 0 0 14px 14px; } }

/* Tablas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
table.t th, table.t td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t thead th { background: var(--light); font-weight: 600; font-size: .9rem; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t td:first-child { color: var(--text2); font-weight: 500; }

/* Modelos */
.model-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.model-chips .chip { height: 32px; font-size: 13px; padding: 0 12px; }

/* Vídeos de demo */
.demo { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.demo .thumb { aspect-ratio: 16/9; background: var(--navy); position: relative; display: grid; place-items: center; }
.demo .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo .thumb .chip { position: absolute; left: 12px; bottom: 12px; }
.demo .thumb .soon { position: relative; font: 500 .75rem/1 var(--mono); color: #fff; background: rgba(14,42,79,.75); border: 1px solid rgba(255,255,255,.25); padding: 7px 10px; border-radius: 6px; }
.demo .meta { padding: 16px 18px; }
.demo .meta h3 { font-size: 1rem; margin: 0 0 4px; }
.demo .meta p { margin: 0; color: var(--text2); font-size: .88rem; }

/* Cómo funciona: índice lateral */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: .92rem; }
.toc strong { display: block; font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--text2); }
.toc a:hover { color: var(--navy); }
.toc a.on { color: var(--navy); border-left-color: var(--navy); font-weight: 600; }
.doc-body > section { padding: 0 0 80px; }
.doc-body > section:last-child { padding-bottom: 0; }
.doc-body p { max-width: 720px; }
.prose-lg { font-size: 1.12em; }
.pull { font-size: 1.3rem; font-weight: 600; line-height: 1.35; border-left: 4px solid var(--navy); padding: 4px 0 4px 20px; margin: 28px 0; max-width: 680px; }
@media (max-width: 959px) { .doc { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.steps4 { counter-reset: s; }
.step-card .num { font: 700 2.6rem/1 var(--sans); color: var(--navy); opacity: .9; display: block; margin-bottom: 10px; letter-spacing: -0.03em; }
.step-card p { color: var(--text2); font-size: .97rem; }
.step-card .chip { margin-top: 6px; }

.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.chart-card h3 { font-size: 1rem; margin-bottom: 14px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.checks .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.checks .ck svg { width: 14px; height: 14px; }

/* Casos de uso */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 64px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case dl { margin: 0; display: grid; gap: 16px; }
.case dt { font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 6px; }
.case dd { margin: 0; }
.case .not { background: var(--light); border-left: 4px solid var(--navy); border-radius: 0 8px 8px 0; padding: 12px 16px; font-weight: 600; }
.case .q-row { display: flex; gap: 12px; align-items: center; }
.case .q-row .avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--orange); background: var(--light); overflow: hidden; flex: none; }
.case-visual { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 959px) { .case { grid-template-columns: 1fr; gap: 28px; } .case-visual { position: static; } }

.mock { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .88rem; }
.mock-bar { background: var(--navy); color: #C9D5E3; font: 500 .72rem/1 var(--mono); padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.mock .row b { font-weight: 600; }
.mock .tag { font: 500 .72rem/1 var(--mono); padding: 4px 7px; border-radius: 4px; background: var(--light); color: var(--mid); white-space: nowrap; }
.mock .tag.hi { background: var(--navy); color: #fff; }
.mock .answer { background: #EEF6E6; border-radius: 10px; padding: 12px 14px; line-height: 1.5; }

.sector h3 { font-size: 1rem; }
.sector .sys { font: 400 .78rem/1.4 var(--mono); color: var(--slate); margin-bottom: 10px; display: block; }
.sector .ex { font-size: .92rem; color: var(--navy); font-style: italic; }

.page-hero { padding: 72px 0 56px; }
.page-hero p.lead { font-size: 1.2em; color: var(--text2); max-width: 760px; }
.photo-band { height: 320px; border-radius: 16px; overflow: hidden; margin-top: 40px; position: relative; }
.photo-band svg { width: 100%; height: 100%; }
@media (max-width: 719px) { .photo-band { height: 200px; } }

/* Reglas */
.rules { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.rules li { list-style: none; padding: 18px 22px; border-top: 1px solid var(--line); display: flex; gap: 16px; font-weight: 500; }
.rules li:first-child { border-top: 0; }
.rules li .n { font: 500 .8rem/1.7 var(--mono); color: var(--slate); flex: none; }
.rules { padding: 0; margin: 0; }

.deploy h3 { display: flex; align-items: center; gap: 10px; }
.deploy p { color: var(--text2); font-size: .96rem; }

/* Seguridad */
.aside-note { background: var(--light); border-radius: 12px; padding: 24px 26px; border-left: 4px solid var(--slate); }
.aside-note h3 { font-size: 1rem; }
.aside-note p { color: var(--text2); margin: 0; font-size: .97rem; }
.compliance { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compliance li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.compliance li svg { flex: none; width: 18px; height: 18px; color: var(--mid); margin-top: 3px; }
@media (max-width: 719px) { .compliance { grid-template-columns: 1fr; } }

/* Piloto */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 719px) { .two-col { grid-template-columns: 1fr; } }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 10px 0 10px 30px; border-top: 1px solid var(--line); position: relative; }
.list-clean li:first-child { border-top: 0; }
.list-clean li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.form-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 959px) { .form-wrap { grid-template-columns: 1fr; } }
form.lead { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 599px) { form.lead { grid-template-columns: 1fr; padding: 20px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--navy); padding: 12px 14px; border: 1px solid #C6D0DC; border-radius: 8px; background: #fff; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mid); box-shadow: 0 0 0 3px rgba(46,74,107,.18); }
.field.highlight label { color: var(--navy); }
.field.highlight textarea { border-color: var(--mid); background: #FBFCFE; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text2); grid-column: 1 / -1; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; display: none; padding: 14px 16px; border-radius: 8px; }
.form-status.ok { display: block; background: #EEF6E6; color: #3D6B17; }
.form-status.err { display: block; background: #FDECEA; color: #9B2C1F; }
.form-wabby { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.form-wabby .bubble { margin-left: 120px; }
.form-wabby img, .form-wabby svg.wabby { width: 220px; height: auto; }
@media (max-width: 959px) { .form-wabby { flex-direction: row; align-items: center; } .form-wabby .bubble { margin: 0; } .form-wabby img, .form-wabby svg.wabby { width: 120px; } }

/* Nosotros */
.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 170px 1fr; gap: 28px; position: relative; padding: 0 0 36px; }
.tl-item::before { content: ""; position: absolute; left: 184px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-level { text-align: right; padding-top: 2px; }
.tl-level b { display: block; font-size: 1rem; }
.tl-level span { font: 400 .76rem/1.4 var(--mono); color: var(--slate); }
.tl-body { position: relative; padding-left: 28px; max-width: 640px; }
.tl-body::before { content: ""; position: absolute; left: -5px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--mid); }
.tl-item.now .tl-body::before { border-color: var(--orange); background: var(--orange); }
.tl-bar { height: 8px; border-radius: 4px; background: var(--mid); margin-bottom: 12px; opacity: .85; }
.tl-item.now .tl-bar { background: var(--orange); }
@media (max-width: 719px) {
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 26px; }
  .tl-item::before { left: 5px; }
  .tl-level { text-align: left; }
  .tl-body { padding-left: 0; }
  .tl-body::before { left: -27px; }
}
.principles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principles3 p { font-size: 1.35rem; font-weight: 700; margin: 0; line-height: 1.25; }
@media (max-width: 719px) { .principles3 { grid-template-columns: 1fr; } }
.team-card .ph { aspect-ratio: 4/5; background: var(--light); border-radius: 10px; margin-bottom: 14px; display: grid; place-items: center; color: var(--slate); font: 400 .78rem/1.4 var(--mono); text-align: center; padding: 16px; border: 1px dashed #C6D0DC; }

/* Recursos */
.res-item { display: flex; gap: 16px; align-items: flex-start; }
.res-item .icon-circle { margin: 0; }
.res-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.res-item p { margin: 0 0 8px; }
.badge { display: inline-block; font: 500 .72rem/1 var(--mono); padding: 5px 8px; border-radius: 4px; background: var(--light); color: var(--slate); border: 1px solid var(--line); }
.gloss { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.gloss div { padding: 16px 0; border-top: 1px solid var(--line); }
.gloss dt { font: 500 .95rem/1.3 var(--mono); color: var(--navy); margin-bottom: 4px; }
.gloss dd { margin: 0; color: var(--text2); font-size: .96rem; }
@media (max-width: 719px) { .gloss { grid-template-columns: 1fr; } }

/* Legal */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text2); }
.pending { background: #FFF6E5; border: 1px dashed #E8B04A; border-radius: 4px; padding: 1px 6px; font-family: var(--mono); font-size: .85em; color: #7A5A12; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: #C9D5E3; padding: 64px 0 32px; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo small { color: #8FA6BF; }
.site-footer h4 { color: #fff; font-size: .8rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-tag { color: #fff; font-weight: 600; max-width: 320px; }
.footer-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 .8rem/1.5 var(--mono); color: #8FA6BF; }

/* ---------- Widget de Wabby ---------- */
.wb-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 6px 16px 6px 6px; box-shadow: var(--shadow-lg);
  cursor: pointer; font: 600 .9rem/1 var(--sans); color: var(--navy);
}
.wb-launch .avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--orange); background: var(--light); overflow: hidden; }
@media (max-width: 559px) { .wb-launch span.lbl { display: none; } .wb-launch { padding: 6px; } }
.wb-panel {
  position: fixed; right: 20px; bottom: 86px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(14,42,79,.25);
  display: none; flex-direction: column; overflow: hidden;
}
@media (max-width: 559px) { .wb-panel { right: 16px; } }
.wb-panel.open { display: flex; }
.wb-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy); color: #fff; }
.wb-head .avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--orange); background: var(--light); overflow: hidden; flex: none; }
.wb-head b { display: block; font-size: .95rem; }
.wb-head small { font: 400 .7rem/1.2 var(--mono); color: #AFC2D6; }
.wb-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.wb-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; line-height: 1.5; }
.wb-log .u { align-self: flex-end; background: var(--light); border-radius: 12px 12px 2px 12px; padding: 8px 12px; max-width: 85%; }
.wb-log .b { background: #EEF6E6; border-radius: 2px 12px 12px 12px; padding: 10px 12px; max-width: 92%; }
.wb-log .b .src { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wb-log .b .src .chip { height: 22px; font-size: 11px; }
.wb-log .b a.btn { padding: 9px 12px; font-size: .82rem; margin-top: 8px; }
.wb-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.wb-form input { flex: 1; font: 400 .95rem var(--sans); padding: 10px 12px; border: 1px solid #C6D0DC; border-radius: 8px; min-width: 0; }
.wb-form button { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 0 14px; font: 600 .88rem var(--sans); cursor: pointer; }
.wb-note { font: 400 .68rem/1.4 var(--mono); color: var(--slate); padding: 0 12px 10px; }

/* Utilidades */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt2 { margin-top: 2rem; } .mt3 { margin-top: 3rem; }
.maxw { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Los elementos de grid no deben ensancharse por los esquemas con scroll propio */
.grid > *, .radial-wrap > *, .doc > *, .doc-body, .two-col > *, .form-wrap > *, .case > * { min-width: 0; }
.layer .chip, .case .chip { white-space: normal; height: auto; min-height: 24px; padding: 4px 8px; line-height: 1.35; }
