/* Boomit One · interfaz que envuelve el Radar (barra lateral de módulos + barra superior).
   Usa los tokens de cada página (tema claro u oscuro), así que se adapta sola al estilo de cada estudio. */
.bo-app { --bo-side: 268px; --bo-top: 60px; display: grid; grid-template-columns: var(--bo-side) minmax(0, 1fr); min-height: 100vh; }
.bo-app .site-top-bar { display: none; }
.bo-app .segmented-control { top: var(--bo-top); }
.bo-main { min-width: 0; position: relative; }

/* barra lateral */
.bo-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 60; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 16px;
  background: color-mix(in srgb, var(--color-surface, #fff) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--color-border-subtle, rgba(36,40,77,.09)); color: var(--color-text-primary, #24284D); }
body:not(.theme-light) .bo-side { background: color-mix(in srgb, var(--color-page-background, #1B1E3B) 92%, #000 8%); }
.bo-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; text-decoration: none; }
.bo-brand img { height: 25px; width: auto; }
body:not(.theme-light) .bo-brand img { content: url("/assets/boomit-logo-color-y-blanco.svg"); }
.bo-one { font: 800 12.5px "Poppins", system-ui, sans-serif; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, #3D4EE4, #A084F1 60%, #FF3E46); box-shadow: 0 6px 16px rgba(61,78,228,.25); }
.bo-ws { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--color-border-subtle, rgba(36,40,77,.09));
  background: var(--color-surface-raised, #fff); }
.bo-ws-av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; font: 800 12px "Poppins", sans-serif;
  background: linear-gradient(135deg, #24284D, #3D4EE4); }
.bo-ws-tx { display: flex; flex-direction: column; line-height: 1.25; }
.bo-ws-tx b { font: 700 13.5px "Poppins", sans-serif; }
.bo-ws-tx small { font-size: 11.5px; color: var(--color-text-muted, #666B92); }
.bo-label { font: 700 10.5px "Poppins", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted, #666B92); padding: 12px 10px 6px; }
.bo-navs { display: flex; flex-direction: column; gap: 2px; }
.bo-nav { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 11px; cursor: pointer;
  font: 600 13.5px/1.25 "Poppins", sans-serif; color: var(--color-text-secondary, #474C75); text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s cubic-bezier(.2,.8,.2,1); }
.bo-nav svg { flex: none; }
.bo-nav > span:nth-of-type(1) { flex: 1; }
.bo-nav.is-locked { color: color-mix(in srgb, var(--color-text-secondary, #474C75) 72%, transparent); }
.bo-nav.is-locked:hover, .bo-nav.is-locked:focus-visible { background: var(--color-overlay-faint, rgba(36,40,77,.06)); color: var(--color-text-primary, #24284D); transform: translateX(2px); }
.bo-nav:focus-visible { outline: 2px solid var(--color-accent, #3D4EE4); outline-offset: 1px; }
.bo-nav.is-active { color: var(--color-accent, #3D4EE4); background: linear-gradient(90deg, color-mix(in srgb, var(--color-accent, #3D4EE4) 14%, transparent), color-mix(in srgb, var(--color-accent, #3D4EE4) 4%, transparent)); }
.bo-nav.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--color-accent, #3D4EE4); }
.bo-live { font: 700 10px "Poppins", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #0B8A66; background: color-mix(in srgb, #0B8A66 13%, transparent); padding: 2px 7px; border-radius: 999px; }
body:not(.theme-light) .bo-live { color: #36EAA9; background: rgba(54,234,169,.14); }
.bo-lock { display: inline-flex; opacity: .75; }
.bo-lock svg { width: 15px; height: 15px; }
.bo-shackle { transition: transform .25s cubic-bezier(.2,.8,.2,1); transform-box: view-box; transform-origin: 16px 11px; }
.bo-nav.is-locked:hover .bo-shackle { transform: translateY(-2px) rotate(14deg); }
.bo-sources { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 2px; }
.bo-sources li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.bo-sources span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; font: 600 12.5px "Poppins", sans-serif; }
.bo-sources small { font: 400 11.5px "Roboto", sans-serif; color: var(--color-text-muted, #666B92); }
.bo-src { width: 18px; height: 18px; flex: none; }
.bo-dot { width: 7px; height: 7px; border-radius: 50%; background: #12B76A; flex: none; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .bo-dot { animation: bo-live 2.4s ease-out infinite; } }
@keyframes bo-live { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.45); } 70% { box-shadow: 0 0 0 7px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
.bo-foot { margin-top: auto; padding: 14px 10px 0; font-size: 11.5px; color: var(--color-text-muted, #666B92); border-top: 1px solid var(--color-border-subtle, rgba(36,40,77,.09)); }

/* barra superior */
.bo-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; height: var(--bo-top); padding: 0 clamp(16px, 3vw, 32px);
  background: var(--color-header-glass, rgba(244,244,246,.86)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-subtle, rgba(36,40,77,.09)); }
.bo-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; font: 500 13.5px "Poppins", sans-serif; color: var(--color-text-muted, #666B92); }
.bo-crumbs a { color: inherit; text-decoration: none; }
.bo-crumbs a:hover { color: var(--color-text-primary, #24284D); }
.bo-crumbs b { color: var(--color-text-primary, #24284D); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.bo-sep { opacity: .5; }
.bo-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bo-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font: 600 12.5px "Poppins", sans-serif; white-space: nowrap;
  color: var(--color-text-secondary, #474C75); background: var(--color-surface, #fff); border: 1px solid var(--color-border-subtle, rgba(36,40,77,.09)); }
.bo-btn { padding: 7px 14px; border-radius: 999px; font: 700 12.5px "Poppins", sans-serif; text-decoration: none; white-space: nowrap; color: #fff; background: #24284D;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; }
body:not(.theme-light) .bo-btn { color: #1B1E3B; background: #E8FB8C; }
.bo-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(36,40,77,.25); }
.bo-toggle { all: unset; display: none; }

/* módulo bloqueado */
.bo-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(27,30,59,.45); backdrop-filter: blur(6px); }
.bo-modal[hidden] { display: none; }
.bo-card { position: relative; width: min(440px, 100%); padding: 28px 26px 24px; border-radius: 24px; background: #fff; color: #24284D; box-shadow: 0 30px 80px rgba(27,30,59,.35); }
@media (prefers-reduced-motion: no-preference) { .bo-modal:not([hidden]) .bo-card { animation: bo-pop .38s cubic-bezier(.2,1.2,.4,1); } }
@keyframes bo-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.bo-close { all: unset; cursor: pointer; position: absolute; top: 12px; right: 16px; font-size: 26px; line-height: 1; color: #666B92; }
.bo-modal-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3D4EE4, #5B3FD9); margin-bottom: 14px; }
.bo-modal-ico svg { width: 22px; height: 22px; }
.bo-eyebrow { font: 700 11.5px "Poppins", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #D42A33; }
.bo-card h3 { font: 800 22px/1.2 "Poppins", sans-serif; margin: 6px 0 0; }
.bo-card p { margin: 8px 0 0; color: #474C75; font-size: 15px; line-height: 1.55; }
.bo-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; height: 74px; margin: 18px 0 6px; padding: 12px; border-radius: 14px; background: #F4F4F6; filter: blur(1.5px); }
.bo-preview i { display: block; border-radius: 6px; background: linear-gradient(180deg, #A084F1, #3D4EE4); opacity: .55; }
.bo-preview i:nth-child(1) { height: 40%; } .bo-preview i:nth-child(2) { height: 70%; } .bo-preview i:nth-child(3) { height: 55%; } .bo-preview i:nth-child(4) { height: 90%; }
.bo-note { font-size: 13px !important; color: #666B92 !important; }
.bo-cta { display: block; margin-top: 14px; padding: 14px 18px; border-radius: 999px; text-align: center; font: 700 15px "Poppins", sans-serif; color: #fff; background: #3D4EE4; text-decoration: none; }

/* celular: menú lateral desplegable */
@media (max-width: 960px) {
  .bo-app { grid-template-columns: 1fr; }
  .bo-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 20px 60px rgba(27,30,59,.25); }
  .bo-app.bo-open .bo-side { transform: none; }
  .bo-toggle { display: inline-grid; gap: 4px; cursor: pointer; padding: 8px; margin-left: -8px; }
  .bo-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--color-text-primary, #24284D); }
  .bo-crumbs > a:first-child, .bo-crumbs > .bo-sep:nth-of-type(1) { display: none; }
  .bo-chip { display: none; }
}
@media (max-width: 560px) { .bo-btn { display: none; } }

/* impresión: sin la interfaz */
@media print { .bo-app { display: block; } .bo-side, .bo-top, .bo-modal { display: none !important; } }

/* portada: módulo "Radares de mercado" */
.bo-radars { padding: 0 clamp(16px, 3vw, 36px) 40px; max-width: 1240px; }
.bo-module-head { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px) 0 8px; }
.bo-module-ribbon { position: absolute; top: -20px; right: -60px; width: 70%; max-width: 860px; pointer-events: none; opacity: .85; }
.bo-module-inner { position: relative; }
.bo-module-title { font: 800 clamp(30px, 4.2vw, 50px)/1.06 "Poppins", sans-serif; margin-top: 12px; max-width: 920px; letter-spacing: -.01em; }
.bo-module-title em { font-style: normal; color: var(--color-accent, #3D4EE4); }
.bo-module-sub { margin-top: 12px; max-width: 740px; font-size: 17px; line-height: 1.55; color: var(--color-text-secondary, #474C75); }
.bo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .bo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bo-stats > div { padding: 16px 18px; border-radius: 16px; background: var(--color-surface, #fff); border: 1px solid var(--color-border-subtle, rgba(36,40,77,.09));
  box-shadow: 0 1px 2px rgba(36,40,77,.04), 0 8px 22px rgba(36,40,77,.05); }
.bo-stats b { display: block; font: 800 30px/1 "Poppins", sans-serif; color: var(--color-accent, #3D4EE4); }
.bo-stats span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--color-text-secondary, #474C75); }
.bo-section { margin-top: 36px; }
.bo-section-title { font: 700 19px "Poppins", sans-serif; margin-bottom: 14px; }
.bo-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--color-surface, #fff); border: 1px solid var(--color-border-subtle, rgba(36,40,77,.09));
  box-shadow: 0 1px 2px rgba(36,40,77,.05), 0 18px 50px rgba(61,78,228,.12); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.bo-feature:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(36,40,77,.05), 0 26px 60px rgba(61,78,228,.18); }
@media (max-width: 860px) { .bo-feature { grid-template-columns: 1fr; } }
.bo-feature-img { background: #EEF0FC; aspect-ratio: 1200 / 630; overflow: hidden; }
.bo-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bo-feature:hover .bo-feature-img img { transform: scale(1.03); }
.bo-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(20px, 3vw, 36px); }
.bo-badge { align-self: flex-start; font: 700 11px "Poppins", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #FF3E46, #A084F1); }
.bo-feature-eyebrow { font: 600 13px "Poppins", sans-serif; color: var(--color-text-muted, #666B92); }
.bo-feature-title { font: 800 clamp(20px, 2.2vw, 28px)/1.2 "Poppins", sans-serif; }
.bo-feature-cta { font: 700 14px "Poppins", sans-serif; color: var(--color-accent, #3D4EE4); margin-top: 4px; }
.bo-radar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bo-radar { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; text-decoration: none; color: inherit;
  background: var(--color-surface, #fff); border: 1px solid var(--color-border-subtle, rgba(36,40,77,.09));
  box-shadow: 0 1px 2px rgba(36,40,77,.04), 0 8px 22px rgba(36,40,77,.05); transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s; }
a.bo-radar:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--color-accent, #3D4EE4) 40%, transparent); }
.bo-radar-flag { font-size: 26px; line-height: 1; }
.bo-radar-eyebrow { font: 600 12.5px "Poppins", sans-serif; color: var(--color-text-muted, #666B92); }
.bo-radar-title { font: 700 15.5px/1.35 "Poppins", sans-serif; }
.bo-radar.is-upcoming { border-style: dashed; background: transparent; box-shadow: none; }
.bo-radar.is-upcoming .bo-radar-title { font-weight: 500; font-size: 14px; color: var(--color-text-secondary, #474C75); }
/* Boomit AI: módulo destacado */
.bo-nav[data-bo-module="ai"] svg { color: #fff; background: linear-gradient(135deg, #3D4EE4, #A084F1 60%, #FF3E46); border-radius: 6px; padding: 2px; box-sizing: content-box; width: 16px; height: 16px; }

/* radar destacado: una sola pieza (la imagen y el texto comparten fondo, sin repetir el titular) */
.bo-feature { background: #24284D; border: 0; color: #fff; }
.bo-feature-img { background: #24284D; }
.bo-feature-body { background: linear-gradient(90deg, #24284D 0%, #2C3160 100%); }
.bo-feature-eyebrow { color: #C9CBE0; }
.bo-feature-sub { font-size: 16px; line-height: 1.55; color: #C9CBE0; }
.bo-feature-cta { align-self: flex-start; margin-top: 8px; padding: 10px 18px; border-radius: 999px; background: #E8FB8C; color: #24284D; }
