/* Sharebettr (PS-SHARE7): la pantalla propia para el móvil sobre el motor del ERP. La letra del logo
 * (Comfortaa; Pedro 2-nov: la manuscrita era «demasiado comic sans») y el azul de «share». Claro u oscuro
 * con el tema del panel (data-theme), que pone la marca de lo que se ve. */
.sb-app { --sb-blue: #4176a2; width: 100%; box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 14px 16px 120px; font-family: Comfortaa, 'Plus Jakarta Sans', system-ui, sans-serif; }
.sb-app h1, .sb-app h2.sb-h { font-family: Comfortaa, system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.sb-app h1 { font-size: 1.7rem; line-height: 1.15; margin: 6px 0 4px; }
.sb-app h2.sb-h { font-size: 1.1rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.sb-sub { color: var(--sk-muted); margin: 0 0 12px; font-size: .92rem; }
.sb-scopes { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; }
.sb-chip { border: 1px solid var(--sk-line); background: transparent; color: inherit; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.sb-chip.on { background: var(--sb-blue); border-color: var(--sb-blue); color: #fff; }
.sb-chip b { font-weight: 700; opacity: .8; }
.sb-search { position: relative; margin: 6px 0 14px; }
.sb-search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 15px 16px 15px 46px; border-radius: 16px; border: 1px solid var(--sk-line); background: var(--wa-surface, #fff); color: inherit; }
.sb-search .sk-i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--sk-muted); }
.sb-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sb-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; border-radius: 18px; border: 1px solid var(--sk-line); background: var(--wa-surface, #fff); color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.sb-big.main { background: var(--sb-blue); border-color: var(--sb-blue); color: #fff; }
.sb-big:active { transform: scale(.98); }
.sb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.sb-thing { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--sk-line); border-radius: 16px; overflow: hidden; background: var(--wa-surface, #fff); color: inherit; font: inherit; cursor: pointer; padding: 0; }
.sb-thing .ph { aspect-ratio: 1 / 1; background: var(--sk-soft); display: flex; align-items: center; justify-content: center; color: var(--sk-muted); }
.sb-thing .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-thing .tx { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 3px; }
.sb-thing strong { font-size: .92rem; line-height: 1.25; }
.sb-thing small { font-size: .78rem; color: var(--sk-muted); }
.sb-thing .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 3px; }
.sb-thing .pr { font-weight: 700; font-size: .92rem; }
.sb-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sb-place { display: flex; flex-direction: column; border: 1px solid var(--sk-line); border-radius: 18px; overflow: hidden; background: var(--wa-surface, #fff); color: inherit; text-decoration: none; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.sb-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; gap: 2px; background: var(--sk-line); }
.sb-mosaic span { background: var(--sk-soft); display: flex; align-items: center; justify-content: center; color: var(--sk-muted); overflow: hidden; }
.sb-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-mosaic.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.sb-place .tx { padding: 10px 12px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sb-place strong { font-size: 1rem; }
.sb-place small { color: var(--sk-muted); font-size: .8rem; white-space: nowrap; }
.sb-crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .88rem; color: var(--sk-muted); margin: 4px 0 2px; }
.sb-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.sb-empty { text-align: center; color: var(--sk-muted); padding: 30px 10px; border: 1px dashed var(--sk-line); border-radius: 16px; }
.sb-list { display: flex; flex-direction: column; gap: 10px; }
.sb-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--sk-line); border-radius: 16px; padding: 10px; background: var(--wa-surface, #fff); }
.sb-item .ph { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--sk-soft); flex: none; display: flex; align-items: center; justify-content: center; color: var(--sk-muted); }
.sb-item .ph img { width: 100%; height: 100%; object-fit: cover; }
button.sb-item { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
button.sb-item:hover { border-color: var(--sb-blue, #4176a2); }
.sb-item .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-item small { color: var(--sk-muted); }
.sb-item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sb-tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--sk-soft); color: var(--sk-muted); }
.sb-tag.lent { background: rgba(245, 158, 11, .18); color: #b45309; }
html[data-theme="dark"] .sb-tag.lent { color: #fbbf24; }
.sb-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 62px; height: 62px; border-radius: 999px; border: 0; background: var(--sb-blue); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 420px) { .sb-grid { grid-template-columns: repeat(2, 1fr); } .sb-places { grid-template-columns: repeat(2, 1fr); } }
/* Reservada, prestada o vendida, encima de la foto (Pedro 2-nov) */
.sb-thing .ph, .sb-x .ph { position: relative; }
.sb-badge { position: absolute; top: 8px; left: 8px; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: rgba(180, 83, 9, .92); box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.sb-badge.sold { background: rgba(28, 25, 23, .85); }
/* Explorar y Me gustan (PS-SHARE8) */
.sb-x { cursor: default; }
.sb-heart { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: #9ca3af; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.sb-heart.on { color: #e11d48; }
.sb-heart.on svg { fill: currentColor; }
.sb-shop { font-size: .78rem; color: var(--sk-muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.sb-one { max-width: 420px; margin: 0 auto; }
.sb-one .sb-thing .ph { aspect-ratio: 4 / 5; }
.sb-one-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sb-gone .sb-thing { opacity: .62; }
.sb-gone .sb-thing:hover, .sb-gone .sb-thing:focus-within { opacity: 1; }

/* La barra de abajo del móvil (PS-SHARE10): para el pulgar, como una app. Sustituye al menú
 * sándwich de la plataforma; «Más» abre una hoja con lo demás del menú. */
.sb-tabs { display: none; }
@media (max-width: 767px) {
  .sb-has-tabs .wactivity-nav-mobile-btn { display: none !important; }
  /* «Hoy» y la burbuja de ayuda, por encima de la barra. */
  .sb-has-tabs .wa-h6, .sb-has-tabs .wa-sb-root { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  .sb-has-tabs .sb-app { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .sb-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: flex-end; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--wa-surface, #fff); border-top: 1px solid var(--sk-line, #e5e7eb);
    font-family: Comfortaa, 'Plus Jakarta Sans', system-ui, sans-serif; }
  .sb-tabs > a, .sb-tabs > button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center;
    border: 0; background: none; color: var(--sk-muted, #6b7280); font: inherit; font-size: .72rem; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .sb-tabs > .on { color: var(--sb-blue, #4176a2); font-weight: 700; }
  .sb-tabs > .main { flex: none; width: 64px; height: 64px; margin: -22px 6px 0; border-radius: 50%; background: var(--sb-blue, #4176a2); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
  .sb-tabs > .main span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.sb-sheet-wrap { position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.sb-sheet { width: 100%; max-height: 80vh; overflow-y: auto; background: var(--wa-surface, #fff); color: var(--wa-ink, #111); border-radius: 22px 22px 0 0;
  padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px)); font-family: Comfortaa, 'Plus Jakarta Sans', system-ui, sans-serif; }
.sb-sheet .grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--sk-line, #d1d5db); margin: 4px auto 10px; }
.sb-sheet-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 14px; color: inherit; text-decoration: none; min-height: 52px; }
.sb-sheet-row:active, .sb-sheet-row:hover { background: var(--sk-soft, #f3f4f6); }
.sb-sheet-row svg { width: 22px; height: 22px; flex: none; color: var(--sb-blue, #4176a2); }
.sb-sheet-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-sheet-row small { color: var(--sk-muted, #6b7280); font-size: .78rem; }
.sb-sheet .sb-scopes { padding: 10px 8px 0; }

/* La Bandeja (PS-SHARE11): cada aviso con lo que se puede hacer debajo. */
.sb-inbox { align-items: flex-start; }
.sb-inbox .tx small { white-space: normal; }
.sb-inbox .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; justify-content: flex-start; }
.sb-count:empty { display: none; }
.sb-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 700; }
.sb-tabs .sb-count { position: absolute; transform: translate(12px, -14px); }
.sb-tabs > button { position: relative; }

/* Mis fotos (PS-SHARE14 F2): el carrete en rejilla; tocar elige; cada grupo, una fila. */
.sb-phs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.sb-ph { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sk-soft, #f3f4f6); cursor: pointer; }
.sb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-ph.on { border-color: var(--sb-blue, #4176a2); box-shadow: 0 0 0 2px var(--sb-blue, #4176a2) inset; }
.sb-ph.on::after { content: '✓'; position: absolute; top: 4px; right: 6px; color: #fff; background: var(--sb-blue, #4176a2); border-radius: 50%; width: 20px; height: 20px; font-size: 13px; line-height: 20px; text-align: center; }
.sb-group { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--sk-line, #e5e7eb); border-radius: 16px; margin-bottom: 10px; background: var(--wa-surface, #fff); }
.sb-group .sk-btn { align-self: flex-start; }
.sb-chip input[type=file] { display: none; }

/* Cuenta sin cara (recién creada, PS-SHARE17): sin el selector de negocio de la barra. */
body.sb-noscope #wa-nav-scope { display: none; }

/* Bienvenida de la cuenta sin cara (PS-SHARE17, 9-nov): el estado de la cuenta y «Verifícate para…». */
.sb-status { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--sk-soft, #f5f5f4); color: var(--sk-muted, #78716c); }
.sb-status.ok { background: #dcfce7; color: #166534; }
.sb-status.wait { background: #fef3c7; color: #92400e; }
.sb-status.no { background: #fee2e2; color: #991b1b; }
html[data-theme="dark"] .sb-status.ok { background: rgba(34, 197, 94, .18); color: #86efac; }
html[data-theme="dark"] .sb-status.wait { background: rgba(245, 158, 11, .18); color: #fcd34d; }
html[data-theme="dark"] .sb-status.no { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.sb-card { border: 1px solid var(--sk-line); border-radius: 18px; padding: 14px 16px 16px; margin-top: 18px; background: var(--wa-surface, #fff); }
.sb-card h2.sb-h { margin-top: 0; }
.sb-why { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sb-why li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; line-height: 1.35; }
.sb-why .sk-i { flex: none; margin-top: 2px; color: var(--sb-blue); }
.sb-ta { width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sk-line); background: var(--wa-surface, #fff); color: inherit; margin-top: 10px; resize: vertical; }
