:root {
  --sidebar-width: 260px;
  --brand: #0d6efd;
}

body {
  min-height: 100vh;
  background: #f4f6f9;
}

/* Landing pública del sitio */
.hero {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  color: #fff;
  padding: 5rem 0;
}

.hero .lead {
  opacity: 0.92;
}

.feature-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.06);
  height: 100%;
}

/* Shell app (admin / asociado) */
.app-shell {
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

.sidebar .nav-link {
  border-radius: 0.5rem;
  opacity: 0.85;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.app-main {
  min-width: 0;
}

.card-stat {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
}

.card-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.table-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
}

.logo-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #dee2e6;
  padding: 0.25rem;
}

.logo-preview-lg {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.5rem;
}

.insignia-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.insignia-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
  height: 100%;
}

.insignia-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #eef2ff 0%, #f8f9fa 50%, #e9f7ef 100%);
}

.login-card {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(13, 110, 253, 0.12);
}

/* Landing pública del asociado */
.asoc-hero {
  padding: 4rem 0 3rem;
  color: #fff;
}

.asoc-hero .desc {
  max-width: 40rem;
  opacity: 0.95;
}

.social-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1035;
  }

  .sidebar-backdrop.show {
    display: block;
  }
}
