/* Tableru — sitio público y autenticación */
.btn.block { width: 100%; justify-content: center; height: 44px; font-size: 15px; }
.alert { background: var(--bad-soft); color: #9f1239; border: 1px solid #f8cdd7; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 16px; }
.alert.ok { background: var(--ok-soft); color: #166534; border-color: #c4ecd2; }

/* ---------- Autenticación ---------- */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { background: radial-gradient(700px 400px at 20% 10%, rgba(99, 102, 241, .35), transparent 60%), radial-gradient(600px 400px at 90% 90%, rgba(244, 114, 182, .22), transparent 60%), #0d1024; color: #fff; padding: 40px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-logo { display: flex; align-items: center; gap: 11px; color: #fff; }
.auth-logo img { width: 38px; height: 38px; }
.auth-logo b { font-size: 24px; letter-spacing: -.03em; }
.auth-pitch { margin-top: 12vh; max-width: 520px; }
.auth-pitch h2 { font-size: 40px; font-weight: 780; letter-spacing: -.035em; line-height: 1.1; }
.auth-pitch h2 span { background: linear-gradient(90deg, #a5b4fc, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch p { color: #b7bbd8; font-size: 16px; line-height: 1.6; margin-top: 18px; }
.auth-mock { margin-top: 42px; max-width: 520px; animation: pop .6s ease-out both; }
.am-chat { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: #dfe2f5; width: fit-content; }
.am-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #ec4899); flex: none; }
.am-card { margin-top: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 16px; }
.am-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-kpis div { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 12px; }
.am-kpis small { color: #9ca1c4; font-size: 11px; display: block; }
.am-kpis b { font-size: 19px; display: block; margin: 2px 0; }
.am-kpis em { font-style: normal; color: #4ade80; font-size: 11.5px; font-weight: 650; }
.am-line { width: 100%; height: 90px; margin-top: 12px; }
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 27px; font-weight: 760; letter-spacing: -.03em; }
.auth-box .sub { color: var(--muted); margin: 8px 0 24px; }
.auth-box .field label.row { display: flex; }
.auth-box .alt { text-align: center; color: var(--muted); margin-top: 22px; font-size: 13.5px; }
.auth-foot { margin-top: 40px; color: var(--muted2); font-size: 12px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 24px; min-height: auto; }
  .auth-pitch { margin-top: 26px; }
  .auth-pitch h2 { font-size: 28px; }
  .auth-mock { display: none; }
}

/* ---------- Sitio público ---------- */
.site { background: #f7f7fb; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.s-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px max(24px, calc((100vw - 1220px) / 2)); transition: background .25s, box-shadow .25s; }
.s-nav.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(20, 22, 60, .07); }
.s-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.s-logo .brand-ic { width: 34px; height: 34px; }
.s-logo .brand-name { font-size: 22px; letter-spacing: -.03em; }
.s-logo .brand-logo { height: 36px; max-width: 200px; object-fit: contain; object-position: left center; }
.s-logo .bm-l, .s-logo .bm-d { line-height: 0; }
.s-links { display: flex; gap: 22px; margin-left: 14px; }
.s-links a { color: var(--ink2); font-weight: 550; font-size: 14.5px; }
.s-links a:hover { color: var(--brand); }
.s-cta { margin-left: auto; display: flex; gap: 8px; }
.s-burger { display: none; border: 0; background: none; width: 40px; height: 40px; padding: 10px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.s-burger i { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
/* Nav sobre el hero oscuro */
.lp .s-nav:not(.scrolled) .s-logo, .lp .s-nav:not(.scrolled) .s-links a { color: #e7e9fb; }
.lp .s-nav:not(.scrolled) .s-links a:hover { color: #fff; }
.lp .s-nav:not(.scrolled) .btn.ghost { color: #e7e9fb; }
.lp .s-nav:not(.scrolled) .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.lp .s-nav:not(.scrolled) .s-burger i { background: #fff; }
.lp .s-nav { margin-bottom: -78px; }
.s-logo .bm-d { display: none; }
.lp .s-nav:not(.scrolled) .bm-l { display: none; }
.lp .s-nav:not(.scrolled) .bm-d { display: block; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; background: #0a0d22; color: #fff; padding: 118px 24px 0; }
.lp-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%); }
.lp-aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(60px); opacity: .85; }
.lp-aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.lp-aurora i:nth-child(1) { width: 560px; height: 420px; left: -120px; top: -140px; background: radial-gradient(circle, rgba(99, 102, 241, .55), transparent 65%); }
.lp-aurora i:nth-child(2) { width: 520px; height: 420px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(236, 72, 153, .35), transparent 65%); animation-delay: -6s; }
.lp-aurora i:nth-child(3) { width: 600px; height: 380px; left: 30%; bottom: -220px; background: radial-gradient(circle, rgba(56, 189, 248, .30), transparent 65%); animation-delay: -12s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.lp-hero-in { position: relative; max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.lp-hero-txt { min-width: 0; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: #c9cdf2; }
.lp-pill b { background: linear-gradient(90deg, #6366f1, #a855f7); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.lp-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 820; letter-spacing: -.045em; line-height: 1.02; margin: 20px 0 18px; }
.lp-grad { background: linear-gradient(90deg, #a5b4fc 0%, #f0abfc 50%, #7dd3fc 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% 0; } }
.lp-hero p { font-size: 17.5px; color: #b9bde0; line-height: 1.65; max-width: 540px; margin: 0; }
.lp-hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.lp-ghost { background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.lp-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lp-checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #9ea3cc; }
.lp-checks li::before { content: '✓'; color: #4ade80; font-weight: 800; margin-right: 6px; }

/* Ventana de demostración */
.lp-demo { min-width: 0; perspective: 1600px; }
.dm-win { position: relative; background: #f7f8fc; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); color: var(--ink); transform: rotateY(-6deg) rotateX(3deg); transition: transform .6s; }
.lp-demo:hover .dm-win { transform: none; }
.dm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dm-bar i { width: 10px; height: 10px; border-radius: 50%; } .dm-bar i:nth-child(1) { background: #fca5a5; } .dm-bar i:nth-child(2) { background: #fcd34d; } .dm-bar i:nth-child(3) { background: #86efac; }
.dm-bar span { margin-left: 8px; font-weight: 650; color: var(--ink2); }
.dm-body { display: flex; height: 470px; }
.dm-side { width: 46px; background: #0f1226; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; flex: none; }
.dm-side span { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .08); }
.dm-side span.on { background: linear-gradient(135deg, #6366f1, #a855f7); }
.dm-main { position: relative; flex: 1; min-width: 0; }
.dm-scene { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985); transition: opacity .45s, transform .45s, visibility .45s; }
.dm-scene.on { opacity: 1; visibility: visible; transform: none; }
.dm-q { display: flex; gap: 9px; align-self: flex-end; max-width: 88%; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: .35s; }
.dm-q.show { opacity: 1; transform: none; }
.dm-q p { margin: 0; color: var(--ink2); }
.dm-av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #ec4899); flex: none; }
.dm-agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .4s; }
.dm-agents.show { opacity: 1; max-height: 80px; }
.dm-agents.done { opacity: 0; max-height: 0; }
.dm-agents > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; font-size: 10.5px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0 6px; align-items: center; transition: .25s; }
.dm-agents > div b { font-size: 11px; color: var(--ink); }
.dm-agents > div span { grid-column: 1 / -1; line-height: 1.3; margin-top: 2px; }
.dm-agents i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #d9dbea; }
.dm-agents .run { border-color: #c9ccfb; background: #f5f5ff; }
.dm-agents .run i { border-color: #6366f1; border-right-color: transparent; animation: spin .7s linear infinite; }
.dm-agents .ok i { border: 0; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/8px no-repeat; }
.dm-res { display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(8px); transition: .4s; min-height: 0; }
.dm-res.show { opacity: 1; transform: none; }
.dm-res > *, .dm-scene > * { flex-shrink: 0; }
.dm-ask { flex-shrink: 0; }
.dm-kpis .trc-kpis { gap: 8px; }
.dm-kpis .trc-kpi { padding: 9px 10px; gap: 8px; }
.dm-kpis .trc-kpi-v { font-size: 17px; }
.dm-kpis .trc-kpi-ic { width: 28px; height: 28px; border-radius: 9px; }
.dm-kpis .trc-kpi-ic svg { width: 15px; height: 15px; }
.dm-kpis .trc-kpi-l { font-size: 10.5px; }
.dm-kpis .trc-kpi-d { font-size: 10.5px; }
.dm-row { display: grid; grid-template-columns: 1.55fr 1fr; gap: 8px; }
.dm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; min-width: 0; overflow: hidden; }
.dm-card > b { display: block; font-size: 11.5px; margin-bottom: 4px; }
.dm-ch { width: 100%; min-height: 60px; }
.dm-ch.tall { height: 200px; }
.bt-types .dm-ch.tall { height: 230px; }
.dm-ch .trc-an { display: none; }
.dm-ch .trc-grain { display: none; }
.dm-ins { display: flex; gap: 8px; background: linear-gradient(90deg, #eef0ff, #fdf2fb); border-radius: 12px; padding: 9px 11px; font-size: 12px; line-height: 1.45; color: #3730a3; opacity: 0; transition: .35s; }
.dm-ins.show { opacity: 1; }
.dm-ins p { margin: 0; min-height: 34px; }
.dm-spark { width: 14px; height: 14px; flex: none; margin-top: 2px; background: linear-gradient(135deg, #60a5fa, #a855f7); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.dm-ask { margin-top: auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 7px 7px 7px 12px; font-size: 12.5px; color: var(--ink); box-shadow: 0 6px 18px rgba(20, 22, 60, .06); transition: .2s; }
.dm-ask.press { box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); }
#dmAskT { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dmAskT.ph { color: #a2a6c4; }
.dm-ask button { border: 0; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font: 600 11.5px Inter, sans-serif; border-radius: 9px; padding: 7px 11px; opacity: 0; transform: scale(.9); transition: .25s; pointer-events: none; }
.dm-ask button.show { opacity: 1; transform: none; }
.dm-ask button.press { transform: scale(.94); }
.dm-dh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-dh b { font-size: 14px; }
.dm-chips { display: flex; gap: 5px; }
.dm-chips em { font-style: normal; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); }
.dm-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; flex: 1; min-height: 0; align-content: start; }
.dm-grid .dm-card { opacity: 0; transform: translateY(14px) scale(.96); transition: .45s cubic-bezier(.2, .8, .2, 1); }
.dm-grid .dm-card.in { opacity: 1; transform: none; }
.dm-grid .g4 { grid-column: span 4; } .dm-grid .g8 { grid-column: span 8; } .dm-grid .g6 { grid-column: span 6; }
.dm-ch.sm .trc-kpi { padding: 6px; box-shadow: none; border: 0; }
.dm-ch.sm .trc-kpi-v { font-size: 18px; }
.dm-ch.mx { max-height: 150px; overflow: hidden; }
.dm-ch.mx .trc-mx { font-size: 10.5px; }
.dm-ch.mx .trc-table th, .dm-ch.mx .trc-table td { padding: 4px 7px; }
.dm-ch.mx .trc-mx-bar { display: none; }
.dm-ch.mx .trc-mx-wrap { max-height: 150px; border: 0; }
.dm-ch .trc-hrow { padding: 2px 0; font-size: 11px; }
.dm-pointer { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 9; pointer-events: none; opacity: 0; transition: transform .7s cubic-bezier(.6, 0, .3, 1), opacity .3s; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.5L10 19z' fill='%230f1226' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.dm-pointer.show { opacity: 1; }
.dm-pointer::after { content: ''; position: absolute; left: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #6366f1; opacity: 0; }
.dm-pointer.click::after { animation: ping .45s ease-out; }
@keyframes ping { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
.lp-stats { position: relative; max-width: 1220px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .1); }
.lp-stats div { padding: 26px 10px 30px; text-align: center; }
.lp-stats div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.lp-stats b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats span { color: #9ea3cc; font-size: 13.5px; }

/* Cinta de conectores */
.lp-marquee { overflow: hidden; padding: 22px 0; background: #fff; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; animation: mq 60s linear infinite; }
.lp-marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.cx { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.cx i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 800 10.5px Inter, sans-serif; font-style: normal; letter-spacing: -.02em; }

/* Secciones */
.lp-sec { max-width: 1220px; margin: 0 auto; padding: 96px 24px 0; scroll-margin-top: 70px; }
.lp-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.lp-eyebrow { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }
.lp-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.038em; line-height: 1.1; margin: 16px 0 12px; }
.lp-head p { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 0; }
.lp-head.dark h2 { color: #fff; } .lp-head.dark p { color: #a8acd3; }
.lp-head.dark .lp-eyebrow { background: rgba(165, 180, 252, .14); color: #c7d2fe; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bt { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 22, 60, .04); transition: box-shadow .25s, transform .25s; }
.bt:hover { box-shadow: 0 20px 50px rgba(20, 22, 60, .09); transform: translateY(-2px); }
.bt h3 { font-size: 18px; letter-spacing: -.02em; margin: 12px 0 6px; }
.bt p { color: var(--ink2); font-size: 14px; line-height: 1.6; margin: 0; }
.bt-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.bt-chat { grid-column: span 4; background: linear-gradient(135deg, #fff 55%, #f4f3ff); }
.bt-types { grid-column: span 2; }
.bt-fc { grid-column: span 3; } .bt-mx { grid-column: span 3; }
.bt-auto, .bt-gov, .bt-rep { grid-column: span 2; }
.bt-viz { position: relative; margin-top: auto; min-width: 0; }
.bt-chlab { position: absolute; top: -4px; right: 0; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; z-index: 2; }
.bt-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bt-flow span { font-size: 12.5px; font-weight: 650; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.bt-flow span:first-child { background: #0f1226; color: #fff; border-color: #0f1226; }
.bt-flow i { flex: 1; min-width: 14px; height: 2px; background: linear-gradient(90deg, #c7d2fe 50%, transparent 50%) 0 0 / 10px 2px repeat-x; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 10px 0; } }
.bt-tl { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-tl li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; }
.bt-tl b { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bt-tl em { margin-left: auto; font-style: normal; color: #16a34a; font-weight: 800; }
.bt-tl em.run { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #6366f1; border-right-color: transparent; animation: spin .8s linear infinite; }
.bt-layers { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.bt-layers span { font-size: 12.5px; font-weight: 650; padding: 8px 12px; border-radius: 10px; background: #fdf2f8; color: #9d174d; position: relative; padding-left: 30px; }
.bt-layers span::before { content: ''; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 4px; background: #db2777; opacity: .25; animation: lay 4s infinite; }
.bt-layers span:nth-child(2)::before { animation-delay: .5s; } .bt-layers span:nth-child(3)::before { animation-delay: 1s; } .bt-layers span:nth-child(4)::before { animation-delay: 1.5s; } .bt-layers span:nth-child(5)::before { animation-delay: 2s; }
@keyframes lay { 0%, 100% { opacity: .25; } 30%, 60% { opacity: 1; } }
.bt-doc { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 7px; background: linear-gradient(180deg, #fff, #fafbff); }
.bt-doc i { height: 8px; border-radius: 4px; background: #eceef7; } .bt-doc i.h { width: 55%; height: 12px; background: #c7d2fe; } .bt-doc i.s { width: 70%; }
.bt-doc div { display: flex; gap: 6px; margin-top: 4px; } .bt-doc em { flex: 1; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #eef0ff, #fce7f3); }

.bt-conv { display: flex; flex-direction: column; gap: 10px; }
.bc-q { align-self: flex-end; background: #0f1226; color: #fff; font-size: 13px; padding: 9px 13px; border-radius: 14px 14px 4px 14px; max-width: 80%; }
.bc-a { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.bc-a > div { flex: 1; min-width: 0; }
.bc-a p { font-size: 13px !important; margin: 0 0 6px !important; }
/* Pasos */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.lp-steps::before { content: ''; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, #c7d2fe, #f5d0fe); }
.lp-steps > div { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.lp-steps span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 8px 20px rgba(99, 102, 241, .35); }
.lp-steps h3 { margin: 16px 0 8px; font-size: 18px; }
.lp-steps p { margin: 0; color: var(--ink2); line-height: 1.6; font-size: 14.5px; }

/* Conectores */
.lp-conn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cg { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.cg h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; }
.cg > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cg .cx { font-size: 12.5px; padding: 5px 11px 5px 5px; }
.cg .cx i { width: 24px; height: 24px; font-size: 9.5px; }

/* Arquitectura */
.lp-arch { position: relative; background: #0a0d22; color: #fff; padding: 96px 24px; margin-top: 96px; overflow: hidden; scroll-margin-top: 40px; }
.lp-arch::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 15% 0%, rgba(99, 102, 241, .22), transparent 60%), radial-gradient(700px 400px at 90% 100%, rgba(236, 72, 153, .16), transparent 60%); }
.arch { position: relative; max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 46px; align-items: center; }
.arch-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.arch-svg .al { fill: none; stroke: rgba(165, 180, 252, .28); stroke-width: 1.4; }
.arch-svg .ad { fill: #f0abfc; filter: drop-shadow(0 0 4px #e879f9); }
.ac { position: relative; display: flex; flex-direction: column; gap: 10px; z-index: 1; }
.ac h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: #8f94c4; margin: 0 0 4px; text-align: center; }
.an { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .1); border-radius: 13px; padding: 11px 13px; font-size: 13.5px; font-weight: 650; backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.arch.live .an { opacity: 1; transform: none; }
.arch.live .ac:nth-child(3) .an { transition-delay: .1s; } .arch.live .ac:nth-child(4) .an { transition-delay: .2s; } .arch.live .ac:nth-child(5) .an { transition-delay: .3s; } .arch.live .ac:nth-child(6) .an { transition-delay: .4s; }
.an small { display: block; font-size: 11.5px; font-weight: 500; color: #9ea3cc; margin-top: 3px; line-height: 1.35; }
.an.hub { border-color: rgba(165, 180, 252, .45); background: rgba(99, 102, 241, .18); }
.an.ai { background: linear-gradient(135deg, rgba(99, 102, 241, .28), rgba(168, 85, 247, .22)); border-color: rgba(196, 181, 253, .35); text-align: center; }
.an.out { background: rgba(255, 255, 255, .92); color: var(--ink); border-color: transparent; }

/* Galería */
.gal2 { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 20px 60px rgba(20, 22, 60, .06); }
.gal-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.gal-tabs button { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 7px 16px; font: 600 13px Inter, sans-serif; color: var(--ink2); cursor: pointer; transition: .15s; }
.gal-tabs button.on { background: #0f1226; color: #fff; border-color: #0f1226; }
.gal-stage { min-height: 340px; }
.gal-cap { text-align: center; color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }

/* Seguridad */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.sec-grid i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 18px; color: #4f46e5; background: var(--brand-soft); }
.sec-grid h3 { font-size: 16.5px; margin: 14px 0 6px; }
.sec-grid p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.6; }

/* Planes y FAQ */
#planes .plan-cards { margin-top: 0; }
.plan-card li { gap: 8px; }
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 12px 30px rgba(20, 22, 60, .07); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--ink2); line-height: 1.65; }

/* Cierre y pie */
.lp-final { position: relative; overflow: hidden; margin: 110px auto 0; max-width: 1172px; border-radius: 30px; background: #0a0d22; color: #fff; text-align: center; padding: 84px 24px; }
.lp-final h2 { position: relative; font-size: clamp(30px, 4vw, 46px); font-weight: 820; letter-spacing: -.04em; margin: 0; }
.lp-final p { position: relative; color: #b9bde0; font-size: 18px; margin: 10px 0 28px; }
.lp-final .btn { position: relative; }
.s-foot2 { margin-top: 90px; background: #0a0d22; color: #a8acd3; padding: 56px max(24px, calc((100vw - 1220px) / 2)) 26px; }
.sf-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.sf-grid h4 { color: #fff; font-size: 13px; margin: 4px 0 12px; letter-spacing: .02em; }
.sf-grid a { display: block; color: #a8acd3; font-size: 14px; padding: 4px 0; }
.sf-grid a:hover { color: #fff; }
.sf-brand .s-logo { color: #fff; }
.sf-brand p { font-size: 14px; margin: 14px 0 0; max-width: 300px; line-height: 1.6; }
.sf-bot { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #7f84a8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sf-bot .lang-sw a { color: #c5c9e8; text-decoration: none; }
.sf-bot .lang-sw a:hover { color: #fff; }
.sf-bot .lang-sw b { color: #fff; font-weight: 600; }

/* Páginas legales */
.legal-page .s-nav { background: rgba(255, 255, 255, .86); }
.legal { max-width: 1100px; margin: 0 auto; padding: 40px 24px 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.legal-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.legal-side a { padding: 9px 12px; border-radius: 10px; color: var(--ink2); font-size: 14px; font-weight: 550; }
.legal-side a:hover { background: #fff; }
.legal-side a.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.legal-doc { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 38px 44px; }
.legal-page .s-foot2 { margin-top: 70px; }

/* Responsivo */
@media (max-width: 1080px) {
  .lp-hero-in { grid-template-columns: 1fr; gap: 40px; }
  .dm-win { transform: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-chat, .bt-types, .bt-fc, .bt-mx, .bt-auto, .bt-gov, .bt-rep { grid-column: span 1; grid-row: auto; }
  .bt-chat { grid-column: 1 / -1; }
  .lp-conn, .sec-grid { grid-template-columns: 1fr 1fr; }
  .s-links { display: none; }
  .s-burger { display: flex; }
  body.nav-open .s-links { display: flex; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 0; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 20px 50px rgba(20, 22, 60, .2); margin: 0; }
  body.nav-open .s-links a { color: var(--ink) !important; padding: 12px 14px; border-radius: 10px; }
  .arch { grid-template-columns: 1fr; gap: 34px; max-width: 520px; }
  .sf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .lp-hero { padding-top: 104px; }
  .dm-body { height: 430px; }
  .dm-side { display: none; }
  .dm-agents { grid-template-columns: 1fr 1fr; }
  .dm-agents.show { max-height: 140px; }
  .dm-row { grid-template-columns: 1fr; }
  .dm-row .dm-card:last-child { display: none; }
  .dm-grid .g4, .dm-grid .g6:last-child { display: none; }
  .dm-grid .g8, .dm-grid .g6 { grid-column: span 12; }
  .dm-chips { display: none; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-stats div:nth-child(3) { border-left: 0; }
  .lp-stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .lp-stats b { font-size: 30px; }
  .bento, .lp-steps, .lp-conn, .sec-grid { grid-template-columns: 1fr; }
  .lp-steps::before { display: none; }
  .s-cta .ghost { display: none; }
  .s-cta .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .lp-final { margin: 80px 12px 0; border-radius: 22px; padding: 60px 20px; }
  .legal { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; }
  .legal-side { position: static; flex-direction: row; overflow-x: auto; }
  .legal-side a { white-space: nowrap; }
  .legal-doc { padding: 24px 20px; }
  .sf-grid { grid-template-columns: 1fr; }
  .lp-sec { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-aurora i, .mq-track, .lp-grad, .bt-flow i, .bt-layers span::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
