/* Open Sans (manual de marca Linaje), servida desde el propio sitio. Licencia SIL OFL 1.1: assets/fonts/OFL-open-sans.txt */
@font-face{font-family:"Open Sans";font-style:normal;font-display:swap;font-weight:300 800;src:url("assets/fonts/open-sans-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Open Sans";font-style:normal;font-display:swap;font-weight:300 800;src:url("assets/fonts/open-sans-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
.ct-legal{font-size:.85rem;margin-top:.75rem;opacity:.85}
/* Founder Effect · sitio estático
   Paleta Linaje: Morado #432B53, Amarillo #F4BD22, Marfil #F8F6EF,
   Lavanda #EDE4EF, Tinta #302336, Azul Río #255A93.
   Reglas de marca: la firma va sobre marfil; amarillo para acentos y nodos,
   nunca como texto sobre marfil; nada morado directo sobre azul. */

:root {
  --morado: #432B53;
  --amarillo: #F4BD22;
  --marfil: #F8F6EF;
  --lavanda: #EDE4EF;
  --tinta: #302336;
  --rio: #255A93;
  --tinta-2: #3B2A45;
  --muted: #5E4E68;
  --line: #DCD3E0;
  --sans: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
  --gut: max(5vw, 16px);
  --r: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--marfil); color: var(--tinta); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amarillo); color: var(--morado); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin-inline: auto; }
.band { padding: clamp(72px, 9vw, 132px) max(var(--gut), env(safe-area-inset-right, 0px)) clamp(72px, 9vw, 132px) max(var(--gut), env(safe-area-inset-left, 0px)); position: relative; }
.paper { background: var(--marfil); }
.night { background: var(--tinta); color: var(--marfil); }
.river { background: var(--rio); color: var(--marfil); }
.lav { background: var(--lavanda); }
.plum { background: var(--morado); color: var(--marfil); overflow: hidden; }

/* ---------- Botones ---------- */
.btn { --bg: var(--amarillo); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; position: relative; transition: transform .2s ease, background-color .2s ease, box-shadow .25s ease; }
.btn-sun { background: var(--amarillo); color: var(--morado); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(244, 189, 34, .22); }
.btn-sun:active { transform: translateY(0); }
.btn-ghost { border-color: rgba(248, 246, 239, .55); color: var(--marfil); }
.btn-ghost:hover { border-color: var(--marfil); background: rgba(248, 246, 239, .08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.spore-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--amarillo); pointer-events: none; animation: sporeOut .7s ease-out forwards; }
@keyframes sporeOut { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; padding: calc(env(safe-area-inset-top, 0px) + 14px) max(var(--gut), env(safe-area-inset-right, 0px)) 14px max(var(--gut), env(safe-area-inset-left, 0px)); transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease; }
.nav.scrolled { background: rgba(48, 35, 54, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-bottom: 8px; box-shadow: 0 1px 0 rgba(237, 228, 239, .1); }
.nav-in { max-width: 1240px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; background: var(--marfil); border-radius: 12px; padding: 10px 16px; text-decoration: none; flex: none; }
.brand .logo { width: clamp(168px, 18vw, 214px); height: auto; overflow: visible; }
.nav-menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-menu a:not(.btn) { color: var(--marfil); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; background: linear-gradient(var(--amarillo), var(--amarillo)) left bottom / 0 2px no-repeat; transition: background-size .3s ease; }
.nav-menu a:not(.btn):hover { background-size: 100% 2px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--marfil); cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--morado); transition: transform .3s ease; }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* El símbolo se dibuja al cargar: misma figura final que el SVG maestro */
.js .nav .logo-symbol path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6, .05, .25, 1) forwards; }
.js .nav .logo-symbol path:nth-child(2) { animation-delay: .15s; }
.js .nav .logo-symbol path:nth-child(3) { animation-delay: .35s; }
.js .nav .logo-symbol path:nth-child(4) { animation-delay: .45s; }
.js .nav .logo-symbol path:nth-child(5) { animation-delay: .6s; }
.js .nav .logo-dot { transform-box: fill-box; transform-origin: center; animation: dotIn .5s .05s both cubic-bezier(.3, 1.6, .5, 1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Bosque: descenso bajo tierra ---------- */
.descent { position: relative; height: 340vh; background: var(--tinta); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #1E1612; }
.world { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.forest { position: relative; overflow: hidden; }
.forest-img { position: absolute; max-width: none; transform-origin: var(--ox, 30%) var(--oy, 88%); will-change: transform; }
.forest::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 18% 40%, rgba(30, 20, 34, .55), rgba(30, 20, 34, 0) 70%), linear-gradient(180deg, rgba(30, 20, 34, .78) 0%, rgba(30, 20, 34, .38) 34%, rgba(30, 20, 34, 0) 58%), linear-gradient(0deg, rgba(30, 22, 18, .55) 0%, rgba(30, 22, 18, 0) 16%); }
.sun-glow { position: absolute; left: var(--sx, 60%); top: var(--sy, 15%); width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 214, .45) 0%, rgba(255, 238, 190, .12) 30%, rgba(255, 238, 190, 0) 62%); mix-blend-mode: screen; pointer-events: none; animation: sunBreathe 7s ease-in-out infinite; }
@keyframes sunBreathe { 50% { opacity: .55; transform: scale(1.06); } }
.critters { position: absolute; inset: 0; pointer-events: none; }
.bee { position: absolute; left: 0; top: 0; width: var(--w, 64px); will-change: transform; }
.bee img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.bee i { position: absolute; z-index: 2; top: -14%; width: 40%; height: 44%; border-radius: 50%; background: radial-gradient(ellipse at 40% 40%, rgba(255, 255, 255, .7), rgba(220, 230, 240, .25) 70%); border: 1px solid rgba(255, 255, 255, .35); transform-origin: 50% 100%; animation: flap .06s linear infinite alternate; }
.bee i:nth-child(2) { left: 28%; transform: rotate(-24deg); }
.bee i:nth-child(3) { left: 40%; transform: rotate(12deg); animation-delay: .03s; opacity: .8; }
@keyframes flap { from { scale: 1 1; } to { scale: 1 .25; } }
.ant { position: absolute; left: 0; top: 0; width: var(--w, 30px); will-change: transform; }
.ant img { display: block; width: 100%; height: auto; animation: antStep .22s ease-in-out infinite alternate; }
@keyframes antStep { to { translate: 0 -1px; rotate: -2deg; } }
.soil { position: relative; background:
  linear-gradient(180deg, #2B1E16 0%, #2A1D19 22%, #2C2025 48%, #302336 78%, #302336 100%); }
.soil::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 80px; background: linear-gradient(180deg, rgba(43, 30, 22, 0), #2B1E16 55%); }
.soil-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.soil-caption { position: absolute; left: max(var(--gut), env(safe-area-inset-left, 0px)); right: max(var(--gut), env(safe-area-inset-right, 0px)); bottom: 22%; max-width: 1240px; margin-inline: auto; font-size: clamp(32px, 4.4vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--marfil); text-wrap: balance; opacity: var(--cap, 0); transform: translateY(calc((1 - var(--cap, 0)) * 30px)); }
.forest-head { position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + clamp(118px, 16vh, 168px)) max(var(--gut), env(safe-area-inset-right, 0px)) 0 max(var(--gut), env(safe-area-inset-left, 0px)); color: var(--marfil); opacity: var(--head, 1); transform: translateY(calc((1 - var(--head, 1)) * -40px)); }
.forest-head > * { margin-left: max(0px, calc((100% - 1240px) / 2)); margin-right: 0; }
.forest-head h1 { font-size: clamp(40px, 5.4vw, 80px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(20, 12, 24, .45); }
.forest-head h1 span { display: block; max-width: 10ch; text-wrap: balance; }
.forest-head h1 .l2 { color: var(--amarillo); }
.forest-head .lead { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.45vw, 20px); color: var(--marfil); text-shadow: 0 1px 16px rgba(20, 12, 24, .6); }
.js .forest-head h1 span { clip-path: inset(0 0 100% 0); transform: translateY(.25em); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.js .forest-head h1 .l1 { animation-delay: .25s; }
.js .forest-head h1 .l2 { animation-delay: .45s; }
@keyframes rise { to { clip-path: inset(0 0 -10% 0); transform: none; } }
.js .forest-head .lead, .js .forest-head .cta-row { opacity: 0; animation: fadeIn .8s .8s ease forwards; }
.js .forest-head .cta-row { animation-delay: 1s; }
@keyframes fadeIn { to { opacity: 1; } }
.dig { position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--marfil); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); opacity: var(--head, 1); pointer-events: none; }
.dig span { width: 26px; height: 40px; border: 2px solid rgba(248, 246, 239, .8); border-radius: 14px; position: relative; }
.dig span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--amarillo); animation: dig 1.6s ease-in-out infinite; }
@keyframes dig { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }
/* Sin animación por scroll (reducir movimiento): todo en flujo y visible */
.descent.static { height: auto; }
.static .stage { position: relative; height: auto; }
.static .world { position: relative; transform: none !important; }
.static .soil-caption { --cap: 1; }
.static .forest-head { --head: 1; }

/* ---------- Micelio (juego de raíces) ---------- */
.hero { position: relative; min-height: max(620px, min(100svh, 900px)); background: var(--tinta); color: var(--marfil); overflow: hidden; display: grid; align-content: start; padding: clamp(72px, 10vw, 130px) max(var(--gut), env(safe-area-inset-right, 0px)) 330px max(var(--gut), env(safe-area-inset-left, 0px)); cursor: crosshair; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#myco { transition: opacity 1.6s ease; }
.hero-copy { position: relative; z-index: 2; max-width: 1240px; width: 100%; margin-inline: auto; cursor: auto; }
.hero h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; max-width: 17ch; text-wrap: balance; }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.45vw, 20px); color: var(--lavanda); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-hint { position: absolute; z-index: 2; right: max(var(--gut), env(safe-area-inset-right, 0px)); bottom: 22px; font-size: 14px; color: var(--lavanda); background: rgba(48, 35, 54, .88); padding: 6px 14px; border-radius: 999px; pointer-events: none; }

/* ---------- Secuencia ---------- */
.seq { background: var(--morado); color: rgba(237, 228, 239, .55); overflow: hidden; padding: 14px 0; border-top: 1px solid rgba(37, 90, 147, .9); }
.seq-line { font: 500 14px/1.4 var(--mono); white-space: nowrap; letter-spacing: .14em; text-align: center; }
.seq-line b { color: var(--amarillo); font-weight: 500; }

/* ---------- Encabezados de sección ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head h2 { font-size: clamp(36px, 5vw, 68px); font-weight: 800; color: var(--morado); max-width: 14ch; }
.sec-head p { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 34em; }
.sec-head.light h2 { color: var(--marfil); }
.sec-head.light p { color: var(--lavanda); }

/* ---------- Servicios ---------- */
.services { position: relative; display: grid; gap: clamp(72px, 9vw, 128px); padding-left: 44px; }
.thread { position: absolute; left: 0; top: 0; width: 44px; height: 100%; overflow: visible; }
.thread path { fill: none; stroke: var(--morado); stroke-width: 2.5; stroke-linecap: round; }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.svc.flip .svc-text { order: 2; }
.svc-text { position: static; }
.svc-node { position: absolute; left: -22px; top: 16px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--marfil); border: 3px solid var(--morado); transition: background-color .4s ease, transform .4s ease; }
.svc.lit .svc-node { background: var(--amarillo); transform: scale(1.25); }
.svc h3 { font-size: clamp(30px, 3.4vw, 46px); color: var(--morado); }
.svc-claim { margin-top: 12px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; color: var(--tinta); max-width: 24em; }
.ticks { margin-top: 24px; display: grid; gap: 12px; max-width: 34em; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 3px rgba(244, 189, 34, .25); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: calc(.62em + 12px); width: 2px; height: calc(100% - 4px); background: var(--line); }
.ticks li:last-child::after { display: none; }
.svc-demo { position: relative; }
.demo-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Revelado: el bloque brota desde un nodo (esquina superior izquierda) */
.js .grow { clip-path: circle(0% at 8% 8%); transition: clip-path 1.2s cubic-bezier(.6, .1, .2, 1); }
.js .grow.in { clip-path: circle(150% at 8% 8%); }
.js .traits .grow:nth-child(2) { transition-delay: .2s; }
.js .traits .grow:nth-child(3) { transition-delay: .4s; }

/* Demo web */
.browser { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(67, 43, 83, .45); overflow: hidden; position: relative; }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--lavanda); }
.b-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CDBFD3; }
.b-url { margin-left: 12px; flex: 1; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--muted); }
.b-page { padding: 18px; display: grid; gap: 14px; aspect-ratio: 16 / 11; grid-template-rows: auto auto 1fr auto; }
.b-page span, .b-img, .b-cols span { display: block; }
.b-nav { display: flex; align-items: center; gap: 10px; }
.b-logo { width: 54px; height: 12px; border-radius: 4px; background: var(--morado); }
.b-links { flex: 1; height: 8px; max-width: 120px; margin-left: auto; border-radius: 4px; background: var(--line); }
.b-btn { width: 44px; height: 16px; border-radius: 999px; background: var(--amarillo); }
.b-hero { display: grid; gap: 8px; }
.b-h1 { height: 16px; width: 78%; border-radius: 5px; background: var(--morado); }
.b-h1.short { width: 52%; }
.b-p { height: 8px; width: 64%; border-radius: 4px; background: var(--line); margin-top: 4px; }
.b-cta { width: 92px; height: 22px; border-radius: 999px; background: var(--amarillo); margin-top: 4px; }
.b-img { border-radius: 12px; background: var(--rio); overflow: hidden; min-height: 70px; }
.b-img svg { width: 100%; height: 100%; }
.b-img path { fill: none; stroke: var(--marfil); stroke-width: 2.4; stroke-linecap: round; }
.b-img circle { fill: var(--amarillo); }
.b-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b-cols span { height: 34px; border-radius: 8px; background: var(--lavanda); }
.b-ready { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; background: var(--tinta); color: var(--marfil); font-size: 13px; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 999px; }
.b-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amarillo); }
.play .b-nav, .play .b-h1, .play .b-p, .play .b-cta, .play .b-img, .play .b-cols span, .play .b-ready { animation: build 7s cubic-bezier(.3, .9, .3, 1) infinite both; }
.play .b-nav { animation-delay: .1s; }
.play .b-h1 { animation-delay: .35s; }
.play .b-h1.short { animation-delay: .5s; }
.play .b-p { animation-delay: .65s; }
.play .b-cta { animation-delay: .8s; }
.play .b-img { animation-delay: .95s; }
.play .b-cols span:nth-child(1) { animation-delay: 1.1s; }
.play .b-cols span:nth-child(2) { animation-delay: 1.2s; }
.play .b-cols span:nth-child(3) { animation-delay: 1.3s; }
.play .b-ready { animation-name: readyIn; animation-delay: 1.5s; }
.play .b-img path { stroke-dasharray: 120; animation: imgDraw 7s 1.1s ease infinite both; }
@keyframes build { 0% { opacity: 0; transform: translateY(8px) scaleX(.6); transform-origin: left; } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes readyIn { 0% { opacity: 0; transform: translateY(8px); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes imgDraw { 0% { stroke-dashoffset: 120; } 18%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Demo WhatsApp */
.phone { max-width: 390px; margin-inline: auto; background: var(--tinta); border-radius: 34px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(67, 43, 83, .6); }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--marfil); }
.ph-head strong { display: block; font-size: 15px; }
.ph-head small { font-size: 13px; color: var(--lavanda); }
.ph-av { width: 36px; height: 36px; border-radius: 50%; background: var(--amarillo) radial-gradient(circle at 50% 60%, var(--morado) 0 4px, transparent 5px); flex: none; }
.ph-chat { background: var(--marfil); border-radius: 26px; height: 430px; padding: 16px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.4; animation: pop .35s cubic-bezier(.3, 1.4, .5, 1) both; }
.msg.c { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.a { align-self: flex-end; background: var(--morado); color: var(--marfil); border-bottom-right-radius: 4px; }
.msg.sys { align-self: center; max-width: 92%; font-size: 13px; font-weight: 600; background: var(--lavanda); color: var(--morado); border-radius: 999px; display: flex; align-items: center; gap: 8px; }
.msg.sys::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rio); flex: none; }
.msg.sys.alert::before { background: var(--amarillo); box-shadow: 0 0 0 4px rgba(244, 189, 34, .3); }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 12px 14px; background: var(--morado); border-radius: 16px; border-bottom-right-radius: 4px; }
.typing.c { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--lavanda); animation: blink 1s infinite; }
.typing.c i { background: var(--muted); }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* Demo automatización */
.flow { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(67, 43, 83, .45); }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }
.flow-steps li { display: grid; justify-items: center; gap: 10px; transition: color .3s ease; }
.fs-dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transition: all .35s ease; }
.flow-steps li.done { color: var(--tinta); }
.flow-steps li.done .fs-dot { border-color: var(--rio); background: var(--rio); }
.flow-steps li.now .fs-dot { border-color: var(--morado); background: var(--marfil); box-shadow: 0 0 0 6px var(--lavanda); }
.flow-steps li.hold .fs-dot { border-color: var(--amarillo); background: var(--amarillo); box-shadow: 0 0 0 8px rgba(244, 189, 34, .3); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(244, 189, 34, 0); } }
.flow-track { position: relative; height: 4px; margin: -54px 12.5% 50px; background: var(--line); border-radius: 2px; z-index: 0; }
.flow-steps { position: relative; z-index: 1; }
.flow-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rio); border-radius: 2px; transition: width .6s ease; }
.flow-token { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--amarillo); transition: left .6s ease; box-shadow: 0 0 12px var(--amarillo); }
.flow-log { margin-top: 26px; display: grid; gap: 8px; min-height: 152px; align-content: start; font-size: 15px; }
.flow-log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--marfil); animation: pop .35s ease both; }
.flow-log time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.flow-log li.alert { background: #FDF3D3; }
.flow-log li.alert span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amarillo); margin-right: 8px; vertical-align: 1px; }

/* ---------- Red micelio ---------- */
.net-wrap { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.net { position: relative; height: clamp(440px, 46vw, 560px); }
.net-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-svg .h { fill: none; stroke: rgba(237, 228, 239, .3); stroke-width: 2; stroke-linecap: round; transition: stroke .4s ease, stroke-width .4s ease; }
.net-svg .h.fine { stroke-width: 1.2; stroke: rgba(237, 228, 239, .18); }
.net-svg .h.on { stroke: var(--lavanda); stroke-width: 3; }
.net-svg .flowd { fill: none; stroke: var(--amarillo); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 22; opacity: 0; transition: opacity .4s ease; animation: flowDash 1.6s linear infinite; }
.net-svg .flowd.on { opacity: 1; }
.net-svg .tip { fill: var(--amarillo); }
@keyframes flowDash { to { stroke-dashoffset: -22.1; } }
.net-substrate { position: absolute; left: 0; right: 0; top: 52%; height: 3px; background: var(--rio); border-radius: 2px; box-shadow: 0 0 18px rgba(37, 90, 147, .9); }
.net-substrate span { position: absolute; right: 0; top: 10px; font-size: 14px; color: var(--lavanda); }
.net-origin { position: absolute; left: 50%; top: 52%; width: 20px; height: 20px; margin: -9px 0 0 -10px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 8px rgba(244, 189, 34, .18), 0 0 30px rgba(244, 189, 34, .6); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 16px rgba(244, 189, 34, .06), 0 0 46px rgba(244, 189, 34, .8); } }
.nn { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; min-height: 44px; padding: 8px 16px 8px 34px; border-radius: 999px; border: 1.5px solid rgba(237, 228, 239, .35); background: var(--tinta); color: var(--marfil); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; transition: border-color .3s ease, background-color .3s ease, color .3s ease, transform .3s ease; }
.nn::before { content: ""; position: absolute; left: 13px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--lavanda); transition: background-color .3s ease, box-shadow .3s ease; }
.nn:hover { border-color: var(--lavanda); transform: translate(-50%, -50%) scale(1.04); }
.nn[aria-pressed="true"] { background: var(--marfil); color: var(--morado); border-color: var(--marfil); }
.nn[aria-pressed="true"]::before { background: var(--amarillo); box-shadow: 0 0 0 4px rgba(244, 189, 34, .35); }
.nn.linked { border-color: var(--amarillo); }
.net-panel { border-left: 3px solid var(--amarillo); padding: 8px 0 8px 24px; }
.net-panel h3 { font-size: clamp(26px, 2.6vw, 34px); }
.net-panel p { margin-top: 12px; color: var(--lavanda); }
.net-panel .net-links { font-size: 15px; color: rgba(237, 228, 239, .75); }
.net-panel.swap h3, .net-panel.swap p { animation: fadeIn .45s ease both; }

.traits { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.trait { padding-top: 28px; border-top: 1px solid rgba(237, 228, 239, .22); }
.trait-ic { width: 52px; height: 52px; margin-bottom: 20px; }
.trait-ic path { fill: none; stroke: var(--lavanda); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trait-ic path.rio { stroke: #5D8FC7; }
.trait-ic circle { fill: var(--lavanda); }
.trait-ic circle.sun { fill: var(--amarillo); }
.trait h3 { font-size: 24px; }
.trait p { margin-top: 10px; color: var(--lavanda); }

/* ---------- Método ---------- */
.method { position: relative; }
.method-line { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.method-line path { fill: none; stroke: var(--morado); stroke-width: 2.5; stroke-linecap: round; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step { position: relative; padding-top: 80px; }
.step-n { position: absolute; left: 0; top: 8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--marfil); color: var(--morado); border: 3px solid var(--morado); transition: background-color .4s ease, border-color .4s ease; z-index: 1; }
.step.lit .step-n { background: var(--amarillo); border-color: var(--amarillo); }
.step h3 { font-size: clamp(24px, 2.2vw, 30px); color: var(--morado); }
.step p { margin-top: 10px; color: var(--muted); max-width: 26em; }
.after { margin-top: clamp(48px, 6vw, 72px); padding: 22px 26px; background: var(--lavanda); border-radius: var(--r); font-size: 18px; font-weight: 600; color: var(--morado); max-width: 46em; }

/* ---------- Evidencia ---------- */
.ev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ev h2 { font-size: clamp(36px, 4.6vw, 62px); font-weight: 800; max-width: 13ch; }
.ev-copy > p { margin-top: 22px; color: var(--lavanda); max-width: 34em; font-size: 18px; }
.ev-values { margin-top: 40px; display: grid; gap: 22px; }
.ev-values div { padding-left: 20px; border-left: 3px solid var(--amarillo); }
.ev-values h3 { font-size: 20px; }
.ev-values p { margin-top: 4px; color: var(--lavanda); }
.calc { background: var(--marfil); color: var(--tinta); border-radius: 22px; padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 10px; }
.calc-out { display: grid; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.calc-out output { font-size: clamp(64px, 8vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--morado); font-variant-numeric: tabular-nums; }
.calc-out span { font-size: 20px; font-weight: 700; color: var(--morado); }
.calc-out small { font-size: 15px; color: var(--muted); }
.bars { display: grid; gap: 12px; margin-bottom: 16px; }
.bar-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 4.4em; align-items: center; gap: 12px; font-size: 15px; }
.bar-row b { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { height: 14px; background: var(--lavanda); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--rio); border-radius: 999px; transition: width .5s cubic-bezier(.3, .9, .3, 1); }
.bar i.sun { background: var(--amarillo); }
.calc label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; margin-top: 8px; }
.calc label b { font-variant-numeric: tabular-nums; color: var(--rio); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--morado), var(--morado)) 0 / var(--p, 50%) 100% no-repeat, var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--morado); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--amarillo); border: 4px solid var(--morado); transition: transform .2s ease; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--amarillo); border: 4px solid var(--morado); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; color: var(--morado); max-width: 11ch; }
.faq details { border-bottom: 1.5px solid rgba(67, 43, 83, .2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; color: var(--morado); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2.5px solid var(--morado); transition: background-color .3s ease, border-color .3s ease, transform .3s ease; }
.faq details[open] summary::after { background: var(--amarillo); border-color: var(--amarillo); transform: scale(1.3); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 40em; }
.faq details[open] p { animation: fadeIn .4s ease both; }

/* ---------- Contacto ---------- */
.ct-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.ct { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ct h2 { font-size: clamp(38px, 5vw, 70px); font-weight: 800; max-width: 12ch; }
.ct-copy p { margin-top: 22px; color: var(--lavanda); font-size: 18px; max-width: 30em; }
.ct-form { background: var(--marfil); color: var(--tinta); border-radius: 22px; padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 10px; }
.ct-form fieldset { border: 0; padding: 0; margin: 0 0 10px; }
.ct-form legend, .ct-form label { font-weight: 600; font-size: 15px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; transition: all .25s ease; }
.chips input:checked + span { background: var(--morado); border-color: var(--morado); color: var(--marfil); }
.chips input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two > div { display: grid; gap: 8px; }
.ct-form input:not([type="radio"]), .ct-form textarea { width: 100%; font-size: 16px; padding: 12px 14px; border: 1.5px solid #CFC3D5; border-radius: 12px; background: #fff; }
.ct-form input:not([type="radio"]):focus, .ct-form textarea:focus { outline: none; border-color: var(--morado); box-shadow: 0 0 0 4px var(--lavanda); }
.ct-form textarea { resize: vertical; margin-top: -2px; }
.ct-form .btn { margin-top: 12px; justify-self: start; }
.ct-status { font-size: 15px; color: var(--muted); min-height: 1.4em; overflow-wrap: anywhere; }
.ct-status.err { color: #9B2335; font-weight: 600; }
.ct-status a { color: var(--rio); font-weight: 600; }
.ct-status q { display: block; margin-top: 8px; padding: 10px 12px; background: var(--lavanda); border-radius: 10px; color: var(--tinta); quotes: none; white-space: pre-line; }

/* ---------- Pie ---------- */
.foot { background: var(--tinta); color: var(--lavanda); padding: 56px max(var(--gut), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(var(--gut), env(safe-area-inset-left, 0px)); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; }
.foot p { max-width: 30em; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: 15px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--amarillo); }
.foot .credits { grid-column: 1 / -1; font-size: 13px; color: rgba(237, 228, 239, .6); max-width: none; }
.foot .credits a { color: inherit; }
.foot small { grid-column: 1 / -1; font-size: 14px; color: rgba(237, 228, 239, .6); padding-top: 20px; border-top: 1px solid rgba(237, 228, 239, .14); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .net-wrap { grid-template-columns: minmax(0, 1fr); }
  .net-panel { min-height: 170px; }
}
@media (max-width: 900px) {
  .sec-head, .svc, .ev, .faq-grid, .ct { grid-template-columns: minmax(0, 1fr); }
  .svc.flip .svc-text { order: 0; }
  .traits { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(var(--gut), 16px) 20px; background: var(--tinta); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s cubic-bezier(.6, .1, .2, 1), visibility 0s .4s; }
  .nav-menu.open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path .4s cubic-bezier(.6, .1, .2, 1); }
  .nav-menu a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(237, 228, 239, .12); background: none; }
  .nav-menu .btn { margin-top: 16px; }
  .nav { background: rgba(48, 35, 54, .92); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .services { padding-left: 30px; }
  .thread { width: 30px; }
  .svc-node { left: -15px; }
  .net { height: 520px; }
  .nn { font-size: 14px; padding: 6px 12px 6px 28px; min-height: 40px; }
  .nn::before { left: 11px; width: 9px; height: 9px; margin-top: -4.5px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .step { padding: 0 0 0 64px; }
  .step-n { top: -4px; }
  .method-line { width: 60px; height: 100%; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 7.6em minmax(0, 1fr) 4.2em; font-size: 14px; }
  .flow-steps { font-size: 13px; }
  .ph-chat { height: 400px; }
  .hero-hint { left: max(var(--gut), 16px); right: auto; }
}
@media (max-width: 420px) {
  .brand { padding: 8px 12px; }
  .brand .logo { width: 150px; }
  .b-ready { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .grow { clip-path: none; }
  .js .forest-head h1 span, .js .forest-head .lead, .js .forest-head .cta-row { clip-path: none; opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .forest-head .lead { display: none; }
  .forest-head .cta-row { margin-top: 22px; flex-wrap: nowrap; gap: 8px; }
  .forest-head .btn { padding: 0 16px; font-size: 15px; }
  .soil-caption { bottom: 16%; }
}
