* {  
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.ebook-popup {
    position: fixed;
    top: -1000vh;
    left: 0px;
    width: 100%;
    height: 100%;
    transition: top 0ms ease-in-out 300ms;
    z-index: 1000;
}

.ebook-title {
    font-weight: bold;
    font-size: 1.6em;
    color: black;
}

.ebook-popup .overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition:opacity 100ms ease-in-out 200ms;

}

.ebook-popup .popup-content {
    display:flex;
    flex-direction: row;
    width: 100%;
    max-width: 900px; /* o el ancho deseado */
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.90);
    overflow-y: auto;
    background-image:  linear-gradient(rgba(245, 248, 250, 1), rgba(245, 248, 250, 1)) !important;
    /*&padding: 30px;*/
    /*padding-top: 10px;*/
    padding:0!important;
    border-radius: 20px;
    box-sizing:  0px 2px 2px 5px rgba(0,0,0,0.05);
    transition: all 300ms ease-in-out;
}

.ebook-popup.active{
    top: 0px;
    transition: top 0ms ease-in-out 0ms;
}

.ebook-popup.active .overlay{
    opacity: 1;
    transition: all 300ms ease-in-out;
}

.modal-image-container {
  width: 340px;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Esto asegura que la imagen se recorte pero llene todo el espacio */
}

.ebook-popup .title {
   width: 100%;
   color: #A3161A !important;
   font-size: 4vh;
   font-weight: bold;
}
.ebook-popup .navBar {
  width: 100%;
  direction: rtl;
  padding-right: 1%;
}

.ebook-popup .close-btn {
    position: absolute;
    right: 19px;
    top: 10px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
}

.ebook-popup .tableContent {
   display:flex;
}

.ab__form-button__center{
   text-align:center;
}

.ebook-popup .tableCellBanner {
   height: 100%;
}

.ebook-popup .tableCellBanner h3{
   margin-top: 0px!important;
   margin-bottom: 0 !important;
}

.ebook-popup .tableCellBanner h3 img{
    display: block!important;
    margin: 0px!important;
    height: 514px!important;
    max-height: 100%!important;
    max-width: 100%!important;
    width: 358px!important;
    object-fit: cover!important;
}  

.ebook-popup .tableCellForm {
flex-grow: 1;
  vertical-align: top;
   width: 55%;
   height: 100%;
   margin: 25px 30px;
}

.hideHeader {
  position: relative !important;
}
.tableCellForm h2{
  color:#1C3263!important;
  font-size:36px;
  margin-bottom: 18px;
  margin-top: 10px;
}

.ebook-popup .tableCellForm h3{
  margin-bottom: 24px;
  font-weight: 700px;
  font-size:32px;
  color:#a3161a;
}

.ebook-popup .tableCellForm p{
}

.ebook-popup .callToActionMobile {
  display: none;
}

.hideElement {
  display: none !important;    
}

.promotional-text{
   display: none !important;    
}

@media only screen and (max-width: 670px) {
  .modal-image-container{
    display: none
  }
}

@media (min-width: 420px) and (max-width: 900px) {
  .tableCellBanner h3 img{
    width: 300px;
  }
}

@media (min-width: 420px) and (max-width: 768px) {
  .popup .popup-content {
    top: 70px;               
    left: 50%;
    transform: translateX(-50%);
    max-height: calc(100vh - 80px); 
    overflow-y: auto;
  }