/* Friends · Navegación móvil 2026-10-17: cápsula iOS · iconos sin etiquetas visibles.
   Se aplica tras el CSS general para mantener la barra consistente en todas las páginas.
   Escritorio: navegación sin cambios. */
.bf-web-header .bf-web-explore-link { display: none; }

@media (max-width: 899px) {
  /* Cabecera: Explora junto a los accesos de mensajes y notificaciones. */
  html body.bf-web-page > .bf-web-header .bf-web-header-inner {
    min-width: 0;
  }
  html body.bf-web-page > .bf-web-header .bf-web-actions {
    min-width: 0;
    margin-left: auto !important;
    gap: 6px !important;
  }
  html body.bf-web-page > .bf-web-header .bf-web-explore-link {
    position: relative;
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    place-items: center;
    border: 1px solid rgba(31, 45, 74, 0.075) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    color: #323b4d !important;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
    -webkit-tap-highlight-color: transparent;
  }
  html body.bf-web-page > .bf-web-header .bf-web-explore-link svg {
    display: block;
    width: 21px !important;
    height: 21px !important;
    stroke-width: 1.85;
  }
  html body.bf-web-page > .bf-web-header .bf-web-explore-link.is-active {
    border-color: rgba(90, 94, 100, 0.18) !important;
    background: #e9eaec !important;
    color: #34363a !important;
  }
  html body.bf-web-page > .bf-web-header .bf-web-explore-link:focus-visible {
    outline: 2px solid #666a70;
    outline-offset: 2px;
  }

  /* El acceso de cuenta solo se traslada a la barra inferior cuando hay sesión.
     Los visitantes conservan intacto el botón superior de iniciar sesión. */
  html body.bf-web-page > .bf-web-header .bf-web-actions .bf-web-account--desktop-only-on-mobile {
    display: none !important;
  }

  /* Cristal iOS: cápsula ancha, sin halo exterior, borde finísimo, fondo blanco nítido y
     selección gris ocupando casi toda la altura, según la referencia. */
  html body.bf-web-page > .bf-web-mobile-dock {
    position: fixed !important;
    z-index: 920 !important;
    box-sizing: border-box;
    display: grid !important;
    width: min(360px, calc(100vw - 48px)) !important;
    height: 56px !important;
    min-height: 56px !important;
    right: 24px !important;
    left: 24px !important;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 auto !important;
    padding: 4px !important;
    overflow: hidden;
    border: 1px solid rgba(47, 47, 47, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
    /* Una sola animación de escala controlada por muelle amortiguado (JS).
       Sin saltar entre clases ni competir con transiciones de transform CSS. */
    -webkit-transform: translate3d(0, 0, 0) scale(var(--bf-dock-scale, 1)) !important;
    transform: translate3d(0, 0, 0) scale(var(--bf-dock-scale, 1)) !important;
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    transition: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }
  html body.bf-web-page > .bf-web-mobile-dock::after {
    display: none !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item {
    display: grid !important;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    place-items: center;
    align-content: center;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #121619 !important;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item::before,
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item.is-active .bf-web-mobile-dock-label::after {
    display: none !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item.is-active {
    background: #e8e8e8 !important;
    color: #121619 !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item:focus-visible {
    outline: 2px solid #777 !important;
    outline-offset: -3px;
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-icon {
    display: grid;
    width: 30px !important;
    height: 30px !important;
    place-items: center;
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-icon svg {
    display: block;
    width: 24px !important;
    height: 24px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 2 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  /* Mantener los SVG exactos ya vectorizados sin deformaciones. */
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-icon svg.bf-web-reference-icon {
    width: 30px !important;
    height: 30px !important;
    overflow: visible;
    shape-rendering: geometricPrecision;
    transform-origin: 50% 50%;
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-icon svg.bf-web-reference-icon .bf-svg-stroke {
    fill: none !important;
    stroke: currentColor !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-width: 4.3px !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-icon svg.bf-web-reference-icon .bf-svg-solid {
    fill: currentColor !important;
    stroke: none !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-icon svg.bf-web-reference-icon .bf-svg-stroke[stroke-width="4.2"] {
    stroke-width: 4.2px !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-icon svg.bf-web-reference-icon .bf-svg-stroke[stroke-width="3.8"] {
    stroke-width: 3.8px !important;
  }
  /* Escala óptica: misma altura visible (26 px) en los cinco accesos.
     Se conservan los trazados SVG originales y el contenedor de 30 px;
     solamente se compensa el espacio interno de cada viewBox (80 × 80). */
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-item--home .bf-web-reference-icon {
    transform: translateY(1.4px) scale(1.126);
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-item--feeds .bf-web-reference-icon {
    transform: scale(1.106);
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-item--conocer .bf-web-reference-icon {
    transform: scale(1.057);
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-item--planes .bf-web-reference-icon {
    transform: translateY(0.5px) scale(1.204);
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-item--groups .bf-web-reference-icon {
    transform: scale(1.092);
  }
  /* Fotografía circular del usuario o inicial cuando no existe / no carga. */
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-avatar {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    overflow: hidden;
    border: 1px solid rgba(27, 42, 70, 0.10);
    border-radius: 50%;
    background: #e7edf5;
    box-sizing: border-box;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    clip-path: circle(50% at 50% 50%);
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-avatar-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #334457, #657789);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
  }
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-avatar > [hidden] {
    display: none !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item--account.is-active .bf-web-mobile-dock-avatar {
    border-color: rgba(66, 70, 75, 0.42);
    box-shadow: 0 0 0 2px rgba(66, 70, 75, 0.10);
  }
  /* Todas las pestañas son solo iconos, tal como en la captura.
     El nombre accesible se mantiene en cada enlace (aria-label). */
  html body.bf-web-page > .bf-web-mobile-dock .bf-web-mobile-dock-label {
    display: none !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item:active {
    transform: scale(0.97);
  }
  html body.bf-web-page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 360px) {
  html body.bf-web-page > .bf-web-header .bf-web-actions {
    gap: 4px !important;
  }
  html body.bf-web-page > .bf-web-header .bf-web-explore-link {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
    border-radius: 11px !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock {
    width: calc(100vw - 34px) !important;
    right: 17px !important;
    left: 17px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.bf-web-page > .bf-web-mobile-dock {
    -webkit-transition: none !important;
    transition: none !important;
  }
  html body.bf-web-page > .bf-web-mobile-dock a.bf-web-mobile-dock-item {
    transition: none !important;
  }
}
