/* ios-modal.css - modales estilo iOS */
.ios-modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.ios-modal-overlay.show {
    display: flex;
}

.ios-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ios-modal-header {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.ios-modal-body {
    padding: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.ios-modal-footer {
    padding: 15px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
}

.ios-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(-20px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}

/* Modal grande */
.ios-modal.modal-lg {
    max-width: 600px;
}

/* Modal pequeño */
.ios-modal.modal-sm {
    max-width: 300px;
}


/* Modales más grandes para detalles */

.ios-modal.modal-md {
    max-width: 600px;
    width: 95%;
}

.ios-modal.modal-lg {
    max-width: 800px;
    width: 95%;
}

.ios-modal.modal-xl {
    max-width: 1200px;
    width: 98%;
}

/* Modal scrollable */
.ios-modal.scrollable {
    max-height: 90vh;
    overflow-y: auto;
}

/* Header sticky (para formularios largos) */
.ios-modal.scrollable .ios-modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

/* Footer sticky */
.ios-modal.scrollable .ios-modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
}