/* =========================================
           Reset Básico y Estilos Globales
           ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f9fafb;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

/* =========================================
           Contenedores Generales
           ========================================= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================================
           Header y Barra Superior
           ========================================= */
.header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.nav-tabs-container {
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
}

.tab-active {
  display: inline-block;
  padding: 0.75rem 0.25rem 0.5rem 0.25rem;
  border-bottom: 3px solid #231f20;
  font-size: 13px;
  color: #231f20 !important;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-left: 1rem;
}

.tab-active:hover {
  background-color: #f9fafb;
}

/* =========================================
           Área Principal del Header
           ========================================= */
.header-main {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sección Izquierda */
.left-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0;
}

.texto-vigilado {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 5.5px;
  line-height: 1.1;
  color: #333;
  letter-spacing: 0.2px;
  font-family: Arial, sans-serif;
  text-align: left;
  height: 40px;
}

.texto-vigilado span {
  font-weight: bold;
}

.separator {
  height: 2.5rem;
  width: 1px;
  background-color: #000;
  opacity: 0.8;
}

.logo-link {
  margin-left: 0.5rem;
  outline: none;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Sección Derecha */
.right-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #59646d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  font-weight: normal;
  letter-spacing: 0.025em;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 0.3s;
}

.avatar:hover {
  background-color: #4a545c;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: right;
  justify-content: center;
}

.user-name {
  color: #111827 !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.user-points-label {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 3px;
}

.user-points-value {
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  margin-top: 1px;
}

/* Botón de Menú (Hamburguesa) */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  transition: opacity 0.15s ease;
}

.menu-line {
  width: 100%;
  height: 3px;
  background-color: #e3000f;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.menu-btn:hover .menu-line {
  background-color: #b3000a;
}

/* =========================================
           Contenido Principal (Ejemplo)
           ========================================= */
.main-content {
  padding: 2.5rem 0;
}

.content-box {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  text-align: center;
  color: #6b7280;
}

.logout-btn {
  color: #fff !important;
}

#dnn_dnnLOGO_imgLogo {
  height: 27px;
}

@media (min-width: 768px) {
  #dnn_dnnLOGO_imgLogo {
    height: auto;
  }
  .container {
    padding: 0 2rem;
  }
  .tab-active {
    margin-left: 3rem;
  }
  .left-section {
    margin-left: 2rem;
  }
  .right-section {
    gap: 2rem;
    margin-right: 1rem;
  }
}

/* =========================================
           Sidebar Menu Overlay
           ========================================= */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none; /* Oculto por defecto */
  flex-direction: column;
}

.sidebar-overlay.active {
  display: flex;
}

.sidebar-header-bar {
  height: 60px;
  background-color: #e3000f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.sidebar-logo {
  height: 32px;
  /* El filtro convierte la imagen original oscura en completamente blanca */
  filter: brightness(0) invert(1);
  margin-left: 1rem;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-weight: 300;
}

.sidebar-content-area {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar-panel {
  width: 340px;
  background-color: #4b5860;
  color: #fff;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.sidebar-backdrop {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item a {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s;
  cursor: pointer;
}

.menu-item:hover,
._navbar__item--active {
  background-color: rgba(255, 255, 255, 0.05);
}

.menu-item a {
  color: #fff;
}

.menu-item a:hover {
  text-decoration: none;
}

.menu-item svg {
  width: 22px;
  height: 22px;
  margin-right: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logout-btn {
  margin-top: 0.5rem;
  padding: 1rem 2rem 1rem 4.5rem; /* Alineado con el texto (2rem padding + 22px svg + 1.25rem gap) */
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
}

.tarjeta-one-container {
  margin-top: auto;
}

.left-logo {
  height: 70px;
}
.tarjeta-one-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tarjeta-one-brand img {
  width: 170px;
}

.tarjeta-one-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  margin-left: 25px;
}

.tarjeta-one-script {
  font-family: "Brush Script MT", "Lucida Handwriting", cursive, serif;
  font-size: 42px;
  line-height: 0.7;
  position: relative;
  color: #fff;
}

.tarjeta-one-swoosh {
  position: absolute;
  left: -15px;
  top: 20px;
  width: 90px;
  height: 35px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  z-index: 1;
}

.PointsCant {
  display: none;
}
