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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: #0f172a;
  margin: 0;
}

/* ══════════════════════════════
   NAVBAR
   ══════════════════════════════ */
.bm-navbar {
  background: var(--bm-950);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Logo */
.bm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.bm-logo-icon {
  width: 34px; height: 34px;
  background: var(--bm-500);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}

.bm-logo-icon img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 8px;
}
.bm-logo-text {
  font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -.3px;
}

.bm-logo-text .suffix { color: var(--bm-300); font-weight: 400; }

.bm-logo-img {
  height: 48px;          
  width: auto;           /* mantiene proporción original */
  object-fit: contain;
  display: block;
}

/* Nav links */
.bm-nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.bm-nav-links a {
  font-size: 13px; color: var(--bm-200);
  text-decoration: none; padding: 6px 12px; border-radius: 6px;
  transition: background .15s, color .15s;
  opacity: .8;
}
.bm-nav-links a:hover,
.bm-nav-links a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  opacity: 1;
}
.bm-nav-links a.active {
  background: rgba(59,130,246,.18);
  color: var(--bm-200);
}

/* Auth buttons — siempre visibles y con contraste */
.bm-nav-auth {
  display: flex; 
  align-items: center; 
  gap: 8px;
  margin-left: auto;
}

.btn-login {
  font-size: 13px; font-weight: 500;
  padding: 8px 20px; border-radius: 8px;
  border: 1.5px solid rgba(147,197,253,.45);
  background: rgba(59,130,246,.12);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-login:hover {
  background: rgba(59,130,246,.25);
  border-color: var(--bm-400);
}

.btn-close-session {
  font-size: 13px; font-weight: 500;
  padding: 8px 20px; border-radius: 8px;
  border: 1.5px solid rgba(147,197,253,.45);
  background: rgba(59,130,246,.12);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-close-session:hover {
  background: rgba(59,130,246,.25);
  border-color: var(--bm-400);
}


.btn-register {
  font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 8px;
  border: none;
  background: var(--bm-500);
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  box-shadow: 0 0 0 0 var(--bm-400);
}
.btn-register:hover {
  background: var(--bm-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.45);
}
.btn-register:active { transform: translateY(0); }

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.bm-hero {
  /*background: linear-gradient(150deg, var(--bm-950) 0%, var(--bm-800) 60%, var(--bm-600) 100%);*/
  background: url('../img/smd2.png') center/cover no-repeat;
  padding: 180px 32px 72px;
  text-align: center;
}
.bm-badge {
  display: inline-block;
  background: rgba(59,130,246,.2);
  border: 1px solid rgba(147,197,253,.3);
  color: var(--bm-200);
  font-size: 12px; font-weight: 500;
  padding: 5px 16px; border-radius: 999px;
  margin-bottom: 24px; letter-spacing: .3px;
}
.bm-hero h1 {
  font-size: 40px; font-weight: 600; color: #fff;
  line-height: 1.18; margin: 0 0 18px; letter-spacing: -.6px;
}
.bm-hero h1 span { color: var(--bm-300); }
.bm-hero-sub {
  font-size: 16px; color: var(--bm-200);
  max-width: 480px; margin: 0 auto 36px;
  line-height: 1.7; opacity: .9;
}
.bm-hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn-hero-primary {
  font-size: 14px; font-weight: 600;
  padding: 12px 30px; border-radius: 10px;
  border: none; background: var(--bm-500); color: #fff; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-hero-primary:hover {
  background: var(--bm-600);
  box-shadow: 0 6px 20px rgba(37,99,235,.5);
  transform: translateY(-1px);
}
.btn-hero-secondary {
  font-size: 14px; font-weight: 500;
  padding: 12px 30px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  transition: background .15s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); }

/* Stats */
.bm-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 56px; flex-wrap: wrap;
}
.bm-stat { text-align: center; }
.bm-stat-num { font-size: 26px; font-weight: 700; color: #fff; }
.bm-stat-label { font-size: 12px; color: var(--bm-300); margin-top: 3px; letter-spacing: .2px; }

/* ══════════════════════════════
   SECCIONES GENERALES
   ══════════════════════════════ */
.bm-section {
  padding: 32px 32px;
  background: #fff;
}
.bm-section-alt { background: var(--bm-50); }

.bm-section-header { text-align: center; margin-bottom: 40px; }
.bm-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--bm-600); text-transform: uppercase; margin-bottom: 10px;
}
.bm-section-title {
  font-size: 26px; font-weight: 600; color: var(--bm-950);
  letter-spacing: -.4px; margin: 0 0 10px;
}
.bm-section-sub {
  font-size: 15px; color: #64748b; line-height: 1.65;
  max-width: 480px; margin: 0 auto;
}

/* ── Feature cards ── */
.bm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.bm-card {
  background: #fff;
  border: 0.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow .2s;
}
.bm-card:hover { box-shadow: 0 4px 20px rgba(37,99,235,.08); }
.bm-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bm-50); border: 1px solid var(--bm-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px;
}
.bm-card h3 { font-size: 14px; font-weight: 600; color: var(--bm-900); margin: 0 0 6px; }
.bm-card p  { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; }

/* ── Módulos ── */
.bm-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.bm-module {
  background: #fff; border: 0.5px solid #e2e8f0;
  border-radius: 12px; padding: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.bm-module:hover {
  border-color: var(--bm-300);
  box-shadow: 0 2px 14px rgba(37,99,235,.08);
}
.bm-module-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; display: inline-block; margin-bottom: 10px;
}
.tag-blue   { background: var(--bm-100); color: var(--bm-800); }
.tag-green  { background: #dcfce7; color: #166534; }
.tag-purple { background: #ede9fe; color: #5b21b6; }
.tag-amber  { background: #fef3c7; color: #92400e; }
.bm-module h4 { font-size: 14px; font-weight: 600; color: var(--bm-900); margin: 0 0 4px; }
.bm-module p  { font-size: 12px; color: #94a3b8; margin: 0; }

/* ── Planes ── */
.bm-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; align-items: start;
}
.bm-plan {
  border: 0.5px solid #e2e8f0; border-radius: 14px;
  padding: 28px 22px; background: #fff;
  position: relative;
}
.bm-plan.featured {
  border: 2px solid var(--bm-500);
  box-shadow: 0 8px 30px rgba(37,99,235,.12);
}
.bm-plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--bm-500); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.bm-plan-name  { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.bm-plan-price { font-size: 30px; font-weight: 700; color: var(--bm-950); }
.bm-plan-price .period { font-size: 13px; font-weight: 400; color: #94a3b8; }
.bm-plan hr { border: none; border-top: 0.5px solid #e2e8f0; margin: 18px 0; }
.bm-plan-feature {
  font-size: 13px; color: #475569;
  margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start;
}
.bm-plan-check { color: var(--bm-500); font-weight: 700; flex-shrink: 0; }
.btn-plan {
  width: 100%; padding: 10px; border-radius: 9px;
  font-size: 13px; font-weight: 600; margin-top: 18px; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.btn-plan-outline {
  background: transparent; border: 1.5px solid var(--bm-200); color: var(--bm-700);
}
.btn-plan-outline:hover { background: var(--bm-50); }
.btn-plan-filled {
  background: var(--bm-600); border: none; color: #fff;
}
.btn-plan-filled:hover {
  background: var(--bm-700);
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.bm-footer {
  background: var(--bm-950);
  padding: 36px 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.bm-footer-logo { font-size: 15px; font-weight: 600; color: #fff; }
.bm-footer-logo .suffix { color: var(--bm-300); font-weight: 400; }
.bm-footer-links { display: flex; gap: 24px; }
.bm-footer-link { font-size: 12px; color: var(--bm-400); text-decoration: none; }
.bm-footer-link:hover { color: var(--bm-200); }
.bm-footer-copy { font-size: 12px; color: var(--bm-700); }

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 768px) {
  .bm-nav-links { display: none; }
  .bm-hero h1  { font-size: 28px; }
  .bm-stats    { gap: 24px; }
  .bm-footer   { flex-direction: column; text-align: center; }
  .bm-footer-links { justify-content: center; }
}







/*Sidebar*/

@media (max-width: 767.98px) {
    .bm-logo-text {
        display: none;
    }
}

/* ── Navbar ────────────────────────────────────────────── */
.bm-navbar {
    background: var(--bm-950);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Botón hamburguesa — oculto en desktop */
.navbar-toggler {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: #fff;
}

.navbar-toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
}

.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after  { top:  6px; }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 64px; /* altura del navbar */
    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 999;
    background: #f8f9fa;
    box-shadow: inset -1px 0 0 rgba(0,0,0,.1);
    overflow-y: auto;
    transition: transform .3s ease;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    .navbar-toggler {
        display: block; /* visible en mobile */
    }

    .sidebar {
        transform: translateX(-100%); /* oculto por defecto */
    }

    .sidebar.open {
        transform: translateX(0); /* visible al abrir */
    }
}

.bm-nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin-left: auto;
}

.bm-nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bm-700, #2470dc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.bm-nav-user-name {
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Oculta el nombre en mobile, deja solo el avatar */
@media (max-width: 767.98px) {
    .bm-nav-user-name {
        display: none;
    }
}

.bm-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}








/* =========================================================
   SMD Admin — estilos propios del panel administrativo
   Requiere Bootstrap 5. Prefijo: smd-
   ========================================================= */


/* ---------------------------------------------------------
   SIDEBAR / MENÚ
   --------------------------------------------------------- */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-size: .875rem;
    font-weight: 400;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .4rem 1rem;
}

.sidebar .nav-link svg {
    flex-shrink: 0;
    color: #aaa;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:hover svg {
    color: #0d6efd;
}

.sidebar .nav-link.active {
    color: #0d6efd;
    font-weight: 500;
}

.sidebar .nav-link.active svg {
    color: #0d6efd;
}

.nav-section-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 4px;
}


/* ---------------------------------------------------------
   TOPBAR / AVATAR
   --------------------------------------------------------- */

.smd-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cfe2ff;
    color: #084298;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}


/* ---------------------------------------------------------
   MÉTRICAS
   --------------------------------------------------------- */

.smd-metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 14px;
}

.smd-metric-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.smd-metric-value {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    color: #212529;
}

.smd-metric-delta {
    font-size: .7rem;
    margin-top: 3px;
}

.smd-delta-up    { color: #2d6a2d; }
.smd-delta-dn    { color: #842029; }
.smd-delta-neutral { color: #6c757d; }


/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */

.smd-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.smd-card-title {
    font-size: .85rem;
    font-weight: 500;
    color: #6c757d;
}

.smd-section-title {
    font-size: .85rem;
    font-weight: 500;
    color: #6c757d;
    margin: 0;
}

.smd-link-sm {
    font-size: .75rem;
    color: #0d6efd;
    text-decoration: none;
}

.smd-link-sm:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   TABLAS
   --------------------------------------------------------- */

.smd-table {
    font-size: .8rem;
}

.smd-table th {
    font-weight: 500;
    color: #6c757d;
    border-bottom-width: 1px;
}

.smd-table td {
    vertical-align: middle;
}

.smd-text-warning { color: #854d0e; }


/* ---------------------------------------------------------
   BADGES
   --------------------------------------------------------- */

.smd-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 500;
    white-space: nowrap;
}

.smd-badge-success { background: #d1fae5; color: #065f46; }
.smd-badge-warning { background: #fef3c7; color: #92400e; }
.smd-badge-info    { background: #dbeafe; color: #1e40af; }
.smd-badge-muted   { background: #f3f4f6; color: #6b7280; }


/* ---------------------------------------------------------
   ESPECIALIDADES — lista con barras
   --------------------------------------------------------- */

.smd-spec-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.smd-spec-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
}

.smd-spec-name {
    min-width: 90px;
    font-weight: 500;
    color: #212529;
}

.smd-bar-wrap {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
}

.smd-bar-fill {
    height: 4px;
    background: #0d6efd;
    border-radius: 2px;
}

.smd-spec-count {
    min-width: 24px;
    text-align: right;
    font-size: .75rem;
    color: #6c757d;
}

/* Espacio entre contenido y footer — agregar al final de custom.css */
.bm-footer {
    margin-top: 3rem;
}

/* ── KPI icons — dashboard cliente ───────────────────────────── */
/* Agregar al final de public/assets/css/custom.css              */

.smd-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.smd-kpi-icon svg {
    width: 16px;
    height: 16px;
}
.smd-kpi-icon--primary {
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
}
.smd-kpi-icon--teal {
    background: rgba(15, 110, 86, .1);
    color: #0f6e56;
}
.smd-kpi-icon--amber {
    background: rgba(255, 193, 7, .15);
    color: #b08600;
}
