/* ═══════════════════════════════════════════════════════════════════
   Páginas SSR · rediseño de LABS y BOOK + "Book a call" protagonista (oct 2026).
   Se enlaza después de dark-pages.css desde shell() en crm/api/_blog.mjs.
   ═══════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-variable.woff2) format('woff2'); }
body, .sh, .pg-hero h1, .pg-sec h2, h1, h2, h3 { font-family: 'Geist', 'Inter', system-ui, sans-serif !important; }
h1, h2 { text-wrap: balance; }
.pg-lede, .pg-sec p { text-wrap: pretty; }

/* ── "Book a call" protagonista ── */
.sh__book {
  position: relative; gap: .5rem !important; padding: 0 .95rem 0 .45rem !important; height: 38px !important; font-weight: 600 !important;
  color: #141204 !important; border: 1px solid #C9AA12 !important;
  background: linear-gradient(180deg, #FBE468 0%, #F4D738 55%, #E2C21C 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 28px -8px rgba(244, 215, 56, .6) !important;
}
.sh__book:hover { transform: translateY(-1px); }
.sh__book .dk-book__i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(20, 18, 4, .12); }
.sh__book .dk-book__i svg { width: 15px; height: 15px; fill: none; stroke: #141204; stroke-width: 2; stroke-linecap: round; }
.sh__book .dk-book__live { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #3DD68C; border: 2px solid #07080A; }
.sh__book .dk-book__live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3DD68C; animation: dk-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes dk-ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.sh__cta { color: #EDEEF0 !important; text-shadow: none !important; box-shadow: none !important; border: 1px solid transparent !important;
  background: linear-gradient(#14161B, #14161B) padding-box, linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03)) border-box !important; }
@media (max-width: 560px) { .sh__book { display: inline-flex !important; } .sh__cta, .sh__lang { display: none !important; } }

/* ═════════════════ LABS ═════════════════ */
.pgs-labs .lb-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
/* terminal */
.lx-term { border-radius: 18px; overflow: hidden; border: 1px solid transparent; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: linear-gradient(#0A0B0E, #0A0B0E) padding-box, linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 85%) border-box;
  box-shadow: 0 40px 100px -40px rgba(42, 167, 228, .5); }
.lx-term__bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); }
.lx-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.lx-term__bar i:nth-child(1) { background: #FF5F57; } .lx-term__bar i:nth-child(2) { background: #FEBC2E; } .lx-term__bar i:nth-child(3) { background: #28C840; }
.lx-term__bar b { margin-left: .6rem; font-weight: 400; font-size: .74rem; color: #6E747E; }
.lx-term__body { padding: 1rem 1.1rem 1.2rem; font-size: .8rem; line-height: 1.85; color: #C9CED6; }
.lx-term__body p { margin: 0; }
.lx-p { color: #3DD68C; margin-right: .4rem; }
.lx-term__r { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 3.2rem; gap: .6rem; }
.lx-term__r b { font-weight: 400; color: #7CCBF3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-term__r span { color: #6E747E; } .lx-term__r em { font-style: normal; color: #F4D738; text-align: right; }
.lx-term__ok { margin-top: .5rem !important; color: #3DD68C; }
.lx-cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: #EDEEF0; animation: lx-blink 1s steps(1) infinite; }
@keyframes lx-blink { 50% { opacity: 0; } }

/* lista de repositorios */
.lx-list { display: grid; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.lx-row {
  position: relative; display: grid; grid-template-columns: 2.4rem 84px minmax(0, 1fr) auto; gap: 1.4rem; align-items: center;
  padding: 1.5rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); transition: background .3s;
}
.lx-row::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(60% 120% at 10% 50%, color-mix(in srgb, var(--cv) 14%, transparent), transparent 70%); }
.lx-row:hover::before { opacity: 1; }
.lx-row__n { font-size: .82rem; font-weight: 500; color: #6E747E; font-variant-numeric: tabular-nums; }
.lx-row__glyph { display: grid; place-items: center; width: 84px; height: 64px; border-radius: 14px; color: var(--cv);
  background: color-mix(in srgb, var(--cv) 10%, #0B0C10); border: 1px solid color-mix(in srgb, var(--cv) 30%, transparent); }
.lx-row__glyph svg { width: 100%; height: 100%; }
.lx-row__main { display: grid; gap: .3rem; min-width: 0; }
.lx-row__name { justify-self: start; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.035em; color: #EDEEF0; }
.lx-row__name span { color: #6E747E; font-size: .8em; transition: transform .25s, color .25s; display: inline-block; }
.lx-row:hover .lx-row__name span { transform: translate(3px, -3px); color: var(--cv); }
.lx-row__k { font-size: .8rem; font-weight: 500; color: var(--cv); }
.lx-row__main p { margin: .2rem 0 0; max-width: 70ch; color: #A9AFB8; font-size: .95rem; line-height: 1.55; }
.lx-row__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .3rem; font-size: .78rem; color: #6E747E; }
.lx-lang { display: inline-flex; align-items: center; gap: .35rem; } .lx-lang i { width: 8px; height: 8px; border-radius: 50%; }
.lx-row__copy { max-width: 300px; }

/* rage-motion destacado */
.pgs-labs .lb-rm { border-radius: 28px !important; border: 1px solid transparent !important; overflow: hidden;
  background: radial-gradient(70% 90% at 100% 0%, rgba(244, 215, 56, .12), transparent 70%) padding-box, radial-gradient(60% 80% at 0% 100%, rgba(42, 167, 228, .16), transparent 70%) padding-box, linear-gradient(#0B0C10, #0B0C10) padding-box, linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 85%) border-box !important; }
.pgs-labs .lb-rm h3 { font-size: clamp(2.6rem, 6vw, 4.6rem) !important; letter-spacing: -.055em !important; font-weight: 600 !important; }
.pgs-labs .lb-rm__k { color: #F4D738 !important; font-family: 'Geist', sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
.pgs-labs .lb-rm__nums dt { font-family: 'Geist', sans-serif !important; font-weight: 600 !important; letter-spacing: -.04em !important; }
.pgs-labs .lb-rm__tags li { border-radius: 999px !important; border: 1px solid rgba(255, 255, 255, .14) !important; background: rgba(255, 255, 255, .03) !important; color: #EDEEF0 !important; }
.pgs-labs .lb-rm__a { color: #141204 !important; background: linear-gradient(180deg, #FBE468, #F4D738 55%, #E2C21C) !important; border: 1px solid #C9AA12 !important; border-radius: 12px !important; box-shadow: none !important; text-shadow: none !important; }
.pgs-labs .lb-rm__b { border-radius: 12px !important; }

/* el flujo MCP */
.pgs-labs .lb-flow__n { border-radius: 18px !important; border: 1px solid rgba(255, 255, 255, .1) !important; background: #0B0C10 !important; }
.pgs-labs .lb-flow__n--mid { border-color: rgba(124, 203, 243, .45) !important; background: radial-gradient(80% 80% at 50% 0%, rgba(42, 167, 228, .18), transparent 70%), #0B0C10 !important; box-shadow: 0 30px 70px -30px rgba(42, 167, 228, .6) !important; }
.pgs-labs .lb-flow__n em { color: #7CCBF3 !important; font-family: 'Geist', sans-serif !important; }
.pgs-labs .lb-flow__a { background: linear-gradient(90deg, rgba(124, 203, 243, .1), #7CCBF3, rgba(124, 203, 243, .1)) !important; }

@media (max-width: 900px) {
  .pgs-labs .lb-hero { grid-template-columns: 1fr; }
  .lx-row { grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; }
  .lx-row__n { display: none; }
  .lx-row__glyph { width: 64px; height: 52px; }
  .lx-row__copy { grid-column: 1 / -1; max-width: none; }
  .lx-term__r { grid-template-columns: minmax(0, 1fr) 3rem; } .lx-term__r span { display: none; }
}

/* ═════════════════ BOOK ═════════════════ */
.pgs-book .bkh { display: grid !important; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.bkh__copy { display: grid; gap: 1.1rem; justify-items: start; }
.bkh__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 0; padding: 0; }
.bkh__chips li { padding: .4rem .8rem; border-radius: 999px; font-size: .84rem; color: #EDEEF0; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.bkh__chips li:first-child { color: #141204; background: #F4D738; border-color: #F4D738; font-weight: 600; }
.bkh__who {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; align-items: center; padding: 1.1rem; border-radius: 20px; border: 1px solid transparent;
  background: radial-gradient(90% 90% at 0% 0%, rgba(42, 167, 228, .18), transparent 70%) padding-box, linear-gradient(#0B0C10, #0B0C10) padding-box, linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 85%) border-box;
}
.bkh__who img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #13283A; border: 1px solid rgba(124, 203, 243, .35); }
.bkh__who div { display: grid; gap: .1rem; }
.bkh__who span { font-size: .78rem; color: #9AA1AB; } .bkh__who b { font-size: 1.2rem; font-weight: 600; letter-spacing: -.03em; color: #EDEEF0; } .bkh__who em { font-style: normal; font-size: .8rem; color: #A9AFB8; }
.bkh__live { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin: .2rem 0 0; font-size: .82rem; color: #3DD68C; }
.bkh__live i { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 10px #3DD68C; }

/* el calendario como una app */
.pgs-book .bk { gap: 1rem !important; padding: 1rem; border-radius: 28px; border: 1px solid transparent;
  background: linear-gradient(#090A0D, #090A0D) padding-box, linear-gradient(180deg, rgba(124, 203, 243, .35), rgba(255, 255, 255, .03) 60%) border-box;
  box-shadow: 0 50px 120px -60px rgba(42, 167, 228, .55); }
.pgs-book .bk__box { border-radius: 20px !important; padding: clamp(1.1rem, 2.4vw, 1.6rem) !important; background: #0E1014 !important; border: 1px solid rgba(255, 255, 255, .06) !important; box-shadow: none !important; }
.pgs-book .bk__step i { background: #2AA7E4 !important; color: #fff !important; border: 0 !important; font-style: normal; }
.pgs-book .bk__step.is-done i { background: #3DD68C !important; color: #07080A !important; }
.pgs-book .bk__step b { font-family: 'Geist', sans-serif !important; letter-spacing: -.02em !important; color: #EDEEF0 !important; }
.pgs-book #bkMonth { font-family: 'Geist', sans-serif !important; font-size: 1.15rem !important; letter-spacing: -.02em; color: #EDEEF0 !important; }
.pgs-book .bk__dow { color: #6E747E !important; font-family: 'Geist', sans-serif !important; letter-spacing: 0 !important; }
.pgs-book .bk__c { border-radius: 12px !important; }
.pgs-book .bk__c.is-free { color: #EDEEF0 !important; background: rgba(42, 167, 228, .1) !important; border: 1px solid rgba(124, 203, 243, .3) !important; font-weight: 500; }
.pgs-book .bk__c.is-free:hover { background: rgba(42, 167, 228, .25) !important; }
.pgs-book .bk__c[aria-pressed="true"], .pgs-book .bk__c.is-on { background: #F4D738 !important; color: #141204 !important; border-color: #F4D738 !important; }
.pgs-book .bk__time { border-radius: 10px !important; font-variant-numeric: tabular-nums; }
.pgs-book .bk__time[aria-pressed="true"] { background: #F4D738 !important; color: #141204 !important; border-color: #F4D738 !important; }
.pgs-book .bk__card { background: rgba(255, 255, 255, .02) !important; border-radius: 14px !important; }
.pgs-book .bk__card dt { color: #6E747E !important; font-family: 'Geist', sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
.pgs-book .bk__card dd { color: #EDEEF0 !important; } .pgs-book .bk__card dd.is-empty { color: #6E747E !important; }
.pgs-book .bk__form label { color: #A9AFB8 !important; font-size: .84rem; }
.pgs-book .bk__form input, .pgs-book .bk__form textarea { border-radius: 11px !important; }
.pgs-book .bk__form button[type="submit"] { width: 100%; height: 50px; font-size: 1rem !important; color: #141204 !important; border: 1px solid #C9AA12 !important; text-shadow: none !important;
  background: linear-gradient(180deg, #FBE468, #F4D738 55%, #E2C21C) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 34px -10px rgba(244, 215, 56, .6) !important; }
.pgs-book .bk__note { color: #7E858F !important; }
/* minutos de la llamada como línea de tiempo */
.pgs-book .bkx-mins { position: relative; }
.pgs-book .bkx-min { border: 0 !important; border-top: 2px solid rgba(255, 255, 255, .08) !important; border-radius: 0 !important; background: none !important; padding: 1.2rem 0 0 !important; }
.pgs-book .bkx-min:first-child { border-top-color: #F4D738 !important; }
.pgs-book .bkx-min em { color: #7CCBF3 !important; font-family: 'Geist', sans-serif !important; letter-spacing: 0 !important; font-style: normal; }
.pgs-book .bkx-min b { color: #EDEEF0 !important; font-size: 1.1rem; letter-spacing: -.02em; }
.pgs-book .bkx-min p { color: #A9AFB8 !important; }

@media (max-width: 900px) { .pgs-book .bkh { grid-template-columns: 1fr; } .pgs-book .bk { padding: .5rem; } }
