/* =========================================================
   ITT HEADER BUILDER — Elementor Widget
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

.itt-hb {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(13, 63, 145, .10);
  position: relative;
  z-index: 99999;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --itt-blue: #0D3F91;
  --itt-blue-soft: #144FA8;
  --itt-gold: #D7A85B;
  --itt-gold-soft: #FFF7E8;
  --itt-green: #10863F;
  --itt-green-soft: #EEF9F1;
  --itt-border: #E7EDF7;
  --itt-border-2: #E7EEF8;
  --itt-soft: #F8FBFF;
  --itt-text: #1F2937;
  --itt-muted: #6B7890;
}

.itt-hb,
.itt-hb * {
  box-sizing: border-box;
}

.itt-hb a {
  text-decoration: none !important;
}

.itt-hb__inner {
  max-width: 1540px;
  margin: 0 auto;
  min-height: 64px;
  padding: 8px 26px;
  display: grid;
  grid-template-columns: 205px minmax(340px, 1fr) 455px;
  align-items: center;
  column-gap: 22px;
}

/* LOGO */
.itt-hb__logo-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.itt-hb__logo-link {
  display: inline-flex;
  align-items: center;
}

.itt-hb__logo-link img {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* BUSCADOR */
.itt-hb__search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

.itt-hb__search-wrap {
  position: relative;
  width: 100%;
  max-width: 525px;
  z-index: 999999;
}

.itt-hb__search {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--itt-border);
  border-radius: 999px;
  padding: 3px 4px 3px 9px;
  box-shadow:
    0 5px 16px rgba(13, 63, 145, .055),
    0 0 0 1px rgba(215, 168, 91, .04);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.itt-hb__search:hover,
.itt-hb__search:focus-within {
  border-color: rgba(13, 63, 145, .38);
  box-shadow:
    0 8px 22px rgba(13, 63, 145, .10),
    0 0 0 3px rgba(215, 168, 91, .12);
}

.itt-hb__search-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--itt-blue), var(--itt-blue-soft));
  color: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(215, 168, 91, .24),
    0 4px 10px rgba(13, 63, 145, .14);
}

.itt-hb__search-icon svg {
  width: 14px !important;
  height: 14px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.itt-hb__search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--itt-text);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
}

.itt-hb__search-input::placeholder {
  color: var(--itt-muted);
  font-weight: 500;
}

.itt-hb__search-button {
  border: none !important;
  height: 32px;
  min-width: 92px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--itt-blue);
  color: #ffffff;
  font-size: 12.8px;
  font-weight: 800;
  cursor: pointer;
  transition: all .22s ease;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 7px 16px rgba(13, 63, 145, .16);
  font-family: inherit;
}

.itt-hb__search-button:hover {
  background: var(--itt-blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(13, 63, 145, .20);
}

/* SUGERENCIAS */
.itt-hb__suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(215, 168, 91, .22);
  border-radius: 18px;
  box-shadow:
    0 22px 52px rgba(13, 63, 145, .17),
    0 0 0 1px rgba(13, 63, 145, .05);
  padding: 8px 0;
  display: none;
  z-index: 999999;
  overflow: hidden;
}

.itt-hb__suggestions.is-active {
  display: block;
}

.itt-hb__suggestions-head {
  padding: 10px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #F0F3F8;
}

.itt-hb__suggestions-head span {
  color: var(--itt-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.itt-hb__suggestions-head small {
  color: var(--itt-gold);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.itt-hb__suggestions-list {
  display: flex;
  flex-direction: column;
}

.itt-hb__suggestion {
  width: 100%;
  border: none;
  background: #ffffff;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease;
  border-top: 1px solid #F2F5F9;
  font-family: inherit;
}

.itt-hb__suggestion:hover {
  background: linear-gradient(90deg, #F8FBFF 0%, #FFFFFF 100%);
}

.itt-hb__suggestion-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(215, 168, 91, .22), transparent 35%),
    linear-gradient(135deg, var(--itt-blue), var(--itt-blue-soft));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 18px rgba(13, 63, 145, .16),
    inset 0 0 0 1px rgba(215, 168, 91, .32);
  flex: 0 0 auto;
}

.itt-hb__suggestion-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.15 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.itt-hb__suggestion-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.itt-hb__suggestion-title {
  color: var(--itt-blue);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.itt-hb__suggestion-subtitle {
  margin-top: 3px;
  color: var(--itt-muted);
  font-size: 12px;
  font-weight: 600;
}

.itt-hb__search-all {
  width: 100%;
  border: none;
  border-top: 1px solid #EDF1F6;
  background: #ffffff;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease;
  font-family: inherit;
}

.itt-hb__search-all:hover {
  background: var(--itt-soft);
}

.itt-hb__suggestion-icon--search {
  background: var(--itt-gold-soft);
  color: var(--itt-blue);
  box-shadow: inset 0 0 0 1px rgba(215, 168, 91, .38);
}

.itt-hb__search-all-text {
  color: var(--itt-blue);
  font-size: 13.5px;
  font-weight: 800;
}

/* ACCIONES */
.itt-hb__actions-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.itt-hb__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.itt-hb__pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 12.8px;
  font-weight: 800;
  line-height: 1;
  transition: all .22s ease;
  font-family: inherit;
}

.itt-hb__pill--whatsapp {
  background: #ffffff;
  border: 1px solid var(--itt-border);
  color: var(--itt-green) !important;
}

.itt-hb__pill--whatsapp:hover {
  background: var(--itt-green-soft);
  color: #0F6E2C !important;
  border-color: rgba(16, 134, 63, .18);
}

.itt-hb__pill--login {
  background: var(--itt-blue);
  color: #ffffff !important;
  padding: 0 17px;
  border: 1px solid var(--itt-blue);
  box-shadow: 0 6px 14px rgba(13, 63, 145, .12);
}

.itt-hb__pill--login:hover {
  background: var(--itt-blue-soft);
  border-color: var(--itt-blue-soft);
  color: #ffffff !important;
}

/* IDIOMA */
.itt-hb__language {
  height: 34px;
  min-width: 88px;
  max-width: 150px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--itt-border);
  background: #ffffff;
  color: var(--itt-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: inherit;
  line-height: 1;
}

.itt-hb__language select,
.itt-hb__language .gt_selector {
  height: 32px !important;
  max-width: 128px !important;
  border: none !important;
  background: transparent !important;
  color: var(--itt-blue) !important;
  font-size: 12.4px !important;
  font-weight: 800 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  font-family: 'Poppins', sans-serif !important;
  cursor: pointer !important;
}

.itt-hb__language a,
.itt-hb__language span {
  color: var(--itt-blue) !important;
  font-size: 12.4px !important;
  font-weight: 800 !important;
  font-family: 'Poppins', sans-serif !important;
  text-decoration: none !important;
}

.itt-hb__language img {
  max-width: 20px !important;
  height: auto !important;
  margin-right: 4px !important;
}

.itt-hb__language .goog-te-gadget {
  font-size: 0 !important;
}

.itt-hb__language .goog-te-gadget span {
  display: none !important;
}

/* CARRITO */
.itt-hb__cart {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--itt-border);
  background: #ffffff;
  color: var(--itt-blue) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .22s ease;
  flex: 0 0 auto;
}

.itt-hb__cart:hover {
  background: var(--itt-soft);
  color: var(--itt-blue-soft) !important;
}

.itt-hb__cart svg {
  width: 19px !important;
  height: 19px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.itt-hb__cart-count {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 1360px) {
  .itt-hb__inner {
    grid-template-columns: 190px minmax(310px, 1fr) 430px;
    column-gap: 16px;
    padding: 8px 20px;
  }

  .itt-hb__logo-link img {
    width: 170px;
  }

  .itt-hb__search-wrap {
    max-width: 500px;
  }

  .itt-hb__pill {
    height: 32px;
    padding: 0 12px;
    font-size: 12.4px;
  }

  .itt-hb__pill--login {
    padding: 0 15px;
  }

  .itt-hb__language {
    height: 32px;
  }

  .itt-hb__cart {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 1100px) {
  .itt-hb__inner {
    grid-template-columns: 1fr;
    row-gap: 10px;
    justify-items: center;
    min-height: auto;
    padding: 12px 18px;
  }

  .itt-hb__logo-box,
  .itt-hb__search-box,
  .itt-hb__actions-box {
    width: 100%;
    justify-content: center;
  }

  .itt-hb__search-wrap {
    max-width: 650px;
  }

  .itt-hb__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .itt-hb__inner {
    padding: 11px 14px;
    row-gap: 10px;
  }

  .itt-hb__logo-link img {
    width: 185px;
  }

  .itt-hb__search {
    height: 44px;
    padding: 5px 6px 5px 10px;
  }

  .itt-hb__search-input {
    font-size: 13px;
  }

  .itt-hb__search-button {
    min-width: 88px;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .itt-hb__suggestions {
    border-radius: 14px;
  }

  .itt-hb__actions {
    gap: 7px;
  }

  .itt-hb__pill {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .itt-hb__language {
    height: 34px;
    min-width: 86px;
  }

  .itt-hb__cart {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
   FIX — CENTRADO BUSCADOR + COLOR INCA TRILOGY
========================================================= */

/* Azul correcto de la web */
.itt-hb {
  --itt-blue: #0A3D91 !important;
  --itt-blue-soft: #082F73 !important;
  --itt-border: #E7EDF7 !important;
  --itt-soft: #F8FBFF !important;
}

/* Ajuste general del header */
.itt-hb__inner {
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: 220px minmax(430px, 1fr) 470px !important;
  align-items: center !important;
  column-gap: 22px !important;
}

/* Centrar el buscador dentro de su columna */
.itt-hb__search-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

/* Tamaño y centrado del buscador */
.itt-hb__search-wrap {
  width: 100% !important;
  max-width: 565px !important;
  margin: 0 auto !important;
}

/* Fondo, altura y alineación del buscador */
.itt-hb__search {
  width: 100% !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1px solid #E7EDF7 !important;
  border-radius: 999px !important;
  padding: 4px 5px 4px 9px !important;
  box-shadow:
    0 6px 18px rgba(10, 61, 145, .07),
    0 0 0 1px rgba(215, 168, 91, .03) !important;
}

/* Icono de lupa centrado */
.itt-hb__search-icon {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  background: var(--itt-blue) !important;
  background-image: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 9px !important;
}

/* Input alineado */
.itt-hb__search-input {
  height: 34px !important;
  line-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 13.8px !important;
  font-weight: 600 !important;
  padding: 0 !important;
}

/* Botón BUSCAR perfectamente centrado */
.itt-hb__search-button {
  height: 34px !important;
  min-width: 108px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  background: var(--itt-blue) !important;
  color: #ffffff !important;
  font-size: 12.8px !important;
  font-weight: 900 !important;
  letter-spacing: .9px !important;
  text-transform: uppercase !important;
  font-family: 'Poppins', sans-serif !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;

  box-shadow: 0 7px 16px rgba(10, 61, 145, .16) !important;
}

/* Hover del botón */
.itt-hb__search-button:hover {
  background: var(--itt-blue-soft) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 9px 20px rgba(10, 61, 145, .22) !important;
}

/* Botones de la derecha con el mismo azul */
.itt-hb__pill--login {
  background: var(--itt-blue) !important;
  border-color: var(--itt-blue) !important;
  color: #ffffff !important;
}

.itt-hb__pill--login:hover {
  background: var(--itt-blue-soft) !important;
  border-color: var(--itt-blue-soft) !important;
}

/* Carrito azul */
.itt-hb__cart {
  color: var(--itt-blue) !important;
}

/* Responsive */
@media (max-width: 1360px) {
  .itt-hb__inner {
    grid-template-columns: 200px minmax(360px, 1fr) 430px !important;
    column-gap: 16px !important;
  }

  .itt-hb__search-wrap {
    max-width: 520px !important;
  }
}

@media (max-width: 1100px) {
  .itt-hb__inner {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
    justify-items: center !important;
  }

  .itt-hb__search-wrap {
    max-width: 650px !important;
  }
}

/* =========================================================
   FIX — BOTÓN BUSCAR EN TEXTO NORMAL
========================================================= */

.itt-hb__search-button {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12.8px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
