/*
 * Botón de la cuenta en la cabecera del sitio. Va fuera de .otec, así que trae sus propias
 * variables, con los colores globales de Elementor del sitio y los de grupootec.cl de respaldo.
 * Elementor les da estilo a todos los button y links: las reglas van con .otec-acceso delante.
 */
.otec-acceso {
  --otec-acceso-primario: var(--e-global-color-primary, #86BB61);
  --otec-acceso-texto: var(--e-global-color-text, #1C1A41);
  --otec-acceso-letra: var(--e-global-typography-primary-font-family, "Outfit"), sans-serif;
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--otec-acceso-letra);
  z-index: 50;
}
/* Contenedor de la lupa: en fila, la lupa y el botón juntos */
.otec-acceso-fila { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 10px; }
.otec-acceso-fila > .elementor-element { width: auto !important; flex: 0 0 auto !important; margin: 0 !important; }
.otec-acceso .otec-acceso-btn,
.otec-acceso .otec-acceso-btn:hover,
.otec-acceso .otec-acceso-btn:focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  margin: 0;
  border: 1.5px solid #E1E6EF;
  border-radius: 99px;
  background: #fff;
  color: var(--otec-acceso-texto);
  font-family: var(--otec-acceso-letra);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  transition: border-color .15s ease;
}
.otec-acceso .otec-acceso-btn:hover,
.otec-acceso .otec-acceso-btn:focus-visible,
.otec-acceso .otec-acceso-btn[aria-expanded="true"] { border-color: var(--otec-acceso-primario); }
.otec-acceso .otec-acceso-icono { flex-shrink: 0; }
.otec-acceso .otec-acceso-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--otec-acceso-primario);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}
.otec-acceso .otec-acceso-texto { max-width: 11em; overflow: hidden; text-overflow: ellipsis; }
.otec-acceso .otec-acceso-flecha { opacity: .7; }

.otec-acceso .otec-acceso-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  padding: 6px;
  background: #fff;
  border: 1px solid #E1E6EF;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(28, 26, 65, .16);
  text-align: left;
}
.otec-acceso .otec-acceso-menu[hidden] { display: none; }
.otec-acceso .otec-acceso-cab { padding: 10px 12px 10px; border-bottom: 1px solid #E1E6EF; margin-bottom: 4px; }
.otec-acceso .otec-acceso-cab strong { display: block; font-size: 14px; color: var(--otec-acceso-texto); }
.otec-acceso .otec-acceso-cab small { display: block; font-size: 12px; color: #5F6675; overflow: hidden; text-overflow: ellipsis; }
.otec-acceso .otec-acceso-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--otec-acceso-texto);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
}
.otec-acceso .otec-acceso-menu a:hover,
.otec-acceso .otec-acceso-menu a:focus-visible { background: #F6F8FC; color: var(--otec-acceso-texto); }
.otec-acceso .otec-acceso-menu a.otec-acceso-salir { border-top: 1px solid #E1E6EF; border-radius: 0 0 8px 8px; margin-top: 4px; color: #B42318; }

@media (max-width: 767px) {
  .otec-acceso .otec-acceso-texto, .otec-acceso .otec-acceso-flecha { display: none; }
  .otec-acceso .otec-acceso-btn, .otec-acceso .otec-acceso-btn:hover, .otec-acceso .otec-acceso-btn:focus { padding: 5px; border-color: transparent; }
  .otec-acceso .otec-acceso-menu { left: 0; right: auto; max-width: calc(100vw - 24px); }
}
