body.no-scroll {
    overflow: hidden;
}

.modal-container.hidden {
    display: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(26, 26, 26, 0.5);
    z-index: 1000;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--blanco);
    border-radius: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 90%;
    height: auto;
    max-width: 385px;
    z-index: 1001;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 2rem 0;
}

.modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-title {
    font-size: 2.4rem;
    font-weight: bold;
    margin: 0;
    color: var(--fondo);
}

.modal-close-button-container {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    background-color: var(--blanco);
    z-index: 1002;
}

.modal-close-button {
    position: static;
    margin: 0;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close-button:hover {
    color: #111827;
}

.modal-content {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}
