/*
  HB -> íon Web | Comunicação Cockpit
  Modal + banner em um único CSS.
  Esta versão usa imagens do layout final para preservar fontes, pesos, espaçamentos e composição visual.
  Ajuste final: modal com largura máxima de 980px.
*/

.hbion-banner,
.hbion-banner *,
.hbion-modal-overlay,
.hbion-modal-overlay * {
  box-sizing: border-box;
}

/* =========================
   Banner / tarja Cockpit
   ========================= */
.hbion-banner {
  position: relative;
  display: block;
  width: 960px;
  max-width: 100%;
  margin: 28px 0 32px;
  line-height: 0;
}

.hbion-banner__image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
}

.hbion-banner__cta-hotspot,
.hbion-modal__cta-hotspot,
.hbion-modal__close-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-indent: -9999px;
  cursor: pointer;
}

.hbion-banner__cta-hotspot {
  left: 3.2%;
  bottom: 11.2%;
  width: 9.8%;
  height: 15.4%;
}

.hbion-banner__cta-hotspot:focus,
.hbion-modal__cta-hotspot:focus,
.hbion-modal__close-hotspot:focus {
  outline: 3px solid #ffb27f;
  outline-offset: 3px;
}

/* =========================
   Modal
   ========================= */
.hbion-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.52);
  text-align: center;
}

.hbion-modal-overlay.hbion-is-visible {
  display: flex;
}

.hbion-modal-open {
  overflow: hidden !important;
}

.hbion-modal__frame {
  position: relative;
  display: inline-block;
  width: 980px;
  max-width: 100%;
  max-width: calc(100vw - 80px);
  line-height: 0;
  text-align: left;
}

.hbion-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
}

.hbion-modal__cta-hotspot {
  left: 6.75%;
  bottom: 7.1%;
  width: 17.6%;
  height: 7.4%;
}

.hbion-modal__close-hotspot {
  top: 4.2%;
  right: 2.4%;
  width: 4.7%;
  height: 7.8%;
}

@media (max-width: 700px) {
  .hbion-modal-overlay {
    padding: 20px;
  }

  .hbion-modal__frame {
    max-width: 100%;
    max-width: calc(100vw - 40px);
  }
}

@media (max-height: 620px) {
  .hbion-modal-overlay {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
    overflow: auto;
  }

}
