/* Runloop v2 · cabecera flotante, menú de WordPress y pie.
   Capa de presentación plana: sustituye el CSS de las clases rl2-* que Bricks
   emitió bajo :where([data-bricks-import-scope-*]) y que nunca casa porque el
   ancestro de importación no existe en el markup renderizado. */

/* ---------- Cabecera: pillnav flotante ---------- */
#brx-header.rl2-pillnav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 900; width: min(1120px, calc(100% - 28px));
  display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 8px 10px 8px 20px;
  background: rgba(7, 5, 12, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  transition: background .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s cubic-bezier(.22, .61, .36, 1);
}
#brx-header.rl2-pillnav.scrolled { background: rgba(7, 5, 12, .92); box-shadow: 0 18px 60px rgba(7, 5, 12, .22); }

#brx-header.rl2-pillnav .rl2-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: #fff; font-family: var(--rl2-font-display, 'Space Grotesk', system-ui, sans-serif);
  font-weight: 700; font-size: 1rem; letter-spacing: .04em;
}
#brx-header.rl2-pillnav .rl2-brand img { height: 26px; width: auto; display: block; }

#brx-header.rl2-pillnav .rl2-nav { display: flex; margin-left: auto; min-width: 0; }
#brx-header.rl2-pillnav .rl2-menu {
  display: flex; gap: 2px; flex-wrap: nowrap;
  list-style: none; margin: 0; padding: 0;
}
#brx-header.rl2-pillnav .rl2-menu li { position: relative; margin: 0; list-style: none; }
#brx-header.rl2-pillnav .rl2-menu a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, .78); font-size: .84rem; font-weight: 600;
  padding: 9px 13px; border-radius: 999px; white-space: nowrap;
  font-family: var(--rl2-font-body, 'Inter', system-ui, sans-serif);
  transition: background .25s, color .25s;
}
#brx-header.rl2-pillnav .rl2-menu a:hover,
#brx-header.rl2-pillnav .rl2-menu .current-menu-item > a,
#brx-header.rl2-pillnav .rl2-menu .current_page_item > a,
#brx-header.rl2-pillnav .rl2-menu .current_page_ancestor > a { color: #fff; background: rgba(255, 255, 255, .1); }
#brx-header.rl2-pillnav .rl2-menu .menu-item-has-children > a::after { content: "\25BE"; font-size: .7em; opacity: .6; }

/* Submenú desplegable.
   El panel se separa 10 px del enlace padre para leerse como tarjeta flotante.
   Ese hueco queda FUERA de la caja del <li>, así que al bajar el puntero hacia
   el panel `li:hover` se apagaba y el submenú se cerraba antes de alcanzarlo.
   El puente va en el propio <li> (`::after`), no dentro del panel: los
   pseudo-elementos participan en el hit-testing de su elemento de origen, de
   modo que cubrir el hueco desde el <li> mantiene `li:hover` activo. Un puente
   dentro del panel no serviría, porque el panel está en `display:none` hasta
   que el hover ya se ha perdido. */
#brx-header.rl2-pillnav .rl2-menu .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 230px; list-style: none; margin: 0; padding: 10px;
  background: rgba(15, 13, 26, .97); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px; box-shadow: 0 18px 60px rgba(7, 5, 12, .22);
  display: none; z-index: 890;
}
#brx-header.rl2-pillnav .rl2-menu .menu-item-has-children::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
#brx-header.rl2-pillnav .rl2-menu li:hover > .sub-menu,
#brx-header.rl2-pillnav .rl2-menu li:focus-within > .sub-menu { display: block; }
#brx-header.rl2-pillnav .rl2-menu .sub-menu a { display: block; border-radius: 12px; font-size: .88rem; padding: 10px 14px; }
#brx-header.rl2-pillnav .rl2-menu .sub-menu li { list-style: none; }

#brx-header.rl2-pillnav .rl2-nav-cta { flex: none; display: flex; }
#brx-header.rl2-pillnav .rl2-nav-cta .rl2-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px; border: 0;
  background: #9264cd; color: #fff; font-weight: 700; font-size: .84rem;
  box-shadow: 0 8px 24px rgba(146, 100, 205, .4);
  transition: background .25s, transform .25s;
}
#brx-header.rl2-pillnav .rl2-nav-cta .rl2-btn:hover { background: #7b4fbe; transform: translateY(-2px); }

#brx-header.rl2-pillnav .rl2-burger {
  display: none; place-items: center; width: 40px; height: 40px; margin-left: auto;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
#brx-header.rl2-pillnav .rl2-burger svg { width: 20px; height: 20px; fill: #fff; }

@media (max-width: 900px) {
  #brx-header.rl2-pillnav .rl2-nav { display: none; }
  #brx-header.rl2-pillnav .rl2-burger { display: grid; }
}
@media (max-width: 680px) {
  #brx-header.rl2-pillnav .rl2-nav-cta { display: none; }
}

/* ---------- Menú móvil ---------- */
.rl2-mnav {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(7, 5, 12, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: none; flex-direction: column; gap: 4px;
  padding: 90px 28px 40px; overflow-y: auto;
}
.rl2-mnav.open { display: flex; }
.rl2-mnav ul { list-style: none; margin: 0; padding: 0; }
.rl2-mnav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff; font-family: var(--rl2-font-display, 'Space Grotesk', system-ui, sans-serif); font-size: 1.3rem;
}
.rl2-mnav .rl2-mnav-close {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* ---------- Pie ---------- */
#brx-footer.rl2-site-footer { background: #07050c; color: #fff; padding: 70px 0 34px; font-size: .9rem; }
/*
 * Bricks imprime :where(#brxe-xn5lva){background:var(--rl2-bg)} sobre el
 * contenedor raíz del pie (--rl2-bg = blanco), lo que tapaba el fondo oscuro
 * y dejaba el texto blanco sobre blanco. El contenedor debe ser transparente
 * para que se vea el #07050c del pie.
 */
#brx-footer.rl2-site-footer .rl2-container,
#brx-footer.rl2-site-footer .rl2-footer-grid,
#brx-footer.rl2-site-footer .rl2-footer-brand,
#brx-footer.rl2-site-footer .rl2-footer-cities,
#brx-footer.rl2-site-footer .rl2-footer-legal { background: transparent; }
#brx-footer.rl2-site-footer .rl2-container { max-width: 1140px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
#brx-footer.rl2-site-footer .rl2-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
@media (max-width: 960px) { #brx-footer.rl2-site-footer .rl2-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { #brx-footer.rl2-site-footer .rl2-footer-grid { grid-template-columns: 1fr; } }

#brx-footer.rl2-site-footer h4 {
  margin: 0 0 16px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: #e6c0f1; font-family: var(--rl2-font-display, 'Space Grotesk', system-ui, sans-serif);
}
#brx-footer.rl2-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#brx-footer.rl2-site-footer li { margin: 0; list-style: none; }
#brx-footer.rl2-site-footer a { color: rgba(255, 255, 255, .72); transition: color .25s; }
#brx-footer.rl2-site-footer a:hover { color: #e6c0f1; }
#brx-footer.rl2-site-footer p { margin: 0 0 1em; color: rgba(255, 255, 255, .65); }

#brx-footer.rl2-site-footer .rl2-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
#brx-footer.rl2-site-footer .rl2-footer-brand img { height: 30px; width: auto; display: block; }
#brx-footer.rl2-site-footer .rl2-footer-brand strong { font-family: var(--rl2-font-display, system-ui, sans-serif); letter-spacing: .06em; color: #fff; }

#brx-footer.rl2-site-footer .rl2-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; background: #9264cd; color: #fff;
  box-shadow: 0 12px 32px rgba(146, 100, 205, .35); transition: background .25s, transform .25s;
}
#brx-footer.rl2-site-footer .rl2-btn:hover { background: #7b4fbe; transform: translateY(-2px); }

#brx-footer.rl2-site-footer .rl2-footer-cities { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 34px; margin-top: 8px; }
#brx-footer.rl2-site-footer .rl2-city-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
#brx-footer.rl2-site-footer .rl2-city-pill {
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  padding: 7px 16px; font-size: .84rem; color: rgba(255, 255, 255, .8);
  transition: border-color .25s, background .25s, color .25s;
}
#brx-footer.rl2-site-footer .rl2-city-pill:hover { border-color: #9264cd; background: #9264cd; color: #fff; }

#brx-footer.rl2-site-footer .rl2-footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px;
  font-size: .78rem; color: rgba(255, 255, 255, .45);
}
#brx-footer.rl2-site-footer .rl2-footer-legal a { color: rgba(255, 255, 255, .6); }

@media (prefers-reduced-motion: reduce) {
  #brx-header.rl2-pillnav, #brx-header.rl2-pillnav .rl2-nav-cta .rl2-btn { transition: 0; }
}
