/* ==========================================================================
   Demo viva "event-invite" (hero de /evento): la invitación en el celular y
   la confirmación del invitado; al final el celular se va y la misma
   invitación se luce en la tablet (Cena Navideña). La invitación usa event-invite.css.
   Markup: resources/views/web/partials/anim/event-invite.blade.php
   Estados: data-inv-* (ver event-invite.css) · data-device (phone | tablet) · data-cursor
   ========================================================================== */

.lla-evh {
  --inv-p: #ec4899;   /* paleta "Rosa" de ll-design.vue */
  --inv-p2: #f472b6;
  --inv-soft: #fdf2f8;
  --inv-font: 'Playfair Display', Georgia, serif;
  --lla-bezel: #1d2129;
  --lla-bezel-edge: #3a404c;
  --lla-shadow: 0 32px 64px -24px rgba(22, 34, 58, .4), 0 10px 24px -10px rgba(22, 34, 58, .2);
  --lla-float-bg: #ffffff;
  --lla-float-text: #1e2022;
  --lla-float-shadow: 0 .75rem 2rem rgba(30, 32, 34, .15);
  --lla-glow-a: rgba(236, 72, 153, .16);
  --lla-glow-b: rgba(55, 125, 255, .14);
  --lla-cursor-fill: #1e2022;
  --lla-cursor-edge: #ffffff;
  --lla-cursor-ring: rgba(236, 72, 153, .55);
}

html[data-theme="dark"] .lla-evh {
  --lla-bezel-edge: #535b6a;
  --lla-float-bg: var(--ll-surface, #161d2d);
  --lla-float-text: var(--ll-heading, #eef2f8);
  --lla-float-shadow: 0 .75rem 2rem rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  --lla-shadow: 0 32px 64px -24px rgba(0, 0, 0, .8), 0 10px 24px -10px rgba(0, 0, 0, .55);
}

.lla-evh { max-width: 600px; margin-inline: auto; line-height: 1.3; text-align: left; }
.lla .lla-evh__stage { --lla-w: 600; --lla-h: 540; }
.lla-evh :where(b, small, strong, em, i) { margin: 0; font-size: inherit; font-style: normal; color: inherit; }
.lla-evh .bi::before { vertical-align: 0; }

.lla-evh__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.lla-evh__glow--a { left: 40px; top: 20px; width: 380px; height: 380px; background: radial-gradient(closest-side, var(--lla-glow-a), transparent); }
.lla-evh__glow--b { left: 220px; top: 200px; width: 340px; height: 340px; background: radial-gradient(closest-side, var(--lla-glow-b), transparent); }

/* Tarjetas flotantes */
.lla-evh__float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--lla-float-bg); box-shadow: var(--lla-float-shadow); color: var(--lla-float-text); font-size: 13px; font-weight: 600; white-space: nowrap; animation: lla-evh-float 5s ease-in-out infinite; }
.lla-evh__float > .bi { font-size: 20px; line-height: 1; }
.lla-evh__float small { display: block; color: #677788; font-size: 11px; font-weight: 400; }
.lla-evh__float--count { left: 0; top: 330px; animation-delay: -1.2s; }
.lla-evh__float--count .bi { color: #377dff; }
.lla-evh__float--gifts { left: 448px; top: 40px; animation-delay: -2.6s; }
.lla-evh__float--gifts .bi { color: #dc3545; }
.lla-evh__float--rsvp { left: 0; top: 436px; opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .4s var(--lla-ease), transform .45s var(--lla-ease); animation: none; }
.lla-evh__float--rsvp .bi { color: #198754; }
.lla-evh[data-inv-done] .lla-evh__float--rsvp { opacity: 1; transform: none; }

/* Tablet: la misma invitación en horizontal (portada ya diseñada de la Cena Navideña).
   Mientras se ve el celular está guardada: aparece solo en su turno (data-device="tablet"). */
.lla-evh__tablet { position: absolute; left: 0; top: 96px; z-index: 1; width: 302px; height: 178px; padding: 9px; border-radius: 20px; background: var(--lla-bezel); box-shadow: inset 0 0 0 1.5px var(--lla-bezel-edge), var(--lla-shadow); opacity: 0; transform: translate(-26px, 85px) scale(.9); transition: transform .8s var(--lla-ease), opacity .5s var(--lla-ease); }
.lla-evh__tcam { position: absolute; left: 50%; top: 3px; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: var(--lla-bezel-edge); transform: translateX(-50%); }
.lla-evh__tscreen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; background: #fff; }
.lla-evh__tcover { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: lla-evh-zoom 24s ease-in-out infinite alternate; }

/* data-device="tablet": el celular se va (se desvanece) y la tablet pasa al frente, más grande */
.lla-evh[data-device="tablet"] .lla-evh__phone { opacity: 0; transform: translateY(18px) scale(.96); }
.lla-evh[data-device="tablet"] .lla-evh__tablet { z-index: 4; opacity: 1; transform: translate(149px, 85px) scale(1.45); }
.lla-evh[data-device="tablet"] .lla-evh__float { opacity: 0; transition: opacity .3s var(--lla-ease); }

/* Celular */
.lla-evh__phone { position: absolute; left: 169px; top: 4px; z-index: 2; width: 262px; height: 528px; padding: 8px; border-radius: 40px; background: var(--lla-bezel); box-shadow: inset 0 0 0 1.5px var(--lla-bezel-edge), var(--lla-shadow); transition: opacity .5s var(--lla-ease), transform .7s var(--lla-ease); }
.lla-evh__screen { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 33px; background: #fff; }
.lla-evh__notch { position: absolute; top: 8px; left: 50%; z-index: 4; width: 70px; height: 18px; border-radius: 999px; background: var(--lla-bezel); transform: translateX(-50%); }
.lla-evh__urlbar { display: flex; flex: none; align-items: center; justify-content: center; gap: 4px; margin: 32px 12px 4px; padding: 3px 0; border-radius: 8px; background: #eef0f3; color: #677788; font-size: 8.5px; }
.lla-evh__urlbar .bi { color: #198754; font-size: 7px; }
.lla-evh__vp { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.lla-evh__scroll { transition: transform 1.1s var(--lla-ease); }

/* Puntero */
.lla-evh__cursor { position: absolute; top: 0; left: 0; z-index: 10; width: 22px; height: 22px; pointer-events: none; opacity: 0; transform: translate(330px, 500px); transition: transform .6s var(--lla-ease), opacity .3s var(--lla-ease); will-change: transform, opacity; }
.lla-evh[data-cursor] .lla-evh__cursor { opacity: 1; }
.lla-evh__cursor svg { position: relative; display: block; width: 22px; height: 22px; fill: var(--lla-cursor-fill); stroke: var(--lla-cursor-edge); stroke-width: 1.4; stroke-linejoin: round; }
.lla-evh__cursor-ring { position: absolute; left: -10px; top: -12px; width: 28px; height: 28px; border: 2px solid var(--lla-cursor-ring); border-radius: 50%; opacity: 0; }
.lla-evh__cursor.is-tap svg { animation: lla-evh-press .3s var(--lla-ease); }
.lla-evh__cursor.is-tap .lla-evh__cursor-ring { animation: lla-evh-ripple .5s var(--lla-ease); }

@container (max-width: 479px) {
  .lla .lla-evh__stage { --lla-w: 300; --lla-h: 540; }
  .lla-evh__phone { left: 19px; }
  .lla-evh__tablet { display: none; }
  /* En celular no hay tablet: el celular se queda aunque la demo pida la tablet */
  .lla-evh[data-device="tablet"] .lla-evh__phone { opacity: 1; transform: none; }
  .lla-evh__float { display: none; }
}

@keyframes lla-evh-float { 50% { transform: translateY(-6px); } }
@keyframes lla-evh-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes lla-evh-press { 50% { transform: scale(.85); } }
@keyframes lla-evh-ripple {
  0% { opacity: .9; transform: scale(.4); }
  100% { opacity: 0; transform: scale(1.4); }
}
