/* The film player (js/film.js): the real VSL film, 9:16 as it was cut (its title cards and her plates reach the top and
   the bottom of the frame, so a 4:5 crop would cut them), as large as the phone allows with room for the buy bar.
   --fw is the frame's width in px (set by js/film.js): the captions scale with the frame. */
.vsl-wrap.fw { background: #0d0806; }
.vsl.film { aspect-ratio: 9 / 16; max-height: none; width: min(100%, calc((100vh - 92px) * 9 / 16)); margin: 0 auto; background: #000; --fw: 390px; }
@supports (height: 100svh) { .vsl.film { width: min(100%, calc((100svh - 92px) * 9 / 16)); } }
.vsl.film .fv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; background: #000; pointer-events: none; }
.vsl.film .fv::-webkit-media-controls { display: none !important; }
/* her name in the narrator's voice (#54, js/film.js greet): the picture waits blurred, so no mouth is seen saying it, under
   the film's own «¡HOLA, NOMBRE!»; it comes back into focus as the film goes on */
.vsl.film { overflow: hidden; }
.vsl.film .fv { transition: filter .35s ease, transform .35s ease; }
.vsl.film.greet .fv { filter: blur(16px) brightness(.6); transform: scale(1.1); }
/* the upsell and downsell films open on their own words («Procesando tu pedido», a phone's notice): while muted, under the
   invite, they stay soft and dark, so two texts are never read on top of each other (the independent review's M2) */
.vsl.film.dim-prev .fv { filter: blur(10px) brightness(.5); transform: scale(1.06); }
/* the fixed buy bar (≈76 px) never covers the film: the film is sized to the screen less that bar, and her first tap brings
   it fully above the bar (js/app.js fitFilm; the independent review's M5) */
.vsl.film { width: min(100%, calc((100vh - 92px - 76px) * 9 / 16)); }
@supports (height: 100svh) { .vsl.film { width: min(100%, calc((100svh - 92px - 76px) * 9 / 16)); } }
/* the personal layer: no z-index here, so the ink drawn with multiply blends with the film's own plate under it (a stacking
   context would isolate it); the captions, the bar, the invite and the cards sit above it with their own z-index */
.vsl.film .fl { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vsl.film .fl svg.ov { position: absolute; left: 0; top: 0; display: none; overflow: visible; transform-origin: 0 0; font-kerning: none; font-variant-ligatures: none; will-change: transform; backface-visibility: hidden; }
.vsl.film .fl svg.ov.mul { mix-blend-mode: multiply; }
.vsl.film .fl svg.ov.scr { mix-blend-mode: screen; } /* the gild's glow, the weekday's glint */
.vsl.film .fl .fvx { position: absolute; pointer-events: none; }
.vsl.film .fl .fvx.scrim { inset: 0; } /* the soft dark falloff behind a title */
.vsl.film .fl .fvx.glint, .vsl.film .fl .fvx.pen { mix-blend-mode: screen; }
.vsl.film .fl svg.ov text { font-kerning: none; font-variant-ligatures: none; white-space: pre; }
/* the kit pieces were drawn by the browser in the site's own fonts: kerned and with ligatures, as on the site */
.vsl.film .fl svg.ov.web, .vsl.film .fl svg.ov.web text { font-kerning: normal; font-variant-ligatures: normal; }
/* captions: Lato 900 in a dark band, about 5.8% of the frame's width; the word being said and her own words in gold */
.vsl.film .vcap.fc { position: absolute; left: 5%; right: 5%; bottom: 9%; z-index: 2; text-align: center; text-shadow: none; pointer-events: none; transition: opacity .12s; font: 900 calc(var(--fw) * .058)/1.42 Lato, sans-serif; }
.vsl.film .vcap.fc.off { opacity: 0; }
.vsl.film .vcap.fc p { display: inline; margin: 0; padding: .1em .38em; border-radius: .34em; background: rgba(0, 0, 0, .62); color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vsl.film .vcap.fc p:empty { display: none; }
.vsl.film .vcap.fc span { opacity: 1; }
.vsl.film .vcap.fc span.now, .vsl.film .vcap.fc span.me { color: #f2c14e; }
.vsl.film .prog { z-index: 2; height: 6px; }
.vsl.film .inv { z-index: 4; background: rgba(20, 10, 6, .42); }
/* the buy button waits for the voice to say it (js/app.js shows it at the film's button time) */
.hero-buy.wait, .buybar.wait { display: none; }
.hero-buy.came { animation: fvIn .5s ease; }
@keyframes fvIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.upbuy.wait, .upbar.wait { display: none; }
.upbuy.came, .upbar.came { animation: fvIn .5s ease; }

/* #casas: after she said yes, one short card per home; the tap on what weighs most reveals its saint */
.cs { padding: 14px 14px 40px; text-align: center; }
.cs-ok { display: inline-block; margin: 4px 0 10px; padding: 6px 14px; border-radius: 999px; background: #effaf3; color: var(--green-d); font: 900 15px Lato, sans-serif; }
.cs h1 { font-size: 30px; margin: 0 0 8px; }
.cs-l { font-size: 18px; line-height: 1.35; color: var(--ink); margin: 0 0 12px; }
.cs-dots { display: flex; justify-content: center; gap: 8px; margin: 0 0 12px; }
.cs-dots i { width: 12px; height: 12px; border-radius: 50%; background: #e0d3bb; }
.cs-dots i.ok { background: var(--gold); }
.cs-dots i.on { background: var(--wine); transform: scale(1.25); }
.cs-nav { margin-top: 14px; }
.cs-nav .btn.came { animation: fvIn .5s ease; }
.cs-f { font-size: 15px; color: var(--muted); margin: 0 6px; }
.hc .q-lab { display: block; margin: 12px 0 6px; font: 900 17px Lato, sans-serif; color: var(--ink); }
.hc .q-lab small { font-weight: 700; color: var(--muted); }
.hc-p5 { margin-top: 0; }
.hc-p5 .pl { grid-template-columns: 64px 1fr 26px; min-height: 64px; gap: 12px; border-width: 2px; }
.hc-p5 .pl img { width: 64px; height: 64px; }
.hc-p5 .pl > span { font-size: 18px; }
.hc.rv .hc-p5 .pl:not(.on) { opacity: .55; }
.hc-rev { margin: 16px -14px -14px; padding: 18px 14px 20px; border-radius: 0 0 16px 16px; background: radial-gradient(circle at 50% 30%, #4a2218, #160a07 78%); color: #fff; text-align: center; }
.hc-rev .hr-glow { position: relative; width: 58%; margin: 0 auto 12px; }
.hc-rev .hr-glow::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .55), rgba(255, 214, 120, 0) 68%); }
.hc-rev .hr-cu { position: relative; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6)); }
.hc-rev .hr-k { margin: 0; font: 700 16px Lato, sans-serif; color: #f3e4c4; letter-spacing: .04em; }
.hc-rev .hr-s { margin: 2px 0 4px; font: 700 27px/1.15 Cinzel, serif; color: #f2c14e; }
.hc-rev .hr-f { margin: 0; font: italic 600 19px/1.3 "Cormorant Garamond", serif; color: #fff; }
.hc-rev.go .hr-glow::before { animation: hrGlow 1.6s ease-out both; }
.hc-rev.go .hr-cu { animation: hrCu 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.hc-rev.go .hr-k, .hc-rev.go .hr-s, .hc-rev.go .hr-f { animation: fvIn .6s ease both; }
.hc-rev.go .hr-k { animation-delay: .7s; }
.hc-rev.go .hr-s { animation-delay: .95s; }
.hc-rev.go .hr-f { animation-delay: 1.2s; }
@keyframes hrGlow { 0% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.15); } 100% { opacity: .8; transform: scale(1); } }
@keyframes hrCu { 0% { opacity: 0; transform: scale(.7) rotateY(80deg); filter: brightness(2.2) blur(3px); } 60% { opacity: 1; filter: brightness(1.3) blur(0); } 100% { transform: none; filter: none; } }

/* #gracias: the email promise as the up/down films say it, and each extra home with its saint */
.gr-mail { margin: 4px auto 14px; max-width: 420px; padding: 12px 14px; border-radius: 14px; background: #effaf3; border: 2px solid #bfe5cd; color: var(--green-d); font: 900 19px/1.3 Lato, sans-serif; }
.gr-mail small { display: block; margin-top: 2px; font: 700 15px Lato, sans-serif; color: var(--muted); }
.gr-oc > div b { display: block; margin-top: 6px; font: 900 14px/1.2 Lato, sans-serif; color: var(--ink); }
.gr-oc > div small { display: block; font: 700 13px/1.2 Lato, sans-serif; color: var(--gold-ink); }

/* the line under the up/down price wraps evenly (no lone «kit») */
.upbuy .upk { text-wrap: balance; }
/* the next / later buttons swap at the reveal (.btn and .ghost set their own display, so [hidden] needs the force) */
.cs [hidden], .upbuy [hidden] { display: none !important; }
