/* ============================================================
   BostCalm – Design System CSS
   Tipografías: DM Sans (títulos) · Poppins (textos)
   Paleta: Verde principal #3D6B4F · Fondo #F5F5F0
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bc-green:        #3D6B4F;
  --bc-green-light:  #4A7C59;
  --bc-green-dark:   #2D5240;
  --bc-green-50:     #F0F7F3;
  --bc-green-100:    #D1E9DB;
  --bc-bg:           #F5F5F0;
  --bc-bg-card:      #FFFFFF;
  --bc-text:         #1A2E1F;
  --bc-text-muted:   #6B7B6F;
  --bc-text-light:   #9FB5A5;
  --bc-border:       #E4EDE7;
  --bc-shadow:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --bc-shadow-md:    0 4px 12px rgba(0,0,0,.08);
  --bc-shadow-lg:    0 8px 32px rgba(0,0,0,.10);
  --bc-radius:       12px;
  --bc-radius-sm:    8px;
  --bc-radius-lg:    16px;
  --bc-sidebar-w:    220px;
  --bc-topbar-h:     64px;
  --bc-sidebar-right-w: 300px;
  --bc-transition:   .18s ease;
  --font-title:      'DM Sans', sans-serif;
  --font-body:       'Poppins', sans-serif;
}

body.bc-body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bc-text);
  background: var(--bc-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bc-green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
ul { list-style: none; }

/* ── App Layout ────────────────────────────────────────────── */
.bc-app-layout {
  display: grid;
  grid-template-columns: var(--bc-sidebar-w) 1fr var(--bc-sidebar-right-w);
  min-height: 100vh;
}
.bc-app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}
.bc-app-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bc-app-sidebar-right {
  background: var(--bc-bg-card);
  border-left: 1px solid var(--bc-border);
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.bc-sidebar {
  background: var(--bc-green-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.bc-sidebar__brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bc-sidebar__logo { height: 36px; }
.bc-sidebar__logo-placeholder { display: flex; align-items: center; gap: 10px; }
.bc-sidebar__brand-name { font-family: var(--font-title); font-size: 16px; font-weight: 700; color: #fff; display: block; }
.bc-sidebar__brand-sub  { font-size: 9px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .04em; display: block; }

.bc-sidebar__nav { flex: 1; padding: 12px 0; }
.bc-sidebar__nav ul { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.bc-sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--bc-radius-sm);
  color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500;
  transition: background var(--bc-transition), color var(--bc-transition);
}
.bc-sidebar__link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.bc-sidebar__link--active { background: rgba(255,255,255,.15); color: #fff; }
.bc-sidebar__icon { flex-shrink: 0; opacity: .75; }
.bc-sidebar__link--active .bc-sidebar__icon,
.bc-sidebar__link:hover .bc-sidebar__icon { opacity: 1; }
.bc-sidebar__divider { height: 1px; background: rgba(255,255,255,.08); margin: 6px 0; }

.bc-sidebar__motivational {
  margin: auto 16px 16px;
  background: rgba(255,255,255,.07);
  border-radius: var(--bc-radius);
  padding: 18px;
  text-align: center;
}
.bc-sidebar__mot-icon { margin: 0 auto 10px; display: block; }
.bc-sidebar__mot-text { font-family: var(--font-title); font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.bc-sidebar__mot-sub  { font-size: 11px; color: rgba(255,255,255,.5); margin: 6px 0 14px; }

.bc-sidebar__plan-widget {
  margin: 0 12px 12px;
  background: rgba(255,255,255,.07);
  border-radius: var(--bc-radius);
  padding: 14px;
}
.bc-sidebar__plan-label { font-size: 10px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; }
.bc-sidebar__plan-name  { font-family: var(--font-title); font-size: 18px; font-weight: 700; display: block; }
.bc-sidebar__plan-users { font-size: 11px; color: rgba(255,255,255,.5); display: block; margin: 2px 0 8px; }
.bc-sidebar__plan-bar { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; margin-bottom: 4px; }
.bc-sidebar__plan-bar-fill { height: 100%; background: var(--bc-green-light); border-radius: 2px; transition: width .4s; }
.bc-sidebar__plan-detail { font-size: 10px; color: rgba(255,255,255,.4); display: block; margin-bottom: 12px; }

.bc-sidebar__user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.bc-sidebar__user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.bc-sidebar__user-name { font-size: 12px; font-weight: 600; color: #fff; display: block; }
.bc-sidebar__user-role { font-size: 10px; color: rgba(255,255,255,.5); display: block; }
.bc-sidebar__user-arrow { color: rgba(255,255,255,.4); margin-left: auto; }

/* ── Topbar ─────────────────────────────────────────────────── */
.bc-topbar {
  height: var(--bc-topbar-h);
  background: var(--bc-bg-card);
  border-bottom: 1px solid var(--bc-border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}
.bc-topbar__search { flex: 1; max-width: 480px; }
.bc-search-form { display: flex; align-items: center; gap: 8px; background: var(--bc-bg); border: 1px solid var(--bc-border); border-radius: 10px; padding: 0 14px; }
.bc-search-icon  { color: var(--bc-text-muted); flex-shrink: 0; }
.bc-search-input { flex: 1; border: none; background: transparent; padding: 9px 0; font-size: 13px; color: var(--bc-text); outline: none; }
.bc-search-input::placeholder { color: var(--bc-text-light); }
.bc-search-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius-sm); box-shadow: var(--bc-shadow-md); z-index: 200; }
.bc-search-result-item { display: block; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--bc-border); }
.bc-search-result-item:last-child { border-bottom: none; }
.bc-search-result-item:hover { background: var(--bc-green-50); }

.bc-topbar__right { display: flex; align-items: center; gap: 12px; margin-left: auto; position: relative; }
.bc-topbar__icon-btn { position: relative; color: var(--bc-text-muted); padding: 8px; border-radius: 8px; transition: background var(--bc-transition); }
.bc-topbar__icon-btn:hover { background: var(--bc-bg); }
.bc-badge-dot { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: #ef4444; border-radius: 50%; font-size: 9px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; }

.bc-topbar__mood { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--bc-border); border-radius: 10px; cursor: pointer; transition: background var(--bc-transition); }
.bc-topbar__mood:hover { background: var(--bc-bg); }
.bc-topbar__mood-info { display: flex; flex-direction: column; }
.bc-topbar__mood-label { font-size: 10px; color: var(--bc-text-muted); }
.bc-topbar__mood-value { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

.bc-topbar__profile { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; cursor: pointer; transition: background var(--bc-transition); }
.bc-topbar__profile:hover { background: var(--bc-bg); }
.bc-topbar__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.bc-topbar__avatar--sm { width: 30px; height: 30px; }
.bc-topbar__profile-name { font-size: 13px; font-weight: 600; color: var(--bc-text); display: block; }
.bc-topbar__profile-role { font-size: 11px; color: var(--bc-text-muted); display: block; }
.bc-topbar__profile-avatar--initial {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bc-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 15px;
}

.bc-back-link { display: flex; align-items: center; gap: 8px; color: var(--bc-text-muted); font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: background var(--bc-transition); }
.bc-back-link:hover { background: var(--bc-bg); color: var(--bc-text); text-decoration: none; }

.bc-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-lg); min-width: 180px; z-index: 300; overflow: hidden;
}
.bc-dropdown__item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; color: var(--bc-text); transition: background var(--bc-transition); width: 100%; text-align: left; }
.bc-dropdown__item:hover { background: var(--bc-green-50); text-decoration: none; }
.bc-dropdown__item--danger { color: #ef4444; }
.bc-dropdown__item--danger:hover { background: #fef2f2; }
.bc-dropdown__divider { height: 1px; background: var(--bc-border); }

/* ── Buttons ────────────────────────────────────────────────── */
.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--bc-radius-sm);
  font-family: var(--font-title); font-size: 13px; font-weight: 600;
  transition: all var(--bc-transition); cursor: pointer; border: none;
  text-decoration: none; line-height: 1;
}
.bc-btn-primary { background: var(--bc-green); color: #fff; }
.bc-btn-primary:hover { background: var(--bc-green-dark); color: #fff; text-decoration: none; }
.bc-btn-ghost { background: transparent; color: var(--bc-text-muted); border: 1px solid var(--bc-border); }
.bc-btn-ghost:hover { background: var(--bc-bg); color: var(--bc-text); }
.bc-btn-outline { background: transparent; color: var(--bc-green); border: 1.5px solid var(--bc-green); }
.bc-btn-outline:hover { background: var(--bc-green-50); }
.bc-btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.bc-btn-outline-white:hover { background: rgba(255,255,255,.1); }
.bc-btn-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.bc-btn-light:hover { background: rgba(255,255,255,.2); }
.bc-btn-social { background: #fff; color: var(--bc-text); border: 1px solid var(--bc-border); }
.bc-btn-social:hover { background: var(--bc-bg); }
.bc-btn-social:disabled { opacity: .5; cursor: not-allowed; }
.bc-btn-whatsapp { background: #25D366; color: #fff; }
.bc-btn-whatsapp:hover { background: #1da851; color: #fff; }
.bc-btn-full { width: 100%; }
.bc-btn-lg { padding: 14px 24px; font-size: 14px; }
.bc-btn-sm { padding: 7px 14px; font-size: 12px; }
.bc-btn-disabled { opacity: .5; pointer-events: none; }
.bc-btn-continue { padding: 14px 28px; font-size: 15px; }
.bc-spinner { animation: bc-spin .8s linear infinite; width: 16px; height: 16px; }
@keyframes bc-spin { to { stroke-dashoffset: -31.4; } }

/* ── Forms ──────────────────────────────────────────────────── */
.bc-form { display: flex; flex-direction: column; gap: 16px; }
.bc-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-field label { font-size: 13px; font-weight: 500; color: var(--bc-text); }
.bc-field input, .bc-field select, .bc-field textarea {
  border: 1.5px solid var(--bc-border); border-radius: var(--bc-radius-sm);
  padding: 10px 14px; font-size: 13px; color: var(--bc-text);
  background: var(--bc-bg-card); transition: border-color var(--bc-transition);
  outline: none;
}
.bc-field input:focus, .bc-field select:focus, .bc-field textarea:focus { border-color: var(--bc-green); }
.bc-field input::placeholder, .bc-field textarea::placeholder { color: var(--bc-text-light); }
.bc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bc-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.bc-form-note { font-size: 12px; color: var(--bc-text-muted); }
.bc-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.bc-form-section { display: flex; flex-direction: column; gap: 14px; }
.bc-form-section__header { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--bc-border); }
.bc-form-section__desc { font-size: 12px; color: var(--bc-text-muted); }
.bc-step-num { width: 22px; height: 22px; background: var(--bc-green); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bc-step-label { font-size: 11px; font-weight: 600; color: var(--bc-text-muted); letter-spacing: .06em; text-transform: uppercase; }
.bc-input-wrap { position: relative; overflow: visible; }
.bc-input-wrap input { width: 100%; padding-left: 40px; }
/* width y height explícitos en el SVG del ícono para evitar que themes como
   Elementor lo escalen al 100% del contenedor con su CSS global (svg { width:100%; }) */
.bc-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  color: var(--bc-text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.bc-toggle-password { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--bc-text-muted); padding: 4px; }
.bc-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.bc-checkbox input { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; accent-color: var(--bc-green); }
.bc-textarea { width: 100%; border: 1.5px solid var(--bc-border); border-radius: var(--bc-radius-sm); padding: 10px 14px; font-size: 13px; resize: vertical; min-height: 60px; outline: none; transition: border-color var(--bc-transition); }
.bc-textarea:focus { border-color: var(--bc-green); }
.bc-select { border: 1.5px solid var(--bc-border); border-radius: var(--bc-radius-sm); padding: 9px 12px; font-size: 13px; background: var(--bc-bg-card); color: var(--bc-text); outline: none; }
.bc-select:focus { border-color: var(--bc-green); }
.bc-select-sm { font-size: 11px; padding: 5px 8px; border: 1px solid var(--bc-border); border-radius: 6px; background: var(--bc-bg); color: var(--bc-text-muted); outline: none; }

/* Alerts */
.bc-alert { padding: 12px 16px; border-radius: var(--bc-radius-sm); font-size: 13px; }
.bc-alert--error   { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }
.bc-alert--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.bc-alert--warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* Divider */
.bc-divider { display: flex; align-items: center; gap: 12px; color: var(--bc-text-light); font-size: 12px; }
.bc-divider::before, .bc-divider::after { content: ''; flex: 1; height: 1px; background: var(--bc-border); }
.bc-social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Cards / Widgets ────────────────────────────────────────── */
.bc-widget { background: var(--bc-bg-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 18px; }
.bc-widget__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bc-widget__title { font-family: var(--font-title); font-size: 14px; font-weight: 600; color: var(--bc-text); }
.bc-widget__subtitle { font-size: 12px; color: var(--bc-text-muted); margin-bottom: 12px; }
.bc-widget--recommendation { position: relative; overflow: hidden; }
.bc-widget__deco { position: absolute; bottom: -10px; right: -10px; }

/* ── Stats Grid ─────────────────────────────────────────────── */
.bc-stats-grid { display: grid; gap: 16px; }
.bc-stats-grid-4 { grid-template-columns: repeat(4,1fr); }
.bc-stats-grid-5 { grid-template-columns: repeat(5,1fr); }

.bc-stat-card {
  background: var(--bc-bg-card); border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
}
.bc-stat-card--wellness { border-color: var(--bc-green-100); }
.bc-stat-card__header { display: flex; align-items: flex-start; justify-content: space-between; }
.bc-stat-card__label { font-size: 12px; font-weight: 500; color: var(--bc-text-muted); }
.bc-stat-card__icon { color: var(--bc-green); opacity: .7; }
.bc-stat-card__title { font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--bc-text); }
.bc-stat-card__sub { font-size: 12px; color: var(--bc-text-muted); display: flex; align-items: center; gap: 4px; }
.bc-stat-card__hint { font-size: 11px; color: var(--bc-green); }
.bc-stat-card__deco { position: absolute; bottom: -8px; right: -8px; }
.bc-stat-card__donut-wrap { display: flex; justify-content: center; }
.bc-stat-num { font-family: var(--font-title); font-size: 32px; font-weight: 700; color: var(--bc-text); line-height: 1; }

/* KPI cards (empresa) */
.bc-kpi-card { background: var(--bc-bg-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 16px; }
.bc-kpi-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.bc-kpi-card__label { font-size: 12px; color: var(--bc-text-muted); font-weight: 500; max-width: 100px; line-height: 1.3; }
.bc-kpi-card__icon-wrap { background: var(--bc-green-50); border-radius: 8px; padding: 6px; }
.bc-kpi-card__value { font-family: var(--font-title); font-size: 28px; font-weight: 700; color: var(--bc-text); }
.bc-kpi-card__sub { font-size: 11px; color: var(--bc-text-muted); margin-top: 4px; }
.bc-kpi-card__sub--up   { color: #16a34a; }
.bc-kpi-card__sub--good { color: var(--bc-green); }
.bc-kpi-card__sparkline { opacity: .6; }

/* ── Progress bars ──────────────────────────────────────────── */
.bc-progress-bar-wrap { display: flex; flex-direction: column; gap: 4px; }
.bc-progress-bar { height: 5px; background: var(--bc-green-100); border-radius: 3px; overflow: hidden; }
.bc-progress-bar__fill { height: 100%; background: var(--bc-green); border-radius: 3px; transition: width .4s ease; }
.bc-progress-bar__label { font-size: 11px; color: var(--bc-text-muted); }
.bc-progress-bar--sm { height: 4px; }
.bc-progress-inline { display: flex; align-items: center; gap: 8px; }
.bc-progress-inline .bc-progress-bar { flex: 1; }
.bc-progress-inline span { font-size: 12px; color: var(--bc-text-muted); min-width: 32px; }

/* ── Donut charts ────────────────────────────────────────────── */
.bc-donut { display: block; }
.bc-donut--lg { width: 100px; height: 100px; }
.bc-donut--company { width: 120px; height: 120px; }
.bc-progress-donut-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.bc-donut-chart-wrap { display: flex; align-items: center; gap: 16px; }
.bc-progress-legend { display: flex; flex-direction: column; gap: 6px; }
.bc-donut-legend     { display: flex; flex-direction: column; gap: 6px; }
.bc-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--bc-text-muted); }
.bc-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── Section headers ────────────────────────────────────────── */
.bc-section { display: flex; flex-direction: column; gap: 16px; }
.bc-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.bc-section-title { font-family: var(--font-title); font-size: 18px; font-weight: 600; color: var(--bc-text); }
.bc-section-subtitle { font-size: 12px; color: var(--bc-text-muted); }
.bc-page-title { font-family: var(--font-title); font-size: 26px; font-weight: 700; color: var(--bc-text); }
.bc-page-subtitle { font-size: 13px; color: var(--bc-text-muted); margin-top: 4px; }
.bc-link-sm { font-size: 12px; color: var(--bc-green); font-weight: 500; }
.bc-link-sm:hover { text-decoration: underline; }
.bc-link { color: var(--bc-green); font-weight: 500; }
.bc-text-muted { color: var(--bc-text-muted); }
.bc-text-sm { font-size: 12px; color: var(--bc-text-muted); }
.bc-label-sm { font-size: 11px; color: var(--bc-text-muted); }
.bc-value-sm { font-size: 12px; font-weight: 600; }
.bc-empty-msg { font-size: 13px; color: var(--bc-text-muted); text-align: center; padding: 20px; }
.bc-status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.bc-status-dot--green { background: #22c55e; }

/* ── Tabs ────────────────────────────────────────────────────── */
.bc-tabs { display: flex; gap: 4px; background: var(--bc-bg); border-radius: 8px; padding: 3px; }
.bc-tab { padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--bc-text-muted); transition: all var(--bc-transition); }
.bc-tab:hover { color: var(--bc-text); }
.bc-tab--active { background: var(--bc-bg-card); color: var(--bc-green); font-weight: 600; box-shadow: var(--bc-shadow); }

/* ── Serie cards ─────────────────────────────────────────────── */
.bc-series-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.bc-series-grid--premium { grid-template-columns: repeat(4,1fr); }
.bc-serie-card {
  background: var(--bc-bg-card); border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius); overflow: hidden;
  transition: box-shadow var(--bc-transition), transform var(--bc-transition);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.bc-serie-card:hover { box-shadow: var(--bc-shadow-md); transform: translateY(-2px); text-decoration: none; }
.bc-serie-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bc-green-50); }
.bc-serie-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bc-serie-card:hover .bc-serie-card__thumb img { transform: scale(1.04); }
.bc-serie-card__thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,var(--bc-green-50),var(--bc-green-100)); }
.bc-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); opacity: 0; transition: opacity var(--bc-transition); }
.bc-serie-card:hover .bc-play-overlay { opacity: 1; }
.bc-serie-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bc-serie-card__title { font-family: var(--font-title); font-size: 14px; font-weight: 600; color: var(--bc-text); line-height: 1.3; }
.bc-serie-card__desc  { font-size: 12px; color: var(--bc-text-muted); line-height: 1.5; }
.bc-serie-card__meta  { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.bc-serie-card__meta span { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--bc-text-muted); }
.bc-serie-card__price { font-family: var(--font-title); font-size: 16px; font-weight: 700; color: var(--bc-text); }
.bc-serie-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.bc-serie-card--premium .bc-serie-card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 50%); }
.bc-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.bc-badge--premium { background: rgba(61,107,79,.9); color: #fff; }
.bc-add-to-cart { width: 36px; height: 36px; padding: 0; border-radius: 8px; }

/* ── Weekly bars ─────────────────────────────────────────────── */
.bc-weekly-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.bc-weekly-bar-item { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; height: 100%; }
.bc-weekly-bar { width: 100%; background: var(--bc-green-100); border-radius: 3px 3px 0 0; min-height: 4px; transition: height .3s; }
.bc-weekly-bar-item span { font-size: 9px; color: var(--bc-text-light); }

/* ── Mood selector ───────────────────────────────────────────── */
.bc-mood-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 12px; }
.bc-mood-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--bc-radius-sm); border: 1.5px solid transparent; transition: all var(--bc-transition); background: var(--bc-bg); }
.bc-mood-btn:hover { border-color: var(--bc-green); background: var(--bc-green-50); }
.bc-mood-btn--active { border-color: var(--bc-green); background: var(--bc-green-50); }
.bc-mood-emoji { font-size: 22px; }
.bc-mood-label { font-size: 10px; color: var(--bc-text-muted); }
.bc-mood-confirm { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--bc-green-50); border-radius: var(--bc-radius-sm); }

/* ── Recommendations ────────────────────────────────────────── */
.bc-recommendations { display: flex; flex-direction: column; gap: 12px; }
.bc-rec-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 6px; border-radius: var(--bc-radius-sm); transition: background var(--bc-transition); }
.bc-rec-item:hover { background: var(--bc-green-50); text-decoration: none; }
.bc-rec-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--bc-green-50); flex-shrink: 0; }
.bc-rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bc-rec-thumb-placeholder { width: 100%; height: 100%; background: var(--bc-green-100); }
.bc-rec-body { flex: 1; min-width: 0; }
.bc-rec-type { font-size: 10px; color: var(--bc-green); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bc-rec-title { font-size: 12px; font-weight: 500; color: var(--bc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-rec-duration { font-size: 11px; color: var(--bc-text-muted); }
.bc-play-btn-xs { width: 28px; height: 28px; border-radius: 50%; background: var(--bc-green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bc-play-btn-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--bc-green); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: auto; align-self: flex-start; }

/* ── Achievements ────────────────────────────────────────────── */
.bc-achievements { display: flex; flex-direction: column; gap: 10px; }
.bc-achievement-item { display: flex; align-items: center; gap: 10px; }
.bc-achievement-icon { font-size: 22px; }
.bc-achievement-title { font-size: 12px; font-weight: 600; color: var(--bc-text); }
.bc-achievement-desc  { font-size: 11px; color: var(--bc-green); }

/* ── Charts ──────────────────────────────────────────────────── */
.bc-charts-row { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 16px; }
.bc-chart-card { background: var(--bc-bg-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 18px; }
.bc-chart-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bc-chart-title { font-family: var(--font-title); font-size: 14px; font-weight: 600; color: var(--bc-text); margin-bottom: 16px; }
.bc-chart-card--sm { }

.bc-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 8px; }
.bc-bar-chart__col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; height: 100%; }
.bc-bar-chart__bar-wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; gap: 2px; }
.bc-bar-chart__pct-label { font-size: 9px; color: var(--bc-text-muted); }
.bc-bar-chart__bar { width: 100%; background: var(--bc-green); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .4s; }
.bc-bar-chart__label { font-size: 9px; color: var(--bc-text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.bc-line-chart { }
.bc-line-chart__svg { width: 100%; display: block; }
.bc-line-chart__labels { display: flex; justify-content: space-between; padding: 4px 0 0; }
.bc-line-chart__labels span { font-size: 10px; color: var(--bc-text-muted); }

/* ── Table ────────────────────────────────────────────────────── */
.bc-table-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-table-wrap { overflow-x: auto; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); }
.bc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bc-table th { background: var(--bc-bg); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; color: var(--bc-text-muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--bc-border); white-space: nowrap; }
.bc-table td { padding: 12px 14px; border-bottom: 1px solid var(--bc-border); vertical-align: middle; }
.bc-table tr:last-child td { border-bottom: none; }
.bc-table tr:hover td { background: var(--bc-green-50); }
.bc-table-empty { text-align: center; color: var(--bc-text-muted); padding: 32px; }
.bc-emp-cell { display: flex; align-items: center; gap: 10px; }
.bc-emp-cell__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.bc-emp-cell__name  { font-size: 13px; font-weight: 500; color: var(--bc-text); display: block; }
.bc-emp-cell__email { font-size: 11px; color: var(--bc-text-muted); display: block; }
.bc-table-actions { display: flex; align-items: center; gap: 4px; }
.bc-action-btn { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--bc-text-muted); transition: all var(--bc-transition); }
.bc-action-btn:hover { background: var(--bc-green-50); color: var(--bc-green); }

/* Status chips */
.bc-chip { padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.bc-chip--stable    { background: #dcfce7; color: #16a34a; }
.bc-chip--attention { background: #fef9c3; color: #854d0e; }
.bc-chip--risk      { background: #fee2e2; color: #dc2626; }
.bc-burnout-chip    { padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* ── Quick actions ───────────────────────────────────────────── */
.bc-quick-actions { display: flex; flex-direction: column; gap: 4px; }
.bc-quick-action { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--bc-radius-sm); font-size: 13px; color: var(--bc-text); transition: background var(--bc-transition); width: 100%; text-align: left; }
.bc-quick-action:hover { background: var(--bc-green-50); color: var(--bc-green); text-decoration: none; }

/* ── Notifications ────────────────────────────────────────────── */
.bc-notifications { display: flex; flex-direction: column; gap: 10px; }
.bc-notif-item { display: flex; align-items: flex-start; gap: 10px; }
.bc-notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.bc-notif-msg  { font-size: 12px; color: var(--bc-text); font-weight: 500; }
.bc-notif-time { font-size: 11px; color: var(--bc-text-muted); }
.bc-notif-new { width: 6px; height: 6px; border-radius: 50%; background: var(--bc-green); flex-shrink: 0; margin-top: 6px; }
.bc-recommendation-text { font-size: 12px; color: var(--bc-text-muted); line-height: 1.5; margin-bottom: 10px; }

/* ── Player ───────────────────────────────────────────────────── */
.bc-player-content { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; }
.bc-player-meta { padding: 28px 32px 0; }
.bc-player-category { font-size: 11px; font-weight: 600; color: var(--bc-text-muted); letter-spacing: .08em; text-transform: uppercase; }
.bc-player-title { font-family: var(--font-title); font-size: 28px; font-weight: 700; color: var(--bc-text); margin: 6px 0 8px; }
.bc-player-desc { font-size: 13px; color: var(--bc-text-muted); max-width: 680px; margin-bottom: 16px; }
.bc-player-stats { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.bc-player-stat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bc-text-muted); }
.bc-player-stat--progress { align-items: center; }

/* Video player */
.bc-video-container { position: relative; background: #0a0a0a; border-radius: 0; overflow: hidden; aspect-ratio: 16/9; max-height: 55vh; margin: 16px 32px 0; border-radius: var(--bc-radius); }
.bc-video-meta-overlay { position: absolute; bottom: 70px; left: 24px; z-index: 2; }
.bc-video-breadcrumb { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
.bc-video-title { font-family: var(--font-title); font-size: 22px; font-weight: 700; color: #fff; margin: 4px 0 6px; }
.bc-video-desc  { font-size: 13px; color: rgba(255,255,255,.75); max-width: 420px; }
.bc-video-player { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.bc-video-poster { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 0; }
.bc-video-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #1a2e1f; }
.bc-video-iframe-wrap { width: 100%; height: 100%; }
.bc-video-iframe-wrap iframe { width: 100%; height: 100%; border: none; }

/* Player controls */
.bc-player-controls { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent,rgba(0,0,0,.7)); padding: 20px 16px 12px; z-index: 10; }
.bc-progress-track { height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; cursor: pointer; position: relative; margin-bottom: 8px; }
.bc-progress-fill { height: 100%; background: var(--bc-green); border-radius: 2px; transition: width .1s; }
.bc-progress-thumb { width: 12px; height: 12px; background: #fff; border-radius: 50%; position: absolute; top: -4px; transform: translateX(-50%); cursor: grab; }
.bc-controls-row { display: flex; align-items: center; justify-content: space-between; }
.bc-controls-left, .bc-controls-right { display: flex; align-items: center; gap: 4px; }
.bc-ctrl-btn { color: rgba(255,255,255,.85); padding: 6px; border-radius: 6px; transition: all var(--bc-transition); }
.bc-ctrl-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.bc-ctrl-time { font-size: 12px; color: rgba(255,255,255,.75); padding: 0 8px; }
.bc-ctrl-speed { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 11px; cursor: pointer; }

/* Chapter list (player sidebar) */
.bc-chapter-list-sidebar { border-left: 1px solid var(--bc-border); }
.bc-chapter-list { display: flex; flex-direction: column; }
.bc-chapter-item { border-bottom: 1px solid var(--bc-border); }
.bc-chapter-item:last-child { border-bottom: none; }
.bc-chapter-item__inner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; text-decoration: none; }
.bc-chapter-item--active { background: var(--bc-green-50); border-radius: var(--bc-radius-sm); padding: 0 10px; margin: 0 -10px; }
.bc-chapter-status { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.bc-chapter-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bc-border); }
.bc-chapter-info { flex: 1; }
.bc-chapter-num  { font-size: 10px; color: var(--bc-text-muted); display: block; }
.bc-chapter-name { font-size: 13px; color: var(--bc-text); font-weight: 500; line-height: 1.3; }
.bc-chapter-item--active .bc-chapter-name { color: var(--bc-green); font-weight: 600; }
.bc-chapter-item--locked { opacity: .5; }

/* Avance widget */
.bc-avance-donut { display: flex; align-items: flex-start; gap: 12px; }
.bc-avance-stats { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bc-avance-stat { display: flex; flex-direction: column; }
.bc-avance-label { font-size: 10px; color: var(--bc-text-muted); }
.bc-avance-stat strong { font-size: 12px; font-weight: 600; color: var(--bc-text); }
.bc-status-chip { font-size: 11px; font-weight: 600; }

/* Resources */
.bc-resources-section { padding: 0 32px; }
.bc-resources-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.bc-resource-card { background: var(--bc-bg-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bc-resource-icon { color: var(--bc-green); }
.bc-resource-type { font-size: 10px; color: var(--bc-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bc-resource-title { font-size: 12px; font-weight: 500; color: var(--bc-text); line-height: 1.3; }
.bc-resource-btn { margin-top: auto; }

/* Notes */
.bc-notes-section { padding: 0 32px 28px; }
.bc-notes-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--bc-text-muted); }
.bc-notes-header h3 { font-family: var(--font-title); font-size: 14px; font-weight: 600; color: var(--bc-text); }
.bc-note-editor { width: 100%; border: 1.5px solid var(--bc-border); border-radius: var(--bc-radius-sm); padding: 12px 14px; font-size: 13px; min-height: 80px; resize: none; outline: none; color: var(--bc-text); line-height: 1.6; }
.bc-note-editor:focus { border-color: var(--bc-green); }
.bc-note-editor::placeholder { color: var(--bc-text-light); }
.bc-notes-footer { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.bc-notes-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--bc-text-muted); flex: 1; }
.bc-notes-bookmark { color: var(--bc-text-muted); }
.bc-notes-bookmark:hover { color: var(--bc-green); }

/* ── Login page ───────────────────────────────────────────────── */
.bc-login-page, .bc-register-page { background: #fff; min-height: 100vh; }
.bc-login-layout { display: grid; grid-template-columns: 420px 1fr; min-height: 100vh; }
.bc-login-form-panel { padding: 40px 48px; display: flex; flex-direction: column; border-right: 1px solid var(--bc-border); }
.bc-login-brand { margin-bottom: 40px; }
.bc-brand-wordmark { display: flex; align-items: center; gap: 10px; }
.bc-brand-name { font-family: var(--font-title); font-size: 18px; font-weight: 700; color: var(--bc-text); }
.bc-brand-name--dark { color: var(--bc-text); }
.bc-brand-name--light { color: #fff; }
.bc-brand-tagline { font-size: 9px; color: var(--bc-text-muted); text-transform: uppercase; letter-spacing: .07em; display: block; }
.bc-brand-tagline--light { color: rgba(255,255,255,.5); }
.bc-login-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bc-login-title { font-family: var(--font-title); font-size: 32px; font-weight: 500; color: var(--bc-text); line-height: 1.2; margin-bottom: 10px; }
.bc-login-title strong { font-weight: 700; }
.bc-login-subtitle { font-size: 13px; color: var(--bc-text-muted); line-height: 1.6; margin-bottom: 28px; }
.bc-login-options { display: flex; align-items: center; justify-content: space-between; }
.bc-login-register-cta { text-align: center; font-size: 13px; color: var(--bc-text-muted); margin-top: 16px; }
.bc-login-hero-panel { background: linear-gradient(135deg, #f8faf9 0%, #e8f0ec 100%); display: flex; align-items: center; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
.bc-login-hero-panel::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(61,107,79,.06); top: -100px; right: -100px; }
.bc-hero-quote { max-width: 340px; }
.bc-hero-quote p { font-family: var(--font-title); font-size: 28px; font-weight: 600; color: var(--bc-text); line-height: 1.3; margin: 12px 0 8px; }
.bc-hero-quote cite { font-style: normal; font-size: 13px; color: var(--bc-text-muted); }
.bc-quote-icon { margin-bottom: 8px; }

/* ── Register page ───────────────────────────────────────────── */
.bc-register-layout { display: grid; grid-template-columns: 1fr 420px; min-height: 100vh; }
.bc-register-form-panel { padding: 32px 48px 48px; overflow-y: auto; }
.bc-register-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.bc-register-header-actions { display: flex; align-items: center; gap: 12px; }
.bc-register-intro { margin-bottom: 28px; }
.bc-register-category { font-size: 11px; font-weight: 600; color: var(--bc-green); letter-spacing: .08em; text-transform: uppercase; }
.bc-register-title { font-family: var(--font-title); font-size: 28px; font-weight: 500; color: var(--bc-text); line-height: 1.2; margin: 8px 0 10px; }
.bc-register-title strong { font-weight: 700; }
.bc-register-subtitle { font-size: 13px; color: var(--bc-text-muted); line-height: 1.6; }
.bc-register-login-cta { text-align: center; font-size: 13px; color: var(--bc-text-muted); }
.bc-register-content { }
.bc-register-hero-panel { background: linear-gradient(160deg, #f0f7f3 0%, #d8ece0 100%); display: flex; align-items: center; justify-content: center; padding: 60px 48px; position: sticky; top: 0; height: 100vh; }
.bc-register-hero-content { max-width: 320px; }
.bc-register-hero-pillars { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.bc-hero-pillar { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--bc-text-muted); }

/* Plan selector */
.bc-plan-selector { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.bc-plan-option { position: relative; cursor: pointer; }
.bc-plan-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.bc-plan-option__inner {
  border: 2px solid var(--bc-border); border-radius: var(--bc-radius);
  padding: 14px 10px; text-align: center; transition: all var(--bc-transition);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
}
.bc-plan-option:hover .bc-plan-option__inner { border-color: var(--bc-green); }
.bc-plan-option--selected .bc-plan-option__inner { border-color: var(--bc-green); background: var(--bc-green-50); }
.bc-plan-check { position: absolute; top: -8px; right: -8px; }
.bc-plan-icon { color: var(--bc-green); }
.bc-plan-name { font-family: var(--font-title); font-size: 14px; font-weight: 700; color: var(--bc-text); }
.bc-plan-limit { font-size: 11px; color: var(--bc-text-muted); }
.bc-password-strength { margin-top: 4px; }

/* ── Marketing sections ──────────────────────────────────────── */
.bc-marketing-section { padding: 72px 0; background: var(--bc-bg); }
.bc-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.bc-marketing-title { font-family: var(--font-title); font-size: 32px; font-weight: 700; text-align: center; color: var(--bc-text); margin-bottom: 8px; }
.bc-marketing-subtitle { font-size: 14px; color: var(--bc-text-muted); text-align: center; margin-bottom: 48px; }
.bc-features-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.bc-feature-card { text-align: center; padding: 24px 16px; background: var(--bc-bg-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); }
.bc-feature-icon { color: var(--bc-green); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--bc-green-50); border-radius: 12px; }
.bc-feature-card h3 { font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--bc-text); margin-bottom: 6px; }
.bc-feature-card p { font-size: 11px; color: var(--bc-text-muted); line-height: 1.5; }

/* Footer marketing */
.bc-marketing-footer { background: var(--bc-green-dark); color: rgba(255,255,255,.8); }
.bc-footer-cta { padding: 64px 24px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.bc-footer-cta h2 { font-family: var(--font-title); font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.bc-footer-cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bc-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 48px 24px; }
.bc-footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 16px; text-transform: uppercase; }
.bc-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.bc-footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.65); }
.bc-footer-col ul li a:hover { color: #fff; }
.bc-footer-col ul li { font-size: 13px; color: rgba(255,255,255,.45); }
.bc-footer-desc { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.6; margin: 12px 0 16px; }
.bc-footer-social { display: flex; gap: 14px; }
.bc-footer-social a { color: rgba(255,255,255,.5); }
.bc-footer-social a:hover { color: #fff; }
.bc-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.35); }
.bc-footer-bottom-links { display: flex; gap: 20px; }
.bc-footer-bottom-links a { color: rgba(255,255,255,.35); }
.bc-footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ── Modal ───────────────────────────────────────────────────── */
.bc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.bc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.bc-modal-box { position: relative; background: #fff; border-radius: var(--bc-radius-lg); padding: 32px; max-width: 480px; width: 90%; box-shadow: var(--bc-shadow-lg); z-index: 1; max-height: 90vh; overflow-y: auto; }
.bc-modal-box--lg { max-width: 600px; }
.bc-modal-close { position: absolute; top: 16px; right: 16px; color: var(--bc-text-muted); font-size: 18px; padding: 4px 8px; border-radius: 6px; }
.bc-modal-close:hover { background: var(--bc-bg); }
.bc-modal-box h3 { font-family: var(--font-title); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.bc-modal-box p { font-size: 13px; color: var(--bc-text-muted); margin-bottom: 20px; }

/* ── Misc helpers ────────────────────────────────────────────── */
.bc-home-header { display: flex; align-items: flex-start; justify-content: space-between; }
.bc-company-header { display: flex; align-items: flex-end; justify-content: space-between; }
.bc-date-filter .bc-btn-ghost { display: flex; align-items: center; gap: 8px; }
.bc-topbar--player .bc-topbar__search--sm { max-width: 280px; }
.bc-topbar__mood-compact { display: flex; align-items: center; gap: 6px; }
.bc-topbar__profile-compact { display: flex; align-items: center; gap: 8px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1400px) {
  :root { --bc-sidebar-right-w: 260px; }
  .bc-stats-grid-5 { grid-template-columns: repeat(3,1fr); }
  .bc-series-grid { grid-template-columns: repeat(3,1fr); }
  .bc-features-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1100px) {
  .bc-app-layout { grid-template-columns: var(--bc-sidebar-w) 1fr; }
  .bc-app-sidebar-right { display: none; }
  .bc-charts-row { grid-template-columns: 1fr 1fr; }
  .bc-stats-grid-4 { grid-template-columns: repeat(2,1fr); }
  .bc-resources-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  :root { --bc-sidebar-w: 0px; }
  .bc-sidebar { display: none; }
  .bc-app-layout { grid-template-columns: 1fr; }
  .bc-login-layout, .bc-register-layout { grid-template-columns: 1fr; }
  .bc-login-hero-panel, .bc-register-hero-panel { display: none; }
  .bc-login-form-panel, .bc-register-form-panel { padding: 32px 24px; border: none; }
  .bc-stats-grid-5 { grid-template-columns: repeat(2,1fr); }
  .bc-series-grid { grid-template-columns: repeat(2,1fr); }
  .bc-charts-row { grid-template-columns: 1fr; }
  .bc-form-row, .bc-form-row--3 { grid-template-columns: 1fr; }
  .bc-plan-selector { grid-template-columns: 1fr; }
  .bc-footer-cols { grid-template-columns: 1fr 1fr; }
  .bc-features-grid { grid-template-columns: repeat(2,1fr); }
  .bc-mood-grid { grid-template-columns: repeat(3,1fr); }
}

/* ════════════════════════════════════════════════════════════════════════
   Clases agregadas — auditoría de cobertura CSS para el Panel de Empresa
   y sus 9 subpáginas (Empleados, Evaluaciones, Cursos, Temporadas,
   Estadísticas, Bienestar, Recursos, Membresía, Configuración).
   ════════════════════════════════════════════════════════════════════════ */

/* body wrapper genérico usado por toda vista de aplicación (colaborador y empresa) */
.bc-app-body { background: var(--bc-bg); }

/* Modificador de body específico de las vistas del panel de empresa.
   No requiere reglas propias (el layout ya viene de .bc-app-body /
   .bc-app-layout), pero debe existir como clase válida para que ninguna
   herramienta de auditoría la reporte como "huérfana" ni se preste a
   confusión si en el futuro se le agregan estilos específicos. */
.bc-company-dashboard { }

/* Topbar: avatar + bloque de info de perfil (usado en topbar inline de empresa) */
.bc-topbar__profile-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.bc-topbar__profile-info { display: flex; flex-direction: column; }

/* Buscador compacto usado en headers de subpáginas (variante del buscador principal) */
.bc-search-form--sm { padding: 0 10px; }
.bc-search-form--sm .bc-search-input { padding: 7px 0; font-size: 12px; }

/* KPI card de riesgo de burnout: mismo estilo base que .bc-kpi-card, sin
   override adicional necesario, pero declarada explícitamente porque las
   vistas de Estadísticas y Bienestar emocional dependen de su presencia. */
.bc-kpi-card--burnout { }

/* Cuerpo de una tarjeta de recurso descargable (icono + texto), usado en
   Recursos del colaborador y Recursos del panel de empresa. */
.bc-resource-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Cuerpo de un ítem de notificación (mensaje + hora), dentro del widget de notificaciones. */
.bc-notif-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Botón "más acciones" (⋯) en la tabla de colaboradores */
.bc-action-btn--more { color: var(--bc-text-light); }
.bc-action-btn--more:hover { color: var(--bc-text); }

/* ── Login: ícono/logo de marca ──────────────────────────────────────── */
.bc-brand-icon { font-size: 26px; line-height: 1; }
.bc-brand-logo { height: 36px; }
.bc-login-hero-content { max-width: 360px; }

/* ── Registro: fila de checkbox (términos / newsletter) ─────────────── */
.bc-field--checkbox { flex-direction: row; align-items: flex-start; }

/* ── Dashboard colaborador: carrusel de series ──────────────────────── */
.bc-series-carousel { position: relative; }
.bc-carousel-next {
  position: absolute; top: 50%; right: -14px; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  border: 1px solid var(--bc-border); box-shadow: var(--bc-shadow-md);
  font-size: 20px; color: var(--bc-text-muted); display: flex;
  align-items: center; justify-content: center; cursor: pointer;
}
.bc-carousel-next:hover { color: var(--bc-green); }

/* Tarjeta de audio recomendado (variante visual de .bc-stat-card) */
.bc-stat-card--audio { background: linear-gradient(135deg, var(--bc-green-50), #fff); }

/* Cuerpo de texto de un logro (título + descripción) */
.bc-achievement-body { display: flex; flex-direction: column; gap: 2px; }

/* ── Player: estado de cada capítulo en la lista lateral ────────────── */
.bc-chapter-status--done    { background: transparent; }
.bc-chapter-status--current { background: transparent; }
.bc-chapter-status--lock    { color: var(--bc-text-light); }
.bc-chapter-list-widget { }
.bc-player-page { }

/* ── Botones con estado de carga (texto + spinner intercambiables) ──── */
.bc-btn-text, .bc-btn-loading { display: inline-flex; align-items: center; gap: 8px; }

/* ── Defensa contra CSS global de themes/builders (Elementor, Divi, etc.) ──
   Algunos themes aplican svg { width:100%; height:auto } globalmente lo que
   escala nuestros SVGs decorativos al 100% del contenedor padre.
   Fijamos los íconos inline a sus dimensiones de diseño. */
.bc-login-page .bc-input-icon,
.bc-app-body .bc-input-icon,
.bc-login-form-panel .bc-input-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

/* El formulario de login embebido como shortcode en Elementor:
   cuando se usa [bostcalm_login_form] la clase bc-login-page no está en el body,
   así que aplicamos al wrapper propio del shortcode. */
.bc-login-shortcode .bc-input-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}
.bc-login-shortcode {
  max-width: 440px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   REPRODUCTOR BCPLAYER — arquitectura limpia, sin z-index wars
   ═══════════════════════════════════════════════════════════════════════ */
.bcplayer {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 60vh !important;
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin: 16px 0 0 !important;
  user-select: none;
  display: block !important;
}

/* Video ocupa todo el contenedor */
.bcplayer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

/* Overlay de título: pointer-events:none para no bloquear clicks */
.bcplayer__overlay {
  position: absolute;
  bottom: 90px;
  left: 20px;
  right: 20px;
  z-index: 3;
  pointer-events: none;
}
.bcplayer__breadcrumb {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
}
.bcplayer__title {
  font-family: var(--font-title, 'DM Sans', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.bcplayer__desc {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* Botón grande de play centrado */
.bcplayer__bigplay {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 4 !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform .15s ease, opacity .15s !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bcplayer__bigplay:hover { transform: translate(-50%,-50%) scale(1.1); }
.bcplayer__bigplay.hidden { opacity: 0; pointer-events: none; }

/* Barra de controles */
.bcplayer__controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 5 !important;
  background: linear-gradient(transparent, rgba(0,0,0,.82)) !important;
  background-color: transparent !important;
  padding: 32px 12px 10px !important;
  margin: 0 !important;
  border: none !important;
}

/* Barra de progreso */
.bcplayer__progressbar {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
  padding: 0 2px;
}
.bcplayer__progressbg,
.bcplayer__progressfill {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
}
.bcplayer__progressbg  { width: 100%; background: rgba(255,255,255,.25); }
.bcplayer__progressfill { width: 0%; background: #3D6B4F; transition: width .1s linear; }
.bcplayer__progressknob {
  position: absolute;
  left: 0%;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: left .1s linear;
}

/* Fila de botones */
.bcplayer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.bcplayer__left,
.bcplayer__right {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Botones individuales */
.bcplayer__btn {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 5px !important;
  color: rgba(255,255,255,.88) !important;
  cursor: pointer !important;
  padding: 5px 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .12s, color .12s;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: inherit !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}
.bcplayer__btn:hover {
  background: rgba(255,255,255,.15) !important;
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.bcplayer__btn:active { transform: scale(.92); }
.bcplayer__btn:focus { outline: none !important; box-shadow: none !important; }

/* Tiempo */
.bcplayer__time {
  font-size: 11px;
  color: rgba(255,255,255,.8);
  padding: 0 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bcplayer__timesep { opacity: .5; }

/* Selector de velocidad personalizado (sin <select> nativo) */
.bcplayer__speedwrap {
  position: relative;
}
.bcplayer__speedlabel {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 4px !important;
  padding: 3px 7px !important;
  min-width: 36px !important;
  text-align: center !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.bcplayer__speedmenu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 72px;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.bcplayer__speedmenu.open { display: block; }
.bcplayer__speedmenu li {
  padding: 7px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  white-space: nowrap;
  transition: background .1s;
}
.bcplayer__speedmenu li:hover { background: rgba(255,255,255,.1); }
.bcplayer__speedactive { color: #3D6B4F !important; font-weight: 700; }

/* Favorito activo */
.bcplayer__btn--fav.active svg { fill: #ef4444; stroke: #ef4444; }

/* Iframe */
.bcplayer__iframe {
  position: absolute;
  inset: 0;
}
.bcplayer__iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Miniatura sin video */
.bcplayer__novidthumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bcplayer__novidthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bcplayer__novidplaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════════════════════════
   SCOPE DE ALTA ESPECIFICIDAD PARA EL REPRODUCTOR
   Usa el ID #bcplayer para superar cualquier clase de Elementor/theme.
   Regla: ID (0,1,0,0) gana sobre clase (0,0,1,0) en la cascada CSS.
   ═══════════════════════════════════════════════════════════════════════ */

/* Reset completo de todos los botones dentro del player */
#bcplayer button,
#bcplayer button:hover,
#bcplayer button:focus,
#bcplayer button:active {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.88) !important;
  padding: 5px 6px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: inherit !important;
  outline: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  transition: background .12s, color .12s !important;
}

#bcplayer button:hover {
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

/* El big play es especial — tiene un círculo SVG, no background del button */
#bcplayer #bcbigplay {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%,-50%) !important;
  z-index: 4 !important;
  padding: 0 !important;
  background: none !important;
  background-color: transparent !important;
  width: auto !important;
  height: auto !important;
}
#bcplayer #bcbigplay:hover {
  background: none !important;
  background-color: transparent !important;
  transform: translate(-50%,-50%) scale(1.1) !important;
}
#bcplayer #bcbigplay.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Botón de velocidad */
#bcplayer #bcspeedbtn {
  border: 1px solid rgba(255,255,255,.35) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 7px !important;
  min-width: 36px !important;
}

/* Barra de controles */
#bcplayer #bccontrols {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 5 !important;
  background: linear-gradient(transparent, rgba(0,0,0,.82)) !important;
  background-color: transparent !important;
  padding: 32px 12px 10px !important;
  margin: 0 !important;
  border: none !important;
}

/* SVGs dentro del player — evitar que el theme los escale */
#bcplayer svg {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
}

/* Texto de tiempo */
#bcplayer .bcplayer__time {
  font-size: 11px !important;
  color: rgba(255,255,255,.8) !important;
  font-variant-numeric: tabular-nums !important;
}

/* Menú de velocidad */
#bcplayer #bcspeedmenu {
  background: #1a1a1a !important;
  border: 1px solid rgba(255,255,255,.15) !important;
}
#bcplayer #bcspeedmenu li {
  color: rgba(255,255,255,.85) !important;
  background: none !important;
  cursor: pointer !important;
  font-size: 13px !important;
  padding: 7px 14px !important;
}
#bcplayer #bcspeedmenu li:hover {
  background: rgba(255,255,255,.1) !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   FIX: Campos de contraseña con botón toggle integrado
   El botón "ver contraseña" queda DENTRO del campo, alineado a la derecha,
   sin desbordarse ni solaparse con el texto del placeholder.
   ═══════════════════════════════════════════════════════════════════════ */
.bc-input-wrap--with-toggle {
  position: relative;
  display: flex;
  align-items: center;
}
.bc-input-wrap--with-toggle input[type="password"],
.bc-input-wrap--with-toggle input[type="text"] {
  width: 100%;
  padding-right: 44px !important; /* espacio para el botón toggle */
}
.bc-input-toggle-pw {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px !important;
  cursor: pointer !important;
  color: var(--bc-text-muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 4px !important;
  transition: color .15s !important;
  z-index: 2 !important;
}
.bc-input-toggle-pw:hover {
  color: var(--bc-text) !important;
  background: rgba(0,0,0,.05) !important;
  background-color: rgba(0,0,0,.05) !important;
}
.bc-input-toggle-pw svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  pointer-events: none;
}

/* FIX: Recordar sesión + olvidé contraseña en una sola línea bien alineada */
.bc-login-options {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin: 10px 0 16px !important;
}
.bc-login-options .bc-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}
.bc-forgot-link {
  background: none !important;
  border: none !important;
  color: var(--bc-green) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  padding: 0 !important;
  text-decoration: none !important;
}
.bc-forgot-link:hover { text-decoration: underline !important; }

/* FIX: Ícono del input no se encima con el texto */
.bc-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}
.bc-input-wrap .bc-input-icon {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  color: var(--bc-text-muted) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  flex-shrink: 0 !important;
}
.bc-input-wrap input {
  width: 100% !important;
  padding-left: 40px !important;
}
/* Sin ícono: input sin padding extra */
.bc-input-wrap--with-toggle:not(:has(.bc-input-icon)) input {
  padding-left: 12px !important;
}

/* Link CTA de registro individual */
.bc-login-register-cta {
  text-align: center;
  font-size: 13px;
  color: var(--bc-text-muted);
  margin-top: 8px;
}

/* Botón WhatsApp */
.bc-btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* Badge descuento en billing cycle */
.bc-badge-discount {
  background: #3D6B4F;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
}
.bc-radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  cursor: pointer;
}
.bc-hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bc-hero-features li {
  font-size: 14px;
  color: var(--bc-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--bc-border);
}
.bc-hero-features li:last-child { border-bottom: none; }
.bc-field-hint {
  font-size: 11px;
  color: var(--bc-text-muted);
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE MÓVIL — BostCalm App Layout
   Breakpoints: mobile < 768px, tablet 768-1024px
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Botón hamburguesa ───────────────────────────────────────────────── */
.bc-hamburger {
  display: none;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px !important;
  cursor: pointer !important;
  color: var(--bc-text) !important;
  border-radius: 8px !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bc-hamburger svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
}
.bc-hamburger:hover {
  background: rgba(0,0,0,.06) !important;
  background-color: rgba(0,0,0,.06) !important;
}

/* ── Overlay de fondo cuando el sidebar está abierto ────────────────── */
.bc-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* ══════════════════════════════════════════════════════════════════════
   TABLET (769px – 1024px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --bc-sidebar-w: 220px; }
  .bc-sidebar__brand-name { font-size: 15px; }
  .bc-series-grid { grid-template-columns: repeat(2,1fr); }
  .bc-stats-grid-4 { grid-template-columns: repeat(2,1fr); }
  .bc-charts-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   MÓVIL (≤ 768px) — Layout principal
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* El hamburguesa aparece */
  .bc-hamburger { display: inline-flex !important; }

  /* Layout: sidebar oculto, main ocupa todo */
  .bc-app-layout {
    grid-template-columns: 1fr !important;
    min-height: 100vh;
  }

  /* Sidebar: se convierte en drawer lateral deslizante */
  .bc-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    z-index: 200 !important;
    transform: translateX(-100%) !important;
    transition: transform .25s cubic-bezier(.4,0,.2,1) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: none !important;
  }

  /* Sidebar abierto */
  .bc-sidebar--open {
    transform: translateX(0) !important;
    box-shadow: 4px 0 32px rgba(0,0,0,.25) !important;
  }

  /* Main ocupa todo el ancho */
  .bc-app-main {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  /* Topbar en móvil */
  .bc-topbar {
    padding: 10px 14px !important;
    gap: 10px !important;
    min-height: 56px;
  }
  .bc-topbar__search { flex: 1; min-width: 0; }
  .bc-search-form { max-width: 100%; }
  .bc-topbar__profile-name { display: none; }
  .bc-topbar__profile-role { display: none; }

  /* Contenido principal */
  .bc-app-content {
    padding: 16px 14px !important;
  }

  /* Grids */
  .bc-stats-grid,
  .bc-stats-grid-4,
  .bc-stats-grid-5 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .bc-series-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .bc-charts-row {
    grid-template-columns: 1fr !important;
  }
  .bc-form-row,
  .bc-form-row--3 {
    grid-template-columns: 1fr !important;
  }

  /* KPI cards más compactas */
  .bc-kpi-card__value,
  .bc-stat-num {
    font-size: 24px !important;
  }

  /* Tablas: scroll horizontal */
  .bc-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .bc-table { min-width: 480px; }

  /* Player */
  .bcplayer {
    max-height: 35vh !important;
    margin: 8px 0 0 !important;
    border-radius: 0 !important;
  }
  .bcplayer__title { font-size: 14px !important; }
  .bcplayer__time  { font-size: 10px !important; }

  /* Login y Registro */
  .bc-login-layout,
  .bc-register-layout {
    grid-template-columns: 1fr !important;
    min-height: 100vh;
  }
  .bc-login-hero-panel,
  .bc-register-hero-panel {
    display: none !important;
  }
  .bc-login-form-panel,
  .bc-register-form-panel {
    padding: 24px 20px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .bc-login-title { font-size: 24px !important; }
  .bc-register-title { font-size: 22px !important; }

  /* Plan selector */
  .bc-plan-selector {
    grid-template-columns: 1fr !important;
  }

  /* Widgets y sections */
  .bc-widget { padding: 16px !important; }
  .bc-section-title { font-size: 16px !important; }

  /* Modal en móvil */
  .bc-modal-box {
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    margin: 16px !important;
    padding: 20px !important;
  }

  /* Recursos grid */
  .bc-resources-grid {
    grid-template-columns: 1fr !important;
  }

  /* Header de páginas */
  .bc-company-header,
  .bc-home-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .bc-company-header .bc-btn,
  .bc-home-header .bc-btn {
    width: 100% !important;
  }

  /* Sidebar de usuario (parte inferior del sidebar) */
  .bc-sidebar__plan-widget { padding: 12px !important; }
  .bc-sidebar__user { padding: 10px 12px !important; }

}

/* ══════════════════════════════════════════════════════════════════════
   MÓVIL PEQUEÑO (≤ 480px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .bc-stats-grid,
  .bc-stats-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .bc-login-brand,
  .bc-register-brand {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .bc-topbar { padding: 8px 12px !important; }
  .bc-app-content { padding: 12px !important; }

  .bcplayer { max-height: 28vh !important; }
  .bcplayer__controls { padding: 20px 8px 8px !important; }
  .bcplayer__btn { padding: 4px !important; }
  .bcplayer__btn svg { width: 17px !important; height: 17px !important; }

  /* Ocultar elementos secundarios del topbar en pantallas muy pequeñas */
  .bc-topbar__actions { display: none; }
}


/* ── Botón Cerrar Sesión en sidebar del colaborador ─────────────────── */
.bc-sidebar__logout {
  padding: 12px 16px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.10);
}
.bc-sidebar__logout-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 14px !important;
  background: rgba(255,255,255,.06) !important;
  background-color: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px !important;
  color: rgba(255,255,255,.75) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .15s, color .15s !important;
  box-shadow: none !important;
  text-align: left !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.bc-sidebar__logout-btn:hover {
  background: rgba(239,68,68,.15) !important;
  background-color: rgba(239,68,68,.15) !important;
  border-color: rgba(239,68,68,.3) !important;
  color: #fca5a5 !important;
}
.bc-sidebar__logout-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   DROPDOWN DE NOTIFICACIONES
   ═══════════════════════════════════════════════════════════════════════ */
.bc-notif-wrap {
  position: relative;
}
.bc-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: 92vw;
  background: var(--bc-white, #fff);
  border: 1px solid var(--bc-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 300;
  overflow: hidden;
}
.bc-notif-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--bc-border, #e5e7eb);
}
.bc-notif-dropdown__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--bc-text, #1a1a2e);
}
.bc-notif-list {
  max-height: 320px;
  overflow-y: auto;
}
.bc-notif-loading,
.bc-notif-empty {
  text-align: center;
  padding: 24px;
  color: var(--bc-text-muted, #888);
  font-size: 13px;
}
.bc-notif-item-drop {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  cursor: pointer;
  transition: background .12s;
}
.bc-notif-item-drop:hover { background: rgba(0,0,0,.03); }
.bc-notif-item-drop--unread {
  background: rgba(61,107,79,.06);
}
.bc-notif-item-drop--unread:hover {
  background: rgba(61,107,79,.10);
}
.bc-notif-item-drop__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.bc-notif-item-drop__body { flex: 1; min-width: 0; }
.bc-notif-item-drop__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-text, #1a1a2e);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-notif-item-drop__msg {
  font-size: 12px;
  color: var(--bc-text-muted, #888);
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-notif-item-drop__time {
  font-size: 10px;
  color: var(--bc-text-light, #aaa);
}
.bc-notif-dropdown__footer {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid var(--bc-border, #e5e7eb);
}
.bc-badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
  pointer-events: none;
}

/* Subtítulos: estilo nativo del navegador, reforzar contraste */
video::cue {
  background: rgba(0,0,0,.75);
  color: #fff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.5;
  border-radius: 3px;
  padding: 2px 6px;
}

/* Botón CC activo */
#bcplayer #bccbtn {
  min-width: 30px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
}

