/* SUNNU · Tema propio · Pill de navegación (cabecera de Inicio, Legales y 404)
   Origen: inicio/00-menu-pill-crear-cuenta.html (2026-10-13), sin el reset de Divi ni !important.
   Solo se edita desde el chat madre. */

/* =========================================================
   BASE
========================================================= */
.sn-pill,
.sn-pill * {
  box-sizing: border-box;
}
.sn-pill {
  /* Botón "Crear cuenta": celeste de marca (Sky, BRAND.md §9). Texto blanco desde v21 (pedido del usuario,
     2026-11-14); antes azul oscuro (2026-10-27) y, antes de eso, azul #0f7db3 con texto blanco. */
  --sn-join-1: #66c1ec;
  --sn-join-2: #4FB3E8;
  --sn-join-3: #45a9e0;
  --sn-join-ink: #FFFFFF;

  position: relative;
  z-index: 999999;
  height: 0;
  min-height: 0;
  max-height: 0;
  pointer-events: none;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.sn-pill a,
.sn-pill a:hover,
.sn-pill a:focus {
  text-decoration: none;
}
.sn-pill a:before,
.sn-pill a:after {
  display: none;
  content: none;
}
/* =========================================================
   WRAPPER + ANIMACIÓN PREMIUM FUNCIONAL
========================================================= */
.sn-pill .sn-nav-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 999999;
  width: 100%;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  animation: snPillIntro 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
  will-change: opacity, transform, filter;
}
@keyframes snPillIntro {
  0% {
    opacity: 0;
    transform: translate3d(0, -56px, 0) scale(0.93);
    filter: blur(11px);
  }
  48% {
    opacity: 1;
    transform: translate3d(0, 4px, 0) scale(1.008);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
/* =========================================================
   PILL DESKTOP
========================================================= */
.sn-pill #sn-nav-pill {
  width: 100%;
  max-width: 1000px;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px 0 28px;
  border-radius: 999px;
  pointer-events: all;
  background:
    linear-gradient(
      180deg,
      rgba(8, 22, 50, 0.78),
      rgba(3, 14, 35, 0.76)
    );
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.032),
    0 16px 38px rgba(0, 7, 20, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transform-origin: top center;
  transition:
    max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    visibility 0.35s,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}
.sn-pill #sn-nav-pill.is-scrolled {
  background:
    linear-gradient(
      180deg,
      rgba(8, 22, 50, 0.84),
      rgba(3, 14, 35, 0.82)
    );
  border-color: rgba(255, 255, 255, 0.15);
}
/* =========================================================
   LOGO
========================================================= */
.sn-pill .sn-nav__logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.sn-pill .sn-nav__logo-group {
  display: inline-flex;
  align-items: center;
}
.sn-pill .sn-nav__isotipo {
  display: block;
  width: auto;
  height: 22px;
  object-fit: contain;
  filter: none;
}
/* =========================================================
   LINK CENTRAL
========================================================= */
.sn-pill .sn-nav__links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sn-pill .sn-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.91);
  padding: 8px 13px;
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.sn-pill .sn-nav__link:hover,
.sn-pill .sn-nav__link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
/* =========================================================
   ACCIONES
========================================================= */
.sn-pill .sn-nav__right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.sn-pill .sn-nav__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-shrink: 0;
}
.sn-pill .sn-nav__btn-login,
.sn-pill .sn-nav__btn-join,
.sn-pill .sn-nav__btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    filter 0.16s ease;
}
.sn-pill .sn-nav__btn-login {
  min-width: 110px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.91);
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.27);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 7px rgba(0, 0, 0, 0.08);
}
.sn-pill .sn-nav__btn-login:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.40);
}
.sn-pill .sn-nav__btn-join {
  min-width: 96px;
  padding: 0 18px;
  color: var(--sn-join-ink);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(
      180deg,
      var(--sn-join-1) 0%,
      var(--sn-join-2) 52%,
      var(--sn-join-3) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(13, 27, 62, 0.10),
    0 4px 14px rgba(79, 179, 232, 0.30);
  text-shadow: none;
}
.sn-pill .sn-nav__btn-join:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(13, 27, 62, 0.10),
    0 6px 20px rgba(79, 179, 232, 0.42);
}
.sn-pill .sn-nav__btn-enter {
  display: none;
  min-width: 66px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.91);
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.27);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 7px rgba(0, 0, 0, 0.08);
}
/* =========================================================
   HAMBURGER
========================================================= */
.sn-pill .sn-nav__hamburger {
  display: none;
  width: 30px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.sn-pill .sn-nav__hamburger span {
  display: block;
  width: 21px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    width 0.22s ease,
    background 0.22s ease;
}
.sn-pill .sn-nav__hamburger span + span {
  margin-top: 4px;
}
.sn-pill .sn-nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 22px;
}
.sn-pill .sn-nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.sn-pill .sn-nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 22px;
}
/* =========================================================
   PANEL MÓVIL
========================================================= */
.sn-pill .sn-nav__panel {
  visibility: hidden;
  width: 100%;
  max-width: 500px;
  margin-top: 8px;
  padding: 10px 10px 11px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(8, 22, 50, 0.80),
      rgba(3, 14, 35, 0.78)
    );
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 18px 38px rgba(0, 7, 20, 0.30);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-5px) scale(0.985);
  transition:
    opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.24s;
}
.sn-pill .sn-nav__panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.sn-pill .sn-nav__panel-link {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.sn-pill .sn-nav__panel-link:hover {
  color: #ffffff;
  background: transparent;
}
.sn-pill .sn-nav__panel-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  margin: 2px 0 10px;
}
.sn-pill .sn-nav__panel-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sn-pill .sn-nav__panel-btn-login,
.sn-pill .sn-nav__panel-btn-join {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  border-radius: 13px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
  text-align: center;
}
.sn-pill .sn-nav__panel-btn-login {
  color: rgba(255, 255, 255, 0.93);
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.sn-pill .sn-nav__panel-btn-join {
  color: var(--sn-join-ink);
  font-weight: 700;
  background:
    linear-gradient(
      180deg,
      var(--sn-join-1) 0%,
      var(--sn-join-2) 52%,
      var(--sn-join-3) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(79, 179, 232, 0.30);
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 980px) {
  .sn-pill .sn-nav-wrapper {
    top: 12px;
    padding: 0 12px;
  }
  .sn-pill #sn-nav-pill {
    max-width: 860px;
    height: 50px;
    padding: 0 10px 0 22px;
  }
  .sn-pill .sn-nav__isotipo {
    height: 22px;
  }
  .sn-pill .sn-nav__link {
    font-size: 11.5px;
  }
  .sn-pill .sn-nav__btn-login,
  .sn-pill .sn-nav__btn-join,
  .sn-pill .sn-nav__btn-enter {
    height: 32px;
    font-size: 11.5px;
  }
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 640px) {
  .sn-pill .sn-nav-wrapper {
    top: 9px;
    padding: 0 8px;
  }
  .sn-pill #sn-nav-pill {
    height: 48px;
    max-width: calc(100vw - 16px);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0 12px 0 16px;
    border-radius: 999px;
  }
  .sn-pill .sn-nav__links {
    display: none;
  }
  .sn-pill .sn-nav__isotipo {
    height: 22px;
  }
  .sn-pill .sn-nav__right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-self: stretch;
    gap: 8px;
  }
  .sn-pill .sn-nav__actions {
    justify-self: center;
    display: inline-flex;
    gap: 7px;
  }
  .sn-pill .sn-nav__btn-login {
    display: none;
  }
  .sn-pill .sn-nav__btn-enter {
    display: inline-flex;
    height: 34px;
    min-width: 66px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 500;
  }
  .sn-pill .sn-nav__btn-join {
    height: 34px;
    min-width: 88px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 700;
  }
  .sn-pill .sn-nav__hamburger {
    display: inline-flex;
    justify-self: end;
    width: 30px;
    height: 34px;
  }
  .sn-pill .sn-nav__panel {
    max-width: calc(100vw - 16px);
  }

  /* Móvil: se oculta al bajar y reaparece al subir */
  .sn-pill #sn-nav-pill.is-hidden {
    transform: translate3d(0, -140%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
/* =========================================================
   MOBILE PEQUEÑO
========================================================= */
@media (max-width: 390px) {
  .sn-pill #sn-nav-pill {
    height: 46px;
    padding: 0 10px 0 14px;
  }
  .sn-pill .sn-nav__right {
    gap: 6px;
  }
  .sn-pill .sn-nav__actions {
    gap: 6px;
  }
  .sn-pill .sn-nav__isotipo {
    height: 21px;
  }
  .sn-pill .sn-nav__btn-enter {
    height: 32px;
    min-width: 61px;
    padding: 0 11px;
    font-size: 11.5px;
  }
  .sn-pill .sn-nav__btn-join {
    height: 32px;
    min-width: 78px;
    padding: 0 12px;
    font-size: 11.5px;
  }
  .sn-pill .sn-nav__hamburger {
    width: 28px;
    height: 32px;
  }
  .sn-pill .sn-nav__hamburger span {
    width: 20px;
    height: 1.8px;
  }
  .sn-pill .sn-nav__hamburger.is-open span:nth-child(1),
  .sn-pill .sn-nav__hamburger.is-open span:nth-child(3) {
    width: 21px;
  }
}
/* =========================================================
   ESCRITORIO / TABLET: PILL COMPACTO AL BAJAR
   Se compacta a logo + "Crear cuenta". Se expande al subir,
   al llegar arriba, con hover (ratón) o con foco de teclado.
========================================================= */
@media (min-width: 641px) {
  .sn-pill #sn-nav-pill.is-compact {
    max-width: 236px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 10px 0 20px;
  }
  .sn-pill #sn-nav-pill.is-compact .sn-nav__links,
  .sn-pill #sn-nav-pill.is-compact .sn-nav__btn-login {
    display: none;
  }
}
/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .sn-pill .sn-nav-wrapper {
    animation: none;
  }
  .sn-pill #sn-nav-pill {
    transition: none;
  }
}

/* =========================================================
   WORDPRESS: con sesión iniciada, bajar el pill debajo de la barra de administración
========================================================= */
.admin-bar .sn-pill .sn-nav-wrapper { top: 48px; }
@media (max-width: 782px) {
  .admin-bar .sn-pill .sn-nav-wrapper { top: 55px; }
}

/* =========================================================
   SELECTOR DE MODO (claro / oscuro / sistema)
   Escritorio: engranaje a la derecha del pill. Celular: fila dentro del menú.
========================================================= */
.sn-pill .sn-nav__modo {
  color: rgba(255, 255, 255, 0.91);
}
.sn-pill .sn-nav__modo .sn-modo__gear {
  width: 33px;
  height: 33px;
  border-color: rgba(255, 255, 255, 0.27);
}
.sn-pill .sn-nav__panel-modo {
  margin-top: 10px;
  padding: 10px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.94);
}
@media (min-width: 641px) {
  .sn-pill .sn-nav__panel-modo { display: none; }
  .sn-pill #sn-nav-pill.is-compact .sn-nav__modo { display: none; }
}
@media (max-width: 640px) {
  .sn-pill .sn-nav__modo { display: none; }
}

/* =========================================================
   "Entrar" e "Iniciar sesión" con letra más gruesa (pedido 2026-11-04)
========================================================= */
.sn-pill .sn-nav__btn-login,
.sn-pill .sn-nav__btn-enter,
.sn-pill .sn-nav__panel-btn-login {
  font-weight: 650;
}
