/* ===== Botón de idioma (ES / EN) ===== */
.asc-lang-wrap {
  display: flex;
  align-items: center;
}
/* Escritorio: el botón de celular no se muestra (evita el ícono duplicado) */
@media (min-width: 992px) {
  .asc-lang-wrap.d-lg-none {
    display: none !important;
  }
}

.asc-lang-switch {
  --asc-lang-color: #fff;
  --asc-lang-hover-bg: #fff;
  --asc-lang-hover-color: #141d45;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border: 1.5px solid var(--asc-lang-color) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--asc-lang-color) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Rollover: el círculo se llena desde abajo y el texto cambia de color */
.asc-lang-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--asc-lang-hover-bg);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.asc-lang-switch:hover,
.asc-lang-switch:focus-visible {
  color: var(--asc-lang-hover-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(2, 148, 253, 0.18), 0 6px 14px rgba(0, 0, 0, 0.22);
  outline: none;
}
.asc-lang-switch:hover::before,
.asc-lang-switch:focus-visible::before {
  transform: translateY(0);
}
.asc-lang-switch:active {
  transform: translateY(0) scale(0.96);
}

/* Header fijo (fondo claro al hacer scroll, escritorio y celular): versión oscura */
.header-sticky .asc-lang-switch,
.header-duplicate .asc-lang-switch,
.header-area.sticky .asc-lang-switch {
  --asc-lang-color: #141d45;
  --asc-lang-hover-bg: #141d45;
  --asc-lang-hover-color: #fff;
}

/* Escritorio: separado del botón "Let's Talk" */
.header-right-item .asc-lang-wrap {
  margin-right: 14px;
}

/* Celular y tablet: a la derecha, junto al ícono del menú */
@media (max-width: 991.98px) {
  .header-wrapper .asc-lang-wrap.d-lg-none {
    margin-left: auto !important;
    margin-right: 12px !important;
  }
  .header-wrapper .asc-lang-wrap.d-lg-none .asc-lang-switch {
    width: 32px;
    height: 32px;
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asc-lang-switch,
  .asc-lang-switch::before {
    transition: none;
  }
}

/* Fundido corto al cambiar de idioma */
[data-i18n] {
  transition: opacity 0.18s ease;
}
.asc-lang-switching [data-i18n] {
  opacity: 0;
}
/* ===== Subtítulos sobre fondos oscuros (azul de marca) =====
   Con la paleta azul, el color principal quedaba muy oscuro sobre el fondo.
   Success stories y Timeline: texto gris claro y detalle (ícono / punto) en azul claro. */
.h6-project .sec-heading .sub-title,
.h6-project .sec-heading .sub-title span,
.h9-service .sec-heading .sub-title {
  color: #d5dbf0 !important;
}
.h6-project .sec-heading .sub-title i {
  color: #7f9cff !important;
}
.h9-service .sec-heading.style-8 .sub-title::before {
  background-color: #7f9cff !important;
}
