#esi-popup-inicio {
  display: none;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  width: 100%;
  height: 100%;
}

#esi-popup-inicio.esi-popup-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

#esi-popup-inicio .esi-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  cursor: pointer;
}

#esi-popup-inicio .esi-popup-dialog {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
  line-height: 0;
}

#esi-popup-inicio .esi-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 32px);
  object-fit: contain;
}

#esi-popup-inicio .esi-popup-close {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 29px;
  line-height: 36px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

#esi-popup-inicio .esi-popup-close:hover {
  background: rgba(0, 0, 0, .9);
}

body.esi-popup-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  #esi-popup-inicio .esi-popup-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  #esi-popup-inicio .esi-popup-close {
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    font-size: 25px;
    line-height: 32px;
  }
}
