/* ===========================================================================
   Software Salones — Design System v2 (panel)
   Paleta: ink cálido + acento flame. Tipografía: Outfit.
   =========================================================================== */
:root {
  /* Superficies */
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --line: #e9e6e0;
  --line-strong: #d9d5cd;

  /* Texto */
  --ink: #1f2023;
  --ink-2: #44464c;
  --muted: #807d75;

  /* Sidebar (oscuro) */
  --side-bg: #ffffff;
  --side-line: #ecebf3;
  --side-text: #5b6573;
  --side-text-hover: #1f2430;
  --brand: #16b894;

  /* Acento único */
  --accent: #6366f1;
  --accent-strong: #4f51d6;
  --accent-soft: #eceefe;
  --accent-ring: rgba(99, 102, 241, 0.28);

  /* Semánticos (desaturados) */
  --ok: #2e8f63;
  --ok-soft: #e3f2ea;
  --warn: #b07d22;
  --warn-soft: #faf0da;
  --danger: #c44438;
  --danger-soft: #fae7e4;
  --info: #3a6ea5;
  --info-soft: #e7eef6;

  /* Sombra cálida, una sola fuente de luz (arriba) */
  --shadow-sm: 0 1px 2px rgba(58, 48, 38, 0.05);
  --shadow-md: 0 1px 2px rgba(58, 48, 38, 0.05), 0 10px 28px -8px rgba(58, 48, 38, 0.09);

  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 7px;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Tema oscuro ---------- */
:root[data-theme="dark"] {
  --bg: #15161a;
  --surface: #1e2025;
  --surface-2: #24272d;
  --line: #2c2f36;
  --line-strong: #3a3e46;
  --ink: #e9e7e2;
  --ink-2: #b6b3ac;
  --muted: #8b887f;
  --accent-soft: #3a241b;
  --ok-soft: #163328;
  --warn-soft: #36301a;
  --danger-soft: #3a201e;
  --info-soft: #1c2a3a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px -8px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
/* Filas tintadas y celdas del calendario, atenuadas para fondo oscuro */
:root[data-theme="dark"] .reservas-table tr.r-ok td { background: #16302420; }
:root[data-theme="dark"] .reservas-table tr.r-warn td { background: #36301a30; }
:root[data-theme="dark"] .reservas-table tr.r-info td { background: #1c2a3a30; }
:root[data-theme="dark"] .cal-pub-cell.libre { background: #163328; color: #6fd6a0; }
:root[data-theme="dark"] .cal-pub-cell.ocupado { background: #3a201e; color: #e8908a; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  min-height: 100dvh;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------------------
   Sidebar
--------------------------------------------------------------------------- */
.sidebar {
  width: 244px;
  flex-shrink: 0;
  background: var(--side-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #34353b transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  color: var(--brand);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand .brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--brand), #0e9c7e);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  flex-shrink: 0;
}
.brand span { line-height: 1.1; }
.brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--side-text); letter-spacing: .04em; }

.sidebar nav { display: flex; flex-direction: column; gap: 1px; padding: 4px 10px 18px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--side-text);
  text-decoration: none;
  padding: 7.5px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.sidebar nav a svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--side-text-hover); }
.sidebar nav a.active {
  background: rgba(214, 90, 49, 0.16);
  color: #f6b29a;
}
.sidebar nav a.active svg { opacity: 1; }

.nav-sep {
  font-size: 10px;
  font-weight: 600;
  color: #66645e;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 16px 10px 5px;
}
/* Categorías plegables */
.nav-cat-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  font-size: 10px; font-weight: 700; color: #66645e; text-transform: uppercase; letter-spacing: 0.09em;
  padding: 14px 10px 5px; font-family: inherit;
}
.nav-cat-head:hover { color: var(--side-text-hover); }
.nav-cat-head .cat-chev { font-size: 11px; transition: transform .15s ease; opacity: .7; }
.nav-cat.collapsed .nav-cat-head .cat-chev { transform: rotate(-90deg); }
.nav-cat.collapsed .nav-cat-body { display: none; }
.nav-cat-body { display: flex; flex-direction: column; gap: 1px; }

/* --- Secciones del menú como bloques con fondo clarito de color --- */
.sidebar nav { padding-left: 6px; padding-right: 6px; }
.sidebar nav .nav-cat,
.sidebar nav .nav-cat-plain {
  margin: 5px 2px;
  padding: 3px 7px 8px;
  border-radius: 12px;
  background: var(--cat-tint, rgba(130,130,150,0.06));
  border: 1px solid var(--cat-line, rgba(130,130,150,0.10));
}
.sidebar nav .nav-cat .nav-cat-head { padding: 11px 4px 5px; }
/* Un color suave por sección (se ve lindo en claro y en oscuro) */
.sidebar nav .nav-cat-plain                                  { --cat-tint: rgba(99,102,241,0.07);  --cat-line: rgba(99,102,241,0.16); }
.sidebar nav .nav-cat[data-cat="Finanzas"]                   { --cat-tint: rgba(46,143,99,0.10);   --cat-line: rgba(46,143,99,0.20); }
.sidebar nav .nav-cat[data-cat="📥 Cargas (temporal)"] { --cat-tint: rgba(176,125,34,0.12); --cat-line: rgba(176,125,34,0.24); }
.sidebar nav .nav-cat[data-cat="Análisis"]                   { --cat-tint: rgba(58,110,165,0.10);  --cat-line: rgba(58,110,165,0.20); }
.sidebar nav .nav-cat[data-cat="Comercial"]                  { --cat-tint: rgba(139,92,246,0.10);  --cat-line: rgba(139,92,246,0.20); }
.sidebar nav .nav-cat[data-cat="RRHH"]                       { --cat-tint: rgba(219,90,140,0.10);  --cat-line: rgba(219,90,140,0.20); }
.sidebar nav .nav-cat[data-cat="Fichaje"]                    { --cat-tint: rgba(20,160,150,0.11);  --cat-line: rgba(20,160,150,0.22); }
.sidebar nav .nav-cat[data-cat="Invitaciones"]               { --cat-tint: rgba(214,90,49,0.10);   --cat-line: rgba(214,90,49,0.22); }
.sidebar nav .nav-cat[data-cat="Configuración"]              { --cat-tint: rgba(110,120,140,0.10); --cat-line: rgba(110,120,140,0.20); }
.sidebar nav .nav-cat[data-cat="SaaS"]                       { --cat-tint: rgba(79,81,214,0.10);   --cat-line: rgba(79,81,214,0.20); }
/* Ítems PRINCIPALES del menú en negrita y más oscuros; los sub-ítems quedan suaves */
.sidebar nav .nav-parent,
.sidebar nav .nav-cat-plain > a,
.sidebar nav .nav-cat-body > a { font-weight: 700; }
.sidebar nav .nav-parent:not(.active),
.sidebar nav .nav-cat-plain > a:not(.active),
.sidebar nav .nav-cat-body > a:not(.active) { color: var(--side-text-hover); }
.sidebar nav .nav-children a { font-weight: 500; }
/* Botones abrir/cerrar todo */
/* Botón "Estado de la página": arriba de todo del menú, para prender o apagar la
   web desde cualquier pantalla. El puntito verde/rojo se lee de un vistazo. */
.estado-web-btn {
  display: flex; align-items: center; gap: 9px;
  margin: 0 12px 10px; padding: 9px 11px;
  background: var(--surface-2); border: 1px solid var(--side-line);
  border-radius: 10px; cursor: pointer; text-align: left;
  font-family: inherit; color: var(--side-text-hover);
  transition: background .15s ease, border-color .15s ease;
}
.estado-web-btn:hover { background: var(--surface); border-color: var(--line-strong); }
.estado-web-luz {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: #16b894; box-shadow: 0 0 0 3px rgba(22, 184, 148, .18);
}
.estado-web-btn.apagada .estado-web-luz { background: #e0524a; box-shadow: 0 0 0 3px rgba(224, 82, 74, .18); }
.estado-web-txt { display: flex; flex-direction: column; line-height: 1.2; font-size: 12.5px; font-weight: 600; }
.estado-web-txt small { font-size: 11px; font-weight: 500; color: var(--muted); }
.estado-web-btn.apagada .estado-web-txt small { color: #c0453d; font-weight: 700; }

.nav-tools { display: flex; gap: 6px; padding: 0 12px 6px; }
.nav-tools button {
  flex: 1; background: var(--surface-2); border: 1px solid var(--side-line); color: var(--side-text);
  border-radius: 7px; padding: 5px 6px; font-size: 10.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.nav-tools button:hover { color: var(--side-text-hover); border-color: var(--line-strong); }

.public-link {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--side-text);
  text-decoration: none;
  padding: 12px 18px;
  border-top: 1px solid var(--side-line);
  display: flex; align-items: center; gap: 8px;
  transition: color .15s ease;
}
.public-link:hover { color: var(--side-text-hover); }
.public-link svg { width: 14px; height: 14px; }

/* Submenús colapsables (navegación estilo FUNZONE) */
.sidebar .nav-group { display: flex; flex-direction: column; }
.sidebar .nav-parent {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--side-text);
  padding: 7.5px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.sidebar .nav-parent > svg:first-child { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.sidebar .nav-parent:hover { background: rgba(255, 255, 255, 0.05); color: var(--side-text-hover); }
.sidebar .nav-parent.active { color: var(--side-text-hover); }
.sidebar .nav-parent.active > svg:first-child { opacity: 1; }
.sidebar .nav-parent .chev {
  width: 14px; height: 14px;
  margin-left: auto;
  opacity: .5;
  transition: transform .18s ease;
}
.sidebar .nav-group.open > .nav-parent .chev { transform: rotate(90deg); }

.sidebar .nav-children {
  display: none;
  flex-direction: column;
  gap: 1px;
  margin: 1px 0 4px 20px;
  padding-left: 11px;
  border-left: 1px solid var(--side-line);
}
.sidebar .nav-group.open > .nav-children { display: flex; }
.sidebar .nav-children a {
  padding: 6.5px 10px;
  border-radius: 7px;
  font-size: 12.6px;
  font-weight: 500;
  color: var(--side-text);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.sidebar .nav-children a:hover { background: rgba(255, 255, 255, 0.05); color: var(--side-text-hover); }
.sidebar .nav-children a.active { background: rgba(214, 90, 49, 0.16); color: #f6b29a; }

/* Pie del sidebar: enlace público + cerrar sesión */
.side-bottom { margin-top: auto; }
.side-bottom .public-link { margin-top: 0; }
.side-logout { border-top: 1px solid var(--side-line); }
.side-logout button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--side-text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 12px 18px;
  transition: color .15s ease;
}
.side-logout button:hover { color: #f6b29a; }
.side-logout button svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------------
   Main / topbar
--------------------------------------------------------------------------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-weight: 700; font-size: 15.5px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.plan-chip {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border: 1px solid var(--line-strong); padding: 2px 8px; border-radius: 20px;
}
.topbar-user { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--bg); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .theme-toggle svg { fill: var(--accent); stroke: var(--accent); }
.user-chip { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.logout-form { margin: 0; }

.content { padding: 28px 32px 48px; max-width: 1240px; width: 100%; }

/* ---------------------------------------------------------------------------
   Encabezados de página
--------------------------------------------------------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
h2 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.page-head .muted { margin: 5px 0 0; font-size: 13px; max-width: 62ch; }
.page-head-right { display: flex; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------------------
   Cards
--------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.cards-5 .stat-value { font-size: 17.5px; }
.cards .card { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* KPIs */
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.stat-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 19px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line);
}
.stat-icon.blue { background: var(--info-soft); border-color: transparent; }
.stat-icon.green { background: var(--ok-soft); border-color: transparent; }
.stat-icon.violet { background: var(--accent-soft); border-color: transparent; }
.stat-icon.red { background: var(--danger-soft); border-color: transparent; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.stat-value { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 1px; }
.cards-4 .stat-value { font-size: 17.5px; }

/* ---------------------------------------------------------------------------
   Tablas
--------------------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th {
  color: var(--muted); font-weight: 600; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding-top: 6px; padding-bottom: 8px;
}
td { color: var(--ink-2); }
td strong { color: var(--ink); font-weight: 600; }
td.r, th.r { text-align: right; }
td.r { font-variant-numeric: tabular-nums; }
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }
tfoot th, tfoot td { border-top: 1.5px solid var(--line-strong); border-bottom: none; font-weight: 600; color: var(--ink); padding-top: 12px; }

.deuda { color: var(--danger); font-weight: 600; }
.ok { color: var(--ok); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.empty { color: var(--muted); padding: 26px 0; text-align: center; font-size: 13.5px; }
.table-scroll { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.inactivo { opacity: 0.5; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 7px; vertical-align: 1px; }

table.kv th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Filas coloreadas por estado (estilo FUNZONE, en tonos de la paleta) */
.reservas-table tr.r-ok td { background: #ecf6f0; }
.reservas-table tr.r-ok:hover td { background: #e2f0e8; }
.reservas-table tr.r-warn td { background: #fcf4dd; }
.reservas-table tr.r-warn:hover td { background: #f7edcd; }
.reservas-table tr.r-info td { background: #e9f2f8; }
.reservas-table tr.r-info:hover td { background: #ddebf4; }
.reservas-table td { white-space: nowrap; }
tr.fila-pendiente td { background: var(--warn-soft); }
tr.fila-pendiente:hover td { background: #f6ead0; }

/* Filas coloreadas por ESTADO de la reserva */
/* Renglones por ESTATUS (estilo FunZone): amarillo = sin controlar (página pública),
   celeste = link externo, violeta = bot, verde = anticipo pago, rojo = cancelada. */
.reservas-table tr.r-amarillo td { background: #fdf3cf; }
.reservas-table tr.r-amarillo:hover td { background: #faecb8; }
.reservas-table tr.r-celeste td { background: #e3edfb; }
.reservas-table tr.r-celeste:hover td { background: #d4e3f8; }
.reservas-table tr.r-violeta td { background: #efe4fb; }
.reservas-table tr.r-violeta:hover td { background: #e5d5f8; }
.reservas-table tr.r-verde td { background: #e6f6ec; }
.reservas-table tr.r-verde:hover td { background: #d7f0e1; }
.reservas-table tr.r-rojo td { background: #fdecea; }
.reservas-table tr.r-rojo:hover td { background: #f9dcd8; }
:root[data-theme="dark"] .reservas-table tr.r-amarillo td { background: #36301a30; }
:root[data-theme="dark"] .reservas-table tr.r-celeste td { background: #1c2a3a30; }
:root[data-theme="dark"] .reservas-table tr.r-violeta td { background: #2a1c3a30; }
:root[data-theme="dark"] .reservas-table tr.r-verde td { background: #16302420; }
:root[data-theme="dark"] .reservas-table tr.r-rojo td { background: #3a201e30; }
/* Semáforo del PAGO (primera columna del listado de reservas):
   rojo = no entró nada, amarillo = subió comprobante y falta verificarlo,
   verde = verificado por la dueña (ahí el renglón entero se pone verde). */
.sem { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
       font-size: 11px; font-weight: 800; white-space: nowrap; line-height: 1.35; }
.sem-no { background: #dc2626; color: #fff; }
.sem-verif { background: #f5b301; color: #4a3300; box-shadow: 0 0 0 2px rgba(245,179,1,.28); }
.sem-ok { background: #16a34a; color: #fff; }

/* Botones de filtro por estatus: cuadradito con el MISMO color del renglón */
.est-btn { display: inline-flex; align-items: center; gap: 6px; }
.est-sw { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); flex: 0 0 auto; }
.est-sw-sin_controlar { background: #fdf3cf; }
/* Armado de horarios: tabla compacta (entran más eventos en pantalla) */
.evento-staff { padding: 12px 16px; }
.evento-staff .evento-head { margin-bottom: 4px; }
.asig-table.compacta th { padding: 4px 8px; font-size: 10.5px; }
.asig-table.compacta td { padding: 3px 8px; font-size: 13px; }
.asig-table.compacta select { padding: 4px 8px; font-size: 13px; max-width: 200px; height: auto; }
.asig-table.compacta .btn.small { padding: 2px 8px; font-size: 12px; }
.asig-table.compacta .badge { font-size: 10px; padding: 1px 6px; }

/* Cierres de caja AUTOMÁTICOS (sin arqueo manual): renglón naranja suave + globito */
tr.cierre-auto td { background: #fdf1e0; }
tr.cierre-auto:hover td { background: #fae6cb; }
:root[data-theme="dark"] tr.cierre-auto td { background: #3a2c1a30; }
.badge.auto-cierre { background: #f5c26b; color: #6b4400; }
.est-sw-enlace { background: #e3edfb; }
.est-sw-bot { background: #efe4fb; }
.est-sw-anticipo_pago { background: #e6f6ec; }

.reservas-table tr.r-blanco:hover td { background: var(--surface-2); }
/* Badge de origen */
.badge-org { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-org.org-publico { background: #f5d76e; color: #5b4a00; }
.badge-org.org-enlace { background: #9cc3f5; color: #103a6b; }
.badge-org.org-bot { background: #c9a8f0; color: #3d1a6b; }
.badge-org.org-panel { background: var(--surface-2); color: var(--muted); }

/* Opciones de adicionales */
.opc-sec { margin: 8px 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.opc-tit { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.opc-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.opc-row input[name="opcion_nombre[]"] { flex: 1; }
.opc-row input[name="opcion_precio[]"] { width: 120px; }

/* Rango de horario predeterminado en el calendario (guía amarilla) */
.cal-pre { position: absolute; left: 0; right: 0; background: rgba(253, 224, 71, 0.30); border-top: 1px dashed rgba(202,138,4,.45); border-bottom: 1px dashed rgba(202,138,4,.45); z-index: 0; pointer-events: none; }

/* Listado de reservas compacto (que entre todo en pantalla) */
.reservas-table { font-size: 11.5px; }
.reservas-table th, .reservas-table td { padding: 5px 7px; white-space: nowrap; }
.reservas-table .badge { font-size: 10px; padding: 2px 6px; }
.reservas-table .btn.small { padding: 3px 8px; font-size: 11px; }
.reservas-table .dot { width: 8px; height: 8px; }
/* Filtros más chicos */
.filtros-grid { gap: 8px 10px; }
.filtros-grid label { font-size: 12px; gap: 3px; }
.filtros-grid input, .filtros-grid select { padding: 5px 8px; font-size: 12.5px; }

/* Menú "Ver" (acciones por reserva en el listado) */
.acc-menu { position: relative; display: inline-block; }
.acc-pop { position: fixed; z-index: 200; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); min-width: 210px; padding: 6px; display: none; }
.acc-pop.open { display: block; }
.acc-pop a, .acc-pop .acc-item-btn { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: #222; font-size: 13px; background: none; border: none; cursor: pointer; }
.acc-pop a:hover, .acc-pop .acc-item-btn:hover { background: #f3f3f8; }
.acc-pop .acc-item-btn.danger { color: var(--danger, #d33); }
.acc-cell { white-space: nowrap; }

/* Meses con tilde (horarios) */
.meses-check { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px 10px; margin-top: 4px; }
.mes-chk { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer; }
@media (max-width: 560px) { .meses-check { grid-template-columns: repeat(2, 1fr); } }

/* Leyenda de colores del listado */
.leyenda-card { display: flex; gap: 22px; flex-wrap: wrap; padding: 11px 22px; font-size: 12.5px; color: var(--muted); }
.ley { display: flex; align-items: center; gap: 7px; }
.ley-sw { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,.07); }
.ley-sw.r-ok { background: #ecf6f0; }
.ley-sw.r-warn { background: #fcf4dd; }
.ley-sw.r-info { background: #e9f2f8; }

/* ---------------------------------------------------------------------------
   Badges
--------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge.presupuestado { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.reservado { background: var(--info-soft); color: var(--info); }
.badge.realizado { background: var(--ok-soft); color: var(--ok); }
.badge.cancelado { background: var(--danger-soft); color: var(--danger); }
.badge.ant-aprobado, .badge.pg-aprobado, .badge.acc-creacion, .badge.acc-aprobacion { background: var(--ok-soft); color: var(--ok); }
.badge.ant-pendiente, .badge.pg-pendiente, .badge.acc-edicion { background: var(--warn-soft); color: var(--warn); }
.badge.ant-sin_estado { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.pg-rechazado, .badge.acc-cancelacion, .badge.acc-rechazo { background: var(--danger-soft); color: var(--danger); }
.badge.mod, .badge.cat, .badge.acc-apertura { background: var(--info-soft); color: var(--info); }
.badge.acc-cierre { background: var(--surface-2); color: var(--muted); }
.badge.acc-login { background: var(--ok-soft); color: var(--ok); }
.badge.acc-logout { background: var(--surface-2); color: var(--muted); }
.badge.bal-perfecto { background: var(--info-soft); color: var(--info); }
.badge.bal-sobrante { background: var(--ok-soft); color: var(--ok); }
.badge.bal-faltante { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------------------
   Formularios
--------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 13px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { flex: 1; min-width: 130px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 8.5px 11px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #b3b0a8; }
input:hover, select:hover, textarea:hover { border-color: #c4c0b6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.filtros-card { padding: 16px 22px; }
.filtros-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.filtros-titulo { font-weight: 700; font-size: 14px; color: var(--ink); }
.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px 14px;
}
.filtros-btns { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.check-inline, .check-row { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
.check-inline input, .check-row input { width: auto; flex: 0 0 auto; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 0; }

/* ---------------------------------------------------------------------------
   Paginación
--------------------------------------------------------------------------- */
.paginacion { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.pag-info { font-size: 13px; color: var(--ink-2); }
.pag-btns { display: flex; align-items: center; gap: 6px; }
.pag-actual { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 8px; }

/* ---------------------------------------------------------------------------
   Autocompletado (clientes)
--------------------------------------------------------------------------- */
.ac { position: relative; width: 100%; }
.ac-input { width: 100%; }
.ac-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin-top: 4px; max-height: 250px; overflow: auto; box-shadow: 0 16px 38px -14px rgba(40, 34, 26, 0.28); display: none; }
.ac-results.open { display: block; }
.ac-item { padding: 9px 12px; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ac-item:hover { background: var(--bg); }
.ac-sub { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ac-empty { padding: 9px 12px; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------------------
   Galería (panel)
--------------------------------------------------------------------------- */
.galeria-upload { display: flex; flex-direction: column; gap: 14px; }
.upload-drop {
  border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 32px 20px;
  text-align: center; background: var(--bg); transition: border-color .15s, background .15s;
}
.upload-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.upload-drop p { margin: 4px 0; }
.upload-ico { font-size: 38px; margin-bottom: 6px; }
.upload-foot { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.galeria-item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); position: relative; }
.galeria-item img { width: 100%; height: 150px; object-fit: cover; display: block; }
.galeria-item.oculta img { opacity: .45; filter: grayscale(.4); }
.galeria-tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.galeria-item figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.galeria-cap { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.galeria-acc { display: flex; gap: 6px; }
.galeria-acc form { flex: 1; }
.galeria-acc .btn { width: 100%; }

/* ---------------------------------------------------------------------------
   Botones
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.small { padding: 4.5px 10px; font-size: 12px; box-shadow: none; }
.ok-btn { background: var(--ok); border-color: var(--ok); color: #fff; }
.ok-btn:hover { background: #257a53; border-color: #257a53; }
.danger-btn { background: var(--surface); border-color: var(--line-strong); color: var(--danger); }
.danger-btn:hover { background: var(--danger-soft); border-color: var(--danger); }
.acciones-inline { display: flex; gap: 6px; justify-content: flex-end; }
.acciones-inline form { margin: 0; }

/* ---------------------------------------------------------------------------
   Misceláneas
--------------------------------------------------------------------------- */
.total-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.total-pill strong { color: var(--danger); font-weight: 700; }
.mes-picker input { font-size: 13.5px; }

.aviso-importante {
  border-left: 3px solid var(--warn);
  background: var(--warn-soft);
  font-size: 13.5px;
  color: #6e5417;
}
.link-generado { border-left: 3px solid var(--ok); }
.link-box { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.link-box input { flex: 1; font-family: ui-monospace, 'Cascadia Mono', monospace; font-size: 12.5px; background: var(--surface-2); }

.aplicar-bar { flex-direction: row; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.aplicar-bar label { flex: 0 0 200px; }

/* ---------------------------------------------------------------------------
   Modales
--------------------------------------------------------------------------- */
.modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 640px;
  width: 92%;
  box-shadow: 0 24px 64px -12px rgba(30, 24, 18, 0.35);
}
.modal::backdrop { background: rgba(25, 22, 18, 0.45); backdrop-filter: blur(3px); }
.modal .form { padding: 24px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.modal-close {
  background: var(--surface-2); border: 1px solid var(--line);
  width: 28px; height: 28px; border-radius: 8px;
  font-size: 13px; cursor: pointer; color: var(--muted);
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ---------------------------------------------------------------------------
   Login / error (standalone)
--------------------------------------------------------------------------- */
.login-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  background: var(--bg);
}
.login-side {
  background: var(--side-bg);
  color: #f0eee8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}
.login-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 85% -10%, rgba(214, 90, 49, 0.22), transparent 60%),
    radial-gradient(520px 420px at -10% 110%, rgba(58, 110, 165, 0.14), transparent 60%);
  pointer-events: none;
}
.login-side > * { position: relative; }
.login-side .brand { padding: 0; }
.login-tagline h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: #f6f4ee; margin: 0 0 14px; text-wrap: balance; }
.login-tagline p { color: #9c9a92; font-size: 14.5px; line-height: 1.6; max-width: 42ch; margin: 0; }
.login-feats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 9px; }
.login-feats li { display: flex; gap: 9px; align-items: center; color: #b6b4ac; font-size: 13.5px; }
.login-feats li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.login-foot { color: #66645e; font-size: 12px; }

.login-form-side { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 360px; max-width: 100%; }
.login-card h1 { font-size: 22px; margin: 0 0 4px; }
.login-sub { color: var(--muted); margin: 0 0 24px; font-size: 13.5px; }
.login-hint { margin-top: 18px; font-size: 12px; color: var(--muted); }
.login-hint code { background: var(--surface); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 11.5px; }
/* Ojito para ver la contraseña: va DENTRO del campo, pegado a la derecha. */
.pass-wrap { position: relative; display: block; }
.pass-wrap > input { width: 100%; padding-right: 40px; }
.pass-ojo {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer;
  padding: 5px 7px; border-radius: 8px; line-height: 1;
  font-size: 15px; opacity: .55;
}
.pass-ojo:hover { opacity: 1; background: var(--surface-2); }
.pass-ojo:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; }
.alert.error {
  background: var(--danger-soft); color: var(--danger);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px;
  border: 1px solid #efc4be;
}
/* error.ejs standalone reusa login-card centrada */
.login-body.single { grid-template-columns: 1fr; place-items: center; }
.login-brand { font-size: 22px; font-weight: 800; color: var(--ink); }

/* ---------------------------------------------------------------------------
   Calendario del panel
--------------------------------------------------------------------------- */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 22px; }
.suc-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.suc-tab {
  border: 1px solid var(--line-strong); background: var(--surface);
  padding: 6px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--muted); font-family: inherit;
  transition: all .15s ease;
}
.suc-tab:hover { border-color: var(--ink-2); color: var(--ink); }
.suc-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-range { font-weight: 600; margin-left: 6px; font-size: 13.5px; }
.cal-card { padding: 0; overflow: hidden; }

.cal-grid { display: grid; grid-template-columns: 52px repeat(7, 1fr); }
.cal-col { border-right: 1px solid var(--line); }
.cal-col:last-child { border-right: none; }
.cal-times { background: var(--surface-2); }
.cal-dayhead {
  height: 42px; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #6168e0;
  border-bottom: 1px solid var(--line); text-transform: capitalize;
}
.cal-dayhead.hoy { background: #e7e9fb; color: #4f51d6; font-weight: 700; }
.cal-day.hoy .cal-slots { background: #fdf6dd; }
/* Feriados */
.cal-dayhead.feriado { color: var(--accent-strong); flex-direction: column; gap: 1px; }
.fer-tag { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
.cal-day.feriado .cal-slots { background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 10px, transparent 10px, transparent 20px); }
:root[data-theme="dark"] .cal-day.hoy .cal-slots { background: #23262b; }
/* Bloque de limpieza entre eventos */
.cal-limpieza {
  position: absolute; left: 2px; right: 2px; border-radius: 8px; overflow: hidden;
  font-size: 11px; font-weight: 600; color: #fff; display: flex; align-items: center; justify-content: center;
  background: #3c4654;
}
.cal-time { font-size: 10.5px; color: var(--muted); padding: 2px 7px; border-bottom: 1px dashed var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.cal-slots { position: relative; }
.cal-slot { border-bottom: 1px dashed #f0ede7; cursor: pointer; transition: background .12s ease; }
.cal-slot:hover { background: var(--accent-soft); }
.cal-event {
  position: absolute; left: 2px; right: 2px;
  background: #8fe3a3;
  border-radius: 8px; padding: 6px 4px 4px; overflow: hidden;
  font-size: 11px; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  cursor: pointer;
}
.cal-event:hover { filter: brightness(0.97); }
.ev-pill {
  background: #f0463a; color: #fff; font-weight: 700; line-height: 1.12;
  border-radius: 14px; padding: 4px 11px; max-width: 100%; font-size: 10.5px;
}
.ev-pill span { display: block; font-weight: 600; font-size: 10px; opacity: .95; }
.ev-info { color: #186a3b; font-weight: 600; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ev-mon { font-variant-numeric: tabular-nums; }
/* Evento que termina después de la medianoche (madrugada) */
.cal-event-madrugada { box-shadow: inset 0 -5px 0 #6d28d9, 0 0 0 2px #6d28d9; }
.ev-madrugada { background: #6d28d9; color: #fff; font-size: 9px; font-weight: 800; border-radius: 5px; padding: 1px 6px; margin-top: 1px; white-space: nowrap; }

/* Ficha de reserva */
.ficha-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ficha-tit { font-size: 14px; color: var(--accent); margin: 0 0 10px; }
.kv.kv-2 th { width: 46%; }
.saldo-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: var(--surface-2); border-radius: 10px; padding: 14px 18px; margin-top: 14px; font-size: 16px; }
.saldo-bar strong { font-size: 17px; }
@media (max-width: 640px) { .ficha-cols { grid-template-columns: 1fr; gap: 14px; } .saldo-bar { grid-template-columns: 1fr; gap: 8px; } }

/* Precios por mes */
.precios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.precio-mes .card-head { margin-bottom: 8px; }
.precio-bloque { margin-bottom: 10px; }
.precio-tit { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.precio-mes.pasado { opacity: .65; }
@media (max-width: 900px) { .precios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .precios-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Cajas
--------------------------------------------------------------------------- */
.cajas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin-bottom: 16px; }
.caja-card { margin-bottom: 0; }
.caja-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 14px; }
.caja-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
  background: var(--ok-soft);
}
.caja-icon.cerrada { background: var(--surface-2); border: 1px solid var(--line); filter: grayscale(1); opacity: .7; }
.caja-estado { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 6px; }
.caja-estado.abierta { background: var(--ok-soft); color: var(--ok); }
.caja-estado.cerrada { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.caja-kv th { width: auto; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.caja-kv td, .caja-kv th { padding: 7px 4px; }
.caja-kv td { font-variant-numeric: tabular-nums; }
.caja-esperado th, .caja-esperado td { border-top: 1.5px solid var(--line-strong); border-bottom: none; font-size: 14.5px; color: var(--ink); }
.caja-form { margin-top: 14px; }

/* ---------------------------------------------------------------------------
   RRHH
--------------------------------------------------------------------------- */
.evento-staff { padding: 16px 22px; }
.evento-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.asig-table { margin-bottom: 8px; }
.asig-table th, .asig-table td { padding: 7px 10px; }
.asig-form summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; font-size: 13px; padding: 6px 0; list-style: none; }
.asig-form summary::before { content: ''; }
.asig-form summary:hover { text-decoration: underline; }
.asig-form .row { align-items: flex-end; }

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 940px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: column; }
  .sidebar nav { flex-direction: column; max-height: 56vh; overflow-y: auto; padding-bottom: 10px; }
  .side-bottom { margin-top: 4px; }
  .content { padding: 20px 16px 40px; }
  .cards, .cards-4, .cards-5, .grid-2 { grid-template-columns: 1fr; }
  .cal-grid { min-width: 760px; }
  .cal-card { overflow-x: auto; }
  .login-body { grid-template-columns: 1fr; }
  .login-side { display: none; }
}

/* Generador de enlaces — panel de pendientes destacado */
.card-alerta { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-ring); }
.badge-pend {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle;
}
.enlace-acc { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn.wa { background: #25D366; border-color: #1faa52; color: #fff; font-weight: 700; }
.btn.wa:hover { background: #1faa52; }

/* Super-admin: badges de plan */
.badge.plan-demo  { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.plan-basico{ background: var(--info-soft); color: var(--info); }
.badge.plan-pro   { background: var(--ok-soft); color: var(--ok); }
