/* Launch Social Manager — Descargas (tarjeta y ficha). Estilo LAUNCH: Saira Condensed + Barlow, rojo #e60012, radios 4/2. */
.lsm-dl-card, .lsm-dl-page {
    --dl-red: #e60012; --dl-red2: #b8000e; --dl-ink: #0d0e10; --dl-steel: #5b6472; --dl-line: #dde1e7; --dl-soft: #f4f5f7;
    font-family: Barlow, "Segoe UI", system-ui, sans-serif; color: var(--dl-ink);
}
.lsm-dl-card { background: #fff; border: 1px solid var(--dl-line); border-top: 3px solid var(--dl-ink); border-radius: 4px; margin: 12px 0; }
.lsm-dl-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.lsm-dl-row + .lsm-dl-row { border-top: 1px solid #eceef2; }
.lsm-dl-ico { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 2px; background: var(--dl-soft); color: var(--dl-ink); }
.lsm-dl-ico svg { width: 22px; height: 22px; }
.lsm-dl-ico.is-big { width: 56px; height: 56px; background: var(--dl-ink); color: #fff; }
.lsm-dl-ico.is-big svg { width: 28px; height: 28px; }
.lsm-dl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lsm-dl-name { font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.lsm-dl-meta { font-size: 13.5px; color: var(--dl-steel); margin: 0; }

.lsm-dl-btn { position: relative; overflow: hidden; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 2px;
    background: var(--dl-red); color: #fff !important; text-decoration: none !important; cursor: pointer;
    font-family: "Saira Condensed", Barlow, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
    transition: background-color .18s ease, transform .12s ease; }
.lsm-dl-btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.lsm-dl-btn:hover { background: var(--dl-red2); }
.lsm-dl-btn:hover svg { transform: translateY(2px); }
.lsm-dl-btn:active { transform: scale(.97); }
.lsm-dl-btn:focus-visible { outline: 2px solid var(--dl-ink); outline-offset: 2px; }
.lsm-dl-btn.is-off { background: #c9ced6; cursor: default; }
.lsm-dl-btn.is-off:hover { background: #c9ced6; }
/* Al pulsar: una franja recorre el botón mientras el navegador empieza la descarga */
.lsm-dl-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.85); transform: scaleX(0); transform-origin: left; }
.lsm-dl-btn.is-busy::after { animation: lsm-dl-bar 1.4s ease-in-out forwards; }
.lsm-dl-btn.is-done { background: var(--dl-ink); }
@keyframes lsm-dl-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Ficha */
.lsm-dl-page { max-width: 820px; margin: 0 auto; padding: 40px 16px 64px; }
.lsm-dl-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--dl-steel); margin-bottom: 18px; flex-wrap: wrap; }
.lsm-dl-crumbs a { color: var(--dl-steel); text-decoration: none; border-bottom: 1px solid transparent; }
.lsm-dl-crumbs a:hover { color: var(--dl-red); border-bottom-color: currentColor; }
.lsm-dl-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.lsm-dl-head h1 { margin: 0; font-family: "Saira Condensed", Barlow, sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 38px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em;
    padding-left: 12px; border-left: 4px solid var(--dl-red); }
.lsm-dl-head .lsm-dl-meta { margin-top: 6px; padding-left: 16px; }
.lsm-dl-summary { color: #2b3038; font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.lsm-dl-note { border-left: 4px solid var(--dl-ink); background: var(--dl-soft); padding: 12px 14px; margin: 14px 0; font-size: 15px; border-radius: 2px; }
.lsm-dl-note.is-err { border-left-color: var(--dl-red); background: #fff1f1; }
.lsm-dl-note.is-ok { border-left-color: #0f8a4b; background: #eefaf3; }
.lsm-dl-gate { background: #fff; border: 1px solid var(--dl-line); border-top: 3px solid var(--dl-red); border-radius: 4px; padding: 18px 16px; margin: 14px 0;
    animation: lsm-dl-in .28s ease-out; }
.lsm-dl-label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.lsm-dl-gate select { width: 100%; margin-bottom: 12px; }
.lsm-dl-inline { display: flex; gap: 8px; }
.lsm-dl-inline input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--dl-line); border-radius: 2px; padding: 10px 12px; font-size: 16px; font-family: inherit; }
.lsm-dl-inline input:focus { outline: 2px solid var(--dl-red); outline-offset: -1px; border-color: var(--dl-red); }
.lsm-dl-hint { font-size: 13.5px; color: var(--dl-steel); margin: 8px 0 0; }
.lsm-dl-back { margin-top: 28px; font-size: 14px; }
.lsm-dl-back a { color: var(--dl-red); font-weight: 700; text-decoration: none; }
@keyframes lsm-dl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
    .lsm-dl-row { flex-wrap: wrap; }
    .lsm-dl-row .lsm-dl-btn { width: 100%; justify-content: center; }
    .lsm-dl-inline { flex-direction: column; }
    .lsm-dl-inline .lsm-dl-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .lsm-dl-btn, .lsm-dl-btn svg { transition: none; }
    .lsm-dl-btn.is-busy::after, .lsm-dl-gate { animation: none; }
}
