/* Velo — estilos */
:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --text: #1d1b22;
  --muted: #6b6775;
  --line: #e4e1da;
  --accent: #fd5501;
  --accent-soft: #fff0e6;
  --up: #fd5501;
  --down: #4c6ef5;
  --danger: #c92a2a;
  --ok-bg: #e6f6ec; --ok-text: #1e6b3a;
  --err-bg: #fdecec; --err-text: #9b2222;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 15, 40, .06);
  color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #15141a; --card: #1e1d25; --text: #ecebf1; --muted: #9a96a6; --line: #2e2c37;
    --accent: #ff7a33; --accent-soft: #3a2418; --up: #ff7a33; --down: #7c95ff; --danger: #ff6b6b;
    --ok-bg: #173323; --ok-text: #8fe0ab; --err-bg: #3a1c1c; --err-text: #ffaaaa;
    --shadow: none;
    color-scheme: dark;
  }

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* Barra superior */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; display: block; }
.logo-text { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.logo-py { color: #fd5501; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav > a:not(.btn) { color: var(--text); }

.menu { position: relative; }
.menu summary { cursor: pointer; list-style: none; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--accent-soft); }
.menu-list {
  position: absolute; right: 0; top: 110%; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; min-width: 190px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.menu-list a, .menu-list button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px;
  color: var(--text); background: none; border: 0; font: inherit; cursor: pointer;
}
.menu-list a:hover, .menu-list button:hover { background: var(--accent-soft); text-decoration: none; }

main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 70vh; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .side { order: -1; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 32px 16px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
:root[data-theme="dark"] .btn-primary { color: #15141a; }
.btn-sm { padding: 5px 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.link:hover { color: var(--accent); }
.link.danger:hover { color: var(--danger); }
form.inline { display: inline; }

/* Pestañas */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.tabs a:hover { background: var(--card); text-decoration: none; }
.tabs a.on { background: var(--card); color: var(--text); border: 1px solid var(--line); }

/* Posts */
.post-card { display: flex; gap: 12px; }
.feed > .post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.feed > .post-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 1.1rem; margin: 2px 0 6px; line-height: 1.35; overflow-wrap: anywhere; }
.post-full .post-title { font-size: 1.45rem; }
.post-title a { color: var(--text); }
.domain { font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.meta a { color: var(--muted); }
.cmty { font-weight: 700; color: var(--text) !important; }
.actions { font-size: .85rem; display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.actions a { color: var(--muted); font-weight: 600; }
.body { overflow-wrap: anywhere; margin: 6px 0; }
.ext-link { font-weight: 600; }

/* Autores */
.author { font-weight: 600; color: var(--text) !important; }
.author.random {
  display: inline-flex; align-items: center; gap: 4px; font-style: italic;
  background: var(--accent-soft); color: var(--accent) !important; padding: 0 8px; border-radius: 999px;
}
.author.deleted { font-weight: 400; color: var(--muted) !important; }
.mask { font-style: normal; }
.badge { font-size: .7rem; font-weight: 800; background: var(--accent); color: #fff; border-radius: 4px; padding: 0 5px; }
.badge-you { background: var(--muted); }

/* Votos */
.vote { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.vote button {
  background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1rem;
  line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.vote button:hover { background: var(--accent-soft); }
.vote .up.active { color: var(--up); }
.vote .down.active { color: var(--down); }
.score { font-weight: 800; font-size: .9rem; }

/* Comentarios */
.comments h2 { margin-bottom: 12px; }
.comment-list { margin-top: 16px; }
.comment { display: flex; gap: 8px; margin-top: 12px; }
.comment .vote { min-width: 28px; }
.comment .vote button { font-size: .8rem; }
.comment-main { flex: 1; min-width: 0; }
.replies { border-left: 2px solid var(--line); padding-left: 10px; margin-left: -4px; }
.replies:hover { border-left-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.replies.flat { border-left: 0; padding-left: 0; margin-left: 0; }
.reply-form { margin-top: 8px; }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.form-card { max-width: 440px; margin: 20px auto; }
.form-card.wide { max-width: 680px; }
input[type=text], input[type=email], input[type=password], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.row { display: flex; gap: 8px; align-items: center; }
.row input { flex: 1; }
.prefix { color: var(--muted); font-weight: 700; }
.identity { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.identity legend { font-weight: 700; font-size: .85rem; padding: 0 4px; }
.identity label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.identity small { color: var(--muted); }

.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok-text); }
.flash-err { background: var(--err-bg); color: var(--err-text); }

/* Comunidades y perfil */
.cmty-head h1 { margin-bottom: 0; }
.cmty-title { font-weight: 600; margin: 2px 0 6px; }
a.card.cmty-item { display: flex; flex-direction: column; color: var(--text); }
a.card.cmty-item:hover { text-decoration: none; border-color: var(--accent); }
.profile-head { display: flex; gap: 16px; align-items: center; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex-shrink: 0;
}
.profile-head h1 { margin: 0; }
.settings { max-width: 600px; margin: 0 auto; }
.karma { font-size: 2.2rem; font-weight: 800; margin: 0; color: var(--accent); }
ul.plain { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pager { display: flex; justify-content: space-between; margin-top: 12px; }
.foot { color: var(--muted); font-size: .85rem; padding: 20px 16px 40px; text-align: center; }

/* Cuentas de IA y panel de administración */
.badge-ai { background: #4c6ef5; white-space: nowrap; }
.ai-note { background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; font-size: .9rem; margin: 6px 0; }
.acting-bar { background: #4c6ef5; color: #fff; font-size: .9rem; padding: 8px 0; }
.acting-bar .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.acting-bar form { margin: 0; }
.acting-bar button { background: #fff; color: #1d1b22; border: 0; border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table form { display: inline-flex; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
.admin-table select, .admin-table button { font: inherit; font-size: .85rem; }
.table-scroll { overflow-x: auto; }
.mod-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); border-radius: 999px; padding: 1px 4px 1px 10px; margin: 2px 4px 2px 0; }
.mod-chip button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 4px; }

/* Tilde verde de cuenta oficial */
.verified { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: #1fa855; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; vertical-align: middle; font-style: normal; }
h1 .verified { width: 22px; height: 22px; font-size: 14px; }
.ai-tag { font-size: .66rem; font-weight: 800; color: #1fa855; border: 1px solid #1fa855; border-radius: 4px; padding: 0 4px; margin-left: 3px; vertical-align: middle; }

/* Imágenes y fotos de perfil */
.av { display: inline-block; border-radius: 50%; object-fit: cover; vertical-align: middle; flex: none; }
.av-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; font-style: normal; }
.av-sm { width: 20px; height: 20px; font-size: 11px; margin-right: 4px; }
.av-lg { width: 72px; height: 72px; font-size: 30px; }
.av-xl { width: 64px; height: 64px; font-size: 28px; }
.menu summary .av-sm { margin-right: 6px; }
.avatar-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.avatar-edit .form { margin-bottom: 6px; }
.card-image { display: block; margin: 6px 0; }
.card-image img { max-width: 100%; max-height: 420px; border-radius: 10px; display: block; object-fit: contain; background: var(--line); }
.post-image { display: block; margin: 10px 0; }
.post-image img { max-width: 100%; max-height: 80vh; border-radius: 10px; display: block; }
.img-preview { max-width: 100%; max-height: 260px; border-radius: 10px; }
input[type=file] { font: inherit; max-width: 100%; }

/* ---------- Perfiles de negocio ---------- */
.body ul.list { margin: .4em 0; padding-left: 1.3em; }
.body ul.list li { margin: .15em 0; }

.biz { margin: 6px 0 4px; }
.biz-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 1; background: var(--accent-soft); }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-cover-empty { background: linear-gradient(135deg, var(--accent) 0%, #ffb37a 55%, var(--accent-soft) 100%); }
.biz-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 0 12px; margin-top: -44px; }
.biz-logo { width: 96px; height: 96px; border-radius: 22px; border: 4px solid var(--card); background: var(--card); object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); flex: none; }
.biz-logo-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 40px; }
.biz-id { flex: 1 1 220px; min-width: 0; padding-top: 48px; }
.biz-name { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.biz-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.biz-followers { font-weight: 600; color: var(--text); }
.biz-tagline { margin: 6px 0 0; font-style: italic; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.biz-actions .btn { white-space: nowrap; }
.biz-following { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.biz-wa { background: #25d366; color: #fff; border-color: #25d366; }
.biz-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.biz-sec { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.biz-sec h2 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.biz-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.biz-info li { display: flex; gap: 10px; align-items: flex-start; }
.biz-info small { display: block; color: var(--muted); font-size: .75rem; }
.biz-info a { word-break: break-word; }
.biz-ic { width: 22px; text-align: center; flex: none; }
.biz-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-social { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text); }
.biz-social:hover { border-color: var(--accent); color: var(--accent); }
.biz-sources { font-size: .9rem; color: var(--muted); }
@media (min-width: 760px) {
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .biz-desc, .biz-sources { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .biz-head { margin-top: -36px; padding: 0 6px; }
  .biz-logo { width: 76px; height: 76px; border-radius: 18px; }
  .biz-logo-letter { font-size: 32px; }
  .biz-id { padding-top: 0; flex-basis: 100%; }
  .biz-name { font-size: 1.3rem; }
}

/* Franja de negocio en el listado */
.biz-mini { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); }
.biz-mini-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.biz-mini .biz-logo-letter { font-size: 18px; }
.biz-mini small { display: block; color: var(--muted); }

/* Formulario */
.biz-kind { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.biz-kind label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.biz-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; margin: 0 0 12px; }
.biz-form legend { font-weight: 700; padding: 0 6px; }
.biz-form .row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.biz-form .row > label { flex: 1 1 200px; }
.biz-social-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
.biz-logo-prev { max-width: 120px; border-radius: 16px; }
.biz-logo { align-self: flex-start; position: relative; }
.biz-actions { align-self: flex-end; }
.form .biz-kind label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.form .biz-kind input[type=radio] { width: auto; margin: 0; }
.biz-sources summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.biz-sources summary::-webkit-details-marker { display: none; }
.biz-sources summary::after { content: "▾"; margin-left: auto; transition: transform .2s; }
.biz-sources[open] summary::after { transform: rotate(180deg); }
.biz-sources summary small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.biz-sources[open] summary { margin-bottom: 8px; }
.biz-sources a { word-break: break-all; }

/* Logo circular y selector de tema */
.biz-logo, .biz-mini-logo, .biz-logo-prev { border-radius: 50%; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.theme-toggle:hover { border-color: var(--accent); }

/* ---------- Negocios v2: pestañas, productos, promos, reseñas, chat, directorio, panel ---------- */
.pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.biz-line { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.biz-rating { text-decoration: none; color: var(--text); }
.stars { color: #f5a400; letter-spacing: 1px; }
.stars-off { color: var(--line); }
.biz-status { font-size: .85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.biz-status-open { background: var(--ok-bg); color: var(--ok-text); }
.biz-status-closed { background: var(--err-bg); color: var(--err-text); }
.biz-mini-status { margin-left: auto; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.biz-actions { align-items: center; }
.biz-manage-btn { border-color: var(--accent); color: var(--accent); }

/* Compartir */
.biz-share { position: relative; display: inline-block; }
.biz-share > summary { list-style: none; cursor: pointer; }
.biz-share > summary::-webkit-details-marker { display: none; }
.biz-share-menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 6px; display: grid; }
.biz-share-menu a, .biz-share-menu button { display: block; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.biz-share-menu a:hover, .biz-share-menu button:hover { background: var(--accent-soft); }
.biz-share-whatsapp::before { content: "🟢 "; } .biz-share-facebook::before { content: "📘 "; } .biz-share-x::before { content: "✖️ "; }
.biz-share-telegram::before { content: "✈️ "; } .biz-share-linkedin::before { content: "💼 "; } .biz-share-email::before { content: "✉️ "; } .biz-share-ig::before { content: "📸 "; }
.biz-share-sm > summary { padding: 4px 10px; font-size: .85rem; }
.biz-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 100; font-size: .9rem; transition: opacity .4s; }
.biz-toast.out { opacity: 0; }

/* Pestañas */
.biz-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 16px 0 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.biz-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.biz-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.biz-js .biz-pane { display: none; }
.biz-js .biz-pane.on { display: block; }
.biz-pane { padding-top: 14px; }
.biz-wide { grid-column: 1 / -1; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.biz-tag { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 10px; font-size: .85rem; font-weight: 600; }
.biz-promo-hero { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); text-decoration: none; color: var(--text); }
.biz-promo-hero span:last-child { margin-left: auto; color: var(--accent); font-weight: 700; }
.biz-badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; }
.biz-updates { display: grid; gap: 12px; }
.biz-update { border-left: 3px solid var(--accent); padding-left: 10px; }
.biz-update img, .feed-update-img { max-width: 100%; border-radius: 10px; margin-top: 6px; display: block; }
.biz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.biz-gallery figure { margin: 0; }
.biz-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.biz-gallery figcaption { font-size: .8rem; color: var(--muted); padding-top: 2px; }
.biz-gallery-mini { grid-template-columns: repeat(4, 1fr); }
.biz-claim { margin: 0; }
.biz-hours { width: 100%; border-collapse: collapse; }
.biz-hours th { text-align: left; font-weight: 500; padding: 4px 0; }
.biz-hours td { text-align: right; color: var(--muted); }
.biz-hours tr.today th, .biz-hours tr.today td { color: var(--accent); font-weight: 700; }
.biz-map { width: 100%; height: 260px; border: 0; border-radius: 10px; }

/* Productos */
.biz-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.biz-product { border: 1px solid var(--line); border-radius: var(--radius); overflow: visible; display: flex; flex-direction: column; background: var(--card); }
.biz-product > img, .biz-product-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: center; justify-content: center; font-size: 40px; background: var(--accent-soft); }
.biz-product-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.biz-product-body h3 { margin: 0; font-size: 1rem; }
.biz-product-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.biz-product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.biz-price { font-weight: 800; color: var(--accent); font-size: 1.1rem; }
.biz-price small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.biz-product:target { outline: 2px solid var(--accent); }

/* Promos */
.biz-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.biz-promo { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 14px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.biz-promo h3 { margin: 0; }

/* Reseñas */
.biz-reviews { display: grid; gap: 12px; }
.biz-rating-big { display: flex; align-items: center; gap: 10px; }
.biz-rating-big strong { font-size: 2.2rem; }
.biz-rating-big .stars { font-size: 1.3rem; }
.star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input legend { float: left; width: 100%; font-weight: 700; margin-bottom: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; color: var(--line); cursor: pointer; margin: 0 !important; display: inline !important; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a400; }
.biz-review { border-top: 1px solid var(--line); padding-top: 10px; }
.biz-review .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.biz-reply { margin: 6px 0 0 16px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: .92rem; }

/* Voucher */
.voucher-wrap { max-width: 520px; margin: 0 auto; }
.voucher { background: #fff; color: #1d1b22; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 30px rgba(0,0,0,.15); border: 2px solid #fd5501; }
.voucher-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fd5501; color: #fff; }
.voucher-top small { display: block; opacity: .9; }
.voucher-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.voucher-state { margin-left: auto; background: #fff; color: #1e6b3a; font-weight: 800; border-radius: 999px; padding: 3px 10px; font-size: .85rem; }
.voucher-used .voucher-state { color: #6b6775; } .voucher-cancelled .voucher-state { color: #c92a2a; }
.voucher-used .voucher-main, .voucher-cancelled .voucher-main { opacity: .55; }
.voucher-main { padding: 16px 18px 6px; }
.voucher-main h1 { margin: 6px 0; font-size: 1.6rem; }
.voucher-badge { font-size: 1.1rem; }
.voucher-cut { border-top: 2px dashed #e4e1da; margin: 10px 0; position: relative; }
.voucher-bottom { display: flex; gap: 16px; align-items: center; padding: 6px 18px 12px; }
.voucher-qr { background: #fff; padding: 6px; border: 1px solid #e4e1da; border-radius: 10px; line-height: 0; flex: none; }
.voucher-code { font: 800 1.7rem/1.1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: #fd5501; margin: 2px 0 4px; }
.voucher-terms { font-size: .8rem; color: #6b6775; padding: 0 18px; margin: 0 0 6px; }
.voucher-foot { font-size: .75rem; color: #6b6775; text-align: center; margin: 0; padding: 8px; background: #f4f3ef; }
.voucher-actions, .ficha-toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }

/* Chat */
.chat-card { max-width: 760px; margin: 0 auto; padding: 0 !important; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.chat-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.chat-log { height: min(60vh, 520px); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-empty { padding: 24px 16px; text-align: center; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 16px; position: relative; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.mine a { color: #fff; }
.msg.theirs { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: .7rem; opacity: .75; text-align: right; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; margin: 0; }
.chat-list { list-style: none; padding: 0; margin: 0; }
.chat-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.chat-list li a > span:nth-child(2) { min-width: 0; flex: 1; }
.chat-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nav-msgs { position: relative; text-decoration: none; }
.nav-msgs .pill { position: absolute; top: -6px; right: -10px; }

/* Siguiendo */
.feed-update-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-bottom: 8px; }
.feed-update-head small { display: block; }
.biz-follow-list li { margin: 6px 0; }
.biz-follow-list a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.biz-follow-list .biz-mini-logo { width: 28px; height: 28px; font-size: 13px; }

/* Directorio */
.dir-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dir-title h1 { margin: 0; }
.dir-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.dir-filters input[type=search] { flex: 1 1 240px; }
.dir-filters select, .dir-filters input[type=search] { margin: 0; width: auto; }
.chip { display: inline-flex !important; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500 !important; cursor: pointer; margin: 0 !important; }
.chip input { width: auto !important; margin: 0 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.dir-card { padding: 0 !important; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .15s; }
.dir-card:hover { transform: translateY(-2px); }
.dir-cover { height: 110px; background: linear-gradient(135deg, var(--accent), #ffb37a) center / cover; position: relative; }
.dir-cover .biz-badge { position: absolute; top: 8px; right: 8px; }
.dir-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.dir-logo { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--card); object-fit: cover; margin-top: -30px; background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.dir-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }

/* Panel */
.manage { display: grid; gap: 14px; }
.manage-title { display: flex; align-items: center; gap: 12px; }
.manage-title h1 { margin: 0; font-size: 1.4rem; }
.manage-head .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.manage-nav { position: sticky; top: 56px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.manage-nav a { white-space: nowrap; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.manage-nav a:hover { background: var(--accent-soft); }
.manage section[id] { scroll-margin-top: 110px; }
.progress-wrap { display: flex; align-items: center; gap: 10px; }
.progress { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.checklist a { text-decoration: none; color: var(--text); }
.checklist li.ok a { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; }
.stat small { color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 14px; }
.spark span { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .8; }
.hours-edit { border-collapse: collapse; width: 100%; max-width: 520px; }
.hours-edit th, .hours-edit td { padding: 4px 6px; text-align: left; }
.hours-edit input[type=time] { margin: 0; }
.hours-edit input[type=checkbox] { width: auto; }
.manage-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.manage-gallery figure { margin: 0; }
.manage-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.manage-add > summary { list-style: none; display: inline-block; margin-bottom: 10px; }
.manage-add > summary::-webkit-details-marker { display: none; }
.manage-list { display: grid; gap: 8px; margin-top: 10px; }
.manage-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; flex-wrap: wrap; }
.manage-item.off { opacity: .6; }
.manage-item > img, .manage-noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); font-size: 22px; }
.manage-item > div:nth-child(2) { flex: 1; min-width: 160px; }
.manage-item-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.manage-item-actions details[open] { flex-basis: 100%; }
.voucher-check input { flex: 1 1 180px; margin: 0; font-family: ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; font-size: .85rem; }
.check input { width: auto !important; margin: 0 !important; }

/* Alta guiada */
.wiz-preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: var(--card); }
.wiz-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 10px; }
.wiz-cover { aspect-ratio: auto; height: 90px; border-radius: 0; background-size: cover; background-position: center; }
.wiz-head { display: flex; gap: 10px; align-items: flex-end; padding: 0 12px; margin-top: -26px; }
.wiz-head strong, .wiz-head small, .wiz-head em { display: block; }
.wiz-head em { font-size: .85rem; }
.wiz-logo { width: 60px !important; height: 60px !important; font-size: 24px !important; border-width: 3px !important; background-size: cover; background-position: center; }
.wiz-logo.has-img { color: transparent; }
.wiz-desc, .wiz-contact { padding: 6px 12px 0; }
.wiz-contact { padding-bottom: 10px; }
.wiz-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wiz-nav { display: flex; justify-content: space-between; margin: 4px 0 14px; }

@media print {
  .topbar, .foot, .no-print, .ficha-toolbar, .voucher-actions, .flash { display: none !important; }
  body { background: #fff !important; }
  .ficha, .voucher { box-shadow: none !important; }
}
@media (max-width: 520px) {
  .biz-gallery-mini { grid-template-columns: repeat(2, 1fr); }
  .msg { max-width: 88%; }
  .biz-share-menu { right: auto; left: 0; }
}
.dir-logo, .wiz-logo { position: relative; z-index: 1; }
.dir-logo.biz-logo-letter { background: var(--accent); color: #fff; }
.biz-status::before { content: '●'; margin-right: 5px; }

/* Iconos de compartir / exportar */
.biz-share-menu a::before, .biz-share-menu button::before { content: none !important; }
.biz-share-menu a, .biz-share-menu button { display: flex !important; align-items: center; gap: 10px; }
.biz-share-menu i { width: 20px; text-align: center; font-size: 17px; }
.biz-share > summary i, .ficha-toolbar .btn i { margin-right: 4px; }
.biz-share-whatsapp i { color: #25D366; } .biz-share-facebook i { color: #1877F2; } .biz-share-x i { color: var(--text); }
.biz-share-telegram i { color: #26A5E4; } .biz-share-linkedin i { color: #0A66C2; } .biz-share-email i { color: var(--muted); }
.biz-share-ig i { color: #E4405F; } .biz-share-menu .fa-link { color: var(--muted); }
.biz-export .fa-file-pdf { color: #E5252A; } .biz-export .fa-code { color: #4c6ef5; } .biz-export .fa-print { color: var(--muted); }
.ficha-toolbar { margin: 18px 0 8px; }
.ficha-toolbar .biz-share-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }

/* Botón de tema con ícono */
.theme-toggle { width: 36px; height: 36px; font-size: 16px; transition: background .2s, border-color .2s, transform .3s; }
.theme-toggle .fa-sun { color: #f5a400; }
.theme-toggle .fa-moon { color: #5b6bd6; }
.theme-toggle:hover { background: var(--accent-soft); transform: rotate(20deg); }

/* ---------- Seguridad, reportes y páginas legales ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.report { display: inline-block; position: relative; }
.report > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .85rem; }
.report > summary::-webkit-details-marker { display: none; }
.report > summary:hover { color: var(--danger); }
.report[open] > summary { color: var(--danger); }
.report-form { position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); width: min(320px, 85vw); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 12px; display: grid; gap: 6px; }
.report-form small { display: block; }
.report-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 10px 0; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-content { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--danger); background: var(--err-bg); border-radius: 0 8px 8px 0; white-space: normal; word-break: break-word; }
.nav-reports { position: relative; text-decoration: none; }
.nav-reports .pill { position: absolute; top: -6px; right: -10px; background: var(--danger); }
.legal { max-width: 820px; margin: 0 auto; line-height: 1.6; }
.legal h2 { font-size: 1.1rem; margin-top: 1.4em; }
.legal li { margin: .3em 0; }
.recovery-card { text-align: center; }
.recovery-card ul { text-align: left; }
.recovery-code { font: 800 1.6rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; padding: 16px; margin: 14px auto; border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); color: var(--accent); max-width: 420px; user-select: all; }
.recovery-card .row { justify-content: center; display: flex; gap: 8px; margin-bottom: 10px; }
.terms-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.terms-check input { width: auto !important; margin-top: 4px !important; }
.foot-links a { margin: 0 6px; }
@media print { .recovery-card .btn { display: none; } }

.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.slug-input > span { padding: 8px 10px; background: var(--accent-soft); color: var(--muted); white-space: nowrap; }
.slug-input input { border: 0 !important; margin: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; }

/* ---------- Turnos y administrador de productos ---------- */
.bk-wrap, .pm-wrap { max-width: 900px; margin: 0 auto; }
.pm-wrap { max-width: 1180px; }
.bk-top { justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; display: flex; }
.bk-top h1 { margin: 0 0 4px; }
.bk-biz { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-bottom: 6px; }
.bk-biz img, .bk-biz .biz-logo-letter { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--accent); color: #fff; }
.bk-biz span { display: flex; flex-direction: column; line-height: 1.25; }
.bk-info { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; margin: 0 0 14px; }
.bk-step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 2px; }
.bk-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bk-service { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.bk-service:hover { border-color: var(--accent); }
.bk-service.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.bk-service small { color: var(--accent); font-weight: 600; }
.bk-service .muted { font-size: .85rem; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.bk-day { flex: 0 0 auto; width: 62px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; line-height: 1.2; }
.bk-day strong { font-size: 1.3rem; }
.bk-day small { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.bk-day:hover { border-color: var(--accent); }
.bk-day.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-day.on small { color: rgba(255,255,255,.85); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-bottom: 14px; }
.bk-slot { position: relative; margin: 0 !important; }
.bk-slot input { position: absolute; opacity: 0; pointer-events: none; }
.bk-slot span { display: block; text-align: center; padding: 9px 4px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-slot span:hover { border-color: var(--accent); }
.bk-slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-slot.full span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.bk-form textarea { width: 100%; }
.bk-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-top: 10px; border-radius: 12px; background: var(--accent-soft); }
.bk-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bk-item-date { min-width: 110px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-item-main { flex: 1 1 260px; min-width: 0; word-break: break-word; }
.bk-item-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bk-item-actions form.inline { display: inline-flex; gap: 6px; align-items: center; }
.bk-item-old { opacity: .75; }
.bk-st { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; background: var(--line); color: var(--muted); }
.bk-st-pending { background: #fff3cd; color: #8a5a00; }
.bk-st-ok { background: #d9f5e3; color: #146c3a; }
.bk-st-done { background: #dde8ff; color: #2847a0; }
:root[data-theme="dark"] .bk-st-pending { background: #4a3a10; color: #ffd76a; }
:root[data-theme="dark"] .bk-st-ok { background: #123d27; color: #7ee2a8; }
:root[data-theme="dark"] .bk-st-done { background: #1d2c55; color: #a9c0ff; }
.bk-on { color: #1f9d55; font-weight: 700; }
.bk-off { color: var(--danger); font-weight: 700; }
.bk-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; position: sticky; top: 0; z-index: 5; background: var(--bg, transparent); padding: 6px 0; }
.bk-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-size: .9rem; background: var(--card); }
.bk-nav a:hover { border-color: var(--accent); color: var(--accent); }
.bk-h3 { font-size: 1rem; margin: 16px 0 4px; }
.bk-day-label { margin-top: 12px; font-weight: 700; color: var(--accent); font-size: .9rem; }
.bk-day-label + .bk-item { border-top: 0; }
.bk-more { display: inline-block; position: relative; }
.bk-more > summary { list-style: none; }
.bk-more > summary::-webkit-details-marker { display: none; }
.bk-more[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; width: min(280px, 80vw); }
.bk-past > summary { cursor: pointer; font-weight: 600; margin-top: 14px; }
.bk-past > summary h2 { display: inline; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.bk-grid small { display: block; font-weight: 400; }
.bk-switch, .bk-inline-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.bk-switch input, .bk-inline-check input, .bk-radio input { width: auto !important; margin-top: 4px !important; }
.bk-radio { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.bk-radio label { display: flex !important; gap: 8px; font-weight: 400 !important; margin: 6px 0; }
.bk-svc { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.bk-svc.off { opacity: .65; }
.bk-svc > summary { cursor: pointer; list-style: none; }
.bk-svc > summary::-webkit-details-marker { display: none; }
.bk-svc .bk-edit { float: right; color: var(--accent); font-size: .85rem; }
.bk-svc-form { margin: 10px 0; }
.bk-hours { display: grid; gap: 6px; margin-bottom: 12px; }
.bk-hours-row { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 10px; align-items: center; }
.bk-hours-row span { display: flex; align-items: center; gap: 6px; }
.bk-hours-row input[type=time] { width: auto; min-width: 0; flex: 1; }
.bk-block-form { align-items: end; margin-top: 12px; }
.bk-start ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
.bk-owner-note { display: block; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 12px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.biz-book { background: var(--accent-soft) !important; border-color: var(--accent) !important; color: var(--accent) !important; font-weight: 700; }
@media (max-width: 640px) {
  .bk-hours-row { grid-template-columns: 1fr 1fr; }
  .bk-hours-row > label { grid-column: 1 / -1; }
  .bk-item-date { min-width: 0; width: 100%; }
}

/* Administrador de productos */
.pm-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 6; padding: 10px 12px !important; }
.pm-toolbar input[type=search] { flex: 1 1 220px; }
.pm-toolbar select { width: auto; }
.pm-toolbar .btn-primary { margin-left: auto; }
.pm-table-wrap { overflow-x: auto; padding: 0 !important; }
.pm-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.pm-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pm-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-table input, .pm-table select, .pm-table textarea { width: 100%; margin: 0 !important; padding: 6px 8px; font-size: .92rem; }
.pm-table .pm-name { font-weight: 600; }
.pm-table .pm-desc { margin-top: 4px !important; resize: vertical; min-height: 32px; font-size: .85rem; color: var(--muted); }
.pm-c-img { width: 52px; }
.pm-c-img img, .pm-c-img .manage-noimg { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.pm-c-kind { width: 120px; }
.pm-c-price { width: 140px; }
.pm-c-note { width: 130px; }
.pm-c-on, .pm-c-del { width: 56px; text-align: center; }
.pm-c-on input { width: 18px !important; height: 18px; margin-top: 8px !important; }
.pm-c-sort { width: 76px; }
.pm-money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding-left: 8px; background: var(--card); }
.pm-money input { border: 0 !important; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; }
.pm-money:focus-within { outline: 2px solid var(--accent); }
.pm-del input { display: none; }
.pm-del span { cursor: pointer; opacity: .45; display: inline-block; padding: 6px; border-radius: 8px; }
.pm-del span:hover { opacity: 1; }
.pm-del input:checked + span { opacity: 1; background: var(--err-bg); }
.pm-x { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 6px; }
tr.pm-changed td { background: var(--accent-soft); }
tr.pm-changed td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.pm-deleting td { background: var(--err-bg); opacity: .7; }
tr.pm-deleting .pm-name { text-decoration: line-through; }
tr.pm-row-new td { background: rgba(31,157,85,.07); }
.pm-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; }
.pm-empty { padding: 12px; margin: 0; }
#pm-dirty { font-weight: 600; color: var(--accent); }
.btn.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.btn-danger:hover { background: var(--err-bg); }
.bk-switch, .bk-inline-check, .bk-radio label { flex-direction: row !important; align-items: flex-start !important; }
.bk-switch input, .bk-inline-check input, .bk-radio input { flex: 0 0 auto; }
.bk-radio label span, .bk-switch span { flex: 1; }
input[type="number"], input[type="date"], input[type="time"], input[type="search"] {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400; color-scheme: light dark;
}
:root[data-theme="dark"] input[type="date"], :root[data-theme="dark"] input[type="time"] { color-scheme: dark; }
.pm-table .pm-desc { overflow: hidden; resize: none; }
