@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);

:root {
  /* Color principal */
  --bs-primary: #2e3c8f;
  --bs-primary-rgb: 46, 60, 143;

  /* Tonos derivados */
  --bs-primary-bg-subtle: #e5e7f5;
  --bs-primary-border-subtle: #c4c9eb;
  --bs-primary-text-emphasis: #1f2960;

  /* Botón primario */
  --bs-btn-color: #fff; /* color del texto */
  --bs-btn-bg: #2e3c8f; /* fondo normal */
  --bs-btn-border-color: #2e3c8f; /* borde normal */

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #253278; /* un poco más oscuro para hover */
  --bs-btn-hover-border-color: #222d6b;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #222d6b; /* más oscuro aún al hacer clic */
  --bs-btn-active-border-color: #1e295e;

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6c79c2; /* gris azulado para estado deshabilitado */
  --bs-btn-disabled-border-color: #6c79c2;
}

.btn-primary {
  --bs-btn-bg: #2e3c8f !important;
  --bs-btn-border-color: #2e3c8f !important;
  --bs-btn-hover-bg: #253278 !important;
  --bs-btn-hover-border-color: #222d6b !important;
  --bs-btn-active-bg: #1e295e !important;
  --bs-btn-active-border-color: #1e295e !important;
}

.btn-outline-primary {
  --bs-btn-color: #2e3c8f;
  --bs-btn-border-color: #2e3c8f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2e3c8f;
  --bs-btn-hover-border-color: #2e3c8f;
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2e3c8f;
  --bs-btn-active-border-color: #2e3c8f;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #2e3c8f;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #2e3c8f;
  --bs-gradient: none;
}

#chat-container .form-control {
  border-top: none;
  border-right: none;
  border-left: none;
  border-radius: 0;
}

#chat-container .form-control:focus {
  border-color: transparent;
  box-shadow: inset 0px 0px 0px 1px transparent;
}

#chat-container {
  display: block;
  width: 100%;
  height: 100%;
}

#chat-container .row {
  max-width: 100%;
  height: 100%;
}

#chat-container .z-2 {
  place-self: start;
  background-color: #e7e7e7;
  border-radius: 15px;
  padding: 5px;
  padding-right: 30px;
  position: relative;
}

.badge-dot {
  border-radius: 50%;
  height: 10px;
  width: 10px;
  margin-left: 2.9rem;
  margin-top: -0.75rem;
}

.starrating > input {
  display: none;
}

.starrating > label:before {
  content: "\f005";
  margin: 2px;
  font-size: 1.8em;
  font-family: FontAwesome;
  display: inline-block;
}

.starrating > label {
  color: #222222b9;
}

.starrating > input:checked ~ label {
  color: #ffca08;
}

.starrating > input:hover ~ label {
  color: #ffca08;
}

.btn-msg-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  #mensajes > * {
    max-width: 95%;
  }
}

@media (min-width: 768px) {
  #mensajes > * {
    max-width: 80%;
  }
}

.icono {
  width: 20px;
  height: 20px;
}

.mobile-action-menu {
  position: relative;
  display: none;
}

.mobile-action-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-action-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 150px;
  display: none;
  z-index: 1000;
}

.mobile-action-dropdown.show {
  display: block;
}

.mobile-action-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-action-item:hover {
  background-color: #f5f5f5;
}

.mobile-action-item img {
  margin-right: 8px;
}

/* Responsive behavior */
@media (max-width: 767px) {
  .action-buttons {
    display: none !important;
  }

  .mobile-action-menu {
    display: flex;
  }
}

.no-arrow::after {
  display: none;
}

/* Oculta el triángulo */

.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
  display: block;
}

.buscador {
  @media (max-width: 992px) {
    width: 100%;
  }

  @media (min-width: 992px) {
    width: 25%;
  }
}

#campo_texo {
  max-width: 200px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #666;
  font-weight: 600;
  font-size: 1rem;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.separator::before {
  margin-right: 10px;
}

.separator::after {
  margin-left: 10px;
}

.mobile-title-specialities {
  display: none;
  position: relative;
}

.mobile-login {
  display: block;
}

@media (max-width: 768px) {
  .mobile-title-specialities {
    display: block;
    text-align: center;
  }

  .title-specialities {
    display: none !important;
  }

  .mobile-login {
    display: none;
  }
}

.agent-progress-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: white;
}

.agent-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.agent-progress-title {
  font-weight: bold;
  color: #2d3748;
}

.agent-progress-percent {
  color: #3182ce;
  font-weight: bold;
}

.agent-progress-bar {
  width: 0%;
  height: 8px;
  background: #3182ce;
  border-radius: 4px;
  transition: width 0.3s;
}

.btn-outline-dark:hover > a {
  color: white !important;
}

.ia-generated {
  font-size: 0.75em;
  color: #bababa;
  align-self: start;
}

.current-subscription {
  background-color: #32eecc1a;
}

.term-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-floating {
  flex: 1;
}
