/* admin_app/public/css/panel.css · v24 */
/*!
 * Lodgy Web — estilos del panel
 * Ruta: /home/u598295181/domains/lodgy.app/admin_app/public/css/panel.css
 * Base visual: CRM Lodgy (DM Sans, azul #2563EB). Mobile-first, claro/oscuro, AA.
 * v6: vista previa en vivo (iframe escalado, computadora/celular) y selector
 *     de plantillas en dos columnas.
 * v5: crear sitio (tarjetas de plantilla, dirección, idiomas).
 * v4: estructura de intranet Lodgy UI (barra lateral, barra superior, resumen,
 *     pasos, plan). Base común para CRM, RMS y demás apps.
 * v2: tema elegible (html[data-theme] = auto | light | dark), componentes del
 *     login modelo y de "Mi cuenta" (2FA, códigos, dispositivos).
 */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --text: #0f172a;
  --muted: #5b6b80;
  --border: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --ok-bg: #f0fdf4; --ok-bd: #bbf7d0; --ok-tx: #166534;
  --warn-bg: #fffbeb; --warn-bd: #fde68a; --warn-tx: #92400e;
  --err-bg: #fef2f2; --err-bd: #fecaca; --err-tx: #991b1b;
  --danger: #dc2626;
  --on-brand: #ffffff;
  --logo-filter: none;
  --focus: #f59e0b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* Oscuro: elegido por el usuario, o automático si el sistema está en oscuro. */
:root[data-theme="dark"] {
    --brand: #60a5fa;
    --brand-dark: #93c5fd;
    --brand-soft: #172554;
    --on-brand: #0b1220;
    --text: #e5e7eb;
    --muted: #9aa8bb;
    --border: #273449;
    --surface: #111a2b;
    --bg: #0b1220;
    --ok-bg: #052e16; --ok-bd: #14532d; --ok-tx: #bbf7d0;
    --warn-bg: #3a2a05; --warn-bd: #78540b; --warn-tx: #fde68a;
    --err-bg: #3b0d0d; --err-bd: #7f1d1d; --err-tx: #fecaca;
    --danger: #f87171;
    --logo-filter: invert(1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"], :root:not([data-theme]) {
      --brand: #60a5fa;
      --brand-dark: #93c5fd;
      --brand-soft: #172554;
      --on-brand: #0b1220;
      --text: #e5e7eb;
      --muted: #9aa8bb;
      --border: #273449;
      --surface: #111a2b;
      --bg: #0b1220;
      --ok-bg: #052e16; --ok-bd: #14532d; --ok-tx: #bbf7d0;
      --warn-bg: #3a2a05; --warn-bd: #78540b; --warn-tx: #fde68a;
      --err-bg: #3b0d0d; --err-bd: #7f1d1d; --err-tx: #fecaca;
      --danger: #f87171;
      --logo-filter: invert(1);
      --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
      color-scheme: dark;
  }
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ── Botones ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 1.5px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 4px 16px rgba(37, 99, 235, .3); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--err-bg); }

/* ── Formularios ────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; }
.field__input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.field__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); background: var(--surface); }
.field__input--sm { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.field__group { position: relative; }
.field__group .field__input { padding-right: 48px; }
.field__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.field__toggle:hover, .field__toggle[aria-pressed="true"] { color: var(--brand); }

/* ── Alertas ────────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; border: 1px solid; margin-bottom: 18px; }
.alert--ok { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-tx); }
.alert--warn { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn-tx); }
.alert--err { background: var(--err-bg); border-color: var(--err-bd); color: var(--err-tx); }

/* ── Idiomas ────────────────────────────────────────────── */
.lang-switch, .topbar__langs { display: inline-flex; gap: 2px; }
.lang-switch a, .topbar__langs a { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--muted); }
.lang-switch a.active, .topbar__langs a.active { background: var(--brand-soft); color: var(--brand); }
.auth-tools { position: fixed; top: 12px; right: 16px; z-index: 10; display: flex; align-items: center; gap: 6px; background: var(--surface); padding: 4px; border-radius: 999px; box-shadow: var(--shadow); }

/* ── Login ──────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; }
.auth-aside { display: none; }
.auth-main { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 460px; margin: 0 auto; padding: 72px 20px 32px; background: var(--surface); }
.auth-title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); margin: 6px 0 26px; }
.auth-footer { margin-top: 32px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-footer a { color: inherit; }

.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; font-size: 12px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.pms-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; }
.pms-link:hover { border-color: var(--brand); background: var(--brand-soft); }
.pms-link__text { flex: 1; }
.pms-link__text small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

@media (min-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr 480px; }
  .auth-aside { display: flex; align-items: center; padding: 72px 64px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(60% 60% at 85% 10%, rgba(96, 165, 250, .35), transparent 60%), linear-gradient(145deg, #0f172a 0%, #1e3a5f 60%, #2563eb 100%); }
  .auth-aside__content { position: relative; max-width: 440px; }
  .auth-aside__logo { height: 36px; width: auto; margin-bottom: 44px; }
  .auth-aside__title { font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 18px; }
  .auth-aside__title span { color: #93c5fd; }
  .auth-aside__text { color: rgba(255, 255, 255, .78); font-size: 16px; margin-bottom: 36px; }
  .auth-aside__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
  .auth-aside__list li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .88); }
  .auth-aside__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #93c5fd; flex: none; }
  .auth-main { max-width: none; padding: 80px 52px; border-left: 1px solid var(--border); }
}

/* ── Panel ──────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.topbar__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); margin-right: auto; }
.topbar__logo { height: 22px; width: auto; }
.topbar__product { font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.topbar__menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: var(--radius); cursor: pointer; }
.topbar__nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 0 4px; }
.topbar__nav.is-open { display: flex; }
.topbar__account { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 760px) {
  .topbar { padding: 12px 28px; flex-wrap: nowrap; }
  .topbar__menu-btn { display: none; }
  .topbar__nav { display: flex; width: auto; flex-direction: row; align-items: center; gap: 16px; padding: 0; }
  .topbar__account { max-width: 260px; }
}

.panel-main { width: min(1100px, 100% - 32px); margin: 28px auto 64px; }
.page-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.page-head__title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.page-head__meta { color: var(--muted); margin-top: 4px; }
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }

.switcher__label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.switcher__row { display: flex; gap: 8px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.site-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.site-card__name { font-size: 17px; }
.site-card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 6px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--ok { background: var(--ok-bg); color: var(--ok-tx); }
.badge--muted { background: var(--brand-soft); color: var(--muted); }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 20px; }
.empty__icon { color: var(--brand); }
.empty__title { font-size: 19px; }
.empty__text { color: var(--muted); max-width: 46ch; margin-bottom: 8px; }

/* ── Logos e iconos según tema ─────────────────────────── */
.logo-adapt { filter: var(--logo-filter); }

/* ── Botón de tema (auto / claro / oscuro) ──────────────── */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--brand); background: var(--brand-soft); }
.theme-toggle__icon { display: none; }
.theme-toggle[data-theme-current="auto"] .theme-toggle__icon--auto,
.theme-toggle[data-theme-current="light"] .theme-toggle__icon--light,
.theme-toggle[data-theme-current="dark"] .theme-toggle__icon--dark { display: block; }

/* ── Login: extras ──────────────────────────────────────── */
.auth-main__logo { height: 28px; width: auto; max-width: none; align-self: flex-start; margin-bottom: 28px; }
@media (min-width: 960px) { .auth-main__logo { display: none; } }
.form__aside { margin: -6px 0 0; font-size: 14px; text-align: right; }
.form__aside--center { text-align: center; margin-top: 18px; }
.field__hint { margin: 0; font-size: 12px; color: var(--muted); }
.field__input--code { font-size: 20px; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.field__input[readonly] { opacity: .75; cursor: default; }
select.field__input { appearance: auto; }
.captcha { min-height: 66px; }
.link-btn { border: 0; background: none; padding: 4px; font: inherit; font-size: 14px; color: var(--brand); text-decoration: underline; cursor: pointer; }
.link-btn--muted { color: var(--muted); }

/* ── Utilidades ─────────────────────────────────────────── */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row--end { justify-content: flex-end; }
.stack > * + * { margin-top: 12px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.form--tight { gap: 12px; }
.breadcrumb { font-size: 13px; margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

/* ── Topbar: enlace de cuenta ───────────────────────────── */
.topbar__link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.topbar__link:hover, .topbar__link.active { background: var(--brand-soft); color: var(--brand); }

/* ── Mi cuenta ──────────────────────────────────────────── */
.settings { display: grid; gap: 18px; }
.settings__block { display: grid; gap: 14px; }
.settings__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.settings__head .section-title { margin: 0; }
.card--highlight { border-color: var(--brand); margin-bottom: 18px; }
.badge--muted { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .codes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.codes code, .secret { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .05em; text-align: center; }
.secret { display: inline-block; user-select: all; word-break: break-all; }

.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.devices__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.devices__icon { color: var(--muted); flex: none; margin-top: 2px; }
.devices__body { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.devices__meta { width: 100%; }

.setup { max-width: 640px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 24px; }
.steps__title { font-size: 16px; margin-bottom: 6px; }
.qr { width: 220px; height: 220px; margin: 10px 0; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--border); }

@media print {
  .topbar, .settings, .page-head, .row, .alert { display: none !important; }
  .card--highlight { border: 0; box-shadow: none; }
}

/* ══ Lodgy UI · estructura de intranet (v4) ══════════════════ */
.app { background: var(--bg); }
.app-shell { min-height: 100vh; min-height: 100dvh; }
.icon { display: block; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Barra lateral */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 272px; max-width: 86vw; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; transform: translateX(-102%); transition: transform .2s ease; }
.sidebar.is-open { transform: none; box-shadow: var(--shadow); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .45); }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.sidebar__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.sidebar__logo { height: 24px; width: auto; }
.sidebar__product { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.sidebar__account { padding: 10px 6px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.sidebar__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sidebar__account-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sidebar__account-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.select-wrap__input { width: 100%; min-height: 40px; padding: 8px 10px 8px 36px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.select-wrap__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.sidebar__nav { flex: 1; }
.sidebar__group { margin: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sidebar__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 500; }
.nav-item .icon { color: var(--muted); }
.nav-item:hover { background: var(--bg); }
.nav-item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.nav-item.is-active .icon { color: var(--brand); }
.nav-item.is-soon { color: var(--muted); cursor: default; }
.nav-item.is-soon:hover { background: transparent; }
.nav-item .pill { margin-left: auto; }
.sidebar__foot { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.user-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.user-chip:hover { background: var(--bg); }
.user-chip__text { min-width: 0; display: grid; line-height: 1.25; }
.user-chip__text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__text small { font-size: 12px; color: var(--muted); }
.avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 13px; }

/* Barra superior y contenido */
.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.appbar__context { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar__tools { display: flex; align-items: center; gap: 6px; }
.lang-switch--inline { display: inline-flex; }
.content { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.content > .page-head { margin-bottom: 4px; }
.content > .alert, .content > .card--highlight { margin-bottom: 0; }

@media (min-width: 1024px) {
  .app-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; max-width: none; transform: none; transition: none; box-shadow: none; }
  .sidebar__close, .appbar__menu, .sidebar-backdrop { display: none !important; }
  .appbar { padding: 8px 32px; }
  .content { padding: 32px 32px 72px; }
}
@media (max-width: 1023px) { body.has-drawer { overflow: hidden; } }

/* Tarjetas, resumen, pasos */
.card__head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.card__head .section-title { margin: 0 0 2px; }
.stats { display: grid; gap: 14px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stat__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.stat__label { font-size: 13px; color: var(--muted); }
.stat__value { font-size: 17px; font-weight: 700; margin-top: 2px; }
.stat__hint { font-size: 13px; color: var(--muted); margin-top: 2px; }

.progress { display: flex; gap: 4px; min-width: 160px; }
.progress__seg { flex: 1; height: 6px; border-radius: 999px; background: var(--border); }
.progress__seg.is-done { background: var(--brand); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist__item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.checklist__item.is-done { background: var(--bg); }
.checklist__mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border); font-weight: 700; font-size: 13px; color: var(--muted); }
.checklist__item.is-done .checklist__mark { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.checklist__body { flex: 1; min-width: 0; }
.checklist__title { font-size: 15px; margin-bottom: 2px; }
.checklist__action { flex: none; }
@media (max-width: 560px) {
  .checklist__item { flex-wrap: wrap; }
  .checklist__action { width: 100%; padding-left: 44px; }
}

/* Plan */
.plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 22px; }
.meter { display: flex; gap: 6px; }
.meter__seg { flex: 1; max-width: 80px; height: 10px; border-radius: 999px; background: var(--border); }
.meter__seg.is-used { background: var(--brand); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list .icon { color: var(--brand); margin-top: 2px; }
.empty .empty__icon { display: grid; place-items: center; }

/* ══ Sitio: crear y ajustes (v5) ═══════════════════════════ */
.wizard { display: grid; gap: 18px; }
.wizard__step { display: grid; gap: 14px; border: 1px solid var(--border); margin: 0; min-width: 0; }
.wizard__step[disabled] { opacity: .7; }
.wizard__legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; padding: 0; font-size: 17px; font-weight: 700; }
.wizard__legend + * { clear: both; }
.wizard__num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 14px; }
.wizard__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

.tpl-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .tpl-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 719px) { .tpl-grid .tpl-card__body { flex-direction: column; align-items: flex-start; padding: 8px 10px; } .tpl-grid .tpl-card__body strong { font-size: 14px; } }
.tpl-card { position: relative; display: grid; gap: 0; border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tpl-card:hover { border-color: var(--brand); }
.tpl-card__input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card:has(.tpl-card__input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.tpl-card:has(.tpl-card__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tpl-card.is-disabled { cursor: not-allowed; }
.tpl-card.is-disabled .tpl-card__frame { filter: grayscale(.85); opacity: .6; }
.tpl-card.is-disabled:hover { border-color: var(--border); }
.tpl-card__frame { display: block; aspect-ratio: 280 / 170; background: #fff; border-bottom: 1px solid var(--border); }
.tpl-preview { display: block; width: 100%; height: 100%; }
.tpl-card__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.tpl-card__meta { flex: none; }
.tpl-card__check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: none; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.tpl-card:has(.tpl-card__input:checked) .tpl-card__check { display: grid; }
.tpl-current .tpl-card__frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 360px; }

.addr { display: flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.addr:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); background: var(--surface); }
.addr__fix { display: flex; align-items: center; padding: 0 10px; color: var(--muted); font-size: 14px; white-space: nowrap; background: var(--surface); }
.addr__input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 4px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; }
.addr__input:focus { outline: none; }
@media (max-width: 520px) { .addr__fix:first-child { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip__input { position: absolute; opacity: 0; pointer-events: none; }
.chip__label { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-weight: 600; cursor: pointer; user-select: none; }
.chip__input:checked + .chip__label { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chip__input:focus-visible + .chip__label { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip__input:disabled + .chip__label { opacity: .45; cursor: not-allowed; }
.field--narrow { max-width: 320px; }

/* ══ Vista previa en vivo y selector (v6) ═══════════════════ */
.picker { display: grid; gap: 18px; align-items: start; }
.picker__list { min-width: 0; display: grid; gap: 14px; align-content: start; }
.picker__preview { min-width: 0; }
@media (min-width: 1180px) {
  .picker { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); }
  .picker--wizard { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .picker__preview { position: sticky; top: 76px; }
  .picker--wizard .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.content:has(.picker) { max-width: 1480px; }

.tpl-list { display: grid; gap: 8px; }
.tpl-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.tpl-row:hover { border-color: var(--brand); }
.tpl-row:has(.tpl-card__input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.tpl-row:has(.tpl-card__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tpl-row.is-disabled { cursor: not-allowed; opacity: .6; }
.tpl-row__thumb { width: 104px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.tpl-row.is-disabled .tpl-row__thumb { filter: grayscale(.9); }
.tpl-row__body { min-width: 0; display: grid; gap: 4px; }
.picker__actions { display: grid; gap: 8px; }

.pv { display: grid; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pv__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
.pv__dots { display: flex; gap: 5px; }
.pv__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.pv__url { flex: 1; min-width: 0; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.seg__btn { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.seg__btn.is-active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pv__stage { position: relative; height: 70vh; min-height: 420px; background: var(--bg); overflow: hidden; display: flex; justify-content: center; }
.pv__viewport { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.pv__viewport iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.pv.is-mobile .pv__viewport { border-radius: 26px; box-shadow: 0 0 0 10px #111, 0 18px 40px rgba(0, 0, 0, .3); overflow: hidden; top: 24px; }
.pv__loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; box-shadow: var(--shadow); pointer-events: none; transition: opacity .2s; }
.pv.is-loaded .pv__loading { opacity: 0; }
@media (max-width: 1179px) { .pv__stage { height: 64vh; } }

/* v7: plantillas premium (etiqueta, nota de compra, precios, lista en Plan) */
.pill--premium { background: var(--warn-bg); color: var(--warn-tx); border-color: var(--warn-bd); }
.premium-note { padding: 12px 14px; border-radius: var(--radius); background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-tx); display: grid; gap: 6px; }
.premium-note[hidden] { display: none; }
.premium-note .muted { color: inherit; opacity: .8; }
.offer { margin: 0; display: grid; gap: 4px; }
.offer__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.offer__row dt { font-weight: 500; }
.offer__row dd { margin: 0; font-weight: 700; white-space: nowrap; }
.tpl-locked { display: grid; gap: 10px; }
.tpl-locked .btn { justify-self: start; }
.premium-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.premium-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.premium-list .tpl-mini { width: 56px; flex: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.premium-list .tpl-mini svg { display: block; width: 100%; height: auto; }
.premium-list__name { display: flex; align-items: center; gap: 10px; font-weight: 600; }

/* v8: editor de contenido (bloques plegables, filas de listas, pestañas de idioma, interruptor) */
.badge--warn { background: var(--warn-bg); color: var(--warn-tx); }
.field__error { margin: 0; font-size: 12px; font-weight: 600; color: var(--err-tx); }
.field.has-error .field__input { border-color: var(--danger); }
.ed-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); overflow-x: auto; }
.ed-tabs__tab { flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ed-tabs__tab small { display: block; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.ed-tabs__tab.is-active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ed-form { display: grid; gap: 10px; }
.ed-status { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.ed-block { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ed-block[open] { box-shadow: var(--shadow); }
.ed-block__head { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; display: grid; gap: 2px; }
.ed-block__head::-webkit-details-marker { display: none; }
.ed-block__head::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.ed-block[open] > .ed-block__head::after { transform: translateY(-30%) rotate(-135deg); }
.ed-block__head:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius-lg); }
.ed-block__title { font-weight: 700; }
.ed-block__hint { font-size: 13px; color: var(--muted); }
.ed-block__body { border: 0; margin: 0; padding: 0 16px 16px; min-width: 0; }
.ed-grid { display: grid; gap: 12px; align-items: start; }
@media (min-width: 560px) { .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ed-field--wide { grid-column: 1 / -1; } }
.ed-list { display: grid; gap: 12px; }
.ed-row { border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px; margin: 0; min-width: 0; }
.ed-row[hidden] { display: none; }
.ed-row__title { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ed-remove { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--danger); cursor: pointer; }
.ed-lang { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 700; background: var(--brand-soft); color: var(--brand); vertical-align: middle; }
.ed-actions .btn { flex: 1 1 auto; }
.ed-jump { margin-left: auto; font-size: 13px; font-weight: 600; }
@media (min-width: 1180px) { .ed-jump { display: none; } }
.ed-actions { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--border); transition: background .15s; flex: none; }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch input:checked + .switch__ui { background: var(--brand); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 1180px) { .editor { grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); } }

/* v9: tarjeta "Datos de Lodgy PMS" en Contenido */
.pms-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; border-left: 4px solid var(--brand); }
.pms-card__text { flex: 1 1 320px; display: grid; gap: 4px; }
.pms-card__title { margin: 0; font-size: 16px; }
.pms-card p { margin: 0; }

/* v10: Fotos (logos, favicon, video, grilla de fotos) */
.btn--link { background: none; border: 0; color: var(--danger); text-decoration: underline; padding: 6px 4px; min-height: 0; }
.sr-default { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; padding: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.brand-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
.brand-tile { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.brand-tile p { margin: 0; }
.brand-tile__name { font-weight: 700; }
.brand-tile__preview { height: 96px; display: grid; place-items: center; border-radius: 8px; padding: 10px;
  background: repeating-conic-gradient(#e9ecef 0 25%, #f8f9fa 0 50%) 0 0 / 16px 16px; }
.brand-tile__preview.is-dark { background: #1f2937; }
.brand-tile__preview img { max-height: 76px; max-width: 100%; object-fit: contain; }
.brand-tile__preview.is-icon img { width: 64px; height: 64px; }
.brand-tile__form { margin-top: 4px; }
.file-pick { position: relative; display: inline-block; cursor: pointer; }
.file-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick input[type=file]:focus-visible + .btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.upload-box { display: grid; gap: 12px; padding: 14px; border: 2px dashed var(--border); border-radius: var(--radius); }
@media (min-width: 900px) { .upload-box { grid-template-columns: 1.4fr 1fr auto; align-items: end; } }
.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); scroll-margin-top: 80px; }
.photo-card__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.photo-card__body { border: 0; margin: 0; padding: 12px; display: grid; gap: 10px; min-width: 0; }
.photo-card__body p { margin: 0; }
.photo-card__actions { display: flex; gap: 6px; align-items: center; }
.guide summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.guide ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
[data-busy].is-busy { opacity: .7; pointer-events: none; }

/* v11: Diseño (muestras de color, aviso de contraste) */
.ed-block--flat { padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.ed-block--flat > .ed-block__title { padding: 0 6px; }
.swatches { display: grid; gap: 8px; }
.swatch { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.swatch__input { width: 44px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.swatch__text { display: grid; gap: 2px; min-width: 0; }
.swatch__name { font-weight: 600; font-size: 14px; }
.swatch__hint { font-size: 12px; color: var(--muted); }
.swatch__hex { font-size: 12px; color: var(--muted); }
.contrast-box { display: grid; gap: 8px; }
.contrast-box[hidden] { display: none; }
.contrast-list { margin: 0; padding-left: 18px; font-size: 14px; }
.contrast-box .btn { justify-self: start; }
.range { width: 100%; accent-color: var(--brand); }
.reset-form { margin-top: 6px; }

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

/* ══ v12 (parte 4c): Páginas, Blog y Banners ═════════════════ */
.item-list { list-style: none; margin: 0; padding: 0; display: grid; }
.item-list__row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.item-list__row:last-child { border-bottom: 0; }
.item-list__main { flex: 1; min-width: 0; display: grid; gap: 4px; color: inherit; text-decoration: none; padding: 4px 8px; border-radius: var(--radius); }
.item-list__main:hover { background: var(--bg); }
.item-list__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.item-list__order { display: flex; gap: 4px; flex: none; }
.item-list__order .icon-btn[disabled] { opacity: .35; cursor: default; }
.field__input--rich { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; min-height: 280px; resize: vertical; }
.format-help { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.format-help code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.cover-thumb { display: block; width: 100%; max-width: 280px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin: 4px 0 8px; }
.form-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-set > legend { padding: 0; }
[data-show-if][hidden] { display: none !important; }

/* ══ v13 (parte 4d): Mensajes ═════════════════════════════════ */
.msg-info { padding: 12px 16px; }
.msg-info p { margin: 0; }
.msg { display: block; }
.msg__body { width: 100%; }
.msg__head { display: grid; gap: 4px; cursor: pointer; list-style: none; padding: 4px 8px; border-radius: var(--radius); }
.msg__head::-webkit-details-marker { display: none; }
.msg__head:hover { background: var(--bg); }
.msg__head .badge { margin-right: 6px; vertical-align: 1px; }
.msg__data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 8px; font-size: 14px; }
.msg__data dt { color: var(--muted); font-weight: 600; }
.msg__data dd { margin: 0; overflow-wrap: anywhere; }
.msg__text { white-space: pre-wrap; }
.msg__body .row-actions { margin: 0 8px 8px; }
.msg-pages { justify-content: center; }
@media (max-width: 560px) { .msg__data { grid-template-columns: 1fr; } .msg__data dd { margin-bottom: 6px; } }

/* ══ v14: logos y certificados del pie (Fotos) ═══════════════ */
.badge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.badge-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.badge-row__img { display: grid; place-items: center; width: 96px; height: 72px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.badge-row__img img { max-width: 84px; max-height: 60px; object-fit: contain; }
.badge-row__fields { display: grid; gap: 10px; }
@media (min-width: 720px) { .badge-row { grid-template-columns: 96px 1fr auto; } .badge-row__fields { grid-template-columns: 1fr 1.4fr; } }
.badge-row__actions { display: flex; gap: 4px; align-items: center; grid-column: 1 / -1; justify-content: flex-end; }
@media (min-width: 720px) { .badge-row__actions { grid-column: auto; } }

/* ══ v15: SEO, Dominio, Enlaces para redes, App de pasajeros ══ */
.seo-bar { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--bg); accent-color: var(--brand, #2563eb); }
.seo-bar::-webkit-progress-bar { background: var(--bg); border-radius: 999px; }
.seo-bar::-webkit-progress-value { background: var(--brand, #2563eb); border-radius: 999px; }
.seo-bar::-moz-progress-bar { background: var(--brand, #2563eb); border-radius: 999px; }
.seo-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .seo-checks { grid-template-columns: 1fr 1fr; } }
.seo-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.seo-checks__icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--muted); font-weight: 700; }
.seo-checks li.is-ok .seo-checks__icon { background: #dcfce7; color: #15803d; }
.pill--ok { background: #dcfce7; color: #15803d; }
.serp { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-family: Arial, Helvetica, sans-serif; max-width: 640px; }
.serp__url { font-size: 13px; color: #202124; }
.serp__title { font-size: 20px; line-height: 1.3; color: #1a0dab; }
.serp__desc { font-size: 14px; line-height: 1.5; color: #4d5156; }
.seo-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.seo-files li { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.seo-files code { overflow-wrap: anywhere; }
.guide__steps { display: grid; gap: 8px; font-size: 14px; }
.code-box { width: 100%; min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.link-preview { max-width: 380px; }

/* v16 (parte 4f): planes y extras, etiqueta Video, pantalla de extra no contratado */
.extra-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; padding: 14px 0; border-top: 1px solid var(--border); }
.extra-row:first-of-type { border-top: 0; }
.extra-row__main { flex: 1 1 320px; display: grid; gap: 4px; min-width: 0; }
.extra-row__main--tpl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.extra-row__name { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.extra-row__side { flex: 0 1 300px; }
.extra-row .guide { margin-top: 6px; }
.steps-list { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.pill--video { display: inline-flex; align-items: center; gap: 4px; background: #111827; color: #fff; border-color: #111827; }
.extra-locked { max-width: 720px; }
.extra-locked .pill--premium { justify-self: start; }
.seo-bar { margin-bottom: 12px; }
.extra-row .offer__row { flex-wrap: wrap; }
.extra-row .offer__row dd { white-space: normal; text-align: right; }
.extra-row .tpl-mini { width: 64px; flex: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.extra-row .tpl-mini svg { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .extra-row .offer__row dd { text-align: left; } }

/* v16: Diana (asistente con IA) */
.diana-btn { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin: -2px 0 4px; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.diana-btn:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.diana-btn[aria-expanded="true"] { background: var(--brand); color: #fff; }
.diana { display: grid; gap: 10px; margin-top: 8px; padding: 14px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); border-radius: var(--radius); background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.diana__head { display: flex; align-items: center; gap: 10px; }
.diana__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brand-soft); }
.diana__who { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.diana__left { font-size: 12px; color: var(--muted); }
.diana__close { font-size: 20px; line-height: 1; }
.diana__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.diana__status:empty { display: none; }
.diana.is-busy .diana__status { color: var(--brand); }
.diana__results { display: grid; gap: 8px; }
.diana__option { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.diana__option p { margin: 0; white-space: pre-line; font-size: 14px; }
.diana__option .btn { justify-self: start; }
.diana__foot { margin: 0; }

/* v16: Publicar */
.publish-missing { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--warn-tx); }
.publish-card .row form { margin: 0; }

/* v16: Tour de inicio con Diana */
.tour { position: relative; margin-bottom: 24px; padding: 24px 28px 16px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand-soft), var(--surface) 70%); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.tour__slide { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 28px; min-height: 220px; }
.tour__slide--left { grid-template-columns: auto 1fr; }
.tour__slide--left .tour__diana { order: -1; }
.tour__slide[hidden] { display: none; }
.tour__text { display: grid; gap: 10px; align-self: center; padding-bottom: 8px; max-width: 560px; }
.tour__title { margin: 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.tour__body { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tour__diana { display: block; height: 220px; width: auto; margin-bottom: -16px; }
.tour__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.tour__dots { display: flex; gap: 6px; }
.tour__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.tour__dot.is-active { background: var(--brand); width: 22px; border-radius: 4px; }
.tour__close { display: flex; gap: 4px; margin: 0; }
.tour-again { margin-top: 24px; text-align: center; }
@media (max-width: 640px) {
  .tour { padding: 18px 16px 12px; }
  .tour__slide, .tour__slide--left { grid-template-columns: 1fr; }
  .tour__slide--left .tour__diana { order: 0; }
  .tour__diana { height: 150px; justify-self: end; margin-top: -8px; }
  .tour__nav { justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .tour__slide:not([hidden]) { animation: tour-in .25s ease-out; }
  @keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.tour [hidden] { display: none !important; }
.tour__close .btn--link { color: var(--muted); }
.tour__close .btn--link:hover { color: var(--text); }

/* v16: planes v2 (comparación) */
.cycle-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.cycle-switch__opt { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.cycle-switch__opt.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.plan-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan-col { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.plan-col.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan-col.is-current { background: var(--brand-soft); }
.plan-col__flag { position: absolute; top: -11px; left: 20px; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan-col__name { margin: 0; font-size: 17px; }
.plan-col__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.plan-col__price strong { font-size: 28px; line-height: 1.1; }
.plan-col__price small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.plan-col__price .plan-col__list { text-decoration: line-through; }
.plan-col__list-feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; flex: 1; }
.plan-col__list-feat li { padding-left: 22px; position: relative; }
.plan-col__list-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--ok-tx); font-weight: 700; }
.plan-col__list-feat li.is-off { color: var(--muted); text-decoration: line-through; }
.plan-col__list-feat li.is-off::before { content: "—"; color: var(--muted); }
.extra-price { margin: 0; text-align: right; }
.extra-price strong { font-size: 18px; }
.pill--ok { background: var(--ok-bg); color: var(--ok-tx); border-color: var(--ok-bd); }
@media (max-width: 560px) { .extra-price { text-align: left; } }

/* v17: estado de cuenta */
.ledger-total { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.ledger-total.is-due { color: var(--warn-tx); }
.ledger-pay fieldset { border: 0; padding: 0; margin: 0; gap: 8px; }
.ledger-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.ledger-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ledger-opt input { margin-top: 4px; accent-color: var(--brand); }
.ledger-opt span { display: flex; flex-direction: column; gap: 2px; }
.ledger-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ledger-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.ledger th, .ledger td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ledger th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ledger .num { text-align: right; white-space: nowrap; }

/* v18: registro de hoteles nuevos (auth/signup*): pasos, datos, resumen del pago y pantalla final */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.signup-steps { display: flex; gap: 6px; margin: 0 0 14px; }
.signup-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.signup-steps span.is-on { background: var(--brand); }
.signup-plan { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.signup-pms, .signup-center { text-align: center; margin: 0; }
.signup-code { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 700; }
.signup-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.signup-box legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.signup-plans { display: grid; gap: 8px; }
.signup-plan-opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.signup-plan-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.signup-plan-opt input { margin-top: 4px; accent-color: var(--brand); }
.signup-plan-opt span { display: flex; flex-direction: column; gap: 1px; }
.signup-cycle { display: flex; gap: 18px; flex-wrap: wrap; }
.signup-cycle input, .signup-terms input { accent-color: var(--brand); }
.signup-terms { align-items: flex-start; line-height: 1.45; }
.signup-terms input { margin-top: 3px; flex: none; }
.signup-summary { margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.signup-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 14px; }
.signup-summary div:first-child { border-top: 0; }
.signup-summary dt { color: var(--muted); }
.signup-summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.signup-summary__total { background: var(--brand-soft); }
.signup-summary__total dd { font-size: 20px; font-weight: 800; color: var(--brand-dark); }
.signup-next { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2, rgba(127, 127, 127, .06)); }
.signup-next p { margin: 0 0 4px; }
.signup-next ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.signup-done-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok-tx); margin: 0 0 14px; }
.signup-help { margin: 14px 0 6px; }

/* v19: Diana — "Armá tu web con Diana" (partials/diana-build) y Diana flotante (js/diana-chat.js) */
.dbuild { display: flex; gap: 18px; align-items: flex-start; border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); background: linear-gradient(135deg, var(--brand-soft), var(--surface, #fff) 60%); }
.dbuild__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brand-soft); }
.dbuild__body { flex: 1; min-width: 0; }
.dbuild__body .section-title { margin: 0 0 4px; }
.dbuild__more > summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--brand); color: #fff; }
.dbuild__more > summary::-webkit-details-marker { display: none; }
.dbuild__more[open] > summary { background: transparent; color: var(--brand); padding-left: 0; }
.dbuild__more form { margin-top: 12px; }
.dbuild__uses { margin: 8px 0 0; }
@media (max-width: 640px) { .dbuild { flex-direction: column; } .dbuild__img { width: 64px; height: 64px; } }

.dchat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px 4px 4px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
.dchat-fab img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; }
.dchat-fab:hover { background: var(--brand-dark); }
.dchat-fab.is-open .dchat-fab__label { display: none; }
.dchat-fab.is-open { padding-right: 4px; }
.dchat { position: fixed; right: 18px; bottom: 80px; z-index: 71; width: min(380px, calc(100vw - 24px)); max-height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface, #fff); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); overflow: hidden; }
.dchat[hidden] { display: none; }
.dchat__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--border); background: var(--brand-soft); }
.dchat__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.dchat__who { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.dchat__sub { font-size: 12px; color: var(--muted); }
.dchat__clear { border: 0; background: none; color: var(--brand); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.dchat__close { font-size: 22px; line-height: 1; }
.dchat__log { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.dchat__msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.dchat__msg p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.dchat__msg--diana { background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; justify-self: start; }
.dchat__msg--user { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.dchat__msg.is-wait p { color: var(--muted); font-style: italic; }
.dchat__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dchat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.dchat__chips[hidden] { display: none; }
.dchat__chip { border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.dchat__form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); }
.dchat__input { resize: none; min-height: 0; font-size: 14px; }
.dchat__foot { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted); }
@media (max-width: 640px) {
  .dchat-fab { right: 12px; bottom: 12px; }
  .dchat-fab__label { display: none; }
  .dchat-fab { padding: 4px; }
  .dchat { right: 8px; left: 8px; width: auto; bottom: 70px; max-height: calc(100vh - 90px); }
}
@media print { .dchat, .dchat-fab { display: none !important; } }

/* ── v20: pestañas (Mi cuenta · Cuenta corriente) ───────────────────── */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 0 0 16px; }
.tabs__tab { display: inline-block; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ── v20: Plan → comprar extras ─────────────────────────────────────── */
.extra-row__note { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--brand-soft); color: var(--text); }
.extra-row__side { display: grid; justify-items: end; align-content: start; gap: 6px; text-align: right; }
.extra-row__side form { margin: 0; }

/* ── v20: pantalla de Diana ─────────────────────────────────────────── */
.dh-score { font-size: 22px; font-weight: 800; color: var(--warn-tx); }
.dh-score.is-good { color: var(--ok-tx); }
.dh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dh-item { display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.dh-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.dh-item.is-ok { background: transparent; }
.dh-item.is-ok .dh-item__icon { background: var(--ok-bg); color: var(--ok-tx); }
.dh-item.is-ok .dh-item__text strong { font-weight: 500; color: var(--muted); }
.dh-item.is-block { border-color: var(--warn-bd); background: var(--warn-bg); }
.dh-item.is-block .dh-item__icon { background: var(--surface); color: var(--warn-tx); }
.dh-item__text { display: grid; gap: 2px; min-width: 0; }
.dh-item__act { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 720px) {
  .dh-item { grid-template-columns: 28px 1fr auto; align-items: center; }
  .dh-item__act { grid-column: auto; justify-content: flex-end; }
}
.dh-types { display: grid; gap: 8px; }
.dh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dh-chip { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; min-height: 36px; }
.dh-chip:hover { border-color: var(--brand); }
.dh-chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dh-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dh-tpls { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dh-tpl { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.dh-tpl img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); background: var(--bg); }
.dh-tpl.is-best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.dh-tpl__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
.dh-style-form { display: grid; gap: 8px; }
@media (min-width: 720px) { .dh-style-form { grid-template-columns: 1fr auto; align-items: end; } }
.dh-styles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dh-style { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.dh-style__sample { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); }
.dh-style__swatches { display: block; width: 100%; height: 18px; }
.dh-cm { display: grid; gap: 12px; align-items: center; border-color: var(--brand); background: var(--brand-soft); }
@media (min-width: 720px) { .dh-cm { grid-template-columns: 1fr auto; } }

/* ── v20: Community Manager ─────────────────────────────────────────── */
.cm-offer { display: grid; gap: 16px; align-items: center; }
.cm-offer__img { width: 100%; max-width: 160px; height: auto; border-radius: var(--radius); justify-self: center; }

.cm-offer .extra-price { text-align: left; }
@media (min-width: 720px) { .cm-offer { grid-template-columns: 200px 1fr; align-items: start; } .cm-offer__img { max-width: 200px; } }
.cm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cm-piece { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cm-piece__img { display: block; border-radius: calc(var(--radius) - 2px); overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.cm-piece__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.cm-piece__img.is-story img { aspect-ratio: 9 / 16; max-height: 420px; }
.cm-piece__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.cm-piece__caption { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.cm-piece__tags { margin: 0; font-size: 12px; color: var(--brand); overflow-wrap: anywhere; }
.cm-piece__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-piece__actions form { display: inline; margin: 0; }

/* ── v20: Lodgy → Registros ─────────────────────────────────────────── */
.adm-signup { display: grid; gap: 12px; }
.adm-data { display: grid; gap: 6px 16px; margin: 0; grid-template-columns: 1fr; }
.adm-data > div { display: grid; gap: 2px; min-width: 0; }
.adm-data dt { font-size: 12px; color: var(--muted); }
.adm-data dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 720px) { .adm-data { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.adm-actions form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.adm-reject summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.adm-reject[open] { flex-basis: 100%; }

/* ── v21: Community → fotos y videos para la campaña ─────────────────── */
.cm-upload { display: grid; gap: 12px; }
@media (min-width: 900px) { .cm-upload { grid-template-columns: 1fr 1fr; align-items: start; } }
.cm-spec { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.cm-spec__title { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cm-spec__list { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.cm-pool__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 12px; border-radius: var(--radius); background: var(--brand-soft); }
.cm-pool__tools p { margin: 0; }
.cm-pool__title { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
.cm-pool { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .cm-pool { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.cm-media { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cm-media__pick { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg); cursor: pointer; }
.cm-media__thumb { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cm-media__badge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 700; }
.cm-media__check { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.cm-media__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.cm-media__pick:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.cm-media__pick:has(input:not(:checked)) .cm-media__thumb { opacity: .55; }
.cm-media__pick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.cm-media__meta { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.cm-media__edit { display: grid; gap: 6px; }
.cm-media__edit .row-actions { gap: 4px; }
.cm-media__edit .btn { padding: 4px 8px; font-size: 12px; min-height: 30px; }
.cm-piece__img video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.cm-piece__img.is-story video { aspect-ratio: 9 / 16; max-height: 420px; }

/* ── v22: Dominio propio ────────────────────────────────────────────── */
.ledger--dns { min-width: 0; }
.ledger--dns code { font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.dom-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dom-state__host { margin: 0; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.dom-code { word-break: break-all; }
.badge--err { background: var(--err-bg); color: var(--err-tx); }

/* ── v23: Sitio → web anterior de Lodgy PMS ─────────────────────────── */
.legacy-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legacy-steps > li { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.legacy-steps > li.is-done { border-color: var(--ok-bd); background: var(--ok-bg); }
.legacy-steps > li.is-done strong::after { content: " ✓"; color: var(--ok-tx); }
.legacy-steps form { margin: 0; }

/* ── v24 (parte 6i): Diseño → paletas sugeridas y logo en la portada ── */
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.palette { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.palette:hover { border-color: var(--brand); }
.palette:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.palette.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.palette__dots { display: flex; gap: 4px; }
.palette__name { font-weight: 600; font-size: 14px; }
.palette__extra { font-size: 12px; color: var(--muted); }
.chips--stack { flex-direction: column; align-items: flex-start; }
.check--strong { font-weight: 600; margin-top: 16px; }
.hero-logo-opts { margin-top: 6px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 32px); gap: 4px; padding: 6px; width: max-content; border-radius: 10px; background: linear-gradient(135deg, #4b5563, #1f2937); }
.pos-grid__cell { position: relative; display: grid; place-items: center; border-radius: 6px; cursor: pointer; }
.pos-grid__cell:hover { background: rgba(255, 255, 255, .12); }
.pos-grid__input { position: absolute; opacity: 0; pointer-events: none; }
.pos-grid__dot { width: 12px; height: 12px; border-radius: 3px; border: 2px solid rgba(255, 255, 255, .7); }
.pos-grid__input:checked + .pos-grid__dot { width: 26px; height: 16px; background: #fff; border-color: #fff; }
.pos-grid__input:focus-visible + .pos-grid__dot { outline: 3px solid var(--focus); outline-offset: 3px; }
