/* Panel de administración. Sin dependencias; móvil primero. */

:root {
    --bg: #f5f5f4;
    --surface: #ffffff;
    --surface-2: #fafaf9;
    --border: #e7e5e4;
    --border-strong: #d6d3d1;
    --text: #1c1917;
    --muted: #78716c;
    --accent: #1c1917;
    --accent-text: #ffffff;
    --focus: #2563eb;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --success: #15803d;
    --success-bg: #f0fdf4;
    --warning: #a16207;
    --warning-bg: #fefce8;
    --info-bg: #eff6ff;
    --radius: 8px;
    --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .06);
    --sidebar: 232px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
code { font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3em; }
small, .hint { color: var(--muted); font-size: .85rem; }
.hint { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- estructura */

.admin {
    min-height: 100vh;
}

.admin__topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .6rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.admin__brand { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin__nav {
    display: none;
    position: fixed; inset: 49px 0 0 0; z-index: 25;
    padding: 1rem;
    background: var(--surface);
    overflow-y: auto;
}
.admin__nav.is-open { display: block; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .55rem .75rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--muted);
}
.nav-list a:hover { background: var(--surface-2); color: var(--text); }
.nav-list a[aria-current="page"] { background: var(--bg); color: var(--text); font-weight: 600; }
.nav-list .nav-list__button { padding: .55rem .75rem; text-decoration: none; }
.nav-list hr { border: 0; border-top: 1px solid var(--border); margin: .75rem 0; }

.admin__main { padding: 1.25rem 1rem 4rem; max-width: 1200px; }

@media (min-width: 900px) {
    .admin { display: grid; grid-template-columns: var(--sidebar) 1fr; }
    .admin__topbar { display: none; }
    .admin__nav {
        display: block; position: sticky; top: 0; inset: auto;
        height: 100vh;
        border-right: 1px solid var(--border);
    }
    .admin__nav .admin__brand { display: block; padding: .25rem .75rem 1.25rem; }
    .admin__main { padding: 2rem 2.5rem 4rem; }
}

.page-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
    margin-bottom: 1.5rem;
}
.page-header h1 { margin: 0; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .85rem; text-decoration: none; }

/* ---------------------------------------------------------------- componentes */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.card > :last-child { margin-bottom: 0; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card__header h2 { margin: 0; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 38px;
    padding: .45rem .95rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit; font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.button:hover { background: var(--surface-2); }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button--primary:hover { background: #44403c; }
.button--danger { color: var(--danger); border-color: #fecaca; }
.button--danger:hover { background: var(--danger-bg); }
.button--small { min-height: 30px; padding: .2rem .6rem; font-size: .85rem; }
.button--link { border: 0; background: none; padding: 0; min-height: 0; text-decoration: underline; color: var(--muted); }
.button--icon { padding: .3rem .5rem; min-width: 34px; }

.badge {
    display: inline-block;
    padding: .05rem .5rem;
    border-radius: 999px;
    font-size: .75rem; font-weight: 600;
    background: var(--bg); color: var(--muted);
    white-space: nowrap;
}
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }

.alert {
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: var(--info-bg);
    border: 1px solid #bfdbfe;
}
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert--error { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.alert--success { background: var(--success-bg); border-color: #bbf7d0; color: var(--success); }
.alert--warning { background: var(--warning-bg); border-color: #fde68a; color: var(--warning); }

.flash-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 100; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.flash-stack .alert { margin: 0; box-shadow: var(--shadow); }

.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- formularios */

.form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.form legend { font-weight: 600; font-size: 1.05rem; margin-bottom: .75rem; padding: 0; }

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; margin-bottom: 1rem; }
.form-grid .field { margin-bottom: 0; }
.field small { font-weight: 400; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"],
input[type="date"], input[type="search"], input:not([type]), select, textarea {
    width: 100%;
    min-height: 38px;
    padding: .45rem .65rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit; font-weight: 400;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
input[type="range"] { width: 100%; }

.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; margin-bottom: .75rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 16px; height: 16px; flex: none; }

.form-actions {
    position: sticky; bottom: 0; z-index: 10;
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    padding: .75rem 0;
    background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.range { display: flex; align-items: center; gap: .75rem; }
.range output { min-width: 3.5rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Pestañas ES | EN */
.lang-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.lang-tabs button {
    padding: .45rem .9rem;
    border: 0; border-bottom: 2px solid transparent;
    background: none; font: inherit; font-weight: 600; color: var(--muted);
    cursor: pointer;
    margin-bottom: -1px;
}
.lang-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.lang-tabs .badge { margin-left: .3rem; }
.lang-panel[hidden] { display: none; }

/* Editor de texto enriquecido */
.rich-editor { background: var(--surface); border-radius: 6px; }
.rich-editor .ql-toolbar { border-radius: 6px 6px 0 0; border-color: var(--border-strong) !important; }
.rich-editor .ql-container { min-height: 140px; border-radius: 0 0 6px 6px; border-color: var(--border-strong) !important; font: inherit; font-size: 1rem; }

/* ---------------------------------------------------------------- tablas y listas */

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; font-weight: 500; }
.table a:hover { text-decoration: underline; }
.table__thumb { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--bg); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.toolbar input[type="search"] { max-width: 260px; }
.toolbar select { width: auto; }
.toolbar__spacer { flex: 1; }

.filter-links { display: flex; flex-wrap: wrap; gap: .25rem; }
.filter-links a { padding: .3rem .7rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .9rem; }
.filter-links a[aria-current="true"] { background: var(--text); color: var(--surface); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; text-decoration: none; }
.stat__value { font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .9rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist__item { display: flex; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.checklist__icon { flex: none; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.is-ok .checklist__icon { background: var(--success-bg); color: var(--success); }
.is-error .checklist__icon { background: var(--danger-bg); color: var(--danger); }
.is-warning .checklist__icon { background: var(--warning-bg); color: var(--warning); }

/* ---------------------------------------------------------------- biblioteca */

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }

.photo-tile { position: relative; border-radius: 6px; overflow: hidden; background: var(--border); aspect-ratio: 1; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
button.photo-tile { border: 0; padding: 0; cursor: pointer; }
.photo-tile__link { position: absolute; inset: 0; }
.photo-tile__select { position: absolute; top: .4rem; left: .4rem; z-index: 2; width: 22px; height: 22px; cursor: pointer; accent-color: var(--accent); }
.photo-tile__flags { position: absolute; bottom: .35rem; left: .35rem; right: .35rem; display: flex; flex-wrap: wrap; gap: .25rem; pointer-events: none; }
.photo-tile.is-selected { outline: 3px solid var(--focus); outline-offset: -3px; }
.photo-tile__cover { position: absolute; top: .4rem; right: .4rem; }

.bulk-bar {
    position: sticky; bottom: 0; z-index: 20;
    display: none; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .75rem 1rem; margin-top: 1rem;
    background: var(--text); color: var(--surface);
    border-radius: var(--radius);
}
.bulk-bar.is-visible { display: flex; }
.bulk-bar select { width: auto; }

.dropzone {
    display: grid; place-items: center; gap: .5rem;
    padding: 1.75rem 1rem;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: 1rem;
}
.dropzone.is-dragover { border-color: var(--focus); background: var(--info-bg); }
.dropzone strong { color: var(--text); }

.upload-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.upload-item { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; padding: .5rem .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; }
.upload-item__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item__status { color: var(--muted); font-size: .8rem; }
.upload-item progress { grid-column: 1 / -1; width: 100%; height: 6px; }
.upload-item.is-error .upload-item__status { color: var(--danger); }
.upload-item.is-done .upload-item__status { color: var(--success); }

.photo-detail { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .photo-detail { grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); align-items: start; } }

.focal-picker { position: relative; cursor: crosshair; border-radius: 6px; overflow: hidden; background: var(--border); user-select: none; }
.focal-picker img { width: 100%; height: auto; }
.focal-picker__dot {
    position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px;
    border: 3px solid #fff; border-radius: 50%;
    box-shadow: 0 0 0 2px rgb(0 0 0 / .5), inset 0 0 0 2px rgb(0 0 0 / .5);
    pointer-events: none;
}
.focal-previews { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: .5rem; margin-top: .75rem; }
.focal-previews img { width: 100%; object-fit: cover; border-radius: 4px; }
.focal-previews img:nth-child(1) { aspect-ratio: 1; }
.focal-previews img:nth-child(2) { aspect-ratio: 4 / 5; }
.focal-previews img:nth-child(3) { aspect-ratio: 16 / 9; }

.meta-list { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; font-size: .9rem; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- colecciones */

.sortable-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.sortable-photos .photo-tile { cursor: grab; }
.sortable-photos .photo-tile__actions {
    position: absolute; right: .3rem; bottom: .3rem; z-index: 2;
    display: flex; gap: .25rem;
    opacity: 0; transition: opacity .15s;
}
.sortable-photos .photo-tile:hover .photo-tile__actions,
.sortable-photos .photo-tile:focus-within .photo-tile__actions { opacity: 1; }
@media (hover: none) { .sortable-photos .photo-tile__actions { opacity: 1; } }
.photo-tile__actions .button { background: rgb(255 255 255 / .92); }
.sortable-ghost { opacity: .35; }

.layout-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.layout-option { position: relative; display: block; border: 2px solid var(--border); border-radius: var(--radius); padding: .6rem; background: var(--surface); cursor: pointer; text-align: center; font-size: .9rem; font-weight: 500; }
.layout-option input { position: absolute; opacity: 0; }
.layout-option img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: .4rem; }
.layout-option:has(input:checked) { border-color: var(--text); }
.layout-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.layout-options[hidden] { display: none; }

.kv-rows { display: grid; gap: .5rem; margin-bottom: .5rem; }
.kv-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }

/* ---------------------------------------------------------------- modal */

dialog.modal {
    width: min(960px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgb(0 0 0 / .45); }
.modal__header, .modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal__footer { border-bottom: 0; border-top: 1px solid var(--border); justify-content: flex-end; }
.modal__header h2 { margin: 0; }
.modal__body { padding: 1rem 1.25rem; overflow-y: auto; max-height: calc(100vh - 12rem); }
dialog.modal--small { width: min(480px, calc(100vw - 2rem)); }

/* ---------------------------------------------------------------- menú */

.menu-layout { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1000px) { .menu-layout { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); } }

.menu-tree, .menu-tree ul { list-style: none; margin: 0; padding: 0; }
.menu-tree ul { margin-left: 2rem; min-height: 6px; }
.menu-item { margin: .4rem 0; }
.menu-item__row {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .55rem .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.menu-item__handle { cursor: grab; color: var(--muted); padding: 0 .25rem; user-select: none; }
.menu-item__label { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item__type { color: var(--muted); font-size: .85rem; }
.menu-item__details { padding: .75rem; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 6px 6px; background: var(--surface-2); }
.menu-item.is-hidden > .menu-item__row { opacity: .6; }

/* ---------------------------------------------------------------- acceso */

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem 1.5rem; box-shadow: var(--shadow); }
.auth-card--wide { max-width: 760px; }
.auth-card__brand { margin: 0 0 .25rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-card .button--primary { width: 100%; }
.auth-card--wide .button--primary { width: auto; }

.preview-frame { width: 100%; height: 70vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* ---------------------------------------------------------------- constructor de secciones */

.section-list { display: grid; gap: .6rem; }
.section-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.section-card.is-hidden { background: var(--surface-2); }
.section-card.is-hidden .section-card__title strong { color: var(--muted); }
.section-card__header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .6rem .75rem; }
.section-card__handle { cursor: grab; color: var(--muted); padding: .25rem; user-select: none; font-size: 1.1rem; }
.section-card__title {
    flex: 1; min-width: 10rem;
    display: flex; align-items: baseline; gap: .6rem;
    border: 0; background: none; padding: .25rem 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.section-card__summary { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-card__badges { display: flex; gap: .3rem; }
.section-card__actions { display: flex; align-items: center; gap: .4rem; }
.section-card__body { padding: .5rem 1rem 1rem; border-top: 1px solid var(--border); }
.section-card__common { margin-top: 1rem; }
.section-card__common summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- diseño */

.preset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.preset {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem .75rem;
    border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--surface); font: inherit; font-weight: 500; cursor: pointer; text-align: left;
}
.preset.is-active { border-color: var(--text); }
.preset__swatch {
    display: grid; place-items: center; width: 36px; height: 36px; flex: none;
    border-radius: 6px; background: var(--p-bg); color: var(--p-text);
    font-family: Georgia, serif; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1), inset 0 -6px 0 var(--p-accent);
}
.color-field { display: grid; grid-template-columns: 44px 1fr; gap: .4rem; }
.color-field input[type="color"] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); }

.design-preview {
    margin-top: 1.25rem; padding: 1.25rem;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg); color: var(--text);
}
.design-preview a { color: var(--text); }
.design-preview__title { font-family: Georgia, serif; font-size: 1.4rem; margin: 0 0 .5rem; }
.design-preview__muted { color: var(--muted); }
.design-preview__button { display: inline-block; padding: .4rem 1rem; background: var(--accent); color: var(--bg); border-radius: 4px; }
.design-preview__alt { margin-top: 1rem; padding: .75rem 1rem; background: var(--bg-alt); color: var(--text); border-radius: 4px; }

.font-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.font-sample { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.font-sample input { position: absolute; opacity: 0; }
.font-sample:has(input:checked) { border-color: var(--text); }
.font-sample:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.font-sample__heading { font-size: 1.45rem; line-height: 1.2; }
.font-sample__body { font-size: .95rem; }

.logo-box { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.logo-box__preview { display: grid; place-items: center; min-height: 90px; padding: .75rem; border-radius: 6px; background: #fff; border: 1px dashed var(--border-strong); }
.logo-box--dark .logo-box__preview { background: #1c1917; }
.logo-box__preview img { max-height: 70px; width: auto; }

/* ---------------------------------------------------------------- cuenta */

.qr { width: 200px; height: 200px; margin: .75rem 0; background: #fff; border-radius: 6px; }
.qr svg { width: 100%; height: 100%; }
.setup-steps { padding-left: 1.25rem; }
.setup-steps li { margin-bottom: 1.25rem; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; list-style: none; padding: 0; margin: .75rem 0; }
.recovery-codes code { font-size: 1rem; }
