/* ==========================================================================
   tiencol · capa de interfaz (se carga después de app.css)
   Tipografía del sistema (como Pinterest/Instagram), pesos suaves, menú lateral
   limpio con panel «Herramientas», accesos redondeados del negocio, resumen,
   buscadores y el ecosistema animado del acceso.
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  --bs-body-font-family: var(--font-sans);
  --ink: #111111;
  --ink-2: #3A3A3A;
  --muted: #6B6B6B;
  --faint: #8E8E8E;
  --line: #E9E9E9;
  --line-strong: #D6D6D6;
  --graphite: #33363D;
  --graphite-2: #44474F;
  --soft: #F1F1F1;
  --soft-2: #E9E9E9;
  --brand-navy: #111111;
}

/* ---------- Tipografía: la del sistema, pesos normales ---------- */
body { font-family: var(--font-sans); font-size: 15px; line-height: 1.5; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .page-title, .mod-title, .section-title, .ov-h, .auth-title { letter-spacing: -.01em; }
.page-title, .mod-title, .auth-title { font-weight: 600; }
.mod-title { font-size: 1.5rem; }
.section-title { font-size: 1.05rem; font-weight: 600; }
strong, b { font-weight: 600; }
.text-muted, .small.text-muted { color: var(--muted) !important; }
.ov-stat-value, .kpi-value, .ov-order-total, .ov-week-sum strong { font-variant-numeric: tabular-nums; }

/* ---------- Botones: oscuro para lo principal, claro para lo secundario ---------- */
.btn { font-weight: 500; }
.btn-ink { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--graphite); --bs-btn-hover-border-color: var(--graphite); --bs-btn-active-bg: var(--graphite-2); --bs-btn-active-border-color: var(--graphite-2); }
.btn-light-ink { --bs-btn-color: var(--ink); --bs-btn-bg: var(--soft); --bs-btn-border-color: var(--soft); --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--soft-2); --bs-btn-hover-border-color: var(--soft-2); --bs-btn-active-bg: #E1E1E1; --bs-btn-active-border-color: #E1E1E1; --bs-btn-active-color: var(--ink); border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-light-ink:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* Segmentados: activo en gris claro (no negro) */
.seg-tab.is-active, .segmented-item.is-active, .segmented-item:has(input:checked) { background: var(--soft-2); color: var(--ink); font-weight: 600; box-shadow: none; }
.seg-tab:hover, .segmented-item:hover { background: var(--soft); }
.segmented-lg .segmented-item.is-active, .segmented-lg .segmented-item:has(input:checked) { background: #fff; }

/* ---------- Buscadores: fondo blanco con borde ---------- */
.page-app input[type="search"].form-control,
.page-app .mod-search .form-control,
.page-app .product-search .form-control {
  background: #fff; border: 1px solid #D6D6D6; border-radius: var(--r-pill); box-shadow: none;
}
.page-app input[type="search"].form-control:hover:not(:focus),
.page-app .product-search .form-control:hover:not(:focus),
.page-app .mod-search .form-control:hover:not(:focus) { background: #fff; border-color: #ABABAB; }
.page-app input[type="search"].form-control:focus,
.page-app .product-search .form-control:focus,
.page-app .mod-search .form-control:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.page-app .input-wrap.has-icon .input-icon { color: var(--muted); }
.view-toggle { background: #fff; border: 1px solid var(--line); }
.view-toggle-btn.is-active { background: var(--soft-2); box-shadow: none; }

/* ---------- Marca: el nombre «tiencol» ---------- */
.brand-logo { height: 26px; width: auto; }
.sidebar .brand-logo { height: 26px; }
.auth-header .brand-logo { height: 30px; }
.brand-icon { height: 24px; width: auto; }

/* ---------- Menú lateral (limpio, estilo Instagram) ---------- */
.sidebar { border-right: 1px solid var(--line); }
.sidebar-head { height: 72px; padding: 0 1.5rem; justify-content: flex-start; }
.sidebar-nav { padding: .25rem .75rem 1rem; }
.side-link { gap: .9rem; padding: .7rem .75rem; border-radius: 12px; font-size: .95rem; font-weight: 400; color: var(--ink); background: transparent; }
.side-link > i { width: auto; font-size: 1.3rem; color: var(--ink); }
.side-link > .ic { width: 1.4rem; height: 1.4rem; }
.side-link:hover { background: var(--soft); color: var(--ink); }
.side-link:hover > i { color: var(--ink); }
.side-link.is-active { background: transparent; color: var(--ink); font-weight: 600; }
.side-link.is-active:hover { background: var(--soft); }
.side-link.is-active > .ic { background-color: var(--ink); }
.side-group { margin-top: .9rem; }
.side-group-title { font-size: .78rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); padding: 0 .75rem .3rem; }
.side-group-title a { color: var(--muted); }
.side-business { padding-top: .5rem; padding-bottom: .5rem; }
.side-logo { width: 26px; height: 26px; border-radius: 50%; }
.side-logo-empty { font-size: .62rem; }
.side-tools-btn { width: 100%; border: 0; text-align: left; }
.side-tools-chev { margin-left: auto; width: 1rem !important; height: 1rem !important; color: var(--faint); background-color: var(--faint) !important; transition: transform var(--t-fast) var(--ease); }
.tools-open .side-tools-btn { background: var(--soft); font-weight: 600; }
.tools-open .side-tools-chev { transform: rotate(180deg); }
.side-plan { border-radius: 14px; }
.side-plan > i { color: var(--ink); }
.side-plan-cta { background: var(--graphite); font-weight: 500; }
.sidebar-foot { border-top: 0; }
@media (min-width: 992px) {
  .sidebar-mini .sidebar-head { justify-content: center; padding: 0; }
  .sidebar-mini .side-link > .ic { width: 1.4rem; height: 1.4rem; }
  .sidebar-mini .side-tools-chev { display: none; }
}

/* ---------- Panel «Herramientas» (como el menú «Crear» de Pinterest) ---------- */
.tools-panel { position: fixed; top: 0; bottom: 0; left: var(--sidebar-w); z-index: 1065; width: 380px; max-width: 100vw; background: #fff; border-right: 1px solid var(--line); box-shadow: 16px 0 40px rgba(0, 0, 0, .06); padding: 1.5rem 1.25rem; overflow-y: auto; opacity: 0; transform: translateX(-12px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.tools-open .tools-panel { opacity: 1; transform: none; }
.tools-backdrop { position: fixed; inset: 0; z-index: 1064; background: transparent; }
.tools-head { display: flex; align-items: center; justify-content: space-between; margin: 0 .25rem 1.25rem; }
.tools-title { margin: 0; font-size: 1.25rem; font-weight: 600; }
.tools-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--ink); font-size: 1.25rem; }
.tools-close:hover { background: var(--soft); }
.tools-list { display: grid; gap: .25rem; }
.tools-item { display: flex; align-items: center; gap: 1rem; padding: .7rem .6rem; border-radius: 16px; color: var(--ink); text-decoration: none; }
a.tools-item:hover { background: var(--soft); color: var(--ink); }
.tools-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.tools-icon { width: 60px; height: 60px; flex: none; border-radius: 16px; background: #EDEDEA; display: grid; place-items: center; font-size: 1.5rem; color: var(--ink); }
.tools-icon .ic { width: 1.55rem; height: 1.55rem; }
.tools-item.is-active .tools-icon { background: var(--ink); color: #fff; }
.tools-text { display: grid; gap: .1rem; min-width: 0; line-height: 1.35; }
.tools-text strong { font-size: .98rem; font-weight: 500; }
.tools-item.is-active .tools-text strong { font-weight: 600; }
.tools-text small { font-size: .84rem; color: var(--muted); }
.tools-item.is-soon { opacity: .6; cursor: default; }
.tools-text em { font-style: normal; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .4rem; margin-left: .3rem; border-radius: var(--r-pill); background: var(--soft); color: var(--muted); vertical-align: 2px; }
@media (max-width: 991.98px) {
  .tools-panel { left: 0; width: 100%; box-shadow: none; padding-top: 1.25rem; }
}

/* ---------- Barra superior ---------- */
.topbar { gap: .75rem; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.topbar-burger { width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; color: var(--ink); place-items: center; margin-left: -.35rem; }
.topbar-burger:hover { background: var(--soft); }
.topbar-burger .ic { width: 1.35rem; height: 1.35rem; }
.d-lg-inline-grid { display: none !important; }
@media (min-width: 992px) { .d-lg-inline-grid { display: inline-grid !important; } }
.crumbs { font-size: .9rem; }

/* ---------- Encabezado del negocio + accesos redondeados ---------- */
.biz-hero { margin-bottom: 1.5rem; }
.biz-hero-main { align-items: center; padding: 0 0 1rem; gap: .9rem; }
.biz-hero .biz-logo-lg { width: 56px; height: 56px; border-radius: 50%; }
.biz-hero-title .page-title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; }
.biz-hero-meta { font-size: .84rem; }
/* Fila de círculos alineada con el logo del negocio; en celular se desliza de lado */
.biz-nav { display: flex !important; flex-wrap: nowrap; align-items: flex-start; gap: .35rem; padding: .25rem 0 1rem !important; margin: 0; border-top: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; grid-template-columns: none; }
.biz-nav::-webkit-scrollbar { display: none; }
.biz-nav .biz-nav-item { flex: none; display: grid; justify-items: center; gap: .4rem; min-width: 68px; padding: .15rem .1rem; font-size: .76rem; font-weight: 400; color: var(--ink-2); }
.biz-nav > .biz-nav-item:first-child { justify-items: start; min-width: 56px; }
.biz-nav > .biz-nav-item:first-child .biz-nav-label { width: 56px; text-align: center; }
.biz-nav .biz-nav-icon { width: 56px; height: 56px; font-size: 1.25rem; background: var(--soft); color: var(--ink); }
.biz-nav .biz-nav-icon .ic { width: 1.35rem; height: 1.35rem; }
.biz-nav a.biz-nav-item:hover .biz-nav-icon, .biz-nav button.biz-nav-item:hover .biz-nav-icon { background: var(--soft-2); color: var(--ink); transform: none; }
.biz-nav .biz-nav-item.is-active { color: var(--ink); font-weight: 600; }
.biz-nav .biz-nav-item.is-active .biz-nav-icon { background: var(--graphite); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #C9CAD0; }
.biz-nav .biz-nav-badge { top: -2px; right: -4px; min-width: 20px; height: 20px; font-size: .66rem; font-weight: 600; border: 2px solid #fff; background: var(--ink); }
.biz-nav .biz-nav-badge.is-alert { background: #D97706; }
.biz-nav-more { margin-left: auto; flex: none; display: block !important; }
.biz-more .biz-nav-icon { background: var(--soft); }
.biz-more .biz-nav-item.is-active .biz-nav-icon { background: var(--graphite); color: #fff; }
@media (max-width: 767.98px) {
  .biz-hero { margin-bottom: 1.1rem; }
  .biz-nav { margin-right: -1rem; padding-right: 1rem !important; gap: .15rem; }
  .biz-nav-more { margin-left: 0; }
  .biz-nav .biz-nav-icon { width: 52px; height: 52px; }
  .biz-nav .biz-nav-item { min-width: 66px; font-size: .74rem; }
}

/* ---------- Tarjetas e indicadores comunes ---------- */
.panel { border-color: var(--line); border-radius: 16px; }
.ov-stat, .kpi { border-color: var(--line); border-radius: 16px; }
.ov-stat-label, .kpi-label { font-size: .78rem; font-weight: 500; color: var(--muted); }
.ov-stat-label .ic { width: .95rem; height: .95rem; }
.ov-stat-value, .kpi-value { font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em; }

/* ---------- Resumen ---------- */
.ov-stats { gap: .75rem; margin-bottom: .9rem; }
.ov-grid { gap: .9rem; margin-bottom: .9rem; }
@media (min-width: 992px) {
  .ov-grid-a { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; }
  .ov-grid-b { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}
.ov-col { gap: .9rem; }
.ov-card { padding: 1.15rem 1.25rem; }
.ov-h { font-size: .98rem; font-weight: 600; }
.ov-card-head { margin-bottom: .75rem; }
.ov-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.ov-link:hover { color: var(--ink); }
.ov-link .ic { width: .85rem; height: .85rem; }
.ov-sub { font-size: .76rem; color: var(--faint); }
.ov-count { min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: var(--r-pill); background: #FCEBD2; color: #8A4B00; font-size: .72rem; font-weight: 600; display: inline-grid; place-items: center; }
.ov-week-sum { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; }
.ov-week-sum strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.ov-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: var(--r-pill); }
.ov-chip.is-up { background: #E7F4EC; color: #1F6B3E; }
.ov-chip.is-down { background: #FBECEA; color: #A1301F; }
.ov-week-meta { margin: .2rem 0 1rem; font-size: .82rem; color: var(--muted); }
.ov-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; align-items: end; }
.ov-bars li { display: grid; justify-items: center; gap: .4rem; min-width: 0; }
.ov-bars svg { width: 100%; max-width: 44px; height: 112px; display: block; }
.ov-bar-bg { fill: var(--soft); }
.ov-bar { fill: #C9CCD3; }
.ov-bars li.is-today .ov-bar { fill: var(--graphite); }
.ov-bars li:hover .ov-bar { fill: var(--graphite-2); }
.ov-bars span { font-size: .72rem; color: var(--muted); }
.ov-bars li.is-today span { color: var(--ink); font-weight: 600; }
.ov-todo a { border-radius: 12px; }
.ov-todo-icon { border-radius: 11px; }
.ov-todo-icon.tone-info { background: var(--soft); color: var(--ink-2); }
.ov-orders a { gap: .7rem; padding: .65rem 0; }
.ov-order-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; font-size: .72rem; font-weight: 600; }
.ov-orders a:hover .ov-order-main strong { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ov-top { list-style: none; margin: 0; padding: 0; display: grid; }
.ov-top li { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .88rem; min-width: 0; }
.ov-top li:first-child { border-top: 0; padding-top: 0; }
.ov-top-rank { width: 24px; height: 24px; flex: none; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.ov-top li:first-child .ov-top-rank { background: var(--graphite); color: #fff; }
.ov-top-name { flex: 1; min-width: 0; }
.ov-top-qty { font-size: .76rem; color: var(--muted); }
.ov-top strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-share-link { background: #fff; border: 1px solid var(--line); }
.ov-share-btn .ic { width: .95rem; height: .95rem; }
@media (max-width: 767.98px) {
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-bars svg { height: 90px; }
  .ov-order-total { min-width: 0; }
}

/* ---------- Productos ---------- */
.product-toolbar { gap: .6rem; }
.product-toolbar .product-new { border-radius: var(--r-pill); }

/* ---------- Tienda ---------- */
.st-head { align-items: center; }
.st-link { background: #fff; border: 1px solid var(--line); }
.st-link .ic { color: var(--muted); }
.st-hero { gap: 1.25rem; }
.st-side { display: grid; gap: .9rem; align-content: start; }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; display: grid; gap: .9rem; }
.st-card .st-current { padding: 0; border: 0; background: none; }
.st-current-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--ink); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.st-current-text strong { font-size: 1rem; font-weight: 600; }
.st-current-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.st-current-actions .btn { width: 100%; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.st-current-actions form { display: block !important; }
.st-actions { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .35rem; display: grid; gap: 1px; }
.st-actions-title { margin: .45rem .65rem .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.st-actions .st-action { border: 0; border-radius: 12px; background: transparent; width: 100%; text-align: left; }
.st-actions .st-action:hover { background: var(--soft); }
.st-action-icon { background: var(--soft); border-radius: 10px; }
.st-action-icon .ic { width: 1rem; height: 1rem; }
.st-reset { margin: 0 .25rem; }
.site-tabs { margin-top: 1.5rem; }

/* ---------- Acceso: ecosistema animado ---------- */
@media (min-width: 992px) {
  .page-auth .auth-aside { background: #F4F4F2; border-left: 1px solid var(--line); padding: 3rem 2.5rem; overflow: hidden; }
  .page-auth .auth-aside-inner { max-width: 480px; width: 100%; }
}
.eco-kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .32rem .8rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.eco-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 3px rgba(43, 50, 66, .15); }
.eco-title { font-size: clamp(1.9rem, 2.6vw, 2.35rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .75rem; color: var(--ink); }
.eco-title span { color: var(--muted); }
.eco-sub { margin: 0 0 1.5rem; color: var(--muted); font-size: .95rem; max-width: 40ch; }

.auth-title { font-weight: 600; letter-spacing: -.02em; }
.st-card .st-current-actions { border: 0; padding: 0; margin: 0; }
.page-app .inv-filter .form-select, .page-app .mod-search .form-select { height: 44px; border-radius: var(--r-pill); border-color: #D3D3CF; background-color: #fff; }
.page-app .product-search .form-control { height: 44px; }
.kpi-link.is-active { border-color: var(--graphite); box-shadow: 0 0 0 1px var(--graphite); }
/* Deja ver el aro del círculo activo sin recortarse al deslizar */
.biz-nav { padding-left: 5px !important; margin-left: -5px; padding-top: 5px !important; }

/* r36 · logo más pequeño y accesos del negocio con más aire */
.brand-logo, .sidebar .brand-logo { height: 20px; }
.auth-header .brand-logo { height: 24px; }
.sidebar-head { height: 64px; }
.biz-hero-main { padding-bottom: 1.4rem; }
.biz-nav { gap: 1.1rem; padding-bottom: 1.25rem !important; }
.biz-nav .biz-nav-item { min-width: 60px; gap: .55rem; font-size: .78rem; color: var(--muted); }
.biz-nav .biz-nav-item.is-active { color: var(--ink); }
.biz-nav .biz-nav-icon { width: 50px; height: 50px; font-size: 1.15rem; }
.biz-nav .biz-nav-icon .ic { width: 1.25rem; height: 1.25rem; }
.biz-nav > .biz-nav-item:first-child { min-width: 50px; }
.biz-nav > .biz-nav-item:first-child .biz-nav-label { width: 50px; }
.biz-nav .biz-nav-badge { top: -3px; right: -5px; min-width: 19px; height: 19px; }
@media (max-width: 767.98px) {
  .biz-nav { gap: .7rem; }
  .biz-nav .biz-nav-icon { width: 48px; height: 48px; }
  .biz-nav .biz-nav-item { min-width: 58px; font-size: .74rem; }
}
.biz-nav { border-bottom: 0 !important; }
.biz-hero { border-bottom: 1px solid var(--line); }

/* ---------- r38 · Acceso: ecosistema animado (apps que orbitan y se unen en una sola pantalla) ---------- */
.auth-header .brand-logo { height: 20px; }
.brand-logo, .sidebar .brand-logo { height: 19px; }
.eco-stage { position: relative; height: 450px; max-width: 480px; margin: 0 auto 1.25rem; --t: 14s; }
.eco-stage > * { position: absolute; left: 50%; top: 50%; }
/* Anillos y líneas de conexión */
.eco-ring { width: 216px; height: 216px; margin: -108px 0 0 -108px; border-radius: 50%; border: 1px dashed #D2D2CE; animation: ecoRing var(--t) ease-in-out infinite; }
.eco-ring.is-outer { width: 380px; height: 356px; margin: -178px 0 0 -190px; border-style: solid; border-color: #E4E4E0; }
.eco-lines { width: 480px; height: 450px; margin: -225px 0 0 -240px; overflow: visible; animation: ecoLines var(--t) ease-in-out infinite; }
.eco-lines line { stroke: #C9CBD1; stroke-width: 1; stroke-dasharray: 3 5; animation: ecoDash 1.6s linear infinite; }
/* Pantalla final */
.eco-screen { width: 410px; height: 320px; margin: -160px 0 0 -205px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px rgba(17, 20, 28, .14); opacity: 0; transform: scale(.9); animation: ecoScreen var(--t) cubic-bezier(.2, .7, .2, 1) infinite; }
.eco-screen-bar { display: flex; align-items: center; height: 38px; padding: 0 12px 0 44px; border-bottom: 1px solid var(--line); }
.eco-screen-bar span { flex: 1; height: 22px; border-radius: 7px; background: var(--soft); font-size: .68rem; color: var(--muted); display: flex; align-items: center; padding: 0 .6rem; }
.eco-screen-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; }
.eco-screen-head strong { font-size: .82rem; font-weight: 600; }
.eco-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 600; color: #1F6B3E; background: #E7F4EC; padding: .18rem .55rem; border-radius: 999px; }
.eco-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22A06B; animation: livePulse 2s infinite; }
/* Núcleo */
.eco-hub { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 22px; background: var(--brand-navy); display: grid; place-items: center; z-index: 4; box-shadow: 0 14px 34px rgba(11, 18, 36, .3); animation: ecoHub3 var(--t) cubic-bezier(.2, .7, .2, 1) infinite; }
.eco-hub img { width: 38px; height: auto; }
.eco-hub::before, .eco-hub::after { content: ""; position: absolute; inset: -10px; border-radius: 28px; border: 2px solid rgba(11, 18, 36, .12); animation: ecoPulse 2.4s ease-out infinite; }
.eco-hub::after { animation-delay: 1.2s; }
/* Apps: ícono redondo que orbita; en la pantalla muestra su nombre debajo */
.eco-app { z-index: 3; width: 74px; margin: -21px 0 0 -37px; display: grid; justify-items: center; gap: 6px; animation: ecoApp var(--t) cubic-bezier(.2, .7, .2, 1) infinite; animation-delay: var(--d); }
.eco-app-ic { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(17, 20, 28, .08); display: grid; place-items: center; color: var(--ink); animation: ecoAppIc var(--t) cubic-bezier(.2, .7, .2, 1) infinite; animation-delay: var(--d); }
.eco-app-ic .ic { width: 1.1rem; height: 1.1rem; }
.eco-app-lb { width: 74px; text-align: center; font-size: .62rem; line-height: 1.2; font-weight: 500; color: var(--ink-2); opacity: 0; hyphens: manual; animation: ecoLabel var(--t) ease infinite; animation-delay: var(--d); }
/* Notificaciones flotantes */
.eco-toast { z-index: 5; display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem .55rem .55rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(17, 20, 28, .14); white-space: nowrap; opacity: 0; animation: ecoToast var(--t) cubic-bezier(.2, .7, .2, 1) infinite; }
.eco-toast > i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #E7F4EC; color: #1F6B3E; }
.eco-toast > i .ic { width: .95rem; height: .95rem; }
.eco-toast strong { display: block; font-size: .72rem; font-weight: 600; }
.eco-toast small { display: block; font-size: .64rem; color: var(--muted); }
.eco-toast.is-a { margin: 128px 0 0 -250px; }
.eco-toast.is-b { margin: -214px 0 0 60px; animation-delay: .9s; }
.eco-toast.is-b > i { background: #EEF0F6; color: var(--graphite); }
/* Frase que acompaña cada momento */
.eco-caption { position: relative; height: 1.4em; margin: 0 0 1.1rem; text-align: center; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.eco-caption span { position: absolute; inset: 0; opacity: 0; animation: ecoCap var(--t) ease infinite; }
.eco-caption span:nth-child(2) { animation-name: ecoCap2; }
.eco-caption span:nth-child(3) { animation-name: ecoCap3; }

@keyframes ecoApp {
  0%   { transform: translate(var(--x0), var(--y0)) scale(.6); opacity: 0; }
  8%   { opacity: 1; }
  22%, 44% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 1; }
  56%, 88% { transform: translate(var(--x2), var(--y2)) scale(1); opacity: 1; }
  96%, 100% { transform: translate(var(--x2), var(--y2)) scale(.94); opacity: 0; }
}
@keyframes ecoAppIc { 0%, 46% { border-radius: 50%; background: #fff; } 56%, 100% { border-radius: 13px; background: #F4F4F2; box-shadow: none; } }
@keyframes ecoLabel { 0%, 50% { opacity: 0; transform: translateY(-4px); } 58%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ecoRing { 0%, 12% { opacity: 0; transform: scale(.8) rotate(0); } 24%, 44% { opacity: 1; transform: scale(1) rotate(20deg); } 52%, 100% { opacity: 0; transform: scale(1.1) rotate(30deg); } }
@keyframes ecoLines { 0%, 22% { opacity: 0; } 28%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ecoDash { to { stroke-dashoffset: -16; } }
@keyframes ecoScreen { 0%, 46% { opacity: 0; transform: scale(.88); } 56%, 90% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(.98); } }
@keyframes ecoHub3 {
  0%, 12% { transform: scale(.7); opacity: 1; }
  22%, 44% { transform: scale(1); opacity: 1; }
  56%, 90% { transform: translate(-183px, -141px) scale(.36); opacity: 1; }
  98%, 100% { transform: translate(-183px, -141px) scale(.36); opacity: 0; }
}
@keyframes ecoPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ecoToast { 0%, 62% { opacity: 0; transform: translateY(12px) scale(.96); } 68%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ecoCap { 0%, 2% { opacity: 0; } 6%, 18% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes ecoCap2 { 0%, 22% { opacity: 0; } 26%, 44% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes ecoCap3 { 0%, 50% { opacity: 0; } 56%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .eco-stage *, .eco-caption span { animation: none !important; }
  .eco-app { transform: translate(var(--x2), var(--y2)); }
  .eco-app-lb, .eco-screen, .eco-toast, .eco-caption span:nth-child(3) { opacity: 1; transform: none; }
  .eco-app-ic { border-radius: 13px; background: #F4F4F2; box-shadow: none; }
  .eco-ring, .eco-lines { opacity: 0; }
  .eco-hub { transform: translate(-183px, -141px) scale(.36); }
}
@media (min-width: 992px) and (max-height: 860px) { .eco-stage { transform: scale(.86); margin-top: -28px; margin-bottom: -28px; } }
.eco-app.is-1 { --x0: -20px; --y0: -280px; --x1: 0px; --y1: -108px; --x2: -148px; --y2: -52px; --d: 0.00s; }
.eco-app.is-2 { --x0: 280px; --y0: -140px; --x1: 94px; --y1: -54px; --x2: -74px; --y2: -52px; --d: 0.05s; }
.eco-app.is-3 { --x0: 240px; --y0: 140px; --x1: 94px; --y1: 54px; --x2: 0px; --y2: -52px; --d: 0.10s; }
.eco-app.is-4 { --x0: 20px; --y0: 280px; --x1: 0px; --y1: 108px; --x2: 74px; --y2: -52px; --d: 0.15s; }
.eco-app.is-5 { --x0: -280px; --y0: 140px; --x1: -94px; --y1: 54px; --x2: 148px; --y2: -52px; --d: 0.20s; }
.eco-app.is-6 { --x0: -240px; --y0: -140px; --x1: -94px; --y1: -54px; --x2: -148px; --y2: 22px; --d: 0.25s; }
.eco-app.is-7 { --x0: 89px; --y0: -261px; --x1: 65px; --y1: -167px; --x2: -74px; --y2: 22px; --d: 0.30s; }
.eco-app.is-8 { --x0: 284px; --y0: -133px; --x1: 165px; --y1: -89px; --x2: 0px; --y2: 22px; --d: 0.35s; }
.eco-app.is-9 { --x0: 276px; --y0: 46px; --x1: 187px; --y1: 31px; --x2: 74px; --y2: 22px; --d: 0.40s; }
.eco-app.is-10 { --x0: 220px; --y0: 209px; --x1: 122px; --y1: 136px; --x2: 148px; --y2: 22px; --d: 0.45s; }
.eco-app.is-11 { --x0: -20px; --y0: 280px; --x1: 0px; --y1: 178px; --x2: -148px; --y2: 96px; --d: 0.50s; }
.eco-app.is-12 { --x0: -180px; --y0: 209px; --x1: -122px; --y1: 136px; --x2: -74px; --y2: 96px; --d: 0.55s; }
.eco-app.is-13 { --x0: -316px; --y0: 46px; --x1: -187px; --y1: 31px; --x2: 0px; --y2: 96px; --d: 0.60s; }
.eco-app.is-14 { --x0: -244px; --y0: -133px; --x1: -165px; --y1: -89px; --x2: 74px; --y2: 96px; --d: 0.65s; }
.eco-app.is-15 { --x0: -129px; --y0: -261px; --x1: -65px; --y1: -167px; --x2: 148px; --y2: 96px; --d: 0.70s; }
.eco-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; }
.eco-points li { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.eco-points .ic { width: .9rem; height: .9rem; color: var(--graphite); }
.eco { --t: 14s; }
.eco-toast.is-a { margin: 166px 0 0 -262px; }

/* ==========================================================================
   Menú lateral automático (solo computador, ≥ 992 px)
   Inicia reducido (íconos). Al pasar el mouse se despliega con animación y el
   contenido se corre a la derecha para darle espacio; al retirarlo, el menú se
   reduce y el contenido vuelve a su lugar.
   En celular sigue siendo el panel que se abre con el botón de menú.
   ========================================================================== */
@media (min-width: 992px) {
  body.sidebar-auto .app-shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    transition: grid-template-columns 260ms cubic-bezier(.2, .7, .2, 1);
  }
  body.sidebar-auto.sidebar-peek { --sidebar-w: 264px; }
  body.sidebar-auto .sidebar {
    position: sticky; top: 0; height: 100vh; min-width: 0;
    overflow-x: hidden; white-space: nowrap;
  }
  /* Los textos aparecen con un leve desvanecido mientras el menú se abre. */
  body.sidebar-auto.sidebar-peek .sidebar .side-link > span,
  body.sidebar-auto.sidebar-peek .sidebar .side-group-title,
  body.sidebar-auto.sidebar-peek .sidebar .brand:not(.brand-compact),
  body.sidebar-auto.sidebar-peek .sidebar .side-plan > span { animation: side-text-in 260ms ease both; }
  body.sidebar-auto .sidebar .side-link > span, body.sidebar-auto .sidebar .side-group-title { overflow: hidden; text-overflow: ellipsis; }
  /* El botón para contraer/expandir ya no hace falta en computador. */
  body.sidebar-auto [data-sidebar-toggle] { display: none !important; }
}
@keyframes side-text-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body.sidebar-auto .app-shell { transition: none; }
  body.sidebar-auto.sidebar-peek .sidebar * { animation: none !important; }
}

/* ==========================================================================
   Módulos del negocio · estructura del «Panel para profesionales» de Instagram (r46)
   Encabezado: nombre grande + acciones en píldora a la derecha, secciones en
   píldoras y una línea divisoria. Contenido: título de sección, filtros en
   píldoras y componentes con borde fino y esquinas redondeadas.
   Solo en páginas con el encabezado del negocio (.biz-page). Solo estilo.
   ========================================================================== */
.biz-page { --ig-border: #DBDBDB; --ig-line: #E6E6E6; --ig-soft: #EFEFEF; --ig-soft-hover: #E4E4E4; --ig-radius: 16px; }

/* ---------- Título de cada sección ---------- */
.biz-page .mod-head, .biz-page .inv-head { margin-bottom: 1.35rem; align-items: center; }
.biz-page .mod-title, .biz-page .inv-head .section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .2rem; }
.biz-page .mod-sub { font-size: .88rem; color: var(--muted); }

/* ---------- Filtros en píldoras ---------- */
.biz-page .mod-bar .seg-tabs:not(.is-line),
.biz-page .product-toolbar .segmented { background: transparent; padding: 0; gap: .5rem; border-radius: 0; }
.biz-page .mod-bar .seg-tabs:not(.is-line) .seg-tab,
.biz-page .product-toolbar .segmented-item {
  height: 40px; padding: 0 1.05rem; border-radius: var(--r-pill); border: 1px solid var(--ig-border);
  background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; box-shadow: none;
}
.biz-page .mod-bar .seg-tabs:not(.is-line) .seg-tab:hover,
.biz-page .product-toolbar .segmented-item:hover { background: #FAFAFA; }
.biz-page .mod-bar .seg-tabs:not(.is-line) .seg-tab.is-active,
.biz-page .product-toolbar .segmented-item.is-active { background: var(--ig-soft); border-color: var(--ig-soft); color: var(--ink); font-weight: 700; }
.biz-page .mod-bar .seg-tab.is-active .seg-tab-n { background: #fff; color: var(--ink); }
.biz-page .mod-search .form-control, .biz-page .product-search .form-control, .biz-page .inv-filter input[type="search"].form-control { height: 40px; border-color: var(--ig-border); }
.biz-page .mod-bar .form-select, .biz-page .inv-filter .form-select { height: 40px; border-radius: var(--r-pill); border-color: var(--ig-border); font-weight: 600; }

/* ---------- Componentes con borde ---------- */
.biz-page .panel:not(.modal *),
.biz-page .st-card, .biz-page .st-actions,
.biz-page .ord-list, .biz-page .cus-list, .biz-page .move-list, .biz-page .stock-table {
  background: #fff; border: 1px solid var(--ig-border); border-radius: var(--ig-radius); box-shadow: none;
}
.biz-page .is-flat .panel { background: none; border: 0; border-radius: 0; }
.biz-page .ov-card { padding: 1.25rem 1.35rem; }
.biz-page .ov-h, .biz-page .rep-h, .biz-page .panel-title, .biz-page .section-title { font-weight: 700; letter-spacing: -.01em; }
.biz-page .ov-grid { gap: 1rem; margin-bottom: 1rem; }

/* Indicadores: tarjetas con borde, cifra grande. */
.biz-page .ov-stats, .biz-page .kpi-grid { gap: .85rem; }
.biz-page .ov-stat, .biz-page .kpi { background: #fff; border: 1px solid var(--ig-border); border-radius: var(--ig-radius); padding: 1rem 1.15rem; box-shadow: none; transition: border-color var(--t-fast), background-color var(--t-fast); }
.biz-page a.ov-stat:hover, .biz-page a.kpi:hover { border-color: #ABABAB; background: #fff; box-shadow: none; transform: none; }
.biz-page .ov-stat.is-hot { background: #FFFBF3; border-color: #F0D6A8; }
.biz-page .kpi.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.biz-page .ov-stat-value, .biz-page .kpi-value { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }

/* Listas: marco con borde y filas separadas por líneas finas. */
.biz-page .ord-item, .biz-page .move-row, .biz-page .stock-row { border-top-color: var(--ig-line); }
.biz-page .ord-list > :first-child, .biz-page .move-list > :first-child { border-top: 0; }
.biz-page a.ord-item:hover, .biz-page .move-row:hover { background: #FAFAFA; }
.biz-page .ov-top li, .biz-page .ov-orders a { border-top-color: var(--ig-line); }
.biz-page .rep-stats { background: #fff; border: 1px solid var(--ig-border); border-radius: var(--ig-radius); overflow: hidden; }

/* Botones secundarios: píldora gris suave (como «Editar» / «Finalizar»). */
.biz-page .mod-head .btn-outline-ink, .biz-page .inv-head .btn-outline-ink,
.biz-page .panel .btn-outline-ink, .biz-page .product-card .btn-outline-ink,
.biz-page .st-card .btn-outline-ink, .biz-page .st-actions .btn-outline-ink {
  --bs-btn-bg: var(--ig-soft); --bs-btn-border-color: var(--ig-soft);
  --bs-btn-hover-bg: var(--ig-soft-hover); --bs-btn-hover-border-color: var(--ig-soft-hover);
  --bs-btn-active-bg: #D9D9D9; --bs-btn-active-border-color: #D9D9D9;
  --bs-btn-color: var(--ink); --bs-btn-hover-color: var(--ink); --bs-btn-active-color: var(--ink);
  font-weight: 600;
}

/* Productos: tarjetas con borde, foto arriba (como las publicaciones de Insights). */
.biz-page .product-card { background: #fff; border: 1px solid var(--ig-border); border-radius: var(--ig-radius); overflow: hidden; }
.biz-page .product-card:hover { border-color: #ABABAB; box-shadow: none; }
.biz-page .product-card .product-actions { border-top: 1px solid var(--ig-line); }

/* Estados vacíos: borde punteado. */
.biz-page .empty, .biz-page .team-empty, .biz-page .mod-empty, .biz-page .store-empty { background: #fff; border: 1px dashed var(--ig-border); border-radius: var(--ig-radius); }

/* ---------- Refinamiento (r47): más aire, jerarquía clara y bordes suaves ---------- */
.biz-page { --ig-border: #E3E3E3; --ig-line: #EDEDED; --ig-radius: 18px; --ig-shadow: 0 1px 2px rgba(17, 17, 17, .04); }

/* Títulos de sección */
.biz-page .mod-head, .biz-page .inv-head { margin: .25rem 0 1.25rem; }
.biz-page .mod-title, .biz-page .inv-head .section-title { font-size: 1.35rem; }

/* Barra de herramientas: todo a 40 px y alineado */
.biz-page .mod-bar, .biz-page .product-toolbar, .biz-page .inv-filter { gap: .6rem; margin-bottom: 1.1rem; align-items: center; }
.biz-page .mod-actions .btn, .biz-page .inv-head-actions .btn, .biz-page .product-toolbar > .btn { height: 40px; padding-left: 1.05rem; padding-right: 1.05rem; font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; }
.biz-page .mod-actions .btn-icon, .biz-page .mod-head .btn-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ig-border); background: #fff; }
.biz-page .mod-actions .btn-icon:hover, .biz-page .mod-head .btn-icon:hover { background: #FAFAFA; }
.biz-page .view-toggle { height: 40px; border-color: var(--ig-border); }

/* Tarjetas: borde suave, sombra mínima, encabezado con línea */
.biz-page .panel:not(.modal *), .biz-page .st-card, .biz-page .st-actions,
.biz-page .ord-list, .biz-page .cus-list, .biz-page .move-list, .biz-page .stock-table,
.biz-page .ov-stat, .biz-page .kpi, .biz-page .product-card, .biz-page .rep-stats { border-color: var(--ig-border); border-radius: var(--ig-radius); box-shadow: var(--ig-shadow); }
.biz-page .is-flat .panel { box-shadow: none; }
.biz-page .ov-card { padding: 0; overflow: hidden; }
.biz-page .ov-card > .ov-card-head { margin: 0; padding: 1rem 1.25rem .9rem; border-bottom: 1px solid var(--ig-line); align-items: center; }
.biz-page .ov-card > :not(.ov-card-head) { margin-left: 1.25rem; margin-right: 1.25rem; }
.biz-page .ov-card > .ov-card-head + * { margin-top: 1rem; }
.biz-page .ov-card > :last-child { margin-bottom: 1.15rem; }
.biz-page .ov-h { font-size: .98rem; }
.biz-page .ov-grid { gap: 1rem; margin-bottom: 1rem; }
.biz-page .ov-col { gap: 1rem; }

/* Indicadores */
.biz-page .ov-stats, .biz-page .kpi-grid { gap: 1rem; margin-bottom: 1rem; }
.biz-page .ov-stat, .biz-page .kpi { padding: 1.05rem 1.2rem 1.1rem; gap: .3rem; }
.biz-page .ov-stat-label, .biz-page .kpi-label { font-size: .8rem; font-weight: 500; color: var(--muted); }
.biz-page .ov-stat-value, .biz-page .kpi-value { font-size: 1.6rem; line-height: 1.15; }
.biz-page .ov-stat-hint, .biz-page .kpi-hint { font-size: .76rem; color: var(--faint); }
.biz-page a.ov-stat:hover, .biz-page a.kpi:hover { border-color: #C9C9C9; box-shadow: 0 4px 14px rgba(17, 17, 17, .06); }

/* Listas */
.biz-page .ord-item { padding: .85rem 1.15rem; }
.biz-page .ord-avatar { width: 40px; height: 40px; background: #F3F3F3; }
.biz-page .stock-head { background: #FAFAFA; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.biz-page .ov-orders a { padding: .7rem 0; }

/* Productos */
.biz-page .product-grid { gap: 1rem; }
.biz-page .product-card:hover { border-color: #C9C9C9; box-shadow: 0 6px 18px rgba(17, 17, 17, .07); }
.biz-page .product-card .product-body { padding: .8rem .95rem .55rem; }
.biz-page .product-card .product-name { font-size: .9rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.biz-page .product-card .product-actions { padding: .5rem .6rem .55rem .8rem; }

@media (max-width: 767.98px) {
  .biz-page .ov-stats, .biz-page .kpi-grid { gap: .7rem; }
  .biz-page .ov-stat, .biz-page .kpi { padding: .9rem 1rem; }
  .biz-page .ov-stat-value, .biz-page .kpi-value { font-size: 1.35rem; }
  .biz-page .ov-card > .ov-card-head { padding: .9rem 1rem .8rem; }
  .biz-page .ov-card > :not(.ov-card-head) { margin-left: 1rem; margin-right: 1rem; }
}

/* ==========================================================================
   Negocio · estructura con columna «Herramientas» (r48)
   Computador: menú lateral de la app (íconos) → columna «Herramientas» con
   accesos en círculo (estilo historias de Instagram) → contenido del módulo.
   Encabezado: nombre + estado + categoría y enlace; «Ver tienda» a la derecha;
   línea divisoria. Celular: los accesos en círculo pasan a una fila deslizable.
   ========================================================================== */

/* ---------- Encabezado del negocio ---------- */
.biz-page .biz-hero { margin: 0 0 1.6rem; padding: 0 0 1.35rem; background: none; border: 0; border-bottom: 1px solid var(--ig-line, #EDEDED) !important; border-radius: 0; }
.biz-page .biz-hero-main { padding: 0; margin: 0; gap: 1rem; align-items: center; }
.biz-page .biz-hero .biz-logo-lg { display: none; }
.biz-page .biz-hero-title { gap: .6rem; align-items: center; }
.biz-page .biz-hero-title .page-title { font-size: clamp(1.45rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.biz-page .biz-hero-title .status { font-size: .7rem; font-weight: 600; padding: .15rem .55rem; }
.biz-page .biz-hero-meta { margin-top: .3rem; gap: .1rem .6rem; font-size: .84rem; color: var(--muted); }
.biz-page .biz-hero-meta > span:not(:first-child)::before { content: "·"; margin-right: .6rem; color: #C2C2C2; }
.biz-page .biz-hero-actions { gap: .5rem; align-self: center; }
.biz-page .biz-hero-actions .btn-help { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--ig-border, #E3E3E3); font-size: 1.05rem; }
.biz-page .biz-hero-actions .btn-help span { display: none; }
.biz-page .biz-hero-actions .btn-help:hover { background: #FAFAFA; }
.biz-page .biz-hero-action { height: 40px; padding: 0 1.2rem; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .45rem; }
.biz-page .biz-hero-action:hover { background: var(--ink); color: #fff; }

/* ---------- Columna «Herramientas» (accesos en círculo) ---------- */
.biz-page .biz-nav-title { display: none; }
.biz-page .biz-nav {
  display: flex !important; gap: .35rem; margin: 0; padding: 0; border: 0 !important; background: #fff;
  overflow-x: auto; scrollbar-width: none;
}
.biz-page .biz-nav::-webkit-scrollbar { display: none; }
.biz-page .biz-nav > .biz-nav-item,
.biz-page .biz-nav > .biz-nav-more > .biz-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .4rem;
  min-width: 74px; padding: .35rem .25rem; border: 0; border-radius: 14px; background: transparent;
  color: var(--ink-2); font-size: .74rem; font-weight: 500; line-height: 1.15; text-align: center; text-decoration: none;
}
.biz-page .biz-nav > .biz-nav-item:first-child { min-width: 74px; }
.biz-page .biz-nav > .biz-nav-item:first-child .biz-nav-label { width: auto; }
.biz-page .biz-nav .biz-nav-icon {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 1px solid var(--ig-border, #E3E3E3); color: var(--ink); font-size: 1.15rem;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.biz-page .biz-nav .biz-nav-icon > .ic { width: 1.25rem; height: 1.25rem; }
.biz-page .biz-nav .biz-nav-label { white-space: nowrap; }
.biz-page .biz-nav > .biz-nav-item:hover .biz-nav-icon,
.biz-page .biz-nav > .biz-nav-more > .biz-nav-item:hover .biz-nav-icon { border-color: #BDBDBD; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(17, 17, 17, .06); }
.biz-page .biz-nav > .biz-nav-item:hover, .biz-page .biz-nav > .biz-nav-more > .biz-nav-item:hover { color: var(--ink); background: transparent; }
/* Activo: círculo negro con anillo (como una historia seleccionada). */
.biz-page .biz-nav > .biz-nav-item.is-active .biz-nav-icon,
.biz-page .biz-nav > .biz-nav-more > .biz-nav-item.is-active .biz-nav-icon { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ink); }
.biz-page .biz-nav > .biz-nav-item.is-active, .biz-page .biz-nav > .biz-nav-more > .biz-nav-item.is-active { color: var(--ink); font-weight: 700; background: transparent; }
.biz-page .biz-nav > .biz-nav-item:focus-visible .biz-nav-icon { outline: 2px solid var(--ink); outline-offset: 3px; }
.biz-page .biz-nav > .biz-nav-item:focus-visible { outline: none; }
.biz-page .biz-nav .biz-nav-badge {
  position: absolute; top: -3px; right: -5px; min-width: 19px; height: 19px; padding: 0 .3rem; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; border: 2px solid #fff; font-size: .64rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1;
}
.biz-page .biz-nav .biz-nav-badge.is-alert { background: #D97706; }
.biz-page .biz-nav > .biz-nav-item.is-active .biz-nav-badge { background: #fff; color: var(--ink); border-color: var(--ink); }
.biz-page .biz-nav > .biz-nav-item.is-soon { opacity: .5; }
.biz-page .biz-nav-more { margin: 0; }
.biz-page .biz-nav > .biz-nav-more > .biz-nav-item::after { display: none; }
.biz-page .biz-more { border: 1px solid var(--ig-border, #E3E3E3); border-radius: 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .1); padding: .9rem; }

@media (min-width: 992px) {
  /* Tres columnas: menú de la app · Herramientas · contenido. */
  .app-main.biz-page {
    display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 0; row-gap: 0; align-items: start;
    max-width: none; margin: 0; padding: 0;
  }
  .app-main.biz-page > * { grid-column: 2; margin-left: clamp(1.75rem, 3vw, 3rem); margin-right: clamp(1.75rem, 3vw, 3rem); max-width: 1160px; min-width: 0; }
  .app-main.biz-page > .biz-hero { margin-top: 2rem; }
  .app-main.biz-page > :last-child { margin-bottom: 3rem; }
  .app-main.biz-page > .biz-nav {
    grid-column: 1; grid-row: 1 / span 80; align-self: start; position: sticky; top: var(--topbar-h);
    flex-direction: column; align-items: center; gap: .2rem; margin: 0; max-width: none;
    height: calc(100vh - var(--topbar-h)); overflow-y: auto; overflow-x: hidden;
    padding: 1.35rem .5rem 1.5rem !important; border-right: 1px solid var(--ig-line, #EDEDED) !important;
  }
  .app-main.biz-page > .biz-nav .biz-nav-title { display: block; margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
  .app-main.biz-page > .biz-nav > .biz-nav-more { margin-top: auto; padding-top: .5rem; }
}
@media (max-width: 991.98px) {
  .biz-page .biz-hero { margin-bottom: 1rem; padding-bottom: 1rem; }
  .biz-page > .biz-nav { margin: 0 -1rem 1.5rem; padding: .15rem 1rem .9rem !important; border-bottom: 1px solid var(--ig-line, #EDEDED) !important; }
  .biz-page .biz-nav > .biz-nav-item, .biz-page .biz-nav > .biz-nav-more > .biz-nav-item { min-width: 70px; flex: none; }
  .biz-page .biz-hero-action span { display: none; }
  .biz-page .biz-hero-action { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 575.98px) {
  .biz-page .biz-hero-meta { flex-direction: column; align-items: flex-start; gap: 0; }
  .biz-page .biz-hero-meta > span:not(:first-child)::before { content: none; }
}
@media print { .biz-page > .biz-nav { display: none !important; } .app-main.biz-page { display: block; } }

/* ==========================================================================
   Negocio · acabado ligero (r49)
   Menos negrillas, más aire y bordes más suaves en todos los módulos.
   ========================================================================== */
.biz-page { --ig-border: #E8E8E8; --ig-line: #EFEFEF; }
.biz-page, .biz-page p, .biz-page li { line-height: 1.5; }

/* Pesos tipográficos más livianos */
.biz-page .biz-hero-title .page-title { font-weight: 600; letter-spacing: -.02em; }
.biz-page .mod-title, .biz-page .inv-head .section-title { font-weight: 600; font-size: 1.3rem; letter-spacing: -.015em; }
.biz-page .ov-h, .biz-page .rep-h, .biz-page .panel-title, .biz-page .section-title, .biz-page .card-title { font-weight: 600; }
.biz-page .ov-stat-value, .biz-page .kpi-value { font-weight: 600; font-size: 1.5rem; }
.biz-page .ord-item strong, .biz-page .ord-item-top strong, .biz-page .ov-orders strong, .biz-page .product-card .product-name, .biz-page .stock-row strong { font-weight: 500; }
.biz-page .product-card .product-price, .biz-page .ord-item-money strong { font-weight: 600; }
.biz-page .biz-hero-action { font-weight: 500; border-width: 1px; }
.biz-page .mod-bar .seg-tabs:not(.is-line) .seg-tab, .biz-page .product-toolbar .segmented-item { font-weight: 500; height: 38px; }
.biz-page .mod-bar .seg-tabs:not(.is-line) .seg-tab.is-active, .biz-page .product-toolbar .segmented-item.is-active { font-weight: 600; }
.biz-page .mod-head .btn-outline-ink, .biz-page .inv-head .btn-outline-ink, .biz-page .panel .btn-outline-ink, .biz-page .product-card .btn-outline-ink,
.biz-page .st-card .btn-outline-ink, .biz-page .st-actions .btn-outline-ink { font-weight: 500; }
.biz-page .mod-actions .btn, .biz-page .inv-head-actions .btn, .biz-page .product-toolbar > .btn { font-weight: 500; }
.biz-page .btn-ink { font-weight: 500; }

/* Más aire */
@media (min-width: 992px) {
  .app-main.biz-page { grid-template-columns: 132px minmax(0, 1fr); }
  .app-main.biz-page > * { margin-left: clamp(2rem, 3.5vw, 3.5rem); margin-right: clamp(2rem, 3.5vw, 3.5rem); }
  .app-main.biz-page > .biz-hero { margin-top: 2.5rem; }
  .app-main.biz-page > .biz-nav { gap: .45rem; padding: 1.6rem .5rem 1.5rem !important; }
  .app-main.biz-page > .biz-nav .biz-nav-icon { width: 46px; height: 46px; }
  .app-main.biz-page > .biz-nav .biz-nav-title { font-size: .72rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
}
@media (min-width: 992px) and (max-height: 800px) {
  .app-main.biz-page > .biz-nav { gap: .15rem; padding-top: 1.1rem !important; }
  .app-main.biz-page > .biz-nav .biz-nav-title { margin-bottom: .4rem; }
  .app-main.biz-page > .biz-nav .biz-nav-icon { width: 42px; height: 42px; }
}
.biz-page .biz-hero { margin-bottom: 2rem; padding-bottom: 1.6rem; }
.biz-page .biz-hero-meta { margin-top: .4rem; }
.biz-page .mod-head, .biz-page .inv-head { margin-top: .25rem; margin-bottom: 1.6rem; }
.biz-page .mod-sub { margin-top: .2rem; }
.biz-page .mod-bar, .biz-page .product-toolbar, .biz-page .inv-filter { gap: .65rem; margin-bottom: 1.4rem; }

/* Columna Herramientas: etiquetas suaves */
.biz-page .biz-nav > .biz-nav-item, .biz-page .biz-nav > .biz-nav-more > .biz-nav-item { font-size: .75rem; font-weight: 400; color: var(--muted); gap: .45rem; }
.biz-page .biz-nav > .biz-nav-item.is-active, .biz-page .biz-nav > .biz-nav-more > .biz-nav-item.is-active { font-weight: 600; color: var(--ink); }
.biz-page .biz-nav .biz-nav-icon { border-color: var(--ig-border); color: var(--ink-2); }
.biz-page .biz-nav > .biz-nav-item.is-active .biz-nav-icon { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--ink); }

/* Tarjetas e indicadores con más espacio interior */
.biz-page .ov-stats, .biz-page .kpi-grid { gap: 1.1rem; margin-bottom: 1.25rem; }
.biz-page .ov-stat, .biz-page .kpi { padding: 1.2rem 1.35rem 1.25rem; gap: .35rem; }
.biz-page .ov-stat-label, .biz-page .kpi-label { font-size: .82rem; font-weight: 400; }
.biz-page .ov-grid { gap: 1.25rem; margin-bottom: 1.25rem; }
.biz-page .ov-col { gap: 1.25rem; }
.biz-page .ov-card > .ov-card-head { padding: 1.1rem 1.5rem 1rem; }
.biz-page .ov-card > :not(.ov-card-head) { margin-left: 1.5rem; margin-right: 1.5rem; }
.biz-page .ov-card > .ov-card-head + * { margin-top: 1.1rem; }
.biz-page .ov-card > :last-child { margin-bottom: 1.35rem; }
.biz-page .ov-week-sum strong { font-weight: 600; }
.biz-page .ord-item { padding: 1rem 1.3rem; }
.biz-page .stock-row { padding-top: .9rem; padding-bottom: .9rem; }
.biz-page .product-grid { gap: 1.25rem; }
.biz-page .product-card .product-body { padding: .9rem 1.05rem .6rem; }
.biz-page .st-card, .biz-page .st-actions { padding: 1.1rem; }

@media (max-width: 991.98px) {
  .biz-page .biz-hero { margin-bottom: 1.1rem; padding-bottom: 1.1rem; }
  .biz-page > .biz-nav { gap: .5rem; margin-bottom: 1.6rem; }
  .biz-page .ov-stats, .biz-page .kpi-grid { gap: .75rem; }
  .biz-page .ov-stat, .biz-page .kpi { padding: 1rem 1.1rem; }
  .biz-page .ov-stat-value, .biz-page .kpi-value { font-size: 1.3rem; }
  .biz-page .ov-card > .ov-card-head { padding: 1rem 1.15rem .9rem; }
  .biz-page .ov-card > :not(.ov-card-head) { margin-left: 1.15rem; margin-right: 1.15rem; }
}

/* ==========================================================================
   Negocio · r50: encabezado limpio, Resumen y Reportes más livianos,
   Herramientas en íconos o lista, y menús con fondo sutil.
   ========================================================================== */


/* Encabezado: solo nombre, estado, categoría y enlace. */
.biz-page .biz-hero-main { align-items: flex-start; }

/* ---------- Resumen: más calmado ---------- */
/* Los cuatro indicadores en una sola tarjeta, separados por líneas. */
.biz-page .ov-stats.is-strip { gap: 0; background: #fff; border: 1px solid var(--ig-border); border-radius: var(--ig-radius); box-shadow: var(--ig-shadow); overflow: hidden; }
.biz-page .ov-stats.is-strip > .ov-stat { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.biz-page .ov-stats.is-strip > .ov-stat + .ov-stat { border-left: 1px solid var(--ig-line); }
.biz-page .ov-stats.is-strip > a.ov-stat:hover { background: #FCFCFB; box-shadow: none; border-color: var(--ig-line); }
.biz-page .ov-stats.is-strip > .ov-stat.is-hot { background: #FFFBF3; }
@media (max-width: 767.98px) {
  .biz-page .ov-stats.is-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-page .ov-stats.is-strip > .ov-stat + .ov-stat { border-left: 0; }
  .biz-page .ov-stats.is-strip > .ov-stat:nth-child(even) { border-left: 1px solid var(--ig-line); }
  .biz-page .ov-stats.is-strip > .ov-stat:nth-child(n+3) { border-top: 1px solid var(--ig-line); }
}
.biz-page .ov-recent { margin-bottom: 1.25rem; }
/* Barra para compartir la tienda */
.biz-page .ov-sharebar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; padding: .85rem 1rem .85rem 1.25rem; border: 1px dashed var(--ig-border); border-radius: var(--ig-radius); background: #fff; }
.biz-page .ov-sharebar-info { display: flex; align-items: center; gap: .65rem; min-width: 0; flex: 1 1 320px; }
.biz-page .ov-sharebar-title { font-size: .9rem; font-weight: 500; margin: 0; white-space: nowrap; }
.biz-page .ov-sharebar .ov-share-link { margin: 0; flex: 1 1 auto; min-width: 0; max-width: 360px; background: #FAFAF9; border: 1px solid var(--ig-line); }
.biz-page .ov-sharebar .ov-share-row { margin: 0; gap: .4rem; flex: none; }
.biz-page .ov-sharebar .ov-share-btn { flex: none; padding: .45rem .85rem; background: #F3F3F2; font-weight: 500; }
.biz-page .ov-tour-again { margin-top: 1rem; }
@media (max-width: 575.98px) {
  .biz-page .ov-sharebar-info { flex-wrap: wrap; }
  .biz-page .ov-sharebar .ov-share-link { max-width: none; width: 100%; }
  .biz-page .ov-sharebar .ov-share-row { width: 100%; }
  .biz-page .ov-sharebar .ov-share-btn { flex: 1; }
}

/* ---------- Reportes: menos ruido ---------- */
.biz-page .rep-grid.is-solo { grid-template-columns: minmax(0, 1fr) !important; }
.biz-page .rep-more-kpis { margin: .6rem 0 1.25rem; }
.biz-page .rep-more-kpis > summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; font-size: .84rem; color: var(--muted); padding: .3rem .1rem; }
.biz-page .rep-more-kpis > summary::-webkit-details-marker { display: none; }
.biz-page .rep-more-kpis > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--t-fast); }
.biz-page .rep-more-kpis[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.biz-page .rep-more-kpis > summary:hover { color: var(--ink); }
.biz-page .rep-more-kpis .rep-mini { margin-top: .6rem; }
.biz-page .rep-notes { border: 1px solid var(--ig-border); border-radius: var(--ig-radius); padding: 1rem 1.25rem .75rem; margin-bottom: 1.5rem; background: #fff; }
.biz-page .rep-notes .rep-label { margin-bottom: .35rem; }
.biz-page .rep-tabs { margin-bottom: 1.25rem; }
@media print { .biz-page .rep-more-kpis > summary { display: none; } .biz-page .rep-more-kpis .rep-mini { display: grid !important; } }

/* ==========================================================================
   Ajustes del negocio · estructura de «Configuración» de Instagram (r44)
   Izquierda: título, búsqueda y menú agrupado. Derecha: una sección a la vez
   con título grande, tarjeta del negocio, etiquetas en negrita y campos amplios.
   En celular: primero el menú; al elegir un ajuste se abre su detalle con «← Configuración».
   ========================================================================== */
.edit-ig { --eg-line: #EFEFEF; --eg-soft: #EFEFEF; --eg-soft-2: #F2F2F2; }
.edit-ig .edit-back { display: none; }
.edit-ig-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 1.25rem; }
.edit-ig-search { margin-bottom: .5rem; }
.edit-ig-search .form-control { height: 44px; background: var(--eg-soft) !important; border: 0 !important; border-radius: var(--r-pill) !important; }
.edit-ig-search .form-control:focus { background: #E8E8E8 !important; box-shadow: none !important; }
.edit-ig-group { display: grid; gap: .1rem; }
.edit-ig-group-title { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 1.5rem .9rem .5rem; }
.edit-ig-empty { font-size: .88rem; color: var(--muted); margin: 1.25rem .9rem 0; }

.edit-ig .edit-nav-link {
  display: flex; align-items: center; gap: 1rem; padding: .85rem .9rem; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); font-size: .95rem; font-weight: 400; text-decoration: none; white-space: normal;
}
.edit-ig .edit-nav-link > i { font-size: 1.3rem; color: var(--ink); flex: none; width: 1.4rem; text-align: center; }
.edit-ig .edit-nav-link:hover { background: #F7F7F7; color: var(--ink); }
.edit-ig .edit-nav-link.is-active { background: var(--eg-soft-2); font-weight: 400; color: var(--ink); }
.edit-ig .edit-nav-link.is-active > i { color: var(--ink); }
.edit-ig .edit-nav-text { display: grid; min-width: 0; }
.edit-ig .edit-nav-text small { font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: .1rem; }
.edit-ig .edit-nav-link.is-danger, .edit-ig .edit-nav-link.is-danger > i { color: var(--danger); }
.edit-ig .edit-nav-link.is-danger:hover, .edit-ig .edit-nav-link.is-danger.is-active { background: var(--danger-tint); }

/* Detalle de la sección */
.edit-ig .edit-sections { gap: 0; }
.edit-ig .edit-section, .edit-ig .danger-zone { padding: 0 !important; background: none !important; border: 0 !important; }
.edit-ig .edit-section-head { margin-bottom: 1.75rem; gap: 0; }
.edit-ig .edit-section-icon { display: none; }
.edit-ig .edit-section-head .panel-title, .edit-ig #danger-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .3rem; }
.edit-ig .edit-section-head .text-muted { font-size: .9rem; }

.edit-ig-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 2rem; background: var(--eg-soft); border-radius: 20px; min-width: 0; }
.edit-ig-card > .min-w-0 { flex: 1; }
.edit-ig-card strong { font-size: 1rem; font-weight: 700; }
.edit-ig-card span { font-size: .88rem; color: var(--muted); }
.edit-ig-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: #fff; }
.edit-ig-avatar.is-empty { display: grid; place-items: center; font-weight: 700; color: var(--ink-2); background: #fff; font-size: .95rem; }
.edit-ig-card .btn { flex: none; }

.edit-ig .edit-sections .form-label, .edit-ig .edit-sections legend.form-label { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.edit-ig .edit-sections .field { margin-bottom: 1.75rem; }
.edit-ig .edit-sections .form-control, .edit-ig .edit-sections .form-select { min-height: 48px; border-radius: 12px; border-color: #DBDBDB; padding: .7rem 1rem; }
.edit-ig .edit-sections textarea.form-control { min-height: 96px; }
.edit-ig .edit-sections .form-control:focus, .edit-ig .edit-sections .form-select:focus { border-color: var(--ink); box-shadow: none; }
.edit-ig .edit-sections .input-group-text { border-radius: 12px 0 0 12px; border-color: #DBDBDB; }
.edit-ig .edit-sections .field-hint { font-size: .82rem; color: var(--muted); }
.edit-ig .cat-current { min-height: 48px; border-radius: 12px; border-color: #DBDBDB; }
.edit-ig .edit-actions { border-top: 0; padding-top: .5rem; margin-top: 1rem; }
.edit-ig .edit-actions [data-edit-save] { min-width: 200px; min-height: 44px; }

@media (min-width: 992px) {
  .edit-layout.edit-ig { grid-template-columns: 320px minmax(0, 1fr); gap: 0; align-items: start; }
  .edit-ig .edit-nav { position: sticky; top: calc(var(--topbar-h) + 1rem); display: block; padding: 0 1.5rem 1.5rem 0; margin: 0; border-right: 1px solid var(--eg-line); min-height: 60vh; max-height: calc(100vh - var(--topbar-h) - 2rem); overflow-y: auto; scrollbar-width: none; }
  .edit-ig .edit-sections { padding-left: 3rem; max-width: 760px; }
}
@media (max-width: 991.98px) {
  .edit-ig .edit-nav { position: static; display: block; margin: 0; padding: 0; overflow: visible; background: none; border: 0; }
  .edit-ig .edit-nav-link { border: 0; background: transparent; border-radius: 12px; }
  .edit-ig.is-menu .edit-sections { display: none; }
  .edit-ig.is-menu .edit-nav-link.is-active { background: transparent; }
  .edit-ig.is-detail .edit-nav { display: none; }
  .edit-ig.is-detail .edit-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; }
  .edit-ig .edit-actions [data-edit-save] { flex: 1; }
  .edit-ig-card { padding: .9rem 1rem; }
}


/* ---------- Ajustes a pantalla completa (r45) ----------
   Sin encabezado ni pestañas del negocio: solo Configuración (izquierda) y el ajuste elegido (derecha),
   ocupando todo el ancho disponible, como Instagram. */
.app-main.is-full { max-width: none; margin: 0; padding: 0; }
.app-main.is-full > .verify-banner, .app-main.is-full > .alert { margin: 1rem 1.5rem 0; }
@media (min-width: 992px) {
  .app-main.is-full .edit-layout.edit-ig { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
  .app-main.is-full .edit-ig .edit-nav {
    position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); max-height: none; min-height: 0;
    padding: 2.5rem 1.75rem 2rem 2.5rem; border-right: 1px solid var(--eg-line); overflow-y: auto;
  }
  .app-main.is-full .edit-ig .edit-sections { max-width: none; padding: 2.75rem 3rem 4rem; }
  .app-main.is-full .edit-ig .edit-sections > * { max-width: 720px; margin-left: auto; margin-right: auto; width: 100%; }
}
@media (max-width: 991.98px) {
  .app-main.is-full { padding: 1.25rem 1rem 3rem; }
}
/* Columna «Herramientas» en pantallas bajas: más compacta para que todo quepa. */
@media (min-width: 992px) and (max-height: 760px) {
  .app-main.biz-page > .biz-nav { gap: .05rem; padding-top: 1rem !important; }
  .app-main.biz-page > .biz-nav .biz-nav-icon { width: 44px; height: 44px; }
  .app-main.biz-page > .biz-nav > .biz-nav-item, .app-main.biz-page > .biz-nav > .biz-nav-more > .biz-nav-item { gap: .3rem; padding: .25rem; }
}
.biz-page .rep-stats .rep-stat { padding: 1.05rem 1.25rem; }

/* ==========================================================================
   Negocio · r52: foto del negocio en el encabezado y espacio al final de cada módulo
   ========================================================================== */
.biz-page .biz-hero-main { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.biz-page .biz-hero-info { min-width: 0; flex: 1; }
.biz-page .biz-hero-avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: #F3F3F3; border: 1px solid var(--ig-border, #E8E8E8);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--ig-border, #E8E8E8);
  color: var(--ink-2); font-weight: 600; font-size: 1.05rem;
}
.biz-page .biz-hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .biz-page .biz-hero-avatar { width: 52px; height: 52px; font-size: .9rem; } }

/* Espacio suficiente al final para poder desplazarse hasta el último elemento de cada módulo. */
.app-main.biz-page { padding-bottom: 6rem; }
@media (min-width: 992px) {
  .app-main.biz-page { padding-bottom: 0; }
  .app-main.biz-page::after { content: ""; grid-column: 2; height: 6rem; }
}

/* ---------- r53: logo a la izquierda del nombre; selección en gris ---------- */
.biz-page .biz-hero-main { justify-content: flex-start; gap: 1rem; }
.biz-page .biz-hero-avatar { order: 0; }
.biz-page .biz-hero-info { order: 1; }

/* Herramientas: el módulo seleccionado se marca en gris suave (como Instagram), no en negro. */
.biz-page .biz-nav > .biz-nav-item.is-active .biz-nav-icon,
.biz-page .biz-nav > .biz-nav-more > .biz-nav-item.is-active .biz-nav-icon {
  background: #EFEFEF; border-color: #EFEFEF; color: var(--ink); box-shadow: none;
}
.biz-page .biz-nav > .biz-nav-item.is-active:hover .biz-nav-icon { border-color: #E2E2E2; background: #E9E9E9; }
.biz-page .biz-nav > .biz-nav-item.is-active .biz-nav-badge { background: var(--ink); color: #fff; border-color: #fff; }
.biz-page .biz-nav > .biz-nav-item.is-active .biz-nav-badge.is-alert { background: #D97706; }
.biz-page .biz-nav > .biz-nav-item.is-active, .biz-page .biz-nav > .biz-nav-more > .biz-nav-item.is-active { color: var(--ink); font-weight: 600; }


/* ==========================================================================
   r54: tarjetas de producto, formulario de producto a todo el ancho y
   candado del nombre en Ajustes
   ========================================================================== */
/* Tarjeta de producto: marco fino, foto con esquinas propias, texto limpio. */
.biz-page .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.biz-page .product-card {
  display: flex; flex-direction: column; padding: .55rem; background: #fff;
  border: 1px solid var(--ig-border, #E8E8E8); border-radius: 18px; box-shadow: none; overflow: hidden;
  transition: border-color var(--t-fast), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.biz-page .product-card:hover { border-color: #D6D6D6; box-shadow: 0 10px 24px -12px rgba(17, 17, 17, .18); transform: translateY(-2px); }
.biz-page .product-card .product-media { border-radius: 12px; overflow: hidden; background: #F5F5F4; }
.biz-page .product-card .product-media img { transition: transform 400ms var(--ease); }
.biz-page .product-card:hover .product-media img { transform: scale(1.035); }
.biz-page .product-card .product-badge { border-radius: var(--r-pill); background: rgba(255, 255, 255, .95); border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-size: .68rem; font-weight: 600; padding: .2rem .55rem; }
.biz-page .product-card .product-photos { border-radius: var(--r-pill); background: rgba(17, 17, 17, .55); color: #fff; font-size: .68rem; }
.biz-page .product-card .product-body { flex: 1; padding: .75rem .45rem .4rem; }
.biz-page .product-card .product-name { font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: .2rem; }
.biz-page .product-card .product-price { margin-bottom: .3rem; }
.biz-page .product-card .product-price strong { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.biz-page .product-card .product-price s { font-size: .8rem; color: var(--faint); }
.biz-page .product-card .product-meta { font-size: .76rem; color: var(--muted); gap: .2rem .6rem; }
.biz-page .product-card .product-attrs { margin-bottom: .3rem; }
.biz-page .product-card .product-actions {
  display: flex; align-items: center; gap: .15rem; margin: .35rem -.55rem -.55rem; padding: .45rem .55rem .45rem .6rem;
  border-top: 1px solid var(--ig-line, #EFEFEF); background: #fff;
}
.biz-page .product-card .product-actions .btn-outline-ink { height: 32px; padding: 0 .8rem; font-size: .8rem; }
.biz-page .product-card .product-actions > :first-child { margin-right: auto; }
.biz-page .product-card .product-actions .btn-icon { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.biz-page .product-card .product-actions .btn-icon:hover { background: #F3F3F3; color: var(--ink); }
.biz-page .product-card.is-hidden .product-media img { opacity: .55; }

/* Contenido a todo el ancho disponible (tope más amplio). */
@media (min-width: 992px) {
  .app-main.biz-page > * { max-width: 1360px; }
  .biz-page .product-form-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Ajustes: el candado del nombre bloqueado no se monta sobre el texto. */
.edit-ig .input-wrap.has-icon .form-control { padding-left: 2.75rem !important; }
.edit-ig .input-wrap.has-icon .input-icon { left: 1rem; }
@media (max-width: 575.98px) {
  .biz-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .biz-page .product-card { padding: .4rem; border-radius: 16px; }
  .biz-page .product-card .product-body { padding: .6rem .3rem .3rem; }
  .biz-page .product-card .product-actions { margin: .3rem -.4rem -.4rem; padding: .35rem .4rem; }
  .biz-page .product-card .product-actions .btn-outline-ink { padding: 0 .6rem; }
  .biz-page .product-card .product-actions .btn-icon { width: 30px; height: 30px; }
}

/* ==========================================================================
   r55: avisos en vivo (pedidos nuevos y visitantes), arriba a la derecha
   ========================================================================== */
.page-app .toast-region { top: calc(var(--topbar-h) + .75rem); }
.live-toast {
  pointer-events: auto; display: flex; align-items: center; gap: .8rem; width: 100%; max-width: 360px;
  padding: .8rem .6rem .8rem .85rem; background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid #E8E8E8; border-radius: 16px; box-shadow: 0 12px 32px -10px rgba(17, 17, 17, .22);
  opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.live-toast.is-in { opacity: 1; transform: none; }
.live-toast.is-out { opacity: 0; transform: translateY(-6px); }
a.live-toast:hover { color: var(--ink); border-color: #D6D6D6; }
.live-toast-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #F2F2F2; color: var(--ink); font-size: 1.05rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #22A55B; box-shadow: 0 0 0 0 rgba(34, 165, 91, .45); animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 165, 91, .45); } 100% { box-shadow: 0 0 0 10px rgba(34, 165, 91, 0); } }
.live-toast-body { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.live-toast-body strong { font-size: .88rem; font-weight: 600; }
.live-toast-body small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-toast-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.live-toast-close:hover { background: #F3F3F3; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .live-toast { transition: none; } }

/* ---------- r55: Perfil y Seguridad a pantalla completa (misma estructura que Ajustes) ---------- */
.acct-layout .acct-content .page-head { margin-bottom: 1.75rem; }
.acct-layout .acct-content .page-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.acct-layout .acct-content .settings { gap: 1.25rem; }
.acct-layout .acct-content .panel { border: 1px solid #E8E8E8; border-radius: 18px; box-shadow: none; }
@media (min-width: 992px) { .acct-layout .acct-content .settings-row { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 991.98px) { .acct-layout > .edit-nav { display: none !important; } .acct-layout .acct-content { display: block !important; } }

/* ==========================================================================
   r56: Notificaciones e Indicadores de la tienda
   ========================================================================== */
.ic-bell{--i:url("data:image/svg+xml,%3Csvg%20stroke%3D%22%23000%22%20fill%3D%22none%22%20stroke-width%3D%221.75%22%20viewBox%3D%220%200%2024%2024%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6%208a6%206%200%200%201%2012%200c0%207%203%209%203%209H3s3-2%203-9%22%2F%3E%3Cpath%20d%3D%22M10.3%2021a1.94%201.94%200%200%200%203.4%200%22%2F%3E%3C%2Fsvg%3E")}

/* Menú lateral: contador de notificaciones */
.side-notif { position: relative; }
.side-notif-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 999px; background: #E0245E; color: #fff; font-size: .68rem; font-weight: 700; line-height: 20px; text-align: center; }
.side-notif-badge[hidden] { display: none; }
@media (min-width: 992px) {
  body.sidebar-mini .side-notif-badge { position: absolute; top: 3px; left: 27px; margin: 0; min-width: 17px; height: 17px; padding: 0 .28rem; line-height: 13px; font-size: .62rem; border: 2px solid #fff; box-sizing: content-box; }
}

/* Página de notificaciones */
.notif-layout .edit-nav-link { align-items: center; }
.notif-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px; background: #E0245E; color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
.notif-chips { display: none; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: -.5rem 0 1.25rem; }
.notif-chip { flex: none; height: 36px; padding: 0 .95rem; display: inline-flex; align-items: center; border: 1px solid #E3E3E3; border-radius: 999px; font-size: .85rem; color: var(--ink); text-decoration: none; }
.notif-chip.is-active { background: #EFEFEF; border-color: #EFEFEF; font-weight: 600; }
@media (max-width: 991.98px) { .notif-chips { display: flex; } }
.notif-group { margin-bottom: 1.5rem; }
.notif-group-title { font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; }
.notif-list { list-style: none; margin: 0; padding: 0; border: 1px solid #E8E8E8; border-radius: 18px; overflow: hidden; background: #fff; }
.notif-list li + li { border-top: 1px solid #EFEFEF; }
.notif-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; color: var(--ink); text-decoration: none; position: relative; }
a.notif-item:hover { background: #FAFAFA; color: var(--ink); }
.notif-item.is-unread { background: #FBFBFF; }
.notif-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F2F2F2; color: var(--ink); font-size: 1.05rem; }
.notif-icon.tone-ok { background: #E8F6EE; color: #1E7A45; }
.notif-icon.tone-warn { background: #FDF3E1; color: #9A5B00; }
.notif-icon.tone-danger { background: #FDECEC; color: #B42318; }
.notif-body { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.notif-body strong { font-size: .9rem; font-weight: 600; }
.notif-body small { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-item time { flex: none; font-size: .76rem; color: var(--faint); }
.notif-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3B5BFD; }
.notif-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed #E3E3E3; border-radius: 18px; }
.notif-empty-icon { width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center; background: #F2F2F2; font-size: 1.4rem; }
.notif-empty strong { display: block; margin-bottom: .35rem; }
.notif-empty p { color: var(--muted); font-size: .88rem; max-width: 420px; margin: 0 auto; }
@media (max-width: 575.98px) { .notif-item { padding: .8rem .9rem; gap: .7rem; } .notif-item time { display: none; } }

/* Indicadores de la tienda */
.sst { padding-top: .25rem; }
.sst-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1.1rem; }
.sst-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 .15rem; }
.sst-periods { display: inline-flex; gap: .35rem; }
.sst-period { height: 34px; padding: 0 .9rem; display: inline-flex; align-items: center; border: 1px solid #E3E3E3; border-radius: 999px; font-size: .82rem; color: var(--ink); text-decoration: none; }
.sst-period.is-active { background: #EFEFEF; border-color: #EFEFEF; font-weight: 600; }
.sst-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #E8E8E8; border-radius: 18px; overflow: hidden; margin-bottom: 1rem; background: #fff; }
.sst-kpi { display: grid; gap: .2rem; padding: 1.05rem 1.25rem; }
.sst-kpi + .sst-kpi { border-left: 1px solid #EFEFEF; }
.sst-kpi span { font-size: .8rem; color: var(--muted); }
.sst-kpi strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.sst-kpi small { font-size: .75rem; color: var(--faint); }
.sst-card { border: 1px solid #E8E8E8; border-radius: 18px; background: #fff; padding: 1.1rem 1.25rem 1.2rem; margin-bottom: 1rem; min-width: 0; }
.sst-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.sst-card-head h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.sst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.sst-grid .sst-card { margin-bottom: 0; }
.sst-chart { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.sst-chart li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; }
.sst-chart.is-dense { gap: 2px; }
.sst-col { flex: 1; width: 100%; max-width: 28px; display: flex; align-items: flex-end; background: #F4F4F4; border-radius: 6px; overflow: hidden; }
.sst-col-fill { width: 100%; height: 0; background: var(--ink); border-radius: 6px; transition: height 500ms var(--ease); }
.sst-chart li:last-child .sst-col-fill { background: #3B5BFD; }
.sst-chart small { font-size: .66rem; color: var(--faint); white-space: nowrap; }
.sst-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.sst-bars li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: .6rem; font-size: .84rem; }
.sst-bar-label { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.sst-bar-label i { color: var(--muted); flex: none; }
.sst-bar-track { height: 6px; border-radius: 6px; background: #F1F1F1; overflow: hidden; }
.sst-bar-fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 6px; transition: width 500ms var(--ease); }
.sst-bar-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.sst-bar-value small { font-weight: 400; color: var(--faint); margin-left: .15rem; }
.sst-empty { font-size: .84rem; color: var(--muted); margin: 0; }
.sst-top { list-style: none; margin: 0; padding: 0; }
.sst-top li { display: flex; align-items: center; gap: .65rem; padding: .6rem 0; font-size: .88rem; }
.sst-top li + li { border-top: 1px solid #EFEFEF; }
.sst-top-rank { width: 22px; height: 22px; border-radius: 50%; background: #F2F2F2; font-size: .72rem; font-weight: 600; display: grid; place-items: center; flex: none; }
.sst-top i { color: var(--muted); flex: none; }
.sst-top .text-truncate { flex: 1; min-width: 0; }
.sst-top strong { font-weight: 600; }
.sst-top small { color: var(--faint); font-size: .76rem; width: 90px; text-align: right; }
.sst-none { display: flex; gap: 1rem; align-items: flex-start; border-style: dashed; }
.sst-none-icon { width: 44px; height: 44px; border-radius: 50%; background: #F2F2F2; display: grid; place-items: center; flex: none; font-size: 1.15rem; }
.sst-none p { color: var(--muted); font-size: .86rem; margin-top: .25rem; }
.sst-note { font-size: .78rem; color: var(--faint); display: flex; gap: .4rem; align-items: center; margin: .25rem 0 0; }
@media (max-width: 1199.98px) { .sst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .sst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sst-kpi:nth-child(3) { border-left: 0; }
  .sst-kpi:nth-child(n+3) { border-top: 1px solid #EFEFEF; }
  .sst-grid { grid-template-columns: minmax(0, 1fr); }
  .sst-chart { height: 120px; }
  .sst-top small { display: none; }
}
