/* Friends · Inicio móvil (18/10/2026)
   Ajustes visuales aislados de escritorio y del shell compartido. */
/* La fila del enlace textual solo pertenece a la presentación móvil. */
body.bf-page-home .bf-home-plan-detail-row,
body.bf-page-home .bf-home-plan-people-icon { display: none; }
/* Sin modificar la disposición heredada de escritorio. */
body.bf-page-home .bf-home-plan-meta { display: contents; }

@media (max-width: 680px) {
  body.bf-page-home .bf-community-cover-label {
    display: none !important;
  }

  body.bf-page-home .bf-home-brand-desktop { display: none !important; }
  body.bf-page-home .bf-home-brand-mobile {
    display: inline !important;
    color: #333438;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none !important;
  }

  /* Avatares completos, en una única fila: el controlador calcula el espacio. */
  body.bf-page-home .bf-member-stack[data-home-members] {
    box-sizing: border-box;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    white-space: nowrap;
    flex-wrap: nowrap !important;
  }
  body.bf-page-home .bf-member-stack[data-home-members] > a.bf-home-avatar-hidden,
  body.bf-page-home .bf-member-stack[data-home-members] > .bf-member-more.bf-home-avatar-hidden {
    display: none !important;
  }

  /* CTA de acceso con la paleta monocromática de los nuevos modales. */
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member),
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member):hover,
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member):active,
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member):focus-visible {
    color: #19191b !important;
    background: #e9e9eb !important;
    background-image: none !important;
    border: 1px solid #dddddf !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member) .bf-community-join-icon {
    background: #d9d9dc !important;
    color: #19191b !important;
  }
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member) .bf-community-join-icon svg {
    stroke: currentColor !important;
  }
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member) .bf-community-join-copy strong,
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member) .bf-community-join-copy small {
    color: #19191b !important;
    text-shadow: none !important;
  }
  body.bf-page-home .bf-community-buttons > a.bf-community-join:not(.is-member) .bf-community-join-copy small {
    color: #5c5c61 !important;
  }

  /* Próximos planes · fichas limpias, sin CTA de ancho completo. */
  body.bf-page-home #planes .bf-community-heading > a,
  body.bf-page-home #planes .bf-community-heading > a:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid #dedee0 !important;
    border-radius: 11px !important;
    background: #ebebed !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #242428 !important;
    font-size: 11px !important;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  body.bf-page-home #planes .bf-community-heading > a svg {
    width: 14px;
    height: 14px;
    color: currentColor;
    stroke: currentColor;
  }
  body.bf-page-home #planes .bf-community-heading > a:active { background: #dfdfe2 !important; }
  body.bf-page-home #planes .bf-community-heading > a:focus-visible,
  body.bf-page-home .bf-home-plan-detail-row a:focus-visible {
    outline: 2px solid #55565b;
    outline-offset: 3px;
  }
  body.bf-page-home #planes .bf-plan-card {
    border: 1px solid #e9e9eb !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  body.bf-page-home #planes .bf-plan-body { padding: 17px 16px 16px !important; }
  body.bf-page-home #planes .bf-plan-body h3 { margin: 7px 0 12px !important; }
  body.bf-page-home #planes .bf-plan-time {
    color: #62636b !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
  }
  body.bf-page-home #planes .bf-plan-date small { color: #46464c !important; }
  body.bf-page-home #planes .bf-home-plan-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  body.bf-page-home #planes .bf-plan-place,
  body.bf-page-home #planes .bf-plan-people {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    flex: 0 1 auto;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    margin: 0 !important;
    padding: 6px 9px;
    border: 1px solid #eeeeef;
    border-radius: 9px;
    background: #f6f6f7;
    color: #44454a !important;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.35;
  }
  body.bf-page-home #planes .bf-plan-place svg,
  body.bf-page-home #planes .bf-plan-people .bf-home-plan-people-icon {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: #4a4b51 !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
  }
  body.bf-page-home #planes .bf-plan-place span,
  body.bf-page-home #planes .bf-plan-people > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.bf-page-home #planes .bf-plan-people small { display: none !important; }
  body.bf-page-home #planes .bf-plan-actions { display: none !important; }
  body.bf-page-home #planes .bf-home-plan-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #ededee;
  }
  body.bf-page-home #planes .bf-home-plan-detail-row > span {
    color: #83848b;
    font-size: 11px;
    font-weight: 450;
    line-height: 1.35;
  }
  body.bf-page-home #planes .bf-home-plan-detail-row > a,
  body.bf-page-home #planes .bf-home-plan-detail-row > a:visited {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 28px;
    color: #222226;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  body.bf-page-home #planes .bf-home-plan-detail-row > a > span {
    font-size: 19px;
    line-height: 1;
    font-weight: 400;
  }
  @media (hover: hover) {
    body.bf-page-home #planes .bf-home-plan-detail-row > a:hover { text-decoration: underline; }
  }

  /* Eliminar las líneas decorativas multicolor de Inicio en móvil. */
  body.bf-page-home .bf-community-hero::before,
  body.bf-page-home .bf-home-discover::before {
    display: none !important;
    content: none !important;
  }
  body.bf-page-home .bf-home-discover-head .bf-community-eyebrow,
  body.bf-page-home #planes .bf-community-heading .bf-community-eyebrow {
    display: none !important;
  }
}

/* Fuera de móvil se mantiene el título original y el límite previo de 7 perfiles. */
@media (min-width: 681px) {
  body.bf-page-home .bf-home-brand-mobile { display: none !important; }
  body.bf-page-home .bf-home-brand-desktop { display: inline !important; }
  body.bf-page-home .bf-member-stack[data-home-members] > a:nth-of-type(n+8) {
    display: none !important;
  }
}

/* Friends · Momentos de la comunidad | carrusel nativo exclusivo de Inicio móvil. */
body.bf-page-home #fotos .bf-home-verified-mark,
body.bf-page-home #fotos .bf-home-moments-invite,
body.bf-page-home #fotos .bf-home-moments-carousel-footer { display: none !important; }
/* En escritorio se conservan las dos publicaciones y su diseño anterior. */
@media (min-width: 681px) {
  body.bf-page-home #fotos [data-home-moments-carousel] > .bf-community-moment:nth-of-type(n+3) { display: none !important; }
}
@media (max-width: 680px) {
  body.bf-page-home #fotos .bf-home-moments-legacy-eyebrow { display: none !important; }
  body.bf-page-home #fotos .bf-home-moments-desktop-title { display: none; }
  body.bf-page-home #fotos .bf-community-heading > .bf-home-moments-all,
  body.bf-page-home #fotos .bf-community-heading > .bf-home-moments-all:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px !important;
    padding: 0 12px !important;
    background: #ebebed !important;
    background-image: none !important;
    border: 1px solid #dedee0 !important;
    border-radius: 11px !important;
    color: #242428 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    text-decoration: none !important;
  }
  body.bf-page-home #fotos .bf-home-moments-all svg { width: 14px; height: 14px; stroke: currentColor !important; }
  body.bf-page-home #fotos .bf-home-moments-all:focus-visible,
  body.bf-page-home #fotos .bf-home-moments-invite:focus-visible,
  body.bf-page-home #fotos [data-home-moments-carousel]:focus-visible {
    outline: 2px solid #595960;
    outline-offset: 3px;
  }
  /* CSS scroll snapping, sin librerías ni transformaciones que afecten al scroll de la página. */
  body.bf-page-home #fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel] {
    box-sizing: border-box;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: unset !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 3px 2px 10px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }
  body.bf-page-home #fotos [data-home-moments-carousel]::-webkit-scrollbar { display: none; }
  body.bf-page-home #fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel] > .bf-community-moment,
  body.bf-page-home #fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel] > .bf-community-moment:first-child,
  body.bf-page-home #fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel] > .bf-community-moment:only-child {
    display: block !important;
    box-sizing: border-box !important;
    flex: 0 0 85% !important;
    width: 85% !important;
    min-width: 0 !important;
    max-width: 85% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    position: relative !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 0 !important;
    border-radius: 17px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    contain: none !important;
    background: #f0f0f1 !important;
    -webkit-tap-highlight-color: transparent;
  }
  body.bf-page-home #fotos .bf-community-moment > .bf-community-moment-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* Icono aprobado en Momentos: sello vectorial nº 4, 18 px y trazo 1.5. */
  /* Insignia blanca de contorno, igual que el feed; sin círculo de fondo. */
  body.bf-page-home #fotos .bf-community-moment-verified {
    width: 26px !important;
    height: 26px !important;
    top: 12px !important;
    right: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #fff !important;
  }
  body.bf-page-home #fotos .bf-community-moment-verified > .bf-home-verified-legacy { display: none !important; }
  body.bf-page-home #fotos .bf-community-moment-verified > .bf-home-verified-mark {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    stroke: #fff !important;
    stroke-width: 1.5 !important;
    fill: none !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
  }
  body.bf-page-home #fotos .bf-community-moment-sound.is-below-verified { top: 51px !important; }
  /* Quinta tarjeta: invitación elegante en grises, sin cambiar el footer real. */
  body.bf-page-home #fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel] > .bf-home-moments-invite,
  body.bf-page-home #fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel] > .bf-home-moments-invite:visited {
    box-sizing: border-box;
    flex: 0 0 85% !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 85% !important;
    max-width: 85% !important;
    aspect-ratio: 4 / 5;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 26px 23px !important;
    border: 1px solid #e4e4e6 !important;
    border-radius: 17px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #f4f4f5 !important;
    color: #19191b !important;
    box-shadow: none !important;
    text-decoration: none !important;
    white-space: normal;
  }
  body.bf-page-home #fotos .bf-home-moments-invite-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid #dddde0;
    border-radius: 15px;
    background: #fff;
  }
  body.bf-page-home #fotos .bf-home-moments-invite-icon svg { width: 24px; height: 24px; }
  body.bf-page-home #fotos .bf-home-moments-invite-label { font-size: 11px; font-weight: 650; color: #74747b; }
  body.bf-page-home #fotos .bf-home-moments-invite > strong {
    display: block;
    margin-top: 9px;
    font-size: clamp(21px, 6.3vw, 27px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  body.bf-page-home #fotos .bf-home-moments-invite-subtitle {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #676870;
  }
  body.bf-page-home #fotos .bf-home-moments-invite-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    min-height: 39px;
    padding: 0 15px;
    border-radius: 11px;
    background: #202023;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }
  body.bf-page-home #fotos .bf-home-moments-invite-action > span { font-size: 21px; line-height: 1; font-weight: 400; }
  body.bf-page-home #fotos .bf-home-moments-carousel-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 9px 3px 0;
  }
  body.bf-page-home #fotos .bf-home-moments-carousel-hint { color: #828288; font-size: 11px; }
  body.bf-page-home #fotos .bf-home-moments-carousel-dots { display: flex; gap: 5px; align-items: center; }
  body.bf-page-home #fotos .bf-home-moments-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d3d3d6;
    transition: background-color .15s ease, width .15s ease;
  }
  body.bf-page-home #fotos .bf-home-moments-dot.is-active { width: 17px; border-radius: 5px; background: #28282a; }
}
@media (prefers-reduced-motion: reduce) {
  body.bf-page-home #fotos .bf-home-moments-dot { transition: none; }
}

/* Friends · Carrusel de Próximos planes. Mismo lenguaje que Momentos, solo móvil. */
body.bf-page-home #planes .bf-home-plans-invite,
body.bf-page-home #planes .bf-home-plans-carousel-footer { display: none !important; }
@media (min-width: 681px) {
  /* Inicio de escritorio conserva exactamente las tres fichas anteriores. */
  body.bf-page-home #planes [data-home-plans-carousel] > .bf-plan-card:nth-of-type(n+4) { display: none !important; }
}
@media (max-width: 680px) {
  body.bf-page-home #planes .bf-plan-list[data-home-plans-carousel] {
    box-sizing: border-box;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 3px 2px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
  }
  body.bf-page-home #planes [data-home-plans-carousel]::-webkit-scrollbar { display: none; }
  body.bf-page-home #planes [data-home-plans-carousel] > .bf-plan-card,
  body.bf-page-home #planes [data-home-plans-carousel] > .bf-home-plans-invite {
    box-sizing: border-box !important;
    flex: 0 0 85% !important;
    width: 85% !important;
    max-width: 85% !important;
    min-width: 0 !important;
    min-height: 420px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 1px solid #e5e5e8 !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    overflow: hidden !important;
  }
  body.bf-page-home #planes [data-home-plans-carousel] > .bf-plan-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    height: auto !important;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-image {
    display: block !important;
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-image::after { display: none !important; }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-date {
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,.95) !important;
    border: 1px solid rgba(240,240,241,.9) !important;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-body {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 16px 14px 15px !important;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-body h3 {
    font-size: clamp(16px, 4.5vw, 19px) !important;
    line-height: 1.22;
    min-height: 0;
    margin: 7px 0 13px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-home-plan-meta { gap: 6px; }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-place,
  body.bf-page-home #planes [data-home-plans-carousel] .bf-plan-people {
    min-height: 29px;
    font-size: 10px !important;
    padding: 5px 8px;
    background: #f5f5f6;
    border-color: #ededee;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-home-plan-detail-row {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #ededee;
  }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-home-plan-detail-row > span { font-size: 10px; }
  body.bf-page-home #planes [data-home-plans-carousel] .bf-home-plan-detail-row > a { font-size: 12px; }
  /* Última tarjeta: llamada a la acción monocromática como la de Momentos. */
  body.bf-page-home #planes [data-home-plans-carousel] > .bf-home-plans-invite,
  body.bf-page-home #planes .bf-home-plans-invite--empty,
  body.bf-page-home #planes [data-home-plans-carousel] > .bf-home-plans-invite:visited,
  body.bf-page-home #planes .bf-home-plans-invite--empty:visited {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 25px 23px !important;
    background: #f3f3f4 !important;
    color: #19191b !important;
    text-decoration: none !important;
    white-space: normal;
  }
  body.bf-page-home #planes .bf-home-plans-invite--empty {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.bf-page-home #planes .bf-home-plans-empty { display: none !important; }
  body.bf-page-home #planes .bf-home-plans-invite-icon {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid #dcdcdf;
    border-radius: 15px;
    background: #fff;
  }
  body.bf-page-home #planes .bf-home-plans-invite-icon svg {
    width: 24px;
    height: 24px;
    stroke: #29292c;
  }
  body.bf-page-home #planes .bf-home-plans-invite-label {
    color: #77777e;
    font-size: 11px;
    font-weight: 650;
  }
  body.bf-page-home #planes .bf-home-plans-invite > strong {
    display: block;
    margin-top: 9px;
    color: #19191b;
    font-size: clamp(21px, 6.3vw, 27px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  body.bf-page-home #planes .bf-home-plans-invite-subtitle {
    display: block;
    margin-top: 12px;
    color: #676870;
    font-size: 12px;
    line-height: 1.5;
  }
  body.bf-page-home #planes .bf-home-plans-invite-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    margin-top: 24px;
    padding: 0 15px;
    border-radius: 11px;
    background: #202023;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }
  body.bf-page-home #planes .bf-home-plans-invite-action > span {
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
  }
  body.bf-page-home #planes .bf-home-plans-carousel-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 9px 3px 0;
  }
  body.bf-page-home #planes .bf-home-plans-carousel-hint {
    color: #828288;
    font-size: 11px;
  }
  body.bf-page-home #planes .bf-home-plans-carousel-dots {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  body.bf-page-home #planes .bf-home-plans-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d3d3d6;
    transition: background-color .15s ease, width .15s ease;
  }
  body.bf-page-home #planes .bf-home-plans-dot.is-active {
    width: 17px;
    border-radius: 5px;
    background: #28282a;
  }
  body.bf-page-home #planes [data-home-plans-carousel]:focus-visible,
  body.bf-page-home #planes .bf-home-plans-invite:focus-visible {
    outline: 2px solid #595960;
    outline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.bf-page-home #planes .bf-home-plans-dot { transition: none; }
}


/* Inicio móvil · Preguntas frecuentes al final de Inicio.
   Bloque independiente de la tarjeta de comunidad y del CTA de escritorio. */
body.bf-page-home .bf-home-faq { display: none; }
@media (max-width: 680px) {
  body.bf-page-home .bf-community-aside > .bf-home-about-card,
  body.bf-page-home .bf-community-home > .bf-community-cta { display: none !important; }

  body.bf-page-home .bf-community-home > .bf-home-faq {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 18px 0 4px;
    padding: 0;
    color: #19191b;
  }
  body.bf-page-home .bf-home-faq-heading {
    margin: 0 2px 14px;
  }
  body.bf-page-home .bf-home-faq-heading h2 {
    margin: 0 0 7px;
    padding: 0;
    color: #171719;
    font-size: clamp(23px, 6vw, 27px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  body.bf-page-home .bf-home-faq-heading p {
    margin: 0;
    color: #77777c;
    font-size: 13px;
    line-height: 1.5;
  }
  body.bf-page-home .bf-home-faq-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: 5px 15px;
    border: 1px solid #ececee;
    border-radius: 20px;
    background: #fff;
    box-shadow: none;
  }
  body.bf-page-home .bf-home-faq-item {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #eeeeef;
    background: transparent;
  }
  body.bf-page-home .bf-home-faq-item:last-child { border-bottom: 0; }
  body.bf-page-home .bf-home-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    box-sizing: border-box;
    padding: 12px 1px;
    cursor: pointer;
    color: #212124;
    font-size: 14px;
    font-weight: 670;
    line-height: 1.35;
    letter-spacing: -.012em;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
  }
  body.bf-page-home .bf-home-faq-item > summary::-webkit-details-marker { display: none; }
  body.bf-page-home .bf-home-faq-item > summary::marker { content: ''; }
  body.bf-page-home .bf-home-faq-item > summary:focus-visible {
    outline: 2px solid #505054;
    outline-offset: -2px;
    border-radius: 6px;
  }
  body.bf-page-home .bf-home-faq-toggle {
    position: relative;
    display: block;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border: 1px solid #e6e6e8;
    border-radius: 50%;
    background: #f5f5f6;
    color: #303034;
  }
  body.bf-page-home .bf-home-faq-toggle::before,
  body.bf-page-home .bf-home-faq-toggle::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    width: 9px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease;
  }
  body.bf-page-home .bf-home-faq-toggle::after { transform: rotate(90deg); }
  body.bf-page-home .bf-home-faq-item[open] .bf-home-faq-toggle::after { transform: rotate(0deg); }
  body.bf-page-home .bf-home-faq-answer {
    padding: 0 38px 17px 1px;
    color: #6b6b71;
    font-size: 13px;
    font-weight: 430;
    line-height: 1.55;
  }
  body.bf-page-home .bf-home-faq-answer a,
  body.bf-page-home .bf-home-faq-answer a:visited {
    color: #242426;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: #aaaab0;
    text-underline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.bf-page-home .bf-home-faq-toggle::before,
  body.bf-page-home .bf-home-faq-toggle::after { transition: none; }
}

/* Friends · Recientes (móvil): perfiles en tarjetas compactas, distintas de Planes/Momentos. */
body.bf-page-home .bf-home-recents { display: none; }
@media (max-width: 680px) {
  body.bf-page-home .bf-community-aside > #miembros { display: none !important; }
  body.bf-page-home .bf-community-aside > .bf-home-recents {
    display: block !important;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin: 8px 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
  }
  body.bf-page-home .bf-home-recents-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 13px;
  }
  body.bf-page-home .bf-home-recents-heading h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #171719;
    font-size: clamp(23px, 6vw, 27px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.18;
  }
  /* Acceso directo a Conocer; sustituye las flechas del carrusel. */
  body.bf-page-home .bf-home-recents-explore,
  body.bf-page-home .bf-home-recents-explore:visited {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #e7e7e9;
    border-radius: 11px;
    background: #f2f2f3;
    color: #232326;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  body.bf-page-home .bf-home-recents-explore > span { font-size: 18px; line-height: 1; font-weight: 400; }
  body.bf-page-home .bf-home-recents-explore:focus-visible { outline: 2px solid #505057; outline-offset: 3px; }
  body.bf-page-home .bf-home-recents-rail {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 2px 0 10px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }
  body.bf-page-home .bf-home-recents-rail::-webkit-scrollbar { display: none; }
  body.bf-page-home .bf-home-recents-rail:focus-visible { outline: 2px solid #505057; outline-offset: -2px; border-radius: 13px; }
  body.bf-page-home .bf-home-recent-card,
  body.bf-page-home .bf-home-recent-discover {
    position: relative;
    display: flex;
    box-sizing: border-box;
    flex: 0 0 clamp(145px, 44vw, 180px);
    min-width: 0;
    min-height: 228px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 16px 12px 12px;
    border: 1px solid #e9e9eb;
    border-radius: 20px;
    background: #f6f6f7;
    background-image: none;
    box-shadow: none;
    color: #1e1e21;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    overflow: hidden;
  }
  body.bf-page-home .bf-home-recent-card:nth-child(3n + 2) { background: #f1f1f3; }
  body.bf-page-home .bf-home-recent-card:nth-child(3n + 3) { background: #fafafa; }
  body.bf-page-home .bf-home-recent-card-decoration {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 15px;
    height: 15px;
    color: #c2c2c5;
    pointer-events: none;
  }
  body.bf-page-home .bf-home-recent-card-decoration svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
  }
  body.bf-page-home .bf-home-recent-profile {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
    gap: 5px;
    color: #222225;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  body.bf-page-home .bf-home-recent-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    margin: 5px 0 5px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e5e5e8;
    box-shadow: 0 0 0 1px #e1e1e3;
    color: #424248;
    font-size: 25px;
    font-weight: 700;
    overflow: hidden;
  }
  body.bf-page-home .bf-home-recent-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  body.bf-page-home .bf-home-recent-avatar img[hidden] { display: none; }
  body.bf-page-home .bf-home-recent-name {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #19191c;
    font-size: 13px;
    font-weight: 760;
    letter-spacing: -.025em;
    line-height: 1.3;
  }
  body.bf-page-home .bf-home-recent-hint {
    display: block;
    width: 100%;
    color: #77777d;
    font-size: 10px;
    line-height: 1.3;
  }
  body.bf-page-home .bf-home-recent-follow,
  body.bf-page-home .bf-home-recent-follow:visited {
    display: flex;
    flex: 0 0 35px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 35px;
    padding: 0 10px;
    border: 1px solid #1e1e20;
    border-radius: 11px;
    background: #1e1e20;
    background-image: none;
    box-shadow: none;
    color: #fff;
    font-size: 12px;
    font-weight: 720;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  }
  body.bf-page-home .bf-home-recent-follow.is-following,
  body.bf-page-home .bf-home-recent-follow.is-following:visited {
    background: #fff;
    color: #1e1e20;
  }
  body.bf-page-home .bf-home-recent-follow:disabled { opacity: .6; cursor: wait; }
  body.bf-page-home .bf-home-recent-follow:focus-visible,
  body.bf-page-home .bf-home-recent-profile:focus-visible,
  body.bf-page-home .bf-home-recent-discover:focus-visible {
    outline: 2px solid #43434a;
    outline-offset: 2px;
  }
  body.bf-page-home .bf-home-recent-discover,
  body.bf-page-home .bf-home-recent-discover:visited {
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    border-color: #27272a;
    background: #242427;
    color: #fff;
    text-decoration: none;
  }
  body.bf-page-home .bf-home-recent-discover-symbol {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    margin-bottom: auto;
    border: 1px solid #57575b;
    border-radius: 12px;
    background: #353538;
  }
  body.bf-page-home .bf-home-recent-discover-symbol svg { display: block; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
  body.bf-page-home .bf-home-recent-discover strong { font-size: 16px; font-weight: 770; line-height: 1.22; letter-spacing: -.03em; }
  body.bf-page-home .bf-home-recent-discover > span:last-child { color: #d1d1d3; font-size: 10.5px; line-height: 1.4; }
  /* Misma familia de indicadores que Momentos: texto a la izquierda y puntos a la derecha. */
  body.bf-page-home .bf-home-recents-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 9px 3px 0;
    min-height: 18px;
  }
  body.bf-page-home .bf-home-recents-hint { color: #828288; font-size: 11px; font-weight: 400; line-height: 1.4; }
  body.bf-page-home .bf-home-recents-dots { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
  body.bf-page-home .bf-home-recents-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d3d3d6;
    transition: background-color .15s ease, width .15s ease;
  }
  body.bf-page-home .bf-home-recents-dot.is-active {
    width: 17px;
    border-radius: 5px;
    background: #28282a;
  }
  body.bf-page-home .bf-home-recents-feedback:not([hidden]) {
    margin: 9px 2px 0;
    color: #5f6066;
    font-size: 11px;
    line-height: 1.5;
  }
}
@media (max-width: 350px) {
  body.bf-page-home .bf-home-recent-card,
  body.bf-page-home .bf-home-recent-discover { flex-basis: 149px; padding-inline: 10px; }
  body.bf-page-home .bf-home-recent-avatar { width: 86px; height: 86px; flex-basis: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  body.bf-page-home .bf-home-recent-follow,
  body.bf-page-home .bf-home-recents-dot { transition: none; }
}


/* Inicio móvil · Equipo Friends: título exterior y jerarquía desde la BD.
   La tarjeta original de escritorio se conserva sin cambios. */
body.bf-page-home .bf-home-team { display: none; }
@media (max-width: 680px) {
  /* La presentación antigua no forma parte de Inicio móvil. */
  body.bf-page-home > main.bf-community-home > .bf-home-discover,
  body.bf-page-home .bf-community-home > .bf-home-discover {
    display: none !important;
  }
  body.bf-page-home .bf-community-aside > .bf-community-team-card {
    display: none !important;
  }
  body.bf-page-home .bf-community-aside > .bf-home-team {
    display: block !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 24px 0 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body.bf-page-home .bf-home-team-heading {
    margin: 0 2px 14px;
  }
  body.bf-page-home .bf-home-team-heading h2 {
    margin: 0;
    padding: 0;
    font-size: clamp(23px, 6vw, 27px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.04em;
    color: #171719;
  }
  body.bf-page-home .bf-home-team-panel {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ececee;
    border-radius: 20px;
    background: #fff;
    box-shadow: none;
  }
  body.bf-page-home .bf-home-team-member,
  body.bf-page-home .bf-home-team-member:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    color: #202023;
    background: transparent;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  body.bf-page-home .bf-home-team-member + .bf-home-team-member {
    border-top: 1px solid #f0f0f1;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  body.bf-page-home .bf-home-team-member:active { background: #f5f5f6; }
  body.bf-page-home .bf-home-team-member:focus-visible { outline: 2px solid #333336; outline-offset: -2px; }
  body.bf-page-home .bf-home-team-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    background: #eeeef0;
    color: #4b4b50;
    font-size: 16px;
    font-weight: 700;
  }
  body.bf-page-home .bf-home-team-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body.bf-page-home .bf-home-team-avatar img[hidden],
  body.bf-page-home .bf-home-team-avatar span[hidden] { display: none; }
  body.bf-page-home .bf-home-team-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
  }
  body.bf-page-home .bf-home-team-info strong {
    overflow: hidden;
    color: #1e1e20;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.bf-page-home .bf-home-team-info small {
    overflow: hidden;
    color: #73737a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.bf-page-home .bf-home-team-arrow {
    flex: 0 0 auto;
    color: #99999d;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
  }
  body.bf-page-home .bf-home-team-empty {
    margin: 0;
    padding: 18px 10px;
    color: #77777b;
    font-size: 13px;
    text-align: center;
  }
}

/* Friends · Inicio móvil: ajustes finales compartidos y espacio compacto. */
@media (max-width: 680px) {
  /* Los tres enlaces de sección utilizan el mismo «›» que Recientes. */
  body.bf-page-home #planes .bf-community-heading > a svg,
  body.bf-page-home #fotos .bf-community-heading > .bf-home-moments-all svg {
    display: none !important;
  }
  body.bf-page-home #planes .bf-community-heading > a::after,
  body.bf-page-home #fotos .bf-community-heading > .bf-home-moments-all::after {
    content: '›';
    display: inline-block;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: currentColor;
  }
  /* El margen antes del footer era heredado de la portada antigua. */
  body.bf-page-home main.bf-community-home {
    padding-bottom: 8px !important;
  }
  body.bf-page-home .bf-home-faq {
    margin-bottom: 4px !important;
  }
  body.bf-page-home .bf-web-footer-inner {
    min-height: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 18px !important;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
  }
}
