/* Livay v117 · Selector de áreas en carrusel, claro y minimalista (mismo lenguaje que el resto de la app).
   Tarjeta blanca grande al centro con su dibujo en tinta; las vecinas asoman por los costados, se achican y se atenúan al alejarse.
   Amaranth solo como acento. Respeta prefers-reduced-motion. */
#role-gate{--cw:min(70vw,290px);--lvc-ink:#0B1215;--lvc-mute:#6B7378;--lvc-line:#E7E8E5;--lvc-acc:224,51,90;background:#F4F4F2!important;padding-left:0!important;padding-right:0!important}
#role-gate .role-panel{max-width:560px!important;width:100%;padding-left:0!important;padding-right:0!important;overflow:hidden;background:transparent!important;box-shadow:none!important;border:0!important}
#role-gate .role-panel>img,#role-gate .role-panel>.eyebrow,#role-gate .role-panel>h2,#role-gate .role-panel>.ucard,#role-gate .role-panel>.subtle{margin-left:22px!important;margin-right:22px!important}
#role-gate .role-panel>img{width:40px!important;height:40px!important;border-radius:12px!important;box-shadow:0 6px 16px rgba(11,18,21,.12);animation:lvcPop .6s cubic-bezier(.2,.9,.3,1.25) both}
#role-gate .role-panel>.eyebrow{display:none}
#role-gate .role-panel>h2{color:var(--lvc-ink)!important;font-size:30px!important;font-weight:800!important;letter-spacing:-.035em;margin-top:20px!important;animation:lvcUp .55s .05s cubic-bezier(.2,.8,.2,1) both}
#role-gate .role-panel>h2::after{color:rgb(var(--lvc-acc))}
#role-gate .ucard{background:#fff!important;border:1px solid var(--lvc-line)!important;box-shadow:0 1px 2px rgba(11,18,21,.04)!important;animation:lvcUp .55s .1s cubic-bezier(.2,.8,.2,1) both}
#role-gate .ucard b{color:var(--lvc-ink)!important}#role-gate .ucard small{color:var(--lvc-mute)!important}
#role-gate .ucard .avatar{background:#0B1215!important;color:#fff!important}
#role-gate .ucard-btn{background:#F1F2EF!important;color:var(--lvc-ink)!important;transition:transform .2s,background .2s}
#role-gate .ucard-btn:active{transform:scale(.95);background:#E7E8E5!important}
#role-gate .role-panel>.subtle{font-size:13.5px!important;font-weight:500!important;color:var(--lvc-mute)!important;margin-top:16px!important;margin-bottom:2px!important;animation:lvcUp .55s .15s cubic-bezier(.2,.8,.2,1) both}

#role-gate .role-grid{display:flex!important;gap:14px!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  scrollbar-width:none;padding:14px calc(50% - var(--cw)/2) 18px!important;margin:0!important;counter-reset:lvc;touch-action:pan-x pan-y}
#role-gate .role-grid::-webkit-scrollbar{display:none}
#role-gate:not(.hidden) .role-grid{animation:lvcIn .75s .12s cubic-bezier(.2,.8,.2,1) both}

#role-gate .role-panel .role-grid .role-option.role-option{
  --a:1;--d:0;--press:1;counter-increment:lvc;
  position:relative;flex:0 0 var(--cw)!important;width:var(--cw)!important;height:clamp(340px,54vh,430px)!important;min-height:0!important;box-sizing:border-box;
  scroll-snap-align:center;scroll-snap-stop:always;
  display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:stretch!important;text-align:left!important;
  padding:20px 20px 18px!important;border-radius:28px!important;overflow:hidden;background:#fff!important;
  border:1px solid var(--lvc-line)!important;box-shadow:0 1px 2px rgba(11,18,21,.04),0 calc(18px - 12px*var(--a)) calc(40px - 24px*var(--a)) rgba(11,18,21,calc(.10 - .06*var(--a)))!important;
  color:var(--lvc-ink)!important;animation:none!important;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transform:translateY(calc(10px*var(--a))) scale(calc((1 - .08*var(--a))*var(--press)));opacity:calc(1 - .45*var(--a));
  transition:transform .14s linear,box-shadow .2s;will-change:transform,opacity}
#role-gate .role-panel .role-grid .role-option.role-option:active{--press:.97}
#role-gate .role-panel .role-grid .role-option.role-option:focus-visible{outline:2px solid var(--lvc-ink);outline-offset:3px}
/* IMPORTANTE: las áreas que la app oculta por permisos (style="display:none") deben seguir ocultas. */
#role-gate .role-panel .role-grid .role-option.role-option[style*="display: none"],#role-gate .role-panel .role-grid .role-option.role-option[style*="display:none"]{display:none!important}

#role-gate .role-panel .role-grid .role-option.role-option::before{content:counter(lvc,decimal-leading-zero);position:absolute;top:22px;left:22px;font:600 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;color:#A3A9AD}
#role-gate .role-panel .role-grid .role-option.role-option .role-icon{display:none!important}

/* dibujo */
#role-gate .role-panel .role-grid .role-option.role-option .art{order:-1;flex:1 1 auto;min-height:0;display:grid;place-items:center;margin:26px 0 16px;
  transform:translateX(calc(var(--d)*-26px)) scale(calc(1 - .08*var(--a)));transition:transform .14s linear}
#role-gate .role-panel .role-grid .role-option.role-option .art svg{width:100%;height:100%;max-height:190px;overflow:visible;fill:none;stroke:#0B1215;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.art .fl{fill:rgba(11,18,21,.04);stroke:none}
.art .sh{fill:rgba(11,18,21,.08);stroke:none}
.art .a{stroke:rgb(224,51,90)}
.art .af{fill:rgb(224,51,90);stroke:none}
.art .trk{stroke:rgba(11,18,21,.1)}
.art text{fill:rgb(224,51,90);stroke:none;font:700 12px Inter,system-ui,-apple-system,sans-serif}
.art text.big{fill:#0B1215;font-size:26px}
.art .d{stroke-dasharray:1;stroke-dashoffset:0}
.art .prog{stroke-dasharray:1;stroke-dashoffset:.38}
.art .bar{fill:rgba(11,18,21,.05);transform-box:fill-box;transform-origin:50% 100%}
.art .bar.a{fill:rgba(224,51,90,.12)}
.art .wh,.art .coin,.art .stamp,.art .drip,.art .mag,.art .sp,.art .up,.art .drop,.art .pulse,.art .truck,.art .speed,.art .awn{transform-box:fill-box;transform-origin:center}
.art .road{stroke:rgba(11,18,21,.25);stroke-dasharray:10 12}
.art .pulse{fill:none;opacity:.35}

@keyframes lvcDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes lvcProg{from{stroke-dashoffset:1}to{stroke-dashoffset:.38}}
@keyframes lvcBob{from{transform:translateY(0)}to{transform:translateY(-6px)}}
@keyframes lvcSpin{to{transform:rotate(360deg)}}
@keyframes lvcRoad{to{stroke-dashoffset:-44}}
@keyframes lvcSpeed{0%{transform:translateX(10px);opacity:0}30%{opacity:1}100%{transform:translateX(-12px);opacity:0}}
@keyframes lvcTwinkle{0%,100%{opacity:.15;transform:scale(.7)}50%{opacity:1;transform:scale(1.15)}}
@keyframes lvcStamp{0%{transform:scale(0);opacity:0}70%{transform:scale(1.18);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes lvcBlink{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes lvcDrip{0%{transform:translateY(-14px);opacity:0}25%{opacity:1}100%{transform:translateY(16px);opacity:0}}
@keyframes lvcOrbit{0%{transform:translate(0,0)}25%{transform:translate(-14px,-8px)}50%{transform:translate(-20px,4px)}75%{transform:translate(-8px,10px)}100%{transform:translate(0,0)}}
@keyframes lvcDrop{0%{transform:translateY(-52px);opacity:0}14%{opacity:1}34%{transform:translateY(0)}40%{transform:translateY(-6px)}46%{transform:translateY(0)}88%{transform:translateY(0);opacity:1}100%{transform:translateY(0);opacity:0}}
@keyframes lvcBar{0%,8%{transform:scaleY(0)}55%,100%{transform:scaleY(1)}}
@keyframes lvcUpDown{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes lvcPulse{0%{transform:scale(.82);opacity:.5}100%{transform:scale(1.22);opacity:0}}
@keyframes lvcSway{from{transform:translateY(0)}to{transform:translateY(2.5px)}}
@keyframes lvcRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes lvcIn{from{opacity:0;transform:translateX(46px)}to{opacity:1;transform:none}}
@keyframes lvcUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes lvcPop{from{opacity:0;transform:scale(.6) rotate(-8deg)}to{opacity:1;transform:none}}

.is-active .art .d{animation:lvcDraw .95s cubic-bezier(.4,0,.2,1) both}
.is-active .art .prog{animation:lvcProg 1.5s cubic-bezier(.4,0,.2,1) .2s both}
.is-active .art .t1{animation-delay:.18s}.is-active .art .t2{animation-delay:.34s}.is-active .art .t3{animation-delay:.5s}.is-active .art .t4{animation-delay:.66s}
.is-active .art .coin{animation:lvcBob 1.6s ease-in-out infinite alternate}
.is-active .art .sp{animation:lvcTwinkle 1.8s ease-in-out infinite}.is-active .art .sp.s2{animation-delay:.9s}
.is-active .art .stamp{animation:lvcStamp .6s cubic-bezier(.3,1.4,.5,1) 1.1s both}
.is-active .art .light{animation:lvcBlink 1.8s steps(2,end) infinite}
.is-active .art .awn{animation:lvcSway 1.4s ease-in-out infinite alternate}
.is-active .art .truck{animation:lvcSway .5s ease-in-out infinite alternate}
.is-active .art .wh{animation:lvcSpin .9s linear infinite}
.is-active .art .road{animation:lvcRoad .7s linear infinite}
.is-active .art .speed{animation:lvcSpeed 1s linear infinite}
.is-active .art .drip{animation:lvcDrip 2.2s ease-in infinite}.is-active .art .drip.c2{animation-delay:1.1s}
.is-active .art .mag{animation:lvcOrbit 3.2s ease-in-out infinite}
.is-active .art .drop{animation:lvcDrop 3s ease-out infinite}
.is-active .art .bar{animation:lvcBar 1.4s cubic-bezier(.3,1.2,.4,1) both}
.is-active .art .b2{animation-delay:.12s}.is-active .art .b3{animation-delay:.24s}.is-active .art .b4{animation-delay:.36s}
.is-active .art .up{animation:lvcUpDown 1.2s ease-in-out infinite}
.is-active .art .pulse{animation:lvcPulse 2.2s ease-out infinite}

/* texto */
#role-gate .role-panel .role-grid .role-option.role-option>span:nth-child(2){display:block;position:relative;transform:translateX(calc(var(--d)*-10px));transition:transform .14s linear}
#role-gate .role-panel .role-grid .role-option.role-option strong{display:block;color:var(--lvc-ink)!important;font-size:24px!important;font-weight:800!important;letter-spacing:-.03em;line-height:1.12}
#role-gate .role-panel .role-grid .role-option.role-option small{display:block;margin-top:7px;color:var(--lvc-mute)!important;font-size:13px!important;line-height:1.42;font-weight:450}
#role-gate .role-panel .role-grid .role-option.role-option .role-sum{display:inline-flex;align-items:center;margin-top:12px;font-style:normal;font-size:12px;font-weight:600;color:var(--lvc-ink)!important;background:#F4F4F2;border-radius:99px;padding:6px 11px}
#role-gate .role-panel .role-grid .role-option.role-option .role-sum:empty{display:none}
#role-gate .role-panel .role-grid .role-option.role-option .role-sum::before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;background:rgb(var(--lvc-acc))}
#role-gate .role-panel .role-grid .role-option.role-option.is-active strong{animation:lvcRise .5s cubic-bezier(.2,.8,.2,1) both}
#role-gate .role-panel .role-grid .role-option.role-option.is-active small{animation:lvcRise .5s .07s cubic-bezier(.2,.8,.2,1) both}
#role-gate .role-panel .role-grid .role-option.role-option.is-active .role-sum{animation:lvcRise .5s .14s cubic-bezier(.2,.8,.2,1) both}
#role-gate .role-panel .role-grid .role-option.role-option .role-check{display:none!important}
/* «Entrar →» en la tarjeta del centro */
#role-gate .role-panel .role-grid .role-option.role-option::after{content:"Entrar →";position:absolute;top:15px;right:16px;padding:8px 13px;border-radius:99px;background:#0B1215;color:#fff;
  font:700 12px/1 Inter,system-ui,-apple-system,sans-serif;letter-spacing:.01em;opacity:0;transform:translateY(-6px) scale(.9);transition:opacity .3s,transform .35s cubic-bezier(.2,.8,.2,1);pointer-events:none}
#role-gate .role-panel .role-grid .role-option.role-option.is-active::after{opacity:calc(1 - var(--a));transform:none}

/* posición y aviso */
.role-dots{display:flex;justify-content:center;align-items:center;gap:7px;height:12px;margin:0 0 4px}
.role-dots i{display:block;width:6px;height:6px;border-radius:99px;background:#D3D6D2;transition:width .35s cubic-bezier(.2,.8,.2,1),background-color .3s}
.role-dots i.on{width:22px;background:#0B1215}
.role-hint{display:flex;justify-content:center;align-items:center;gap:8px;height:20px;font:500 12px Inter,system-ui,-apple-system,sans-serif;color:#8A9196;transition:opacity .5s,transform .5s;overflow:hidden}
.role-hint i{display:block;width:16px;height:1.5px;background:#8A9196;position:relative;animation:lvcHint 1.4s ease-in-out infinite}
.role-hint i::after{content:"";position:absolute;right:0;top:-3px;width:6px;height:6px;border-top:1.5px solid #8A9196;border-right:1.5px solid #8A9196;transform:rotate(45deg)}
.role-hint.gone{opacity:0;transform:translateY(6px);pointer-events:none}
@keyframes lvcHint{0%,100%{transform:translateX(0)}50%{transform:translateX(7px)}}
.role-count{height:0;opacity:0;text-align:center;font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em;color:#8A9196;transition:opacity .4s;margin-top:-20px}
.role-count.on{opacity:1;height:20px}

@media (min-width:600px){#role-gate{--cw:290px}}
@media (prefers-reduced-motion:reduce){
  #role-gate *,.role-hint i{animation:none!important}
  #role-gate .role-panel .role-grid .role-option.role-option,#role-gate .role-grid .role-option .art,.role-dots i{transition:none}}

/* v142: deslizar rápido entre áreas: sin detenerse en cada tarjeta */
#role-gate .role-grid{scroll-snap-type:x proximity!important}
#role-gate .role-panel .role-grid .role-option.role-option{scroll-snap-stop:normal!important}

/* v305 · Computadora: columna centrada y amplia, con las áreas laterales completas; en teléfono no cambia nada */
@media (min-width:600px){#role-gate .role-panel{max-width:1100px!important;overflow:visible!important;margin-left:auto!important;margin-right:auto!important}#role-gate{--cw:360px}}
