/* ==========================================================================
   Base compartida de las demos con celular de las landings de funciones
   (ship-customs, store-bilingual, product-variants, product-extras).
   Raíz: .lla.lla-fl.lla-{demo} · lienzo 560x540 (celular 260x528 al centro) ·
   en contenedor < 400 px solo el celular (flotantes ocultos).
   La tienda pública (plantilla 4) no tiene modo oscuro: en oscuro cambian halo, sombra y flotantes.
   ========================================================================== */

.lla-fl {
  --lla-bg: #ffffff;
  --lla-surface: #f4f6fb;
  --lla-text: #1e2022;
  --lla-muted: #677788;
  --lla-border: #e7eaf3;
  --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(55, 125, 255, .18);
  --lla-glow-b: rgba(236, 72, 153, .14);
  --lla-cursor-fill: #1e2022;
  --lla-cursor-edge: #ffffff;
  --lla-cursor-ring: rgba(55, 125, 255, .55);
  --lla-brand: #b45309;
  --lla-ok: #16a34a;
  max-width: 520px; margin-inline: auto; color: var(--lla-text); line-height: 1.3; text-align: left;
}

html[data-theme="dark"] .lla-fl {
  --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-glow-a: rgba(77, 159, 255, .14);
  --lla-glow-b: rgba(236, 72, 153, .12);
  --lla-shadow: 0 32px 64px -24px rgba(0, 0, 0, .8), 0 10px 24px -10px rgba(0, 0, 0, .55);
}

.lla .lla-fl__stage { --lla-w: 560; --lla-h: 540; }
.lla-fl :where(b, small, strong, em, i, p) { margin: 0; font-size: inherit; font-style: normal; color: inherit; }
.lla-fl .bi::before { vertical-align: 0; }

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

/* Flotantes */
.lla-fl__float { position: absolute; z-index: 3; animation: lla-fl-float 5s ease-in-out infinite; }
.lla-fl__chip {
  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;
}
.lla-fl__chip .bi { font-size: 18px; }

/* Tarjeta flotante que aparece con un estado (data-* en la raíz) */
.lla-fl__card {
  position: absolute; z-index: 8;
  padding: 12px 14px; border-radius: 16px;
  background: var(--lla-float-bg); color: var(--lla-float-text); box-shadow: var(--lla-float-shadow);
  opacity: 0; transform: translateY(-14px) scale(.96);
  transition: opacity .4s var(--lla-ease), transform .45s var(--lla-ease);
}
.lla-fl__card-head { display: flex; align-items: center; gap: 10px; }
.lla-fl__card-icon {
  flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; font-size: 17px;
}
.lla-fl__card-head b { display: block; font-size: 13px; }
.lla-fl__card-head small { display: block; font-size: 11.5px; opacity: .75; }

/* Celular */
.lla-fl__phone {
  position: absolute; left: 150px; top: 6px; z-index: 2; width: 260px; 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);
}
.lla-fl__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 33px; background: var(--lla-bg); font-size: 10.5px; }
.lla-fl__notch { position: absolute; top: 8px; left: 50%; z-index: 6; width: 70px; height: 18px; border-radius: 999px; background: var(--lla-bezel); transform: translateX(-50%); }
.lla-fl__content { position: absolute; inset: 0; }
.lla-fl__urlbar { margin: 34px 12px 6px; padding: 5px 10px; border-radius: 999px; background: var(--lla-surface); color: var(--lla-muted); font-size: 9.5px; text-align: center; }
.lla-fl__urlbar .bi { margin-right: 4px; font-size: 8px; }
.lla-fl__nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; border-bottom: 1px solid var(--lla-border); font-size: 12px; }
.lla-fl__nav strong { font-weight: 800; }
.lla-fl__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px;
  border-radius: 10px; background: var(--lla-brand); color: #fff; font-size: 11.5px; font-weight: 700;
  transition: transform .15s var(--lla-ease), background .3s var(--lla-ease);
}
.lla-fl .is-pressed { transform: scale(.94); }

/* Puntero */
.lla-fl__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-fl[data-cursor] .lla-fl__cursor { opacity: 1; }
.lla-fl__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-fl__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-fl__cursor.is-tap svg { animation: lla-fl-press .3s var(--lla-ease); }
.lla-fl__cursor.is-tap .lla-fl__cursor-ring { animation: lla-fl-ripple .5s var(--lla-ease); }

/* Contenedor angosto: solo el celular */
@container (max-width: 399px) {
  .lla .lla-fl__stage { --lla-w: 290; --lla-h: 540; }
  .lla-fl__phone { left: 15px; }
  .lla-fl__float { display: none; }
  .lla-fl__card { left: 25px !important; top: 40px !important; right: auto !important; bottom: auto !important; width: 240px !important; }
  .lla-fl__glow--a { left: -60px; }
  .lla-fl__glow--b { left: 0; }
}

@keyframes lla-fl-float { 50% { transform: translateY(-6px); } }
@keyframes lla-fl-press { 50% { transform: scale(.85); } }
@keyframes lla-fl-ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes lla-fl-pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
