/* Inicio: diseño común de tarjetas, orden de galería y contraste. */
@media (max-width:680px) {
  html body.bf-page-home #planes#planes [data-home-plans-carousel] > .bf-plan-card,
  html body.bf-page-home #planes#planes [data-home-plans-carousel] > .bf-home-plans-invite {
    box-sizing: border-box !important; display: flex !important; flex: 0 0 clamp(275px,27vw,337px) !important;
    flex-direction: column !important; width: clamp(275px,27vw,337px) !important; max-width: none !important;
    min-height: 420px !important; grid-template-columns: none !important; scroll-snap-align: start;
    border: 1px solid #e6e1ec !important; border-radius: 24px !important; overflow: hidden;
    background: #fff !important; box-shadow: 0 3px 10px #201d2608 !important; transform: none !important;
  }
  html body.bf-page-home #planes#planes [data-home-plans-carousel] > .bf-plan-card:nth-of-type(n+4) { display: flex !important; }
  html body.bf-page-home #planes#planes .bf-plan-card:hover { border-color: #cfc0e4 !important; }
  html body.bf-page-home #planes#planes .bf-plan-image { position: relative; display: block; box-sizing: border-box; flex: 0 0 auto; width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; padding: 0 !important; background: #eee5fa; }
  html body.bf-page-home #planes#planes .bf-plan-image img { position: absolute !important; inset: 0 !important; display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; object-fit: cover !important; object-position: 50% 38% !important; }
  html body.bf-page-home #planes#planes .bf-plan-image::after { display: none !important; }
  html body.bf-page-home #planes#planes .bf-plan-date { z-index: 2; box-sizing: border-box; background: #fff !important; color: #4b14a5 !important; border: 1px solid #eee5fa !important; border-radius: 14px !important; box-shadow: 0 4px 14px #201d261a !important; width: 54px !important; height: 58px !important; }
  html body.bf-page-home #planes#planes .bf-plan-date strong { color: #4b14a5 !important; font-size: 23px !important; line-height: 1 !important; }
  html body.bf-page-home #planes#planes .bf-plan-date small { color: #4b14a5 !important; font-size: 12px !important; font-weight: 650 !important; line-height: 1.15 !important; margin-top: 3px; letter-spacing: .02em !important; }
  html body.bf-page-home #planes#planes .bf-plan-body { box-sizing: border-box; display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 19px !important; font-family: inherit; }
  html body.bf-page-home #planes#planes .bf-plan-body h3 { color: #201d26 !important; font-size: 23px !important; font-weight: 700 !important; line-height: 1.14; letter-spacing: -.055em !important; margin: 10px 0 12px !important; height: 2.28em !important; min-height: 2.28em !important; flex: 0 0 2.28em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
  html body.bf-page-home #planes#planes .bf-plan-body h3 a { color: inherit !important; }
  html body.bf-page-home #planes#planes .bf-plan-time { display: flex; align-items: center; gap: 7px; color: #4b14a5 !important; font-size: 13px !important; font-weight: 650; letter-spacing: 0 !important; line-height: 19px; height: 19px; flex: 0 0 19px; margin: 0 !important; }
  html body.bf-page-home #planes#planes .bf-plan-time::before { content: ''; width: 17px; height: 17px; flex: 0 0 17px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat; }
  html body.bf-page-home #planes#planes .bf-home-plan-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin: 0 0 14px; color: #625d6b; font-size: 13px; font-weight: 400 !important; letter-spacing: normal !important; line-height: 1.5; height: 3em; min-height: 3em; flex: 0 0 3em; }
  html body.bf-page-home #planes#planes .bf-home-plan-meta { display: flex !important; flex-direction: column; align-items: stretch; gap: 7px; margin: 0 0 16px; }
  html body.bf-page-home #planes#planes .bf-plan-place, html body.bf-page-home #planes#planes .bf-plan-people {
    box-sizing: border-box; display: flex !important; align-items: center; gap: 9px; min-width: 0; max-width: 100%;
    height: 38px !important; min-height: 38px !important; flex: 0 0 38px; margin: 0 !important; padding: 8px 10px; border: 1px solid #eee7f5; border-radius: 11px; background: #f8f6fb;
    color: #201d26 !important; font-size: 13px !important; font-weight: 550; line-height: 1.4;
  }
  html body.bf-page-home #planes#planes .bf-plan-place svg, html body.bf-page-home #planes#planes .bf-home-plan-people-icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: #4b14a5 !important; stroke: currentColor !important; }
  html body.bf-page-home #planes#planes .bf-plan-place span, html body.bf-page-home #planes#planes .bf-plan-people > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body.bf-page-home #planes#planes .bf-plan-people small { display: none !important; }
  html body.bf-page-home #planes#planes .bf-plan-actions { display: none !important; }
  html body.bf-page-home #planes#planes .bf-home-plan-detail-row {
    display: grid !important; grid-template-columns: minmax(0,1fr); grid-template-rows: 31px 44px 44px; gap: 9px; align-items: center; margin-top: auto; padding-top: 13px; border-top: 1px solid #e6e1ec;
  }
  html body.bf-page-home #planes#planes .bf-home-plan-detail-row .bf-plan-detail-hint { color: #625d6b; font-size: 11px; line-height: 1.4; grid-row: 1; }
  html body.bf-page-home #planes#planes .bf-home-plan-detail-row > a.bf-plan-view-details,
  html body.bf-page-home #planes#planes .bf-home-plan-detail-row > a.bf-plan-view-details:visited { display: flex; align-items: center; justify-content: center; gap: 9px; box-sizing: border-box; grid-row: 2; height: 44px; min-height: 44px; padding: 10px 14px; border-radius: 100px; background: #4b14a5; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  html body.bf-page-home #planes#planes .bf-plan-view-details > span { font-size: 20px; line-height: 1; color: inherit; }
  html body.bf-page-home #planes#planes .bf-plan-view-details:hover { background: #3c1088 !important; }
  html body.bf-page-home #planes#planes .bf-plan-card--with-group .bf-home-plan-detail-row--has-group { grid-template-columns: minmax(0,1fr); }
  html body.bf-page-home #planes#planes .bf-plan-card--with-group .bf-home-plan-detail-row--has-group > a.bf-plan-chat-cta--home-desktop,
  html body.bf-page-home #planes#planes .bf-plan-card--with-group .bf-home-plan-detail-row--has-group > a.bf-plan-chat-cta--home-desktop:visited {
    grid-column: 1 / -1; grid-row: 3; box-sizing: border-box; display: flex !important; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid #ddd2ea !important; border-radius: 100px !important; background: #f8f6fb !important; color: #4b14a5 !important; -webkit-text-fill-color: #4b14a5 !important; text-decoration: none !important; font-size: 13px; font-weight: 650; line-height: 1.2;
  }
  html body.bf-page-home #planes#planes .bf-plan-chat-cta--home-desktop svg { display: block; flex: 0 0 17px; width: 17px; height: 17px; fill: none !important; stroke: #4b14a5 !important; }
  html body.bf-page-home #planes#planes .bf-plan-chat-cta--home-desktop .bf-plan-chat-label { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  html body.bf-page-home #planes#planes .bf-plan-chat-cta--home-desktop .bf-plan-chat-arrow { position: static; }
  html body.bf-page-home #planes#planes .bf-plan-card--with-group .bf-home-plan-detail-row--has-group > a.bf-plan-chat-cta--home-desktop:hover { background: #eee5fa !important; }
  html body.bf-page-home #planes#planes .bf-plan-card:focus-within { outline: 2px solid #7442c4; outline-offset: 2px; }
  html body.bf-page-home #planes#planes [data-home-plans-carousel] > .bf-home-plans-invite,
  html body.bf-page-home #planes#planes .bf-home-plans-invite--empty { display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start; box-sizing: border-box; padding: 26px 24px !important; color: #fff !important; background: linear-gradient(90deg,rgba(75,20,165,.95) 5%,rgba(75,20,165,.85) 48%,rgba(75,20,165,.75)), url("/recursos/img/campanas/friends-business-plans.webp") center / cover no-repeat, #4b14a5 !important; border: 1px solid #4b14a5 !important; border-radius: 24px !important; text-decoration: none; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite--empty { width: 100%; max-width: 560px; min-height: 280px; }
  html body.bf-page-home #planes#planes [data-home-plans-carousel] > .bf-home-plans-invite { justify-content: flex-start; padding: 26px 19px 19px !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-mobile-link,
  html body.bf-page-home #planes#planes .bf-home-plans-invite-mobile-action,
  html body.bf-page-home #planes#planes .bf-home-plans-invite-mobile-copy { display: none !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-desktop-copy { display: inline !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-desktop-actions { display: grid !important; grid-template-columns: minmax(0,1fr); grid-template-rows: 44px 44px; gap: 9px; width: 100%; margin-top: auto; padding-top: 18px; box-sizing: border-box; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite--empty .bf-home-plans-invite-desktop-actions { margin-top: 14px; }
  html body.bf-page-home #planes#planes .bf-home-plans-empty { display: none !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; color: #fff; background: #ffffff20; border: 1px solid #ffffff55; border-radius: 14px; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-icon svg { width: 24px; height: 24px; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-label { color: #fff !important; font-size: 12px; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite > strong { display: block; margin-top: 8px; font-size: 28px; font-weight: 700 !important; letter-spacing: -.055em !important; line-height: 1.12; color: #fff !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-subtitle { margin-top: 12px; font-size: 14px; font-weight: 400 !important; letter-spacing: normal !important; line-height: 1.5; color: #fff !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-desktop-actions > a { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 100px; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none !important; text-align: center; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-action { background: #fff; color: #4b14a5 !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-action:hover { background: #eee5fa; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-business { background: #ffffff16; color: #fff !important; border-color: #ffffffaa !important; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-business:hover { background: #ffffff30; }
  html body.bf-page-home #planes#planes .bf-home-plans-invite-desktop-actions > a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  html body.bf-page-home #planes#planes .bf-home-plans-carousel-footer { display: none !important; }

html body.bf-page-home #planes#planes [data-home-plans-carousel] > :is(.bf-plan-card,.bf-home-plans-invite) { flex:0 0 min(85%,337px)!important;width:min(85%,337px)!important;max-width:none!important;min-height:420px!important; }
html body.bf-page-home #planes#planes .bf-home-plan-summary {display:-webkit-box!important;}
html body.bf-page-home #planes#planes .bf-home-plan-detail-row:not(.bf-home-plan-detail-row--has-group) {grid-template-rows:auto 44px!important;}
}

html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;grid-auto-flow:row!important;gap:14px!important;height:auto!important;min-height:0!important;overflow:visible!important;}
html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-community-moment:nth-of-type(n) {grid-area:auto!important;order:0!important;height:auto!important;aspect-ratio:4/5!important;min-height:0!important;width:100%!important;max-width:100%!important;}
html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-moments-feature {display:flex!important;position:relative!important;isolation:isolate;grid-area:auto!important;grid-column:1/-1!important;order:1!important;min-height:280px!important;height:auto!important;width:100%!important;margin:4px 0 0!important;align-items:flex-end!important;overflow:hidden!important;background:#241337 url('/recursos/img/campanas/friends-momentos-zurriola.webp') center 43%/cover no-repeat!important;}
html body.bf-page-home #fotos#fotos .bf-moments-feature::before {content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:0!important;background:linear-gradient(90deg,rgba(20,10,34,.88),rgba(20,10,34,.62)),linear-gradient(0deg,rgba(20,10,34,.55),transparent)!important;pointer-events:none;}
html body.bf-page-home #fotos#fotos .bf-moments-feature-content {position:relative!important;z-index:1!important;padding:clamp(20px,3vw,36px)!important;}
html body.bf-page-home #fotos#fotos .bf-moments-feature :is(h3,p,.bf-moments-feature-kicker,.bf-moments-feature-secondary) {color:white!important;-webkit-text-fill-color:white!important;opacity:1!important;text-shadow:0 2px 6px rgba(0,0,0,.7)!important;}
html body.bf-page-home #fotos#fotos .bf-moments-feature-primary {background:white!important;color:#4b14a5!important;-webkit-text-fill-color:#4b14a5!important;text-shadow:none!important;}
html body.bf-page-home #fotos#fotos .bf-moments-feature-secondary {background:rgba(20,10,34,.5)!important;border-color:rgba(255,255,255,.7)!important;}
html body.bf-page-home #fotos#fotos .bf-home-moments-invite {display:none!important;}
html body.bf-page-home #fotos#fotos {margin-bottom:0!important;}
html body.bf-page-home .bf-community-aside>#recientes#recientes {margin-top:0!important;padding-top:48px!important;}
@media(max-width:680px){
html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count="1"] > .bf-community-moment:nth-of-type(1) {grid-column:1/-1!important;}
html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-moments-feature {min-height:290px!important;}
html body.bf-page-home .bf-community-aside>#recientes#recientes {padding-top:40px!important;}
}

/* Inicio: campaña a la izquierda y mosaico 2x2 a la derecha, solo escritorio. */
@media (min-width:681px) {
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] {
    grid-template-columns: minmax(0,2fr) repeat(2,minmax(0,1fr))!important;
    grid-template-rows: repeat(2,minmax(0,1fr))!important;
    height: clamp(425px,45vw,662.5px)!important;
    align-items:stretch!important;gap:14px!important;
  }
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-community-moment:nth-of-type(n) {height:100%!important;aspect-ratio:auto!important;min-width:0!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-community-moment:nth-of-type(1) {grid-area:1/2!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-community-moment:nth-of-type(2) {grid-area:1/3!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-community-moment:nth-of-type(3) {grid-area:2/2!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-community-moment:nth-of-type(4) {grid-area:2/3!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count] > .bf-moments-feature {grid-area:1/1/3/2!important;margin:0!important;min-height:0!important;height:100%!important;border-radius:22px!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count="3"] > .bf-community-moment:nth-of-type(3) {grid-area:2/2/3/4!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count="2"] > .bf-community-moment:nth-of-type(1) {grid-area:1/2/2/4!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count="2"] > .bf-community-moment:nth-of-type(2) {grid-area:2/2/3/4!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count="1"] > .bf-community-moment:nth-of-type(1) {grid-area:1/2/3/4!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count="0"] {grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;height:auto!important;}
  html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel][data-moments-count="0"] > .bf-moments-feature {grid-area:1/1!important;min-height:300px!important;}
  @media(max-width:950px) {
    html body.bf-page-home #fotos#fotos .bf-photo-grid.bf-photo-grid--two[data-home-moments-carousel]:is([data-moments-count="1"],[data-moments-count="2"],[data-moments-count="3"],[data-moments-count="4"]) {grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  }
}
