/* K v1.2.7.10.37 — Reloj de la Vida + M navigation roadmap safe
   Capa visual segura para el header renderizado por [reparatumundo_header_pro].
   No modifica menús en base de datos, permisos, WooCommerce, WCFM, ReHub, Elementor, páginas ni usuarios. */

.rtmhp-header-wrap{
  --rtm-hbf-orange:#f5a623;
  --rtm-hbf-blue:#34475d;
  --rtm-hbf-text:#1f2a44;
  --rtm-hbf-muted:#55657b;
  --rtm-hbf-border:#d9e2ec;
  --rtm-hbf-soft:#f9fbfc;
  --rtm-hbf-warm:#fff8eb;
}

/* Compacta sin romper la estética base del menú. */
.rtmhp-header-wrap .rtmhp-top-level{gap:7px;padding-top:9px;padding-bottom:9px;}
.rtmhp-header-wrap .rtmhp-link{padding:10px 13px;line-height:1.15;}
.rtmhp-header-wrap .rtmhp-mega{top:calc(100% + 1px);}
.rtmhp-header-wrap .rtmhp-mega-inner{padding:20px 22px;}
.rtmhp-header-wrap .rtmhp-mega-inner h3{margin-top:0;margin-bottom:12px;}
.rtmhp-header-wrap .rtmhp-mega-inner li{margin-bottom:5px;line-height:1.34;}
.rtmhp-header-wrap .rtmhp-mega-inner li a:not(.rtmhp-hbf-card){line-height:1.34;text-decoration:none;}
.rtmhp-header-wrap .rtmhp-mega-inner li a:not(.rtmhp-hbf-card):hover{color:var(--rtm-hbf-orange);}

/* Paneles inteligentes añadidos arriba del desplegable, preservando los enlaces reales debajo. */
.rtmhp-header-wrap .rtmhp-hbf-menu-decision > .rtmhp-mega{width:min(980px,calc(100vw - 32px));}
.rtmhp-header-wrap .rtmhp-hbf-menu-explore > .rtmhp-mega{width:min(1120px,calc(100vw - 32px));}
.rtmhp-header-wrap .rtmhp-hbf-panel{margin:0 0 12px;}
.rtmhp-header-wrap .rtmhp-hbf-panel h4{margin:0 0 8px;color:#101827;font-size:17px;line-height:1.25;font-weight:900;letter-spacing:-.01em;}
.rtmhp-header-wrap .rtmhp-hbf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:8px 0 0;}
.rtmhp-header-wrap .rtmhp-hbf-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.rtmhp-header-wrap .rtmhp-hbf-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.rtmhp-header-wrap .rtmhp-hbf-card{display:block;text-decoration:none;border:1px solid var(--rtm-hbf-border);border-radius:13px;padding:11px 13px;background:#fff;color:var(--rtm-hbf-text);transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;}
.rtmhp-header-wrap .rtmhp-hbf-card:hover,.rtmhp-header-wrap .rtmhp-hbf-card:focus-visible{background:var(--rtm-hbf-soft);border-color:#c9d7e5;color:var(--rtm-hbf-text);transform:translateY(-1px);box-shadow:0 10px 20px rgba(52,71,93,.06);outline:none;}
.rtmhp-header-wrap .rtmhp-hbf-card strong{display:block;font-size:13.5px;line-height:1.24;color:var(--rtm-hbf-text);font-weight:900;margin-bottom:3px;}
.rtmhp-header-wrap .rtmhp-hbf-card span{display:block;font-size:12px;line-height:1.38;color:var(--rtm-hbf-muted);font-weight:600;}
.rtmhp-header-wrap .rtmhp-hbf-primary{background:var(--rtm-hbf-warm);border-color:var(--rtm-hbf-orange);}
.rtmhp-header-wrap .rtmhp-hbf-primary strong{color:#6d4a00;}
.rtmhp-header-wrap .rtmhp-hbf-dark{background:var(--rtm-hbf-blue);border-color:var(--rtm-hbf-blue);}
.rtmhp-header-wrap .rtmhp-hbf-dark strong,.rtmhp-header-wrap .rtmhp-hbf-dark span{color:#fff;}
.rtmhp-header-wrap .rtmhp-hbf-dark:hover,.rtmhp-header-wrap .rtmhp-hbf-dark:focus-visible{background:#2f4054;border-color:#2f4054;color:#fff;}
.rtmhp-header-wrap .rtmhp-hbf-note{margin-top:9px;padding:9px 11px;border:1px solid rgba(245,166,35,.75);border-radius:12px;background:var(--rtm-hbf-warm);color:#6d4a00;font-size:12px;line-height:1.45;font-weight:650;}
.rtmhp-header-wrap .rtmhp-hbf-separator{height:1px;background:#eef2f7;margin:12px 0;}

/* Mobile: útil, compacto y sin mega menús pesados. */
.rtmhp-mobile-panel .rtmhp-hbf-mobile-extra{padding:6px 0 0;margin:0;list-style:none;}
.rtmhp-mobile-panel .rtmhp-hbf-mobile-extra li{margin:0 0 5px;line-height:1.32;}
.rtmhp-mobile-panel .rtmhp-hbf-mobile-extra a{display:block;padding:7px 0;text-decoration:none;}
.rtmhp-mobile-panel .rtmhp-hbf-mobile-note{display:block;padding:6px 0;color:#f5d08c;font-size:12px;line-height:1.35;}

@media (max-width:1180px){
  .rtmhp-header-wrap .rtmhp-hbf-grid-4{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:900px){
  .rtmhp-header-wrap .rtmhp-hbf-grid,.rtmhp-header-wrap .rtmhp-hbf-grid-2,.rtmhp-header-wrap .rtmhp-hbf-grid-4{grid-template-columns:1fr;}
  .rtmhp-header-wrap .rtmhp-mega-inner{padding:18px;}
}
