/**
 * Liberty Loyalty · Panel, web pública e instalador.
 * Liberty Digital Agency LLC
 */

:root {
    --ll-brand: #4f46e5;
    --ll-brand-dark: #4338ca;
    --ll-brand-soft: #eef2ff;

    --ll-bg: #f5f6f8;
    --ll-surface: #ffffff;
    --ll-surface-2: #fafafb;
    --ll-line: #e4e6eb;
    --ll-ink: #1c2028;
    --ll-muted: #656c7a;

    --ll-success: #0f7b4f;
    --ll-success-soft: #e6f6ee;
    --ll-warning: #94620a;
    --ll-warning-soft: #fdf4e0;
    --ll-danger: #b42318;
    --ll-danger-soft: #fdecea;
    --ll-info: #1d4ed8;
    --ll-info-soft: #eaf0ff;

    --ll-radius: 12px;
    --ll-radius-lg: 18px;
    --ll-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
    --ll-shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);

    --ll-sidebar-w: 244px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ll-bg);
    color: var(--ll-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--ll-brand); }

.ll-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.ll-muted { color: var(--ll-muted); }
.ll-small { font-size: .86rem; }
.ll-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ll-nowrap { white-space: nowrap; }
.ll-right { text-align: right; }
.ll-center { text-align: center; }
.ll-mt { margin-top: 20px; }
.ll-mb { margin-bottom: 20px; }
.ll-hidden { display: none !important; }

.ll-sr {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ------------------------------------------------------------------ Logo */

.ll-logo {
    display: inline-block;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ll-brand), #22d3ee);
    position: relative;
    flex: 0 0 auto;
}

.ll-logo::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #fff;
}

.ll-logo--admin { background: linear-gradient(135deg, #b45309, #f59e0b); }

/* ------------------------------------------------------------- Estructura */

.ll-shell { display: flex; min-height: 100vh; }

.ll-sidebar {
    width: var(--ll-sidebar-w);
    flex: 0 0 var(--ll-sidebar-w);
    background: var(--ll-surface);
    border-right: 1px solid var(--ll-line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.ll-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 18px 14px;
}

.ll-sidebar__brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ll-ink);
    font-weight: 700;
    min-width: 0;
}

.ll-sidebar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ll-sidebar__close {
    display: none;
    background: none; border: 0; font-size: 26px; line-height: 1;
    color: var(--ll-muted); cursor: pointer;
}

.ll-nav { padding: 4px 10px; flex: 1; overflow-y: auto; }

.ll-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--ll-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: .94rem;
    margin-bottom: 2px;
}

.ll-nav__item:hover { background: var(--ll-surface-2); }

.ll-nav__item.is-active {
    background: var(--ll-brand-soft);
    color: var(--ll-brand-dark);
    font-weight: 650;
}

.ll-nav__divider { height: 1px; background: var(--ll-line); margin: 12px 12px; }

.ll-nav__icon {
    width: 18px; height: 18px;
    flex: 0 0 18px;
    border-radius: 5px;
    background: currentColor;
    opacity: .5;
}

.ll-nav__item.is-active .ll-nav__icon { opacity: .9; }

.ll-sidebar__billing {
    margin: 12px;
    padding: 12px;
    border-radius: var(--ll-radius);
    font-size: .82rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ll-sidebar__billing a { font-weight: 600; }

.ll-tone-success { background: var(--ll-success-soft); color: var(--ll-success); }
.ll-tone-warning { background: var(--ll-warning-soft); color: var(--ll-warning); }
.ll-tone-danger  { background: var(--ll-danger-soft);  color: var(--ll-danger); }
.ll-tone-info    { background: var(--ll-info-soft);    color: var(--ll-info); }

.ll-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ll-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    background: var(--ll-surface);
    border-bottom: 1px solid var(--ll-line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.ll-topbar__title { font-size: 1.15rem; margin: 0; flex: 1; min-width: 0; }

.ll-topbar__right { display: flex; align-items: center; gap: 10px; }

.ll-topbar__menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}

.ll-topbar__menu span { display: block; width: 20px; height: 2px; background: var(--ll-ink); border-radius: 2px; }

.ll-content { padding: 24px; flex: 1; }

.ll-footer {
    padding: 16px 24px;
    color: var(--ll-muted);
    font-size: .8rem;
    border-top: 1px solid var(--ll-line);
}

.ll-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 20, 30, .45);
    z-index: 40;
}

.ll-impersonate {
    background: #7c2d12;
    color: #fff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: .86rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------- Usuario */

.ll-usermenu { position: relative; }

.ll-usermenu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
}

.ll-usermenu summary::-webkit-details-marker { display: none; }
.ll-usermenu summary:hover { background: var(--ll-surface-2); }

.ll-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--ll-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .85rem;
}

.ll-usermenu__name { font-size: .9rem; font-weight: 550; }

.ll-usermenu__panel {
    position: absolute;
    right: 0; top: calc(100% + 6px);
    background: var(--ll-surface);
    border: 1px solid var(--ll-line);
    border-radius: var(--ll-radius);
    box-shadow: var(--ll-shadow-lg);
    min-width: 220px;
    padding: 8px;
    z-index: 50;
}

.ll-usermenu__email {
    margin: 4px 8px 8px;
    font-size: .8rem;
    color: var(--ll-muted);
    word-break: break-all;
}

.ll-usermenu__panel a,
.ll-usermenu__panel button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    background: none;
    border: 0;
    color: var(--ll-ink);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.ll-usermenu__panel a:hover,
.ll-usermenu__panel button:hover { background: var(--ll-surface-2); }

/* -------------------------------------------------------------- Tarjetas */

.ll-card {
    background: var(--ll-surface);
    border: 1px solid var(--ll-line);
    border-radius: var(--ll-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.ll-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ll-card__head h2 { margin: 0; }

.ll-card--flush { padding: 0; overflow: hidden; }

.ll-grid { display: grid; gap: 20px; }
.ll-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ll-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ll-grid--main { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

/* ------------------------------------------------------------------ KPIs */

.ll-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }

.ll-kpi {
    background: var(--ll-surface);
    border: 1px solid var(--ll-line);
    border-radius: var(--ll-radius);
    padding: 16px;
}

.ll-kpi__value { display: block; font-size: 1.75rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.ll-kpi__label { display: block; color: var(--ll-muted); font-size: .8rem; margin-top: 4px; }
.ll-kpi__hint { display: block; font-size: .76rem; margin-top: 6px; }

/* ---------------------------------------------------------------- Botones */

.ll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s ease, background .15s ease, transform .08s ease;
    white-space: nowrap;
}

.ll-btn:active { transform: translateY(1px); }
.ll-btn:focus-visible { outline: 3px solid var(--ll-brand); outline-offset: 2px; }

.ll-btn--primary { background: var(--ll-brand); color: #fff; }
.ll-btn--primary:hover { background: var(--ll-brand-dark); }

.ll-btn--ghost { background: var(--ll-surface); border-color: var(--ll-line); color: var(--ll-ink); }
.ll-btn--ghost:hover { background: var(--ll-surface-2); }

.ll-btn--light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.ll-btn--light:hover { background: rgba(255,255,255,.26); }

.ll-btn--danger { background: var(--ll-danger); color: #fff; }
.ll-btn--danger:hover { filter: brightness(1.08); }

.ll-btn--sm { padding: 7px 13px; font-size: .85rem; }
.ll-btn--xs { padding: 4px 10px; font-size: .78rem; border-radius: 8px; }
.ll-btn--lg { padding: 13px 26px; font-size: 1rem; }
.ll-btn--block { display: flex; width: 100%; }

.ll-btn[disabled] { opacity: .55; cursor: not-allowed; }

.ll-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------------------------------------- Formulario */

.ll-field { margin-bottom: 16px; }

.ll-field > label,
.ll-label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 5px;
}

.ll-input,
.ll-select,
.ll-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ll-line);
    border-radius: 10px;
    font: inherit;
    background: var(--ll-surface);
    color: var(--ll-ink);
}

.ll-textarea { min-height: 96px; resize: vertical; }

.ll-input:focus, .ll-select:focus, .ll-textarea:focus {
    outline: 0;
    border-color: var(--ll-brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.ll-input--error { border-color: var(--ll-danger); }

.ll-field__error { color: var(--ll-danger); font-size: .82rem; margin-top: 4px; }
.ll-field__hint { color: var(--ll-muted); font-size: .82rem; margin-top: 4px; }

.ll-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; margin-bottom: 12px; }
.ll-check input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; }
.ll-check span { line-height: 1.45; }

.ll-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.ll-inline > * { flex: 1 1 160px; }
.ll-inline > .ll-btn { flex: 0 0 auto; }

.ll-color { width: 54px; height: 40px; padding: 3px; border-radius: 8px; border: 1px solid var(--ll-line); background: var(--ll-surface); cursor: pointer; }

.ll-fieldset { border: 1px solid var(--ll-line); border-radius: var(--ll-radius); padding: 16px; margin-bottom: 18px; }
.ll-fieldset > legend { font-weight: 700; padding: 0 6px; font-size: .9rem; }

/* Selector de tipo de programa */
.ll-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }

.ll-choice__option {
    border: 2px solid var(--ll-line);
    border-radius: var(--ll-radius);
    padding: 14px;
    cursor: pointer;
    display: block;
}

.ll-choice__option:has(input:checked) { border-color: var(--ll-brand); background: var(--ll-brand-soft); }
.ll-choice__title { font-weight: 700; display: block; }
.ll-choice__desc { display: block; color: var(--ll-muted); font-size: .82rem; margin-top: 4px; }

/* ---------------------------------------------------------------- Tablas */

.ll-table { width: 100%; border-collapse: collapse; font-size: .9rem; }

.ll-table th {
    text-align: left;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ll-muted);
    padding: 10px 14px;
    border-bottom: 1px solid var(--ll-line);
    background: var(--ll-surface-2);
    white-space: nowrap;
}

.ll-table td { padding: 12px 14px; border-bottom: 1px solid var(--ll-line); vertical-align: middle; }
.ll-table tr:last-child td { border-bottom: 0; }
.ll-table tbody tr:hover { background: var(--ll-surface-2); }
.ll-table a { font-weight: 600; text-decoration: none; }

.ll-table__wrap { overflow-x: auto; }

.ll-empty { padding: 40px 20px; text-align: center; color: var(--ll-muted); }
.ll-empty h3 { color: var(--ll-ink); }

/* -------------------------------------------------------------- Etiquetas */

.ll-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 650;
    background: var(--ll-surface-2);
    color: var(--ll-muted);
    border: 1px solid var(--ll-line);
}

.ll-badge--success { background: var(--ll-success-soft); color: var(--ll-success); border-color: transparent; }
.ll-badge--warning { background: var(--ll-warning-soft); color: var(--ll-warning); border-color: transparent; }
.ll-badge--danger  { background: var(--ll-danger-soft);  color: var(--ll-danger);  border-color: transparent; }
.ll-badge--info    { background: var(--ll-info-soft);    color: var(--ll-info);    border-color: transparent; }

.ll-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ll-muted); }
.ll-dot--on { background: var(--ll-success); }
.ll-dot--off { background: #9aa1ad; }

/* ---------------------------------------------------------------- Flashes */

.ll-flashes { margin-bottom: 18px; display: grid; gap: 10px; }

.ll-flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ll-radius);
    font-size: .92rem;
}

.ll-flash--success { background: var(--ll-success-soft); color: var(--ll-success); }
.ll-flash--error   { background: var(--ll-danger-soft);  color: var(--ll-danger); }
.ll-flash--warning { background: var(--ll-warning-soft); color: var(--ll-warning); }
.ll-flash--info    { background: var(--ll-info-soft);    color: var(--ll-info); }

.ll-flash__close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.ll-flash__close:hover { opacity: 1; }

/* --------------------------------------------------------------- Progreso */

.ll-meter { background: var(--ll-line); border-radius: 999px; height: 7px; overflow: hidden; margin: 6px 0 4px; }
.ll-meter__bar { height: 100%; background: var(--ll-brand); border-radius: 999px; }
.ll-meter__bar.is-warning { background: #d97706; }
.ll-meter__bar.is-danger { background: var(--ll-danger); }

/* --------------------------------------------------------------- Gráfico */

.ll-chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 10px; border-bottom: 1px solid var(--ll-line); }
.ll-chart__col { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; min-width: 5px; }
.ll-chart__bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; background: var(--ll-line); }
.ll-chart__bar--moves { background: var(--ll-brand); }
.ll-chart__bar--signups { background: #f59e0b; }
.ll-chart__legend { display: flex; gap: 18px; font-size: .8rem; color: var(--ll-muted); margin-top: 10px; }
.ll-chart__key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ------------------------------------------------------------------- QR */

.ll-qr-box { text-align: center; background: var(--ll-surface-2); border-radius: var(--ll-radius); padding: 16px; }
.ll-qr-box img { width: 100%; max-width: 240px; height: auto; background: #fff; border-radius: 10px; padding: 8px; }

.ll-copy { display: flex; gap: 6px; }
.ll-copy input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }

/* -------------------------------------------------------------- Paginación */

.ll-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

.ll-pagination a, .ll-pagination span {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--ll-line);
    text-decoration: none;
    color: var(--ll-ink);
    font-size: .86rem;
    background: var(--ll-surface);
}

.ll-pagination .is-current { background: var(--ll-brand); color: #fff; border-color: var(--ll-brand); }

/* ------------------------------------------------------------------ Tabs */

.ll-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ll-line); margin-bottom: 18px; flex-wrap: wrap; }

.ll-tabs a {
    padding: 9px 14px;
    text-decoration: none;
    color: var(--ll-muted);
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.ll-tabs a.is-active { color: var(--ll-brand); border-bottom-color: var(--ll-brand); }

/* -------------------------------------------------------------- Filtros */

.ll-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ll-filters .ll-input, .ll-filters .ll-select { width: auto; min-width: 170px; }

/* --------------------------------------------------------------- Mostrador */

.ll-scan { max-width: 620px; margin: 0 auto; }

.ll-scan__input {
    font-size: 1.35rem;
    padding: 14px 16px;
    text-align: center;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ll-scan__video { width: 100%; border-radius: var(--ll-radius); background: #000; display: block; aspect-ratio: 4/3; object-fit: cover; }

.ll-scan__result { text-align: center; padding: 20px 0; }
.ll-scan__name { font-size: 1.5rem; font-weight: 750; margin: 0; }
.ll-scan__meta { color: var(--ll-muted); font-size: .86rem; margin: 2px 0 16px; }

.ll-scan__balance { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ll-scan__unit { color: var(--ll-muted); font-size: 1rem; }

.ll-scan__buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 10px; margin: 20px 0; }
.ll-scan__buttons .ll-btn { padding: 16px 8px; font-size: 1.1rem; }

.ll-scan__msg { font-weight: 650; min-height: 24px; }
.ll-scan__msg.is-error { color: var(--ll-danger); }
.ll-scan__msg.is-success { color: var(--ll-success); }

.ll-stamps-preview { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.ll-stamps-preview span {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px dashed var(--ll-line);
    display: grid; place-items: center;
    font-size: .72rem; color: var(--ll-muted);
}
.ll-stamps-preview span.is-filled { background: var(--ll-brand); border-color: var(--ll-brand); color: #fff; }

/* ------------------------------------------------------------------ Auth */

.ll-auth-body { background: var(--ll-bg); }

.ll-auth { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 100vh; }

.ll-auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.ll-auth__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    text-decoration: none;
    color: var(--ll-ink);
    margin-bottom: 26px;
}

.ll-auth__aside {
    background: linear-gradient(160deg, #312e81, #1e1b4b);
    color: #e9e9f5;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ll-auth__aside blockquote { margin: 0 0 28px; font-size: 1.2rem; line-height: 1.5; }
.ll-auth__points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ll-auth__points li { padding-left: 26px; position: relative; font-size: .95rem; }
.ll-auth__points li::before { content: "✓"; position: absolute; left: 0; color: #6ee7b7; font-weight: 700; }
.ll-auth__vendor { font-size: .8rem; opacity: .7; margin: 0; }

.ll-auth__footer { margin-top: 20px; font-size: .9rem; color: var(--ll-muted); }

/* ------------------------------------------------------------- Instalador */

.ll-install { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.ll-install__header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.ll-install__header h1 { font-size: 1.35rem; margin: 0; }
.ll-install__header p { margin: 0; color: var(--ll-muted); font-size: .85rem; }

.ll-install__panel {
    background: var(--ll-surface);
    border: 1px solid var(--ll-line);
    border-radius: var(--ll-radius-lg);
    padding: 26px;
}

.ll-steps { display: flex; list-style: none; padding: 0; margin: 0 0 24px; gap: 8px; flex-wrap: wrap; }
.ll-steps__item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ll-muted); flex: 1 1 auto; }
.ll-steps__num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--ll-line); color: var(--ll-muted);
    display: grid; place-items: center; font-weight: 700; font-size: .8rem;
    flex: 0 0 auto;
}
.ll-steps__item.is-current .ll-steps__num { background: var(--ll-brand); color: #fff; }
.ll-steps__item.is-current { color: var(--ll-ink); font-weight: 650; }
.ll-steps__item.is-done .ll-steps__num { background: var(--ll-success); color: #fff; }

.ll-checklist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ll-checklist li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px; border-radius: var(--ll-radius);
    background: var(--ll-surface-2);
}
.ll-checklist__mark { font-weight: 800; flex: 0 0 auto; }
.ll-checklist li.is-ok .ll-checklist__mark { color: var(--ll-success); }
.ll-checklist li.is-fail { background: var(--ll-danger-soft); }
.ll-checklist li.is-fail .ll-checklist__mark { color: var(--ll-danger); }
.ll-checklist__label { font-weight: 600; display: block; }
.ll-checklist__detail { font-size: .82rem; color: var(--ll-muted); }

/* -------------------------------------------------------------- Web pública */

.ll-site-body { background: var(--ll-surface); }

.ll-site-header { border-bottom: 1px solid var(--ll-line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 20; }
.ll-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.ll-site-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; color: var(--ll-ink); }
.ll-site-nav { display: flex; align-items: center; gap: 18px; }
.ll-site-nav a { text-decoration: none; color: var(--ll-ink); font-weight: 600; font-size: .92rem; }

.ll-hero { padding: 72px 0 56px; text-align: center; background: linear-gradient(180deg, var(--ll-brand-soft), transparent); }
.ll-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.03em; margin-bottom: .3em; }
.ll-hero p { font-size: 1.1rem; color: var(--ll-muted); max-width: 620px; margin: 0 auto 28px; }
.ll-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ll-hero__note { font-size: .85rem; color: var(--ll-muted); margin-top: 16px; }

.ll-features { padding: 56px 0; }
.ll-feature { background: var(--ll-surface-2); border-radius: var(--ll-radius-lg); padding: 24px; }
.ll-feature h3 { margin-bottom: .4em; }
.ll-feature p { margin: 0; color: var(--ll-muted); font-size: .93rem; }

.ll-section-title { text-align: center; margin-bottom: 36px; }
.ll-section-title h2 { font-size: 1.9rem; letter-spacing: -.02em; }
.ll-section-title p { color: var(--ll-muted); max-width: 560px; margin: 0 auto; }

.ll-steps-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding: 20px 0 56px; }
.ll-step-how__num { width: 34px; height: 34px; border-radius: 50%; background: var(--ll-brand); color: #fff; display: grid; place-items: center; font-weight: 750; margin-bottom: 12px; }

.ll-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 20px 0 60px; align-items: start; }

.ll-plan {
    border: 1px solid var(--ll-line);
    border-radius: var(--ll-radius-lg);
    padding: 24px;
    background: var(--ll-surface);
}

.ll-plan--featured { border-color: var(--ll-brand); box-shadow: var(--ll-shadow-lg); position: relative; }
.ll-plan--featured::before {
    content: "Más elegido";
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--ll-brand); color: #fff;
    padding: 3px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
}

.ll-plan__name { font-size: 1.1rem; font-weight: 750; }
.ll-plan__price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.ll-plan__period { color: var(--ll-muted); font-size: .86rem; }
.ll-plan__desc { color: var(--ll-muted); font-size: .9rem; min-height: 42px; }
.ll-plan__features { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; font-size: .9rem; }
.ll-plan__features li { padding-left: 24px; position: relative; }
.ll-plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--ll-success); font-weight: 700; }

.ll-site-footer { border-top: 1px solid var(--ll-line); padding: 28px 0; margin-top: 40px; }
.ll-site-footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ll-muted); font-size: .86rem; }
.ll-site-footer nav { display: flex; gap: 16px; }
.ll-site-footer a { color: var(--ll-muted); text-decoration: none; }

.ll-legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 60px; }
.ll-legal h2 { margin-top: 1.6em; }

/* ---------------------------------------------------------------- Errores */

.ll-blank-body { display: grid; place-items: center; min-height: 100vh; background: var(--ll-bg); }
.ll-error-page { text-align: center; padding: 40px 20px; max-width: 520px; }
.ll-error-page__code { font-size: 4rem; font-weight: 800; color: var(--ll-brand); margin: 0; letter-spacing: -.04em; }
.ll-error-page__debug { text-align: left; background: #1f2430; color: #e6e9ef; padding: 16px; border-radius: var(--ll-radius); margin: 20px 0; overflow-x: auto; }
.ll-error-page__debug pre { font-size: .72rem; white-space: pre-wrap; word-break: break-all; }

/* ----------------------------------------------------------------- Cartel */

.ll-poster { max-width: 700px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.ll-poster__logo { max-width: 130px; height: auto; margin-bottom: 20px; }
.ll-poster h1 { font-size: 2.4rem; letter-spacing: -.02em; }
.ll-poster__lead { font-size: 1.15rem; color: var(--ll-muted); }
.ll-poster__qr { margin: 28px auto; max-width: 380px; }
.ll-poster__qr img { width: 100%; height: auto; }
.ll-poster__url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; word-break: break-all; }

@media print {
    .ll-no-print { display: none !important; }
    .ll-poster { padding: 0; }
    body { background: #fff; }
}

/* ------------------------------------------------------------------- Pre */

.ll-pre {
    background: #1f2430;
    color: #e6e9ef;
    padding: 14px 16px;
    border-radius: var(--ll-radius);
    overflow-x: auto;
    font-size: .78rem;
    line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ll-code-inline {
    background: var(--ll-surface-2);
    border: 1px solid var(--ll-line);
    border-radius: 6px;
    padding: 1px 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84em;
}

/* -------------------------------------------------------------- Responsive */

@media (max-width: 1000px) {
    .ll-grid--main { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .ll-auth { grid-template-columns: 1fr; }
    .ll-auth__aside { display: none; }
}

@media (max-width: 780px) {
    .ll-sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: var(--ll-shadow-lg);
    }

    .ll-sidebar.is-open { transform: none; }
    .ll-sidebar__close { display: block; }
    .ll-topbar__menu { display: flex; }
    .ll-content { padding: 16px; }
    .ll-topbar { padding: 10px 16px; }
    .ll-usermenu__name { display: none; }
    .ll-topbar__title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
