/* Demo "digital-delivery" (/productos-digitales). Base: fl-phone.css.
   data-state: start | paid | mail | download | done */

.lla-dd { --lla-brand: #7c3aed; --lla-cursor-ring: rgba(124, 58, 237, .55); --lla-glow-b: rgba(124, 58, 237, .14); }

.lla-dd__chip--auto { left: 0; top: 36px; }
.lla-dd__chip--auto .bi { color: #f59e0b; }
.lla-dd__chip--brand { left: 10px; top: 462px; animation-delay: -2.5s; }
.lla-dd__chip--brand .bi { color: #ec4899; }

/* Pantallas del celular */
.lla-dd__pane { transition: opacity .45s var(--lla-ease), transform .45s var(--lla-ease); }
.lla-dd__pane--mail { opacity: 0; transform: translateX(24px); }
.lla-dd:is([data-state="mail"], [data-state="download"], [data-state="done"]) .lla-dd__pane--product { opacity: 0; transform: translateX(-24px); }
.lla-dd:is([data-state="mail"], [data-state="download"], [data-state="done"]) .lla-dd__pane--mail { opacity: 1; transform: none; }

/* Ficha del producto digital */
.lla-dd__cover {
  display: flex; align-items: center; justify-content: center; height: 178px; margin: 4px 12px 0; border-radius: 16px;
  background: linear-gradient(150deg, #ede9fe, #ddd6fe 55%, #fbcfe8);
}
.lla-dd__book {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 96px; height: 128px;
  border-radius: 6px 12px 12px 6px; background: linear-gradient(160deg, #7c3aed, #5b21b6); color: #fff;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), 0 14px 24px -10px rgba(91, 33, 182, .6); transform: rotate(-4deg);
}
.lla-dd__book .bi { font-size: 30px; }
.lla-dd__book b { padding: 0 8px; font-size: 9px !important; text-align: center; line-height: 1.2; }
.lla-dd__info { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; }
.lla-dd__title { font-size: 13px !important; font-weight: 800; line-height: 1.2; }
.lla-dd__price { color: var(--lla-brand); font-size: 15px; font-weight: 800; }
.lla-dd__legend {
  display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 7px 9px; border-radius: 9px;
  background: rgba(124, 58, 237, .08); color: #5b21b6; font-size: 9.5px; font-weight: 600; line-height: 1.3;
}
.lla-dd__legend .bi { flex: none; font-size: 13px; }
.lla-dd__format { color: var(--lla-muted); font-size: 9px !important; }
.lla-dd__pay { margin-top: 10px; }

.lla-dd__paid { left: 330px; top: 74px; width: 222px; }
.lla-dd:is([data-state="paid"], [data-state="mail"]) .lla-dd__paid { opacity: 1; transform: none; }

/* Correo del negocio */
.lla-dd__mail-top { display: flex; align-items: center; gap: 8px; margin-top: 32px; padding: 6px 14px; border-bottom: 1px solid var(--lla-border); color: var(--lla-muted); font-size: 10.5px; font-weight: 600; }
.lla-dd__mail { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; }
.lla-dd__from { display: flex; align-items: center; gap: 8px; }
.lla-dd__from b { display: block; font-size: 11px !important; }
.lla-dd__from small { display: block; color: var(--lla-muted); font-size: 9px !important; }
.lla-dd__avatar { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; font-size: 10px; font-weight: 800; }
.lla-dd__subject { margin-top: 4px !important; font-size: 13px !important; font-weight: 800; line-height: 1.25; }
.lla-dd__body { color: var(--lla-muted); font-size: 10px !important; line-height: 1.4; }
.lla-dd__file { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--lla-border); border-radius: 11px; background: var(--lla-surface); }
.lla-dd__file-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #fee2e2; color: #dc2626; font-size: 17px; }
.lla-dd__file-name b { display: block; font-size: 10.5px !important; }
.lla-dd__file-name small { display: block; color: var(--lla-muted); font-size: 9px !important; }
.lla-dd__note { color: var(--lla-muted); font-size: 8.5px !important; line-height: 1.35; text-align: center; }

/* Descarga en curso */
.lla-dd__progress { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--lla-ease), transform .35s var(--lla-ease); }
.lla-dd:is([data-state="download"], [data-state="done"]) .lla-dd__progress { opacity: 1; transform: none; }
.lla-dd__bar { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: var(--lla-surface); }
.lla-dd__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a78bfa, #7c3aed); transition: width 1.4s var(--lla-ease); }
.lla-dd:is([data-state="download"], [data-state="done"]) .lla-dd__bar i { width: 100%; }
.lla-dd__progress small { display: flex; align-items: center; gap: 5px; color: var(--lla-ok); font-size: 9.5px !important; font-weight: 700; opacity: 0; transition: opacity .3s var(--lla-ease); }
.lla-dd[data-state="done"] .lla-dd__progress small { opacity: 1; }

/* Descargas por enlace */
.lla-dd__count { left: 336px; top: 300px; width: 214px; }
.lla-dd[data-state="done"] .lla-dd__count { opacity: 1; transform: none; }
.lla-dd__count-icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.lla-dd__dots { display: flex; gap: 6px; margin-top: 10px; }
.lla-dd__dots i { flex: 1; height: 6px; border-radius: 999px; background: var(--lla-surface); }
html[data-theme="dark"] .lla-dd__dots i { background: rgba(255, 255, 255, .12); }
.lla-dd__dots i.is-on { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
