/* Vareliuu · Video y marketing · banner «Tú en la playa» (#playa).
   La escena es una imagen hecha con Higgsfield (video/playa-hf/b.jpg). Encima, sin deformarla: entrada con zoom suave
   y aclarado, parallax leve con el scroll, brillo del sol y destellos en el mar, y avisos que suben del celular (playa.js).
   Las capas encima van en % de la misma caja que la imagen, así que se mueven con ella. */
.vy { padding-bottom: 0; }
.vy-banner { position: relative; container-type: inline-size; aspect-ratio: 1344 / 752; border-radius: clamp(28px, 3vw, 44px); overflow: hidden; isolation: isolate;
  background: #2178f7; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 50px 90px -60px rgba(37, 99, 235, .6); }

/* ---------- la imagen y lo que vive encima ---------- */
.vy-foto { position: absolute; inset: 0; overflow: hidden; }
.vy-paralaje { position: absolute; inset: 0; transform: translate3d(0, var(--py, 0px), 0) scale(1.06); will-change: transform; }
.vy-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transition: transform 2.2s cubic-bezier(.16, 1, .3, 1), filter 1.8s ease; }
/* velo azul a la izquierda para que el titular blanco se lea sobre el cielo */
.vy-velo { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 52, 168, .5) 0%, rgba(20, 52, 168, .28) 34%, rgba(20, 52, 168, 0) 58%); }
.vy-sol { position: absolute; z-index: 1; left: 48.8%; top: 67.8%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 240, 190, .75) 0%, rgba(255, 214, 140, .32) 22%, rgba(255, 200, 120, 0) 62%); animation: vy-sol 6s ease-in-out infinite; }
.vy-chispas i { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: 5px; height: 5px; border-radius: 50%; translate: -50% -50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 6px 2px rgba(255, 250, 220, .9), 0 0 16px 4px rgba(255, 230, 170, .45); opacity: 0; animation: vy-chispa var(--t, 3.4s) ease-in-out var(--d, 0s) infinite; }

/* ---------- texto sobre el cielo ---------- */
.vy-texto { position: absolute; z-index: 3; left: 5.5cqw; top: 0; width: 44cqw; padding-top: 6.2cqw; display: grid; justify-items: start; gap: 1.5cqw; }
.vy-texto .v-titulo { font-size: clamp(40px, 5.5cqw, 76px); line-height: .92; color: #fff; text-shadow: 0 2px 24px rgba(12, 32, 110, .35); }
.vy-texto .v-titulo span { display: block; }
.vy-texto .v-titulo .vy-claro { color: #cdeeff; }
.vy-texto .v-bajada { color: #fff; max-width: 36ch; text-shadow: 0 1px 14px rgba(12, 32, 110, .45); }
.vy-texto .v-acciones { margin-top: .6cqw; }
.vy-texto .v-boton { background: #fff; color: #0a0a0a; box-shadow: 0 16px 34px -14px rgba(10, 30, 100, .6); }

/* ---------- avisos que suben del celular (a un lado de los globitos que ya trae la imagen) ---------- */
.vy-avisos { --sube: 19cqw; position: absolute; z-index: 2; left: 62.5%; top: 66%; width: 0; height: 0; pointer-events: none; }
.vy-globo { position: absolute; right: 0; bottom: 0; transform-origin: 100% 100%; animation: vy-sube 5.8s cubic-bezier(.3, .7, .4, 1) forwards; }
.vy-globo-in { display: flex; align-items: center; gap: 10px; padding: 8px 15px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .97); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 18px 34px -16px rgba(10, 30, 100, .55); animation: vy-vaiven 2.6s ease-in-out infinite alternate; }
.vy-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #38bdf8, #2563eb); }
.vy-ico svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vy-txt { display: grid; gap: 3px; }
.vy-txt small { font: 500 11px/1 var(--fb); color: #64748b; }
.vy-txt b { font: 600 13.5px/1.15 var(--fb); color: #0a0a0a; letter-spacing: -.01em; }
.vy-globo.fijo { animation: none; }

/* ---------- entrada (solo con JS: .vy-listo hasta que aparece y recibe .vy-on) ---------- */
.vy-texto > * { transition: opacity .9s var(--suave), transform 1.1s var(--suave); }
.vy-texto > :nth-child(1) { transition-delay: .35s; } .vy-texto > :nth-child(2) { transition-delay: .47s; } .vy-texto > :nth-child(3) { transition-delay: .59s; }
.vy-velo, .vy-sol, .vy-chispas { transition: opacity 1.4s ease .5s; }
.vy-listo:not(.vy-on) .vy-img { transform: scale(1.1); filter: brightness(.78) saturate(.85); }
.vy-listo:not(.vy-on) .vy-texto > * { opacity: 0; transform: translate3d(0, 22px, 0); }
.vy-listo:not(.vy-on) .vy-velo, .vy-listo:not(.vy-on) .vy-sol, .vy-listo:not(.vy-on) .vy-chispas { opacity: 0; }
.vy-pausa, .vy-pausa * { animation-play-state: paused !important; }

@keyframes vy-sol { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes vy-chispa { 0%, 100% { opacity: 0; transform: scale(.4); } 45%, 55% { opacity: 1; transform: scale(1); } }
@keyframes vy-sube {
  0% { opacity: 0; transform: translateY(16px) scale(.45); }
  9% { opacity: 1; transform: translateY(-2px) scale(1.05); }
  15% { transform: translateY(-6px) scale(1); }
  74% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--sube) * -1)) scale(.96); }
}
@keyframes vy-vaiven { from { transform: translateX(-5px); } to { transform: translateX(5px); } }

/* ---------- celular: texto arriba sobre azul, imagen abajo encuadrada a la derecha ---------- */
@media (max-width: 820px) {
  .vy { padding-left: 12px; padding-right: 12px; }
  .vy-banner { aspect-ratio: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #1d65f5 0%, #2380f8 100%); }
  .vy-texto { order: -1; position: relative; left: auto; width: auto; padding: 36px 24px 0; gap: 14px; }
  .vy-texto .v-titulo { font-size: clamp(40px, 12cqw, 58px); }
  .vy-texto .v-bajada { font-size: 15.5px; }
  .vy-texto .v-acciones { margin-top: 4px; }
  .vy-foto { position: relative; inset: auto; aspect-ratio: 390 / 420; margin-top: -40px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .vy-img { object-position: 79% 50%; }
  .vy-velo { display: none; }
  /* con la imagen recortada, playa.js recoloca el sol, los destellos y los avisos sobre el mismo punto de la imagen */
  .vy-sol { width: 50%; }
  .vy-avisos { --sube: 46cqw; left: 12px !important; }
  .vy-globo { right: auto; left: 0; transform-origin: 0 100%; }
  .vy-globo-in { gap: 8px; padding: 6px 12px 6px 6px; border-radius: 13px; }
  .vy-ico { width: 25px; height: 25px; border-radius: 8px; } .vy-ico svg { width: 14px; height: 14px; }
  .vy-txt small { font-size: 10px; } .vy-txt b { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .vy-banner *, .vy-banner *::before, .vy-banner *::after { animation: none !important; transition: none !important; }
  .vy-paralaje { transform: none; }
  .vy-chispas i { opacity: .8; }
}
