.profile-bar .close {
  display: none;
  padding: 10px;
  justify-content: flex-end;
}

.profile-bar .profile {
  display: flex;
  align-items: center;
  padding: 20px 0px 30px;
}

.profile-bar .profile img {
  margin-right: 20px;
}

.profile-bar .profile .info h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 27px;
  color: var(--text-secondary);
  margin: 5px 0px 5px 0px;
}

.profile-bar .profile .info p {
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: rgba(48, 58, 68, 0.44);
}

.profile-bar .profile .info p.underline {
  text-decoration: underline;
  cursor: pointer;
}

.profile-bar .profile .info .sub-info {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 3px;
  padding: 10px;
  margin-top: 10px;
  transition: all 0.2s ease;
  visibility: hidden;
  opacity: 0;
}

.profile-bar .profile .info p.underline:hover+.sub-info {
  visibility: visible;
  opacity: 1;
}

.profile-bar .profile .info .sub-info p {
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  color: var(--text-alternate);
  margin-left: 10px;
}

.profile-bar .rating {
  display: flex;
  align-items: center;
  padding: 10px 0px;
}

.profile-bar .rating p {
  font-size: 13px;
  line-height: 16px;
  color: var(--text-secondary-grey);
  margin-left: 10px;
}

@media screen and (max-width: 330px) {
  .profile-bar .rating {
    flex-direction: column;
  }
}

.profile-bar .menu {
  border-top: 1px solid var(--border-color);
}

.profile-bar .menu p {
  margin: 10px 0px;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: rgba(152, 152, 152, 0.61);
}

.profile-bar .menu ul {
  padding: 5px 0px 20px;
  width: 100%;
}

.profile-bar .menu ul li {
  width: 100%;
  padding: 15px 0px;
}

.profile-bar .menu ul li a {
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.profile-bar .menu ul li.active a,
.profile-bar .menu ul li a:hover,
.profile-bar .menu ul li a:active {
  color: var(--primary-color);
}

/* Mobile/Tablet Styles (Floating Drawer) */
@media screen and (max-width: 992px) {
  .profile-bar {
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1050;
    padding: 0px 20px;
    width: 300px;
    max-width: 80%;
    height: 100%;
    overflow-x: hidden;
    transition: all 0.3s ease-in-out;
    background-color: var(--bg-primary);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .profile-bar .close {
    display: flex;
  }

  .profile-bar .profile {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .profile-bar .profile img {
    margin-bottom: 10px;
    margin-right: 0px;
  }

  .profile-bar.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0%);
  }
}

/* Desktop Styles (Static Column) */
@media screen and (min-width: 993px) {
  .profile-bar {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    display: block !important;
  }

  .profile-bar .close {
    display: none !important;
  }

  /* Original desktop profile layout */
  .profile-bar .profile {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .profile-bar .profile img {
    margin-right: 20px;
    margin-bottom: 0;
  }
}


/* Sidebar Overlay */
.bar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  /* Above navbar (1000) but below sidebar (1050) */
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.bar-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Global Profile Layout Management */
.profiles.especialistas {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

@media screen and (min-width: 993px) {
  .profiles.especialistas {
    display: grid !important;
    /* Sidebar (310px) | Content (remaining space) */
    grid-template-columns: 310px 1fr !important;
    gap: 30px !important;
  }

  /* Target various content containers used across different views */
  .profiles.especialistas>.cuenta,
  .profiles.especialistas>.citas2,
  .profiles.especialistas>.medical,
  .profiles.especialistas>.datos-profesionales,
  .profiles.especialistas>.ubicaciones,
  .profiles.especialistas>.servicios,
  .profiles.especialistas>.horarios,
  .profiles.especialistas>.antecedentes,
  .profiles.especialistas>.citas,
  .profiles.especialistas>.especialistas {
    width: 100% !important;
    max-width: none !important;
  }

  /* Global Profile Card Styling */
  .profile-info {
    background-color: #fff !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
  }

  .profile-info .headbar {
    background: linear-gradient(135deg, var(--purple-vibrant) 0%, var(--purple-deep) 100%) !important;
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 54px;
    border-radius: 25px 25px 0px 0px !important;
    font-weight: 600;
    font-size: 22px;
    line-height: 27px;
    padding: 5px 22px;
  }

  .profile-info .contents {
    padding: 30px !important;
    background-color: transparent !important;
  }
}

/* Ensure Overlay is hidden on Desktop */
@media screen and (min-width: 993px) {
  .bar-overlay {
    display: none !important;
  }
}

/* Ensure Navbar has correct z-index */
header {
  z-index: 1000;
}

/*# sourceMappingURL=profile-bars.css.map */