/* ============================================================
   DESTRE - PULIDO DE INTERFAZ (transiciones suaves)
   Capa extra que se carga DESPUES de styles.css. No cambia colores ni
   diseño: solo suaviza movimientos. Para desactivarla, sacá la línea
   <link ... fluido.css> y <script ... fluido.js> del index.html.
   ============================================================ */
:root{
  --fl-e:cubic-bezier(.22,1,.36,1);        /* sale rápido y frena suave */
  --fl-e2:cubic-bezier(.45,.05,.2,1);      /* arranca y frena suave (entrada/salida) */
}

/* ---- Botones, pestañas y tarjetas: un solo ritmo para todo ---- */
.btn{transition:transform .32s var(--fl-e),box-shadow .3s ease,background-color .3s ease,border-color .3s ease,color .3s ease,filter .3s ease,opacity .3s ease}
.btn:hover{transform:skewX(-8deg) translateY(-2px)}
.btn:active{transform:skewX(-8deg) translateY(0) scale(.97);transition-duration:.12s}
.tabs button{transition:transform .3s var(--fl-e),background .35s ease,color .3s ease,border-color .3s ease,box-shadow .35s ease}
.tabs button:active{transform:scale(.97)}
.dc{transition:transform .32s var(--fl-e),border-color .3s ease,box-shadow .35s ease,background-color .3s ease}
.dc:hover,.dc:focus-visible{transform:translateY(-3px)}
.dc:active{transform:translateY(0) scale(.97);transition-duration:.12s}
.jg-c{transition:transform .38s var(--fl-e),box-shadow .35s ease,border-color .3s ease}
.jg-c>img{transition:transform .6s var(--fl-e)}
.ib{transition:transform .25s var(--fl-e),opacity .25s ease}
.ib:active{transform:scale(.9)}
nav a{transition:color .3s ease}
a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}
input,select,textarea{transition:border-color .3s ease,box-shadow .3s ease,background-color .3s ease}

/* ---- Menú fijo: se afirma suavemente al bajar ---- */
header{transition:background-color .4s ease,box-shadow .4s ease,backdrop-filter .4s ease}
.hd{transition:height .35s var(--fl-e)}
html.fl-sc header{background:rgba(96,52,176,.24);box-shadow:0 1px 0 #8b5cf633,0 8px 24px #3b138a26}
html.lite.fl-sc header{background:rgba(70,36,130,.42)}
html.fl-sc .hd{height:58px}
header .logo .lgi{transition:height .35s var(--fl-e),filter .35s ease}

/* ---- Carrito: el fondo oscuro ya no aparece de golpe, el panel entra con curva suave ---- */
#ov{display:block;opacity:0;visibility:hidden;pointer-events:none;backdrop-filter:blur(0);
    transition:opacity .38s ease,visibility 0s linear .38s,backdrop-filter .38s ease}
#ov.s{opacity:1;visibility:visible;pointer-events:auto;backdrop-filter:blur(3px);
    transition:opacity .38s ease,visibility 0s,backdrop-filter .38s ease}
.dr{transition:transform .46s var(--fl-e2);will-change:transform}
.dr:not(.s){visibility:hidden;transition:transform .4s var(--fl-e2),visibility 0s linear .4s}
.dr.s{visibility:visible;transition:transform .46s var(--fl-e2),visibility 0s}

/* ---- Pasos del pago: aparecen deslizando un poquito en vez de saltar ---- */
@keyframes flRise{from{opacity:0;transform:translateY(12px)}}
@keyframes flFade{from{opacity:0}}
#dr .sec:not(.sec-x){animation:flRise .45s var(--fl-e) backwards}
.proof-card:not([hidden]),.ff-manual:not([hidden]){animation:flRise .4s var(--fl-e) backwards}

/* ---- Cambio de pestaña (diamantes / pases / likes...): más suave y con escalonado ----
   (app.js saca la clase .tab-in a los 600 ms, por eso todo termina antes de ese tiempo) */
@keyframes flTab{from{opacity:0;transform:translateY(10px)}}
.tab-in{animation:flTab .4s var(--fl-e) both!important}
.tab-in .dc,.tab-in .pc{animation:flTab .4s var(--fl-e) backwards}
.tab-in .dc:nth-child(2),.tab-in .pc:nth-child(2){animation-delay:.03s}
.tab-in .dc:nth-child(3),.tab-in .pc:nth-child(3){animation-delay:.06s}
.tab-in .dc:nth-child(4),.tab-in .pc:nth-child(4){animation-delay:.09s}
.tab-in .dc:nth-child(5),.tab-in .pc:nth-child(5){animation-delay:.12s}
.tab-in .dc:nth-child(n+6),.tab-in .pc:nth-child(n+6){animation-delay:.15s}

/* ---- Aparición al hacer scroll (la pone js/fluido.js; sin JS no pasa nada) ---- */
html.fl-js .fl-rv{opacity:0;transform:translateY(22px);
  transition:opacity .75s var(--fl-e),transform .75s var(--fl-e);transition-delay:var(--fl-d,0s)}
html.fl-js .fl-rv.fl-in{opacity:1;transform:none}

/* ---- Imágenes: se desvanecen al terminar de cargar (sin "pop") ---- */
html.fl-js img.fl-w{opacity:0}
html.fl-js img.fl-w.fl-ok{opacity:1;transition:opacity .6s ease}

/* ---- Foco con teclado: aro suave ---- */
:focus-visible{outline:2px solid #c084fc;outline-offset:3px;transition:outline-offset .2s ease}

/* ---- Quien prefiere menos movimiento: todo queda quieto ---- */
@media (prefers-reduced-motion:reduce){
  html.fl-js .fl-rv,html.fl-js img.fl-w{opacity:1!important;transform:none!important}
  #ov,.dr,.btn,.dc,.jg-c,header,.hd{transition:none!important}
}

/* ---- Fluidez al hacer scroll ----
   1) La barra de abajo ya es casi opaca (96%): el desenfoque no se notaba y obligaba a re-pintar el fondo en cada cuadro.
   2) Mientras se hace scroll se pausan las animaciones decorativas (foquitos, brillos); al soltar vuelven solas.
   3) Las secciones que no se ven en pantalla tienen sus animaciones en pausa (fluido.js les pone .fl-off). */
.bn:not([hidden]){-webkit-backdrop-filter:none;backdrop-filter:none}
html.fl-scrolling .lz *,html.fl-scrolling .op-glow,html.fl-scrolling .op-pj,html.fl-scrolling .jg-c,html.fl-scrolling .channel-pj{animation-play-state:paused!important}
.fl-off,.fl-off *{animation-play-state:paused!important}
