.sha-hubspot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.sha-hubspot-modal.modal-hubspot-is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

 

.sha-hubspot-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.sha-hubspot-modal.modal-hubspot-is-active .sha-hubspot-modal__overlay {
    opacity: 1;
    pointer-events: auto;
}

.sha-hubspot-modal__content {
    position: relative;
    background: white;
    border-radius: 4px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0;
    
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sha-hubspot-modal__content::-webkit-scrollbar {
    display: none;
}

.sha-hubspot-modal.modal-hubspot-is-active .sha-hubspot-modal__content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sha-hubspot-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 100;
    color: #666;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.sha-hubspot-modal__close:hover {
    color: #333;
}

.sha-hubspot-modal__header {
    text-align: left;
    margin-bottom: 20px;
    padding-right: 40px; /* Espacio para evitar que el título toque la X */
}

.sha-hubspot-modal__header .title-S {
    color: #333;
}

.sha-hubspot-modal__body {
    padding: 0;
}

body.modal-hubspot-body-is-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .sha-hubspot-modal__content {
        width: 95%;
        max-height: 90vh;
        border-radius: 4px;
    }

    .sha-hubspot-modal__close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        font-weight: 100;
    }

    .sha-hubspot-modal__header {
        padding-right: 35px; /* Menos padding en mobile */
    }

    .sha-hubspot-modal__header .title-S {
        font-size: 20px;
    }

    .sha-hubspot-modal__body {
        padding: 0;
    }
}