/* Weblis · admin.css
   Panel superadmin. Diseño propio (no genérico Laravel) con identidad mediterránea:
   crema cálido + terracotta + navy. Logo Weblis prominente.
   Pantallas auth: split editorial. Panel: sidebar + content.
*/

:root {
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --bg: #faf6ee;
  --bg-warm: #f3ebd6;
  --bg-card: #ffffff;
  --bg-dark: #0d2840;
  --bg-darker: #061829;

  --ink: #141414;
  --ink-soft: #2b2b2b;
  --mute: #6f6a5e;
  --line: #e1d9c5;
  --line-strong: #c9bea3;

  --terracotta: #a04420;
  --terracotta-deep: #82321a;
  --navy: #0d2840;
  --ochre: #c8a04a;
  --success: #2d6a3f;
  --danger: #b3261e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1, 'ss01' 1;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
:focus-visible { outline: 1.5px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; color: var(--ink); line-height: 1.15; }
h1 { letter-spacing: -0.028em; }
p { margin: 0; }
strong { font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--terracotta);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1.5px;
  background: var(--terracotta); margin-right: 0.7rem;
}

/* ============ AUTH SCREENS (login + 2FA) ============ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.auth__brand {
  background: var(--bg-darker);
  color: var(--bg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth__brand::before {
  content: '';
  position: absolute;
  top: -4rem; right: -4rem;
  width: 20rem; height: 20rem;
  background: radial-gradient(circle, rgba(200,160,74,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.auth__brand-logo img {
  height: 56px; width: auto;
  filter: brightness(0) invert(1);     /* fondo oscuro → logo blanco */
  margin-bottom: 2.5rem;
}
.auth__brand-title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: 22ch;
  margin-bottom: 1.2rem;
  color: var(--bg);
}
.auth__brand-sub {
  color: rgba(250,246,238,0.65);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 44ch;
}
.auth__brand-foot {
  font-size: 0.78rem;
  color: rgba(250,246,238,0.45);
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
}
.auth__brand-foot strong { color: var(--ochre); font-weight: 700; }

.auth__form-side {
  display: grid; place-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--bg);
}
.auth__panel {
  width: 100%;
  max-width: 420px;
}
.auth__h1 {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 1rem 0 0.8rem;
  letter-spacing: -0.025em;
}
.auth__sub {
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}
.auth__form { display: grid; gap: 1.1rem; }
.auth__field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth__field label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink-soft);
}
.auth__field input {
  font: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 180ms ease, background 180ms ease;
}
.auth__field input:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--bg-warm);
}
.auth__field--code input {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  text-align: center;
  padding: 1rem;
}
.auth__error {
  background: rgba(179,38,30,0.06);
  border: 1px solid rgba(179,38,30,0.25);
  color: var(--danger);
  padding: 0.75rem 0.95rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
}
.auth__submit {
  background: var(--terracotta); color: var(--bg);
  padding: 1rem 1.5rem;
  font-weight: 700; font-size: 0.92rem;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: background 180ms ease, transform 160ms ease;
  margin-top: 0.5rem;
}
.auth__submit:hover { background: var(--terracotta-deep); transform: translateY(-1px); }

/* QR setup */
.auth__qr {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1.4rem;
  display: grid; place-items: center;
  margin-bottom: 1.5rem;
}
.auth__qr svg { width: 220px; height: 220px; }
.auth__secret {
  background: var(--bg-warm);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  word-break: break-all;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}
.auth__secret-label {
  display: block;
  font-size: 0.78rem; color: var(--mute); font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Responsive auth */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { padding: 2rem; min-height: auto; }
  .auth__brand-logo img { margin-bottom: 1rem; height: 44px; }
  .auth__brand-title { font-size: 1.3rem; max-width: none; margin-bottom: 0.5rem; }
  .auth__brand-sub { font-size: 0.88rem; }
  .auth__brand-foot { margin-top: 1.5rem; }
}

/* ============ ADMIN APP (sidebar + content) ============ */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg-darker);
  color: var(--bg);
  padding: 1.5rem 0;
  display: flex; flex-direction: column;
}
.sidebar__brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(250,246,238,0.08);
  margin-bottom: 1rem;
}
.sidebar__brand img {
  height: 38px; width: auto;
  filter: brightness(0) invert(1);
}
.sidebar__nav { display: flex; flex-direction: column; padding: 0 0.75rem; }
.sidebar__link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(250,246,238,0.65);
  border-radius: 4px;
  margin-bottom: 0.15rem;
  transition: background 180ms ease, color 180ms ease;
}
.sidebar__link:hover { background: rgba(250,246,238,0.06); color: var(--bg); }
.sidebar__link.is-active {
  background: rgba(200,160,74,0.12);
  color: var(--ochre);
  font-weight: 600;
}
.sidebar__link svg { flex-shrink: 0; opacity: 0.75; }
.sidebar__link.is-active svg { opacity: 1; }

.sidebar__foot {
  padding: 1rem 0.75rem 0;
  border-top: 1px solid rgba(250,246,238,0.08);
  margin: 1rem 0.75rem 0;
}
.sidebar__user {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.5rem;
}
.sidebar__user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--bg);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem;
}
.sidebar__user-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sidebar__user-name { font-size: 0.88rem; font-weight: 600; color: var(--bg); }
.sidebar__user-email {
  font-size: 0.75rem; color: rgba(250,246,238,0.45);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar__logout {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: rgba(250,246,238,0.55);
  border-radius: 4px;
  transition: background 180ms ease, color 180ms ease;
}
.sidebar__logout:hover { background: rgba(250,246,238,0.06); color: var(--bg); }

/* Content */
.content { padding: 0; }
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem clamp(1.5rem, 3vw, 2.5rem);
}
.topbar h1 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  letter-spacing: -0.025em;
}
.topbar__sub {
  color: var(--mute);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.content-body { padding: clamp(1.5rem, 3vw, 2.5rem); }

/* Admin bar superior: acceso rapido pegajoso, estilo WordPress */
.adminbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  background: var(--bg-darker);
  padding: 0.4rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: adminbar-slide 0.35s ease;
}
/* Accesos rápidos del hotel, a la derecha de la adminbar. */
.adminbar__actions { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.adminbar__act {
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.3rem 0.62rem; border-radius: 7px;
  font-size: 0.76rem; font-weight: 600; text-decoration: none;
  background: rgba(255, 255, 255, 0.1); color: #e8eef5;
  border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.15s ease, filter 0.15s ease;
}
.adminbar__act:hover { background: rgba(255, 255, 255, 0.2); }
.adminbar__act svg { width: 13px; height: 13px; }
.adminbar__act--web { background: #c9a25a; color: #1a1206; border-color: #c9a25a; }
.adminbar__act--web:hover { background: #c9a25a; filter: brightness(1.08); }
.adminbar__link { font-size: 0.74rem; font-weight: 600; text-decoration: underline; color: #bcd2ec; white-space: nowrap; }
.adminbar__link:hover { color: #fff; }
@media (max-width: 700px) { .adminbar__actions { margin-left: 0; width: 100%; } }
@keyframes adminbar-slide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.adminbar__new {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #c9a25a; color: #1a1206;
  padding: 0.4rem 0.85rem; border-radius: 8px;
  font-weight: 700; font-size: 0.85rem; text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.adminbar__new:hover { filter: brightness(1.08); transform: translateY(-1px); }
.adminbar__new svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  /* En movil no es pegajosa para no chocar con el menu hamburguesa */
  .adminbar { position: static; }
}

/* KPI cards */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.kpi__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.kpi__value {
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.kpi__value strong { color: var(--terracotta); font-weight: 700; }
.kpi__hint { color: var(--mute); font-size: 0.78rem; }

/* Panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1.4rem;
}
.panel__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.4rem; gap: 1rem;
}
.panel__head h2 { font-size: 1.05rem; letter-spacing: -0.018em; }
.panel__head a {
  color: var(--terracotta); font-size: 0.85rem; font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color 180ms ease;
}
.panel__head a:hover { border-bottom-color: var(--terracotta); }

/* Audit log list */
.audit-list { list-style: none; padding: 0; margin: 0; }
.audit-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  align-items: baseline;
}
.audit-list li:last-child { border-bottom: 0; }
.audit-action {
  font-family: var(--font-mono);
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 500;
}
.audit-meta { color: var(--ink-soft); }
.audit-date { color: var(--mute); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.audit-empty { color: var(--mute); font-size: 0.9rem; text-align: center; padding: 2rem 0; }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-top: 0.5rem;
}
.quick-action {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: var(--bg-warm);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 180ms ease, border-color 180ms ease;
}
.quick-action:hover { background: var(--bg-card); border-color: var(--ink); }
.quick-action svg { color: var(--terracotta); flex-shrink: 0; }

/* Toggle hamburguesa: oculto en desktop, visible en mobile */
.sidebar__toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--bg);
  padding: 0.4rem;
  cursor: pointer;
  border-radius: 4px;
}
.sidebar__toggle:hover { background: rgba(250,246,238,0.08); }

/* Responsive app */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 60;
    max-height: none;
    flex-direction: column;
    padding: 0.6rem 0.9rem;
  }
  .sidebar__brand {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 0; padding: 0; margin: 0;
  }
  .sidebar__brand a { display: inline-flex; }
  .sidebar__brand img { height: 28px; }
  .sidebar__toggle { display: inline-flex; }

  /* Nav y foot ocultos por defecto; el toggle (.is-open) los muestra como drawer */
  .sidebar__nav,
  .sidebar__foot { display: none; }

  .sidebar.is-open .sidebar__nav {
    display: flex;
    flex-direction: column;
    margin-top: 0.6rem;
    padding: 0;
    gap: 0.1rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .sidebar.is-open .sidebar__foot {
    display: block;
    margin: 0.6rem 0 0;
    padding: 0.6rem 0 0;
    border-top: 1px solid rgba(250,246,238,0.08);
  }
  .sidebar__user-info { display: flex !important; }
  .sidebar__logout { padding: 0.55rem 0.85rem; }
}

/* ============ TOPBAR con acciones ============ */
.topbar__row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.topbar__back {
  display: inline-block;
  font-size: 0.82rem; color: var(--mute);
  margin-bottom: 0.4rem; font-weight: 600;
  transition: color 180ms ease;
}
.topbar__back:hover { color: var(--terracotta); }
.topbar__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font: inherit; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terracotta); color: var(--bg); border-color: var(--terracotta); }
.btn--primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn--secondary {
  background: var(--bg-card); color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--ink); background: var(--bg-warm); }
.btn--ghost { background: transparent; color: var(--mute); }
.btn--ghost:hover { color: var(--ink); }
.btn--danger {
  background: var(--danger); color: var(--bg); border-color: var(--danger);
}
.btn--danger:hover { background: #8e1e18; border-color: #8e1e18; }
.btn--success {
  background: #1f7a44; color: var(--bg); border-color: #1f7a44;
}
.btn--success:hover { background: #186236; border-color: #186236; }

/* ============ FLASH ============ */
.flash {
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  font-size: 0.9rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.flash--success {
  background: rgba(45,106,63,0.08);
  border: 1px solid rgba(45,106,63,0.3);
  color: var(--success);
}
.flash--error {
  background: rgba(179,38,30,0.06);
  border: 1px solid rgba(179,38,30,0.25);
  color: var(--danger);
}

/* ============ FILTERS BAR ============ */
.filters {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.filters__search {
  display: flex; align-items: center; gap: 0.55rem;
  flex: 1; min-width: 220px;
  padding: 0 0.85rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--mute);
}
.filters__search input {
  flex: 1; border: 0; background: transparent;
  font: inherit; font-size: 0.9rem; color: var(--ink);
  padding: 0.6rem 0;
}
.filters__search input:focus { outline: none; }
.filters__group {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem;
}
.filters__group label { color: var(--mute); font-weight: 600; }
.filters__group select {
  font: inherit; font-size: 0.85rem;
  padding: 0.5rem 1.7rem 0.5rem 0.7rem;
  background: var(--bg-warm) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath d='M1 1l4 4 4-4' stroke='%236f6a5e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e") no-repeat right 0.7rem center;
  border: 1px solid var(--line);
  border-radius: 4px;
  appearance: none; -webkit-appearance: none;
  color: var(--ink);
  cursor: pointer;
}
.filters__clear {
  font-size: 0.82rem; color: var(--mute); font-weight: 600;
  border-bottom: 1px solid transparent;
}
.filters__clear:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* ============ TABLE ============ */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table thead th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  padding: 0.85rem 1rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line-strong);
}
.table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-warm); }
.table__name {
  display: block;
  font-weight: 700; color: var(--ink);
  border-bottom: 1px solid transparent;
}
.table__name:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.table__slug {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem; color: var(--mute);
  margin-top: 0.15rem;
}
.table__domain { font-size: 0.85rem; color: var(--ink-soft); }
.table__domain-meta {
  display: block;
  font-size: 0.7rem; color: var(--mute);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-top: 0.15rem;
}
.table__date { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.table__actions { text-align: right; width: 1%; white-space: nowrap; }
.table__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 4px;
  color: var(--mute);
  transition: background 180ms ease, color 180ms ease;
}
.table__btn:hover { background: var(--bg); color: var(--terracotta); }

/* ============ BADGES ============ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.badge--mute { background: var(--line); color: var(--mute); }
.badge--plan { background: rgba(200,160,74,0.18); color: #7b6122; }
.badge--demo { background: rgba(200,160,74,0.18); color: #7b6122; }
.badge--activo { background: rgba(45,106,63,0.13); color: var(--success); }
.badge--suspendido { background: rgba(179,38,30,0.1); color: var(--danger); }
.badge--inactivo { background: var(--line); color: var(--mute); }

/* Outreach pipeline (CRM) */
.badge--outreach { font-weight: 600; }
.badge--outreach-sin_contactar { background: var(--line); color: var(--mute); }
.badge--outreach-email_enviado { background: rgba(14,58,95,0.12); color: #0e3a5f; }
.badge--outreach-whatsapp_enviado { background: rgba(37,211,102,0.16); color: #126b32; }
.badge--outreach-demo_activa { background: rgba(200,160,74,0.18); color: #7b6122; }
.badge--outreach-negociando { background: rgba(216,99,68,0.16); color: #8c3a22; }
.badge--outreach-cliente { background: rgba(45,106,63,0.16); color: var(--success); }
.badge--outreach-descartado { background: rgba(110,110,110,0.12); color: #5b5b5b; }

/* ============ FORM ============ */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 1.2rem;
}
.form-section__title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field--col-2 { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink-soft);
}
.field .req { color: var(--terracotta); margin-left: 0.1rem; }
.field input,
.field select,
.field textarea {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  font-size: 0.92rem;
  transition: border-color 180ms ease, background 180ms ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--bg-card);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath d='M1 1l4 4 4-4' stroke='%236f6a5e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
  cursor: pointer;
}
.field__hint {
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.5;
}
.field__error {
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 500;
}

.form-footer {
  display: flex; justify-content: flex-end; gap: 0.7rem;
  padding-top: 1.2rem;
}

/* ============ LANGUAGE CARDS (cliente contents.index) ============ */
.lang-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.lang-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.lang-card:hover {
  border-color: var(--terracotta);
  background: var(--bg-warm);
  transform: translateY(-1px);
}
.lang-card__flag {
  width: 56px; height: 38px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.lang-card__flag svg { width: 100%; height: 100%; display: block; }
.lang-card__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.lang-card__info strong { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.lang-card__code {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--mute); letter-spacing: 0.05em;
}
.lang-card__status {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem;
}
.lang-card__time { font-size: 0.74rem; color: var(--mute); }
.lang-card__arrow { color: var(--mute); flex-shrink: 0; }
.lang-card:hover .lang-card__arrow { color: var(--terracotta); }

/* Upsell (basic → premium) */
.upsell {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-warm);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  margin-top: 1.5rem;
}
.upsell__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--terracotta);
  flex-shrink: 0;
}
.upsell__text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.upsell__text strong { font-size: 0.95rem; color: var(--ink); }
.upsell__text span { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ LANGUAGE SETUP WIZARD (basic) ============ */
.lang-setup__hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.lang-setup__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.lang-choice {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  user-select: none;
}
.lang-choice input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.lang-choice:hover { border-color: var(--terracotta); }
.lang-choice.is-selected {
  border-color: var(--success);
  background: rgba(45,106,63,0.05);
}
.lang-choice:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}
.lang-choice__flag { width: 56px; height: 38px; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.lang-choice__flag svg { width: 100%; height: 100%; display: block; }
.lang-choice__info { display: flex; flex-direction: column; gap: 0.15rem; }
.lang-choice__info strong { font-size: 1rem; color: var(--ink); }
.lang-choice__info span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--mute); }
.lang-choice__check {
  opacity: 0; color: var(--success);
  transition: opacity 200ms ease;
}
.lang-choice.is-selected .lang-choice__check { opacity: 1; }

.lang-setup__action {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lang-setup__counter {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.lang-setup__counter #lang-count {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--bg-card);
  border-radius: 4px;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-weight: 700;
}
#lang-submit:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
}

/* ============ RECOVERY BANNER (cliente dashboard) ============ */
.recovery-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--bg-warm) 0%, rgba(200,160,74,0.18) 100%);
  border: 1px solid var(--ochre);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.recovery-banner:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -20px rgba(200,160,74,0.6); }
.recovery-banner__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ochre);
  color: var(--bg-darker);
  flex-shrink: 0;
}
.recovery-banner__text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.recovery-banner__text strong { color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.recovery-banner__text span { color: var(--ink-soft); font-size: 0.85rem; }
.recovery-banner__cta { color: var(--terracotta); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }

/* ============ TRIAL BANNER (contador de días gratis) ============ */
.trial-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(14,58,95,0.08) 0%, rgba(14,58,95,0.18) 100%);
  border: 1px solid rgba(14,58,95,0.45);
  border-radius: 8px;
}
.trial-banner__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0e3a5f;
  color: #fff;
  flex-shrink: 0;
}
.trial-banner__text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.trial-banner__text strong { color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.trial-banner__text span { color: var(--ink-soft); font-size: 0.85rem; }
.trial-banner__cta {
  display: inline-flex; align-items: center;
  background: #0e3a5f; color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600; font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 200ms ease, transform 200ms ease;
}
.trial-banner__cta:hover { background: #0a2a44; transform: translateY(-1px); }

/* ============ RECOVERY FULL PAGE ============ */
.recovery {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 760px;
}
.recovery__eyebrow {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 700;
  margin-bottom: 0.7rem;
}
.recovery__h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.recovery__lead {
  color: var(--ink-soft);
  font-size: 1.02rem; line-height: 1.65;
  margin-bottom: 1.4rem;
}
.recovery__price {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-warm);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  margin-bottom: 2rem;
}
.recovery__price strong {
  font-size: 2.1rem; font-weight: 700;
  color: var(--terracotta);
  letter-spacing: -0.03em;
  line-height: 1;
}
.recovery__price span { color: var(--mute); font-size: 0.88rem; font-weight: 500; }
.recovery__what-includes,
.recovery__why-price,
.recovery__alt {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.recovery__what-includes h3,
.recovery__why-price h3,
.recovery__alt h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
}
.recovery__what-includes ul,
.recovery__why-price ul {
  list-style: none; padding: 0; margin: 0;
}
.recovery__what-includes li {
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.93rem;
}
.recovery__what-includes li::before {
  content: '✓';
  position: absolute; left: 0; top: 0.55rem;
  color: var(--success); font-weight: 700;
}
.recovery__why-price li {
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.9rem;
}
.recovery__why-price li::before {
  content: '·';
  position: absolute; left: 0.4rem; top: 0.35rem;
  color: var(--terracotta); font-weight: 700; font-size: 1.4rem;
  line-height: 0.6;
}
.recovery__why-price p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0.8rem;
}
.recovery__alt p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}
.recovery__alt a {
  color: var(--terracotta);
  font-weight: 700;
  border-bottom: 1px solid var(--terracotta);
}
.recovery__action {
  text-align: center;
  padding-top: 0.5rem;
}
.recovery__btn {
  padding: 1rem 2rem !important;
  font-size: 0.95rem !important;
}
.recovery__legal {
  margin-top: 0.85rem;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ============ AUDIT DETAILS ============ */
.audit-details summary {
  cursor: pointer;
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
}
.audit-details summary::-webkit-details-marker { display: none; }
.audit-details[open] summary { color: var(--ink); }
.audit-details__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0.65rem 0 0.25rem;
}
.audit-details pre {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 540px;
}
.audit-empty-cell { color: var(--mute); }

/* ============ PUBLISH ZONE ============ */
.publish-zone {
  background: rgba(45,106,63,0.04);
  border: 1px solid rgba(45,106,63,0.25);
  border-radius: 8px;
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-top: 2rem;
}
.publish-zone__head h2 {
  font-size: 1.05rem;
  color: var(--success);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.publish-zone__head p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}
.publish-zone__target {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.2rem;
}
.publish-zone__target ul {
  list-style: none; padding: 0; margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.7;
}
.publish-zone__checks {
  margin-bottom: 1.3rem;
  font-size: 0.88rem;
}
.publish-zone__checks strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.publish-zone__checks ol {
  margin: 0; padding-left: 1.3rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.publish-zone__form { display: grid; gap: 1rem; }

/* ============ DANGER ZONE ============ */
.danger-zone {
  background: rgba(179,38,30,0.03);
  border: 1px solid rgba(179,38,30,0.2);
  border-radius: 8px;
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-top: 2.5rem;
}
.danger-zone__head h2 {
  font-size: 0.95rem; color: var(--danger);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.danger-zone__warn {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.danger-zone__form { display: grid; gap: 0.9rem; }
.danger-zone__form .field input { background: var(--bg-card); }

/* ============ PAGINATION ============ */
.pagination-wrap { margin-top: 1.4rem; }
.rz-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin: 1.4rem 0 0; }
.pagination-wrap .rz-pager { margin: 0; }
.rz-pager__page,
.rz-pager__nav {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 0.6rem;
  border-radius: 8px; border: 1px solid var(--line, #e6e9ef);
  background: var(--bg-card, #fff); color: var(--ink-soft, #6b7785);
  font-size: 0.88rem; font-weight: 600; text-decoration: none; line-height: 1;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.rz-pager__nav { font-size: 1.2rem; }
.rz-pager__page:hover,
.rz-pager__nav:hover { background: var(--bg-warm, #f7f5ef); border-color: var(--line-strong, #cdd2da); color: var(--ink, #0e3a5f); }
.rz-pager__page.is-current { background: var(--terracotta, #c0613a); border-color: var(--terracotta, #c0613a); color: #fff; }
.rz-pager .is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.rz-pager__dots { display: inline-flex; align-items: center; height: 38px; padding: 0 0.35rem; color: var(--mute, #98a0ab); font-size: 0.88rem; }

/* ============ PANEL EMPTY ============ */
.panel--empty {
  text-align: center;
  padding: 3rem 1.5rem;
}
.panel--empty p {
  color: var(--mute);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* ============ CONTENT MATRIX (3 planes × 5 idiomas) ============ */
.matrix {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.matrix__table { width: 100%; border-collapse: collapse; }
.matrix__table thead th {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line-strong);
  padding: 0.85rem 0.95rem;
  text-align: left;
}
.matrix__table thead th:first-child {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mute); font-weight: 700;
}
.matrix__locale-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--mute);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.matrix__locale-name {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 700;
  margin-top: 0.15rem;
}
.matrix__plan {
  border-right: 1px solid var(--line);
  padding: 1rem 1.1rem;
  min-width: 130px;
}
.matrix__plan strong {
  display: block; font-size: 0.98rem; color: var(--ink);
}
.matrix__plan span {
  display: block; font-size: 0.78rem; color: var(--mute);
  margin-top: 0.2rem;
}
.matrix__cell {
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 0;
  vertical-align: stretch;
  position: relative;
}
.matrix__cell:last-child { border-right: 0; }
.matrix__link {
  display: flex; flex-direction: column; justify-content: center;
  padding: 1rem 1.1rem;
  min-height: 96px;
  transition: background 180ms ease;
}
.matrix__link:hover { background: var(--bg-warm); }
.matrix__status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.84rem; font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}
.matrix__cell--published .matrix__status { color: var(--success); }
.matrix__cell--draft .matrix__status { color: #7b6122; }
.matrix__cell--empty .matrix__status { color: var(--mute); font-weight: 600; }
.matrix__cell--published { background: rgba(45,106,63,0.04); }
.matrix__cell--draft { background: rgba(200,160,74,0.05); }
.matrix__time {
  font-size: 0.74rem; color: var(--mute);
}

/* ============ CHECK control ============ */
.check {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; cursor: pointer;
  user-select: none;
}
.check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

/* ============ SERVICES rows ============ */
.services { display: grid; gap: 0.55rem; margin-bottom: 0.85rem; }
.services__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 0.5rem;
}
.services__row input {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  font-size: 0.92rem;
}
.services__row input:focus {
  outline: none; border-color: var(--terracotta); background: var(--bg-card);
}
.services__remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px;
  border-radius: 4px;
  color: var(--mute);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.services__remove:hover {
  background: var(--danger); color: var(--bg); border-color: var(--danger);
}

/* ============ COLOR pickers ============ */
.color-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.5rem;
  align-items: stretch;
}
.color-row input[type="color"] {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0;
  height: 100%;
  min-height: 44px;
  cursor: pointer;
  background: var(--bg);
}
.color-row input[type="text"] {
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

/* ============ GALLERY ============ */
.gallery-upload {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  align-items: center; margin-bottom: 1.4rem;
}
.gallery-upload__drop {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 4px;
  background: var(--bg);
  color: var(--mute);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.gallery-upload__drop:hover {
  border-color: var(--terracotta); color: var(--terracotta); background: var(--bg-warm);
}
.gallery-upload__drop input[type="file"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
}
.gallery__tile {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 4 / 3;
}
.gallery__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__remove {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(13,40,64,0.85);
  color: var(--bg);
  font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 180ms ease;
}
.gallery__remove:hover { background: var(--danger); }
.gallery__empty {
  color: var(--mute);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 0;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

/* Duplicate locales */
.duplicate__targets {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1rem;
}

/* Responsive form/table */
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .field--col-2 { grid-column: auto; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tbody tr {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.7rem;
  }
  .table tbody td {
    padding: 0.4rem 0.6rem;
    border-bottom: 0;
  }
  .topbar__row { flex-direction: column; }
  .matrix__table { font-size: 0.85rem; }
  .matrix__locale-name { font-size: 0.78rem; }
}

/* ============================================================================
   ANALYTICS DASHBOARD (Weblis Stats)
   ============================================================================ */
.range-selector {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--bg-warm);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.range-selector__btn {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  border-radius: 6px;
  transition: all 180ms ease;
}
.range-selector__btn:hover { background: var(--bg-card); color: var(--ink); }
.range-selector__btn.is-active { background: #0e3a5f; color: #fff; }

.analytics-block { margin-bottom: 2rem; }
.analytics-block__title {
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.analytics-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.analytics-block__header .analytics-block__title { margin-bottom: 0; }
#analytics-body { transition: opacity 180ms ease; }

/* Overlay "Premium only" en panel hotel */
.analytics-locked-wrap { position: relative; }
.analytics-locked-content {
  filter: blur(8px) saturate(0.6);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}
.analytics-locked {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2rem;
}
.analytics-locked__card {
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 2.2rem;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(14,58,95,0.25);
  position: sticky;
  top: 1rem;
}
.analytics-locked__card svg { color: var(--ochre); margin-bottom: 0.8rem; }
.analytics-locked__card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.analytics-locked__card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.analytics-block--half { margin-bottom: 0; }
@media (max-width: 900px) { .analytics-grid { grid-template-columns: 1fr; } }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .kpi-grid--3 { grid-template-columns: 1fr; } }
.kpi-grid--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .kpi-grid--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .kpi-grid--6 { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.kpi__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
}
.kpi__value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.kpi__delta {
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex; align-items: baseline; gap: 0.25rem;
}
.kpi__delta small { color: var(--mute); font-weight: 500; font-size: 0.7rem; }
.kpi__delta--up   { color: var(--success); }
.kpi__delta--down { color: var(--danger); }
.kpi__delta--flat { color: var(--mute); }

/* Funnel embudo de conversión */
.funnel {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.funnel__step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.funnel__step--1 { border-left: 3px solid #0e3a5f; }
.funnel__step--2 { border-left: 3px solid #c9a84c; }
.funnel__step--3 { border-left: 3px solid var(--success); }
.funnel__label { font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.funnel__step strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.funnel__arrow {
  display: flex; align-items: center;
  font-size: 1.5rem;
  color: var(--mute);
}
@media (max-width: 700px) {
  .funnel { flex-direction: column; }
  .funnel__arrow { transform: rotate(90deg); justify-content: center; padding: 0.2rem 0; }
}

/* Gráfico Chart.js */
.chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
}

/* Barras horizontales (top países, referrers, etc.) */
.bars {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
}
.bars__row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.4fr 56px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}
.bars__row:last-child { border-bottom: none; }
.bars__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  /* Texto completo: se ve entero y, si es muy largo, salta de línea. */
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}
.bars__bar {
  height: 8px;
  background: var(--bg-warm);
  border-radius: 4px;
  overflow: hidden;
}
.bars__bar span {
  display: block;
  height: 100%;
  background: #0e3a5f;
  border-radius: 4px;
  transition: width 400ms ease;
}
.bars__bar--search span { background: #2d6a3f; }
.bars__bar--social span { background: #c9a84c; }
.bars__bar--other  span { background: #6b7c8e; }
.bars__bar--device span { background: #6b7c8e; }
.bars__value {
  font-size: 0.85rem; font-weight: 700;
  text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============ IMPORT IMAGES GRID ============ */
.import-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
}
.import-image {
  position: relative; cursor: pointer;
  aspect-ratio: 4/3; overflow: hidden;
  border: 2px solid transparent; border-radius: 6px;
  transition: border-color 200ms ease;
  display: block;
}
.import-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 200ms ease, filter 200ms ease;
}
.import-image input { display: none; }
.import-image__check {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--success, #2d6a3f); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
  opacity: 1; transition: opacity 200ms ease;
}
.import-image:has(input:not(:checked)) .import-image__check { opacity: 0; }
.import-image:has(input:checked) { border-color: var(--success, #2d6a3f); }
.import-image:has(input:not(:checked)) img { opacity: 0.4; filter: grayscale(0.6); }

/* ============ ROOM PHOTOS ============ */
.room-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
}
.room-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-warm);
}
.room-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 200ms ease;
}
.room-photo__remove {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: rgba(255,255,255,0.95);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--ink);
}
.room-photo__remove input { margin: 0; }
.room-photo:has(input:checked) img { opacity: 0.3; filter: grayscale(1); }
.room-photo:has(input:checked) .room-photo__remove { background: var(--danger); color: #fff; }

/* ============ AMENITIES PICKER ============ */
.amenity-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.amenity-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 180ms ease;
  font-size: 0.88rem;
}
.amenity-pick:hover { border-color: var(--ink-soft); }
.amenity-pick input { display: none; }
.amenity-pick__icon {
  width: 24px; height: 24px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.amenity-pick__icon svg { width: 100%; height: 100%; }
.amenity-pick__label { flex: 1; color: var(--ink); }
.amenity-pick__check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--success, #2d6a3f); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  opacity: 0; transition: opacity 180ms ease;
}
.amenity-pick:has(input:checked) {
  background: rgba(45,106,63,0.06);
  border-color: var(--success, #2d6a3f);
}
.amenity-pick:has(input:checked) .amenity-pick__icon { color: var(--success, #2d6a3f); }
.amenity-pick:has(input:checked) .amenity-pick__check { opacity: 1; }

/* ============ EDITOR UNIFICADO ============ */
.editor-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.editor-card__head {
  padding: 1.4rem 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
}
.editor-card__head h2 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.editor-card__head p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.editor-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 1.2rem;
  overflow-x: auto;
}
.editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease;
}
.editor-tab:hover { color: var(--ink); }
.editor-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ochre, #c9a04a);
  font-weight: 700;
}
.editor-tab img { border-radius: 2px; flex-shrink: 0; }

.editor-panel {
  display: none;
  padding: 1.6rem;
}
.editor-panel.is-active { display: block; }

/* AI cards dentro del editor */
.ai-card {
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.4rem;
}
.ai-card--brief {
  background: linear-gradient(135deg, #fef6e1 0%, #fde9c4 100%);
  border: 1px solid #f5d390;
}
.ai-card--translate {
  background: linear-gradient(135deg, #e6f5ec 0%, #c8eed8 100%);
  border: 1px solid #8fce9f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ai-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.ai-card__head h3 { margin: 0; font-size: 1rem; }
.ai-card p {
  margin: 0.3rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.ai-card textarea {
  width: 100%;
  border: 1px solid #e6d39a;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  resize: vertical;
}
.ai-card textarea:focus { outline: none; border-color: var(--ochre); }
.ai-card__btn { background: var(--ochre); color: var(--bg-darker, #fff); border: none; }
.ai-card--translate strong { display: block; margin-bottom: 0.2rem; }

/* Fields del editor */
.ed-field {
  margin-bottom: 1.3rem;
}
.ed-field__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.ed-field__head label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.ed-field__hint { font-size: 0.78rem; color: var(--ink-mute); }
.ed-field input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.ed-field input[type="text"]:focus {
  outline: none;
  border-color: #0071c2;
  box-shadow: 0 0 0 3px rgba(0,113,194,0.1);
}
.ed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 700px) {
  .ed-row { grid-template-columns: 1fr; }
}

/* Quill custom */
.quill-wrap { background: #fff; border-radius: 6px; }
.quill-wrap .ql-toolbar.ql-snow {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-color: var(--line);
}
.quill-wrap .ql-container.ql-snow {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-color: var(--line);
  min-height: 180px;
  font-family: inherit;
  font-size: 0.95rem;
}

/* ============ LANG DROPDOWN (admin sidebar) ============ */
.lang-dropdown {
  position: relative;
  margin-bottom: 0.6rem;
}
.lang-dropdown__current {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: inherit;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
}
.lang-dropdown__current:hover { background: rgba(255,255,255,0.1); }
.lang-dropdown__current img { border-radius: 2px; flex-shrink: 0; }
.lang-dropdown__menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 100;
}
.lang-dropdown__menu li { list-style: none; margin: 0; }
.lang-dropdown__menu li form { margin: 0; }
.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 0.55rem 0.8rem;
  color: #111;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
}
.lang-dropdown__item:hover { background: #f7f4ef; }
.lang-dropdown__item.is-active { background: rgba(0,113,194,0.08); color: #0071c2; font-weight: 700; }
.lang-dropdown__item img { border-radius: 2px; flex-shrink: 0; }

/* Botón lápiz en sidebar user */
.sidebar__user-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  color: inherit;
  margin-left: auto;
  transition: background 150ms ease;
}
.sidebar__user-edit:hover { background: rgba(255,255,255,0.18); }

/* ============ OWNER CARD (edit hotel) ============ */
.owner-card {
  background: linear-gradient(135deg, #fff8e7 0%, #fef0ce 100%);
  border: 1px solid #f5d390;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}
.owner-card__head { margin-bottom: 1rem; }
.owner-card__head h2 { margin: 0 0 0.3rem; font-size: 1.1rem; color: #7c5e16; }
.owner-card__sub { color: #7c5e16; font-size: 0.88rem; }
.owner-card__row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  background: rgba(255,255,255,0.7);
  padding: 1rem 1.2rem;
  border-radius: 8px;
}
.owner-card__label { font-size: 0.78rem; color: #7c5e16; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 4px; }
.owner-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.owner-cred {
  background: #fff;
  border: 2px solid var(--danger, #b3261e);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.owner-cred__warn { margin: 0 0 0.8rem; color: var(--danger, #b3261e); font-size: 0.9rem; font-weight: 600; }
.owner-cred__row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0;
  flex-wrap: wrap;
}
.owner-cred__label { font-weight: 600; min-width: 110px; color: var(--ink); font-size: 0.85rem; }
.owner-cred code {
  background: #f7f4ef;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  flex: 1;
  user-select: all;
  word-break: break-all;
}
.owner-cred__copy {
  background: #0071c2; color: #fff;
  border: none; padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
}
.owner-cred__copy:hover { background: #003580; }

/* ============ AUTH STANDALONE (forgot/reset) ============ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f7f4ef;
  font-family: 'Montserrat', sans-serif;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 2.4rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.auth-box .field { margin-bottom: 1rem; }
.auth-box .field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #767676;
  margin-bottom: 0.4rem;
}
.auth-box .field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.auth-box .field input:focus {
  outline: none;
  border-color: #0071c2;
  box-shadow: 0 0 0 3px rgba(0,113,194,0.1);
}
.auth-box .btn--primary {
  background: #0071c2;
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.auth-box .btn--primary:hover { background: #003580; }
.flash--error { background: #ffeded; color: #b3261e; padding: 0.7rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash--success { background: #e7f6ec; color: #2d6a3f; padding: 0.7rem 1rem; border-radius: 6px; margin-bottom: 1rem; }

/* ============ NOTIFICACIONES IN-APP ============ */
.notif-list { display: grid; gap: 0.8rem; }
.notif {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}
.notif--success { border-left: 3px solid var(--success, #2d6a3f); }
.notif--error { border-left: 3px solid var(--danger, #b3261e); }
.notif__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.notif__date { font-size: 0.78rem; color: var(--ink-mute); }
.notif__body { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.notif-bell { position: relative; }
.notif-bell__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--danger, #b3261e); color: #fff;
  border-radius: 9px; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ============ SIDEBAR BADGE (drafts pendientes) ============ */
.sidebar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--danger, #b3261e);
  color: #fff;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: auto;
}

/* ============ DIFF VIEWER ============ */
.drafts-filter { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
}
.diff-col h3 {
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--bg-warm);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
}
.diff-col--before h3 { border-right: 1px solid var(--line); }
.diff-row--full {
  grid-column: 1 / -1;
  padding: 0.8rem 1rem 0.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft, #fafafa);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.diff-label { color: var(--ink); }
.diff-badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 2px 8px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.diff-badge--changed { background: #fde9c4; color: #7c5e16; }

.diff-cell {
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #fff;
  min-height: 60px;
}
.diff-cell--old { background: #ffeded; }
.diff-cell--new { background: #e7f6ec; }
.diff-cell + .diff-cell { border-left: 1px solid var(--line); }
.diff-cell p { margin: 0 0 0.6em; }
.diff-cell p:last-child { margin-bottom: 0; }

.draft-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-cell + .diff-cell { border-left: none; border-top: 1px solid var(--line); }
}

/* Banner de impersonación — sale al inicio de <main> en el panel cliente
   cuando un admin entra como propietario. Permite "volver al admin" sin
   tener que recuperar la sesión a mano. */
.impersonate-banner {
  background: linear-gradient(90deg, #fff7e6 0%, #ffeec2 100%);
  border-bottom: 2px solid #d4a017;
  color: #5a3e00;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.impersonate-banner__btn {
  background: #5a3e00;
  color: #fff;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}
.impersonate-banner__btn:hover { background: #3a2700; }

/* Hub cards — usadas en /mi-web y /cuenta del panel cliente */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 0.5rem;
}
.hub-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: #0071c2;
  box-shadow: 0 8px 24px rgba(0, 113, 194, 0.08);
}
.hub-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #f0f6fb;
  color: #0071c2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.hub-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #061829;
}
.hub-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a6b80;
}
.hub-card__meta {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #5a6b80;
  font-weight: 500;
}

/* KPI cards del dashboard del cliente */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.kpi-card__label {
  font-size: 0.8rem;
  color: #5a6b80;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.kpi-card__value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #061829;
  line-height: 1.1;
}
.kpi-card__delta {
  font-size: 0.78rem;
  color: #5a6b80;
}
.kpi-card__delta.is-up { color: #0a8754; font-weight: 600; }
.kpi-card__delta.is-down { color: #c0392b; font-weight: 600; }

.dash-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .dash-cols { grid-template-columns: 1fr; }
}
.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.dash-list li:last-child { border-bottom: none; }
.dash-list__label {
  color: #5a6b80;
}

/* ───────── Suscripción del propietario ───────── */
.active-plan {
  background: linear-gradient(135deg, #003580 0%, #0071c2 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 32px rgba(0, 53, 128, 0.18);
}
.active-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.active-plan__eyebrow {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}
.active-plan h2 { margin: 0; font-size: 1.6rem; font-weight: 800; }
.active-plan .badge { background: rgba(255,255,255,0.18); color: #fff; font-weight: 700; }
.active-plan__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.active-plan__label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.active-plan__grid strong {
  font-size: 1.3rem;
  font-weight: 700;
}
.active-plan__grid strong small {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
}
.active-plan .btn--secondary {
  background: rgba(255,255,255,0.95);
  color: #003580;
  border: none;
  font-weight: 600;
}
.active-plan .btn--secondary:hover {
  background: #fff;
}

.info-block {
  background: #eaf3fb;
  border: 1px solid #b8d6ec;
  color: #0a4b7c;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-title {
  margin: 2.2rem 0 1.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #061829;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.billing-toggle {
  margin: 1rem 0 1.6rem;
  display: inline-flex;
  background: #f4f1e8;
  border: 1px solid #e6dfcd;
  border-radius: 999px;
  padding: 0.3rem;
  gap: 0.2rem;
}
.billing-toggle__btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #5a6b80;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.billing-toggle__btn:hover { color: #1a2434; }
.billing-toggle__btn.is-active {
  background: #1a2434;
  color: #fff;
}
.billing-toggle__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f5c451;
  color: #1a2434;
}
.plan-card__savings {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #5a6b80;
}
.plan-card__price[hidden] { display: none !important; }
.plan-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.plan-card--featured {
  border-color: #0071c2;
  box-shadow: 0 8px 24px rgba(0, 113, 194, 0.12);
}
.plan-card--current {
  border-color: #0a8754;
  background: linear-gradient(180deg, #f0fbf5 0%, #ffffff 60%);
}
.plan-card--oneoff {
  border-color: #d4a017;
  background: linear-gradient(180deg, #fffaed 0%, #ffffff 70%);
}
.plan-card__ribbon {
  position: absolute;
  top: -12px;
  right: 1.4rem;
  background: #0071c2;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.plan-card__ribbon--gold {
  background: #d4a017;
}
.plan-card__current-tag {
  position: absolute;
  top: -12px;
  left: 1.4rem;
  background: #0a8754;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.plan-card__name {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #061829;
}
.plan-card__tagline {
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
  color: #5a6b80;
}
.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px dashed var(--line);
}
.plan-card__amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: #061829;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-card__period {
  font-size: 0.88rem;
  color: #5a6b80;
}
.plan-card__features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  flex: 1;
}
.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  color: #2c3e50;
  line-height: 1.4;
}
.plan-card__features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #0a8754;
}
.plan-card--oneoff .plan-card__features li svg { color: #d4a017; }
.plan-card__cta {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #0071c2;
  background: #fff;
  color: #0071c2;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 140ms ease;
}
.plan-card__cta:hover {
  background: #0071c2;
  color: #fff;
}
.plan-card__cta--primary {
  background: #0071c2;
  color: #fff;
}
.plan-card__cta--primary:hover {
  background: #003580;
  border-color: #003580;
}
.plan-card__cta--current {
  background: #0a8754;
  color: #fff;
  border-color: #0a8754;
  cursor: default;
}
.plan-card__cta--current:hover {
  background: #0a8754;
}
.plan-card__cta--gold {
  background: #d4a017;
  border-color: #d4a017;
  color: #fff;
}
.plan-card__cta--gold:hover {
  background: #b08813;
  border-color: #b08813;
}
.plan-card__small {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  color: #5a6b80;
  text-align: center;
  font-style: italic;
}

/* ============ RESPONSIVE MÓVIL (panel como app) ============ */
@media (max-width: 760px) {
  /* Nada debe desbordar el ancho del móvil */
  .content-body { overflow-x: hidden; }

  /* Tablas: scroll horizontal propio en vez de romper la página */
  .content-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content-body table th,
  .content-body table td { white-space: nowrap; }

  /* Acciones de la topbar: que bajen y ocupen el ancho */
  .topbar__row { flex-direction: column; }
  .topbar__actions { flex-wrap: wrap; width: 100%; }
}

/* En modo app (pantalla de inicio), respeta el área segura del iPhone */
@media (display-mode: standalone) {
  .sidebar { padding-top: calc(0.6rem + env(safe-area-inset-top)); }
  .content-body { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}

/* ============ COLUMNA OUTREACH (embudo) ============ */
.col-outreach { text-align: center; vertical-align: middle; }
.funnel-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28rem 0.62rem; border-radius: 999px; white-space: nowrap;
  background: #eef0f3; color: #6b7785;
}
.funnel-tag--saludo,
.funnel-tag--web,
.funnel-tag--info,
.funnel-tag--progress { background: #fdf3df; color: #9a6b00; }
.funnel-tag--negociando { background: #e7eefc; color: #1f4fae; }
.funnel-tag--cliente { background: #e7f6ec; color: #1f7a44; }
.funnel-tag--descartado { background: #ffeae7; color: #b3261e; }
.funnel-tag--sin_contactar { background: #eef0f3; color: #98a0ab; }
.funnel-dots { display: flex; gap: 5px; justify-content: center; margin: 0.5rem 0 0.25rem; }
.funnel-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: #e3e6ec; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease;
}
.funnel-dot.is-done { background: #2d9a5b; }
.funnel-dot.is-lost { background: #e0a9a4; }
.funnel-dot svg { width: 9px; height: 9px; }
.funnel-date { display: block; color: var(--ink-soft, #8a8f98); font-size: 0.72rem; margin-top: 0.1rem; }

/* ============ NOTIFICACIONES (admin) ============ */
.notif-group-title {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft, #8a8f98); margin: 0.5rem 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.notif-group-title--read { margin-top: 2.5rem; }
.notif-group-title small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.notif-count {
  background: #d92d20; color: #fff; border-radius: 999px; font-size: 0.72rem;
  padding: 1px 8px; font-weight: 700;
}
.notif {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card, #fff); border: 1px solid var(--line, #e6e9ef);
  border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 0.8rem;
}
.notif--unread { border-left: 4px solid var(--terracotta, #bf6a3a); background: #fffdf9; }
.notif--read { opacity: 0.72; }
.notif__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: #eef0f3;
}
.notif__icon--ok { background: #e7f6ec; }
.notif__icon--info { background: #e7eefc; }
.notif__icon--warn { background: #fdf3df; }
.notif__icon--mute { background: #eef0f3; }
.notif__main { flex: 1; min-width: 0; }
.notif__title { font-size: 0.98rem; font-weight: 700; color: var(--ink, #0e3a5f); margin: 0 0 0.2rem; }
.notif__text { font-size: 0.9rem; color: #5a6b80; margin: 0 0 0.45rem; line-height: 1.5; }
.notif__meta { font-size: 0.78rem; color: var(--ink-soft, #8a8f98); }
.notif__meta a { color: var(--terracotta, #bf6a3a); font-weight: 600; }
.notif__actions { flex: none; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
.notif__btn {
  border: 1px solid var(--line-strong, #d7dbe2); background: #fff; color: var(--ink, #0e3a5f);
  border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.notif__btn:hover { background: var(--bg-warm, #faf6ee); border-color: var(--ink, #0e3a5f); }
.notif__btn--del { color: #b3261e; padding: 0.4rem 0.6rem; }
.notif__btn--del:hover { background: #ffeae7; border-color: #b3261e; }
.notif-empty {
  text-align: center; padding: 3rem 1rem; color: var(--ink-soft, #8a8f98);
  background: var(--bg-card, #fff); border: 1px dashed var(--line, #e6e9ef); border-radius: 14px;
}
.notif-empty__icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; opacity: 0.6; }

/* Pestañas: Sin leer · Leídas · Programadas */
.notif-tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line, #e6e9ef); margin-bottom: 1.4rem; }
.notif-tab {
  border: 0; background: none; cursor: pointer; padding: 0.7rem 1rem; margin-bottom: -1px;
  font-size: 0.9rem; font-weight: 700; color: var(--ink-soft, #8a8f98);
  border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 150ms ease, border-color 150ms ease;
}
.notif-tab:hover { color: var(--ink, #0e3a5f); }
.notif-tab.is-active { color: var(--ink, #0e3a5f); border-bottom-color: var(--terracotta, #bf6a3a); }

/* Recordatorio programado (aún no ha saltado) */
.notif--scheduled { border-left: 4px solid var(--info, #3b6ed6); background: #f8fbff; }
a.notif__btn { display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 600px) {
  .notif { flex-wrap: wrap; }
  .notif__actions { flex-direction: row; width: 100%; justify-content: flex-end; }
}

/* ── Restaurante propio: horario semanal ── */
.rest-hours { display: flex; flex-direction: column; gap: .35rem; border: 1px solid #e6e3da; border-radius: 14px; padding: .5rem; background: #faf9f6; }
.rest-hours__default { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .7rem .85rem; margin-bottom: .35rem; border-radius: 10px; background: linear-gradient(180deg, #eef4fb, #e6eef8); border: 1px solid #d4e0f0; }
.rest-hours__day { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .6rem .85rem; border-radius: 10px; background: #fff; border: 1px solid #ece9e1; transition: border-color .15s, box-shadow .15s; }
.rest-hours__day:hover { border-color: #d7d3c8; box-shadow: 0 4px 14px -10px rgba(0,0,0,.35); }
.rest-hours__name { flex: 0 0 96px; font-weight: 700; color: #2b2f36; font-size: .92rem; }
.rest-hours__default .rest-hours__name { color: #0e3a5f; }
.rest-hours__closed { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: #6b7280; cursor: pointer; flex: 0 0 auto; user-select: none; }
.rest-hours__closed input { margin: 0; accent-color: #b91c1c; }
.rest-hours__ranges { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rest-hours__range { display: inline-flex; align-items: center; gap: .45rem; color: #6b7280; }
.rest-hours__range input[type="time"] { padding: .32rem .5rem; border: 1px solid #d7d3c8; border-radius: 8px; background: #fff; font-variant-numeric: tabular-nums; color: #2b2f36; }
.rest-hours__range input[type="time"]:focus { outline: 0; border-color: #0e3a5f; box-shadow: 0 0 0 3px rgba(14,58,95,.12); }
.rest-hours__default [data-hdef-apply] { margin-left: auto; }

/* ── Restaurante propio: carta en PDF ── */
.rest-pdf { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.rest-pdf__link { font-weight: 600; color: #0e3a5f; text-decoration: underline; }
.rest-pdf__remove { border: 0; background: #fde8e8; color: #b91c1c; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }

@media (max-width: 600px) {
  .rest-hours__day { align-items: flex-start; }
  .rest-hours__name { flex-basis: 100%; }
}
