/* RM Theme | Canonical header component
 * Single navigation model: five direct siblings, one spacing system.
 * Rendered by rm/site-header; no shortcode paragraph formatting.
 */
.rm-site-header{
  position:relative;z-index:40;overflow:visible;
  background:#fff;border-bottom:1px solid #e0e4eb;
}
.rm-site-header *{box-sizing:border-box}
.rm-site-header .wp-block-shortcode{width:100%;margin:0}
.rm-site-header .rm-header-shell{
  position:relative;display:flex;align-items:center;justify-content:space-between;
  gap:28px;max-width:calc(var(--rm-canvas,1220px) + 48px);min-height:82px;margin:0 auto;padding:10px 24px;
}
.rm-site-header .rm-header-brand{
  display:inline-flex;align-items:center;flex:0 0 auto;gap:11px;
  color:#171b31;font-family:Roboto,Inter,system-ui,sans-serif;
  font-size:1.35rem;font-weight:780;letter-spacing:-.04em;line-height:1.1;
  text-decoration:none;white-space:nowrap;
}
.rm-site-header .rm-header-brand-logo{
  display:block;flex:0 0 auto;width:auto;height:54px;max-width:none;
}
/* Five true siblings: Sobre mí | Mentorías | Herramientas | Think | Contacto.
 * A single flex gap is the only space between items.
 */
.rm-site-header .rm-header-navigation{
  display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;
  justify-content:flex-end;gap:24px;
  min-width:0;margin:0 0 0 auto;padding:0;
}
.rm-site-header .rm-header-navigation > a:not(.rm-header-contact),
.rm-site-header .rm-tools-dropdown > summary{
  display:inline-flex;flex:0 0 auto;align-items:center;
  width:auto;max-width:none;min-width:0;
  height:auto;margin:0;padding:0;
  border:0;background:none;box-shadow:none;
  color:#171b31;font:500 1rem/1.3 Roboto,Inter,system-ui,sans-serif;
  text-decoration:none;white-space:nowrap;
}
.rm-site-header .rm-header-navigation > a:not(.rm-header-contact):hover,
.rm-site-header .rm-header-navigation > a:not(.rm-header-contact):focus-visible,
.rm-site-header .rm-tools-dropdown > summary:hover,
.rm-site-header .rm-tools-dropdown > summary:focus-visible,
.rm-site-header .rm-tools-dropdown[open] > summary{
  color:#f73760;
}
.rm-site-header .rm-tools-dropdown{
  display:block;position:static;flex:0 0 auto;
  width:max-content;min-width:0;
  margin:0;padding:0;border:0;
}
.rm-site-header .rm-tools-dropdown > summary{
  position:relative;list-style:none;cursor:pointer;user-select:none;
  gap:9px;z-index:91;
}
.rm-site-header .rm-tools-dropdown > summary::-webkit-details-marker{display:none}
.rm-site-header .rm-tools-dropdown > summary::marker{content:""}
.rm-site-header .rm-menu-chevron{
  display:inline-block;flex:0 0 8px;width:8px;height:8px;
  margin-top:-4px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;
  transform:rotate(45deg);transition:transform .16s;
}
.rm-site-header .rm-tools-dropdown[open] .rm-menu-chevron{
  margin-top:3px;transform:rotate(225deg);
}
.rm-site-header .rm-header-navigation > a.rm-header-contact{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;min-width:115px;min-height:43px;
  width:auto;margin:0;padding:11px 23px;
  color:#fff!important;background:#f73760;border:0;
  border-radius:999px;
  font:700 .91rem/1.2 Roboto,Inter,system-ui,sans-serif;
  text-decoration:none;white-space:nowrap;
}
.rm-site-header .rm-header-navigation > a.rm-header-contact:hover{
  box-shadow:0 0 0 3px rgba(247,55,96,.16);color:#fff!important;
}
.rm-site-header .rm-header-navigation > a:focus-visible,
.rm-site-header .rm-tools-dropdown > summary:focus-visible{
  outline:2px solid #4f578d;outline-offset:5px;
}
/* The panel aligns exactly to the header shell's content edges.
 * Short 8px inner breathing room never changes nav spacing.
 */
.rm-site-header .rm-mega-wrap{
  position:absolute;top:calc(100% - 1px);left:24px;right:24px;
  z-index:90;width:auto;max-height:calc(100dvh - 100px);
  margin:0;padding:8px 0 0;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  transform:none;
}
.rm-site-header .rm-mega-panel{
  display:grid;
  grid-template-columns:minmax(0,.94fr) minmax(0,1.03fr) minmax(290px,.96fr);
  align-items:start;align-content:start;
  gap:clamp(24px,3vw,50px);
  width:100%;max-width:none;height:auto;min-height:0;
  margin:0;padding:32px 34px 30px;
  background:#fff;border:1px solid #ebeef3;border-radius:13px;
  box-shadow:0 14px 50px rgba(22,28,50,.12);
}
.rm-site-header .rm-mega-category{min-width:0}
.rm-site-header .rm-mega-category h2{
  margin:0 0 21px;padding:0;border:0;
  font:680 17px/1.4 Roboto,Inter,system-ui,sans-serif;
  letter-spacing:-.02em;text-transform:none;
}
.rm-site-header .rm-mega-category h2 a{
  color:#171b31;text-decoration:none;
}
.rm-site-header .rm-mega-category h2 a:hover{color:#f73760}
.rm-site-header .rm-mega-links{
  display:flex;flex-direction:column;gap:1px;
  margin:0;padding:0;list-style:none;
}
.rm-site-header .rm-mega-links li{
  margin:0;padding:0;list-style:none;
}
.rm-site-header .rm-mega-links a{
  display:flex;align-items:center;justify-content:space-between;
  position:relative;gap:12px;margin:0 0 0 -11px;padding:9px 11px;
  color:#343c4c;background:transparent;border:0;
  border-radius:6px;text-decoration:none;
  font:450 14.5px/1.45 Roboto,Inter,system-ui,sans-serif;
  transition:background .13s,color .13s;
}
.rm-site-header .rm-mega-links a::before{display:none;content:none}
.rm-site-header .rm-mega-links a::after{
  display:block;position:static;flex:0 0 auto;
  content:"↗";color:#4f578d;font-size:15px;font-weight:500;
  opacity:0;transform:translate(-3px,3px);transition:opacity .13s,transform .13s;
}
.rm-site-header .rm-mega-links a:hover,
.rm-site-header .rm-mega-links a:focus-visible{
  color:#171b31;background:#f4f5fa;
}
.rm-site-header .rm-mega-links a:hover::after,
.rm-site-header .rm-mega-links a:focus-visible::after{opacity:1;transform:none}
.rm-site-header .rm-mega-promos{
  display:flex;flex-direction:column;
  align-items:stretch;align-self:start;
  gap:11px;min-width:0;min-height:0;
  height:auto;margin:0;padding:0;
}
.rm-site-header .rm-mega-promo{
  display:flex;position:relative;isolation:isolate;
  flex:0 0 auto;flex-direction:column;
  align-items:flex-start;justify-content:center;
  overflow:hidden;min-height:153px;
  margin:0;padding:20px 22px;border:0;
  border-radius:9px;text-decoration:none;
  transition:transform .15s;
}
.rm-site-header .rm-mega-promo:hover{transform:translateY(-1px)}
.rm-site-header .rm-mega-promo > *{position:relative;z-index:2}
.rm-site-header .rm-mega-promo--inspector{
  background:radial-gradient(ellipse 92% 155% at 120% -15%,rgba(247,55,96,.45),transparent 68%),
  radial-gradient(ellipse 82% 135% at 102% 130%,rgba(79,87,141,.56),transparent 74%),
  linear-gradient(115deg,#111526,#211a35 60%,#11172c);color:#fff;
}
.rm-site-header .rm-mega-promo--promxia{
  background:radial-gradient(ellipse 90% 140% at 115% -15%,rgba(247,55,96,.19),transparent 70%),
  radial-gradient(ellipse 88% 130% at 115% 128%,rgba(79,87,141,.2),transparent 74%),
  linear-gradient(120deg,#f7f8fc,#eef0f8 55%,#e4e8f3);color:#171b31;
}
.rm-site-header .rm-mega-promo--inspector::before,
.rm-site-header .rm-mega-promo--promxia::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  inset:-55% -42% -55% 46%;
  background:repeating-radial-gradient(circle at 90% 45%,transparent 0 16px,rgba(121,137,178,.18) 17px 18px,transparent 19px 34px);
}
.rm-site-header .rm-mega-promo--inspector::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  right:-25px;bottom:-40px;width:144px;height:108px;
  border:1px solid rgba(255,255,255,.2);border-radius:9px;
  transform:rotate(-12deg);
  background:repeating-linear-gradient(0deg,transparent 0 14px,rgba(245,121,158,.22) 15px 16px,transparent 17px 27px),
  linear-gradient(125deg,rgba(40,44,87,.82),rgba(21,24,48,.94));
  box-shadow:-20px -14px 40px rgba(247,55,96,.18);
}
.rm-site-header .rm-mega-promo .rm-promo-kicker{
  display:block;margin:0 0 9px;
  font-size:10px;font-weight:700;line-height:1.2;
  letter-spacing:.095em;text-transform:uppercase;opacity:.77;
}
.rm-site-header .rm-mega-promo strong{
  display:block;margin:0 0 7px;font-size:20px;
  font-weight:760;line-height:1.15;letter-spacing:-.025em;
}
.rm-site-header .rm-mega-promo .rm-promo-description{
  display:block;max-width:270px;margin:0;padding:0 15px 0 0;
  color:inherit;font-size:12.5px;font-weight:400;
  line-height:1.45;opacity:.83;
}
.rm-site-header .rm-mega-promo .rm-promo-action{
  display:block;margin:12px 0 0;
  color:inherit;font-size:12px;font-weight:700;line-height:1.3;
}
.rm-site-header .rm-mega-promo .rm-promo-action span{margin-left:5px}
.rm-site-header .rm-mega-promo :is(.rm-promo-visual,.rm-promo-code){display:none}
.rm-site-header .rm-mega-promo .rm-promxia-dot{color:#f73760}
.rm-site-header .rm-menu-mobile-toggle{display:none}
/* Desktop hover bridge, interaction owned by the details element.
 * The JS additionally has a short leave-grace timeout.
 */
@media(min-width:1051px) and (hover:hover){
  .rm-site-header .rm-tools-dropdown[open] > summary::after{
    content:"";position:absolute;top:100%;left:-12px;right:-12px;
    height:42px;background:transparent;pointer-events:auto;
  }
}
@media(max-width:1050px){
  .rm-site-header .rm-header-shell{
    min-height:72px;flex-wrap:wrap;gap:0;padding:10px 20px;
  }
  .rm-site-header .rm-header-brand{font-size:1.17rem}
  .rm-site-header .rm-header-brand-logo{height:44px}
  .rm-site-header .rm-menu-mobile-toggle{
    display:flex;align-items:center;justify-content:center;flex-direction:column;
    gap:5px;width:44px;height:44px;margin-left:auto;
    border:1px solid #e0e4eb;border-radius:9px;background:#fff;cursor:pointer;
  }
  .rm-site-header .rm-menu-mobile-toggle span{
    display:block;width:19px;height:2px;border-radius:2px;background:#171b31;
  }
  .rm-site-header .rm-header-navigation{
    display:none;flex-direction:column;align-items:stretch;justify-content:flex-start;
    width:100%;min-width:0;gap:0;
    margin:12px 0 2px;padding:13px 0 4px;
    border-top:1px solid #cdd5e1;
    max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain;
  }
  .rm-site-header .rm-header-navigation.is-open{display:flex}
  .rm-site-header .rm-header-navigation > a:not(.rm-header-contact),
  .rm-site-header .rm-tools-dropdown > summary{
    display:flex;width:100%;min-height:46px;
    padding:13px 4px;white-space:normal;justify-content:space-between;
  }
  .rm-site-header .rm-tools-dropdown{
    position:relative;width:100%;
  }
  .rm-site-header .rm-mega-wrap{
    position:static;left:auto;right:auto;transform:none;
    width:100%;max-height:none;overflow:visible;
    padding:8px 0 10px;
  }
  .rm-site-header .rm-mega-panel{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px;padding:23px;
    box-shadow:none;border-radius:10px;
  }
  .rm-site-header .rm-mega-promos{
    grid-column:1/-1;display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  }
  .rm-site-header .rm-mega-promo{
    min-height:160px;flex-basis:auto;
  }
  .rm-site-header .rm-header-navigation > a.rm-header-contact{
    align-self:flex-start;margin-top:10px;
  }
}
@media(max-width:600px){
  .rm-site-header .rm-header-shell{padding-inline:20px}
  .rm-site-header .rm-mega-panel{
    grid-template-columns:minmax(0,1fr);gap:24px;padding:22px 18px;
  }
  .rm-site-header .rm-mega-category h2{margin-bottom:13px}
  .rm-site-header .rm-mega-promos{
    grid-column:1;grid-template-columns:1fr;gap:10px;
  }
  .rm-site-header .rm-mega-promo{min-height:148px}
  .rm-site-header .rm-mega-links a{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .rm-site-header .rm-mega-promo,.rm-site-header .rm-mega-links a,.rm-site-header .rm-mega-links a::after{
    transition:none;
  }
}


/* RM 2026 identity: compact clear-logo spacing on narrow phones. */
.rm-site-header .rm-header-brand{gap:0;line-height:1}
@media(max-width:390px){.rm-site-header .rm-header-brand-logo{height:40px}}

/* RM · Unified authenticated navigation: desktop and mobile */
.rm-site-header .rm-header-account{
  position:relative;display:inline-flex;align-items:center;flex:0 0 auto;
  color:#24314c;font:650 .89rem/1.3 Roboto,Inter,system-ui,sans-serif;
  margin:0;text-decoration:none;
}
.rm-site-header .rm-header-account--guest{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border:1px solid #dce1e9;border-radius:9px;background:#fff;
  white-space:nowrap;
}
.rm-site-header .rm-header-account--guest:hover{
  color:#db244c;border-color:#e3abb9;
}
.rm-site-header .rm-header-account--logged{
  display:block;
}
.rm-site-header .rm-header-account--logged>summary{
  display:flex;align-items:center;gap:8px;min-height:42px;
  margin:0;padding:9px 10px;background:#fff;border:1px solid #dce1e9;
  border-radius:9px;color:#24314c;list-style:none;cursor:pointer;white-space:nowrap;
}
.rm-site-header .rm-header-account--logged>summary::-webkit-details-marker{display:none}
.rm-site-header .rm-header-account--logged>summary::marker{content:""}
.rm-site-header .rm-header-account-panel{
  position:absolute;top:calc(100% + 9px);right:0;z-index:95;
  display:grid;min-width:165px;gap:0;padding:6px;
  background:#fff;border:1px solid #dce1e9;border-radius:10px;
  box-shadow:0 12px 28px rgba(23,27,49,.11);
}
.rm-site-header .rm-header-account-panel a{
  display:block;padding:11px 12px;color:#24314c!important;
  text-decoration:none;border-radius:7px;font:600 .89rem/1.3 Roboto,system-ui,sans-serif;
}
.rm-site-header .rm-header-account-panel a:hover{background:#f4f5fa;color:#db244c!important}
.rm-site-header .rm-header-account :is(a,summary):focus-visible,
.rm-site-header a.rm-header-account:focus-visible{
  outline:3px solid #4f578d;outline-offset:3px;
}
@media(max-width:1050px){
  .rm-site-header .rm-header-navigation>.rm-header-account{
    width:100%;margin:5px 0 3px;
  }
  .rm-site-header .rm-header-account--guest{
    width:100%;min-height:46px;justify-content:flex-start;
    padding:12px 8px;border:0;border-top:1px solid #e5e8ef;border-radius:0;
  }
  .rm-site-header .rm-header-account--logged>summary{
    width:100%;justify-content:flex-start;min-height:46px;
    border:0;border-top:1px solid #e5e8ef;border-radius:0;padding:12px 8px;
  }
  .rm-site-header .rm-header-account-panel{
    position:static;display:grid;width:100%;min-width:0;
    box-shadow:none;border:0;border-radius:0;padding:0 6px 8px 26px;
  }
  .rm-site-header .rm-header-account-panel a{
    width:100%;min-height:44px;display:flex;align-items:center;
  }
}

/* Frontend logout is a POST action, styled like other account-menu links. */
.rm-site-header .rm-header-account-logout {margin:0;padding:0;display:block}
.rm-site-header .rm-header-account-logout button {
  display:block;width:100%;text-align:left;
  background:transparent;border:0;border-radius:7px;
  padding:10px 12px;color:#171b31;
  cursor:pointer;font:650 14px/1.45 Roboto,system-ui,sans-serif;
}
.rm-site-header .rm-header-account-logout button:hover {background:#f4f5fa;color:#db244c}
.rm-site-header .rm-header-account-logout button:focus-visible{outline:3px solid #4f578d;outline-offset:3px}
