/* =========================================================================
   Video interactivo "Así funciona" — escenas animadas en HTML/CSS
   Todas las medidas usan --u (1 % del ancho del escenario) para escalar igual
   en el teléfono, en el modal y en la pantalla del evento.
   ========================================================================= */
.pvv { --u: 3.6px; position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font, Montserrat, sans-serif); }
.pvv-stage { position: relative; flex: none; border-radius: calc(var(--u) * 7); overflow: hidden; background: #FAE4CE; box-shadow: 0 20px 60px rgba(120, 50, 10, .35); user-select: none; -webkit-user-select: none; touch-action: manipulation; color: #4A4D53; }
.pvv-stage::before { content: ""; position: absolute; inset: 0; background: url(../assets/ur/bg-claro.jpg) center / cover; opacity: .9; }
.pvv-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(253,240,231,.35), rgba(253,240,231,.6)); }
.pvv-stage > * { position: absolute; z-index: 1; }

/* barras tipo historias */
.pvv-bars { top: calc(var(--u) * 3); left: calc(var(--u) * 4); right: calc(var(--u) * 4); display: flex; gap: calc(var(--u) * 1.2); z-index: 5; }
.pvv-bars i { flex: 1; height: calc(var(--u) * .9); border-radius: 99px; background: rgba(108, 111, 118, .25); overflow: hidden; }
.pvv-bars b { display: block; height: 100%; width: 0; background: #C14A09; border-radius: 99px; }
.pvv-top { top: calc(var(--u) * 6); left: calc(var(--u) * 4); right: calc(var(--u) * 4); display: flex; align-items: center; gap: calc(var(--u) * 2); z-index: 5; }
.pvv-top img { height: calc(var(--u) * 7); }
.pvv-top span { font-weight: 800; font-size: calc(var(--u) * 3.4); letter-spacing: .12em; text-transform: uppercase; color: #6C6F76; }
.pvv-btn { bottom: calc(var(--u) * 4); right: calc(var(--u) * 4); width: calc(var(--u) * 11); height: calc(var(--u) * 11); border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #B4420A; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(120,50,10,.2); z-index: 6; cursor: pointer; }
.pvv-btn svg { width: 50%; height: 50%; }
.pvv-hint { bottom: calc(var(--u) * 6); left: calc(var(--u) * 4); font-size: calc(var(--u) * 2.8); color: #8B8E93; z-index: 6; font-weight: 600; }

/* escenas */
.pvv-scene { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--u) * 16) calc(var(--u) * 6) calc(var(--u) * 16); text-align: center; opacity: 0; visibility: hidden; }
.pvv-scene.on { opacity: 1; visibility: visible; }
.pvv-stage.paused .pvv-scene.on, .pvv-stage.paused .pvv-scene.on * { animation-play-state: paused !important; }
.pvv-cap b { display: block; font-weight: 800; font-size: calc(var(--u) * 7); line-height: 1.05; color: #4A4D53; }
.pvv-cap b em { font-style: normal; color: #B4420A; }
.pvv-cap span { display: block; margin-top: calc(var(--u) * 1.6); font-size: calc(var(--u) * 3.8); color: #6C6F76; line-height: 1.3; }
.pvv-scene.on .pvv-cap { animation: pvvUp .5s ease both; }

/* piezas reutilizables */
.pvv-phone { position: relative; width: calc(var(--u) * 40); aspect-ratio: 9 / 17; border-radius: calc(var(--u) * 5); background: #fff; border: calc(var(--u) * 1.4) solid #2a2a2c; box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 6) rgba(120,50,10,.25); overflow: hidden; }
.pvv-phone .scr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 2); padding: calc(var(--u) * 3); }
.pvv-lbl { margin-top: calc(var(--u) * 1.6); font-size: calc(var(--u) * 3); font-weight: 700; color: #6C6F76; }
.pvv-plus { display: inline-block; font-weight: 800; font-size: calc(var(--u) * 9); color: #fff; background: linear-gradient(135deg, #F38928, #C14A09); padding: calc(var(--u) * 1) calc(var(--u) * 5); border-radius: 99px; box-shadow: 0 calc(var(--u) * 1.5) calc(var(--u) * 4) rgba(174,62,7,.35); }
.pvv-qr { width: 78%; aspect-ratio: 1; background: #fff; }
.pvv-qr svg { width: 100%; height: 100%; display: block; }
.pvv-band { position: absolute; top: 0; left: 0; right: 0; padding: calc(var(--u) * 2) 0; color: #fff; font-weight: 800; font-size: calc(var(--u) * 2.8); letter-spacing: .06em; }
.pvv-band.part { background: linear-gradient(135deg, #F38928, #EC8734); }
.pvv-band.pub { background: linear-gradient(135deg, #C14A09, #8E3305); }
.pvv-cam { background: #2a1d16 !important; }
.pvv-frame { position: absolute; inset: 22% 14%; --c: #F38928; --l: calc(var(--u) * 5); --t: calc(var(--u) * .9);
  background: linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat; }
.pvv-line { position: absolute; left: 18%; right: 18%; height: calc(var(--u) * .5); background: #F38928; box-shadow: 0 0 calc(var(--u) * 2) #F38928; top: 26%; }
.pvv-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.pvv-ok { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 1.5); background: rgba(253,240,231,.96); opacity: 0; }
.pvv-ok .stamp { width: calc(var(--u) * 20); height: calc(var(--u) * 20); border-radius: 50%; border: calc(var(--u) * .9) solid #EC8734; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(var(--u) * 2.6); letter-spacing: .12em; color: #B4420A; transform: rotate(-10deg); box-shadow: inset 0 0 0 calc(var(--u) * .9) #FDF0E7, inset 0 0 0 calc(var(--u) * 1.4) #EC8734; }
.pvv-ok.pub .stamp { border-color: #C14A09; box-shadow: inset 0 0 0 calc(var(--u) * .9) #FDF0E7, inset 0 0 0 calc(var(--u) * 1.4) #C14A09; }
.pvv-ok .pvv-plus { font-size: calc(var(--u) * 5.5); }
.pvv-tap { position: absolute; width: calc(var(--u) * 9); height: calc(var(--u) * 9); border-radius: 50%; background: rgba(193,74,9,.35); border: calc(var(--u) * .6) solid #fff; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(0); opacity: 0; }
.pvv-row2 { display: flex; gap: calc(var(--u) * 5); align-items: flex-start; margin-top: calc(var(--u) * 7); }
.pvv-row2 .pvv-phone { width: calc(var(--u) * 37); }

/* escena: portada */
.pvv-intro { justify-content: center; padding-top: calc(var(--u) * 10); }
.pvv-intro .logo { width: calc(var(--u) * 46); }
.pvv-intro .t1 { white-space: nowrap; margin-top: calc(var(--u) * 5); font-weight: 800; font-size: calc(var(--u) * 7.6); letter-spacing: .06em; color: #6C6F76; }
.pvv-intro .t1 em { font-style: normal; color: #B4420A; }
.pvv-intro .t2 { font-size: calc(var(--u) * 4.4); font-style: italic; color: #6C6F76; margin-top: calc(var(--u) * 1); }
.pvv-intro .strip { display: flex; gap: calc(var(--u) * 2.2); align-items: center; justify-content: center; flex-wrap: wrap; margin-top: calc(var(--u) * 7); background: rgba(255,255,255,.85); padding: calc(var(--u) * 2.4) calc(var(--u) * 3); border-radius: calc(var(--u) * 4); }
.pvv-intro .strip img { height: calc(var(--u) * 4.6); max-width: calc(var(--u) * 15); object-fit: contain; }
.pvv-intro .strip img.tall { height: calc(var(--u) * 7); }
.pvv-scene.on .logo { animation: pvvPop .7s cubic-bezier(.2,1.5,.4,1) .1s both; }
.pvv-scene.on .t1 { animation: pvvUp .6s ease .6s both; }
.pvv-scene.on .t2 { animation: pvvUp .6s ease .9s both; }
.pvv-scene.on .strip { animation: pvvUp .6s ease 1.3s both; }

/* escena: registro */
.pvv-form { width: 100%; display: flex; flex-direction: column; gap: calc(var(--u) * 2.4); text-align: left; }
.pvv-form .t { font-weight: 800; font-size: calc(var(--u) * 4.2); color: #4A4D53; }
.pvv-form .f { height: calc(var(--u) * 8); border-radius: calc(var(--u) * 2); border: 1px solid rgba(193,74,9,.25); background: #FFF8F3; padding: 0 calc(var(--u) * 2); display: flex; align-items: center; font-size: calc(var(--u) * 2.8); color: #4A4D53; overflow: hidden; white-space: nowrap; }
.pvv-form .f span { display: inline-block; overflow: hidden; width: 0; font-size: calc(var(--u) * 3.3); }
.pvv-form .b { height: calc(var(--u) * 8); border-radius: 99px; background: linear-gradient(135deg, #C14A09, #AE3E07); color: #fff; font-weight: 800; font-style: italic; font-size: calc(var(--u) * 3); white-space: nowrap; display: flex; align-items: center; justify-content: center; margin-top: calc(var(--u) * 1); }
.pvv-reg .pvv-phone { margin-top: calc(var(--u) * 6); width: calc(var(--u) * 54); }
.pvv-reg .pvv-plus { position: absolute; top: 78%; }
.pvv-scene.on .f1 span { animation: pvvType .5s steps(6) .5s both; }
.pvv-scene.on .f2 span { animation: pvvType .5s steps(6) 1.05s both; }
.pvv-scene.on .f3 span { animation: pvvType .7s steps(14) 1.6s both; }
.pvv-scene.on .f4 span { animation: pvvType .7s steps(14) 2.25s both; }
.pvv-reg.on .pvv-tap { animation: pvvTap .6s ease 2.9s both; }
.pvv-reg.on .b { animation: pvvPress .4s ease 3s both; }
.pvv-reg.on .pvv-plus { animation: pvvPop .6s cubic-bezier(.2,1.6,.4,1) 3.3s both; }

/* escena: participar / publicar */
.pvv-part.on .pvv-qrbox, .pvv-pub.on .pvv-qrbox { animation: pvvPop .5s ease .5s both; }
.pvv-part.on .pvv-line, .pvv-pub.on .pvv-line { animation: pvvScan 1s ease-in-out .9s 2 alternate both; }
.pvv-part.on .pvv-flash { animation: pvvFlash .4s ease 2.9s both; }
.pvv-part.on .pvv-ok { animation: pvvShow .3s ease 3.1s both; }
.pvv-part.on .pvv-ok .stamp { animation: pvvStamp .5s cubic-bezier(.2,1.4,.4,1) 3.2s both; }
.pvv-part.on .pvv-ok .pvv-plus { animation: pvvPop .5s cubic-bezier(.2,1.6,.4,1) 3.6s both; }
.pvv-post { width: 100%; background: #fff; border-radius: calc(var(--u) * 2); overflow: hidden; text-align: left; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pvv-post .h { display: flex; align-items: center; gap: calc(var(--u) * 1.5); padding: calc(var(--u) * 1.6); font-size: calc(var(--u) * 2.5); font-weight: 700; color: #4A4D53; }
.pvv-post .h i { width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: 50%; background: linear-gradient(135deg, #F38928, #C14A09); }
.pvv-post .img { aspect-ratio: 1; background: linear-gradient(160deg, #F7C392, #EC8734 55%, #C14A09); display: flex; align-items: center; justify-content: center; }
.pvv-post .img img { width: 45%; filter: brightness(0) invert(1); opacity: .95; }
.pvv-post .c { padding: calc(var(--u) * 1.6); font-size: calc(var(--u) * 2.3); color: #4A4D53; line-height: 1.35; }
.pvv-post .c b { color: #B4420A; }
.pvv-heart { position: absolute; width: calc(var(--u) * 12); height: calc(var(--u) * 12); left: 50%; top: 38%; transform: translate(-50%, -50%) scale(0); color: #fff; opacity: 0; }
.pvv-pub.on .pvv-post { animation: pvvPop .5s ease .3s both; }
.pvv-pub.on .pvv-heart { animation: pvvHeart .9s ease 1.1s both; }
.pvv-pub.on .vend { animation: pvvShow .4s ease 1.9s both; }
.pvv-pub.on .pvv-qrbox { animation: pvvPop .5s ease 2.1s both; }
.pvv-pub.on .pvv-line { animation: pvvScan .8s ease-in-out 2.5s 2 alternate both; }
.pvv-pub.on .pvv-flash { animation: pvvFlash .4s ease 4.1s both; }
.pvv-pub.on .pvv-ok { animation: pvvShow .3s ease 4.3s both; }
.pvv-pub.on .pvv-ok .stamp { animation: pvvStamp .5s cubic-bezier(.2,1.4,.4,1) 4.35s both; }
.pvv-pub.on .pvv-ok .pvv-plus { animation: pvvPop .5s cubic-bezier(.2,1.6,.4,1) 4.6s both; }
.pvv-pub .vend { opacity: 0; }

/* escena: bonos */
.pvv-bon .rows { width: 100%; margin-top: calc(var(--u) * 9); display: grid; gap: calc(var(--u) * 6); }
.pvv-bon .r .l { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: calc(var(--u) * 3.4); color: #4A4D53; margin-bottom: calc(var(--u) * 1.6); }
.pvv-bon .segs { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: calc(var(--u) * 1); }
.pvv-bon .segs i { height: calc(var(--u) * 3); border-radius: 99px; background: rgba(193,74,9,.15); }
.pvv-bon .segs.part i { --c: linear-gradient(90deg, #F38928, #C14A09); }
.pvv-bon .segs.pub i { --c: linear-gradient(90deg, #C14A09, #8E3305); }
.pvv-bon.on .segs i { animation: pvvSeg .25s ease both; animation-delay: calc(var(--d) * 1s); }
.pvv-bon .bonus { font-weight: 800; font-size: calc(var(--u) * 4.4); color: #fff; background: linear-gradient(135deg, #F38928, #C14A09); padding: calc(var(--u) * .6) calc(var(--u) * 3); border-radius: 99px; opacity: 0; }
.pvv-bon.on .b1 { animation: pvvPop .5s cubic-bezier(.2,1.6,.4,1) 1.5s both; }
.pvv-bon.on .b2 { animation: pvvPop .5s cubic-bezier(.2,1.6,.4,1) 3.1s both; }
.pvv-bon .total { margin-top: calc(var(--u) * 9); }
.pvv-bon .total small { display: block; font-size: calc(var(--u) * 3.2); color: #6C6F76; font-weight: 600; }
.pvv-bon .total b { display: block; font-size: calc(var(--u) * 15); font-weight: 800; line-height: 1; background: linear-gradient(135deg, #F38928, #C14A09); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }

/* escena: sorteos */
.pvv-sor .rank { width: 100%; margin-top: calc(var(--u) * 7); display: grid; grid-template-columns: calc(var(--u) * 8) 1fr; background: rgba(255,255,255,.88); border-radius: calc(var(--u) * 4); padding: calc(var(--u) * 2.5) calc(var(--u) * 3) calc(var(--u) * 7); position: relative; }
.pvv-sor .nums { display: grid; grid-auto-rows: calc(var(--u) * 9); align-items: center; }
.pvv-sor .nums i { width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 50%; background: rgba(108,111,118,.14); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(var(--u) * 2.6); font-style: normal; color: #6C6F76; }
.pvv-sor .nums i:nth-child(-n+3) { background: linear-gradient(135deg, #F38928, #C14A09); color: #fff; }
.pvv-sor .names { position: relative; height: calc(var(--u) * 45); }
.pvv-sor .rw { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--u) * 9); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--u) * 2); font-size: calc(var(--u) * 3.2); font-weight: 600; color: #4A4D53; transform: translateY(var(--from)); border-radius: calc(var(--u) * 2.4); }
.pvv-sor .rw b { color: #B4420A; font-weight: 800; }
.pvv-sor .rw.me { background: linear-gradient(135deg, #F38928, #C14A09); color: #fff; box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) rgba(174,62,7,.35); z-index: 2; }
.pvv-sor .rw.me b { color: #fff; }
.pvv-sor.on .rw.mv { animation: pvvMove 1.4s cubic-bezier(.5,0,.2,1) .8s both; }
.pvv-sor .cut { position: absolute; left: calc(var(--u) * 3); right: calc(var(--u) * 3); bottom: calc(var(--u) * 3.5); border-top: calc(var(--u) * .6) dashed #C14A09; opacity: 0; }
.pvv-sor .cut span { position: absolute; right: 0; top: calc(var(--u) * -2.2); background: #C14A09; color: #fff; font-weight: 800; font-size: calc(var(--u) * 2.4); padding: calc(var(--u) * .4) calc(var(--u) * 2); border-radius: 99px; white-space: nowrap; }
.pvv-sor.on .cut { animation: pvvShow .4s ease 2.5s both; }
.pvv-sor .grand { margin-top: calc(var(--u) * 6); display: flex; align-items: center; gap: calc(var(--u) * 3); background: #fff; border-radius: calc(var(--u) * 4); padding: calc(var(--u) * 3); text-align: left; opacity: 0; width: 100%; }
.pvv-sor .grand i { width: calc(var(--u) * 12); height: calc(var(--u) * 12); border-radius: 50%; background: linear-gradient(135deg, #F38928, #C14A09); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.pvv-sor .grand i svg { width: 60%; height: 60%; }
.pvv-sor .grand b { display: block; font-size: calc(var(--u) * 3.8); font-weight: 800; color: #4A4D53; }
.pvv-sor .grand span { font-size: calc(var(--u) * 3); color: #6C6F76; }
.pvv-sor.on .grand { animation: pvvUp .5s ease 3.3s both; }

/* escena: invitación final */
.pvv-cta { justify-content: center; padding-top: calc(var(--u) * 10); }
.pvv-cta .drop { width: calc(var(--u) * 24); }
.pvv-cta .t { margin-top: calc(var(--u) * 6); font-weight: 800; font-size: calc(var(--u) * 9); color: #4A4D53; line-height: 1.05; }
.pvv-cta .s { margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 4); color: #6C6F76; }
.pvv-cta .go { margin-top: calc(var(--u) * 8); display: inline-flex; align-items: center; gap: calc(var(--u) * 2); font-weight: 800; font-style: italic; font-size: calc(var(--u) * 4.4); color: #fff; background: linear-gradient(135deg, #C14A09, #AE3E07); padding: calc(var(--u) * 3) calc(var(--u) * 7); border-radius: 99px; box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 5) rgba(174,62,7,.4); }
.pvv-scene.on .drop { animation: pvvPop .6s cubic-bezier(.2,1.5,.4,1) .1s both; }
.pvv-cta.on .t { animation: pvvUp .5s ease .4s both; }
.pvv-cta.on .s { animation: pvvUp .5s ease .7s both; }
.pvv-cta.on .go { animation: pvvUp .5s ease 1s both, pvvPulse 1.2s ease 1.6s infinite; }

/* final */
.pvv-end { inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 3); background: rgba(253,240,231,.92); z-index: 7; }
.pvv-end.on { display: flex; }
.pvv-end button { min-width: 60%; min-height: calc(var(--u) * 12); border-radius: 99px; font: inherit; font-weight: 800; font-size: calc(var(--u) * 4); cursor: pointer; border: 1px solid rgba(193,74,9,.3); background: #fff; color: #B4420A; }
.pvv-end button.p { background: linear-gradient(135deg, #C14A09, #AE3E07); color: #fff; border: 0; font-style: italic; }
.pvv-zone { top: calc(var(--u) * 10); bottom: calc(var(--u) * 16); z-index: 4; }
.pvv-zone.l { left: 0; width: 32%; }
.pvv-zone.r { right: 0; width: 68%; }

@keyframes pvvUp { from { opacity: 0; transform: translateY(calc(var(--u) * 4)); } to { opacity: 1; transform: none; } }
@keyframes pvvPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pvvShow { from { opacity: 0; } to { opacity: 1; } }
@keyframes pvvType { from { width: 0; } to { width: 100%; } }
@keyframes pvvTap { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } }
@keyframes pvvPress { 50% { transform: scale(.94); filter: brightness(1.1); } }
@keyframes pvvScan { from { top: 26%; } to { top: 74%; } }
@keyframes pvvFlash { 0% { opacity: 0; } 30% { opacity: .95; } 100% { opacity: 0; } }
@keyframes pvvStamp { 0% { opacity: 0; transform: scale(2.6) rotate(-35deg); } 100% { opacity: 1; transform: scale(1) rotate(-10deg); } }
@keyframes pvvHeart { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 60% { transform: translate(-50%, -50%) scale(.95); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes pvvSeg { from { background: rgba(193,74,9,.15); } to { background: var(--c); } }
@keyframes pvvMove { from { transform: translateY(var(--from)); } to { transform: translateY(var(--to)); } }
@keyframes pvvPulse { 50% { transform: scale(1.06); } }

/* modo grabación (exportar MP4): sin controles ni bordes */
.pvv.render .pvv-stage { border-radius: 0; box-shadow: none; }
.pvv.render .pvv-btn, .pvv.render .pvv-hint, .pvv.render .pvv-zone, .pvv.render .pvv-end, .pvv.render .pvv-bars { display: none !important; }
.pvv.render .pvv-top { top: calc(var(--u) * 4); }
