/* K — Explorar RTM · jerarquía Hogar anidada v1.2.7.7.3 */
.rtm-k-explore-launch-panel .rtm-k-explore-launch-note{
  border:1px solid #fed7aa;
  background:#fff7ed;
  color:#7c2d12;
  border-radius:16px;
  padding:13px 15px;
  margin:0 0 18px;
  font-size:14px;
  line-height:1.45;
}
.rtm-k-explore-launch-panel .rtm-k-launch-link{
  font-weight:800;
  color:#0b5cad !important;
  text-decoration:none;
}
.rtm-k-explore-launch-panel .rtm-k-launch-link:hover{ text-decoration:underline; }
.rtm-k-explore-launch-panel .rtm-k-explore-map-message{
  margin:8px 0 0;
  color:#7c2d12;
  font-size:13px;
  line-height:1.45;
  max-width:980px;
}

.rtm-k-explore-launch-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.rtm-k-explore-launch-actions .rtm-k-launch-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 11px;
  border-radius:999px;
  border:1px solid #d9e2ec;
  background:#fff;
  color:#172033 !important;
  text-decoration:none;
  font-weight:800;
  line-height:1;
}
.rtm-k-explore-launch-actions .rtm-k-launch-button-primary{
  background:#0056b3;
  border-color:#0056b3;
  color:#fff !important;
}
.rtm-k-explore-launch-panel .rtm-k-launch-badge{
  display:inline-flex;
  align-items:center;
  margin-left:7px;
  vertical-align:middle;
  border-radius:999px;
  padding:4px 7px;
  font-size:11px;
  line-height:1;
  font-weight:850;
  border:1px solid #e2e8f0;
  color:#475569;
  background:#f8fafc;
  white-space:nowrap;
}
.rtm-k-explore-launch-panel .rtm-k-launch-badge-green{
  background:#ecfdf3;
  border-color:#bbf7d0;
  color:#166534;
}
.rtm-k-explore-launch-panel .rtm-k-launch-badge-orange{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}
.rtm-k-explore-launch-panel .rtm-k-launch-badge-muted{
  background:#f8fafc;
  color:#64748b;
}
.rtm-k-explore-launch-panel a.rtm-k-launch-active-portal,
.rtm-k-explore-launch-panel a.rtm-k-launch-active-topic,
.rtm-k-explore-launch-panel a.rtm-k-launch-active-route{
  font-weight:850 !important;
  color:#0f172a !important;
}
.rtm-k-explore-launch-panel .rtm-k-launch-subroutes{
  margin:8px 0 0 0;
  padding-left:0;
  list-style:none;
}
.rtm-k-explore-launch-panel .rtm-k-launch-subroutes li{
  margin:7px 0 0;
}
.rtm-k-explore-launch-panel .rtm-k-launch-route-link{
  color:#0b5cad !important;
  font-weight:850;
  text-decoration:none;
}
.rtm-k-explore-launch-panel .rtm-k-launch-route-link:hover{ text-decoration:underline; }

@media(max-width:760px){
  .rtm-k-explore-launch-actions{ flex-direction:column; }
  .rtm-k-explore-launch-actions .rtm-k-launch-button{ width:100%; }
  .rtm-k-explore-launch-panel .rtm-k-launch-badge{ margin-left:0; margin-top:6px; }
}

/* v1.2.7.7.2: ocultar encabezado duplicado interno del mega menú, sin tocar el título superior. */
.rtm-k-explore-launch-panel .rtm-k-duplicate-explore-heading{display:none!important;}
/* Contraste accesible para la ruta secundaria naranja. */
.rtm-k-explore-launch-actions .rtm-k-launch-button-secondary-route{background:#c2410c!important;border-color:#c2410c!important;color:#fff!important;}

/* v1.2.7.7.2: 8 rutas lavadoras visibles sin convertir Explorar en catálogo infinito. */
.rtm-k-explore-launch-panel .rtm-k-launch-subroutes{max-width:420px;}

/* v1.2.7.7.2: jerarquía compacta de Hogar dentro de Explorar. */
.rtm-k-explore-launch-panel .rtm-k-hogar-hierarchy-hint{
  margin:5px 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
  max-width:260px;
}
.rtm-k-explore-launch-panel a.rtm-k-launch-active-family{
  font-weight:900!important;
  color:#0f172a!important;
}
.rtm-k-explore-launch-panel a.rtm-k-launch-family-expansion{
  color:#475569!important;
}


/* v1.2.7.7.3: mostrar las familias como jerarquía dentro de Hogar, no como portales sueltos. */
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row{
  position:relative;
  padding-left:16px!important;
  margin-top:8px!important;
  border-left:3px solid #d9e2ec;
}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row:before{
  content:'';
  position:absolute;
  left:0;
  top:14px;
  width:10px;
  border-top:2px solid #d9e2ec;
}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-active{
  border-left-color:#f59e0b;
  background:linear-gradient(90deg,rgba(255,247,237,.9),rgba(255,255,255,0));
  border-radius:0 12px 12px 0;
  padding-top:6px!important;
  padding-bottom:6px!important;
}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-active:before{border-top-color:#f59e0b;}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-active .rtm-k-hogar-hierarchy-hint{
  max-width:360px;
  color:#7c2d12;
}
.rtm-k-explore-launch-panel a.rtm-k-launch-active-family:before{
  content:'↳ ';
  color:#9a3412;
  font-weight:900;
}


/* v1.2.7.7.4: Explorar muestra solo portales y familias padre. Las rutas quedan dentro del portal y buscador. */
.rtm-k-explore-parent-only-note .rtm-k-launch-badge{margin-left:4px;}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-parent-only{
  border-left:0!important;
  padding-left:0!important;
  margin-top:10px!important;
  background:transparent!important;
  border-radius:0!important;
}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-parent-only:before{display:none!important;}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-active-parent-only{
  border-left:0!important;
  background:transparent!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
.rtm-k-explore-launch-panel a.rtm-k-launch-active-family:before{content:''!important;}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-parent-only > a{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.rtm-k-explore-launch-panel .rtm-k-hogar-family-row-active-parent-only > a{
  color:#0f172a!important;
  font-weight:900!important;
}
.rtm-k-explore-launch-panel .rtm-k-hogar-hierarchy-hint{
  margin:6px 0 0;
  max-width:320px;
  color:#7c2d12;
  font-size:12px;
  line-height:1.35;
}

/* v1.2.7.7.5: base global de 9 portales. Cada familia muestra paquete mínimo de 8 rutas en preparación, salvo Lavadoras. */
.rtm-k-explore-launch-panel.rtm-k-explore-global-base-panel .rtm-k-explore-global-base-note{
  border-color:#fed7aa;
  background:#fff7ed;
}
.rtm-k-explore-launch-panel .rtm-k-global-family-row{
  margin-top:6px!important;
}
.rtm-k-explore-launch-panel a.rtm-k-global-family{
  color:#475569!important;
  text-decoration:none!important;
}
.rtm-k-explore-launch-panel a.rtm-k-global-family:hover{text-decoration:underline!important;}
.rtm-k-explore-launch-panel a.rtm-k-global-family-active{
  color:#0f172a!important;
  font-weight:900!important;
}
.rtm-k-explore-launch-panel .rtm-k-global-family-row-active{
  background:linear-gradient(90deg,rgba(255,247,237,.9),rgba(255,255,255,0));
  border-radius:10px;
  padding:5px 8px!important;
}
.rtm-k-explore-launch-panel .rtm-k-portal-active{font-weight:900!important;color:#0f172a!important;}
.rtm-k-explore-launch-panel .rtm-k-portal-expansion{font-weight:850!important;}
.rtm-k-explore-launch-panel .rtm-k-launch-badge-muted{
  background:#f8fafc!important;
  color:#64748b!important;
  border-color:#e2e8f0!important;
}
.rtm-k-explore-launch-panel .rtm-k-launch-badge-orange{
  background:#fff7ed!important;
  border-color:#fed7aa!important;
  color:#9a3412!important;
}


/* v1.2.7.8: el badge Portal activo pertenece al título del portal, no a la última familia visible. */
.rtm-k-explore-launch-panel .rtm-k-portal-active + .rtm-k-launch-badge-green{
  margin-left:8px;
  vertical-align:middle;
}
.rtm-k-explore-launch-panel .rtm-k-global-family-row > .rtm-k-launch-badge-green{
  display:none!important;
}


/* v1.2.7.10.2: Explorar 288 visible y enlazado para usuario final. */
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel a.rtm-k-family-linked{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#334155!important;
  font-weight:750!important;
  text-decoration:none!important;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel a.rtm-k-family-linked:hover{
  color:#0056b3!important;
  text-decoration:underline!important;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel a.rtm-k-family-linked:after{
  content:'›';
  font-weight:900;
  color:#0056b3;
  opacity:.75;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-linked-family-row{
  margin-top:7px!important;
  line-height:1.35;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-launch-badge[data-rtm-badge-context="family"]{
  display:inline-flex!important;
  margin-left:7px!important;
}
.rtm-k-explore-launch-panel .rtm-k-launch-badge-blue{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#1e3a8a!important;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-family-mini-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:7px;
  padding:3px 7px;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#f8fbff;
  color:#0056b3!important;
  font-size:11px;
  font-weight:850;
  line-height:1;
  text-decoration:none!important;
  white-space:nowrap;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-family-mini-action:hover{
  background:#0056b3;
  color:#fff!important;
  border-color:#0056b3;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-portal-active,
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-portal-expansion{
  text-decoration:none!important;
}
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-portal-active:hover,
.rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-portal-expansion:hover{
  color:#0056b3!important;
  text-decoration:underline!important;
}
@media(max-width:760px){
  .rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-linked-family-row{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    align-items:center!important;
  }
  .rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-launch-badge[data-rtm-badge-context="family"],
  .rtm-k-explore-launch-panel.rtm-k-explore-linked-288-panel .rtm-k-family-mini-action{
    margin-left:0!important;
  }
}

/* v1.2.7.10.2: Explorar limpio para usuario final.
   Las familias/categorías ya no abren una landing genérica de portal con query rtm_family.
   Abren Buscar solución con contexto para guías, diagnósticos, lecciones y relacionados. */
.rtm-k-explore-clean-category-panel .rtm-k-family-mini-action,
.rtm-k-explore-clean-category-panel .rtm-k-launch-badge[data-rtm-badge-context="family"],
.rtm-k-explore-clean-category-panel .rtm-k-hogar-hierarchy-hint{
  display:none!important;
}
.rtm-k-explore-clean-category-panel a.rtm-k-global-family{
  display:inline-flex!important;
  align-items:center!important;
  color:#475569!important;
  font-weight:650!important;
  text-decoration:none!important;
  line-height:1.35!important;
  border-radius:8px!important;
  padding:2px 4px!important;
}
.rtm-k-explore-clean-category-panel a.rtm-k-global-family:hover,
.rtm-k-explore-clean-category-panel a.rtm-k-global-family:focus{
  color:#0056b3!important;
  background:#eff6ff!important;
  text-decoration:none!important;
  outline:2px solid transparent!important;
}
.rtm-k-explore-clean-category-panel a.rtm-k-global-family:after{
  content:'›';
  margin-left:6px;
  font-weight:900;
  color:#94a3b8;
}
.rtm-k-explore-clean-category-panel .rtm-k-global-family-row,
.rtm-k-explore-clean-category-panel .rtm-k-linked-family-row{
  margin-top:7px!important;
  background:transparent!important;
  padding:0!important;
}
.rtm-k-explore-clean-category-panel .rtm-k-global-family-row-active,
.rtm-k-explore-clean-category-panel .rtm-k-hogar-family-row-active-parent-only{
  background:transparent!important;
  padding:0!important;
}
.rtm-k-explore-clean-category-panel .rtm-k-explore-map-message{
  max-width:1020px;
}


/* v1.2.7.10.3: Explorar Hub 9P visual.
   Diferencia claramente PORTALES (tarjetas madre) de CATEGORÍAS (chips/enlaces de entrada).
   Comunica que ReparaTuMundo es Hub de Soluciones amplio: salud, viajes, educación, negocio, tecnología, apps, servicios y hogar, no solo reparaciones. */
.rtm-k-explore-hub-9p-panel{
  --rtm-k-blue:#0056b3;
  --rtm-k-ink:#0f172a;
  --rtm-k-muted:#64748b;
  --rtm-k-line:#e2e8f0;
  --rtm-k-card:#ffffff;
  --rtm-k-soft:#f8fbff;
}
.rtm-k-explore-hub-9p-panel .rtm-k-explore-launch-note{
  border-color:#bfdbfe!important;
  background:linear-gradient(135deg,#eff6ff,#fff7ed)!important;
  color:#172033!important;
  box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-explore-launch-note strong{
  color:var(--rtm-k-ink)!important;
  font-size:15px!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-explore-map-message{
  color:#334155!important;
  max-width:1060px!important;
}
.rtm-k-explore-hub-9p-panel > ul,
.rtm-k-explore-hub-9p-panel .sub-menu,
.rtm-k-explore-hub-9p-panel .rtmhp-mega-row{
  gap:14px!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card{
  position:relative!important;
  background:var(--rtm-k-card)!important;
  border:1px solid var(--rtm-k-line)!important;
  border-radius:18px!important;
  padding:14px 14px 12px!important;
  box-shadow:0 8px 22px rgba(15,23,42,.055)!important;
  min-height:210px!important;
  overflow:hidden!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card:before{
  content:'PORTAL';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf2ff;
  color:#174ea6;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card > a.rtm-k-portal-title-link{
  display:block!important;
  color:var(--rtm-k-ink)!important;
  font-weight:950!important;
  font-size:16px!important;
  line-height:1.15!important;
  text-decoration:none!important;
  margin:0 0 6px!important;
  padding:0!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card > a.rtm-k-portal-title-link:hover,
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card > a.rtm-k-portal-title-link:focus{
  color:var(--rtm-k-blue)!important;
  text-decoration:none!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-meta{
  color:var(--rtm-k-muted)!important;
  font-size:12px!important;
  line-height:1.35!important;
  margin:2px 0 10px!important;
  max-width:260px!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card > .rtm-k-launch-badge[data-rtm-badge-context="portal"]{
  display:none!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-route-badge{
  position:absolute!important;
  top:13px!important;
  right:12px!important;
  margin:0!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card > ul,
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card > .sub-menu{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  margin:10px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-category-row,
.rtm-k-explore-hub-9p-panel .rtm-k-linked-family-row{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.rtm-k-explore-hub-9p-panel a.rtm-k-global-family,
.rtm-k-explore-hub-9p-panel a.rtm-k-family-linked{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  box-sizing:border-box!important;
  border:1px solid #dbeafe!important;
  background:var(--rtm-k-soft)!important;
  color:#26364d!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.2!important;
  border-radius:12px!important;
  padding:8px 10px!important;
  text-decoration:none!important;
}
.rtm-k-explore-hub-9p-panel a.rtm-k-global-family:before,
.rtm-k-explore-hub-9p-panel a.rtm-k-family-linked:before{
  content:'Categoría';
  flex:0 0 auto;
  order:2;
  padding:3px 6px;
  border-radius:999px;
  background:#fff;
  color:#64748b;
  border:1px solid #e2e8f0;
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.rtm-k-explore-hub-9p-panel a.rtm-k-global-family:after,
.rtm-k-explore-hub-9p-panel a.rtm-k-family-linked:after{
  content:'›'!important;
  order:3;
  flex:0 0 auto;
  margin-left:0!important;
  color:var(--rtm-k-blue)!important;
  opacity:.9!important;
  font-size:16px!important;
}
.rtm-k-explore-hub-9p-panel a.rtm-k-global-family:hover,
.rtm-k-explore-hub-9p-panel a.rtm-k-family-linked:hover,
.rtm-k-explore-hub-9p-panel a.rtm-k-global-family:focus,
.rtm-k-explore-hub-9p-panel a.rtm-k-family-linked:focus{
  background:#eaf2ff!important;
  border-color:#93c5fd!important;
  color:#003f87!important;
  transform:translateY(-1px);
  box-shadow:0 8px 16px rgba(0,86,179,.08)!important;
  outline:2px solid transparent!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-launch-badge[data-rtm-badge-context="family"],
.rtm-k-explore-hub-9p-panel .rtm-k-family-mini-action{
  display:none!important;
}
@media(min-width:900px){
  .rtm-k-explore-hub-9p-panel > ul,
  .rtm-k-explore-hub-9p-panel .rtmhp-mega-row{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(240px,1fr))!important;
  }
}
@media(min-width:1200px){
  .rtm-k-explore-hub-9p-panel > ul,
  .rtm-k-explore-hub-9p-panel .rtmhp-mega-row{
    grid-template-columns:repeat(3,minmax(260px,1fr))!important;
  }
}
@media(max-width:760px){
  .rtm-k-explore-hub-9p-panel .rtm-k-portal-card{
    min-height:0!important;
    padding:12px!important;
  }
  .rtm-k-explore-hub-9p-panel .rtm-k-portal-route-badge{
    position:static!important;
    display:inline-flex!important;
    margin:0 0 8px!important;
  }
  .rtm-k-explore-hub-9p-panel a.rtm-k-global-family:before,
  .rtm-k-explore-hub-9p-panel a.rtm-k-family-linked:before{
    display:none!important;
  }
}

/* K v1.2.7.10.4: las categorías enlazan a /explorar-rutas/{portal}/{familia}/ para mostrar guías, diagnósticos y lecciones de la categoría, no una página genérica. */

/* K v1.2.7.10.6: scroll seguro de Explorar RTM dentro del viewport.
   Corrige el caso en el que la vista Hub 9P supera la altura de pantalla y los últimos portales quedan tapados.
   Solo afecta al desplegable Explorar RTM; no toca portal pages, Elementor, C ni Snapshot Bridge. */
.rtm-k-explore-launch-item > .rtmhp-mega,
.rtm-k-explore-launch-item.rtmhp-no-inner-scroll > .rtmhp-mega,
.rtm-k-explore-launch-item.rtmhp-mega-fixed > .rtmhp-mega{
  max-height:calc(100vh - 118px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
}
.rtm-k-explore-launch-item .rtmhp-mega-inner,
.rtm-k-explore-launch-item.rtmhp-no-inner-scroll .rtmhp-mega-inner,
.rtm-k-explore-launch-item .rtm-k-explore-hub-9p-panel{
  max-height:none!important;
  overflow:visible!important;
}
.rtm-k-explore-launch-item > .rtmhp-mega::-webkit-scrollbar{
  width:10px;
}
.rtm-k-explore-launch-item > .rtmhp-mega::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}
.rtm-k-explore-launch-item > .rtmhp-mega::-webkit-scrollbar-track{
  background:#f8fafc;
  border-radius:999px;
}
@media(max-height:760px){
  .rtm-k-explore-launch-item > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-no-inner-scroll > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-mega-fixed > .rtmhp-mega{
    max-height:calc(100vh - 96px)!important;
  }
  .rtm-k-explore-hub-9p-panel .rtm-k-portal-card{
    min-height:0!important;
  }
}
@media(max-width:760px){
  .rtm-k-explore-launch-item > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-no-inner-scroll > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-mega-fixed > .rtmhp-mega{
    max-height:calc(100vh - 86px)!important;
  }
}


/* K v1.2.7.10.7: scroll bottom safe para Explorar RTM.
   En pantallas con barra de tareas, admin bar o viewport bajo, el panel anterior podía quedar visualmente cortado abajo.
   Reducimos la altura máxima efectiva y añadimos colchón inferior interno para que el último portal pueda verse completo al hacer scroll.
   Solo afecta al desplegable Explorar RTM; no toca enlaces, páginas, Elementor, C, Snapshot Bridge, WooCommerce ni WCFM. */
.rtm-k-explore-launch-item > .rtmhp-mega,
.rtm-k-explore-launch-item.rtmhp-no-inner-scroll > .rtmhp-mega,
.rtm-k-explore-launch-item.rtmhp-mega-fixed > .rtmhp-mega{
  max-height:min(72dvh, calc(100dvh - 190px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:72px!important;
  box-sizing:border-box!important;
  scroll-padding-bottom:96px!important;
}
.rtm-k-explore-launch-item .rtmhp-mega-inner{
  padding-bottom:84px!important;
  box-sizing:border-box!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-hub-9p-panel{
  padding-bottom:40px!important;
}
@media(max-height:820px){
  .rtm-k-explore-launch-item > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-no-inner-scroll > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-mega-fixed > .rtmhp-mega{
    max-height:calc(100dvh - 170px)!important;
    padding-bottom:88px!important;
  }
}
@media(max-height:700px){
  .rtm-k-explore-launch-item > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-no-inner-scroll > .rtmhp-mega,
  .rtm-k-explore-launch-item.rtmhp-mega-fixed > .rtmhp-mega{
    max-height:calc(100dvh - 140px)!important;
    padding-bottom:104px!important;
  }
}


/* K v1.2.7.10.8: scroll accesible sin rueda de ratón.
   Añade barra visible, foco por teclado, botones subir/bajar y soporte táctil.
   Mantiene intacta la jerarquía Hub 9P, enlaces /explorar-rutas/ y páginas de portal. */
.rtm-k-explore-launch-item > .rtmhp-mega.rtm-k-explore-scrollbox,
.rtm-k-explore-launch-item.rtmhp-no-inner-scroll > .rtmhp-mega.rtm-k-explore-scrollbox,
.rtm-k-explore-launch-item.rtmhp-mega-fixed > .rtmhp-mega.rtm-k-explore-scrollbox{
  scrollbar-width:thin!important;
  scrollbar-color:#7aa7df #eef6ff!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  scroll-behavior:smooth!important;
  outline:none!important;
}
.rtm-k-explore-launch-item > .rtmhp-mega.rtm-k-explore-scrollbox:focus,
.rtm-k-explore-launch-item > .rtmhp-mega.rtm-k-explore-scrollbox:focus-visible{
  box-shadow:0 0 0 3px rgba(0,86,179,.18), 0 22px 60px rgba(15,23,42,.16)!important;
}
.rtm-k-explore-scroll-controls{
  position:sticky!important;
  bottom:10px!important;
  z-index:40!important;
  display:flex!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:8px 4px 0!important;
  pointer-events:none!important;
}
.rtm-k-explore-scroll-btn{
  pointer-events:auto!important;
  appearance:none!important;
  border:1px solid #bfdbfe!important;
  background:#fff!important;
  color:#0f3f7a!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  padding:10px 12px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.10)!important;
  cursor:pointer!important;
}
.rtm-k-explore-scroll-btn:hover,
.rtm-k-explore-scroll-btn:focus{
  background:#eef6ff!important;
  outline:2px solid rgba(0,86,179,.28)!important;
  outline-offset:2px!important;
}
.rtm-k-explore-scroll-help{
  position:sticky!important;
  bottom:54px!important;
  z-index:39!important;
  margin:10px 4px 0 auto!important;
  width:max-content!important;
  max-width:min(520px,92%)!important;
  color:#475569!important;
  background:rgba(248,250,252,.96)!important;
  border:1px solid #dbeafe!important;
  border-radius:12px!important;
  padding:7px 10px!important;
  font-size:11px!important;
  font-weight:750!important;
  box-shadow:0 6px 14px rgba(15,23,42,.06)!important;
}
@media(max-width:760px){
  .rtm-k-explore-scroll-controls{justify-content:center!important;}
  .rtm-k-explore-scroll-btn{padding:11px 14px!important;}
  .rtm-k-explore-scroll-help{margin-left:auto!important;margin-right:auto!important;text-align:center!important;}
}

/* K v1.2.7.10.9: controles de scroll sin solapar contenido.
   Los botones Subir/Bajar pasan a una banda superior en flujo normal: no flotan sobre tarjetas, CTAs ni categorías.
   Se mantiene soporte por barra lateral, teclado, touch y rueda. */
.rtm-k-explore-scroll-toolbar{
  position:relative!important;
  z-index:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 12px!important;
  padding:8px 10px!important;
  border:1px solid #dbeafe!important;
  border-radius:14px!important;
  background:#f8fbff!important;
  box-shadow:0 4px 12px rgba(15,23,42,.045)!important;
  box-sizing:border-box!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-help{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  margin:0!important;
  width:auto!important;
  max-width:none!important;
  flex:1 1 auto!important;
  color:#475569!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1.35!important;
  box-shadow:none!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-controls{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  padding:0!important;
  pointer-events:auto!important;
  flex:0 0 auto!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-btn{
  pointer-events:auto!important;
  white-space:nowrap!important;
}
.rtm-k-explore-launch-item > .rtmhp-mega.rtm-k-explore-scrollbox{
  scroll-padding-top:70px!important;
}
@media(max-width:760px){
  .rtm-k-explore-scroll-toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
    text-align:center!important;
  }
  .rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-controls{
    justify-content:center!important;
  }
}


/* K v1.2.7.10.10: controles inteligentes y condicionales de scroll.
   Mantiene la solución sin solapamiento: banda superior sticky dentro del flujo del desplegable.
   Estado arriba: solo Bajar. Estado intermedio: Subir y Bajar. Estado final: solo Subir. */
.rtm-k-explore-launch-item > .rtmhp-mega.rtm-k-explore-scrollbox{
  scroll-padding-top:76px!important;
}
.rtm-k-explore-scroll-toolbar{
  position:sticky!important;
  top:0!important;
  z-index:70!important;
  min-height:42px!important;
  margin:0 0 14px!important;
  padding:7px 9px!important;
  background:rgba(248,251,255,.985)!important;
  backdrop-filter:saturate(140%) blur(4px)!important;
  border:1px solid #dbeafe!important;
  box-shadow:0 8px 18px rgba(15,23,42,.055)!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-help{
  font-size:10.5px!important;
  line-height:1.25!important;
  color:#64748b!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-controls{
  gap:6px!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:950!important;
  color:#0f3f7a!important;
  background:#fff!important;
  border:1px solid #bfdbfe!important;
  box-shadow:0 7px 16px rgba(15,23,42,.11)!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-btn:hover,
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-btn:focus-visible{
  background:#eaf2ff!important;
  border-color:#7fb4f0!important;
  outline:2px solid rgba(0,86,179,.22)!important;
  outline-offset:2px!important;
}
.rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-btn[hidden]{
  display:none!important;
}
.rtm-k-explore-scrollbox.rtm-k-scroll-no-scroll .rtm-k-explore-scroll-toolbar{
  display:none!important;
}
@media(max-width:760px){
  .rtm-k-explore-scroll-toolbar{
    position:sticky!important;
    top:0!important;
    flex-direction:row!important;
    align-items:center!important;
    text-align:left!important;
  }
  .rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-help{
    font-size:10px!important;
  }
  .rtm-k-explore-scroll-toolbar .rtm-k-explore-scroll-controls{
    justify-content:flex-end!important;
  }
}


/* K v1.2.7.10.20: Explorar 9P Hierarchy + Pixel Perfect Safe.
   Academia se conserva como CTA secundario; los 9 portales vuelven a mandar visualmente. */
.rtm-k-explore-hub-9p-panel .rtm-k-academia-direct-demoted{
  display:none!important;
}
.rtm-k-explore-launch-panel .rtm-k-explore-launch-actions .rtm-k-launch-button-academia{
  background:#ffffff!important;
  color:#174ea6!important;
  border:1px solid #bfdbfe!important;
  box-shadow:none!important;
}
.rtm-k-explore-launch-panel .rtm-k-explore-launch-actions .rtm-k-launch-button-academia:before{
  content:'Formación';
  display:inline-flex;
  margin-right:8px;
  padding:2px 6px;
  border-radius:999px;
  background:#eff6ff;
  color:#174ea6;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.rtm-k-explore-hub-9p-panel{
  padding-bottom:112px!important;
}
.rtm-k-explore-launch-item .rtmhp-mega-inner{
  padding-bottom:148px!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-card{
  height:auto!important;
  min-height:232px!important;
  overflow:visible!important;
  padding-bottom:18px!important;
}
.rtm-k-explore-hub-9p-panel .rtm-k-portal-meta{
  color:#475569!important;
  font-weight:650!important;
}
.rtm-k-explore-hub-9p-panel a.rtm-k-global-family,
.rtm-k-explore-hub-9p-panel a.rtm-k-family-linked{
  min-height:38px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:760px){
  .rtm-k-explore-hub-9p-panel{padding-bottom:76px!important;}
  .rtm-k-explore-launch-item .rtmhp-mega-inner{padding-bottom:92px!important;}
  .rtm-k-explore-launch-panel .rtm-k-explore-launch-actions .rtm-k-launch-button-academia:before{display:none!important;}
}

/* K v1.2.7.10.97: Explorar RTM compacto tipo captura aprobada.
   Mantiene el header/mega menú existente, pero sustituye visualmente el árbol legacy por una cuadrícula 9P limpia y compacta. */
.rtm-k-explore-launch-item .rtm-k-explore-legacy-tree-hidden{
  display:none!important;
}
.rtm-k-explore-launch-item .rtmhp-hbf-grid-3{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
}
.rtm-k-explore-launch-item .rtmhp-hbf-grid-3 .rtmhp-hbf-card{
  min-height:58px!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-launch-note{
  margin:14px 0 16px!important;
  padding:18px 20px!important;
  border:1px solid #bfdbfe!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#eff6ff,#fff7ed)!important;
  box-shadow:none!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-launch-note strong{
  display:block!important;
  margin:0 0 8px!important;
  color:#172033!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-map-message{
  margin:0 0 12px!important;
  color:#334155!important;
  font-size:14px!important;
  line-height:1.45!important;
  font-weight:500!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-launch-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-launch-actions .rtm-k-launch-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:8px 13px!important;
  border-radius:999px!important;
  border:1px solid #dbeafe!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-launch-actions .rtm-k-launch-button-primary{
  background:#0056b3!important;
  border-color:#0056b3!important;
  color:#fff!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-launch-actions .rtm-k-launch-button-academia{
  color:#174ea6!important;
}
.rtm-k-explore-launch-item .rtm-k-explore-launch-actions .rtm-k-launch-button-academia::before{
  content:'FORMACIÓN';
  display:inline-flex;
  margin-right:8px;
  padding:3px 8px;
  border-radius:999px;
  background:#eff6ff;
  color:#174ea6;
  font-size:10px;
  font-weight:950;
  line-height:1;
  letter-spacing:.05em;
}
.rtm-k-explore-9p-clean-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0!important;
  padding:0!important;
}
.rtm-k-explore-9p-card{
  position:relative!important;
  min-height:0!important;
  padding:16px 14px 14px!important;
  border:1px solid #dbeafe!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.045)!important;
  overflow:hidden!important;
}
.rtm-k-explore-9p-card .rtm-k-explore-9p-routes{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:4px 9px!important;
  border:1px solid #bfdbfe!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#174ea6!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.rtm-k-explore-9p-label{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:34px 0 8px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#eaf2ff!important;
  color:#174ea6!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.rtm-k-explore-9p-title{
  display:block!important;
  margin:0 0 6px!important;
  color:#0f172a!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:950!important;
  text-decoration:none!important;
}
.rtm-k-explore-9p-title:hover,
.rtm-k-explore-9p-title:focus{
  color:#0056b3!important;
  text-decoration:none!important;
}
.rtm-k-explore-9p-desc{
  margin:0 0 12px!important;
  color:#334155!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.rtm-k-explore-9p-families{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
}
.rtm-k-explore-9p-family{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  min-height:34px!important;
  box-sizing:border-box!important;
  padding:8px 10px!important;
  border:1px solid #dbeafe!important;
  border-radius:11px!important;
  background:#f8fbff!important;
  color:#26364d!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:850!important;
  text-decoration:none!important;
}
.rtm-k-explore-9p-family:hover,
.rtm-k-explore-9p-family:focus{
  background:#eaf2ff!important;
  border-color:#93c5fd!important;
  color:#003f87!important;
  text-decoration:none!important;
  outline:2px solid transparent!important;
}
.rtm-k-explore-9p-family-pill{
  flex:0 0 auto!important;
  padding:3px 7px!important;
  border:1px solid #e2e8f0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
.rtm-k-explore-9p-family::after{
  content:'›';
  flex:0 0 auto;
  color:#0056b3;
  font-size:15px;
  font-weight:950;
}
@media(max-width:980px){
  .rtm-k-explore-9p-clean-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .rtm-k-explore-launch-item .rtmhp-hbf-grid-3{grid-template-columns:1fr!important;}
}
@media(max-width:640px){
  .rtm-k-explore-9p-clean-grid{grid-template-columns:1fr!important;}
  .rtm-k-explore-launch-item .rtm-k-explore-launch-note{padding:14px!important;}
}
