/* Section «Se entrena mejor con los tuyos» (the app's relay + fist-bump gestures, see web/gestos/ and sec-amigos.js). Everything under .fr2 */
.fr2{padding:56px 0 48px}
.fr2-l{display:grid;gap:12px;padding:24px 20px 0;max-width:1120px;margin:0 auto}
.fr2-c{border-radius:28px;overflow:hidden;background:#141417;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
/* The stage is the containing block of the gestures' fixed layer (transform), so they run inside the card instead of the viewport */
.fr2-st{position:relative;isolation:isolate;height:340px;overflow:hidden;transform:translateZ(0);background:radial-gradient(80% 70% at 50% 108%,rgba(224,48,122,.34),transparent 70%),#0e0d10}
.fr2-t{padding:18px 20px 22px}.fr2-t h3{font-family:var(--display);text-transform:uppercase;font-size:26px;line-height:1}.fr2-t p{margin-top:8px;font-size:14.5px;color:var(--m)}
/* relay: a virtual 420-high app screen, scaled by sec-amigos.js to the stage height */
.fr2-hx{position:absolute;left:0;top:0;height:420px;transform-origin:0 0}
.fr2 .rg-ov{position:fixed;z-index:2;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none}
.fr2 .rg-ov:not(.bare) .rg-st{left:0;width:100%;transform:none}
.fr2 .rg-nm-t{position:absolute;top:calc(100% + 8px);left:50%;translate:-50% 0;font-size:14px;font-weight:500;white-space:nowrap;color:#f4f2ee;text-shadow:0 1px 8px rgba(0,0,0,.6)}
/* bump: a session photo */
.fr2-ph{position:absolute;inset:0;background:center/cover no-repeat}
.fr2-ph::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,11,13,.2),rgba(11,11,13,.62))}
.fr2-pill{position:absolute;z-index:3;left:50%;bottom:18px;translate:-50% 0;padding:8px 15px;font-size:13.5px;font-weight:500;white-space:nowrap;border-radius:99px}
.fr2-n{display:inline-block;font-weight:700}.fr2-n.up{animation:fr2-up .5s var(--spring,cubic-bezier(.34,1.32,.64,1))}
@keyframes fr2-up{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}
.fr2-still{position:absolute;inset:0;z-index:2}
@media(min-width:900px){.fr2-l{grid-template-columns:1fr 1fr}.fr2-st{height:360px}}
/* the app's gradient fist is also called .g; keep the site's glass class off it */
.fr2 .rg-f.g{position:static;isolation:auto;border-radius:0;box-shadow:none}
.fr2 .rg-f.g::before,.fr2 .rg-f.g::after{content:none}

/* the name tags (web only) sit where the app puts the caption: push the caption under them */
.fr2 .rg-cap{translate:0 38px}

/* Groups card: three group rows (glass) that come in one by one, and a «new group» pill */
.fr2-gl{list-style:none;margin:0;padding:0 18px;position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:10px;max-width:420px;margin-inline:auto}
.fr2-gr{display:flex;align-items:center;gap:12px;padding:10px 14px 10px 10px;border-radius:20px;transform:translateY(330px);transition:transform .7s var(--spring,cubic-bezier(.34,1.32,.64,1)) calc(var(--i) * .12s)}
/* glass is never faded: the rows slide up from below the stage instead */
.fr2-gr::after{background:rgba(255,255,255,.06)}
.fr2-av{display:flex;flex:none}.fr2-av i{width:34px;height:34px;border-radius:50%;background:#333 center/cover;box-shadow:0 0 0 2px #17151a}.fr2-av i+i{margin-left:-10px}
.fr2-gn{display:flex;flex-direction:column;min-width:0}.fr2-gn b{font-size:14.5px;font-weight:600}.fr2-gn small{font-size:12px;color:var(--m2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr2-new{position:absolute;left:50%;bottom:16px;translate:-50% 0;margin:0;padding:7px 15px;border-radius:99px;font-size:13px;font-weight:600;color:#fff;background:var(--grad);opacity:0;transition:opacity .4s .5s}
.fr2-new span{font-weight:700;margin-right:2px}
.fr2-st.on .fr2-gr{transform:none}.fr2-st.on .fr2-new{opacity:1}
[data-g="groups"]{background:radial-gradient(80% 70% at 50% -8%,rgba(255,116,48,.26),transparent 70%),radial-gradient(70% 60% at 50% 110%,rgba(224,48,122,.28),transparent 70%),#0e0d10}
@media(min-width:900px){.fr2-l{grid-template-columns:repeat(3,1fr)}}
.fr2-dots{display:none}

/* Phones: the section pins and the three cards slide sideways as you scroll down (sec-amigos.js adds .sl and moves the track) */
@media(max-width:899px){
  .fr2.sl{height:300svh;padding:0}
  .fr2.sl .fr2-sk{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;justify-content:center;gap:4px;overflow:hidden}
  .fr2.sl .fr2-vp{overflow:hidden}
  .fr2.sl .fr2-l{display:flex;gap:12px;padding:20px 20px 0;max-width:none;margin:0;will-change:transform}
  .fr2.sl .fr2-c{flex:0 0 calc(100vw - 40px)}
  .fr2.sl .fr2-st{height:min(340px,42svh)}
  .fr2.sl .fr2-dots{display:flex;justify-content:center;gap:6px;padding-top:14px}
  .fr2-dots i{width:6px;height:6px;border-radius:99px;background:rgba(255,255,255,.25);transition:width .3s,background .3s}
  .fr2-dots i.on{width:18px;background:#fff}
}
/* the list and the pill share one centred column, so they never overlap on short phones */
[data-g="groups"]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}
.fr2-gl{position:static;width:100%;gap:8px}.fr2-new{position:static;translate:none}
.fr2-gn small{white-space:normal}
@media(max-height:700px){.fr2-gr{padding:7px 12px 7px 8px;border-radius:16px}.fr2-av i{width:28px;height:28px}.fr2-gl{gap:6px}[data-g="groups"]{gap:8px}.fr2-gn b{font-size:13.5px}}
