/* Estilos base del modal */
.cm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.cm-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.cm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 55px 40px;
    border-bottom: 1px solid #eee;
    background-color:#023B60;
    
    
}

.cm-modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}

.cm-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cm-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.cm-modal-content {
    padding: 20px;
}

/* Animaciones */
@keyframes cmFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cmSlideIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes cmZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cm-animation-fade .cm-modal-container {
    animation: cmFadeIn 0.3s ease forwards;
}

.cm-animation-slide .cm-modal-container {
    animation: cmSlideIn 0.3s ease forwards;
}

.cm-animation-zoom .cm-modal-container {
    animation: cmZoomIn 0.3s ease forwards;
}

/* Prevenir scroll del body cuando el modal está abierto */
body.cm-modal-open {
    overflow: hidden;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .cm-modal-container {
        width: 95%;
        margin: 30px auto;
    }
}